@gct-paas/word 0.2.7-beta.0 → 0.2.7-beta.2

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 (26) hide show
  1. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -0
  2. package/dist/base/utils/image-size-util.d.ts +1 -1
  3. package/dist/core/command/commands/DeleteCol.d.ts +1 -1
  4. package/dist/core/command/commands/InsertTable.d.ts +0 -1
  5. package/dist/core/command/types.d.ts +2 -0
  6. package/dist/core/data/formula/business-functions.d.ts +8 -2
  7. package/dist/core/data/formula/formula-params-cache.d.ts +15 -0
  8. package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +37 -1
  9. package/dist/domain/field/form-value.d.ts +6 -0
  10. package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +2 -2
  11. package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +2 -0
  12. package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +1 -0
  13. package/dist/domain/table/design/validate-nested-table-insert.d.ts +3 -0
  14. package/dist/domain/table/index.d.ts +1 -0
  15. package/dist/domain/table/runtime/option-fill-updates.d.ts +6 -0
  16. package/dist/domain/table/runtime/table-runtime.d.ts +2 -0
  17. package/dist/domain/table/types.d.ts +2 -0
  18. package/dist/index.es.js +4219 -6189
  19. package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +10 -0
  20. package/dist/runtime/interface/sterilization-date.d.ts +9 -0
  21. package/dist/runtime/renderer/dropdowns/factories/dropdown-factory.d.ts +1 -5
  22. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +1 -0
  23. package/dist/sdk/setup.d.ts +4 -0
  24. package/dist/utils/adapters/ServiceUtil.d.ts +9 -0
  25. package/dist/word.css +122 -656
  26. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ type TablePathNode = {
2
+ component?: string;
3
+ };
4
+ /** 布局路径按外到内排列,右键操作应定位命中位置所属的最内层表格。 */
5
+ export declare function resolveInnermostTableContext<T extends TablePathNode>(nodes: readonly (T | undefined)[]): {
6
+ table?: T;
7
+ tableRow?: T;
8
+ tableCell?: T;
9
+ };
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FieldDataBindingMeta } from '../../core/widget';
2
+ type FieldInstance = {
3
+ widgetMeta?: {
4
+ field?: FieldDataBindingMeta;
5
+ };
6
+ };
7
+ /** 用 detail 返回的交易实例查询灭菌日期,统一回填主、子表字段。 */
8
+ export declare function fillSterilizationDate(txnInstId: string | undefined, instances: FieldInstance[], rawData: Record<string, unknown>): Promise<void>;
9
+ export {};
@@ -22,8 +22,4 @@ export interface DropdownOverlayActionConfig {
22
22
  /**
23
23
  * 统一获取 overlay action 配置(icon + 行为 + 对应 body)
24
24
  */
25
- export declare function getDropdownOverlayActionConfig(type: ExternalComponentType, options?: {
26
- enableScan?: boolean;
27
- hasParseRules?: boolean;
28
- scanMode?: boolean;
29
- }): DropdownOverlayActionConfig;
25
+ export declare function getDropdownOverlayActionConfig(type: ExternalComponentType): DropdownOverlayActionConfig;
@@ -27,6 +27,7 @@ export interface DocumentFieldContext {
27
27
  }
28
28
  export declare function prepareDocumentFieldContext(options: PrepareFieldContextOptions): Promise<DocumentFieldContext>;
29
29
  export interface PrepareRenderDataOptions {
30
+ fillModeType: DocModeType;
30
31
  requestInfo: Execute['requestInfo'];
31
32
  payload: IDocPayload;
32
33
  materialNo: string;
@@ -9,6 +9,10 @@ export interface SetupPlatformAdaptersOptions {
9
9
  interceptors?: any;
10
10
  /** 获取应用信息/默认内置参数 */
11
11
  getAppInfo: any;
12
+ /** 获取业务配置,供填报及模拟填报的 SOP 选项过滤使用。 */
13
+ getBusinessSetting?: () => Promise<{
14
+ enableSopDocApprove?: number | boolean;
15
+ }>;
12
16
  /** 文件解析方法 */
13
17
  parseFile: any;
14
18
  /** 文件上传方法 */
@@ -1,4 +1,7 @@
1
1
  type GetAppInfoMethod = () => Promise<any>;
2
+ type GetBusinessSettingMethod = () => Promise<{
3
+ enableSopDocApprove?: number | boolean;
4
+ }>;
2
5
  type ParseFileResult = {
3
6
  data?: string;
4
7
  } | string;
@@ -13,6 +16,7 @@ type FormulaIdentify = (expr: string) => string[];
13
16
  type FormulaCalculate = (expr: string, values: Record<string, any>) => Promise<any>;
14
17
  interface ServiceUtilHandlers {
15
18
  getAppInfo?: GetAppInfoMethod;
19
+ getBusinessSetting?: GetBusinessSettingMethod;
16
20
  parseFile?: ParseFileMethod;
17
21
  uploadFile?: UploadFileMethod;
18
22
  formulaIdentify?: FormulaIdentify;
@@ -21,6 +25,7 @@ interface ServiceUtilHandlers {
21
25
  declare class ServiceUtil {
22
26
  private static instance;
23
27
  private _getAppInfo?;
28
+ private _getBusinessSetting?;
24
29
  private _parseFileImpl?;
25
30
  private _uploadFileImpl?;
26
31
  private _formulaIdentifyImpl?;
@@ -39,6 +44,10 @@ declare class ServiceUtil {
39
44
  * 获取应用信息
40
45
  */
41
46
  getAppInfo(): Promise<any>;
47
+ /** 由宿主加载业务配置,未注入时保持原有查询行为。 */
48
+ getBusinessSetting(): Promise<{
49
+ enableSopDocApprove?: number | boolean;
50
+ }>;
42
51
  /**
43
52
  * 解析文件
44
53
  * @param file - 文件对象