@gct-paas/word 0.1.13 → 0.1.15

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 (260) hide show
  1. package/dist/base/avatar/index.d.ts +1 -0
  2. package/dist/base/avatar/src/Avatar.vue.d.ts +9 -0
  3. package/dist/base/avatar/src/utils/useFile.d.ts +3 -0
  4. package/dist/base/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
  5. package/dist/base/color-picker/index.d.ts +1 -0
  6. package/dist/base/color-picker/src/ColorPicker.vue.d.ts +88 -0
  7. package/dist/base/color-picker/src/constant/index.d.ts +6 -0
  8. package/dist/base/divider/index.d.ts +1 -0
  9. package/dist/base/divider/src/divider.d.ts +7 -0
  10. package/dist/base/divider/src/divider.vue.d.ts +19 -0
  11. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -2
  12. package/dist/base/empty/index.d.ts +1 -0
  13. package/dist/base/empty/src/empty.d.ts +8 -0
  14. package/dist/base/empty/src/empty.vue.d.ts +9 -0
  15. package/dist/base/index.d.ts +5 -0
  16. package/dist/base/input/index.d.ts +1 -0
  17. package/dist/base/input/src/input-number.vue.d.ts +24 -2
  18. package/dist/base/input/src/input.vue.d.ts +7 -7
  19. package/dist/base/input/src/text-area.vue.d.ts +65 -0
  20. package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -1
  21. package/dist/base/select/src/basic-select.vue.d.ts +3 -3
  22. package/dist/base/slider/index.d.ts +1 -0
  23. package/dist/base/slider/src/slider.vue.d.ts +22 -0
  24. package/dist/base/tree-select/src/tree-select.vue.d.ts +2 -2
  25. package/dist/base/utils/asset-helper-util.d.ts +23 -2
  26. package/dist/capabilities/panel/config/types.d.ts +2 -1
  27. package/dist/capabilities/paper-widget-manifest/types.d.ts +13 -2
  28. package/dist/core/command/InputComposition.d.ts +2 -1
  29. package/dist/core/command/base/CommandBase.d.ts +1 -0
  30. package/dist/core/command/base/SetStyleBase.d.ts +4 -0
  31. package/dist/core/command/commands/Delete2DTable.d.ts +12 -0
  32. package/dist/core/command/commands/DeleteCheckTable.d.ts +12 -0
  33. package/dist/core/command/commands/DeleteDataGroup2D.d.ts +12 -0
  34. package/dist/core/command/commands/DeleteTableHeader.d.ts +12 -0
  35. package/dist/core/command/commands/InsertFloatingOverlay.d.ts +9 -0
  36. package/dist/core/command/commands/InsertPaperWidget.d.ts +2 -42
  37. package/dist/core/command/commands/ResizeOverlayLayout.d.ts +7 -0
  38. package/dist/core/command/commands/Set2DTable.d.ts +7 -0
  39. package/dist/core/command/commands/SetCheckTable.d.ts +7 -0
  40. package/dist/core/command/commands/SetDataGroup2D.d.ts +25 -0
  41. package/dist/core/command/commands/SetHeaderFooterConfig.d.ts +11 -0
  42. package/dist/core/command/commands/SetSubTableHeader.d.ts +8 -0
  43. package/dist/core/command/commands/SetTableHeader.d.ts +7 -0
  44. package/dist/core/command/types.d.ts +67 -3
  45. package/dist/core/constants/index.d.ts +7 -0
  46. package/dist/core/cursor/CursorController.d.ts +15 -0
  47. package/dist/core/cursor/hit/OverlayLayoutHitHandler.d.ts +9 -0
  48. package/dist/core/cursor/hit/types.d.ts +17 -0
  49. package/dist/core/cursor/layout/baseMeta.d.ts +1 -1
  50. package/dist/core/data/DataManager.d.ts +5 -0
  51. package/dist/core/event/DocumentEventBridge.d.ts +5 -1
  52. package/dist/core/event/EventManager.d.ts +1 -1
  53. package/dist/core/event/handlers/InteractionHandler.d.ts +3 -0
  54. package/dist/core/event/handlers/KonvaHandler.d.ts +3 -0
  55. package/dist/core/index.d.ts +9 -4
  56. package/dist/core/interaction/InteractionController.d.ts +8 -1
  57. package/dist/core/interaction/InteractionPolicy.d.ts +2 -0
  58. package/dist/core/interaction/types.d.ts +8 -0
  59. package/dist/core/interaction/useInteraction.d.ts +7 -3
  60. package/dist/core/layout/LayoutContext.d.ts +13 -3
  61. package/dist/core/layout/LayoutManager.d.ts +14 -0
  62. package/dist/core/layout/LayoutMapper.d.ts +0 -2
  63. package/dist/core/layout/handlers/PageWidgetHandler.d.ts +5 -0
  64. package/dist/core/layout/handlers/TextHandler.d.ts +11 -0
  65. package/dist/core/layout/handlers/base/BaseHandler.d.ts +26 -0
  66. package/dist/core/layout/handlers/fields/BaseHandler.d.ts +11 -0
  67. package/dist/core/layout/handlers/fields/{ImgHandler.d.ts → ImageHandler.d.ts} +1 -1
  68. package/dist/core/layout/handlers/fields/index.d.ts +1 -1
  69. package/dist/core/layout/handlers/index.d.ts +1 -0
  70. package/dist/core/layout/handlers/pageWidgets/BarcodeHandler.d.ts +11 -0
  71. package/dist/core/layout/handlers/pageWidgets/DefaultHandler.d.ts +4 -0
  72. package/dist/core/layout/handlers/pageWidgets/DiagonalHandler.d.ts +4 -0
  73. package/dist/core/layout/handlers/pageWidgets/ImageHandler.d.ts +4 -0
  74. package/dist/core/layout/handlers/pageWidgets/LineHandler.d.ts +4 -0
  75. package/dist/core/layout/handlers/pageWidgets/PaginationHandler.d.ts +7 -0
  76. package/dist/core/layout/handlers/pageWidgets/QrCodeHandler.d.ts +4 -0
  77. package/dist/core/layout/handlers/pageWidgets/SerialNumberHandler.d.ts +4 -0
  78. package/dist/core/layout/handlers/pageWidgets/index.d.ts +8 -0
  79. package/dist/core/layout/logic/LayoutBuilder.d.ts +19 -3
  80. package/dist/core/layout/logic/ModelBuilder.d.ts +2 -1
  81. package/dist/core/layout/providers/TableInfoProvider.d.ts +8 -2
  82. package/dist/core/layout/types/index.d.ts +7 -0
  83. package/dist/core/model/DocModel.d.ts +20 -0
  84. package/dist/core/model/base/ModelNode.d.ts +4 -0
  85. package/dist/core/model/base/RefManager.d.ts +50 -0
  86. package/dist/core/model/base/index.d.ts +1 -0
  87. package/dist/core/model/document/Wdocument.d.ts +2 -0
  88. package/dist/core/model/document/Wp.d.ts +14 -1
  89. package/dist/core/model/document/WpPr.d.ts +13 -0
  90. package/dist/core/model/document/WrPageWidget.d.ts +8 -0
  91. package/dist/core/model/document/WrText.d.ts +5 -2
  92. package/dist/core/model/document/WsecPr.d.ts +61 -1
  93. package/dist/core/model/document/Wtbl/Calculation.d.ts +12 -0
  94. package/dist/core/model/document/Wtbl/RegionManager.d.ts +13 -1
  95. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +6 -0
  96. package/dist/core/model/document/Wtbl.d.ts +14 -1
  97. package/dist/core/model/document/Wtc.d.ts +8 -0
  98. package/dist/core/model/document/index.d.ts +1 -0
  99. package/dist/core/model/footers/Wfooter.d.ts +40 -0
  100. package/dist/core/model/footers/Wfooters.d.ts +42 -0
  101. package/dist/core/model/headers/Wheader.d.ts +40 -0
  102. package/dist/core/model/headers/Wheaders.d.ts +45 -0
  103. package/dist/core/model/logic/CheckTableRegion.d.ts +44 -0
  104. package/dist/core/model/logic/DataGroup2DRegion.d.ts +12 -0
  105. package/dist/core/model/logic/SubTableHeaderRegion.d.ts +22 -0
  106. package/dist/core/model/logic/TableHeaderRegion.d.ts +16 -0
  107. package/dist/core/model/logic/_2DTableRegion.d.ts +44 -0
  108. package/dist/core/model/logic/index.d.ts +14 -1
  109. package/dist/core/model/overlays/Wlayout.d.ts +70 -0
  110. package/dist/core/model/overlays/Woverlay.d.ts +41 -0
  111. package/dist/core/model/overlays/Woverlays.d.ts +45 -0
  112. package/dist/core/model/settings/Wsettings.d.ts +47 -0
  113. package/dist/core/model/templates/footer.template.d.ts +75 -0
  114. package/dist/core/model/templates/header.template.d.ts +75 -0
  115. package/dist/core/model/templates/layout.template.d.ts +66 -0
  116. package/dist/core/model/templates/overlay.template.d.ts +22 -0
  117. package/dist/core/model/types/model.d.ts +3 -0
  118. package/dist/core/model/types/region.d.ts +1 -0
  119. package/dist/core/sdk/DocPubApiContext.d.ts +14 -12
  120. package/dist/core/sdk/createDoc.d.ts +1 -3
  121. package/dist/core/sdk/usePagesToPdf.d.ts +13 -4
  122. package/dist/core/utils/expand.d.ts +28 -4
  123. package/dist/core/utils/index.d.ts +4 -0
  124. package/dist/core/utils/unit-converter-util.d.ts +12 -2
  125. package/dist/core/view/Doc.d.ts +14 -3
  126. package/dist/core/view/Page.d.ts +50 -1
  127. package/dist/core/view/Paragraph.d.ts +2 -0
  128. package/dist/core/view/Section.d.ts +21 -1
  129. package/dist/core/view/Table.d.ts +3 -0
  130. package/dist/core/view/TableCell.d.ts +4 -2
  131. package/dist/core/view/TableRow.d.ts +2 -0
  132. package/dist/core/view/base/BandContainer.d.ts +49 -0
  133. package/dist/core/view/base/LayoutGroup.d.ts +11 -0
  134. package/dist/core/view/base/LayoutNode.d.ts +3 -0
  135. package/dist/core/view/base/OverlayContainer.d.ts +31 -0
  136. package/dist/core/view/base/OverlayLayout.d.ts +19 -0
  137. package/dist/core/view/base/index.d.ts +2 -0
  138. package/dist/core/view/runs/ImageRun.d.ts +9 -0
  139. package/dist/core/view/runs/ImageWidget.d.ts +12 -6
  140. package/dist/core/view/runs/TextRun.d.ts +26 -3
  141. package/dist/core/view/runs/TextWidget.d.ts +20 -7
  142. package/dist/core/view/utils/EventUtil.d.ts +22 -0
  143. package/dist/core/view/utils/TextUtil.d.ts +47 -0
  144. package/dist/core/widget/widget-meta.d.ts +5 -0
  145. package/dist/domain/active/active-types.d.ts +12 -6
  146. package/dist/domain/constants/enum.d.ts +34 -0
  147. package/dist/domain/constants/options.d.ts +4 -0
  148. package/dist/domain/field/field-props-schema-type.d.ts +1 -1
  149. package/dist/domain/paper-widget/paper-widget-props-schema-type.d.ts +2 -0
  150. package/dist/domain/paper-widget/paper-widget-type.d.ts +10 -141
  151. package/dist/domain/paper-widget/widget-binding.d.ts +8 -0
  152. package/dist/domain/widget/component-type.d.ts +10 -2
  153. package/dist/index.d.ts +5 -10
  154. package/dist/index.es.js +56818 -47196
  155. package/dist/runtime/_register_/composables/panel/useActivePanel.d.ts +2 -2
  156. package/dist/runtime/_register_/context/DesignSuiteContext.d.ts +2 -0
  157. package/dist/runtime/canvas/__common__/context-menu/index.vue.d.ts +3 -1
  158. package/dist/runtime/canvas/doc-layout.vue.d.ts +11 -5
  159. package/dist/runtime/canvas/inline-image/resize-box.vue.d.ts +22 -6
  160. package/dist/{suites/edhr/panel-schema/data-init/common/add-ipaas/input-param-modal.vue.d.ts → runtime/canvas/node/overlay-layout.vue.d.ts} +2 -6
  161. package/dist/{suites/edhr/panel-schema/paper-widget/widgets/barcode.vue.d.ts → runtime/canvas/overlay/page-overlay-group.vue.d.ts} +4 -3
  162. package/dist/{suites/edhr/panel-schema/data-init/common/add-ipaas/out-param-modal.vue.d.ts → runtime/canvas/paper/header-footer-guides.vue.d.ts} +2 -3
  163. package/dist/{suites/edhr/panel-schema/paper-widget/widgets/qrcode.vue.d.ts → runtime/canvas/paper/inner-corner-mark.vue.d.ts} +2 -3
  164. package/dist/runtime/canvas/paper/paper-group.vue.d.ts +2 -1
  165. package/dist/runtime/canvas/paper/paper-hit-rect.vue.d.ts +7 -0
  166. package/dist/runtime/canvas/table/design/table-structure-overlay/dynamic-label.vue.d.ts +1 -0
  167. package/dist/runtime/canvas/table/design/table-structure-overlay/placeholder-label.vue.d.ts +1 -0
  168. package/dist/runtime/canvas/table/utils/index.d.ts +21 -3
  169. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +5 -1
  170. package/dist/runtime/designer/main/editable-canvas.vue.d.ts +6 -3
  171. package/dist/runtime/designer/ribbon/components/set-table-header-form-modal.vue.d.ts +18 -0
  172. package/dist/runtime/designer/ribbon/components/sub-table-form-modal.vue.d.ts +4 -1
  173. package/dist/runtime/factories/usePwRenderData.d.ts +13 -0
  174. package/dist/runtime/factories/useRenderData.d.ts +1 -1
  175. package/dist/runtime/interface/change-diff.d.ts +26 -0
  176. package/dist/runtime/interface/render.d.ts +18 -0
  177. package/dist/runtime/renderer/annotation/annotation-comment-item.vue.d.ts +13 -0
  178. package/dist/runtime/renderer/annotation/annotation-comment-layer.vue.d.ts +2 -0
  179. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +16 -16
  180. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +16 -16
  181. package/dist/runtime/renderer/main/preview-canvas.vue.d.ts +8 -4
  182. package/dist/sdk/doc-runtime/composables/useDocController.d.ts +17 -0
  183. package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +41 -0
  184. package/dist/sdk/doc-runtime/composables/useDocRuntimeProvider.d.ts +19 -0
  185. package/dist/sdk/doc-runtime/composables/useDocSuite.d.ts +20 -0
  186. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +10 -0
  187. package/dist/sdk/doc-runtime/factories/document-request-strategy.d.ts +3 -0
  188. package/dist/{runtime → sdk/doc-runtime}/factories/useDocumentFactory.d.ts +33 -6
  189. package/dist/sdk/doc-runtime/useWord.d.ts +12 -0
  190. package/dist/sdk/engine/index.d.ts +14 -0
  191. package/dist/sdk/index.d.ts +14 -0
  192. package/dist/sdk/plugins/index.d.ts +15 -0
  193. package/dist/sdk/setup.d.ts +55 -0
  194. package/dist/sdk/types/index.d.ts +119 -0
  195. package/dist/sdk/vue/index.d.ts +7 -0
  196. package/dist/sdk/vue/layouts/doc-design-layout.d.ts +7 -0
  197. package/dist/sdk/vue/layouts/doc-design-layout.vue.d.ts +10 -0
  198. package/dist/{runtime/renderer → sdk/vue/layouts}/doc-render-layout.vue.d.ts +17 -11
  199. package/dist/suites/edhr/field-manifest/_common_/basic.d.ts +6 -0
  200. package/dist/suites/edhr/index.d.ts +3 -2
  201. package/dist/suites/edhr/panel-config/index.d.ts +2 -1
  202. package/dist/suites/edhr/panel-schema/2d-table/2d-table.basic.d.ts +14 -0
  203. package/dist/suites/edhr/panel-schema/{paper-widget/widgets/editors/diagonal-name-editor.vue.d.ts → 2d-table/_2DTablePanel.vue.d.ts} +4 -5
  204. package/dist/suites/edhr/panel-schema/{paper-widget/widgets/diagonal.vue.d.ts → check-table/CheckTablePanel.vue.d.ts} +5 -4
  205. package/dist/suites/edhr/panel-schema/check-table/check-table.basic.d.ts +14 -0
  206. package/dist/suites/edhr/panel-schema/data-group-2d/DataGroup2DPanel.vue.d.ts +8 -0
  207. package/dist/suites/edhr/panel-schema/data-group-2d/data-group-2d.basic.d.ts +14 -0
  208. package/dist/suites/edhr/panel-schema/data-init/common/add-builtin-field/add-builtin-field-modal.vue.d.ts +3 -1
  209. package/dist/suites/edhr/panel-schema/data-init/common/add-ipaas/ipaas-param-config.vue.d.ts +1 -1
  210. package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +26 -2
  211. package/dist/suites/edhr/panel-schema/data-init/utils/json-schema.d.ts +18 -0
  212. package/dist/suites/edhr/panel-schema/data-load/DataLoadPanel.vue.d.ts +2 -0
  213. package/dist/suites/edhr/panel-schema/data-load/ai-tmpl/ai-tmpl-editor.vue.d.ts +6 -0
  214. package/dist/suites/edhr/panel-schema/{data-init/common/add-ipaas/json-param-editor.vue.d.ts → data-load/ai-tmpl/identify-param-card.vue.d.ts} +7 -7
  215. package/dist/suites/edhr/panel-schema/data-load/common/add-tmpl-btn.vue.d.ts +16 -0
  216. package/dist/suites/edhr/panel-schema/data-load/common/decimal-slider.vue.d.ts +21 -0
  217. package/dist/suites/edhr/panel-schema/data-load/common/form-field-select.vue.d.ts +19 -0
  218. package/dist/suites/edhr/panel-schema/data-load/common/icon-tooltip.vue.d.ts +10 -0
  219. package/dist/suites/edhr/panel-schema/data-load/common/remove-icon.vue.d.ts +7 -0
  220. package/dist/suites/edhr/panel-schema/data-load/common/tmpl-card.vue.d.ts +25 -0
  221. package/dist/suites/edhr/panel-schema/data-load/data-load.basic.d.ts +5 -0
  222. package/dist/suites/edhr/panel-schema/data-load/device-tmpl/device-field-status.vue.d.ts +9 -0
  223. package/dist/suites/edhr/panel-schema/data-load/device-tmpl/device-tmpl-editor.vue.d.ts +6 -0
  224. package/dist/suites/edhr/panel-schema/data-load/device-tmpl/params-item-card.vue.d.ts +30 -0
  225. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/constant.d.ts +44 -0
  226. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/controller.d.ts +38 -0
  227. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/index.d.ts +3 -0
  228. package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/types.d.ts +157 -0
  229. package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/form-tmpl-config-controller.d.ts +67 -0
  230. package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/index.d.ts +2 -0
  231. package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/use-form-tmpl-config.d.ts +10 -0
  232. package/dist/suites/edhr/panel-schema/index.d.ts +70 -1
  233. package/dist/suites/edhr/panel-schema/paper-header-footer/PaperHeaderFooterPanel.vue.d.ts +2 -0
  234. package/dist/suites/edhr/panel-schema/paper-header-footer/paper-header-footer.basic.d.ts +5 -0
  235. package/dist/suites/edhr/panel-schema/paper-widget/PaperWidgetPanel.vue.d.ts +7 -1
  236. package/dist/suites/edhr/panel-schema/paper-widget/paper-widget.basic.d.ts +7 -1
  237. package/dist/suites/edhr/panel-schema/table-header/TableHeaderPanel.vue.d.ts +8 -0
  238. package/dist/suites/edhr/panel-schema/table-header/table-header.basic.d.ts +11 -0
  239. package/dist/suites/edhr/paper-widget-manifest/basic/line-manifest.d.ts +2 -0
  240. package/dist/suites/edhr/paper-widget-manifest/basic/pagination-manifest.d.ts +2 -0
  241. package/dist/suites/{edhr/panel-schema/paper-widget/widgets/editors/align-editor.vue.d.ts → shared/panel/config/editor/FormNumberEditor.vue.d.ts} +6 -8
  242. package/dist/suites/shared/panel/config/editor/single-field-editor/types.d.ts +9 -0
  243. package/dist/suites/shared/panel/modules/table-setting-module.vue.d.ts +5 -4
  244. package/dist/utils/TriggerUtil.d.ts +1 -1
  245. package/dist/utils/func/core.d.ts +7 -0
  246. package/dist/utils/func/dragdrop.d.ts +6 -1
  247. package/dist/utils/func/file.d.ts +1 -1
  248. package/dist/utils/symbol/contextKey.d.ts +7 -1
  249. package/dist/word.css +9284 -8173
  250. package/package.json +4 -1
  251. package/dist/core/sdk/types/public-types.d.ts +0 -78
  252. package/dist/runtime/designer/doc-design-layout.vue.d.ts +0 -6
  253. package/dist/runtime/useDocEngine.d.ts +0 -36
  254. package/dist/setup.d.ts +0 -46
  255. package/dist/suites/edhr/panel-schema/paper-widget/widgets/editors/img-parser.d.ts +0 -9
  256. package/dist/suites/edhr/panel-schema/paper-widget/widgets/editors/size-editor.vue.d.ts +0 -13
  257. package/dist/suites/edhr/panel-schema/paper-widget/widgets/editors/value-editor.vue.d.ts +0 -46
  258. package/dist/suites/edhr/panel-schema/paper-widget/widgets/image.vue.d.ts +0 -8
  259. package/dist/suites/edhr/panel-schema/paper-widget/widgets/serialnumber.vue.d.ts +0 -7
  260. /package/dist/suites/edhr/panel-config/{file → field/file}/upload.d.ts +0 -0
@@ -0,0 +1,12 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { CommandPayloadMap } from '../types';
3
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
4
+ /**
5
+ * 删除有界区域命令
6
+ *
7
+ * 删除指定的 table header 区域
8
+ */
9
+ export declare class DeleteTableHeader extends CommandBase<'deleteTableHeader'> {
10
+ constructor(doc: Doc, payload?: CommandPayloadMap['deleteTableHeader']);
11
+ protected execute(): Promise<PostCommandContext>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { CommandPayloadMap } from '../types';
4
+ type InsertFloatingOverlayCommandOptions = CommandPayloadMap['insertFloatingOverlay'];
5
+ export declare class InsertFloatingOverlay extends CommandBase<'insertFloatingOverlay'> {
6
+ constructor(doc: Doc, payload: InsertFloatingOverlayCommandOptions);
7
+ protected execute(): Promise<PostCommandContext>;
8
+ }
9
+ export {};
@@ -1,59 +1,19 @@
1
1
  import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
2
  import { Doc } from '../../view/Doc';
3
3
  import { CommandPayloadMap } from '../types';
4
- import { Wp, Wtc } from '../../model/document';
5
- import { ModelNode } from '../../model/base';
4
+ import { Wp } from '../../model/document';
6
5
  type InsertPaperWidgetCommandOptions = CommandPayloadMap['insertPaperWidget'];
7
6
  export declare class InsertPaperWidget extends CommandBase<'insertPaperWidget'> {
8
7
  constructor(doc: Doc, payload: InsertPaperWidgetCommandOptions);
9
8
  protected execute(): Promise<PostCommandContext>;
10
- /**
11
- * 处理折叠状态下的图片插入
12
- */
13
- private handleCollapseImage;
9
+ checkDiagonalWrapper(wp: Wp): boolean;
14
10
  /**
15
11
  * 处理折叠状态下的文本(字段)插入
16
12
  */
17
13
  private handleCollapseText;
18
- /**
19
- * 处理选区下的图片插入
20
- */
21
- private handleSelectionImage;
22
14
  /**
23
15
  * 处理选区下的文本(字段)插入
24
16
  */
25
17
  private handleSelectionText;
26
- protected isRootField(valuePath?: string): boolean;
27
- protected isNestedTableField(valuePath?: string): boolean;
28
- /**
29
- * 判断两个 valuePath 是否连续(父子关系)
30
- * @param parentPath 父路径,如 "$.a[n]"
31
- * @param childPath 子路径,如 "$.a[n].b" 或 "$.a[n].b[n].c"
32
- * @returns 是否为连续的父子关系
33
- *
34
- * @example
35
- * isConsecutivePath("$.a", "$.a.b") // true
36
- * isConsecutivePath("$.a[n]", "$.a[n].b") // true
37
- * isConsecutivePath("$.a[n].b[n]", "$.a[n].b[n].c") // true
38
- * isConsecutivePath("$.a", "$.b") // false
39
- * isConsecutivePath("$.a[n].b", "$.a[n]") // false (反向)
40
- */
41
- protected isConsecutivePath(parentPath: string, childPath: string): boolean;
42
- /**
43
- * 判断 childPath 是否可以在 parentPath 的循环区域中使用
44
- * @param parentPath 循环区域的路径,不以 [n] 结尾,如 "$.a" 或 "$.a[n].b"
45
- * @param childPath 要插入字段的路径,不以 [n] 结尾,如 "$.a.b" 或 "$.a[n].b.c"
46
- * @returns 是否兼容
47
- *
48
- * @example
49
- * isFieldPathCompatible("$.a", "$.a.b") // true
50
- * isFieldPathCompatible("$.a", "$.a[n].b") // true - 去掉开头 [n] 后 .b 没有 [n]
51
- * isFieldPathCompatible("$.a", "$.a[n].b[n].c") // false - 去掉开头 [n] 后 .b[n].c 还有 [n]
52
- * isFieldPathCompatible("$.a[n].b", "$.a[n].b.c") // true
53
- * isFieldPathCompatible("$.a[n].b", "$.a[n].b[n].c") // false - 去掉开头 [n] 后 .c 实际上应该检查原逻辑
54
- */
55
- protected isFieldPathCompatible(parentPath: string, childPath: string): boolean;
56
- protected getAncestorCell(node: ModelNode): Wtc | null;
57
- protected validateFieldPath(valuePath: string | undefined, node: Wp): boolean;
58
18
  }
59
19
  export {};
@@ -0,0 +1,7 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { CommandPayloadMap } from '../types';
4
+ export declare class ResizeOverlayLayout extends CommandBase<'resizeOverlayLayout'> {
5
+ constructor(doc: Doc, payload: CommandPayloadMap['resizeOverlayLayout']);
6
+ protected execute(): Promise<PostCommandContext>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { CommandPayloadMap } from '../types';
4
+ export declare class Set2DTable extends CommandBase<'set2DTable'> {
5
+ constructor(doc: Doc, payload?: CommandPayloadMap['set2DTable']);
6
+ protected execute(): Promise<PostCommandContext>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { CommandPayloadMap } from '../types';
4
+ export declare class SetCheckTable extends CommandBase<'setCheckTable'> {
5
+ constructor(doc: Doc, payload?: CommandPayloadMap['setCheckTable']);
6
+ protected execute(): Promise<PostCommandContext>;
7
+ }
@@ -0,0 +1,25 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { Wtc } from '../../model/document';
4
+ import { CheckTableRegion, _2DTableRegion, Region } from '../../model/logic';
5
+ import { CommandPayloadMap } from '../types';
6
+ type DataGroup2DSubTableRegion = CheckTableRegion | _2DTableRegion;
7
+ export declare class SetDataGroup2D extends CommandBase<'setDataGroup2D'> {
8
+ constructor(doc: Doc, payload?: CommandPayloadMap['setDataGroup2D']);
9
+ protected execute(): Promise<PostCommandContext>;
10
+ /**
11
+ *
12
+ * @param startCell
13
+ * @param endCell
14
+ * @returns
15
+ */
16
+ protected getSubTableRegion(startCell: Wtc, endCell: Wtc): DataGroup2DSubTableRegion | undefined;
17
+ /**
18
+ * 获取公共区域
19
+ * @param startCell
20
+ * @param endCell
21
+ * @returns
22
+ */
23
+ protected getRegion(startCell: Wtc, endCell: Wtc): Region | undefined;
24
+ }
25
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { CommandPayloadMap } from '../types';
3
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
4
+ /**
5
+ * 设置页眉页脚配置(全局生效)
6
+ * 会遍历文档中所有 WsecPr 节点并统一写入
7
+ */
8
+ export declare class SetHeaderFooterConfig extends CommandBase {
9
+ constructor(doc: Doc, payload: CommandPayloadMap['setHeaderFooterConfig']);
10
+ protected execute(): Promise<PostCommandContext>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { CommandPayloadMap } from '../types';
4
+ export declare class SetSubTableHeader extends CommandBase<'setSubTableHeader'> {
5
+ constructor(doc: Doc, payload?: CommandPayloadMap['setSubTableHeader']);
6
+ protected execute(): Promise<PostCommandContext>;
7
+ private getSubTableRegion;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { CommandBase, PostCommandContext } from '../base/CommandBase';
2
+ import { Doc } from '../../view/Doc';
3
+ import { CommandPayloadMap } from '../types';
4
+ export declare class SetTableHeader extends CommandBase<'setTableHeader'> {
5
+ constructor(doc: Doc, payload?: CommandPayloadMap['setTableHeader']);
6
+ protected execute(): Promise<PostCommandContext>;
7
+ }
@@ -2,6 +2,7 @@ import { VOrientationType } from '../../domain/constants/enum';
2
2
  import { Doc } from '../view/Doc';
3
3
  import { WidgetMeta } from '../widget/widget-meta';
4
4
  import { WordHighlight } from '../model/types';
5
+ import { PointerHitResult } from '../cursor/hit/types';
5
6
  export interface CursorMeta {
6
7
  nodeId: string;
7
8
  offset: number;
@@ -27,11 +28,13 @@ export type CommandConstructor = new (doc: Doc, payload?: any) => ICommand<any>;
27
28
  export declare const CommandType: {
28
29
  readonly setOrient: "setOrient";
29
30
  readonly setPadding: "setPadding";
31
+ readonly setHeaderFooterConfig: "setHeaderFooterConfig";
30
32
  readonly insertText: "insertText";
31
33
  readonly insertTable: "insertTable";
32
34
  readonly insertImage: "insertImage";
33
35
  readonly insertField: "insertField";
34
36
  readonly insertPaperWidget: "insertPaperWidget";
37
+ readonly insertFloatingOverlay: "insertFloatingOverlay";
35
38
  readonly delete: "delete";
36
39
  readonly backspace: "backspace";
37
40
  readonly enter: "enter";
@@ -44,12 +47,21 @@ export declare const CommandType: {
44
47
  readonly setUnderline: "setUnderline";
45
48
  readonly setStrike: "setStrike";
46
49
  readonly setAlign: "setAlign";
50
+ readonly setTableHeader: "setTableHeader";
51
+ readonly deleteTableHeader: "deleteTableHeader";
47
52
  readonly setRepeating: "setRepeating";
53
+ readonly set2DTable: "set2DTable";
48
54
  readonly setBounded: "setBounded";
49
55
  readonly setBoundedItem: "setBoundedItem";
56
+ readonly setCheckTable: "setCheckTable";
57
+ readonly setDataGroup2D: "setDataGroup2D";
58
+ readonly setSubTableHeader: "setSubTableHeader";
50
59
  readonly deleteRepeating: "deleteRepeating";
60
+ readonly delete2DTable: "delete2DTable";
51
61
  readonly deleteBounded: "deleteBounded";
52
62
  readonly deleteBoundedItem: "deleteBoundedItem";
63
+ readonly deleteCheckTable: "deleteCheckTable";
64
+ readonly deleteDataGroup2D: "deleteDataGroup2D";
53
65
  readonly insertRow: "insertRow";
54
66
  readonly insertCol: "insertCol";
55
67
  readonly deleteRow: "deleteRow";
@@ -61,6 +73,7 @@ export declare const CommandType: {
61
73
  readonly resizeImage: "resizeImage";
62
74
  readonly resizeCol: "resizeCol";
63
75
  readonly resizeRow: "resizeRow";
76
+ readonly resizeOverlayLayout: "resizeOverlayLayout";
64
77
  };
65
78
  export type CommandType = ValueOf<typeof CommandType>;
66
79
  /**
@@ -84,8 +97,11 @@ export type CommandPayloadMap = {
84
97
  valuePath: string;
85
98
  };
86
99
  insertPaperWidget: CommandPayload & {
87
- widgetMeta: WidgetMeta;
88
- valuePath: string;
100
+ pageWidgetMeta: WidgetMeta;
101
+ };
102
+ insertFloatingOverlay: CommandPayload & {
103
+ hit: PointerHitResult;
104
+ pageWidgetMeta: WidgetMeta;
89
105
  };
90
106
  delete: CommandPayload & Record<string, never>;
91
107
  backspace: CommandPayload & Record<string, never>;
@@ -95,6 +111,13 @@ export type CommandPayloadMap = {
95
111
  };
96
112
  setPadding: CommandPayload & {
97
113
  padding: [number, number, number, number];
114
+ serRefId: string;
115
+ };
116
+ setHeaderFooterConfig: CommandPayload & {
117
+ headerMargin?: number;
118
+ footerMargin?: number;
119
+ titlePg?: boolean;
120
+ evenAndOddHeaders?: boolean;
98
121
  };
99
122
  setHighlight: CommandPayload & {
100
123
  highlight: WordHighlight;
@@ -127,15 +150,34 @@ export type CommandPayloadMap = {
127
150
  name: string;
128
151
  valuePath: string;
129
152
  };
153
+ set2DTable: CommandPayload & {
154
+ name: string;
155
+ valuePath: string;
156
+ };
130
157
  setBounded: CommandPayload & {
131
158
  name: string;
132
159
  valuePath: string;
133
160
  };
134
161
  setBoundedItem: CommandPayload & Record<string, never>;
162
+ setCheckTable: CommandPayload & {
163
+ name: string;
164
+ valuePath: string;
165
+ };
166
+ setDataGroup2D: CommandPayload & Record<string, never>;
167
+ setTableHeader: CommandPayload & {
168
+ name: string;
169
+ };
170
+ setSubTableHeader: CommandPayload & {
171
+ name: string;
172
+ };
135
173
  deleteRepeating: CommandPayload & {
136
174
  tableId: string;
137
175
  regionId: string;
138
176
  };
177
+ delete2DTable: CommandPayload & {
178
+ tableId: string;
179
+ regionId: string;
180
+ };
139
181
  deleteBounded: CommandPayload & {
140
182
  tableId: string;
141
183
  regionId: string;
@@ -144,6 +186,18 @@ export type CommandPayloadMap = {
144
186
  tableId: string;
145
187
  regionId: string;
146
188
  };
189
+ deleteCheckTable: CommandPayload & {
190
+ tableId: string;
191
+ regionId: string;
192
+ };
193
+ deleteDataGroup2D: CommandPayload & {
194
+ tableId: string;
195
+ regionId: string;
196
+ };
197
+ deleteTableHeader: CommandPayload & {
198
+ tableId: string;
199
+ regionId: string;
200
+ };
147
201
  insertRow: CommandPayload & {
148
202
  tableId: string;
149
203
  rowIndex: number;
@@ -185,11 +239,21 @@ export type CommandPayloadMap = {
185
239
  rowIndex: number;
186
240
  height: number;
187
241
  };
242
+ resizeOverlayLayout: CommandPayload & {
243
+ id: string;
244
+ pos: {
245
+ width: number;
246
+ height: number;
247
+ x?: number;
248
+ y?: number;
249
+ };
250
+ needsReLayout?: boolean;
251
+ };
188
252
  };
189
253
  /**
190
254
  * payload 可选的命令类型(不需要额外参数)
191
255
  */
192
- export type OptionalPayloadCommands = 'delete' | 'backspace' | 'enter' | 'setBoundedItem' | 'mergeCells' | 'unmergeCells' | 'snapshot';
256
+ export type OptionalPayloadCommands = 'delete' | 'backspace' | 'enter' | 'setBoundedItem' | 'setDataGroup2D' | 'mergeCells' | 'unmergeCells' | 'setTableHeader' | 'setSubTableHeader' | 'snapshot';
193
257
  /**
194
258
  * 必须提供 payload 的命令类型
195
259
  */
@@ -3,6 +3,13 @@ import { ExternalNodeType } from '../../domain/widget/component-type';
3
3
  export declare const BuiltinComponentTypeConst: {
4
4
  /** 纸张 */
5
5
  readonly Paper: "paper";
6
+ /** 页眉 */
7
+ readonly Header: "header";
8
+ /** 页脚 */
9
+ readonly Footer: "footer";
10
+ /** 浮层容器 */
11
+ readonly OverlayContainer: "overlay-container";
12
+ readonly OverlayLayout: "overlay-layout";
6
13
  /** 段落 */
7
14
  readonly Paragraph: "paragraph";
8
15
  /** 文本 */
@@ -1,5 +1,6 @@
1
1
  import { Doc } from '../view/Doc';
2
2
  import { MoveOpts } from '../event/types';
3
+ import { PointerHitResult } from './hit/types';
3
4
  import { Pos } from './session/CursorDragSession';
4
5
  export declare class CursorController {
5
6
  doc: Doc;
@@ -47,5 +48,19 @@ export declare class CursorController {
47
48
  phase?: 'preview' | 'commit';
48
49
  syncCaret?: boolean;
49
50
  }): void;
51
+ /**
52
+ * 根据鼠标位置,计算命中的页面及坐标信息
53
+ */
54
+ getPageHitInfo(canvasX: number, canvasY: number): {
55
+ page: import('..').Page;
56
+ canvasX: number;
57
+ canvasY: number;
58
+ relX: number;
59
+ relY: number;
60
+ } | null;
61
+ /**
62
+ * 解析指针命中结果
63
+ */
64
+ resolvePointerHit(canvasX: number, canvasY: number, pos?: Pos): PointerHitResult | null;
50
65
  destroy(): void;
51
66
  }
@@ -0,0 +1,9 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { BaseMetaNode } from '../../layout/types';
3
+ import { HitHandler, HitResult } from './types';
4
+ import { HitHandlerRegistry } from './HitHandlerRegistry';
5
+ export declare class OverlayLayoutHitHandler implements HitHandler {
6
+ private registry?;
7
+ constructor(registry?: HitHandlerRegistry);
8
+ handleHitDetection(doc: Doc, node: BaseMetaNode, actualX: number, actualY: number): HitResult | null;
9
+ }
@@ -1,6 +1,7 @@
1
1
  import { BaseMetaNode } from '../../layout/types';
2
2
  import { Doc } from '../../view/Doc';
3
3
  import { CursorIntent, Side } from '../types/cursor';
4
+ import { Page } from '../../view/Page';
4
5
  export interface HitResult {
5
6
  id: string;
6
7
  offset: number;
@@ -34,3 +35,19 @@ export interface HitHandler {
34
35
  /** 是否点中即全选 */
35
36
  isClickSelectAll?: (doc: Doc, node: BaseMetaNode) => HitIntent;
36
37
  }
38
+ /**
39
+ * 指针命中结果(统一数据结构)
40
+ * 所有拖拽 / hover / 点击 / cursor 都应该基于它
41
+ */
42
+ export interface PointerHitResult {
43
+ /** 命中的页面 */
44
+ page: Page;
45
+ /** 命中的区域 */
46
+ zone: 'header' | 'footer' | 'body';
47
+ /** 画布坐标 */
48
+ canvasX: number;
49
+ canvasY: number;
50
+ /** 相对于 page 的坐标 */
51
+ relX: number;
52
+ relY: number;
53
+ }
@@ -5,8 +5,8 @@ import { BaseMetaNode } from '../../layout/types';
5
5
  */
6
6
  export declare function getBaseMetaInfo(node: BaseMetaNode): {
7
7
  isPlaceholder: boolean;
8
- id: string;
9
8
  path: string[];
9
+ id: string;
10
10
  pathIndex: number[];
11
11
  pageId: string;
12
12
  preId: string;
@@ -1,5 +1,6 @@
1
1
  import { Doc } from '../view/Doc';
2
2
  export type Data = Record<string, any>;
3
+ export type PartialData = Partial<Data>;
3
4
  type JsonPath = string;
4
5
  type SubscriptionCallback = (newValue: any, oldValue: any) => void;
5
6
  /**
@@ -53,6 +54,10 @@ export declare class DataManager {
53
54
  * @returns 是否设置成功
54
55
  */
55
56
  set(path: JsonPath, value: any, source?: 'user' | 'dependency'): boolean;
57
+ /**
58
+ * 将一个部分值对象合进整体
59
+ */
60
+ patch(data: PartialData): void;
56
61
  /**
57
62
  * 根据 jsonpath 删除数据
58
63
  * @param path jsonpath 路径
@@ -36,7 +36,11 @@ export declare class DocumentEventBridge {
36
36
  private onDown;
37
37
  private onMove;
38
38
  private onUp;
39
- private emit;
39
+ emit(type: string, pos: {
40
+ clientX: number;
41
+ clientY: number;
42
+ pointerId: number;
43
+ }): void;
40
44
  private onScroll;
41
45
  private onRequestScroll;
42
46
  private ensureCaretVisibleByHiddenInput;
@@ -29,7 +29,7 @@ export declare class EventManager {
29
29
  * 绑定单个事件
30
30
  */
31
31
  private bindEvent;
32
- dispatchCustom(eventName: string, payload: any): void;
32
+ dispatchCustom<T = any>(eventName: string, payload: any): T[];
33
33
  /**
34
34
  * 销毁事件管理器,清理所有事件监听
35
35
  */
@@ -12,4 +12,7 @@ export declare class InteractionHandler implements IEventHandler {
12
12
  private handleFocusWidget;
13
13
  private handleShowValidationComment;
14
14
  private handleFocusValidation;
15
+ private handleChangeHeader2footerBool;
16
+ private handleSetAnnotation;
17
+ private handleFocusAnnotation;
15
18
  }
@@ -2,6 +2,7 @@ import { EventHandlerConfig, IEventHandler } from '../types';
2
2
  import { EventManager } from '../EventManager';
3
3
  export declare class KonvaHandler implements IEventHandler {
4
4
  private eventManager;
5
+ private dragMode;
5
6
  constructor(eventManager: EventManager);
6
7
  getHandlers(): EventHandlerConfig[];
7
8
  /** 从 Konva shape 向上查找组件id: */
@@ -13,6 +14,8 @@ export declare class KonvaHandler implements IEventHandler {
13
14
  private handleDragStart;
14
15
  private handleDragMove;
15
16
  private handleDragEnd;
17
+ /** 根据 pointer(鼠标/触摸)位置,解析命中结果 */
18
+ private handlePointerResolve;
16
19
  /** 光标定位 */
17
20
  private handleCaretLocate;
18
21
  }
@@ -1,16 +1,18 @@
1
- export { createDoc, createDocInfo } from './sdk/createDoc';
1
+ export { newDoc } from './sdk/createDoc';
2
2
  export { useDocPubApiContext } from './sdk/DocPubApiContext';
3
- export { usePagesToPdf } from './sdk/usePagesToPdf';
3
+ export { usePrint } from './sdk/usePagesToPdf';
4
4
  export { useInteraction } from './interaction/useInteraction';
5
5
  export { formulaUtils } from './utils/calculate-formula';
6
+ export { TextUtil } from './view/utils/TextUtil';
6
7
  export { resolveWidgetState } from './widget/widget-state';
8
+ export { validateTextWidgetMarker } from './layout/logic/LayoutBuilder';
7
9
  export { CommandType } from './command/types';
8
10
  export { ModelConverter } from './model';
9
11
  export { DocumentEventBridge } from './event/DocumentEventBridge';
10
12
  export { DocModeTypeConst, PageSizeEnumConst, BuiltinComponentTypeConst } from './constants';
11
13
  export { default as CursorOverlay } from './cursor/render/cursor-overlay.vue';
12
14
  export { default as HiddenInput } from './cursor/render/hidden-input.vue';
13
- export type { EnginePublic, PublicDoc, DocInfo } from './sdk/types/public-types';
15
+ export type { PaperItem } from './sdk/usePagesToPdf';
14
16
  export type { DocInitOptions } from './view/Doc';
15
17
  export type { WidgetMeta } from './widget/widget-meta';
16
18
  export type { DocModeType, CompleteComponentType, BuiltinComponentType } from './constants';
@@ -21,9 +23,12 @@ export type { TextRun } from './view/runs/TextRun';
21
23
  export type { ImageRun } from './view/runs/ImageRun';
22
24
  export type { ITextWidget } from './view/runs/TextWidget';
23
25
  export type { IImageWidget } from './view/runs/ImageWidget';
26
+ export type { TextWidget } from './view/runs/TextWidget';
27
+ export type { WrPageWidget } from './model/document';
24
28
  export type { Border, Paragraph } from './view/Paragraph';
29
+ export type { OverlayLayout } from './view/base/OverlayLayout';
25
30
  export type { Table } from './view/Table';
26
31
  export type { SubRenderer } from './view/TableCell';
27
32
  export type { Wtbl } from './model/document';
28
- export type { BoundedRegion } from './model/logic';
33
+ export type { BoundedRegion, CheckTableRegion, _2DTableRegion } from './model/logic';
29
34
  export type { WidgetStateContext } from './widget/widget-state';
@@ -17,7 +17,7 @@ export declare class InteractionController {
17
17
  }): void;
18
18
  clearTableSelection(): void;
19
19
  onChangeDragHoverId(hitId: string): void;
20
- resolveIntent(id: string | undefined): void;
20
+ resolveIntent(id: string | undefined, hitId: string | undefined): void;
21
21
  onActivePanelData(payload: {
22
22
  type: PanelType;
23
23
  modelId?: string;
@@ -39,5 +39,12 @@ export declare class InteractionController {
39
39
  onContextMenu(payload: ContextMenuParams & {
40
40
  contextMenuRef: any;
41
41
  }): void;
42
+ onChangeHeader2footerBool(visible: boolean): void;
43
+ onSetAnnotation(payload: {
44
+ ids: string[];
45
+ list: any[];
46
+ focus: string | null;
47
+ }): void;
48
+ onFocusAnnotation(payload: string | null): void;
42
49
  destroy(): void;
43
50
  }
@@ -11,6 +11,8 @@ export declare class InteractionPolicy {
11
11
  constructor(doc: Doc);
12
12
  /** 是否允许输入 */
13
13
  canInput(run?: LayoutNode): boolean;
14
+ /** 是否允许删除 */
15
+ canBackspace(run?: LayoutNode): boolean;
14
16
  /** 事件前置拦截 */
15
17
  guardEvent(eventName: string, payload: any): boolean;
16
18
  /** 全局互斥规则 统一处理变量互斥 */
@@ -25,5 +25,13 @@ export type InteractionState = {
25
25
  }>> | null;
26
26
  /** 当前 focus 的字段校验批注信息 */
27
27
  focusValidation: string | '';
28
+ /** 页眉页脚配置开关 */
29
+ isHeaderFooterEdit: boolean;
30
+ /** 记录变更的字段列表 */
31
+ annotationIds: string[] | null;
32
+ /** 当前点击的记录变更 id */
33
+ focusAnnotationId: string | null;
34
+ /** 记录变更的详情信息列表 */
35
+ annotationList: any[] | null;
28
36
  };
29
37
  export type InteractionType = keyof InteractionState;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { EnginePublic } from '..';
3
- export declare function useInteraction(publicDocApi: Ref<EnginePublic | null>): {
2
+ import { Doc } from '../view/Doc';
3
+ export declare function useInteraction(docRef: Ref<Doc | null>): {
4
4
  readonly tableSelection?: {
5
5
  readonly tableId: string;
6
6
  readonly axis: "row" | "col" | "all";
@@ -12,12 +12,12 @@ export declare function useInteraction(publicDocApi: Ref<EnginePublic | null>):
12
12
  readonly focusTick?: number | undefined;
13
13
  readonly panelData?: {
14
14
  readonly panelType: import('../../domain/active/active-types').PanelType;
15
- readonly widgetId?: string | undefined;
16
15
  readonly modelId?: string | undefined;
17
16
  readonly context: {
18
17
  readonly mainModelKey?: string | undefined;
19
18
  readonly subFieldKey?: string | undefined;
20
19
  readonly regionId?: string | undefined;
20
+ readonly secRefId?: string | undefined;
21
21
  };
22
22
  } | null | undefined;
23
23
  readonly validationCommentMap?: {
@@ -28,4 +28,8 @@ export declare function useInteraction(publicDocApi: Ref<EnginePublic | null>):
28
28
  }[];
29
29
  } | null | undefined;
30
30
  readonly focusValidation?: string | undefined;
31
+ readonly isHeaderFooterEdit?: boolean | undefined;
32
+ readonly annotationIds?: readonly string[] | null | undefined;
33
+ readonly focusAnnotationId?: string | null | undefined;
34
+ readonly annotationList?: readonly any[] | null | undefined;
31
35
  };
@@ -1,17 +1,20 @@
1
1
  import { Page, PageChild, PageOptions } from '../view/Page';
2
2
  import { Paragraph } from '../view/Paragraph';
3
- import { LayoutNode } from '../view/base';
3
+ import { BandContainer, LayoutNode } from '../view/base';
4
4
  import { TableCell } from '../view/TableCell';
5
5
  import { Doc } from '../view/Doc';
6
6
  import { Section } from '../view/Section';
7
+ import { OverlayLayout } from '../view/base/OverlayLayout';
7
8
  interface ContextOptions {
8
- type: 'page' | 'cell';
9
+ type: 'page' | 'cell' | 'header' | 'footer' | 'overlayLayout';
9
10
  doc: Doc;
10
11
  section?: Section;
11
12
  page?: Page;
12
13
  cell?: TableCell;
13
14
  paragraph?: PageChild;
14
15
  layoutRun?: LayoutNode;
16
+ current?: OverlayLayout;
17
+ onPageCreated?: (page: Page) => void;
15
18
  }
16
19
  export declare class LayoutContext {
17
20
  type: ContextOptions['type'];
@@ -21,11 +24,14 @@ export declare class LayoutContext {
21
24
  cell?: TableCell;
22
25
  paragraph?: PageChild;
23
26
  layoutRun?: LayoutNode;
27
+ current?: OverlayLayout;
24
28
  modelRef?: {
25
29
  id: string;
26
30
  };
31
+ onPageCreated?: (page: Page) => void;
32
+ /** 当前 section 内的页码 */
27
33
  constructor(options: ContextOptions);
28
- get container(): Page | TableCell;
34
+ get container(): Page | TableCell | BandContainer | OverlayLayout;
29
35
  updateSection(section: Section): void;
30
36
  updatePage(page: Page): void;
31
37
  updateParagraph(paragraph: PageChild): void;
@@ -37,6 +43,10 @@ export declare class LayoutContext {
37
43
  createNewParagraph(y?: number): Paragraph;
38
44
  resetModelRef(id: string): void;
39
45
  getRunX(): number;
46
+ /**
47
+ * 获取当前行剩余的空间
48
+ */
49
+ getParagraphRemainingSize(): number;
40
50
  addRun(run: LayoutNode): void;
41
51
  /**
42
52
  * 根据 dataIndex 替换 path 中的 [n] 为实际值