@gct-paas/word 0.1.72 → 0.1.73-patch.10

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 (65) hide show
  1. package/README.md +4 -1
  2. package/dist/base/modal/src/ConfirmTip.vue.d.ts +5 -0
  3. package/dist/base/modal/src/ModalRoot.vue.d.ts +3 -0
  4. package/dist/base/modal/src/index.d.ts +1 -0
  5. package/dist/base/modal/src/modal.type.d.ts +8 -1
  6. package/dist/base/utils/image-size-util.d.ts +12 -4
  7. package/dist/core/command/commands/InsertTable.d.ts +4 -0
  8. package/dist/core/constants/common.d.ts +1 -0
  9. package/dist/core/constants/index.d.ts +2 -0
  10. package/dist/core/constants/table.d.ts +11 -0
  11. package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
  12. package/dist/core/cursor/logic/index.d.ts +2 -1
  13. package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
  14. package/dist/core/event/types.d.ts +1 -1
  15. package/dist/core/index.d.ts +1 -1
  16. package/dist/core/interaction/InteractionController.d.ts +11 -0
  17. package/dist/core/interaction/types.d.ts +8 -0
  18. package/dist/core/interaction/useInteraction.d.ts +6 -0
  19. package/dist/core/layout/LayoutManager.d.ts +5 -1
  20. package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
  21. package/dist/core/layout/table/split-table.d.ts +10 -0
  22. package/dist/core/layout/types/index.d.ts +2 -0
  23. package/dist/core/model/document/Wbody.d.ts +4 -0
  24. package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
  25. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
  26. package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
  27. package/dist/core/model/document/Wtbl.d.ts +31 -3
  28. package/dist/core/model/document/Wtc.d.ts +13 -2
  29. package/dist/core/model/document/Wtr.d.ts +2 -1
  30. package/dist/core/model/document/index.d.ts +1 -0
  31. package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
  32. package/dist/core/model/logic/subtable/repeating/MaterialConsumeTableRegion.d.ts +4 -0
  33. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -0
  34. package/dist/core/model/templates/tableCell.template.d.ts +2 -0
  35. package/dist/core/view/Doc.d.ts +21 -1
  36. package/dist/core/view/Table.d.ts +13 -0
  37. package/dist/core/view/TableCell.d.ts +2 -1
  38. package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
  39. package/dist/core/view/runs/ImageWidget.d.ts +4 -0
  40. package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
  41. package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
  42. package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
  43. package/dist/domain/table/index.d.ts +1 -0
  44. package/dist/index.es.js +4225 -2548
  45. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +5 -5
  46. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +1 -0
  47. package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
  48. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
  49. package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
  50. package/dist/runtime/interface/data.d.ts +2 -0
  51. package/dist/runtime/interface/fetchers.d.ts +2 -0
  52. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +3 -1
  53. package/dist/sdk/plugins/index.d.ts +1 -0
  54. package/dist/sdk/types/index.d.ts +6 -1
  55. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +5 -0
  56. package/dist/suites/edhr/model-field-runtime/field-provider.d.ts +2 -0
  57. package/dist/suites/edhr/model-field-runtime/model-provider.d.ts +2 -0
  58. package/dist/suites/edhr/panel-schema/2d-table/2DSubTablePanel.vue.d.ts +8 -0
  59. package/dist/suites/eqm/index.d.ts +3 -0
  60. package/dist/suites/shared/panel/modules/confirm-before-delete-config.vue.d.ts +5 -0
  61. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
  62. package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
  63. package/dist/utils/func/core.d.ts +5 -0
  64. package/dist/word.css +525 -433
  65. package/package.json +4 -2
@@ -1,4 +1,4 @@
1
- import { IBomEntry, IMaterialConsumeData, MaterialConsumptionPatternEnum } from '../../../../../domain/table/business/material/types';
1
+ import { IBomEntry, IMaterialConsumeData } from '../../../../../domain/table/business/material/types';
2
2
  export declare class BomEntryValidator {
3
3
  bomEntry: IBomEntry;
4
4
  /** 是否启用顺序投料 */
@@ -10,7 +10,7 @@ export declare class BomEntryValidator {
10
10
  /** 表单实例的批次号 */
11
11
  mainMaterialNo: string;
12
12
  /** 物料消耗模式 */
13
- mcPattern: MaterialConsumptionPatternEnum;
13
+ noBomMode: boolean;
14
14
  /** 该明细使用到的产品的id集合 */
15
15
  productIds: string[];
16
16
  /** 物料和code的映射 */
@@ -31,7 +31,7 @@ export declare class BomEntryValidator {
31
31
  /** 表单实例的批次号 */
32
32
  mainMaterialNo: string,
33
33
  /** 物料消耗模式 */
34
- mcPattern: MaterialConsumptionPatternEnum);
34
+ noBomMode: boolean);
35
35
  /**
36
36
  * 翻译物料的code
37
37
  * @param productId
@@ -90,7 +90,7 @@ export declare class BomEntriesValidator {
90
90
  /** 表单实例的批次号 */
91
91
  mainMaterialNo: string;
92
92
  /** 物料消耗模式 */
93
- mcPattern: MaterialConsumptionPatternEnum;
93
+ noBomMode: boolean;
94
94
  bomEntryValidators: BomEntryValidator[];
95
95
  constructor(entries: IBomEntry[],
96
96
  /** 是否启用顺序投料 */
@@ -102,7 +102,7 @@ export declare class BomEntriesValidator {
102
102
  /** 表单实例的批次号 */
103
103
  mainMaterialNo: string,
104
104
  /** 物料消耗模式 */
105
- mcPattern: MaterialConsumptionPatternEnum);
105
+ noBomMode: boolean);
106
106
  /**
107
107
  * 翻译物料的code
108
108
  * @param productId
@@ -89,6 +89,7 @@ export declare class MaterialConsumeTableController {
89
89
  get materialNoNum(): number;
90
90
  /** 物料消耗模式(自身没有配置的话取环境的默认值) */
91
91
  get mcPattern(): MaterialConsumptionPatternEnum;
92
+ get isRecordPattern(): boolean;
92
93
  /**
93
94
  * 解析规则数据对象
94
95
  */
@@ -6,6 +6,7 @@ type __VLS_Props = {
6
6
  colWidths: number[];
7
7
  colLefts: number[];
8
8
  mergeRects: MergeRect[];
9
+ isNested?: boolean;
9
10
  };
10
11
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
12
  export default _default;
@@ -7,6 +7,12 @@ export declare function useTableSelection(): {
7
7
  readonly realRowIndex?: number | undefined;
8
8
  } | null | undefined;
9
9
  readonly activeTableId?: string | undefined;
10
+ readonly activeTableScope?: {
11
+ readonly depth: number;
12
+ readonly wtblId: string;
13
+ readonly rootWtblId: string;
14
+ readonly hostCellId?: string | undefined;
15
+ } | null | undefined;
10
16
  readonly dragHoverId?: string | undefined;
11
17
  readonly hoverModelId?: string | undefined;
12
18
  readonly focusModelId?: string | undefined;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
2
  export default _default;
@@ -40,4 +40,6 @@ export declare function fetchRenderData(payload: {
40
40
  instances: any;
41
41
  /** 是否是模拟填报 */
42
42
  isMockReport: boolean;
43
+ /** 套件 key */
44
+ suiteKey?: SuiteKey;
43
45
  }): Promise<void | object>;
@@ -30,6 +30,8 @@ interface RequestParams {
30
30
  isRdo?: boolean;
31
31
  needDataLink?: boolean;
32
32
  isLinkQuery?: boolean;
33
+ /** subFieldConfig.$request:与 query 同级的请求体参数 */
34
+ requestParams?: Record<string, unknown>;
33
35
  optionMapping?: {
34
36
  value?: string;
35
37
  label?: string;
@@ -33,8 +33,10 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
33
33
  deviceConfig?: IDeviceConfig;
34
34
  /** 是否是模拟填报 */
35
35
  isMockReport: boolean;
36
- /** 是否是预览模式 */
36
+ /** 是否是预览模式(隐藏设计器壳);与 refer 互斥 */
37
37
  isPreview: boolean;
38
+ /** 设计器引用只读态(仅保留属性 panel);与 isPreview 互斥 */
39
+ isRefer?: boolean;
38
40
  ctx: DesignSuiteContext;
39
41
  /**
40
42
  * 文档接口请求成功且引擎挂载完成后的回调(每轮成功加载触发一次)。
@@ -12,5 +12,6 @@ import { WordSuitePlugin } from '../types';
12
12
  export declare function registerSuite(plugin: WordSuitePlugin): void;
13
13
  export type { WordSuitePlugin } from '../types';
14
14
  export { edhrSuitePlugin } from '../../suites/edhr';
15
+ export { eqmSuitePlugin } from '../../suites/eqm';
15
16
  export { registerPanelSchemas } from './register-panel-schemas';
16
17
  export type { PanelSchema, PanelSchemaKey, PanelSchemaMap, PanelTitleContext, PanelTitle } from './register-panel-schemas';
@@ -221,8 +221,13 @@ export interface UseWordOptions {
221
221
  modelKey: string;
222
222
  /** 套件 key(默认 'edhr') */
223
223
  suiteKey?: string;
224
- /** 是否预览模式 */
224
+ /** 是否预览模式(隐藏 ribbon / toolkit / panel);与 isRefer 互斥 */
225
225
  isPreview?: boolean;
226
+ /**
227
+ * 设计器引用只读态;与 isPreview 互斥。
228
+ * 仅保留右侧属性 panel,禁止修改文档与配置。
229
+ */
230
+ isRefer?: boolean;
226
231
  /** 是否模拟填报 */
227
232
  isMockReport?: boolean;
228
233
  /** 是否详情页(强制只读) */
@@ -75,6 +75,11 @@ export declare const styleSizeDefaultProps: {
75
75
  /** 组件默认高度 */
76
76
  readonly height: 68;
77
77
  };
78
+ /** 签名/报工人等:与无图兜底画布同比例(≈1.76:1),默认略放大便于阅读 */
79
+ export declare const signStyleSizeDefaultProps: {
80
+ readonly width: 180;
81
+ readonly height: 102;
82
+ };
78
83
  export declare const labelPriorityConfig: PriorityRule;
79
84
  export declare const labelResolveDateConfig: ResolveRule;
80
85
  export declare const labelResolveUserConfig: ResolveRule;
@@ -15,5 +15,7 @@ declare class EdhrFieldProvider extends FieldProviderBase {
15
15
  constructor(cfg: FieldProviderExtendedConfig, fetcherFactory: (modelKey: ModelKey) => (params?: FieldQueryParams) => Promise<FieldListResult>, filterFn?: (f: any) => boolean);
16
16
  createRuntime(modelKey: ModelKey): EdhrFieldRuntime;
17
17
  }
18
+ /** 创建字段 Provider,供 edhr / eqm 等复用 edhr 能力的套件使用 */
19
+ export declare function createEdhrFieldProvider(suiteKey: SuiteKey): EdhrFieldProvider;
18
20
  export declare const edhrFieldProvider: EdhrFieldProvider;
19
21
  export {};
@@ -4,5 +4,7 @@ declare class EdhrModelProvider extends ModelProviderBase {
4
4
  supports(modelKey: ModelKey): boolean;
5
5
  fetchModel(modelKey: ModelKey): Promise<ModelMeta>;
6
6
  }
7
+ /** 创建模型 Provider,供 edhr / eqm 等复用 edhr 能力的套件使用 */
8
+ export declare function createEdhrModelProvider(suiteKey: SuiteKey): EdhrModelProvider;
7
9
  export declare const edhrModelProvider: EdhrModelProvider;
8
10
  export {};
@@ -0,0 +1,8 @@
1
+ import { Wtbl } from '../../../../core';
2
+ import { ActivePanelData } from '../../../../domain/active/active-types';
3
+ type __VLS_Props = {
4
+ widget: Wtbl;
5
+ active: ActivePanelData;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { WordSuitePlugin } from '../../sdk/types';
2
+ /** EQM 套件插件注册(当前复用 edhr 能力) */
3
+ export declare const eqmSuitePlugin: WordSuitePlugin;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ regionProps: any;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -14,6 +14,8 @@ type __VLS_Props = {
14
14
  fieldPathChains: string[];
15
15
  sortDependency: FieldDependencyType[];
16
16
  data?: FieldDependencyOption;
17
+ /** 设计器引用只读 */
18
+ readonly?: boolean;
17
19
  };
18
20
  declare function onSave(): Promise<{
19
21
  type: FieldDependencyType;
@@ -0,0 +1,7 @@
1
+ import { IModalInstance, IModalOptions } from '../../../../base/modal/src/modal.type';
2
+ /**
3
+ * 设计器弹窗:refer 模式下自动只读查看(可打开看配置,不可保存修改)。
4
+ */
5
+ export declare function useOpenDesignModal(): {
6
+ open: (options: IModalOptions) => IModalInstance;
7
+ };
@@ -9,6 +9,11 @@ export declare const isEmptyValue: (value: any) => boolean;
9
9
  export declare function isBlank(value: unknown): boolean;
10
10
  /** 字段值是否「有值」 */
11
11
  export declare function isPresent(value: unknown): boolean;
12
+ /**
13
+ * 去掉货币符号、千分位等,保证能解析为纯数字
14
+ * 例:`3,300,000` / `$3,300,000` → `3300000`
15
+ */
16
+ export declare function stripNumberNoise(raw: string): string;
12
17
  export declare function parseFormTmplRefId(refId?: string): {
13
18
  baseId: string | undefined;
14
19
  id: string | undefined;