@gct-paas/word 0.2.5-beta.3 → 0.2.5

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 (78) hide show
  1. package/dist/assets/svgs/table/index.d.ts +0 -1
  2. package/dist/base/input/src/input-number.vue.d.ts +0 -1
  3. package/dist/base/modal/src/modal.type.d.ts +1 -3
  4. package/dist/base/select/src/basic-select.vue.d.ts +2 -0
  5. package/dist/base/utils/image-size-util.d.ts +5 -5
  6. package/dist/core/data/DataManager.d.ts +1 -6
  7. package/dist/core/data/types/runtime-config.d.ts +0 -11
  8. package/dist/core/index.d.ts +0 -2
  9. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  10. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -4
  11. package/dist/core/view/Doc.d.ts +0 -3
  12. package/dist/domain/active/active-types.d.ts +1 -3
  13. package/dist/domain/constants/enum/signature.d.ts +0 -14
  14. package/dist/domain/field/field-type.d.ts +0 -8
  15. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
  16. package/dist/domain/table/business/material/types.d.ts +1 -2
  17. package/dist/domain/table/design/ribbon-options.d.ts +0 -2
  18. package/dist/domain/table/design/sub-model-matcher.d.ts +0 -2
  19. package/dist/domain/table/index.d.ts +0 -2
  20. package/dist/domain/table/registry.d.ts +1 -1
  21. package/dist/domain/table/runtime/table-runtime.d.ts +0 -1
  22. package/dist/domain/table/types.d.ts +3 -11
  23. package/dist/index.es.js +2426 -5082
  24. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +2 -10
  25. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +0 -6
  26. package/dist/runtime/interface/computed.d.ts +1 -1
  27. package/dist/runtime/renderer/dialogs/signature/logic.d.ts +1 -3
  28. package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +0 -1
  29. package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +0 -1
  30. package/dist/runtime/renderer/dropdowns/composables/useDropdownSearchFocus.d.ts +9 -0
  31. package/dist/runtime/validation/useFormValidator.d.ts +0 -4
  32. package/dist/sdk/types/index.d.ts +0 -2
  33. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +0 -2
  34. package/dist/suites/edhr/panel-schema/index.d.ts +0 -1
  35. package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +3 -8
  36. package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -3
  37. package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -12
  38. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +4 -4
  39. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-node.vue.d.ts +0 -2
  40. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +0 -4
  41. package/dist/word.css +323 -730
  42. package/package.json +1 -1
  43. package/dist/core/data/enrichers/udi-enricher.d.ts +0 -23
  44. package/dist/core/runtime/DocumentRuntimeManager.d.ts +0 -34
  45. package/dist/domain/document-rule/index.d.ts +0 -3
  46. package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +0 -13
  47. package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +0 -19
  48. package/dist/domain/document-rule/types.d.ts +0 -50
  49. package/dist/domain/table/business/device/maintenance/index.d.ts +0 -1
  50. package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
  51. package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
  52. package/dist/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
  53. package/dist/domain/table/business/device/point-inspection/index.d.ts +0 -1
  54. package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
  55. package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
  56. package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
  57. package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +0 -13
  58. package/dist/domain/table/business/device/signature-lock.d.ts +0 -26
  59. package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +0 -3
  60. package/dist/domain/table/business/material/material-substitution/index.d.ts +0 -3
  61. package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -39
  62. package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
  63. package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
  64. package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
  65. package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -3
  66. package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +0 -3
  67. package/dist/runtime/designer/ribbon/hooks/useDhrEdition.d.ts +0 -7
  68. package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +0 -5
  69. package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +0 -2
  70. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +0 -17
  71. package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +0 -3
  72. package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +0 -2
  73. package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +0 -1
  74. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +0 -19
  75. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +0 -16
  76. package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +0 -11
  77. package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +0 -8
  78. package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +0 -34
@@ -31,8 +31,6 @@ export declare class BomEntryValidator {
31
31
  mainMaterialNo: string;
32
32
  /** 物料消耗模式 */
33
33
  noBomMode: boolean;
34
- /** 自定义需求数量,由表格行手动填写 */
35
- isCustomRequiredQty: boolean;
36
34
  /** 该明细使用到的产品的id集合 */
37
35
  productIds: string[];
38
36
  /** 物料和code的映射 */
@@ -55,9 +53,7 @@ export declare class BomEntryValidator {
55
53
  /** 表单实例的批次号 */
56
54
  mainMaterialNo: string,
57
55
  /** 物料消耗模式 */
58
- noBomMode: boolean,
59
- /** 自定义需求数量,由表格行手动填写 */
60
- isCustomRequiredQty?: boolean);
56
+ noBomMode: boolean);
61
57
  /**
62
58
  * 翻译物料的code
63
59
  * @param productId
@@ -146,8 +142,6 @@ export declare class BomEntriesValidator {
146
142
  mainMaterialNo: string;
147
143
  /** 物料消耗模式 */
148
144
  noBomMode: boolean;
149
- /** 需求数量由表格行手动填写 */
150
- isCustomRequiredQty: boolean;
151
145
  bomEntryValidators: BomEntryValidator[];
152
146
  constructor(entries: IBomEntry[],
153
147
  /** 是否启用顺序投料 */
@@ -159,9 +153,7 @@ export declare class BomEntriesValidator {
159
153
  /** 表单实例的批次号 */
160
154
  mainMaterialNo: string,
161
155
  /** 物料消耗模式 */
162
- noBomMode: boolean,
163
- /** 需求数量由表格行手动填写 */
164
- isCustomRequiredQty?: boolean);
156
+ noBomMode: boolean);
165
157
  /** 当前批次/生产数量 */
166
158
  get materialNoNum(): number;
167
159
  /**
@@ -144,12 +144,6 @@ export declare class MaterialConsumeTableController {
144
144
  */
145
145
  set actualTableData(value: IMaterialConsumeData[]);
146
146
  constructor(tmplBomController: FormTmplBomController, tmplBom: IFormTmplBom);
147
- get isCustomRequiredQty(): boolean;
148
- private getBomGroupForRow;
149
- private getMatchingBomGroupForRow;
150
- /** 自定义规则的需求数量在同一 BOM 组内保持一致。 */
151
- getCustomGroupRequiredQty(row: IMaterialConsumeData): number | undefined;
152
- private syncCustomGroupRequiredQty;
153
147
  /** 错误信息 */
154
148
  error(message: string): void;
155
149
  /**
@@ -38,4 +38,4 @@ export declare function fetchAutofillSource(field: FieldDataBindingMeta, context
38
38
  /** 默认值-数据填充 */
39
39
  export declare function loadDefaultValueByAutofillRules(instances: any[], autofillRules: any[], field: FieldDataBindingMeta, context: Record<string, unknown>, autofillEnabled?: boolean, rawData?: Record<string, unknown>): Promise<Record<string, unknown>>;
40
40
  /** 选择值-数据填充 */
41
- export declare function loadDataValuesByAutofillRules(record: Record<string, unknown> | null | undefined, autofillRules: any[], sourceValuePath: string, autofillEnabled?: boolean, doc?: Doc): Record<string, unknown>;
41
+ export declare function loadDataValuesByAutofillRules(record: Record<string, unknown>, autofillRules: any[], sourceValuePath: string, autofillEnabled?: boolean, doc?: Doc): Record<string, unknown>;
@@ -7,8 +7,6 @@ export interface SignInfo {
7
7
  historyId: string;
8
8
  /** 签名用户姓名 */
9
9
  username: string;
10
- /** 签名图片方向 */
11
- signatureImageDirection?: string;
12
10
  }
13
11
  /**
14
12
  * 通过账户密码获取签名图片
@@ -16,7 +14,7 @@ export interface SignInfo {
16
14
  * @param {string} password
17
15
  * @param {string} type
18
16
  */
19
- export declare function getSignImgByAccount(username: string, password: string, type: string, signatureImageDirection?: string): Promise<SignInfo>;
17
+ export declare function getSignImgByAccount(username: string, password: string, type: string): Promise<SignInfo>;
20
18
  /** 从接口异常中提取签名错误提示 */
21
19
  export declare function getSignatureErrorMessage(error: unknown): string;
22
20
  export declare function getSignWay(enableSignPassword: number): {
@@ -15,7 +15,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
15
15
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
16
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
17
17
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
- videoRef: HTMLVideoElement;
19
18
  inputRef: HTMLInputElement;
20
19
  }, HTMLDivElement>;
21
20
  export default _default;
@@ -30,7 +30,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
30
30
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
31
  "update:modelValue": (...args: any[]) => void;
32
32
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
33
- videoRef: HTMLVideoElement;
34
33
  inputRef: HTMLInputElement;
35
34
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
36
35
  P: {};
@@ -0,0 +1,9 @@
1
+ import { InjectionKey, Ref } from 'vue';
2
+ export declare const DROPDOWN_FOCUS_READY_KEY: InjectionKey<Ref<boolean>>;
3
+ export declare const DROPDOWN_FOCUS_REQUEST_KEY: InjectionKey<Ref<number>>;
4
+ interface SearchInput {
5
+ inputRef?: HTMLInputElement;
6
+ }
7
+ /** 等浮层真正显示和当前搜索框挂载后再聚焦,也覆盖快速重开与展示分支切换。 */
8
+ export declare function useDropdownSearchFocus(inputRef: Ref<SearchInput | null | undefined>): void;
9
+ export {};
@@ -12,10 +12,6 @@ export declare function disposeDocValidationScheduler(doc: Doc): void;
12
12
  export declare const validateAllFields: (doc: Doc, options?: {
13
13
  showComments?: boolean;
14
14
  }) => Promise<Record<string, any[]> | null>;
15
- /** 对指定运行时字段路径执行提交级完整校验。 */
16
- export declare const validateFields: (doc: Doc, paths: Iterable<string>, options?: {
17
- showComments?: boolean;
18
- }) => Promise<Record<string, any[]> | null>;
19
15
  type ValidateOptions = {
20
16
  /** 调用方已 settle 时可跳过,避免打开时重复等待 */
21
17
  settle?: boolean;
@@ -20,8 +20,6 @@ export interface IDeviceConfig {
20
20
  defaultOrgId: string | undefined;
21
21
  /** 默认的登录账号 */
22
22
  defaultLoginAccount?: string;
23
- /** 默认的用户姓名(预览/兜底签名展示用) */
24
- defaultUserName?: string;
25
23
  /** 默认的物料查询条件 */
26
24
  defaultProductSearchFields: string;
27
25
  /** 是否启用人员字段 false: 不使用 true: 使用;先留着扩展,后续如果需要在字段列表过滤才使用 */
@@ -53,8 +53,6 @@ export declare const signFieldDefaultProps: {
53
53
  readonly signTimeType: string;
54
54
  readonly signDisplayStyle: string;
55
55
  readonly populateFields: readonly [];
56
- readonly fallbackSignType: string;
57
- readonly signatureImageDirection: string;
58
56
  };
59
57
  export declare const fileFieldDefaultProps: {
60
58
  readonly imageDisplayMode: string;
@@ -16,7 +16,6 @@ export declare function registryPanelSchemas(): {
16
16
  'material-consume-table.basic': import('../../..').PanelSchema;
17
17
  'material-balance-table.basic': import('../../..').PanelSchema;
18
18
  'material-requisition-table.basic': import('../../..').PanelSchema;
19
- 'material-substitution-table.basic': import('../../..').PanelSchema;
20
19
  'fixed-table.basic': import('../../..').PanelSchema;
21
20
  'check-table.basic': import('../../..').PanelSchema;
22
21
  'data-group.basic': {
@@ -1,11 +1,6 @@
1
- type __VLS_Props = {
2
- label?: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
2
  click: () => any;
6
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
3
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
7
4
  onClick?: (() => any) | undefined;
8
- }>, {
9
- label: string;
10
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
5
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
11
6
  export default _default;
@@ -1,6 +1,4 @@
1
1
  import { Doc } from '../../../../core';
2
- import { InspectionDecisionRule } from '../../../../domain/document-rule';
3
- export type { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRelation, DecisionRuleRightValue, DecisionRuleValueType, InspectionDecisionRule, } from '../../../../domain/document-rule';
4
2
  export type UnitConversionFieldKey = 'sourceUnit' | 'targetUnit';
5
3
  /** 字段映射行 */
6
4
  export interface RuleFieldMap {
@@ -37,7 +35,6 @@ export interface BaseRuleItem {
37
35
  }
38
36
  export interface DocumentRulesConfig {
39
37
  unitConversionRules: BaseRuleItem[];
40
- inspectionDecisionRule: InspectionDecisionRule;
41
38
  }
42
39
  export type RulePanelRuleKind = 'barcodeParsing' | 'unitConversion';
43
40
  export type RulePanelModalMode = 'create' | 'edit';
@@ -22,12 +22,6 @@ export declare function useRulesConfig(): {
22
22
  required?: boolean | undefined;
23
23
  }[] | undefined;
24
24
  }[];
25
- inspectionDecisionRule: {
26
- dataRuleEnabled: boolean;
27
- dataRule: string;
28
- dataRuleConfig: string;
29
- prompt: string;
30
- };
31
25
  }, DocumentRulesConfig | {
32
26
  unitConversionRules: {
33
27
  id: string;
@@ -50,11 +44,5 @@ export declare function useRulesConfig(): {
50
44
  required?: boolean | undefined;
51
45
  }[] | undefined;
52
46
  }[];
53
- inspectionDecisionRule: {
54
- dataRuleEnabled: boolean;
55
- dataRule: string;
56
- dataRuleConfig: string;
57
- prompt: string;
58
- };
59
47
  }>;
60
48
  };
@@ -7,13 +7,13 @@ export interface IDisplayField {
7
7
  name: string;
8
8
  [key: string]: any;
9
9
  }
10
- /**
11
- * 不同字段类型显示字段的默认字段列表
12
- */
10
+ /** 支持显示字段配置的普通字段不再预置显示列。 */
13
11
  export declare const DEFAULT_DISPLAY_FIELDS_MAP: Record<string, string[]>;
14
12
  interface DefaultDisplayFieldConfig {
15
13
  keys: string[];
16
14
  unremovableKeys: string[];
17
15
  }
18
- export declare function getDefaultDisplayFieldConfig(type?: string): DefaultDisplayFieldConfig;
16
+ export declare function getDefaultDisplayFieldConfig(_type?: string): DefaultDisplayFieldConfig;
17
+ /** 仅保留设备及批次类字段从历史搜索配置初始化显示列的行为。 */
18
+ export declare const retainsLegacyDisplayFields: (type?: string) => boolean;
19
19
  export {};
@@ -5,7 +5,6 @@ type __VLS_Props = {
5
5
  modelValue?: string;
6
6
  forceExpand?: boolean;
7
7
  defaultExpanded?: boolean;
8
- defaultExpandedValues?: string[];
9
8
  groupOnlyExpand?: boolean;
10
9
  highlightName?: (name?: string) => string;
11
10
  };
@@ -15,7 +14,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
15
14
  onSelect?: ((value: string, node: FieldTreeNodeType) => any) | undefined;
16
15
  }>, {
17
16
  defaultExpanded: boolean;
18
- defaultExpandedValues: string[];
19
17
  groupOnlyExpand: boolean;
20
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
19
  export default _default;
@@ -5,9 +5,7 @@ type __VLS_Props = {
5
5
  placeholder?: string;
6
6
  popperWidth?: number;
7
7
  defaultExpanded?: boolean;
8
- defaultExpandedValues?: string[];
9
8
  groupOnlyExpand?: boolean;
10
- disabled?: boolean;
11
9
  };
12
10
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
11
  "update:modelValue": (value?: string | undefined) => any;
@@ -16,11 +14,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
16
14
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
17
15
  onChange?: ((value?: string | undefined, node?: FieldTreeNodeType | undefined) => any) | undefined;
18
16
  }>, {
19
- disabled: boolean;
20
17
  treeData: FieldTreeNodeType[];
21
18
  placeholder: string;
22
19
  defaultExpanded: boolean;
23
- defaultExpandedValues: string[];
24
20
  groupOnlyExpand: boolean;
25
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
26
22
  rootRef: HTMLDivElement;