@ckeditor/ckeditor5-list 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.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +17 -0
- package/README.md +26 -0
- package/build/list.js +5 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +193 -0
- package/dist/augmentation.d.ts +57 -0
- package/dist/documentlist.d.ts +36 -0
- package/dist/documentlistproperties.d.ts +36 -0
- package/dist/index-content.css +116 -0
- package/dist/index-editor.css +82 -0
- package/dist/index.css +238 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +7994 -0
- package/dist/index.js.map +1 -0
- package/dist/legacylist/legacyconverters.d.ts +200 -0
- package/dist/legacylist/legacyindentcommand.d.ts +41 -0
- package/dist/legacylist/legacylistcommand.d.ts +60 -0
- package/dist/legacylist/legacylistediting.d.ts +40 -0
- package/dist/legacylist/legacylistutils.d.ts +49 -0
- package/dist/legacylist/legacyutils.d.ts +105 -0
- package/dist/legacylist.d.ts +34 -0
- package/dist/legacylistproperties/legacylistpropertiesediting.d.ts +80 -0
- package/dist/legacylistproperties/legacylistreversedcommand.d.ts +42 -0
- package/dist/legacylistproperties/legacyliststartcommand.d.ts +41 -0
- package/dist/legacylistproperties/legacyliststylecommand.d.ts +71 -0
- package/dist/legacylistproperties.d.ts +35 -0
- package/dist/legacytodolist/legacychecktodolistcommand.d.ts +56 -0
- package/dist/legacytodolist/legacytodolistconverters.d.ts +87 -0
- package/dist/legacytodolist/legacytodolistediting.d.ts +54 -0
- package/dist/legacytodolist.d.ts +35 -0
- package/dist/list/adjacentlistssupport.d.ts +23 -0
- package/dist/list/converters.d.ts +69 -0
- package/dist/list/listcommand.d.ts +96 -0
- package/dist/list/listediting.d.ts +230 -0
- package/dist/list/listindentcommand.d.ts +66 -0
- package/dist/list/listmergecommand.d.ts +80 -0
- package/dist/list/listsplitcommand.d.ts +71 -0
- package/dist/list/listui.d.ts +27 -0
- package/dist/list/listutils.d.ts +60 -0
- package/dist/list/utils/listwalker.d.ts +146 -0
- package/dist/list/utils/model.d.ts +213 -0
- package/dist/list/utils/postfixers.d.ts +41 -0
- package/dist/list/utils/view.d.ts +86 -0
- package/dist/list/utils.d.ts +22 -0
- package/dist/list.d.ts +34 -0
- package/dist/listconfig.d.ts +164 -0
- package/dist/listproperties/converters.d.ts +23 -0
- package/dist/listproperties/listpropertiesediting.d.ts +96 -0
- package/dist/listproperties/listpropertiesui.d.ts +31 -0
- package/dist/listproperties/listpropertiesutils.d.ts +41 -0
- package/dist/listproperties/listreversedcommand.d.ts +40 -0
- package/dist/listproperties/liststartcommand.d.ts +42 -0
- package/dist/listproperties/liststylecommand.d.ts +76 -0
- package/dist/listproperties/ui/listpropertiesview.d.ts +160 -0
- package/dist/listproperties/utils/config.d.ts +39 -0
- package/dist/listproperties/utils/style.d.ts +24 -0
- package/dist/listproperties.d.ts +35 -0
- package/dist/tododocumentlist.d.ts +36 -0
- package/dist/todolist/checktodolistcommand.d.ts +53 -0
- package/dist/todolist/todocheckboxchangeobserver.d.ts +45 -0
- package/dist/todolist/todolistediting.d.ts +53 -0
- package/dist/todolist/todolistui.d.ts +27 -0
- package/dist/todolist.d.ts +35 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +5 -0
- package/dist/translations/ar.umd.js +11 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +5 -0
- package/dist/translations/ast.umd.js +11 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +5 -0
- package/dist/translations/az.umd.js +11 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +5 -0
- package/dist/translations/bg.umd.js +11 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +5 -0
- package/dist/translations/bn.umd.js +11 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +5 -0
- package/dist/translations/ca.umd.js +11 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +5 -0
- package/dist/translations/cs.umd.js +11 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +5 -0
- package/dist/translations/da.umd.js +11 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +5 -0
- package/dist/translations/de-ch.umd.js +11 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +5 -0
- package/dist/translations/de.umd.js +11 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +5 -0
- package/dist/translations/el.umd.js +11 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +5 -0
- package/dist/translations/en-au.umd.js +11 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +5 -0
- package/dist/translations/en-gb.umd.js +11 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +5 -0
- package/dist/translations/en.umd.js +11 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +5 -0
- package/dist/translations/eo.umd.js +11 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +5 -0
- package/dist/translations/es.umd.js +11 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +5 -0
- package/dist/translations/et.umd.js +11 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +5 -0
- package/dist/translations/eu.umd.js +11 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +5 -0
- package/dist/translations/fa.umd.js +11 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +5 -0
- package/dist/translations/fi.umd.js +11 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +5 -0
- package/dist/translations/fr.umd.js +11 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +5 -0
- package/dist/translations/gl.umd.js +11 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +5 -0
- package/dist/translations/he.umd.js +11 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +5 -0
- package/dist/translations/hi.umd.js +11 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +5 -0
- package/dist/translations/hr.umd.js +11 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +5 -0
- package/dist/translations/hu.umd.js +11 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +5 -0
- package/dist/translations/id.umd.js +11 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +5 -0
- package/dist/translations/it.umd.js +11 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +5 -0
- package/dist/translations/ja.umd.js +11 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +5 -0
- package/dist/translations/jv.umd.js +11 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +5 -0
- package/dist/translations/km.umd.js +11 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +5 -0
- package/dist/translations/kn.umd.js +11 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +5 -0
- package/dist/translations/ko.umd.js +11 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +5 -0
- package/dist/translations/ku.umd.js +11 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +5 -0
- package/dist/translations/lt.umd.js +11 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +5 -0
- package/dist/translations/lv.umd.js +11 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +5 -0
- package/dist/translations/ms.umd.js +11 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +5 -0
- package/dist/translations/nb.umd.js +11 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +5 -0
- package/dist/translations/ne.umd.js +11 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +5 -0
- package/dist/translations/nl.umd.js +11 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +5 -0
- package/dist/translations/no.umd.js +11 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +5 -0
- package/dist/translations/pl.umd.js +11 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +5 -0
- package/dist/translations/pt-br.umd.js +11 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +5 -0
- package/dist/translations/pt.umd.js +11 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +5 -0
- package/dist/translations/ro.umd.js +11 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +5 -0
- package/dist/translations/ru.umd.js +11 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +5 -0
- package/dist/translations/si.umd.js +11 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +5 -0
- package/dist/translations/sk.umd.js +11 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +5 -0
- package/dist/translations/sq.umd.js +11 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +5 -0
- package/dist/translations/sr-latn.umd.js +11 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +5 -0
- package/dist/translations/sr.umd.js +11 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +5 -0
- package/dist/translations/sv.umd.js +11 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +5 -0
- package/dist/translations/th.umd.js +11 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +5 -0
- package/dist/translations/ti.umd.js +11 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +5 -0
- package/dist/translations/tk.umd.js +11 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +5 -0
- package/dist/translations/tr.umd.js +11 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +5 -0
- package/dist/translations/tt.umd.js +11 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +5 -0
- package/dist/translations/ug.umd.js +11 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +5 -0
- package/dist/translations/uk.umd.js +11 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +5 -0
- package/dist/translations/ur.umd.js +11 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +5 -0
- package/dist/translations/uz.umd.js +11 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +5 -0
- package/dist/translations/vi.umd.js +11 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +5 -0
- package/dist/translations/zh-cn.umd.js +11 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +5 -0
- package/dist/translations/zh.umd.js +11 -0
- package/lang/contexts.json +35 -0
- package/lang/translations/ar.po +150 -0
- package/lang/translations/ast.po +150 -0
- package/lang/translations/az.po +150 -0
- package/lang/translations/bg.po +150 -0
- package/lang/translations/bn.po +150 -0
- package/lang/translations/ca.po +150 -0
- package/lang/translations/cs.po +150 -0
- package/lang/translations/da.po +150 -0
- package/lang/translations/de-ch.po +150 -0
- package/lang/translations/de.po +150 -0
- package/lang/translations/el.po +150 -0
- package/lang/translations/en-au.po +150 -0
- package/lang/translations/en-gb.po +150 -0
- package/lang/translations/en.po +150 -0
- package/lang/translations/eo.po +150 -0
- package/lang/translations/es.po +150 -0
- package/lang/translations/et.po +150 -0
- package/lang/translations/eu.po +150 -0
- package/lang/translations/fa.po +150 -0
- package/lang/translations/fi.po +150 -0
- package/lang/translations/fr.po +150 -0
- package/lang/translations/gl.po +150 -0
- package/lang/translations/he.po +150 -0
- package/lang/translations/hi.po +150 -0
- package/lang/translations/hr.po +150 -0
- package/lang/translations/hu.po +150 -0
- package/lang/translations/id.po +150 -0
- package/lang/translations/it.po +150 -0
- package/lang/translations/ja.po +150 -0
- package/lang/translations/jv.po +150 -0
- package/lang/translations/km.po +150 -0
- package/lang/translations/kn.po +150 -0
- package/lang/translations/ko.po +150 -0
- package/lang/translations/ku.po +150 -0
- package/lang/translations/lt.po +150 -0
- package/lang/translations/lv.po +150 -0
- package/lang/translations/ms.po +150 -0
- package/lang/translations/nb.po +150 -0
- package/lang/translations/ne.po +150 -0
- package/lang/translations/nl.po +150 -0
- package/lang/translations/no.po +150 -0
- package/lang/translations/pl.po +150 -0
- package/lang/translations/pt-br.po +150 -0
- package/lang/translations/pt.po +150 -0
- package/lang/translations/ro.po +150 -0
- package/lang/translations/ru.po +150 -0
- package/lang/translations/si.po +150 -0
- package/lang/translations/sk.po +150 -0
- package/lang/translations/sq.po +150 -0
- package/lang/translations/sr-latn.po +150 -0
- package/lang/translations/sr.po +150 -0
- package/lang/translations/sv.po +150 -0
- package/lang/translations/th.po +150 -0
- package/lang/translations/ti.po +150 -0
- package/lang/translations/tk.po +150 -0
- package/lang/translations/tr.po +150 -0
- package/lang/translations/tt.po +150 -0
- package/lang/translations/ug.po +150 -0
- package/lang/translations/uk.po +150 -0
- package/lang/translations/ur.po +150 -0
- package/lang/translations/uz.po +150 -0
- package/lang/translations/vi.po +150 -0
- package/lang/translations/zh-cn.po +150 -0
- package/lang/translations/zh.po +150 -0
- package/package.json +45 -0
- package/src/augmentation.d.ts +53 -0
- package/src/augmentation.js +5 -0
- package/src/documentlist.d.ts +32 -0
- package/src/documentlist.js +47 -0
- package/src/documentlistproperties.d.ts +32 -0
- package/src/documentlistproperties.js +47 -0
- package/src/index.d.ts +45 -0
- package/src/index.js +39 -0
- package/src/legacylist/legacyconverters.d.ts +196 -0
- package/src/legacylist/legacyconverters.js +905 -0
- package/src/legacylist/legacyindentcommand.d.ts +37 -0
- package/src/legacylist/legacyindentcommand.js +107 -0
- package/src/legacylist/legacylistcommand.d.ts +56 -0
- package/src/legacylist/legacylistcommand.js +274 -0
- package/src/legacylist/legacylistediting.d.ts +36 -0
- package/src/legacylist/legacylistediting.js +167 -0
- package/src/legacylist/legacylistutils.d.ts +45 -0
- package/src/legacylist/legacylistutils.js +52 -0
- package/src/legacylist/legacyutils.d.ts +101 -0
- package/src/legacylist/legacyutils.js +347 -0
- package/src/legacylist.d.ts +30 -0
- package/src/legacylist.js +36 -0
- package/src/legacylistproperties/legacylistpropertiesediting.d.ts +76 -0
- package/src/legacylistproperties/legacylistpropertiesediting.js +702 -0
- package/src/legacylistproperties/legacylistreversedcommand.d.ts +38 -0
- package/src/legacylistproperties/legacylistreversedcommand.js +52 -0
- package/src/legacylistproperties/legacyliststartcommand.d.ts +37 -0
- package/src/legacylistproperties/legacyliststartcommand.js +51 -0
- package/src/legacylistproperties/legacyliststylecommand.d.ts +67 -0
- package/src/legacylistproperties/legacyliststylecommand.js +100 -0
- package/src/legacylistproperties.d.ts +31 -0
- package/src/legacylistproperties.js +37 -0
- package/src/legacytodolist/legacychecktodolistcommand.d.ts +52 -0
- package/src/legacytodolist/legacychecktodolistcommand.js +76 -0
- package/src/legacytodolist/legacytodolistconverters.d.ts +83 -0
- package/src/legacytodolist/legacytodolistconverters.js +261 -0
- package/src/legacytodolist/legacytodolistediting.d.ts +50 -0
- package/src/legacytodolist/legacytodolistediting.js +199 -0
- package/src/legacytodolist.d.ts +31 -0
- package/src/legacytodolist.js +37 -0
- package/src/list/adjacentlistssupport.d.ts +19 -0
- package/src/list/adjacentlistssupport.js +87 -0
- package/src/list/converters.d.ts +65 -0
- package/src/list/converters.js +491 -0
- package/src/list/listcommand.d.ts +92 -0
- package/src/list/listcommand.js +163 -0
- package/src/list/listediting.d.ts +226 -0
- package/src/list/listediting.js +678 -0
- package/src/list/listindentcommand.d.ts +62 -0
- package/src/list/listindentcommand.js +129 -0
- package/src/list/listmergecommand.d.ts +76 -0
- package/src/list/listmergecommand.js +174 -0
- package/src/list/listsplitcommand.d.ts +67 -0
- package/src/list/listsplitcommand.js +70 -0
- package/src/list/listui.d.ts +23 -0
- package/src/list/listui.js +41 -0
- package/src/list/listutils.d.ts +56 -0
- package/src/list/listutils.js +62 -0
- package/src/list/utils/listwalker.d.ts +142 -0
- package/src/list/utils/listwalker.js +182 -0
- package/src/list/utils/model.d.ts +209 -0
- package/src/list/utils/model.js +464 -0
- package/src/list/utils/postfixers.d.ts +37 -0
- package/src/list/utils/postfixers.js +126 -0
- package/src/list/utils/view.d.ts +82 -0
- package/src/list/utils/view.js +117 -0
- package/src/list/utils.d.ts +18 -0
- package/src/list/utils.js +51 -0
- package/src/list.d.ts +30 -0
- package/src/list.js +36 -0
- package/src/listconfig.d.ts +160 -0
- package/src/listconfig.js +5 -0
- package/src/listproperties/converters.d.ts +19 -0
- package/src/listproperties/converters.js +43 -0
- package/src/listproperties/listpropertiesediting.d.ts +92 -0
- package/src/listproperties/listpropertiesediting.js +275 -0
- package/src/listproperties/listpropertiesui.d.ts +27 -0
- package/src/listproperties/listpropertiesui.js +371 -0
- package/src/listproperties/listpropertiesutils.d.ts +37 -0
- package/src/listproperties/listpropertiesutils.js +50 -0
- package/src/listproperties/listreversedcommand.d.ts +36 -0
- package/src/listproperties/listreversedcommand.js +55 -0
- package/src/listproperties/liststartcommand.d.ts +38 -0
- package/src/listproperties/liststartcommand.js +60 -0
- package/src/listproperties/liststylecommand.d.ts +72 -0
- package/src/listproperties/liststylecommand.js +113 -0
- package/src/listproperties/ui/listpropertiesview.d.ts +156 -0
- package/src/listproperties/ui/listpropertiesview.js +301 -0
- package/src/listproperties/utils/config.d.ts +35 -0
- package/src/listproperties/utils/config.js +70 -0
- package/src/listproperties/utils/style.d.ts +20 -0
- package/src/listproperties/utils/style.js +54 -0
- package/src/listproperties.d.ts +31 -0
- package/src/listproperties.js +37 -0
- package/src/tododocumentlist.d.ts +32 -0
- package/src/tododocumentlist.js +47 -0
- package/src/todolist/checktodolistcommand.d.ts +49 -0
- package/src/todolist/checktodolistcommand.js +82 -0
- package/src/todolist/todocheckboxchangeobserver.d.ts +41 -0
- package/src/todolist/todocheckboxchangeobserver.js +37 -0
- package/src/todolist/todolistediting.d.ts +49 -0
- package/src/todolist/todolistediting.js +470 -0
- package/src/todolist/todolistui.d.ts +23 -0
- package/src/todolist/todolistui.js +34 -0
- package/src/todolist.d.ts +31 -0
- package/src/todolist.js +37 -0
- package/theme/documentlist.css +8 -0
- package/theme/icons/liststylecircle.svg +1 -0
- package/theme/icons/liststyledecimal.svg +1 -0
- package/theme/icons/liststyledecimalleadingzero.svg +1 -0
- package/theme/icons/liststyledisc.svg +1 -0
- package/theme/icons/liststylelowerlatin.svg +1 -0
- package/theme/icons/liststylelowerroman.svg +1 -0
- package/theme/icons/liststylesquare.svg +1 -0
- package/theme/icons/liststyleupperlatin.svg +1 -0
- package/theme/icons/liststyleupperroman.svg +1 -0
- package/theme/list.css +40 -0
- package/theme/listproperties.css +10 -0
- package/theme/liststyles.css +8 -0
- package/theme/todolist.css +140 -0
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* @module list/list/listcommand
|
|
7
|
+
*/
|
|
8
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type ListType } from './listediting.js';
|
|
11
|
+
/**
|
|
12
|
+
* The list command. It is used by the {@link module:list/list~List list feature}.
|
|
13
|
+
*/
|
|
14
|
+
export default class ListCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* The type of the list created by the command.
|
|
17
|
+
*/
|
|
18
|
+
readonly type: ListType;
|
|
19
|
+
/**
|
|
20
|
+
* A flag indicating whether the command is active, which means that the selection starts in a list of the same type.
|
|
21
|
+
*
|
|
22
|
+
* @observable
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
value: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* List Walker options that change the range of the list items to be changed when the selection is collapsed within a list item.
|
|
28
|
+
*
|
|
29
|
+
* In a multi-level list, when the selection is collapsed within a list item, instead of changing only the list items of the same list
|
|
30
|
+
* type and current indent level, the entire list structure is changed (all list items at all indent levels of any list type).
|
|
31
|
+
*/
|
|
32
|
+
private readonly _listWalkerOptions?;
|
|
33
|
+
/**
|
|
34
|
+
* Creates an instance of the command.
|
|
35
|
+
*
|
|
36
|
+
* @param editor The editor instance.
|
|
37
|
+
* @param type List type that will be handled by this command.
|
|
38
|
+
*/
|
|
39
|
+
constructor(editor: Editor, type: ListType, options?: {
|
|
40
|
+
multiLevel?: boolean;
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
refresh(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Executes the list command.
|
|
48
|
+
*
|
|
49
|
+
* @fires execute
|
|
50
|
+
* @fires afterExecute
|
|
51
|
+
* @param options Command options.
|
|
52
|
+
* @param options.forceValue If set, it will force the command behavior. If `true`, the command will try to convert the
|
|
53
|
+
* selected items and potentially the neighbor elements to the proper list items. If set to `false` it will convert selected elements
|
|
54
|
+
* to paragraphs. If not set, the command will toggle selected elements to list items or paragraphs, depending on the selection.
|
|
55
|
+
* @param options.additionalAttributes Additional attributes that are set for list items when the command is executed.
|
|
56
|
+
*/
|
|
57
|
+
execute(options?: {
|
|
58
|
+
forceValue?: boolean;
|
|
59
|
+
additionalAttributes?: Record<string, unknown>;
|
|
60
|
+
}): void;
|
|
61
|
+
/**
|
|
62
|
+
* Fires the `afterExecute` event.
|
|
63
|
+
*
|
|
64
|
+
* @param changedBlocks The changed list elements.
|
|
65
|
+
*/
|
|
66
|
+
private _fireAfterExecute;
|
|
67
|
+
/**
|
|
68
|
+
* Checks the command's {@link #value}.
|
|
69
|
+
*
|
|
70
|
+
* @returns The current value.
|
|
71
|
+
*/
|
|
72
|
+
private _getValue;
|
|
73
|
+
/**
|
|
74
|
+
* Checks whether the command can be enabled in the current context.
|
|
75
|
+
*
|
|
76
|
+
* @returns Whether the command should be enabled.
|
|
77
|
+
*/
|
|
78
|
+
private _checkEnabled;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Event fired by the {@link ~ListCommand#execute} method.
|
|
82
|
+
*
|
|
83
|
+
* It allows to execute an action after executing the {@link ~ListCommand#execute} method,
|
|
84
|
+
* for example adjusting attributes of changed list items.
|
|
85
|
+
*
|
|
86
|
+
* @internal
|
|
87
|
+
* @eventName ~ListCommand#afterExecute
|
|
88
|
+
*/
|
|
89
|
+
export type ListCommandAfterExecuteEvent = {
|
|
90
|
+
name: 'afterExecute';
|
|
91
|
+
args: [changedBlocks: Array<Element>];
|
|
92
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { splitListItemBefore, expandListBlocksToCompleteItems, getListItemBlocks, getListItems, removeListAttributes, outdentFollowingItems, ListItemUid, sortBlocks, getSelectedBlockObject, isListItemBlock, canBecomeSimpleListItem } from './utils/model.js';
|
|
7
|
+
/**
|
|
8
|
+
* The list command. It is used by the {@link module:list/list~List list feature}.
|
|
9
|
+
*/
|
|
10
|
+
export default class ListCommand extends Command {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of the command.
|
|
13
|
+
*
|
|
14
|
+
* @param editor The editor instance.
|
|
15
|
+
* @param type List type that will be handled by this command.
|
|
16
|
+
*/
|
|
17
|
+
constructor(editor, type, options = {}) {
|
|
18
|
+
super(editor);
|
|
19
|
+
this.type = type;
|
|
20
|
+
this._listWalkerOptions = options.multiLevel ? {
|
|
21
|
+
higherIndent: true,
|
|
22
|
+
lowerIndent: true,
|
|
23
|
+
sameAttributes: []
|
|
24
|
+
} : undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
refresh() {
|
|
30
|
+
this.value = this._getValue();
|
|
31
|
+
this.isEnabled = this._checkEnabled();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Executes the list command.
|
|
35
|
+
*
|
|
36
|
+
* @fires execute
|
|
37
|
+
* @fires afterExecute
|
|
38
|
+
* @param options Command options.
|
|
39
|
+
* @param options.forceValue If set, it will force the command behavior. If `true`, the command will try to convert the
|
|
40
|
+
* selected items and potentially the neighbor elements to the proper list items. If set to `false` it will convert selected elements
|
|
41
|
+
* to paragraphs. If not set, the command will toggle selected elements to list items or paragraphs, depending on the selection.
|
|
42
|
+
* @param options.additionalAttributes Additional attributes that are set for list items when the command is executed.
|
|
43
|
+
*/
|
|
44
|
+
execute(options = {}) {
|
|
45
|
+
const model = this.editor.model;
|
|
46
|
+
const document = model.document;
|
|
47
|
+
const selectedBlockObject = getSelectedBlockObject(model);
|
|
48
|
+
const blocks = Array.from(document.selection.getSelectedBlocks())
|
|
49
|
+
.filter(block => model.schema.checkAttribute(block, 'listType') || canBecomeSimpleListItem(block, model.schema));
|
|
50
|
+
// Whether we are turning off some items.
|
|
51
|
+
const turnOff = options.forceValue !== undefined ? !options.forceValue : this.value;
|
|
52
|
+
model.change(writer => {
|
|
53
|
+
if (turnOff) {
|
|
54
|
+
const lastBlock = blocks[blocks.length - 1];
|
|
55
|
+
// Split the first block from the list item.
|
|
56
|
+
const itemBlocks = getListItemBlocks(lastBlock, { direction: 'forward' });
|
|
57
|
+
const changedBlocks = [];
|
|
58
|
+
if (itemBlocks.length > 1) {
|
|
59
|
+
changedBlocks.push(...splitListItemBefore(itemBlocks[1], writer));
|
|
60
|
+
}
|
|
61
|
+
// Strip list attributes.
|
|
62
|
+
changedBlocks.push(...removeListAttributes(blocks, writer));
|
|
63
|
+
// Outdent items following the selected list item.
|
|
64
|
+
changedBlocks.push(...outdentFollowingItems(lastBlock, writer));
|
|
65
|
+
this._fireAfterExecute(changedBlocks);
|
|
66
|
+
}
|
|
67
|
+
// Changing type of list items for a collapsed selection inside a list item.
|
|
68
|
+
else if ((selectedBlockObject || document.selection.isCollapsed) && isListItemBlock(blocks[0])) {
|
|
69
|
+
const changedBlocks = getListItems(selectedBlockObject || blocks[0], this._listWalkerOptions);
|
|
70
|
+
for (const block of changedBlocks) {
|
|
71
|
+
writer.setAttributes({
|
|
72
|
+
...options.additionalAttributes,
|
|
73
|
+
listType: this.type
|
|
74
|
+
}, block);
|
|
75
|
+
}
|
|
76
|
+
this._fireAfterExecute(changedBlocks);
|
|
77
|
+
}
|
|
78
|
+
// Turning on the list items for a non-collapsed selection.
|
|
79
|
+
else {
|
|
80
|
+
const changedBlocks = [];
|
|
81
|
+
for (const block of blocks) {
|
|
82
|
+
// Promote the given block to the list item.
|
|
83
|
+
if (!block.hasAttribute('listType')) {
|
|
84
|
+
// Rename block to a simple list item if this option is enabled.
|
|
85
|
+
if (!block.is('element', 'listItem') && canBecomeSimpleListItem(block, model.schema)) {
|
|
86
|
+
writer.rename(block, 'listItem');
|
|
87
|
+
}
|
|
88
|
+
writer.setAttributes({
|
|
89
|
+
...options.additionalAttributes,
|
|
90
|
+
listIndent: 0,
|
|
91
|
+
listItemId: ListItemUid.next(),
|
|
92
|
+
listType: this.type
|
|
93
|
+
}, block);
|
|
94
|
+
changedBlocks.push(block);
|
|
95
|
+
}
|
|
96
|
+
// Change the type of list item.
|
|
97
|
+
else {
|
|
98
|
+
for (const node of expandListBlocksToCompleteItems(block, { withNested: false })) {
|
|
99
|
+
if (node.getAttribute('listType') != this.type) {
|
|
100
|
+
writer.setAttributes({
|
|
101
|
+
...options.additionalAttributes,
|
|
102
|
+
listType: this.type
|
|
103
|
+
}, node);
|
|
104
|
+
changedBlocks.push(node);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
this._fireAfterExecute(changedBlocks);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Fires the `afterExecute` event.
|
|
115
|
+
*
|
|
116
|
+
* @param changedBlocks The changed list elements.
|
|
117
|
+
*/
|
|
118
|
+
_fireAfterExecute(changedBlocks) {
|
|
119
|
+
this.fire('afterExecute', sortBlocks(new Set(changedBlocks)));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Checks the command's {@link #value}.
|
|
123
|
+
*
|
|
124
|
+
* @returns The current value.
|
|
125
|
+
*/
|
|
126
|
+
_getValue() {
|
|
127
|
+
const selection = this.editor.model.document.selection;
|
|
128
|
+
const blocks = Array.from(selection.getSelectedBlocks());
|
|
129
|
+
if (!blocks.length) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
for (const block of blocks) {
|
|
133
|
+
if (block.getAttribute('listType') != this.type) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Checks whether the command can be enabled in the current context.
|
|
141
|
+
*
|
|
142
|
+
* @returns Whether the command should be enabled.
|
|
143
|
+
*/
|
|
144
|
+
_checkEnabled() {
|
|
145
|
+
const model = this.editor.model;
|
|
146
|
+
const schema = model.schema;
|
|
147
|
+
const selection = model.document.selection;
|
|
148
|
+
const blocks = Array.from(selection.getSelectedBlocks());
|
|
149
|
+
if (!blocks.length) {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
// If command value is true it means that we are in list item, so the command should be enabled.
|
|
153
|
+
if (this.value) {
|
|
154
|
+
return true;
|
|
155
|
+
}
|
|
156
|
+
for (const block of blocks) {
|
|
157
|
+
if (schema.checkAttribute(block, 'listType') || canBecomeSimpleListItem(block, schema)) {
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
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
|
+
* @module list/list/listediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { DowncastWriter, Element, ViewElement, ViewAttributeElement, Writer } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { Delete } from 'ckeditor5/src/typing.js';
|
|
11
|
+
import { Enter } from 'ckeditor5/src/enter.js';
|
|
12
|
+
import ListUtils from './listutils.js';
|
|
13
|
+
import { ListBlocksIterable } from './utils/listwalker.js';
|
|
14
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
|
|
15
|
+
import '../../theme/documentlist.css';
|
|
16
|
+
import '../../theme/list.css';
|
|
17
|
+
export type ListType = 'numbered' | 'bulleted' | 'todo' | 'customNumbered' | 'customBulleted';
|
|
18
|
+
/**
|
|
19
|
+
* Map of model attributes applicable to list blocks.
|
|
20
|
+
*/
|
|
21
|
+
export interface ListItemAttributesMap {
|
|
22
|
+
listType?: ListType;
|
|
23
|
+
listIndent?: number;
|
|
24
|
+
listItemId?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The editing part of the document-list feature. It handles creating, editing and removing lists and list items.
|
|
28
|
+
*/
|
|
29
|
+
export default class ListEditing extends Plugin {
|
|
30
|
+
/**
|
|
31
|
+
* The list of registered downcast strategies.
|
|
32
|
+
*/
|
|
33
|
+
private readonly _downcastStrategies;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
static get pluginName(): "ListEditing";
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
static get isOfficialPlugin(): true;
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
static get requires(): readonly [typeof Enter, typeof Delete, typeof ListUtils, typeof ClipboardPipeline];
|
|
46
|
+
/**
|
|
47
|
+
* @inheritDoc
|
|
48
|
+
*/
|
|
49
|
+
constructor(editor: Editor);
|
|
50
|
+
/**
|
|
51
|
+
* @inheritDoc
|
|
52
|
+
*/
|
|
53
|
+
init(): void;
|
|
54
|
+
/**
|
|
55
|
+
* @inheritDoc
|
|
56
|
+
*/
|
|
57
|
+
afterInit(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Registers a downcast strategy.
|
|
60
|
+
*
|
|
61
|
+
* **Note**: Strategies must be registered in the `Plugin#init()` phase so that it can be applied
|
|
62
|
+
* in the `ListEditing#afterInit()`.
|
|
63
|
+
*
|
|
64
|
+
* @param strategy The downcast strategy to register.
|
|
65
|
+
*/
|
|
66
|
+
registerDowncastStrategy(strategy: DowncastStrategy): void;
|
|
67
|
+
/**
|
|
68
|
+
* Returns list of model attribute names that should affect downcast conversion.
|
|
69
|
+
*/
|
|
70
|
+
getListAttributeNames(): Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Attaches the listener to the {@link module:engine/view/document~Document#event:delete} event and handles backspace/delete
|
|
73
|
+
* keys in and around document lists.
|
|
74
|
+
*/
|
|
75
|
+
private _setupDeleteIntegration;
|
|
76
|
+
/**
|
|
77
|
+
* Attaches a listener to the {@link module:engine/view/document~Document#event:enter} event and handles enter key press
|
|
78
|
+
* in document lists.
|
|
79
|
+
*/
|
|
80
|
+
private _setupEnterIntegration;
|
|
81
|
+
/**
|
|
82
|
+
* Attaches a listener to the {@link module:engine/view/document~Document#event:tab} event and handles tab key and tab+shift keys
|
|
83
|
+
* presses in document lists.
|
|
84
|
+
*/
|
|
85
|
+
private _setupTabIntegration;
|
|
86
|
+
/**
|
|
87
|
+
* Registers the conversion helpers for the document-list feature.
|
|
88
|
+
*/
|
|
89
|
+
private _setupConversion;
|
|
90
|
+
/**
|
|
91
|
+
* Registers model post-fixers.
|
|
92
|
+
*/
|
|
93
|
+
private _setupModelPostFixing;
|
|
94
|
+
/**
|
|
95
|
+
* Integrates the feature with the clipboard via {@link module:engine/model/model~Model#insertContent} and
|
|
96
|
+
* {@link module:engine/model/model~Model#getSelectedContent}.
|
|
97
|
+
*/
|
|
98
|
+
private _setupClipboardIntegration;
|
|
99
|
+
/**
|
|
100
|
+
* Informs editor accessibility features about keystrokes brought by the plugin.
|
|
101
|
+
*/
|
|
102
|
+
private _setupAccessibilityIntegration;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The attribute to attribute downcast strategy for UL, OL, LI elements.
|
|
106
|
+
*/
|
|
107
|
+
export interface AttributeDowncastStrategy {
|
|
108
|
+
/**
|
|
109
|
+
* The scope of the downcast (whether it applies to LI or OL/UL).
|
|
110
|
+
*/
|
|
111
|
+
scope: 'list' | 'item';
|
|
112
|
+
/**
|
|
113
|
+
* The model attribute name.
|
|
114
|
+
*/
|
|
115
|
+
attributeName: string;
|
|
116
|
+
/**
|
|
117
|
+
* Sets the property on the view element.
|
|
118
|
+
*/
|
|
119
|
+
setAttributeOnDowncast(writer: DowncastWriter, value: unknown, element: ViewElement): void;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The custom marker downcast strategy.
|
|
123
|
+
*/
|
|
124
|
+
export interface ItemMarkerDowncastStrategy {
|
|
125
|
+
/**
|
|
126
|
+
* The scope of the downcast.
|
|
127
|
+
*/
|
|
128
|
+
scope: 'itemMarker';
|
|
129
|
+
/**
|
|
130
|
+
* The model attribute name.
|
|
131
|
+
*/
|
|
132
|
+
attributeName: string;
|
|
133
|
+
/**
|
|
134
|
+
* Creates a view element for a custom item marker.
|
|
135
|
+
*/
|
|
136
|
+
createElement(writer: DowncastWriter, modelElement: Element, { dataPipeline }: {
|
|
137
|
+
dataPipeline?: boolean;
|
|
138
|
+
}): ViewElement | null;
|
|
139
|
+
/**
|
|
140
|
+
* Creates an AttributeElement to be used for wrapping a first block of a list item.
|
|
141
|
+
*/
|
|
142
|
+
createWrapperElement?(writer: DowncastWriter, modelElement: Element, { dataPipeline }: {
|
|
143
|
+
dataPipeline?: boolean;
|
|
144
|
+
}): ViewAttributeElement;
|
|
145
|
+
/**
|
|
146
|
+
* Should return true if the given list block can be wrapped with the wrapper created by `createWrapperElement()`
|
|
147
|
+
* or only the marker element should be wrapped.
|
|
148
|
+
*/
|
|
149
|
+
canWrapElement?(modelElement: Element): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Should return true if the custom marker can be injected into a given list block.
|
|
152
|
+
* Otherwise, custom marker view element is always injected before the block element.
|
|
153
|
+
*/
|
|
154
|
+
canInjectMarkerIntoElement?(modelElement: Element): boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* The downcast strategy.
|
|
158
|
+
*/
|
|
159
|
+
export type DowncastStrategy = AttributeDowncastStrategy | ItemMarkerDowncastStrategy;
|
|
160
|
+
/**
|
|
161
|
+
* Event fired on changes detected on the model list element to verify if the view representation of a list element
|
|
162
|
+
* is representing those attributes.
|
|
163
|
+
*
|
|
164
|
+
* It allows triggering a re-wrapping of a list item.
|
|
165
|
+
*
|
|
166
|
+
* @internal
|
|
167
|
+
* @eventName ~ListEditing#postFixer
|
|
168
|
+
* @param listHead The head element of a list.
|
|
169
|
+
* @param writer The writer to do changes with.
|
|
170
|
+
* @param seenIds The set of already known IDs.
|
|
171
|
+
* @returns If a post-fixer made a change of the model tree, it should return `true`.
|
|
172
|
+
*/
|
|
173
|
+
export type ListEditingPostFixerEvent = {
|
|
174
|
+
name: 'postFixer';
|
|
175
|
+
args: [
|
|
176
|
+
{
|
|
177
|
+
listNodes: ListBlocksIterable;
|
|
178
|
+
listHead: Element;
|
|
179
|
+
writer: Writer;
|
|
180
|
+
seenIds: Set<string>;
|
|
181
|
+
}
|
|
182
|
+
];
|
|
183
|
+
return: boolean;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Event fired on changes detected on the model list element to verify if the view representation of a list element
|
|
187
|
+
* is representing those attributes.
|
|
188
|
+
*
|
|
189
|
+
* It allows triggering a re-wrapping of a list item.
|
|
190
|
+
*
|
|
191
|
+
* **Note**: For convenience this event is namespaced and could be captured as `checkAttributes:list` or `checkAttributes:item`.
|
|
192
|
+
*
|
|
193
|
+
* @internal
|
|
194
|
+
* @eventName ~ListEditing#checkAttributes
|
|
195
|
+
*/
|
|
196
|
+
export type ListEditingCheckAttributesEvent = {
|
|
197
|
+
name: 'checkAttributes' | 'checkAttributes:list' | 'checkAttributes:item';
|
|
198
|
+
args: [
|
|
199
|
+
{
|
|
200
|
+
viewElement: ViewElement & {
|
|
201
|
+
id?: string;
|
|
202
|
+
};
|
|
203
|
+
modelAttributes: ListItemAttributesMap;
|
|
204
|
+
}
|
|
205
|
+
];
|
|
206
|
+
return: boolean;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Event fired on changes detected on the model list element to verify if the view representation of a list block element
|
|
210
|
+
* is representing those attributes.
|
|
211
|
+
*
|
|
212
|
+
* It allows triggering a reconversion of a list item block.
|
|
213
|
+
*
|
|
214
|
+
* @internal
|
|
215
|
+
* @eventName ~ListEditing#checkElement
|
|
216
|
+
*/
|
|
217
|
+
export type ListEditingCheckElementEvent = {
|
|
218
|
+
name: 'checkElement';
|
|
219
|
+
args: [
|
|
220
|
+
{
|
|
221
|
+
viewElement: ViewElement;
|
|
222
|
+
modelElement: Element;
|
|
223
|
+
}
|
|
224
|
+
];
|
|
225
|
+
return: boolean;
|
|
226
|
+
};
|