@gct-paas/word 0.1.74-beta.9 → 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.
- package/README.md +4 -1
- package/dist/assets/svgs/table/index.d.ts +5 -0
- package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -0
- package/dist/base/modal/src/modal.type.d.ts +5 -0
- package/dist/base/rdo-tree-select/src/rdo-tree-select-more.vue.d.ts +10 -3
- package/dist/base/rdo-tree-select/src/rdo-tree-select-panel.vue.d.ts +6 -1
- package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
- package/dist/base/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/dist/base/select/src/basic-select.vue.d.ts +14 -0
- package/dist/base/utils/image-size-util.d.ts +2 -0
- package/dist/core/command/commands/InsertTable.d.ts +4 -0
- package/dist/core/command/commands/UnmergeCells.d.ts +5 -1
- package/dist/core/command/types.d.ts +1 -0
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/table.d.ts +11 -0
- package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
- package/dist/core/cursor/logic/index.d.ts +2 -1
- package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
- package/dist/core/data/enrichers/build-field-enrichers.d.ts +1 -1
- package/dist/core/data/enrichers/lot-parent-label-enricher.d.ts +12 -0
- package/dist/core/data/enrichers/operation-receive-qty-enricher.d.ts +19 -0
- package/dist/core/data/submit/form-state.d.ts +1 -1
- package/dist/core/event/types.d.ts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/interaction/InteractionController.d.ts +11 -0
- package/dist/core/interaction/types.d.ts +8 -0
- package/dist/core/interaction/useInteraction.d.ts +6 -0
- package/dist/core/layout/LayoutManager.d.ts +5 -1
- package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +2 -0
- package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
- package/dist/core/layout/table/split-table.d.ts +10 -0
- package/dist/core/layout/types/index.d.ts +2 -0
- package/dist/core/model/document/Wbody.d.ts +4 -0
- package/dist/core/model/document/WrText.d.ts +2 -0
- package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
- package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
- package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
- package/dist/core/model/document/Wtbl.d.ts +31 -3
- package/dist/core/model/document/Wtc.d.ts +13 -2
- package/dist/core/model/document/Wtr.d.ts +2 -1
- package/dist/core/model/document/index.d.ts +1 -0
- package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/bounded/BoundedRegion.d.ts +2 -0
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +20 -1
- package/dist/core/model/templates/tableCell.template.d.ts +2 -0
- package/dist/core/model/types/style.d.ts +2 -0
- package/dist/core/view/Doc.d.ts +13 -1
- package/dist/core/view/Table.d.ts +13 -0
- package/dist/core/view/TableCell.d.ts +2 -1
- package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
- package/dist/core/view/runs/TextRun.d.ts +4 -0
- package/dist/domain/active/active-types.d.ts +10 -0
- package/dist/domain/constants/enum/device.d.ts +26 -0
- package/dist/domain/constants/enum/index.d.ts +2 -0
- package/dist/domain/constants/enum/lot.d.ts +16 -0
- package/dist/domain/constants/enum/view.d.ts +1 -1
- package/dist/domain/device/device-query.d.ts +10 -0
- package/dist/domain/field/field-props-schema-type.d.ts +10 -1
- package/dist/domain/field/field-type.d.ts +514 -143
- package/dist/domain/field/form-value.d.ts +5 -0
- package/dist/domain/field/lot-display-label.d.ts +2 -0
- package/dist/domain/object/date-object/index.d.ts +4 -0
- package/dist/domain/object/date-object/profile/field-keys.d.ts +19 -0
- package/dist/domain/object/date-object/profile/fields.d.ts +2 -0
- package/dist/domain/object/date-object/profile/index.d.ts +3 -0
- package/dist/domain/object/date-object/runtime/date-object-context.d.ts +41 -0
- package/dist/domain/object/date-object/runtime/date-object-runtime.d.ts +41 -0
- package/dist/domain/object/date-object/runtime/fetch-records.d.ts +16 -0
- package/dist/domain/object/date-object/runtime/object-handlers.d.ts +6 -0
- package/dist/domain/object/date-object/runtime/re-inspection-date.d.ts +49 -0
- package/dist/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
- package/dist/domain/object/date-object/types.d.ts +48 -0
- package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
- package/dist/domain/table/business/material/material-requisition/index.d.ts +2 -0
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +34 -0
- package/dist/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-requisition/profile/index.d.ts +4 -0
- package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +5 -0
- package/dist/domain/table/business/material/types.d.ts +41 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -1
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +6 -8
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +4 -6
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +6 -6
- package/dist/domain/table/business/shared/production-container-hyperlink-enricher.d.ts +1 -1
- package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +17 -0
- package/dist/domain/table/business/shared/scan-action.d.ts +32 -17
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -1
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +6 -7
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -4
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +1 -1
- package/dist/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +35 -0
- package/dist/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +3 -0
- package/dist/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +38 -0
- package/dist/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +6 -0
- package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +19 -0
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -7
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -2
- package/dist/domain/table/business/warehouse/warehouse-in/actions/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-in/actions/scan.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-in/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +6 -0
- package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +7 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +32 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +9 -7
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +7 -4
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +6 -57
- package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-out/actions/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-out/actions/scan.d.ts +7 -0
- package/dist/domain/table/business/warehouse/warehouse-out/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +34 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +2 -0
- package/dist/domain/table/design/ribbon-options.d.ts +2 -0
- package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
- package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
- package/dist/domain/table/index.d.ts +1 -0
- package/dist/domain/table/runtime/api/biz-service-api.d.ts +3 -1
- package/dist/domain/table/runtime/engines/linkage-engine.d.ts +9 -2
- package/dist/domain/table/types.d.ts +28 -4
- package/dist/index.es.js +27216 -15049
- package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/render/label-parse-rule/type.d.ts +7 -1
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +151 -18
- package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -0
- package/dist/runtime/canvas/table/render/material-consume/derived-qty.d.ts +5 -0
- package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +46 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +126 -29
- package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +2 -3
- package/dist/runtime/canvas/table/render/material-consume/product-id-query.d.ts +31 -0
- package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +10 -0
- package/dist/runtime/canvas/table/render/material-consume/scan-validator.d.ts +192 -0
- package/dist/runtime/canvas/table/render/material-consume/service.d.ts +20 -0
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +4 -1
- package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
- package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +13 -0
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +12 -0
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/index.d.ts +1 -1
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/quick-fill.util.d.ts +5 -1
- package/dist/runtime/canvas/table/shared/resolve-cell-row-change-style.d.ts +8 -4
- package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
- package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
- package/dist/runtime/designer/ribbon/constant/font.d.ts +13 -5
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/interface/fetchers.d.ts +4 -0
- package/dist/runtime/interface/form-change-row.d.ts +0 -1
- package/dist/runtime/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
- package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +14 -0
- package/dist/runtime/renderer/dialogs/signature/security-config.d.ts +6 -0
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +4 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-inventory-ndo.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-ndo.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +4 -2
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +3 -0
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +7 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +338 -0
- package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +8 -3
- package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +6 -4
- package/dist/runtime/renderer/dropdowns/composables/useDropdownViewportSize.d.ts +7 -0
- package/dist/runtime/validation/useFormValidator.d.ts +5 -2
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -1
- package/dist/sdk/types/field-model-query.d.ts +2 -0
- package/dist/sdk/types/index.d.ts +8 -1
- package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +15 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +8 -2
- package/dist/suites/edhr/manifest/field/business/operation-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/operation-output-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/operation-receive-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/production-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/model-relation-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/material/target-warehouse-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/date-object-manifest.d.ts +3 -0
- package/dist/suites/edhr/manifest/field/object-type/re-inspection-date-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/validity-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +74 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +69 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.d.ts +13 -0
- package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +7 -5
- package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +2 -1
- package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
- package/dist/suites/eqm/index.d.ts +1 -1
- package/dist/suites/eqm/panel-router/index.d.ts +2 -0
- package/dist/suites/eqm/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
- package/dist/suites/eqm/panel-schema/index.d.ts +7 -0
- package/dist/suites/eqm/panel-schema/part-stocktake-table/part-stocktake-table.basic.d.ts +1 -0
- package/dist/suites/eqm/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.d.ts +1 -0
- package/dist/suites/eqm/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
- package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue.d.ts +4 -3
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +6 -0
- package/dist/suites/shared/panel/config/editor/field-config-visibility.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue.d.ts +28 -0
- package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +5 -7
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +3 -2
- package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
- package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
- package/dist/suites/shared/suite-features.d.ts +3 -1
- package/dist/utils/adapters/ServiceUtil.d.ts +5 -2
- package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
- package/dist/utils/fonts/cjk-font-catalog.d.ts +24 -1
- package/dist/word.css +1434 -1032
- package/package.json +2 -1
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
- package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
- /package/dist/suites/edhr/manifest/field/{trace/production-identifier-manifest.d.ts → business/inspection-qty-manifest.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -158,7 +158,10 @@ Vue 运行时注册函数。建议在 `createApp` 后、`mount` 前调用。
|
|
|
158
158
|
- `options.factoryType`:`'template' | 'instance'`
|
|
159
159
|
- `options.modelKey`:主模型 key
|
|
160
160
|
- `options.suiteKey?`:套件 key(默认常用 `edhr`)
|
|
161
|
-
- `options.isPreview?` / `options.isDetailPage?` / `options.renderModeType?`:运行模式控制
|
|
161
|
+
- `options.isPreview?` / `options.isRefer?` / `options.isDetailPage?` / `options.renderModeType?`:运行模式控制
|
|
162
|
+
- `isPreview`:设计器预览,隐藏 ribbon / toolkit / panel
|
|
163
|
+
- `isRefer`:设计器引用只读(对齐 Excel `DesignMode.Refer`),仅保留右侧属性 panel(隐藏 ribbon / toolkit),禁止编辑
|
|
164
|
+
- `isPreview` 与 `isRefer` **互斥**;同时为 true 时忽略 `isPreview`,仅启用 `isRefer`
|
|
162
165
|
|
|
163
166
|
返回值:
|
|
164
167
|
|
|
@@ -13,12 +13,17 @@ export declare const TABLE_DATA_SVG: {
|
|
|
13
13
|
/** 业务表下拉项图标(按 tableType) */
|
|
14
14
|
export declare const TABLE_BUSINESS_SVG: {
|
|
15
15
|
readonly 'warehouse-in': string;
|
|
16
|
+
readonly 'warehouse-inbound': string;
|
|
16
17
|
readonly 'warehouse-out': string;
|
|
18
|
+
readonly 'warehouse-outbound': string;
|
|
17
19
|
readonly 'warehouse-in-out': string;
|
|
18
20
|
readonly 'warehouse-inventory': string;
|
|
21
|
+
readonly 'part-stocktake': string;
|
|
22
|
+
readonly 'device-part-consume': string;
|
|
19
23
|
readonly 'warehouse-allocate': string;
|
|
20
24
|
readonly 'material-consume': string;
|
|
21
25
|
readonly 'material-balance': string;
|
|
26
|
+
readonly 'material-requisition': string;
|
|
22
27
|
readonly 'check-table': string;
|
|
23
28
|
readonly 'pretreatment-list': string;
|
|
24
29
|
readonly 'entrust-steril-batch-list': string;
|
|
@@ -2,6 +2,7 @@ import { IModalProps } from './modal.type';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IModalProps> & Readonly<{}>, {
|
|
3
3
|
body: import('vue').Component | null;
|
|
4
4
|
title: string;
|
|
5
|
+
readonly: boolean;
|
|
5
6
|
width: number;
|
|
6
7
|
zIndex: number;
|
|
7
8
|
className: string;
|
|
@@ -30,6 +30,11 @@ export interface IModalOptions {
|
|
|
30
30
|
draggable?: boolean;
|
|
31
31
|
/** 是否显示遮罩,draggable 时默认 false */
|
|
32
32
|
showMask?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 只读查看:隐藏取消/继续确认,确认按钮变为「关闭」且不落盘;
|
|
35
|
+
* body 内容入口锁,仅可滚动查看。
|
|
36
|
+
*/
|
|
37
|
+
readonly?: boolean;
|
|
33
38
|
onConfirm?: (ins: IModalInstance) => Promise<void> | void;
|
|
34
39
|
onConfirmContinue?: (ins: IModalInstance) => Promise<void> | void;
|
|
35
40
|
onCancel?: (ins: IModalInstance) => Promise<void> | void;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
muted?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
6
|
"load-more": () => any;
|
|
3
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
4
8
|
"onLoad-more"?: (() => any) | undefined;
|
|
5
|
-
}>, {
|
|
9
|
+
}>, {
|
|
10
|
+
label: string;
|
|
11
|
+
muted: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
13
|
targetRef: HTMLDivElement;
|
|
7
14
|
}, HTMLDivElement>;
|
|
8
15
|
export default _default;
|
|
@@ -7,6 +7,9 @@ type __VLS_Props = {
|
|
|
7
7
|
disabledParent?: boolean;
|
|
8
8
|
parentToDefault?: boolean;
|
|
9
9
|
emptyText?: string;
|
|
10
|
+
loadMoreLabel?: string;
|
|
11
|
+
mutedLoadMore?: boolean;
|
|
12
|
+
maxHeight?: number;
|
|
10
13
|
};
|
|
11
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
15
|
select: (node: RdoTreeNode) => any;
|
|
@@ -16,5 +19,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
16
19
|
onSelect?: ((node: RdoTreeNode) => any) | undefined;
|
|
17
20
|
onToggle?: ((key: string | number) => any) | undefined;
|
|
18
21
|
"onLoad-more"?: (() => any) | undefined;
|
|
19
|
-
}>, {
|
|
22
|
+
}>, {
|
|
23
|
+
maxHeight: number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
25
|
export default _default;
|
|
@@ -24,8 +24,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
24
|
}>, {
|
|
25
25
|
modelCategory: string;
|
|
26
26
|
disabled: boolean;
|
|
27
|
-
placeholder: string;
|
|
28
27
|
pageSize: number;
|
|
28
|
+
placeholder: string;
|
|
29
29
|
popperWidth: number;
|
|
30
30
|
allowClear: boolean;
|
|
31
31
|
disabledParent: boolean;
|
|
@@ -4,7 +4,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
6
|
wrapStyle: {
|
|
7
|
-
type: (ArrayConstructor |
|
|
7
|
+
type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
wrapClass: {
|
|
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
wrapStyle: {
|
|
49
|
-
type: (ArrayConstructor |
|
|
49
|
+
type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
52
|
wrapClass: {
|
|
@@ -22,14 +22,22 @@ type __VLS_Props = {
|
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
/** 不显示右侧箭头 */
|
|
24
24
|
noArrow?: boolean;
|
|
25
|
+
/** 多选模式下也显示右侧箭头 */
|
|
26
|
+
multipleArrow?: boolean;
|
|
25
27
|
/** 是否允许清除 */
|
|
26
28
|
allowClear?: boolean;
|
|
29
|
+
/** 多选时不可从标签或清空操作移除的值 */
|
|
30
|
+
unremovableValues?: Array<string | number>;
|
|
31
|
+
/** 多选标签最大显示数量,responsive 时根据容器宽度自动折叠 */
|
|
32
|
+
maxTagCount?: number | 'responsive';
|
|
27
33
|
/** 弹窗选择模式:编辑态外观,点击不展开下拉 */
|
|
28
34
|
picker?: boolean;
|
|
29
35
|
/** 是否需要分组展示 */
|
|
30
36
|
grouped?: boolean;
|
|
31
37
|
/** 是否支持输入创建 tag */
|
|
32
38
|
allowCreate?: boolean;
|
|
39
|
+
/** 下拉选项是否可搜索 */
|
|
40
|
+
searchable?: boolean;
|
|
33
41
|
};
|
|
34
42
|
declare function __VLS_template(): {
|
|
35
43
|
attrs: Partial<{}>;
|
|
@@ -57,6 +65,8 @@ declare function __VLS_template(): {
|
|
|
57
65
|
Defaults: {};
|
|
58
66
|
}, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
|
|
59
67
|
triggerRef: HTMLDivElement;
|
|
68
|
+
measureTagRefs: HTMLSpanElement[];
|
|
69
|
+
measureRestRef: HTMLSpanElement;
|
|
60
70
|
inputRef: HTMLInputElement;
|
|
61
71
|
};
|
|
62
72
|
rootEl: HTMLDivElement;
|
|
@@ -79,6 +89,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
79
89
|
options: DropdownOption[];
|
|
80
90
|
placeholder: string;
|
|
81
91
|
allowClear: boolean;
|
|
92
|
+
unremovableValues: Array<string | number>;
|
|
93
|
+
searchable: boolean;
|
|
82
94
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
83
95
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
84
96
|
P: {};
|
|
@@ -89,6 +101,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
89
101
|
Defaults: {};
|
|
90
102
|
}, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
|
|
91
103
|
triggerRef: HTMLDivElement;
|
|
104
|
+
measureTagRefs: HTMLSpanElement[];
|
|
105
|
+
measureRestRef: HTMLSpanElement;
|
|
92
106
|
inputRef: HTMLInputElement;
|
|
93
107
|
}, HTMLDivElement>;
|
|
94
108
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -34,6 +34,8 @@ export declare function computeContainLayout(natural: ImageSize, box: ImageSize)
|
|
|
34
34
|
* 在目标框内等比缩放(contain),不压缩、不拉伸
|
|
35
35
|
*/
|
|
36
36
|
export declare function computeContainDisplaySize(natural: ImageSize, box: ImageSize): ImageSize;
|
|
37
|
+
/** 同步取无图签名缓存(布局重建时可避免先闪占位再异步补图) */
|
|
38
|
+
export declare function getCachedSignatureImage(name: string, width?: number, height?: number, time?: number | string): HTMLImageElement | null;
|
|
37
39
|
/**
|
|
38
40
|
* 创建无图签名兜底图(用户名 + 电子签名 + 验证日期)
|
|
39
41
|
* 按字段宽高绘制,显示框设多大,字就按多大排
|
|
@@ -5,5 +5,9 @@ import { Wtbl } from '../../model/document';
|
|
|
5
5
|
export declare class InsertTable extends CommandBase<'insertTable'> {
|
|
6
6
|
constructor(doc: Doc, payload?: CommandPayloadMap['insertTable']);
|
|
7
7
|
protected createTable(width: number, rowCount?: number, colCount?: number): Wtbl;
|
|
8
|
+
private resolveBlockedTableLabel;
|
|
8
9
|
protected execute(): Promise<PostCommandContext>;
|
|
10
|
+
private insertAtCursor;
|
|
11
|
+
private insertIntoBody;
|
|
12
|
+
private insertIntoCell;
|
|
9
13
|
}
|
|
@@ -14,5 +14,9 @@ export declare class UnmergeCells extends CommandBase<'unmergeCells'> {
|
|
|
14
14
|
pos: number;
|
|
15
15
|
side: string;
|
|
16
16
|
wp?: undefined;
|
|
17
|
-
} | null
|
|
17
|
+
} | null>;
|
|
18
|
+
/** 光标落在合并格内时,解析其 merge root */
|
|
19
|
+
private resolveRootsFromCursor;
|
|
20
|
+
/** 框选单元格时,收集选区内的 merge roots */
|
|
21
|
+
private resolveRootsFromSelection;
|
|
18
22
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** 外表列/单元格最小宽度(像素),与手动拖列宽下限一致 */
|
|
2
|
+
export declare const MIN_TABLE_COL_WIDTH_PX = 30;
|
|
3
|
+
/** 外表列/单元格最小宽度(DXA) */
|
|
4
|
+
export declare const MIN_TABLE_COL_WIDTH_DXA: number;
|
|
5
|
+
/** 嵌套表内单列最小宽度(DXA,约 0.5") */
|
|
6
|
+
export declare const MIN_NESTED_TABLE_COL_WIDTH_DXA = 720;
|
|
7
|
+
/**
|
|
8
|
+
* 业务表 / 数据表 region 类型集合。
|
|
9
|
+
* 用于:嵌套表插入拦截、内外表业务数据标记互斥。
|
|
10
|
+
*/
|
|
11
|
+
export declare const BUSINESS_DATA_REGION_TYPES: ReadonlySet<string>;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
2
|
import { ISelectionRange, Rect } from '../types/cursor';
|
|
3
3
|
/**
|
|
4
|
-
* 将 selection(逻辑选区)转换成一组视觉矩形(canvas
|
|
4
|
+
* 将 selection(逻辑选区)转换成一组视觉矩形(canvas 绝对坐标)和单元格 ID 集合。
|
|
5
|
+
*
|
|
6
|
+
* 高亮策略(按模式):
|
|
7
|
+
* - cell-range / cell-full / mixed(表格行部分)
|
|
8
|
+
* → cellRangeIds:由 table-cell.vue 在内容层渲染选中背景,
|
|
9
|
+
* 内表格单元格的白色背景会自然覆盖外格蓝色,无需额外处理。
|
|
10
|
+
* - cell-inner
|
|
11
|
+
* → rects:cursor 覆盖层渲染文字级别高亮;
|
|
12
|
+
* 只保留属于 selectionTableId 的原子节点(过滤掉内表格 atoms,解决 Q6 场景)。
|
|
13
|
+
* - mixed(段落部分) / 纯段落
|
|
14
|
+
* → rects:cursor 覆盖层渲染。
|
|
5
15
|
*/
|
|
6
|
-
export declare function getSelectionRects(doc: Doc, selection: ISelectionRange, upgrade: boolean):
|
|
16
|
+
export declare function getSelectionRects(doc: Doc, selection: ISelectionRange, upgrade: boolean): {
|
|
17
|
+
rects: Rect[];
|
|
18
|
+
cellRangeIds: string[];
|
|
19
|
+
};
|
|
@@ -5,7 +5,8 @@ export { computeRealignedCursorState, cursorMetaToInput, cursorPositionToInput,
|
|
|
5
5
|
export { getCursorCoords } from './getCursorCoords';
|
|
6
6
|
export { getCursorTextRawList } from './getCursorTextRawList';
|
|
7
7
|
export { getSelectionRects } from './getSelectionRects';
|
|
8
|
-
export { getSelectLinesInfo } from './selectionAnalyzer';
|
|
8
|
+
export { getSelectLinesInfo, resolveSelectionTableScope, resolveTableScopeFromCursor, resolveTableScopeFromModelNode, resolveWpFromCursor, } from './selectionAnalyzer';
|
|
9
|
+
export type { TableScope } from '../../model/document/Wtbl';
|
|
9
10
|
export { getImmediateNeighborNode, findFirstAtomBeyond, isAtBoundaryOfNode, findTargetLineId, locateByX, } from './layoutNavigation';
|
|
10
11
|
/**
|
|
11
12
|
* 将命中结果转换为光标位置
|
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import { BaseMetaNode, LineInfo
|
|
1
|
+
import { BaseMetaNode, LineInfo } from '../../layout/types';
|
|
2
2
|
import { Doc } from '../../view/Doc';
|
|
3
3
|
import { ISelectionRange } from '../types/cursor';
|
|
4
|
+
import { ModelNode } from '../../model/base';
|
|
5
|
+
import { TableScope } from '../../model/document/Wtbl';
|
|
6
|
+
import { Wp } from '../../model/document';
|
|
7
|
+
/** 从 model 节点向上解析当前表格作用域 */
|
|
8
|
+
export declare function resolveTableScopeFromModelNode(node: ModelNode): TableScope | undefined;
|
|
9
|
+
/** 从光标定位当前 Wtbl 作用域(含嵌套表内光标) */
|
|
10
|
+
export declare function resolveTableScopeFromCursor(doc: Doc): TableScope | undefined;
|
|
11
|
+
/** 从当前选区解析表格作用域(仅单表,跨内外表时返回 undefined) */
|
|
12
|
+
export declare function resolveSelectionTableScope(doc: Doc): TableScope | undefined;
|
|
13
|
+
/** 从光标向上解析所在段落的 Wp(兼容 placeholder 空行) */
|
|
14
|
+
export declare function resolveWpFromCursor(doc: Doc): Wp | undefined;
|
|
4
15
|
/**
|
|
16
|
+
* 计算选区的行级信息(scopedSelectedLines、tableMode、rangeWidgetIds 等)。
|
|
5
17
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
18
|
+
* 过滤规则:
|
|
19
|
+
* - anchor 在嵌套表格内 → 严格夹紧在该嵌套表,不纳入外部行/段落
|
|
20
|
+
* - 其他情况 → 纳入所有顶层表格行 + 所有段落
|
|
21
|
+
*
|
|
22
|
+
* tableMode 决定策略:
|
|
23
|
+
* - mixed → 多张顶层表 OR (表格行 + 段落) → 选整行;段落单独生成 rect
|
|
24
|
+
* - cell-range → 单张表、多行或跨列
|
|
25
|
+
* - cell-inner → 单张表、单行、同一列(单格内文字选区)
|
|
26
|
+
* - cell-full → cell-inner 升级:选中整格(isCellUpgrade)
|
|
27
|
+
* - none → 纯段落 / 空
|
|
28
|
+
*
|
|
29
|
+
* @param upgrade 鼠标在 cellHitPoint 角上,允许 cell-inner → cell-full 升级
|
|
10
30
|
*/
|
|
11
31
|
export declare function getSelectLinesInfo(doc: Doc, selection: ISelectionRange, upgrade: boolean): {
|
|
12
32
|
normalized: import('../types/cursor').INormalizedRange;
|
|
@@ -16,8 +36,13 @@ export declare function getSelectLinesInfo(doc: Doc, selection: ISelectionRange,
|
|
|
16
36
|
startPageIdx: number;
|
|
17
37
|
endPageIdx: number;
|
|
18
38
|
selectedLines: LineInfo[];
|
|
19
|
-
tableMode:
|
|
39
|
+
tableMode: "none" | "mixed" | "cell-range" | "cell-full" | "cell-inner";
|
|
20
40
|
overlapIds: string[];
|
|
21
41
|
widgetRunMap: Map<string, BaseMetaNode[]>;
|
|
22
42
|
rangeWidgetIds: string[];
|
|
43
|
+
selectionTableId: string | undefined;
|
|
44
|
+
anchorCellIndex: number | undefined;
|
|
45
|
+
focusCellIndex: number | undefined;
|
|
46
|
+
/** focus 越界夹紧方向:true=夹末列,false=夹首列,undefined=已有精确值 */
|
|
47
|
+
focusClampToLast: boolean | undefined;
|
|
23
48
|
} | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
|
-
import {
|
|
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 {};
|
|
@@ -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;
|
|
@@ -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';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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:
|
|
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;
|
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
10
|
-
*
|
|
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
|
*/
|