@ckeditor/ckeditor5-table 44.1.0 → 44.2.0-alpha.1
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/LICENSE.md +1 -1
- package/build/table.js +2 -2
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +12 -12
- package/dist/index.css.map +1 -1
- package/dist/index.js +24 -8
- package/dist/index.js.map +1 -1
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +31 -9
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/commands/insertcolumncommand.d.ts +1 -1
- package/src/commands/insertcolumncommand.js +1 -1
- package/src/commands/insertrowcommand.d.ts +1 -1
- package/src/commands/insertrowcommand.js +1 -1
- package/src/commands/inserttablecommand.d.ts +1 -1
- package/src/commands/inserttablecommand.js +1 -1
- package/src/commands/mergecellcommand.d.ts +1 -1
- package/src/commands/mergecellcommand.js +1 -1
- package/src/commands/mergecellscommand.d.ts +1 -1
- package/src/commands/mergecellscommand.js +1 -1
- package/src/commands/removecolumncommand.d.ts +1 -1
- package/src/commands/removecolumncommand.js +1 -1
- package/src/commands/removerowcommand.d.ts +1 -1
- package/src/commands/removerowcommand.js +1 -1
- package/src/commands/selectcolumncommand.d.ts +1 -1
- package/src/commands/selectcolumncommand.js +1 -1
- package/src/commands/selectrowcommand.d.ts +1 -1
- package/src/commands/selectrowcommand.js +1 -1
- package/src/commands/setheadercolumncommand.d.ts +1 -1
- package/src/commands/setheadercolumncommand.js +1 -1
- package/src/commands/setheaderrowcommand.d.ts +1 -1
- package/src/commands/setheaderrowcommand.js +1 -1
- package/src/commands/splitcellcommand.d.ts +1 -1
- package/src/commands/splitcellcommand.js +1 -1
- package/src/converters/downcast.d.ts +1 -1
- package/src/converters/downcast.js +1 -1
- package/src/converters/table-caption-post-fixer.d.ts +1 -1
- package/src/converters/table-caption-post-fixer.js +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.d.ts +1 -1
- package/src/converters/table-cell-paragraph-post-fixer.js +1 -1
- package/src/converters/table-cell-refresh-handler.d.ts +1 -1
- package/src/converters/table-cell-refresh-handler.js +1 -1
- package/src/converters/table-headings-refresh-handler.d.ts +1 -1
- package/src/converters/table-headings-refresh-handler.js +1 -1
- package/src/converters/table-layout-post-fixer.d.ts +1 -1
- package/src/converters/table-layout-post-fixer.js +1 -1
- package/src/converters/tableproperties.d.ts +1 -1
- package/src/converters/tableproperties.js +1 -1
- package/src/converters/upcasttable.d.ts +1 -1
- package/src/converters/upcasttable.js +17 -3
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/plaintableoutput.d.ts +1 -1
- package/src/plaintableoutput.js +1 -1
- package/src/table.d.ts +1 -1
- package/src/table.js +1 -1
- package/src/tablecaption/tablecaptionediting.d.ts +1 -1
- package/src/tablecaption/tablecaptionediting.js +1 -1
- package/src/tablecaption/tablecaptionui.d.ts +1 -1
- package/src/tablecaption/tablecaptionui.js +1 -1
- package/src/tablecaption/toggletablecaptioncommand.d.ts +1 -1
- package/src/tablecaption/toggletablecaptioncommand.js +1 -1
- package/src/tablecaption/utils.d.ts +1 -1
- package/src/tablecaption/utils.js +1 -1
- package/src/tablecaption.d.ts +1 -1
- package/src/tablecaption.js +1 -1
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellbackgroundcolorcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellbordercolorcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellborderstylecommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellborderstylecommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellborderwidthcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellheightcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellheightcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellhorizontalalignmentcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellpaddingcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellpaddingcommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellpropertycommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellpropertycommand.js +1 -1
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +1 -1
- package/src/tablecellproperties/commands/tablecellverticalalignmentcommand.js +1 -1
- package/src/tablecellproperties/tablecellpropertiesediting.d.ts +1 -1
- package/src/tablecellproperties/tablecellpropertiesediting.js +1 -1
- package/src/tablecellproperties/tablecellpropertiesui.d.ts +1 -1
- package/src/tablecellproperties/tablecellpropertiesui.js +1 -1
- package/src/tablecellproperties/ui/tablecellpropertiesview.d.ts +1 -1
- package/src/tablecellproperties/ui/tablecellpropertiesview.js +3 -1
- package/src/tablecellproperties.d.ts +1 -1
- package/src/tablecellproperties.js +1 -1
- package/src/tablecellwidth/commands/tablecellwidthcommand.d.ts +1 -1
- package/src/tablecellwidth/commands/tablecellwidthcommand.js +1 -1
- package/src/tablecellwidth/tablecellwidthediting.d.ts +1 -1
- package/src/tablecellwidth/tablecellwidthediting.js +1 -1
- package/src/tableclipboard.d.ts +1 -1
- package/src/tableclipboard.js +1 -1
- package/src/tablecolumnresize/constants.d.ts +1 -1
- package/src/tablecolumnresize/constants.js +1 -1
- package/src/tablecolumnresize/converters.d.ts +1 -1
- package/src/tablecolumnresize/converters.js +1 -1
- package/src/tablecolumnresize/tablecolumnresizeediting.d.ts +1 -1
- package/src/tablecolumnresize/tablecolumnresizeediting.js +1 -1
- package/src/tablecolumnresize/tablewidthscommand.d.ts +1 -1
- package/src/tablecolumnresize/tablewidthscommand.js +1 -1
- package/src/tablecolumnresize/utils.d.ts +1 -1
- package/src/tablecolumnresize/utils.js +1 -1
- package/src/tablecolumnresize.d.ts +1 -1
- package/src/tablecolumnresize.js +1 -1
- package/src/tableconfig.d.ts +1 -1
- package/src/tableconfig.js +1 -1
- package/src/tableediting.d.ts +1 -1
- package/src/tableediting.js +1 -1
- package/src/tablekeyboard.d.ts +1 -1
- package/src/tablekeyboard.js +1 -1
- package/src/tablemouse/mouseeventsobserver.d.ts +1 -1
- package/src/tablemouse/mouseeventsobserver.js +1 -1
- package/src/tablemouse.d.ts +1 -1
- package/src/tablemouse.js +1 -1
- package/src/tableproperties/commands/tablealignmentcommand.d.ts +1 -1
- package/src/tableproperties/commands/tablealignmentcommand.js +1 -1
- package/src/tableproperties/commands/tablebackgroundcolorcommand.d.ts +1 -1
- package/src/tableproperties/commands/tablebackgroundcolorcommand.js +1 -1
- package/src/tableproperties/commands/tablebordercolorcommand.d.ts +1 -1
- package/src/tableproperties/commands/tablebordercolorcommand.js +1 -1
- package/src/tableproperties/commands/tableborderstylecommand.d.ts +1 -1
- package/src/tableproperties/commands/tableborderstylecommand.js +1 -1
- package/src/tableproperties/commands/tableborderwidthcommand.d.ts +1 -1
- package/src/tableproperties/commands/tableborderwidthcommand.js +1 -1
- package/src/tableproperties/commands/tableheightcommand.d.ts +1 -1
- package/src/tableproperties/commands/tableheightcommand.js +1 -1
- package/src/tableproperties/commands/tablepropertycommand.d.ts +1 -1
- package/src/tableproperties/commands/tablepropertycommand.js +1 -1
- package/src/tableproperties/commands/tablewidthcommand.d.ts +1 -1
- package/src/tableproperties/commands/tablewidthcommand.js +1 -1
- package/src/tableproperties/tablepropertiesediting.d.ts +1 -1
- package/src/tableproperties/tablepropertiesediting.js +1 -1
- package/src/tableproperties/tablepropertiesui.d.ts +1 -1
- package/src/tableproperties/tablepropertiesui.js +1 -1
- package/src/tableproperties/ui/tablepropertiesview.d.ts +1 -1
- package/src/tableproperties/ui/tablepropertiesview.js +2 -1
- package/src/tableproperties.d.ts +1 -1
- package/src/tableproperties.js +1 -1
- package/src/tableselection.d.ts +1 -1
- package/src/tableselection.js +1 -1
- package/src/tabletoolbar.d.ts +1 -1
- package/src/tabletoolbar.js +1 -1
- package/src/tableui.d.ts +1 -1
- package/src/tableui.js +1 -1
- package/src/tableutils.d.ts +1 -1
- package/src/tableutils.js +1 -1
- package/src/tablewalker.d.ts +1 -1
- package/src/tablewalker.js +1 -1
- package/src/ui/colorinputview.d.ts +1 -1
- package/src/ui/colorinputview.js +1 -1
- package/src/ui/formrowview.d.ts +1 -1
- package/src/ui/formrowview.js +1 -1
- package/src/ui/inserttableview.d.ts +1 -1
- package/src/ui/inserttableview.js +1 -1
- package/src/utils/common.d.ts +1 -1
- package/src/utils/common.js +1 -1
- package/src/utils/structure.d.ts +1 -1
- package/src/utils/structure.js +1 -1
- package/src/utils/table-properties.d.ts +1 -1
- package/src/utils/table-properties.js +1 -1
- package/src/utils/ui/contextualballoon.d.ts +1 -1
- package/src/utils/ui/contextualballoon.js +1 -1
- package/src/utils/ui/table-properties.d.ts +1 -1
- package/src/utils/ui/table-properties.js +3 -1
- package/src/utils/ui/widget.d.ts +1 -1
- package/src/utils/ui/widget.js +1 -1
- package/theme/colorinput.css +1 -1
- package/theme/form.css +1 -1
- package/theme/formrow.css +1 -1
- package/theme/inserttable.css +1 -1
- package/theme/table.css +1 -1
- package/theme/tablecaption.css +1 -1
- package/theme/tablecellproperties.css +1 -1
- package/theme/tablecolumnresize.css +1 -1
- package/theme/tableediting.css +1 -1
- package/theme/tableform.css +1 -1
- package/theme/tableproperties.css +1 -1
- package/theme/tableselection.css +1 -1
- package/dist/augmentation.d.ts +0 -80
- package/dist/commands/insertcolumncommand.d.ts +0 -59
- package/dist/commands/insertrowcommand.d.ts +0 -58
- package/dist/commands/inserttablecommand.d.ts +0 -48
- package/dist/commands/mergecellcommand.d.ts +0 -72
- package/dist/commands/mergecellscommand.d.ts +0 -32
- package/dist/commands/removecolumncommand.d.ts +0 -33
- package/dist/commands/removerowcommand.d.ts +0 -33
- package/dist/commands/selectcolumncommand.d.ts +0 -37
- package/dist/commands/selectrowcommand.d.ts +0 -37
- package/dist/commands/setheadercolumncommand.d.ts +0 -54
- package/dist/commands/setheaderrowcommand.d.ts +0 -57
- package/dist/commands/splitcellcommand.d.ts +0 -47
- package/dist/converters/downcast.d.ts +0 -67
- package/dist/converters/table-caption-post-fixer.d.ts +0 -24
- package/dist/converters/table-cell-paragraph-post-fixer.d.ts +0 -36
- package/dist/converters/table-cell-refresh-handler.d.ts +0 -22
- package/dist/converters/table-headings-refresh-handler.d.ts +0 -21
- package/dist/converters/table-layout-post-fixer.d.ts +0 -230
- package/dist/converters/tableproperties.d.ts +0 -58
- package/dist/converters/upcasttable.d.ts +0 -53
- package/dist/index.d.ts +0 -64
- package/dist/plaintableoutput.d.ts +0 -34
- package/dist/table.d.ts +0 -48
- package/dist/tablecaption/tablecaptionediting.d.ts +0 -71
- package/dist/tablecaption/tablecaptionui.d.ts +0 -29
- package/dist/tablecaption/toggletablecaptioncommand.d.ts +0 -72
- package/dist/tablecaption/utils.d.ts +0 -42
- package/dist/tablecaption.d.ts +0 -32
- package/dist/tablecellproperties/commands/tablecellbackgroundcolorcommand.d.ts +0 -36
- package/dist/tablecellproperties/commands/tablecellbordercolorcommand.d.ts +0 -41
- package/dist/tablecellproperties/commands/tablecellborderstylecommand.d.ts +0 -41
- package/dist/tablecellproperties/commands/tablecellborderwidthcommand.d.ts +0 -55
- package/dist/tablecellproperties/commands/tablecellheightcommand.d.ts +0 -50
- package/dist/tablecellproperties/commands/tablecellhorizontalalignmentcommand.d.ts +0 -36
- package/dist/tablecellproperties/commands/tablecellpaddingcommand.d.ts +0 -55
- package/dist/tablecellproperties/commands/tablecellpropertycommand.d.ts +0 -66
- package/dist/tablecellproperties/commands/tablecellverticalalignmentcommand.d.ts +0 -44
- package/dist/tablecellproperties/tablecellpropertiesediting.d.ts +0 -51
- package/dist/tablecellproperties/tablecellpropertiesui.d.ts +0 -120
- package/dist/tablecellproperties/ui/tablecellpropertiesview.d.ts +0 -232
- package/dist/tablecellproperties.d.ts +0 -38
- package/dist/tablecellwidth/commands/tablecellwidthcommand.d.ts +0 -50
- package/dist/tablecellwidth/tablecellwidthediting.d.ts +0 -37
- package/dist/tableclipboard.d.ts +0 -78
- package/dist/tablecolumnresize/constants.d.ts +0 -24
- package/dist/tablecolumnresize/converters.d.ts +0 -22
- package/dist/tablecolumnresize/tablecolumnresizeediting.d.ts +0 -147
- package/dist/tablecolumnresize/tablewidthscommand.d.ts +0 -42
- package/dist/tablecolumnresize/utils.d.ts +0 -152
- package/dist/tablecolumnresize.d.ts +0 -34
- package/dist/tableconfig.d.ts +0 -347
- package/dist/tableediting.d.ts +0 -106
- package/dist/tablekeyboard.d.ts +0 -76
- package/dist/tablemouse/mouseeventsobserver.d.ts +0 -66
- package/dist/tablemouse.d.ts +0 -56
- package/dist/tableproperties/commands/tablealignmentcommand.d.ts +0 -36
- package/dist/tableproperties/commands/tablebackgroundcolorcommand.d.ts +0 -36
- package/dist/tableproperties/commands/tablebordercolorcommand.d.ts +0 -41
- package/dist/tableproperties/commands/tableborderstylecommand.d.ts +0 -41
- package/dist/tableproperties/commands/tableborderwidthcommand.d.ts +0 -55
- package/dist/tableproperties/commands/tableheightcommand.d.ts +0 -50
- package/dist/tableproperties/commands/tablepropertycommand.d.ts +0 -65
- package/dist/tableproperties/commands/tablewidthcommand.d.ts +0 -50
- package/dist/tableproperties/tablepropertiesediting.d.ts +0 -48
- package/dist/tableproperties/tablepropertiesui.d.ts +0 -122
- package/dist/tableproperties/ui/tablepropertiesview.d.ts +0 -211
- package/dist/tableproperties.d.ts +0 -38
- package/dist/tableselection.d.ts +0 -115
- package/dist/tabletoolbar.d.ts +0 -40
- package/dist/tableui.d.ts +0 -62
- package/dist/tableutils.d.ts +0 -456
- package/dist/tablewalker.d.ts +0 -366
- package/dist/ui/colorinputview.d.ts +0 -144
- package/dist/ui/formrowview.d.ts +0 -65
- package/dist/ui/inserttableview.d.ts +0 -85
- package/dist/utils/common.d.ts +0 -50
- package/dist/utils/structure.d.ts +0 -249
- package/dist/utils/table-properties.d.ts +0 -101
- package/dist/utils/ui/contextualballoon.d.ts +0 -38
- package/dist/utils/ui/table-properties.d.ts +0 -199
- package/dist/utils/ui/widget.d.ts +0 -24
package/dist/utils/common.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module table/utils/common
|
|
11
|
-
*/
|
|
12
|
-
import type { Conversion, Element, Item, Position, Schema, Writer, DocumentSelection } from 'ckeditor5/src/engine.js';
|
|
13
|
-
import type TableUtils from '../tableutils.js';
|
|
14
|
-
/**
|
|
15
|
-
* A common method to update the numeric value. If a value is the default one, it will be unset.
|
|
16
|
-
*
|
|
17
|
-
* @param key An attribute key.
|
|
18
|
-
* @param value The new attribute value.
|
|
19
|
-
* @param item A model item on which the attribute will be set.
|
|
20
|
-
* @param defaultValue The default attribute value. If a value is lower or equal, it will be unset.
|
|
21
|
-
*/
|
|
22
|
-
export declare function updateNumericAttribute(key: string, value: unknown, item: Item, writer: Writer, defaultValue?: unknown): void;
|
|
23
|
-
/**
|
|
24
|
-
* A common method to create an empty table cell. It creates a proper model structure as a table cell must have at least one block inside.
|
|
25
|
-
*
|
|
26
|
-
* @param writer The model writer.
|
|
27
|
-
* @param insertPosition The position at which the table cell should be inserted.
|
|
28
|
-
* @param attributes The element attributes.
|
|
29
|
-
* @returns Created table cell.
|
|
30
|
-
*/
|
|
31
|
-
export declare function createEmptyTableCell(writer: Writer, insertPosition: Position, attributes?: Record<string, unknown>): Element;
|
|
32
|
-
/**
|
|
33
|
-
* Checks if a table cell belongs to the heading column section.
|
|
34
|
-
*/
|
|
35
|
-
export declare function isHeadingColumnCell(tableUtils: TableUtils, tableCell: Element): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Enables conversion for an attribute for simple view-model mappings.
|
|
38
|
-
*
|
|
39
|
-
* @param options.defaultValue The default value for the specified `modelAttribute`.
|
|
40
|
-
*/
|
|
41
|
-
export declare function enableProperty(schema: Schema, conversion: Conversion, options: {
|
|
42
|
-
modelAttribute: string;
|
|
43
|
-
styleName: string;
|
|
44
|
-
defaultValue: string;
|
|
45
|
-
reduceBoxSides?: boolean;
|
|
46
|
-
}): void;
|
|
47
|
-
/**
|
|
48
|
-
* Depending on the position of the selection we either return the table under cursor or look for the table higher in the hierarchy.
|
|
49
|
-
*/
|
|
50
|
-
export declare function getSelectionAffectedTable(selection: DocumentSelection): Element;
|
|
@@ -1,249 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module table/utils/structure
|
|
11
|
-
*/
|
|
12
|
-
import type { Element, Writer } from 'ckeditor5/src/engine.js';
|
|
13
|
-
import { type TableSlot } from '../tablewalker.js';
|
|
14
|
-
import type TableUtils from '../tableutils.js';
|
|
15
|
-
/**
|
|
16
|
-
* Returns a cropped table according to given dimensions.
|
|
17
|
-
|
|
18
|
-
* To return a cropped table that starts at first row and first column and end in third row and column:
|
|
19
|
-
*
|
|
20
|
-
* ```ts
|
|
21
|
-
* const croppedTable = cropTableToDimensions( table, {
|
|
22
|
-
* startRow: 1,
|
|
23
|
-
* endRow: 3,
|
|
24
|
-
* startColumn: 1,
|
|
25
|
-
* endColumn: 3
|
|
26
|
-
* }, writer );
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* Calling the code above for the table below:
|
|
30
|
-
*
|
|
31
|
-
* 0 1 2 3 4 0 1 2
|
|
32
|
-
* ┌───┬───┬───┬───┬───┐
|
|
33
|
-
* 0 │ a │ b │ c │ d │ e │
|
|
34
|
-
* ├───┴───┤ ├───┴───┤ ┌───┬───┬───┐
|
|
35
|
-
* 1 │ f │ │ g │ │ │ │ g │ 0
|
|
36
|
-
* ├───┬───┴───┼───┬───┤ will return: ├───┴───┼───┤
|
|
37
|
-
* 2 │ h │ i │ j │ k │ │ i │ j │ 1
|
|
38
|
-
* ├───┤ ├───┤ │ │ ├───┤
|
|
39
|
-
* 3 │ l │ │ m │ │ │ │ m │ 2
|
|
40
|
-
* ├───┼───┬───┤ ├───┤ └───────┴───┘
|
|
41
|
-
* 4 │ n │ o │ p │ │ q │
|
|
42
|
-
* └───┴───┴───┴───┴───┘
|
|
43
|
-
*/
|
|
44
|
-
export declare function cropTableToDimensions(sourceTable: Element, cropDimensions: {
|
|
45
|
-
startRow: number;
|
|
46
|
-
startColumn: number;
|
|
47
|
-
endRow: number;
|
|
48
|
-
endColumn: number;
|
|
49
|
-
}, writer: Writer): Element;
|
|
50
|
-
/**
|
|
51
|
-
* Returns slot info of cells that starts above and overlaps a given row.
|
|
52
|
-
*
|
|
53
|
-
* In a table below, passing `overlapRow = 3`
|
|
54
|
-
*
|
|
55
|
-
* ┌───┬───┬───┬───┬───┐
|
|
56
|
-
* 0 │ a │ b │ c │ d │ e │
|
|
57
|
-
* │ ├───┼───┼───┼───┤
|
|
58
|
-
* 1 │ │ f │ g │ h │ i │
|
|
59
|
-
* ├───┤ ├───┼───┤ │
|
|
60
|
-
* 2 │ j │ │ k │ l │ │
|
|
61
|
-
* │ │ │ ├───┼───┤
|
|
62
|
-
* 3 │ │ │ │ m │ n │ <- overlap row to check
|
|
63
|
-
* ├───┼───┤ │ ├───│
|
|
64
|
-
* 4 │ o │ p │ │ │ q │
|
|
65
|
-
* └───┴───┴───┴───┴───┘
|
|
66
|
-
*
|
|
67
|
-
* will return slot info for cells: "j", "f", "k".
|
|
68
|
-
*
|
|
69
|
-
* @param table The table to check.
|
|
70
|
-
* @param overlapRow The index of the row to check.
|
|
71
|
-
* @param startRow row to start analysis. Use it when it is known that the cells above that row will not overlap. Default value is 0.
|
|
72
|
-
*/
|
|
73
|
-
export declare function getVerticallyOverlappingCells(table: Element, overlapRow: number, startRow?: number): Array<TableSlot>;
|
|
74
|
-
/**
|
|
75
|
-
* Splits the table cell horizontally.
|
|
76
|
-
*
|
|
77
|
-
* @returns Created table cell, if any were created.
|
|
78
|
-
*/
|
|
79
|
-
export declare function splitHorizontally(tableCell: Element, splitRow: number, writer: Writer): Element | null;
|
|
80
|
-
/**
|
|
81
|
-
* Returns slot info of cells that starts before and overlaps a given column.
|
|
82
|
-
*
|
|
83
|
-
* In a table below, passing `overlapColumn = 3`
|
|
84
|
-
*
|
|
85
|
-
* 0 1 2 3 4
|
|
86
|
-
* ┌───────┬───────┬───┐
|
|
87
|
-
* │ a │ b │ c │
|
|
88
|
-
* │───┬───┴───────┼───┤
|
|
89
|
-
* │ d │ e │ f │
|
|
90
|
-
* ├───┼───┬───────┴───┤
|
|
91
|
-
* │ g │ h │ i │
|
|
92
|
-
* ├───┼───┼───┬───────┤
|
|
93
|
-
* │ j │ k │ l │ m │
|
|
94
|
-
* ├───┼───┴───┼───┬───┤
|
|
95
|
-
* │ n │ o │ p │ q │
|
|
96
|
-
* └───┴───────┴───┴───┘
|
|
97
|
-
* ^
|
|
98
|
-
* Overlap column to check
|
|
99
|
-
*
|
|
100
|
-
* will return slot info for cells: "b", "e", "i".
|
|
101
|
-
*
|
|
102
|
-
* @param table The table to check.
|
|
103
|
-
* @param overlapColumn The index of the column to check.
|
|
104
|
-
*/
|
|
105
|
-
export declare function getHorizontallyOverlappingCells(table: Element, overlapColumn: number): Array<TableSlot>;
|
|
106
|
-
/**
|
|
107
|
-
* Splits the table cell vertically.
|
|
108
|
-
*
|
|
109
|
-
* @param columnIndex The table cell column index.
|
|
110
|
-
* @param splitColumn The index of column to split cell on.
|
|
111
|
-
* @returns Created table cell.
|
|
112
|
-
*/
|
|
113
|
-
export declare function splitVertically(tableCell: Element, columnIndex: number, splitColumn: number, writer: Writer): Element;
|
|
114
|
-
/**
|
|
115
|
-
* Adjusts table cell dimensions to not exceed limit row and column.
|
|
116
|
-
*
|
|
117
|
-
* If table cell width (or height) covers a column (or row) that is after a limit column (or row)
|
|
118
|
-
* this method will trim "colspan" (or "rowspan") attribute so the table cell will fit in a defined limits.
|
|
119
|
-
*/
|
|
120
|
-
export declare function trimTableCellIfNeeded(tableCell: Element, cellRow: number, cellColumn: number, limitRow: number, limitColumn: number, writer: Writer): void;
|
|
121
|
-
/**
|
|
122
|
-
* Removes columns that have no cells anchored.
|
|
123
|
-
*
|
|
124
|
-
* In table below:
|
|
125
|
-
*
|
|
126
|
-
* +----+----+----+----+----+----+----+
|
|
127
|
-
* | 00 | 01 | 03 | 04 | 06 |
|
|
128
|
-
* +----+----+----+----+ +----+
|
|
129
|
-
* | 10 | 11 | 13 | | 16 |
|
|
130
|
-
* +----+----+----+----+----+----+----+
|
|
131
|
-
* | 20 | 21 | 23 | 24 | 26 |
|
|
132
|
-
* +----+----+----+----+----+----+----+
|
|
133
|
-
* ^--- empty ---^
|
|
134
|
-
*
|
|
135
|
-
* Will remove columns 2 and 5.
|
|
136
|
-
*
|
|
137
|
-
* **Note:** This is a low-level helper method for clearing invalid model state when doing table modifications.
|
|
138
|
-
* To remove a column from a table use {@link module:table/tableutils~TableUtils#removeColumns `TableUtils.removeColumns()`}.
|
|
139
|
-
*
|
|
140
|
-
* @internal
|
|
141
|
-
* @returns True if removed some columns.
|
|
142
|
-
*/
|
|
143
|
-
export declare function removeEmptyColumns(table: Element, tableUtils: TableUtils): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Removes rows that have no cells anchored.
|
|
146
|
-
*
|
|
147
|
-
* In table below:
|
|
148
|
-
*
|
|
149
|
-
* +----+----+----+
|
|
150
|
-
* | 00 | 01 | 02 |
|
|
151
|
-
* +----+----+----+
|
|
152
|
-
* | 10 | 11 | 12 |
|
|
153
|
-
* + + + +
|
|
154
|
-
* | | | | <-- empty
|
|
155
|
-
* +----+----+----+
|
|
156
|
-
* | 30 | 31 | 32 |
|
|
157
|
-
* +----+----+----+
|
|
158
|
-
* | 40 | 42 |
|
|
159
|
-
* + + +
|
|
160
|
-
* | | | <-- empty
|
|
161
|
-
* +----+----+----+
|
|
162
|
-
* | 60 | 61 | 62 |
|
|
163
|
-
* +----+----+----+
|
|
164
|
-
*
|
|
165
|
-
* Will remove rows 2 and 5.
|
|
166
|
-
*
|
|
167
|
-
* **Note:** This is a low-level helper method for clearing invalid model state when doing table modifications.
|
|
168
|
-
* To remove a row from a table use {@link module:table/tableutils~TableUtils#removeRows `TableUtils.removeRows()`}.
|
|
169
|
-
*
|
|
170
|
-
* @internal
|
|
171
|
-
* @returns True if removed some rows.
|
|
172
|
-
*/
|
|
173
|
-
export declare function removeEmptyRows(table: Element, tableUtils: TableUtils): boolean;
|
|
174
|
-
/**
|
|
175
|
-
* Removes rows and columns that have no cells anchored.
|
|
176
|
-
*
|
|
177
|
-
* In table below:
|
|
178
|
-
*
|
|
179
|
-
* +----+----+----+----+
|
|
180
|
-
* | 00 | 02 |
|
|
181
|
-
* +----+----+ +
|
|
182
|
-
* | 10 | |
|
|
183
|
-
* +----+----+----+----+
|
|
184
|
-
* | 20 | 22 | 23 |
|
|
185
|
-
* + + + +
|
|
186
|
-
* | | | | <-- empty row
|
|
187
|
-
* +----+----+----+----+
|
|
188
|
-
* ^--- empty column
|
|
189
|
-
*
|
|
190
|
-
* Will remove row 3 and column 1.
|
|
191
|
-
*
|
|
192
|
-
* **Note:** This is a low-level helper method for clearing invalid model state when doing table modifications.
|
|
193
|
-
* To remove a rows from a table use {@link module:table/tableutils~TableUtils#removeRows `TableUtils.removeRows()`} and
|
|
194
|
-
* {@link module:table/tableutils~TableUtils#removeColumns `TableUtils.removeColumns()`} to remove a column.
|
|
195
|
-
*
|
|
196
|
-
* @internal
|
|
197
|
-
*/
|
|
198
|
-
export declare function removeEmptyRowsColumns(table: Element, tableUtils: TableUtils): void;
|
|
199
|
-
/**
|
|
200
|
-
* Returns adjusted last row index if selection covers part of a row with empty slots (spanned by other cells).
|
|
201
|
-
* The `dimensions.lastRow` is equal to last row index but selection might be bigger.
|
|
202
|
-
*
|
|
203
|
-
* This happens *only* on rectangular selection so we analyze a case like this:
|
|
204
|
-
*
|
|
205
|
-
* +---+---+---+---+
|
|
206
|
-
* 0 | a | b | c | d |
|
|
207
|
-
* + + +---+---+
|
|
208
|
-
* 1 | | e | f | g |
|
|
209
|
-
* + +---+ +---+
|
|
210
|
-
* 2 | | h | | i | <- last row, each cell has rowspan = 2,
|
|
211
|
-
* + + + + + so we need to return 3, not 2
|
|
212
|
-
* 3 | | | | |
|
|
213
|
-
* +---+---+---+---+
|
|
214
|
-
*
|
|
215
|
-
* @returns Adjusted last row index.
|
|
216
|
-
*/
|
|
217
|
-
export declare function adjustLastRowIndex(table: Element, dimensions: {
|
|
218
|
-
firstRow: number;
|
|
219
|
-
firstColumn: number;
|
|
220
|
-
lastRow: number;
|
|
221
|
-
lastColumn: number;
|
|
222
|
-
}): number;
|
|
223
|
-
/**
|
|
224
|
-
* Returns adjusted last column index if selection covers part of a column with empty slots (spanned by other cells).
|
|
225
|
-
* The `dimensions.lastColumn` is equal to last column index but selection might be bigger.
|
|
226
|
-
*
|
|
227
|
-
* This happens *only* on rectangular selection so we analyze a case like this:
|
|
228
|
-
*
|
|
229
|
-
* 0 1 2 3
|
|
230
|
-
* +---+---+---+---+
|
|
231
|
-
* | a |
|
|
232
|
-
* +---+---+---+---+
|
|
233
|
-
* | b | c | d |
|
|
234
|
-
* +---+---+---+---+
|
|
235
|
-
* | e | f |
|
|
236
|
-
* +---+---+---+---+
|
|
237
|
-
* | g | h |
|
|
238
|
-
* +---+---+---+---+
|
|
239
|
-
* ^
|
|
240
|
-
* last column, each cell has colspan = 2, so we need to return 3, not 2
|
|
241
|
-
*
|
|
242
|
-
* @returns Adjusted last column index.
|
|
243
|
-
*/
|
|
244
|
-
export declare function adjustLastColumnIndex(table: Element, dimensions: {
|
|
245
|
-
firstRow: number;
|
|
246
|
-
firstColumn: number;
|
|
247
|
-
lastRow: number;
|
|
248
|
-
lastColumn: number;
|
|
249
|
-
}): number;
|
|
@@ -1,101 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module table/utils/table-properties
|
|
11
|
-
*/
|
|
12
|
-
import type { BoxSides } from 'ckeditor5/src/engine.js';
|
|
13
|
-
/**
|
|
14
|
-
* Returns a string if all four values of box sides are equal.
|
|
15
|
-
*
|
|
16
|
-
* If a string is passed, it is treated as a single value (pass-through).
|
|
17
|
-
*
|
|
18
|
-
* ```ts
|
|
19
|
-
* // Returns 'foo':
|
|
20
|
-
* getSingleValue( { top: 'foo', right: 'foo', bottom: 'foo', left: 'foo' } );
|
|
21
|
-
* getSingleValue( 'foo' );
|
|
22
|
-
*
|
|
23
|
-
* // Returns undefined:
|
|
24
|
-
* getSingleValue( { top: 'foo', right: 'foo', bottom: 'bar', left: 'foo' } );
|
|
25
|
-
* getSingleValue( { top: 'foo', right: 'foo' } );
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function getSingleValue(objectOrString: BoxSides | string | undefined): string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Adds a unit to a value if the value is a number or a string representing a number.
|
|
31
|
-
*
|
|
32
|
-
* **Note**: It does nothing to non-numeric values.
|
|
33
|
-
*
|
|
34
|
-
* ```ts
|
|
35
|
-
* getSingleValue( 25, 'px' ); // '25px'
|
|
36
|
-
* getSingleValue( 25, 'em' ); // '25em'
|
|
37
|
-
* getSingleValue( '25em', 'px' ); // '25em'
|
|
38
|
-
* getSingleValue( 'foo', 'px' ); // 'foo'
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @param defaultUnit A default unit added to a numeric value.
|
|
42
|
-
*/
|
|
43
|
-
export declare function addDefaultUnitToNumericValue(value: string | number | undefined, defaultUnit: string): string | number | undefined;
|
|
44
|
-
export interface NormalizedDefaultProperties {
|
|
45
|
-
borderStyle: string;
|
|
46
|
-
borderWidth: string;
|
|
47
|
-
borderColor: string;
|
|
48
|
-
backgroundColor: string;
|
|
49
|
-
width: string;
|
|
50
|
-
height: string;
|
|
51
|
-
alignment?: string;
|
|
52
|
-
padding?: string;
|
|
53
|
-
verticalAlignment?: string;
|
|
54
|
-
horizontalAlignment?: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Options used to determine which properties should be added to the normalized configuration.
|
|
58
|
-
*/
|
|
59
|
-
export type NormalizeTableDefaultPropertiesOptions = {
|
|
60
|
-
/**
|
|
61
|
-
* Whether the "alignment" property should be added.
|
|
62
|
-
*/
|
|
63
|
-
includeAlignmentProperty?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Whether the "padding" property should be added.
|
|
66
|
-
*/
|
|
67
|
-
includePaddingProperty?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the "verticalAlignment" property should be added.
|
|
70
|
-
*/
|
|
71
|
-
includeVerticalAlignmentProperty?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Whether the "horizontalAlignment" property should be added.
|
|
74
|
-
*/
|
|
75
|
-
includeHorizontalAlignmentProperty?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Whether the content is right-to-left.
|
|
78
|
-
*/
|
|
79
|
-
isRightToLeftContent?: boolean;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Returns the normalized configuration.
|
|
83
|
-
*
|
|
84
|
-
* @param config The configuration to normalize.
|
|
85
|
-
* @param options Options used to determine which properties should be added.
|
|
86
|
-
*/
|
|
87
|
-
export declare function getNormalizedDefaultProperties(config: Partial<NormalizedDefaultProperties> | undefined, options?: NormalizeTableDefaultPropertiesOptions): NormalizedDefaultProperties;
|
|
88
|
-
/**
|
|
89
|
-
* Returns the normalized default table properties.
|
|
90
|
-
*
|
|
91
|
-
* @param config The configuration to normalize.
|
|
92
|
-
* @param options Options used to determine which properties should be added.
|
|
93
|
-
*/
|
|
94
|
-
export declare function getNormalizedDefaultTableProperties(config: Partial<NormalizedDefaultProperties> | undefined, options?: NormalizeTableDefaultPropertiesOptions): NormalizedDefaultProperties;
|
|
95
|
-
/**
|
|
96
|
-
* Returns the normalized default cell properties.
|
|
97
|
-
*
|
|
98
|
-
* @param config The configuration to normalize.
|
|
99
|
-
* @param options Options used to determine which properties should be added.
|
|
100
|
-
*/
|
|
101
|
-
export declare function getNormalizedDefaultCellProperties(config: Partial<NormalizedDefaultProperties> | undefined, options?: NormalizeTableDefaultPropertiesOptions): NormalizedDefaultProperties;
|
|
@@ -1,38 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module table/utils/ui/contextualballoon
|
|
11
|
-
*/
|
|
12
|
-
import { type PositionOptions } from 'ckeditor5/src/utils.js';
|
|
13
|
-
import type { Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
/**
|
|
15
|
-
* A helper utility that positions the
|
|
16
|
-
* {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} instance
|
|
17
|
-
* with respect to the table in the editor content, if one is selected.
|
|
18
|
-
*
|
|
19
|
-
* @param editor The editor instance.
|
|
20
|
-
* @param target Either "cell" or "table". Determines the target the balloon will be attached to.
|
|
21
|
-
*/
|
|
22
|
-
export declare function repositionContextualBalloon(editor: Editor, target: string): void;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the positioning options that control the geometry of the
|
|
25
|
-
* {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} with respect
|
|
26
|
-
* to the selected table in the editor content.
|
|
27
|
-
*
|
|
28
|
-
* @param editor The editor instance.
|
|
29
|
-
*/
|
|
30
|
-
export declare function getBalloonTablePositionData(editor: Editor): Partial<PositionOptions>;
|
|
31
|
-
/**
|
|
32
|
-
* Returns the positioning options that control the geometry of the
|
|
33
|
-
* {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} with respect
|
|
34
|
-
* to the selected table cell in the editor content.
|
|
35
|
-
*
|
|
36
|
-
* @param editor The editor instance.
|
|
37
|
-
*/
|
|
38
|
-
export declare function getBalloonCellPositionData(editor: Editor): Partial<PositionOptions>;
|
|
@@ -1,199 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module table/utils/ui/table-properties
|
|
11
|
-
*/
|
|
12
|
-
import { type ColorOption, type LabeledFieldView, type ListDropdownItemDefinition, type NormalizedColorOption, type ToolbarView, type View, type ColorPickerConfig } from 'ckeditor5/src/ui.js';
|
|
13
|
-
import { Collection, type LocaleTranslate } from 'ckeditor5/src/utils.js';
|
|
14
|
-
import type TableCellPropertiesView from '../../tablecellproperties/ui/tablecellpropertiesview.js';
|
|
15
|
-
import type TablePropertiesView from '../../tableproperties/ui/tablepropertiesview.js';
|
|
16
|
-
import ColorInputView from '../../ui/colorinputview.js';
|
|
17
|
-
/**
|
|
18
|
-
* Returns an object containing pairs of CSS border style values and their localized UI
|
|
19
|
-
* labels. Used by {@link module:table/tablecellproperties/ui/tablecellpropertiesview~TableCellPropertiesView}
|
|
20
|
-
* and {@link module:table/tableproperties/ui/tablepropertiesview~TablePropertiesView}.
|
|
21
|
-
*
|
|
22
|
-
* @param t The "t" function provided by the editor that is used to localize strings.
|
|
23
|
-
*/
|
|
24
|
-
export declare function getBorderStyleLabels(t: LocaleTranslate): Record<string, string>;
|
|
25
|
-
/**
|
|
26
|
-
* Returns a localized error string that can be displayed next to color (background, border)
|
|
27
|
-
* fields that have an invalid value.
|
|
28
|
-
*
|
|
29
|
-
* @param t The "t" function provided by the editor that is used to localize strings.
|
|
30
|
-
*/
|
|
31
|
-
export declare function getLocalizedColorErrorText(t: LocaleTranslate): string;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a localized error string that can be displayed next to length (padding, border width)
|
|
34
|
-
* fields that have an invalid value.
|
|
35
|
-
*
|
|
36
|
-
* @param t The "t" function provided by the editor that is used to localize strings.
|
|
37
|
-
*/
|
|
38
|
-
export declare function getLocalizedLengthErrorText(t: LocaleTranslate): string;
|
|
39
|
-
/**
|
|
40
|
-
* Returns `true` when the passed value is an empty string or a valid CSS color expression.
|
|
41
|
-
* Otherwise, `false` is returned.
|
|
42
|
-
*
|
|
43
|
-
* See {@link module:engine/view/styles/utils~isColor}.
|
|
44
|
-
*/
|
|
45
|
-
export declare function colorFieldValidator(value: string): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Returns `true` when the passed value is an empty string, a number without a unit or a valid CSS length expression.
|
|
48
|
-
* Otherwise, `false` is returned.
|
|
49
|
-
*
|
|
50
|
-
* See {@link module:engine/view/styles/utils~isLength}.
|
|
51
|
-
* See {@link module:engine/view/styles/utils~isPercentage}.
|
|
52
|
-
*/
|
|
53
|
-
export declare function lengthFieldValidator(value: string): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Returns `true` when the passed value is an empty string, a number without a unit or a valid CSS length expression.
|
|
56
|
-
* Otherwise, `false` is returned.
|
|
57
|
-
*
|
|
58
|
-
* See {@link module:engine/view/styles/utils~isLength}.
|
|
59
|
-
*/
|
|
60
|
-
export declare function lineWidthFieldValidator(value: string): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Generates item definitions for a UI dropdown that allows changing the border style of a table or a table cell.
|
|
63
|
-
*
|
|
64
|
-
* @param defaultStyle The default border.
|
|
65
|
-
*/
|
|
66
|
-
export declare function getBorderStyleDefinitions(view: TableCellPropertiesView | TablePropertiesView, defaultStyle: string): Collection<ListDropdownItemDefinition>;
|
|
67
|
-
/**
|
|
68
|
-
* A helper that fills a toolbar with buttons that:
|
|
69
|
-
*
|
|
70
|
-
* * have some labels,
|
|
71
|
-
* * have some icons,
|
|
72
|
-
* * set a certain UI view property value upon execution.
|
|
73
|
-
*
|
|
74
|
-
* @param nameToValue A function that maps a button name to a value. By default names are the same as values.
|
|
75
|
-
*/
|
|
76
|
-
export declare function fillToolbar<TView extends View, TPropertyName extends keyof TView>(options: {
|
|
77
|
-
view: TView;
|
|
78
|
-
icons: Record<string, string>;
|
|
79
|
-
toolbar: ToolbarView;
|
|
80
|
-
labels: Record<number, string>;
|
|
81
|
-
propertyName: TPropertyName;
|
|
82
|
-
nameToValue?: (name: string) => string;
|
|
83
|
-
defaultValue?: string;
|
|
84
|
-
}): void;
|
|
85
|
-
/**
|
|
86
|
-
* A default color palette used by various user interfaces related to tables, for instance,
|
|
87
|
-
* by {@link module:table/tablecellproperties/tablecellpropertiesui~TableCellPropertiesUI} or
|
|
88
|
-
* {@link module:table/tableproperties/tablepropertiesui~TablePropertiesUI}.
|
|
89
|
-
*
|
|
90
|
-
* The color palette follows the {@link module:table/tableconfig~TableColorConfig table color configuration format}
|
|
91
|
-
* and contains the following color definitions:
|
|
92
|
-
*
|
|
93
|
-
* ```ts
|
|
94
|
-
* const defaultColors = [
|
|
95
|
-
* {
|
|
96
|
-
* color: 'hsl(0, 0%, 0%)',
|
|
97
|
-
* label: 'Black'
|
|
98
|
-
* },
|
|
99
|
-
* {
|
|
100
|
-
* color: 'hsl(0, 0%, 30%)',
|
|
101
|
-
* label: 'Dim grey'
|
|
102
|
-
* },
|
|
103
|
-
* {
|
|
104
|
-
* color: 'hsl(0, 0%, 60%)',
|
|
105
|
-
* label: 'Grey'
|
|
106
|
-
* },
|
|
107
|
-
* {
|
|
108
|
-
* color: 'hsl(0, 0%, 90%)',
|
|
109
|
-
* label: 'Light grey'
|
|
110
|
-
* },
|
|
111
|
-
* {
|
|
112
|
-
* color: 'hsl(0, 0%, 100%)',
|
|
113
|
-
* label: 'White',
|
|
114
|
-
* hasBorder: true
|
|
115
|
-
* },
|
|
116
|
-
* {
|
|
117
|
-
* color: 'hsl(0, 75%, 60%)',
|
|
118
|
-
* label: 'Red'
|
|
119
|
-
* },
|
|
120
|
-
* {
|
|
121
|
-
* color: 'hsl(30, 75%, 60%)',
|
|
122
|
-
* label: 'Orange'
|
|
123
|
-
* },
|
|
124
|
-
* {
|
|
125
|
-
* color: 'hsl(60, 75%, 60%)',
|
|
126
|
-
* label: 'Yellow'
|
|
127
|
-
* },
|
|
128
|
-
* {
|
|
129
|
-
* color: 'hsl(90, 75%, 60%)',
|
|
130
|
-
* label: 'Light green'
|
|
131
|
-
* },
|
|
132
|
-
* {
|
|
133
|
-
* color: 'hsl(120, 75%, 60%)',
|
|
134
|
-
* label: 'Green'
|
|
135
|
-
* },
|
|
136
|
-
* {
|
|
137
|
-
* color: 'hsl(150, 75%, 60%)',
|
|
138
|
-
* label: 'Aquamarine'
|
|
139
|
-
* },
|
|
140
|
-
* {
|
|
141
|
-
* color: 'hsl(180, 75%, 60%)',
|
|
142
|
-
* label: 'Turquoise'
|
|
143
|
-
* },
|
|
144
|
-
* {
|
|
145
|
-
* color: 'hsl(210, 75%, 60%)',
|
|
146
|
-
* label: 'Light blue'
|
|
147
|
-
* },
|
|
148
|
-
* {
|
|
149
|
-
* color: 'hsl(240, 75%, 60%)',
|
|
150
|
-
* label: 'Blue'
|
|
151
|
-
* },
|
|
152
|
-
* {
|
|
153
|
-
* color: 'hsl(270, 75%, 60%)',
|
|
154
|
-
* label: 'Purple'
|
|
155
|
-
* }
|
|
156
|
-
* ];
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
export declare const defaultColors: Array<ColorOption>;
|
|
160
|
-
/**
|
|
161
|
-
* Returns a creator for a color input with a label.
|
|
162
|
-
*
|
|
163
|
-
* For given options, it returns a function that creates an instance of a
|
|
164
|
-
* {@link module:table/ui/colorinputview~ColorInputView color input} logically related to
|
|
165
|
-
* a {@link module:ui/labeledfield/labeledfieldview~LabeledFieldView labeled view} in the DOM.
|
|
166
|
-
*
|
|
167
|
-
* The helper does the following:
|
|
168
|
-
*
|
|
169
|
-
* * It sets the color input `id` and `ariaDescribedById` attributes.
|
|
170
|
-
* * It binds the color input `isReadOnly` to the labeled view.
|
|
171
|
-
* * It binds the color input `hasError` to the labeled view.
|
|
172
|
-
* * It enables a logic that cleans up the error when the user starts typing in the color input.
|
|
173
|
-
*
|
|
174
|
-
* Usage:
|
|
175
|
-
*
|
|
176
|
-
* ```ts
|
|
177
|
-
* const colorInputCreator = getLabeledColorInputCreator( {
|
|
178
|
-
* colorConfig: [ ... ],
|
|
179
|
-
* columns: 3,
|
|
180
|
-
* } );
|
|
181
|
-
*
|
|
182
|
-
* const labeledInputView = new LabeledFieldView( locale, colorInputCreator );
|
|
183
|
-
* console.log( labeledInputView.view ); // A color input instance.
|
|
184
|
-
* ```
|
|
185
|
-
*
|
|
186
|
-
* @internal
|
|
187
|
-
* @param options Color input options.
|
|
188
|
-
* @param options.colorConfig The configuration of the color palette displayed in the input's dropdown.
|
|
189
|
-
* @param options.columns The configuration of the number of columns the color palette consists of in the input's dropdown.
|
|
190
|
-
* @param options.defaultColorValue If specified, the color input view will replace the "Remove color" button with
|
|
191
|
-
* the "Restore default" button. Instead of clearing the input field, the default color value will be set.
|
|
192
|
-
* @param options.colorPickerConfig The configuration of the color picker. You could disable it or define your output format.
|
|
193
|
-
*/
|
|
194
|
-
export declare function getLabeledColorInputCreator(options: {
|
|
195
|
-
colorConfig: Array<NormalizedColorOption>;
|
|
196
|
-
columns: number;
|
|
197
|
-
defaultColorValue?: string;
|
|
198
|
-
colorPickerConfig: false | ColorPickerConfig;
|
|
199
|
-
}): (labeledFieldView: LabeledFieldView, viewUid: string, statusUid: string) => ColorInputView;
|
|
@@ -1,24 +0,0 @@
|
|
|
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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module table/utils/ui/widget
|
|
11
|
-
*/
|
|
12
|
-
import type { ViewDocumentSelection, ViewElement } from 'ckeditor5/src/engine.js';
|
|
13
|
-
/**
|
|
14
|
-
* Depending on the position of the selection either return the selected table or the table higher in the hierarchy.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getSelectionAffectedTableWidget(selection: ViewDocumentSelection): ViewElement | null;
|
|
17
|
-
/**
|
|
18
|
-
* Returns a table widget editing view element if one is selected.
|
|
19
|
-
*/
|
|
20
|
-
export declare function getSelectedTableWidget(selection: ViewDocumentSelection): ViewElement | null;
|
|
21
|
-
/**
|
|
22
|
-
* Returns a table widget editing view element if one is among the selection's ancestors.
|
|
23
|
-
*/
|
|
24
|
-
export declare function getTableWidgetAncestor(selection: ViewDocumentSelection): ViewElement | null;
|