Skip to content

Commit b13267f

Browse files
maxmnemonicMaksym Lysak
andauthored
feat: Introduction of fillable TableCell (#384)
* New properties for TableCell, corner_header and fillable Signed-off-by: Maksym Lysak <[email protected]> * Updated docs Signed-off-by: Maksym Lysak <[email protected]> * bumped docling document version to 1.7.0 Signed-off-by: Maksym Lysak <[email protected]> --------- Signed-off-by: Maksym Lysak <[email protected]> Co-authored-by: Maksym Lysak <[email protected]>
1 parent 0512f44 commit b13267f

39 files changed

+4904
-2284
lines changed

docling_core/types/doc/document.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
Uint64 = typing.Annotated[int, Field(ge=0, le=(2**64 - 1))]
6262
LevelNumber = typing.Annotated[int, Field(ge=1, le=100)]
63-
CURRENT_VERSION: Final = "1.6.0"
63+
CURRENT_VERSION: Final = "1.7.0"
6464

6565
DEFAULT_EXPORT_LABELS = {
6666
DocItemLabel.TITLE,
@@ -310,6 +310,7 @@ class TableCell(BaseModel):
310310
column_header: bool = False
311311
row_header: bool = False
312312
row_section: bool = False
313+
fillable: bool = False
313314

314315
@model_validator(mode="before")
315316
@classmethod

docs/DoclingDocument.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,11 @@
17801780
"title": "Row Section",
17811781
"type": "boolean"
17821782
},
1783+
"fillable": {
1784+
"default": false,
1785+
"title": "Fillable",
1786+
"type": "boolean"
1787+
},
17831788
"ref": {
17841789
"$ref": "#/$defs/RefItem"
17851790
}
@@ -1979,6 +1984,11 @@
19791984
"default": false,
19801985
"title": "Row Section",
19811986
"type": "boolean"
1987+
},
1988+
"fillable": {
1989+
"default": false,
1990+
"title": "Fillable",
1991+
"type": "boolean"
19821992
}
19831993
},
19841994
"required": [
@@ -2345,7 +2355,7 @@
23452355
"type": "string"
23462356
},
23472357
"version": {
2348-
"default": "1.6.0",
2358+
"default": "1.7.0",
23492359
"pattern": "^(?P<major>0|[1-9]\\d*)\\.(?P<minor>0|[1-9]\\d*)\\.(?P<patch>0|[1-9]\\d*)(?:-(?P<prerelease>(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
23502360
"title": "Version",
23512361
"type": "string"

0 commit comments

Comments
 (0)