@gct-paas/word 0.1.74 → 0.2.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.
Files changed (291) hide show
  1. package/README.md +4 -1
  2. package/dist/assets/svgs/table/index.d.ts +7 -0
  3. package/dist/base/calendar/src/calendar.vue.d.ts +2 -2
  4. package/dist/base/calendar/src/time.vue.d.ts +2 -2
  5. package/dist/base/checkbox/src/checkbox-group.vue.d.ts +2 -2
  6. package/dist/base/checkbox/src/checkbox.vue.d.ts +2 -2
  7. package/dist/base/color-picker/src/ColorPicker.vue.d.ts +1 -1
  8. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -2
  9. package/dist/base/input/src/input-number.vue.d.ts +2 -2
  10. package/dist/base/input/src/input.vue.d.ts +5 -5
  11. package/dist/base/input/src/text-area.vue.d.ts +4 -4
  12. package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -0
  13. package/dist/base/modal/src/modal.type.d.ts +5 -0
  14. package/dist/base/radio/src/radio-group.vue.d.ts +2 -2
  15. package/dist/base/radio/src/radio.vue.d.ts +2 -2
  16. package/dist/base/rdo-tree-select/src/rdo-tree-select-more.vue.d.ts +10 -3
  17. package/dist/base/rdo-tree-select/src/rdo-tree-select-panel.vue.d.ts +6 -1
  18. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +3 -3
  19. package/dist/base/scrollbar/src/scrollbar.vue.d.ts +2 -2
  20. package/dist/base/segment-slider/src/segment-slider.vue.d.ts +2 -2
  21. package/dist/base/select/src/basic-select.vue.d.ts +16 -2
  22. package/dist/base/select/src/searchable-select.vue.d.ts +2 -2
  23. package/dist/base/slider/src/slider.vue.d.ts +4 -4
  24. package/dist/base/switch/src/switch.vue.d.ts +2 -2
  25. package/dist/base/tree-select/src/tree-select.vue.d.ts +2 -2
  26. package/dist/base/utils/image-size-util.d.ts +2 -0
  27. package/dist/core/command/commands/InsertTable.d.ts +4 -0
  28. package/dist/core/command/commands/UnmergeCells.d.ts +5 -1
  29. package/dist/core/command/types.d.ts +1 -0
  30. package/dist/core/constants/index.d.ts +1 -0
  31. package/dist/core/constants/table.d.ts +11 -0
  32. package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
  33. package/dist/core/cursor/logic/index.d.ts +2 -1
  34. package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
  35. package/dist/core/data/enrichers/build-field-enrichers.d.ts +1 -1
  36. package/dist/core/data/enrichers/lot-parent-label-enricher.d.ts +12 -0
  37. package/dist/core/data/enrichers/operation-receive-qty-enricher.d.ts +19 -0
  38. package/dist/core/data/paths/field-paths.d.ts +2 -0
  39. package/dist/core/data/submit/form-state.d.ts +1 -1
  40. package/dist/core/data/updates/field-updates.d.ts +7 -2
  41. package/dist/core/event/types.d.ts +1 -1
  42. package/dist/core/index.d.ts +1 -1
  43. package/dist/core/interaction/InteractionController.d.ts +11 -0
  44. package/dist/core/interaction/types.d.ts +8 -0
  45. package/dist/core/interaction/useInteraction.d.ts +6 -0
  46. package/dist/core/layout/LayoutManager.d.ts +5 -1
  47. package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +2 -0
  48. package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
  49. package/dist/core/layout/table/split-table.d.ts +10 -0
  50. package/dist/core/layout/types/index.d.ts +2 -0
  51. package/dist/core/model/document/Wbody.d.ts +4 -0
  52. package/dist/core/model/document/WrText.d.ts +2 -0
  53. package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
  54. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
  55. package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
  56. package/dist/core/model/document/Wtbl.d.ts +31 -3
  57. package/dist/core/model/document/Wtc.d.ts +13 -2
  58. package/dist/core/model/document/Wtr.d.ts +2 -1
  59. package/dist/core/model/document/index.d.ts +1 -0
  60. package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
  61. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  62. package/dist/core/model/logic/subtable/bounded/BoundedRegion.d.ts +2 -0
  63. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +28 -1
  64. package/dist/core/model/templates/tableCell.template.d.ts +2 -0
  65. package/dist/core/model/types/style.d.ts +2 -0
  66. package/dist/core/view/Doc.d.ts +13 -1
  67. package/dist/core/view/Table.d.ts +13 -0
  68. package/dist/core/view/TableCell.d.ts +2 -1
  69. package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
  70. package/dist/core/view/runs/TextRun.d.ts +4 -0
  71. package/dist/domain/active/active-types.d.ts +15 -1
  72. package/dist/domain/constants/enum/device.d.ts +26 -0
  73. package/dist/domain/constants/enum/index.d.ts +2 -0
  74. package/dist/domain/constants/enum/lot.d.ts +16 -0
  75. package/dist/domain/constants/enum/view.d.ts +1 -1
  76. package/dist/domain/device/device-query.d.ts +10 -0
  77. package/dist/domain/field/field-props-schema-type.d.ts +10 -1
  78. package/dist/domain/field/field-type.d.ts +515 -144
  79. package/dist/domain/field/form-value.d.ts +5 -0
  80. package/dist/domain/field/lot-display-label.d.ts +2 -0
  81. package/dist/domain/object/date-object/index.d.ts +4 -0
  82. package/dist/domain/object/date-object/profile/field-keys.d.ts +19 -0
  83. package/dist/domain/object/date-object/profile/fields.d.ts +2 -0
  84. package/dist/domain/object/date-object/profile/index.d.ts +3 -0
  85. package/dist/domain/object/date-object/runtime/date-object-context.d.ts +41 -0
  86. package/dist/domain/object/date-object/runtime/date-object-runtime.d.ts +41 -0
  87. package/dist/domain/object/date-object/runtime/fetch-records.d.ts +16 -0
  88. package/dist/domain/object/date-object/runtime/object-handlers.d.ts +6 -0
  89. package/dist/domain/object/date-object/runtime/re-inspection-date.d.ts +49 -0
  90. package/dist/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
  91. package/dist/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
  92. package/dist/domain/object/date-object/types.d.ts +48 -0
  93. package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
  94. package/dist/domain/table/business/material/material-requisition/index.d.ts +2 -0
  95. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +34 -0
  96. package/dist/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
  97. package/dist/domain/table/business/material/material-requisition/profile/index.d.ts +4 -0
  98. package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
  99. package/dist/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +5 -0
  100. package/dist/domain/table/business/material/types.d.ts +41 -0
  101. package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -1
  102. package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +6 -7
  103. package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +6 -6
  104. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +6 -6
  105. package/dist/domain/table/business/shared/production-container-hyperlink-enricher.d.ts +1 -1
  106. package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +17 -0
  107. package/dist/domain/table/business/shared/scan-action.d.ts +38 -20
  108. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -1
  109. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +6 -7
  110. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -4
  111. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +1 -1
  112. package/dist/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
  113. package/dist/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +35 -0
  114. package/dist/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
  115. package/dist/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
  116. package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
  117. package/dist/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +3 -0
  118. package/dist/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
  119. package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +38 -0
  120. package/dist/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
  121. package/dist/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
  122. package/dist/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
  123. package/dist/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +6 -0
  124. package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +19 -0
  125. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +0 -1
  126. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -7
  127. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +31 -10
  128. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
  129. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +2 -5
  130. package/dist/domain/table/business/warehouse/warehouse-in/actions/index.d.ts +1 -0
  131. package/dist/domain/table/business/warehouse/warehouse-in/actions/scan.d.ts +3 -0
  132. package/dist/domain/table/business/warehouse/warehouse-in/index.d.ts +3 -0
  133. package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +45 -0
  134. package/dist/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
  135. package/dist/domain/table/business/warehouse/warehouse-in/profile/index.d.ts +3 -0
  136. package/dist/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
  137. package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +12 -0
  138. package/dist/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
  139. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +32 -0
  140. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
  141. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
  142. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
  143. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +2 -0
  144. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +0 -1
  145. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +9 -7
  146. package/dist/domain/table/business/warehouse/warehouse-inventory/index.d.ts +1 -0
  147. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/api.d.ts +3 -0
  148. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +30 -43
  149. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +1 -2
  150. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +2 -18
  151. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +8 -59
  152. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts +10 -0
  153. package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +24 -22
  154. package/dist/domain/table/business/warehouse/warehouse-out/actions/index.d.ts +1 -0
  155. package/dist/domain/table/business/warehouse/warehouse-out/actions/scan.d.ts +7 -0
  156. package/dist/domain/table/business/warehouse/warehouse-out/index.d.ts +3 -0
  157. package/dist/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +44 -0
  158. package/dist/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
  159. package/dist/domain/table/business/warehouse/warehouse-out/profile/index.d.ts +3 -0
  160. package/dist/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
  161. package/dist/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +5 -0
  162. package/dist/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
  163. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +34 -0
  164. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
  165. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
  166. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
  167. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +2 -0
  168. package/dist/domain/table/design/ribbon-options.d.ts +8 -1
  169. package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
  170. package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
  171. package/dist/domain/table/index.d.ts +1 -0
  172. package/dist/domain/table/runtime/api/biz-service-api.d.ts +3 -1
  173. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +9 -2
  174. package/dist/domain/table/runtime/engines/main-field-bind-engine.d.ts +2 -0
  175. package/dist/domain/table/runtime/table-runtime-utils.d.ts +6 -1
  176. package/dist/domain/table/runtime/table-runtime.d.ts +2 -0
  177. package/dist/domain/table/types.d.ts +71 -7
  178. package/dist/index.es.js +30579 -17522
  179. package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -0
  180. package/dist/runtime/canvas/inline-image/resize-box.vue.d.ts +2 -2
  181. package/dist/runtime/canvas/table/render/label-parse-rule/type.d.ts +7 -1
  182. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +151 -18
  183. package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -0
  184. package/dist/runtime/canvas/table/render/material-consume/derived-qty.d.ts +5 -0
  185. package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
  186. package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +46 -0
  187. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +126 -29
  188. package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +2 -3
  189. package/dist/runtime/canvas/table/render/material-consume/product-id-query.d.ts +31 -0
  190. package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +10 -0
  191. package/dist/runtime/canvas/table/render/material-consume/scan-validator.d.ts +192 -0
  192. package/dist/runtime/canvas/table/render/material-consume/service.d.ts +20 -0
  193. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +4 -1
  194. package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
  195. package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +13 -0
  196. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +12 -0
  197. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/index.d.ts +1 -1
  198. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/quick-fill.util.d.ts +5 -1
  199. package/dist/runtime/canvas/table/shared/resolve-cell-row-change-style.d.ts +8 -4
  200. package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
  201. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
  202. package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
  203. package/dist/runtime/designer/ribbon/components/text-color-select.vue.d.ts +1 -1
  204. package/dist/runtime/designer/ribbon/constant/font.d.ts +13 -5
  205. package/dist/runtime/interface/computed.d.ts +1 -1
  206. package/dist/runtime/interface/fetchers.d.ts +4 -0
  207. package/dist/runtime/interface/form-change-row.d.ts +0 -1
  208. package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +13 -12
  209. package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +1 -0
  210. package/dist/runtime/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
  211. package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +14 -0
  212. package/dist/runtime/renderer/dialogs/signature/security-config.d.ts +6 -0
  213. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +4 -0
  214. package/dist/runtime/renderer/dropdowns/components/option-dropdown.vue.d.ts +12 -12
  215. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
  216. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-inventory-ndo.d.ts +11 -0
  217. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-ndo.d.ts +11 -0
  218. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/product-ndo.d.ts +12 -0
  219. package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +6 -3
  220. package/dist/runtime/renderer/dropdowns/components/tables/component/device-type-select.vue.d.ts +2 -2
  221. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +1 -0
  222. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +4 -0
  223. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +13 -13
  224. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +16 -1
  225. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +13 -13
  226. package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +338 -0
  227. package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +8 -3
  228. package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +6 -4
  229. package/dist/runtime/renderer/dropdowns/components/tree/tree-dropdown.vue.d.ts +12 -12
  230. package/dist/runtime/renderer/dropdowns/composables/useDropdownViewportSize.d.ts +7 -0
  231. package/dist/runtime/validation/useFormValidator.d.ts +5 -2
  232. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -1
  233. package/dist/sdk/types/field-model-query.d.ts +2 -0
  234. package/dist/sdk/types/index.d.ts +8 -1
  235. package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +15 -0
  236. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +8 -2
  237. package/dist/suites/edhr/manifest/field/business/operation-manifest.d.ts +2 -0
  238. package/dist/suites/edhr/manifest/field/business/operation-output-qty-manifest.d.ts +2 -0
  239. package/dist/suites/edhr/manifest/field/business/operation-receive-qty-manifest.d.ts +2 -0
  240. package/dist/suites/edhr/manifest/field/business/production-qty-manifest.d.ts +2 -0
  241. package/dist/suites/edhr/manifest/field/logic/model-relation-manifest.d.ts +2 -0
  242. package/dist/suites/edhr/manifest/field/material/target-warehouse-manifest.d.ts +2 -0
  243. package/dist/suites/edhr/manifest/field/object-type/date-object-manifest.d.ts +3 -0
  244. package/dist/suites/edhr/manifest/field/object-type/re-inspection-date-manifest.d.ts +2 -0
  245. package/dist/suites/edhr/manifest/field/object-type/validity-manifest.d.ts +2 -0
  246. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +74 -0
  247. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +3 -0
  248. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +69 -0
  249. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.d.ts +13 -0
  250. package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +7 -5
  251. package/dist/suites/edhr/panel-schema/index.d.ts +3 -0
  252. package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +2 -1
  253. package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
  254. package/dist/suites/edhr/panel-schema/warehouse-in-table/warehouse-in-table.basic.d.ts +1 -0
  255. package/dist/suites/edhr/panel-schema/warehouse-out-table/warehouse-out-table.basic.d.ts +1 -0
  256. package/dist/suites/eqm/index.d.ts +1 -1
  257. package/dist/suites/eqm/panel-router/index.d.ts +2 -0
  258. package/dist/suites/eqm/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
  259. package/dist/suites/eqm/panel-schema/index.d.ts +7 -0
  260. package/dist/suites/eqm/panel-schema/part-stocktake-table/part-stocktake-table.basic.d.ts +1 -0
  261. package/dist/suites/eqm/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.d.ts +1 -0
  262. package/dist/suites/eqm/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
  263. package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
  264. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue.d.ts +4 -3
  265. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +8 -0
  266. package/dist/suites/shared/panel/config/editor/field-config-visibility.d.ts +2 -0
  267. package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue.d.ts +28 -0
  268. package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +5 -7
  269. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +2 -2
  270. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +3 -2
  271. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
  272. package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
  273. package/dist/suites/shared/suite-features.d.ts +19 -0
  274. package/dist/utils/adapters/ServiceUtil.d.ts +5 -2
  275. package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
  276. package/dist/utils/fonts/cjk-font-catalog.d.ts +24 -1
  277. package/dist/utils/func/file.d.ts +1 -1
  278. package/dist/word.css +1466 -1054
  279. package/package.json +3 -2
  280. package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
  281. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
  282. package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
  283. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
  284. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
  285. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +0 -7
  286. package/dist/domain/table/business/warehouse/warehouse-allocate/types.d.ts +0 -38
  287. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +0 -7
  288. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/remote-sync-apply.d.ts +0 -9
  289. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
  290. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/warehouse-context.d.ts +0 -3
  291. /package/dist/suites/edhr/manifest/field/{trace/production-identifier-manifest.d.ts → business/inspection-qty-manifest.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Doc } from '../../view/Doc';
2
- import { PostChangePipelineContext, DataEnricherRegistration } from '../types';
2
+ import { DataEnricherRegistration, PostChangePipelineContext } from '../types';
3
3
  import { FieldComputedConfig } from '../../../domain/field/field-props-schema-type';
4
4
  /**
5
5
  * 解析 enricher 用的 widget props
@@ -0,0 +1,12 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { DataEnricherRegistration } from '../types';
3
+ export type LotParentLookupBy = 'name' | 'id';
4
+ /** 生产 LOT/SN 字段保存子批次 ID 时,解析其子批次名称。 */
5
+ export declare function resolveProductionContainerChildName(childId: unknown): Promise<string | undefined>;
6
+ type LotParentLabelEnricherOptions = {
7
+ doc: Doc;
8
+ valuePath: string;
9
+ lookupBy?: LotParentLookupBy;
10
+ };
11
+ export declare function createLotParentLabelEnricher(options: LotParentLabelEnricherOptions): DataEnricherRegistration;
12
+ export {};
@@ -0,0 +1,19 @@
1
+ import { Doc } from '../..';
2
+ import { DataEnricherRegistration } from '..';
3
+ import { FIELD_TYPE } from '../../../domain/field/field-type';
4
+ export interface OperationReceiveQtyWidgetTarget {
5
+ valuePath: string;
6
+ }
7
+ type OperationReceiveQtyWidgetInstance = {
8
+ widgetMeta?: {
9
+ field?: {
10
+ fieldType?: FIELD_TYPE;
11
+ };
12
+ };
13
+ valuePath?: string;
14
+ };
15
+ /** 从单个 widget 实例解析工序接收数量 enrich 目标 */
16
+ export declare function tryCollectOperationReceiveQtyTarget(instance: OperationReceiveQtyWidgetInstance): OperationReceiveQtyWidgetTarget | null;
17
+ /** 工序接收数量:getOne query 取 container_id_ / routing_operation_id_,空值时拉取 qty_current_ */
18
+ export declare function createOperationReceiveQtyEnricher(doc: Doc, targets: OperationReceiveQtyWidgetTarget[]): DataEnricherRegistration;
19
+ export {};
@@ -9,6 +9,8 @@ export declare const HYPERLINK_TEXT_COLOR = "#0563c1";
9
9
  export declare function getLabelPath(path: string): string;
10
10
  export declare function getHrefPath(path: string): string;
11
11
  export declare function getIdPath(path: string): string;
12
+ /** 将路径末段替换为同行另一字段 key(如 `$.t[0].product_id_` + `inventory_id_` → `$.t[0].inventory_id_`) */
13
+ export declare function getSiblingFieldPath(path: string, fieldKey: string): string;
12
14
  /**
13
15
  * 是否为批次 companion id 路径(以 `__id_` 结尾)。
14
16
  * 在于判断用了 endsWith('_id_'):product_id_、warehouse_id_ 也会命中。改成只认以 __id_ 结尾
@@ -26,4 +26,4 @@ export declare function conversionFormState(payload: {
26
26
  /** 从模型子表元信息解析二维/检验表交叉区 key;无元信息时回退为 formData 中含 `:` 的 key */
27
27
  export declare function resolveSubmitCrossKeys(formData: Record<string, any>, subTableInfoList?: SubTableInfo[]): string[];
28
28
  /** 数据转成真实提交数据 */
29
- export declare function getSubmitFormData(formData: any, subTableInfoList?: SubTableInfo[]): any;
29
+ export declare function getSubmitFormData(formData: any, subTableInfoList?: SubTableInfo[], fieldList?: FieldMeta[]): any;
@@ -8,11 +8,16 @@ export declare function buildClearUpdates(rowPath: string, fields: readonly stri
8
8
  interface BuildFieldSelectUpdatesOptions {
9
9
  /** 是否写入 companion id(下拉选中时) */
10
10
  persistOptionId?: boolean;
11
+ /**
12
+ * 自定义 option id 写入路径(如出库物料的 inventory_id_)。
13
+ * 有值时优先于此路径;否则在 persistOptionId 时写 getIdPath(valuePath)
14
+ */
15
+ optionIdPath?: string;
11
16
  }
12
17
  /**
13
18
  * 构建字段选中/清空更新:
14
- * - 选中:写 value + 可选 companion id
15
- * - 清空:仅写 value,companion 由 enricher 负责清空
19
+ * - 选中:写 value + 可选 companion / 自定义 option id
20
+ * - 清空:写 value,并清空 companion / 自定义 option id(若启用)
16
21
  */
17
22
  export declare function buildFieldSelectUpdates(valuePath: string, value: unknown, optionId?: unknown, options?: BuildFieldSelectUpdatesOptions): Record<string, unknown>;
18
23
  /** 判断两个字段值是否逻辑相等 */
@@ -65,4 +65,4 @@ export type MoveOpts = Pick<KeydownOpts, 'dir' | 'shift' | 'ctrl'>;
65
65
  * 定义了系统中所有需要进行分发/调度的事件类型标识
66
66
  */
67
67
  export type DispatchEventType = 'ime:compositionstart' | 'ime:compositionupdate' | 'ime:compositionend' | 'ime:input' | 'ime:paste' | 'ime:focus' | 'ime:blur' | 'ime:keydown' | 'caret:locate' | 'konva:click' | 'konva:dragstart' | 'konva:dragmove' | 'konva:dragend' | 'konva:contextmenu' | 'inter:str' | 'inter:stc' | 'inter:stall' | 'inter:active' | 'inter:chg-hmid';
68
- export type EventBusType = 'autoScroll:start' | 'autoScroll:move' | 'autoScroll:stop' | 'caret:changed' | 'caret:requestScroll' | 'cursor:change' | 'cursor:changed' | 'tableSelection:change' | 'activeTableId:change' | 'dragHoverId:change' | 'hoverModelId:change' | 'focusModelId:change' | 'panelData:change';
68
+ export type EventBusType = 'autoScroll:start' | 'autoScroll:move' | 'autoScroll:stop' | 'caret:changed' | 'caret:requestScroll' | 'cursor:change' | 'cursor:changed' | 'tableSelection:change' | 'activeTableId:change' | 'activeTableScope:change' | 'dragHoverId:change' | 'hoverModelId:change' | 'focusModelId:change' | 'panelData:change';
@@ -29,7 +29,7 @@ export type { WrPageWidget } from './model/document';
29
29
  export type { Border, Paragraph } from './view/Paragraph';
30
30
  export type { OverlayLayout } from './view/base/OverlayLayout';
31
31
  export type { Table } from './view/Table';
32
- export type { SubRenderer } from './view/TableCell';
32
+ export type { SubRenderer, TableCellContent } from './view/TableCell';
33
33
  export type { Wtbl } from './model/document';
34
34
  export type { BoundedRegion, CheckTableRegion, _2DTableRegion } from './model/logic';
35
35
  export type { WidgetStateContext } from './widget/state';
@@ -1,6 +1,7 @@
1
1
  import { ActivePanelData, PanelType } from '../../domain/active/active-types';
2
2
  import { Doc } from '../view/Doc';
3
3
  import { ContextMenuParams } from '../../runtime/canvas/__common__/context-menu/index.type';
4
+ import { ActiveTableScopeState } from './types';
4
5
  export declare class InteractionController {
5
6
  doc: Doc;
6
7
  constructor(doc: Doc);
@@ -16,10 +17,20 @@ export declare class InteractionController {
16
17
  onSelectTableAll(payload: {
17
18
  id: string;
18
19
  }): void;
20
+ /**
21
+ * 根据行/列范围设置 cursor selection,驱动 cellRangeIds 内容层高亮。
22
+ *
23
+ * @param tableId 目标表格 layout ID
24
+ * @param options.rowRange [startRowIdx, endRowIdx](默认全表)
25
+ * @param options.colRange [startColIdx, endColIdx](默认全列)
26
+ */
27
+ private _setTableCursorSelection;
19
28
  clearTableSelection(): void;
20
29
  onChangeDragHoverId(hitId: string): void;
21
30
  onSetActiveTableId(tableId: string): void;
31
+ onSetActiveTableScope(scope: ActiveTableScopeState): void;
22
32
  clearActiveTableId(): void;
33
+ clearActiveTableScope(): void;
23
34
  /** 解析字段批注 key */
24
35
  private resolveFieldCommentKey;
25
36
  /**
@@ -1,16 +1,24 @@
1
1
  import { ActivePanelData } from '../../domain/active/active-types';
2
2
  import { AttachFieldTarget } from '../../domain/field/attach-field';
3
+ import { TableScope } from '../model/document/Wtbl';
3
4
  export type ITableSelection = {
4
5
  tableId: string;
5
6
  axis: 'row' | 'col' | 'all';
6
7
  index: number;
7
8
  realRowIndex?: number;
8
9
  } | null;
10
+ export type ActiveTableScopeState = Pick<TableScope, 'depth'> & {
11
+ wtblId: string;
12
+ rootWtblId: string;
13
+ hostCellId?: string;
14
+ };
9
15
  export type InteractionState = {
10
16
  /** 表格选择(行 / 列 / 全选) */
11
17
  tableSelection: ITableSelection | null;
12
18
  /** 当前激活表格 id(仅用于 table overlay 显示) */
13
19
  activeTableId: string;
20
+ /** 当前激活表格作用域(内外表隔离) */
21
+ activeTableScope: ActiveTableScopeState | null;
14
22
  /** 拖拽的id 用来进行处理单个单元格选中 */
15
23
  dragHoverId: string;
16
24
  /** hover 模型的模型 id */
@@ -8,6 +8,12 @@ export declare function useInteraction(docRef: Ref<Doc | null>): {
8
8
  readonly realRowIndex?: number | undefined;
9
9
  } | null | undefined;
10
10
  readonly activeTableId?: string | undefined;
11
+ readonly activeTableScope?: {
12
+ readonly depth: number;
13
+ readonly wtblId: string;
14
+ readonly rootWtblId: string;
15
+ readonly hostCellId?: string | undefined;
16
+ } | null | undefined;
11
17
  readonly dragHoverId?: string | undefined;
12
18
  readonly hoverModelId?: string | undefined;
13
19
  readonly focusModelId?: string | undefined;
@@ -25,7 +25,11 @@ export declare class LayoutManager {
25
25
  */
26
26
  private layoutTable;
27
27
  /**
28
- * 布局单元格内容
28
+ * 构建表格 layout 节点(不含分页)
29
+ */
30
+ private buildTableLayout;
31
+ /**
32
+ * 布局单元格内容(段落 + 嵌套表 block 混排)
29
33
  */
30
34
  private layoutCellContent;
31
35
  /**
@@ -8,6 +8,8 @@ import { DataSlotIndex } from '../../../view/types';
8
8
  type ValueType = string | number | undefined | null;
9
9
  export declare class FieldBaseHandler extends RunHandlerBase {
10
10
  static hasValue(value: ValueType): boolean;
11
+ /** 图片/附件 url 列表:兼容逗号串、字符串数组、以及 {url|path|fileUrl} 对象 */
12
+ static normalizeUrlSources(raw: unknown): string[];
11
13
  /** 将展示文案拆成逐字 run;空串 split 会得到 [],需单独处理 */
12
14
  static toLayoutChars(label: unknown): string[];
13
15
  static isPrint(ctx: HandlerContext): boolean;
@@ -1,4 +1,4 @@
1
- import { Wtbl, Wtc, Wtr } from '../../model/document';
1
+ import { Wtbl, Wtc, Wtr, Wp } from '../../model/document';
2
2
  import { TableExpander, CellFragment } from '../table/table-expand';
3
3
  import { SubRenderer } from '../../view/TableCell';
4
4
  export declare class TableInfoProvider {
@@ -10,7 +10,7 @@ export declare class TableInfoProvider {
10
10
  expandFromId: string;
11
11
  cells: CellFragment[];
12
12
  }[];
13
- getCellContent(cell: any): any[];
13
+ getCellContent(cell: CellFragment): Array<Wp | Wtbl>;
14
14
  getRowModelRef(row: any): {
15
15
  id: string;
16
16
  };
@@ -21,6 +21,16 @@ import { Table } from '../../view/Table';
21
21
  * 当前页: Row 0 原样 + Row 1 上半部分
22
22
  * 下一页: 新建 Cell A_next + Row 1 下半部分引用新源单元格
23
23
  */
24
+ /**
25
+ * 行内切分最小顶部剩余高度(像素)
26
+ *
27
+ * 仅约束「留在当前页的上半截」不能过薄:remainHeight < 此值时整行下移。
28
+ * 不再用几何 bottomHeight(rowH - remain)否决切分——那只是切分前的余量,
29
+ * 真正高度由 fillCells + redistribute 按内容重算;用它拦切分会导致
30
+ * 「差几像素超页却整行跳页」的悬崖效应。
31
+ */
32
+ declare const MIN_SPLIT_REMAINING_HEIGHT = 20;
33
+ export { MIN_SPLIT_REMAINING_HEIGHT };
24
34
  export declare class TableSplitter {
25
35
  private readonly table;
26
36
  private readonly maxHeight;
@@ -50,6 +50,8 @@ export interface LineInfo {
50
50
  /** 当前行的绝对位置 - 下边 */
51
51
  lineBottom: number;
52
52
  }>;
53
+ /** 所属表格的 layout id(仅 tablerow 类型有值) */
54
+ tableId?: string;
53
55
  }
54
56
  export interface Bounds {
55
57
  left: number;
@@ -26,6 +26,10 @@ export declare class Wbody extends ModelGroup<Child> {
26
26
  * @returns Wbody 实例
27
27
  */
28
28
  static fromXmlJson(json: RawElement): Wbody;
29
+ /**
30
+ * 规范化:确保 body 中每个 Wtbl 前后都紧跟一个 Wp。
31
+ */
32
+ ensureParagraphsAroundTables(): void;
29
33
  /**
30
34
  * 实例转换为原始 XML JSON
31
35
  *
@@ -94,6 +94,8 @@ export declare class WrText extends ModelNode {
94
94
  * @param fontSize 字号大小(半磅单位)
95
95
  */
96
96
  setFontSize(fontSize: number): void;
97
+ /** 记录 Ribbon 选中的字号项,用于同磅值下区分「小六」与「6.5」 */
98
+ setFontSizeOption(fontSizeOption: string): void;
97
99
  /**
98
100
  * 在指定字符位置拆分文本节点
99
101
  * @param index 拆分位置(在此字符之前分割)
@@ -25,7 +25,13 @@ export declare class WtblCalculation {
25
25
  */
26
26
  private static processBounded;
27
27
  /**
28
- * 处理 boundedItem 数据
28
+ * 按 itemRegion.id 查找嵌套的数据分组 / 动态关联区域
29
+ * (itemRegion 不在 table.regions 顶层,不能用 findRegionById)
30
+ */
31
+ private static findItemRegionById;
32
+ private static applyBoundsToItemRegion;
33
+ /**
34
+ * 处理 boundedItem 数据(更新父级 bounded 的 itemRegion 边界)
29
35
  */
30
36
  private static processBoundedItem;
31
37
  /**
@@ -33,7 +39,7 @@ export declare class WtblCalculation {
33
39
  */
34
40
  private static processCheckTable;
35
41
  /**
36
- * 处理 dataGroup2D 数据
42
+ * 处理 dataGroup2D 数据(更新检验表 / 二维表上的 itemRegion 边界)
37
43
  */
38
44
  private static processDataGroup2D;
39
45
  }
@@ -4,12 +4,28 @@ import { Wtbl } from '../Wtbl';
4
4
  * 提供插入和删除行列的功能
5
5
  */
6
6
  export declare class WtblRowColumnOps {
7
+ /** 外表删除前,显式移除受影响单元格中的嵌套表,避免孤儿节点残留 */
8
+ private static detachNestedTablesFromCells;
9
+ /** 仅外表需要做「删除行/列/表时联动删除嵌套表」 */
10
+ private static detachNestedTablesFromOuterTable;
7
11
  /**
8
- * 新单元格同步引用信息
9
- * refCell: 参考单元格 (above | left)
10
- * nextRefCell: 后参考单元格 (below | right ),如果传入,需要跟 refCell 比对一致后同步
12
+ * 新单元格同步引用信息(mergeId / subTable / subTableItem / header)
13
+ *
14
+ * 必须两侧参考单元格都存在,且对应字段一致,才写入新格。
15
+ * 单侧缺失(表边界、子表外侧空行)不同步,避免检验表等 region
16
+ * 在「上一行/下一行插入」时被错误扩大,进而触发重叠校验误报。
11
17
  */
12
18
  private static syncRefInfo;
19
+ /**
20
+ * 在 insertIndex 处插入一行后,将落在该行及以下的 region / itemRegion 行号整体 +1。
21
+ * 否则仅靠单元格标记回写时,动态关联 itemRegion 若未能匹配 id,边界会留在原行,
22
+ * 设计端字段与背景框就不会随检验表下移。
23
+ */
24
+ private static shiftRegionsForRowInsert;
25
+ /**
26
+ * 在 insertIndex 处插入一列后,将落在该列及右侧的 region / itemRegion 列号整体 +1。
27
+ */
28
+ private static shiftRegionsForColInsert;
13
29
  /**
14
30
  * 在指定行位置插入新行
15
31
  */
@@ -55,6 +71,11 @@ export declare class WtblRowColumnOps {
55
71
  * 如果有右侧列,右侧列会相应调整以保持表格总宽度不变
56
72
  */
57
73
  static resizeCol(table: Wtbl, colIndex: number, width: number): void;
74
+ /**
75
+ * 从其他列借宽度给指定列跨度,保持表格总宽不变。
76
+ * 优先借右侧列,再借左侧;被借列不低于 minWidth。
77
+ */
78
+ static stealWidthToColumn(table: Wtbl, startCol: number, colSpan: number, extra: number, minWidth?: number): number;
58
79
  /**
59
80
  * 调整行高
60
81
  */
@@ -1,16 +1,41 @@
1
1
  import { RawElement } from '../../types/raw';
2
+ import { ModelNode } from '../../base';
2
3
  import { Wtr } from '../Wtr';
3
4
  import { Wtbl } from '../Wtbl';
4
5
  import { Wtc } from '../Wtc';
6
+ /** Wtc.fromXmlJson / Wtr.fromXmlJson 解析单元格内容时的上下文 */
7
+ export type WtcParseOptions = {
8
+ hostTableDepth: 0 | 1;
9
+ rootTableId: string;
10
+ grandchildWarned: {
11
+ value: number;
12
+ };
13
+ parseNestedTable: (json: RawElement) => ModelNode;
14
+ onGrandchildIgnored?: () => void;
15
+ };
16
+ /** WtblSerialization.fromXmlJson 解析上下文 */
17
+ export type WtblParseContext = {
18
+ depth: 0 | 1;
19
+ rootTableId?: string;
20
+ hostCellId?: string;
21
+ grandchildWarned?: {
22
+ value: number;
23
+ };
24
+ };
5
25
  /**
6
26
  * 表格序列化功能类
7
27
  * 提供 XML 转换、快照序列化等功能
8
28
  */
9
29
  export declare class WtblSerialization {
30
+ static resetImportGrandchildWarning(): void;
31
+ static consumeImportGrandchildWarning(): number;
32
+ static markGrandchildTableIgnored(warnedRef?: {
33
+ value: number;
34
+ }): void;
10
35
  /**
11
36
  * 从 XML JSON 创建表格实例
12
37
  */
13
- static fromXmlJson(json: RawElement): Wtbl;
38
+ static fromXmlJson(json: RawElement, context?: WtblParseContext): Wtbl;
14
39
  /**
15
40
  * 将表格实例转换为 XML JSON
16
41
  */
@@ -1,18 +1,32 @@
1
1
  import { RawElement } from '../types/raw';
2
2
  import { Wbody } from './Wbody';
3
- import { Wtr } from './Wtr';
4
3
  import { Wtc } from './Wtc';
4
+ import { Wtr } from './Wtr';
5
5
  import { ModelGroup, ModelGroupOptions } from '../base';
6
6
  import { TableRegion, BoundedRegionOptions, CheckTableRegionOptions, RepeatingRegionOptions, _2DTableRegionOptions, TableHeaderRegion, SubTableHeaderRegion, TableHeaderRegionOptions, SubTableHeaderRegionOptions, CheckTableRegion, MaterialConsumeTableRegion, MaterialConsumeTableRegionOptions, BoundedRegion, RepeatingRegion, _2DTableRegion } from '../logic';
7
+ import { WtblParseContext } from './Wtbl/Serialization';
7
8
  import { WtblPr } from './WtblPr';
9
+ /** 当前操作归属的表格作用域 */
10
+ export type TableScope = {
11
+ wtbl: Wtbl;
12
+ depth: number;
13
+ hostCell?: Wtc;
14
+ rootWtbl: Wtbl;
15
+ };
8
16
  export declare class Wtbl extends ModelGroup {
9
17
  name: 'w:tbl';
10
18
  type: "element";
11
19
  tblPr?: WtblPr;
12
20
  colWidths?: number[];
13
21
  regions: TableRegion[];
14
- parent?: Wbody;
22
+ parent?: Wbody | Wtc;
15
23
  children: Wtr[];
24
+ /** 嵌套表宿主单元格 id */
25
+ nestedInCellId?: string;
26
+ /** 最外层 Wtbl.id */
27
+ rootTableId?: string;
28
+ /** 嵌套深度:0(外表)或 1(嵌套表) */
29
+ depth: 0 | 1;
16
30
  private pendingRecalculate;
17
31
  private mutationDepth;
18
32
  private mutationNeedsRecalculate;
@@ -36,6 +50,17 @@ export declare class Wtbl extends ModelGroup {
36
50
  get checkTable(): CheckTableRegion[];
37
51
  getCheckTableById(id: string): CheckTableRegion | undefined;
38
52
  get hasCheckTable(): boolean;
53
+ /** 是否已标为业务表 / 数据表 */
54
+ get isBusinessOrDataTable(): boolean;
55
+ /** 沿 parent 链找到最外层 Wtbl */
56
+ getRootTable(): Wtbl;
57
+ getTableScope(): TableScope;
58
+ /** 收集本表单元格内的物理嵌套表 */
59
+ collectNestedTables(): Wtbl[];
60
+ /** 本表内是否存在已标业务/数据区的嵌套表 */
61
+ hasNestedBusinessOrDataTable(): boolean;
62
+ /** 作为物理嵌套表挂到宿主单元格 */
63
+ attachAsNested(hostCell: Wtc): void;
39
64
  get tableHeader(): Array<TableHeaderRegion | SubTableHeaderRegion>;
40
65
  getTableHeaderById(id: string): TableHeaderRegion | SubTableHeaderRegion | undefined;
41
66
  /**
@@ -49,7 +74,9 @@ export declare class Wtbl extends ModelGroup {
49
74
  syncRefs?: () => void;
50
75
  finalize?: () => void;
51
76
  }): void;
52
- static fromXmlJson(json: RawElement): Wtbl;
77
+ static fromXmlJson(json: RawElement, context?: WtblParseContext): Wtbl;
78
+ /** 是否为嵌套在单元格内的物理子表 */
79
+ get isNestedTable(): boolean;
53
80
  toXmlJson(): RawElement;
54
81
  /**
55
82
  * 在指定行索引处拆分表格
@@ -102,5 +129,6 @@ export declare class Wtbl extends ModelGroup {
102
129
  deleteColAt(index: number): void;
103
130
  deleteColRange(startIndex: number, endIndex: number): void;
104
131
  resizeCol(colIndex: number, width: number): void;
132
+ stealWidthToColumn(startCol: number, colSpan: number, extra: number, minWidth?: number): number;
105
133
  resizeRow(rowIndex: number, height: number): void;
106
134
  }
@@ -1,8 +1,9 @@
1
1
  import { RawElement } from '../types/raw';
2
2
  import { Wtr } from './Wtr';
3
3
  import { Wp } from './Wp';
4
+ import { Wtbl, TableScope } from './Wtbl';
4
5
  import { ModelGroup, ModelGroupOptions } from '../base';
5
- import { Wtbl } from './Wtbl';
6
+ import { WtcParseOptions } from './Wtbl/Serialization';
6
7
  import { SubTableRegionType, SubTableItemType, TableHeaderRegionType, WtcHeaderRef, WtcSubTableItemRef, WtcSubTableRef } from './wtcRegionRef';
7
8
  /** 单元格上需随行列复制同步的引用字段 */
8
9
  export declare const WTC_REF_KEYS: readonly ["mergeId", "subTable", "subTableItem", "header"];
@@ -46,6 +47,15 @@ export declare class Wtc extends ModelGroup {
46
47
  /** 是否是合并起始单元格 */
47
48
  get isMergeStart(): boolean;
48
49
  get contents(): Wp[];
50
+ getParagraphs(): Wp[];
51
+ getNestedTables(): Wtbl[];
52
+ getTableScope(): TableScope;
53
+ /** 单元格内容区宽度(DXA),用于嵌套表初始列宽(已扣除左右 padding) */
54
+ getContentWidthDxa(): number;
55
+ /** 是否允许在本单元格插入物理嵌套表 */
56
+ canInsertNestedTable(): boolean;
57
+ /** 在 block 子节点序列中插入嵌套表(纵向堆叠) */
58
+ insertNestedTableAt(index: number, wtbl: Wtbl): void;
49
59
  /** 单元格垂直对齐(w:tcPr/w:vAlign) */
50
60
  get vAlign(): 'top' | 'center' | 'bottom' | undefined;
51
61
  get firstContent(): Wp | undefined;
@@ -100,7 +110,7 @@ export declare class Wtc extends ModelGroup {
100
110
  /**
101
111
  * 从 XML JSON 创建单元格(返回数组,因为 colspan 会产生多个单元格)
102
112
  */
103
- static fromXmlJson(tcRaw: RawElement): Wtc[];
113
+ static fromXmlJson(tcRaw: RawElement, cellParseOptions?: WtcParseOptions): Wtc[];
104
114
  /**
105
115
  * 转换为 XML JSON
106
116
  * 结构:w:tc
@@ -109,6 +119,7 @@ export declare class Wtc extends ModelGroup {
109
119
  */
110
120
  toXmlJson(): RawElement | null;
111
121
  private buildTcPr;
122
+ private static parseNestedTableFromXml;
112
123
  private static normalizeWordColor;
113
124
  /**
114
125
  * 从模板创建单元格
@@ -1,6 +1,7 @@
1
1
  import { RawElement } from '../types/raw';
2
2
  import { Wtbl } from './Wtbl';
3
3
  import { Wtc } from './Wtc';
4
+ import { WtcParseOptions } from './Wtbl/Serialization';
4
5
  import { ModelGroup, ModelGroupOptions } from '../base';
5
6
  import { WtrPr, WtrHeightRule } from './WtrPr';
6
7
  type RowHeightRule = WtrHeightRule;
@@ -28,7 +29,7 @@ export declare class Wtr extends ModelGroup {
28
29
  /**
29
30
  * 从 XML JSON 创建表格行
30
31
  */
31
- static fromXmlJson(trRaw: RawElement): Wtr;
32
+ static fromXmlJson(trRaw: RawElement, cellParseOptions?: WtcParseOptions): Wtr;
32
33
  /**
33
34
  * 转换为 XML JSON
34
35
  * 结构:w:tr
@@ -8,6 +8,7 @@ export { WrImage } from './WrImage';
8
8
  export { WrField } from './WrField';
9
9
  export { WrPageWidget } from './WrPageWidget';
10
10
  export { Wtbl } from './Wtbl';
11
+ export type { TableScope } from './Wtbl';
11
12
  export { Wtr } from './Wtr';
12
13
  export { Wtc } from './Wtc';
13
14
  export { WsecPr } from './WsecPr';
@@ -0,0 +1,18 @@
1
+ import { Wtbl } from '../Wtbl';
2
+ import { ModelGroup } from '../../base';
3
+ type EnsureGroup = Pick<ModelGroup<any>, 'children' | 'insertBefore' | 'insertAfter'>;
4
+ /**
5
+ * 在数组中为每个表格补齐前后段落(就地修改,倒序遍历)。
6
+ * 适用于 fromXmlJson 等尚未挂到 ModelGroup 的构建阶段。
7
+ */
8
+ export declare function ensureParagraphsAroundTablesInList<T>(children: T[], isTable: (item: T | undefined) => boolean, isParagraph: (item: T | undefined) => boolean, createParagraph: () => T): void;
9
+ /** Wp / Wtbl 列表的便捷封装 */
10
+ export declare function ensureWpAroundWtblInList(children: unknown[]): void;
11
+ /**
12
+ * 确保单个表格在 ModelGroup 中前后都紧跟段落。
13
+ * 插入表格后调用即可(body / 单元格共用)。
14
+ */
15
+ export declare function ensureParagraphsAroundTable(group: EnsureGroup, table: Wtbl): void;
16
+ /** 确保 group 内每个表格前后都有段落 */
17
+ export declare function ensureParagraphsAroundAllTables(group: EnsureGroup): void;
18
+ export {};
@@ -29,7 +29,7 @@ export declare const SUB_TABLE_REGION_TYPES: readonly ["repeating", "bounded", "
29
29
  * 子表 layout 类型
30
30
  * Ribbon 面板、子表主题色均使用此类型;主题配置见 @/domain/table 各 Profile.theme
31
31
  */
32
- export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
32
+ export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'material-requisition-table' | 'warehouse-in-table' | 'warehouse-inbound-table' | 'warehouse-out-table' | 'warehouse-outbound-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'part-stocktake-table' | 'device-part-consume-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
33
33
  /** 表头 layout 类型 */
34
34
  export type TableHeaderLayoutType = 'table-header';
35
35
  /** 所有子表表格 layout 类型 */
@@ -5,6 +5,8 @@ import { BoundedItemRegion, BoundedItemRegionOptions } from './BoundedItemRegion
5
5
  export type BoundedWidgetPropsMeta = {
6
6
  /** 引用填充(撑满固定表)*/
7
7
  autoFill: boolean;
8
+ /** 快速填报 */
9
+ quickFill: boolean;
8
10
  /**
9
11
  * 填充方向
10
12
  * @alias x 横向填充
@@ -13,6 +13,22 @@ export type RepeatingWidgetPropsBase = {
13
13
  export type DynamicTableProps = RepeatingWidgetPropsBase & {
14
14
  layoutType?: 'dynamic-table';
15
15
  };
16
+ export type WarehouseInTableProps = RepeatingWidgetPropsBase & {
17
+ layoutType: 'warehouse-in-table';
18
+ /** 条码解析规则 */
19
+ barcode_parsing_rules_id_?: string;
20
+ };
21
+ export type WarehouseInboundTableProps = RepeatingWidgetPropsBase & {
22
+ layoutType: 'warehouse-inbound-table';
23
+ };
24
+ export type WarehouseOutTableProps = RepeatingWidgetPropsBase & {
25
+ layoutType: 'warehouse-out-table';
26
+ /** 条码解析规则 */
27
+ barcode_parsing_rules_id_?: string;
28
+ };
29
+ export type WarehouseOutboundTableProps = RepeatingWidgetPropsBase & {
30
+ layoutType: 'warehouse-outbound-table';
31
+ };
16
32
  export type WarehouseInOutTableProps = RepeatingWidgetPropsBase & {
17
33
  layoutType: 'warehouse-in-out-table';
18
34
  };
@@ -30,17 +46,28 @@ export type WarehouseInventoryTableProps = RepeatingWidgetPropsBase & {
30
46
  layoutType: 'warehouse-inventory-table';
31
47
  /** 库存自动加载 */
32
48
  autoLoadInventory?: boolean;
49
+ /** 盘点维度 */
50
+ stocktakeDimension?: 'warehouse_summary' | 'location_detail';
33
51
  /** 条码解析规则 */
34
52
  barcode_parsing_rules_id_?: string;
35
53
  };
54
+ export type PartStocktakeTableProps = RepeatingWidgetPropsBase & {
55
+ layoutType: 'part-stocktake-table';
56
+ };
57
+ export type DevicePartConsumeTableProps = RepeatingWidgetPropsBase & {
58
+ layoutType: 'device-part-consume-table';
59
+ };
36
60
  export type MaterialBalanceTableProps = RepeatingWidgetPropsBase & {
37
61
  layoutType: 'material-balance-table';
38
62
  };
63
+ export type MaterialRequisitionTableProps = RepeatingWidgetPropsBase & {
64
+ layoutType: 'material-requisition-table';
65
+ };
39
66
  export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
40
67
  layoutType: 'warehouse-allocate-table';
41
68
  barcode_parsing_rules_id_?: string;
42
69
  };
43
- export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | WarehouseAllocateTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
70
+ export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
44
71
  export type RepeatingWidgetMeta = {
45
72
  props: RepeatingWidgetPropsMeta;
46
73
  };
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * 表格单元格模板 - TypeScript 版本
3
3
  * 保留变量占位符位置:{{width}}, {{paraId}}
4
+ *
5
+ * 单元格 block 子节点可为 w:p(段落)与 w:tbl(物理嵌套表)混合排列,仅纵向堆叠。
4
6
  */
5
7
  export declare const TABLE_CELL_TEMPLATE: {
6
8
  name: string;
@@ -20,6 +20,8 @@ export type TextStyle = {
20
20
  };
21
21
  sz?: number;
22
22
  szCs?: number;
23
+ /** Ribbon 字号选项 id,区分同磅值的号数/数字项 */
24
+ fontSizeOption?: string;
23
25
  spacing?: number;
24
26
  kern?: number;
25
27
  rFonts?: {