@gct-paas/word 0.1.52-beta.2 → 0.1.52-beta.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 (140) hide show
  1. package/dist/assets/svgs/table/index.d.ts +1 -1
  2. package/dist/base/checkbox/src/checkbox-group.vue.d.ts +1 -1
  3. package/dist/base/date-time-picker/src/DateTimePicker.vue.d.ts +1 -1
  4. package/dist/base/divider/src/divider.vue.d.ts +1 -1
  5. package/dist/base/form-item/src/form-item.vue.d.ts +1 -1
  6. package/dist/base/icon/src/icon.vue.d.ts +2 -2
  7. package/dist/base/input/src/input.vue.d.ts +6 -6
  8. package/dist/base/input/src/text-area.vue.d.ts +4 -4
  9. package/dist/base/radio/src/radio-group.vue.d.ts +1 -1
  10. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +2 -2
  11. package/dist/base/select/src/basic-select.vue.d.ts +1 -1
  12. package/dist/base/select/src/searchable-select.vue.d.ts +2 -2
  13. package/dist/base/switch/src/switch.vue.d.ts +1 -1
  14. package/dist/base/table/src/table.vue.d.ts +1 -1
  15. package/dist/capabilities/model-field-runtime/types/field.d.ts +2 -0
  16. package/dist/core/data/DataManager.d.ts +20 -7
  17. package/dist/core/data/derived-fields.d.ts +20 -0
  18. package/dist/core/data/emit-source.d.ts +15 -0
  19. package/dist/core/data/enricher-types.d.ts +8 -1
  20. package/dist/core/data/enrichers/build-field-enrichers.d.ts +24 -1
  21. package/dist/core/data/enrichers/enrich-design-defaults.d.ts +19 -0
  22. package/dist/core/data/enrichers/label-enricher.d.ts +62 -0
  23. package/dist/core/data/enrichers/static-label-enrichers.d.ts +9 -0
  24. package/dist/core/data/pipeline-logger.d.ts +72 -0
  25. package/dist/core/data/post-change-pipeline.d.ts +15 -65
  26. package/dist/core/model/document/wtcRegionRef.d.ts +2 -2
  27. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +5 -1
  28. package/dist/domain/active/active-types.d.ts +2 -0
  29. package/dist/domain/field/field-props-schema-type.d.ts +10 -4
  30. package/dist/domain/field/field-type.d.ts +10 -1
  31. package/dist/domain/table/business/{check-table/profile.d.ts → check/check-table/profile/index.d.ts} +1 -1
  32. package/dist/domain/table/business/{material-balance/profile.d.ts → material/material-balance/profile/index.d.ts} +1 -1
  33. package/dist/domain/table/business/{material-consume/profile.d.ts → material/material-consume/profile/index.d.ts} +1 -1
  34. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +7 -0
  35. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +2 -0
  36. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -0
  37. package/dist/domain/table/business/warehouse/warehouse-allocate/index.d.ts +2 -0
  38. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +26 -0
  39. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/fields.d.ts +2 -0
  40. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +3 -0
  41. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/register-handlers.d.ts +1 -0
  42. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +9 -0
  43. package/dist/domain/table/business/warehouse/warehouse-in-out/profile/fields.d.ts +2 -0
  44. package/dist/domain/table/business/warehouse/warehouse-in-out/profile/index.d.ts +2 -0
  45. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +7 -0
  46. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +2 -0
  47. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +7 -0
  48. package/dist/domain/table/business/{warehouse-inventory → warehouse/warehouse-inventory}/index.d.ts +2 -0
  49. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +69 -0
  50. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/fields.d.ts +2 -0
  51. package/dist/domain/table/business/{warehouse-inventory/profile.d.ts → warehouse/warehouse-inventory/profile/index.d.ts} +1 -1
  52. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +3 -0
  53. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/register-handlers.d.ts +1 -0
  54. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/remote-sync-apply.d.ts +9 -0
  55. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +22 -0
  56. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +31 -0
  57. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +72 -0
  58. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/warehouse-context.d.ts +3 -0
  59. package/dist/domain/table/data/dynamic-table/{profile.d.ts → profile/index.d.ts} +1 -1
  60. package/dist/domain/table/data/fixed-table/{profile.d.ts → profile/index.d.ts} +1 -1
  61. package/dist/domain/table/data/two-d-table/{profile.d.ts → profile/index.d.ts} +1 -1
  62. package/dist/domain/table/{hooks → design/hooks}/on-field-attach.d.ts +2 -2
  63. package/dist/domain/table/design/hooks/on-repeating-default-props.d.ts +3 -0
  64. package/dist/domain/table/{hooks → design/hooks}/on-subtable-create.d.ts +4 -4
  65. package/dist/domain/table/design/label.d.ts +2 -0
  66. package/dist/domain/table/design/ribbon-options.d.ts +8 -0
  67. package/dist/domain/table/{_shared → design/theme}/region-item-theme.d.ts +1 -1
  68. package/dist/domain/table/index.d.ts +10 -8
  69. package/dist/domain/table/registry.d.ts +3 -13
  70. package/dist/domain/table/runtime/api/biz-service-api.d.ts +8 -0
  71. package/dist/domain/table/runtime/engines/init-load-engine.d.ts +16 -0
  72. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +67 -0
  73. package/dist/domain/table/runtime/engines/main-field-bind-engine.d.ts +7 -0
  74. package/dist/domain/table/runtime/engines/remote-sync-engine.d.ts +38 -0
  75. package/dist/domain/table/runtime/engines/row-runtime-engine.d.ts +20 -0
  76. package/dist/domain/table/runtime/engines/rule-engine.d.ts +35 -0
  77. package/dist/domain/table/runtime/runtime-handlers.d.ts +72 -0
  78. package/dist/domain/table/runtime/table-runtime-context.d.ts +48 -0
  79. package/dist/domain/table/runtime/table-runtime-utils.d.ts +56 -0
  80. package/dist/domain/table/runtime/table-runtime.d.ts +67 -0
  81. package/dist/domain/table/types.d.ts +190 -64
  82. package/dist/domain/widget/component-type.d.ts +1 -1
  83. package/dist/index.es.js +75476 -72160
  84. package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -1
  85. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +3 -10
  86. package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +11 -0
  87. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
  88. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action.vue.d.ts +1 -1
  89. package/dist/runtime/designer/toolkit/renderer/field-palette/field-palette.vue.d.ts +15 -0
  90. package/dist/runtime/designer/toolkit/renderer/field-palette/index.d.ts +14 -0
  91. package/dist/runtime/interface/computed.d.ts +12 -31
  92. package/dist/runtime/interface/fetchers.d.ts +6 -2
  93. package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +14 -14
  94. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/product-ndo.d.ts +11 -0
  95. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +14 -14
  96. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +2 -2
  97. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +14 -14
  98. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +21 -3
  99. package/dist/sdk/doc-runtime/utils/wait-for-data-settle.d.ts +1 -1
  100. package/dist/sdk/types/index.d.ts +1 -1
  101. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +7 -1
  102. package/dist/suites/edhr/manifest/field/object-type/material-consume-manifest.d.ts +2 -0
  103. package/dist/suites/edhr/manifest/field/object-type/qty-consumed-manifest.d.ts +2 -0
  104. package/dist/suites/edhr/manifest/field/object-type/qty-manifest.d.ts +2 -0
  105. package/dist/suites/edhr/manifest/field/object-type/qty-required-manifest.d.ts +2 -0
  106. package/dist/suites/edhr/manifest/field/trace/production-identifier-manifest.d.ts +2 -0
  107. package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +9 -0
  108. package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
  109. package/dist/suites/edhr/panel-schema/material-consume-table/parse-rule-editor.vue.d.ts +1 -1
  110. package/dist/suites/edhr/panel-schema/warehouse-allocate-table/WarehouseAllocateTablePanel.vue.d.ts +8 -0
  111. package/dist/suites/edhr/panel-schema/warehouse-allocate-table/warehouse-allocate-table.basic.d.ts +1 -0
  112. package/dist/suites/shared/hooks/usePanelProps.d.ts +2 -0
  113. package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-string-editor.vue.d.ts +3 -3
  114. package/dist/types/warehouse-allocate.type.d.ts +38 -0
  115. package/dist/types/warehouse-inventory.type.d.ts +33 -0
  116. package/dist/utils/TriggerUtil.d.ts +1 -1
  117. package/dist/utils/func/core.d.ts +4 -0
  118. package/dist/utils/func/form.d.ts +1 -5
  119. package/dist/word.css +212 -129
  120. package/package.json +2 -2
  121. package/dist/core/data/data-path-suffix.d.ts +0 -9
  122. package/dist/domain/table/_shared/linkage-engine.d.ts +0 -25
  123. package/dist/domain/table/_shared/rule-engine.d.ts +0 -9
  124. package/dist/domain/table/_shared/runtime-engine.d.ts +0 -12
  125. package/dist/domain/table/_shared/table-runtime-shared.d.ts +0 -45
  126. package/dist/domain/table/business/warehouse-in-out/fields.d.ts +0 -2
  127. package/dist/domain/table/business/warehouse-in-out/profile.d.ts +0 -2
  128. package/dist/domain/table/business/warehouse-transfer/index.d.ts +0 -1
  129. package/dist/domain/table/business/warehouse-transfer/profile.d.ts +0 -3
  130. package/dist/domain/table/hooks/on-repeating-default-props.d.ts +0 -3
  131. package/dist/runtime/canvas/table/render/material-consume/mc-render.d.ts +0 -47
  132. package/dist/runtime/canvas/table/render/material-consume/mc-web-render.d.ts +0 -21
  133. package/dist/runtime/canvas/table/render/material-consume/sync-material-info.d.ts +0 -2
  134. /package/dist/domain/table/business/{check-table → check/check-table}/index.d.ts +0 -0
  135. /package/dist/domain/table/business/{material-balance → material/material-balance}/index.d.ts +0 -0
  136. /package/dist/domain/table/business/{material-consume → material/material-consume}/index.d.ts +0 -0
  137. /package/dist/domain/table/business/{warehouse-in-out → warehouse/warehouse-in-out}/index.d.ts +0 -0
  138. /package/dist/domain/table/{_shared → design}/autofill-expander.d.ts +0 -0
  139. /package/dist/domain/table/{_shared → design}/sub-model-matcher.d.ts +0 -0
  140. /package/dist/domain/table/{_shared → design/theme}/table-theme.d.ts +0 -0
@@ -14,7 +14,7 @@ export declare const TABLE_DATA_SVG: {
14
14
  export declare const TABLE_BUSINESS_SVG: {
15
15
  readonly 'warehouse-in-out': string;
16
16
  readonly 'warehouse-inventory': string;
17
- readonly 'warehouse-transfer': string;
17
+ readonly 'warehouse-allocate': string;
18
18
  readonly 'material-consume': string;
19
19
  readonly 'material-balance': string;
20
20
  readonly 'check-table': string;
@@ -19,8 +19,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
19
19
  onChange?: ((...args: any[]) => any) | undefined;
20
20
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
21
21
  }>, {
22
- size: string;
23
22
  disabled: boolean;
23
+ size: string;
24
24
  modelValue: Array<string | number | boolean>;
25
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -11,8 +11,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
11
11
  "onUpdate:modelValue"?: ((v: string | undefined) => any) | undefined;
12
12
  }>, {
13
13
  disabled: boolean;
14
- format: string;
15
14
  placeholder: string;
15
+ format: string;
16
16
  calendarProps: any;
17
17
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
18
18
  dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
7
7
  };
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<IDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IDividerProps> & Readonly<{}>, {
10
- vertical: boolean;
11
10
  color: string;
11
+ vertical: boolean;
12
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
13
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
14
  export default _default;
@@ -16,8 +16,8 @@ declare function __VLS_template(): {
16
16
  };
17
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
18
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
- size: string;
20
19
  required: boolean;
20
+ size: string;
21
21
  inline: boolean;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -5,8 +5,8 @@ type __VLS_Props = {
5
5
  icon: string;
6
6
  };
7
7
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
- size: number | string;
9
- version: "v1" | "v2";
10
8
  color: string;
9
+ version: "v1" | "v2";
10
+ size: number | string;
11
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
12
12
  export default _default;
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
25
25
  keydown: (event: KeyboardEvent) => any;
26
26
  keypress: (event: KeyboardEvent) => any;
27
27
  keyup: (event: KeyboardEvent) => any;
28
- "update:modelValue": (value: string | number) => any;
29
28
  clear: () => any;
29
+ "update:modelValue": (value: string | number) => any;
30
30
  pressEnter: (event: KeyboardEvent) => any;
31
31
  }, string, import('vue').PublicProps, Readonly<GctInputProps> & Readonly<{
32
32
  onInput?: ((value: string | number, event: Event) => any) | undefined;
@@ -37,20 +37,20 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
37
37
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
38
38
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
39
39
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
40
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
41
40
  onClear?: (() => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
42
42
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
43
43
  }>, {
44
44
  name: string;
45
45
  type: import('./types').InputType;
46
46
  id: string;
47
- size: import('./types').InputSize;
47
+ readonly: boolean;
48
48
  disabled: boolean;
49
- modelValue: string | number;
49
+ size: import('./types').InputSize;
50
+ suffix: string;
50
51
  placeholder: string;
52
+ modelValue: string | number;
51
53
  prefix: string;
52
- readonly: boolean;
53
- suffix: string;
54
54
  addonBefore: string;
55
55
  addonAfter: string;
56
56
  allowClear: boolean;
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
23
23
  keydown: (event: KeyboardEvent) => any;
24
24
  keypress: (event: KeyboardEvent) => any;
25
25
  keyup: (event: KeyboardEvent) => any;
26
- "update:modelValue": (value: string | number) => any;
27
26
  clear: () => any;
27
+ "update:modelValue": (value: string | number) => any;
28
28
  pressEnter: (event: KeyboardEvent) => any;
29
29
  }, string, import('vue').PublicProps, Readonly<GctInputProps> & Readonly<{
30
30
  onInput?: ((value: string | number, event: Event) => any) | undefined;
@@ -35,15 +35,15 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
35
35
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
36
36
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
37
37
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
38
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
39
38
  onClear?: (() => any) | undefined;
39
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
40
40
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
41
41
  }>, {
42
42
  name: string;
43
+ readonly: boolean;
43
44
  disabled: boolean;
44
- modelValue: string | number;
45
45
  placeholder: string;
46
- readonly: boolean;
46
+ modelValue: string | number;
47
47
  allowClear: boolean;
48
48
  showCount: boolean;
49
49
  maxLength: number;
@@ -20,8 +20,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
20
20
  onChange?: ((...args: any[]) => any) | undefined;
21
21
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
22
22
  }>, {
23
- size: string;
24
23
  disabled: boolean;
24
+ size: string;
25
25
  optionType: string;
26
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
27
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -22,13 +22,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
22
22
  "onUpdate:fullPathValue"?: ((value?: string | null | undefined) => any) | undefined;
23
23
  }>, {
24
24
  disabled: boolean;
25
+ modelCategory: string;
26
+ pageSize: number;
25
27
  placeholder: string;
26
28
  popperWidth: number;
27
29
  allowClear: boolean;
28
30
  disabledParent: boolean;
29
31
  parentToDefault: boolean;
30
- pageSize: number;
31
- modelCategory: string;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
33
  dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
34
34
  P: {};
@@ -67,8 +67,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
67
67
  "onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
68
68
  }>, {
69
69
  disabled: boolean;
70
- placeholder: string;
71
70
  options: DropdownOption[];
71
+ placeholder: string;
72
72
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
73
73
  dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
74
74
  P: {};
@@ -15,10 +15,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
15
15
  onChange?: ((val?: string | number | undefined, item?: DropdownOption | undefined) => any) | undefined;
16
16
  "onUpdate:modelValue"?: ((val?: string | number | undefined) => any) | undefined;
17
17
  }>, {
18
+ readonly: boolean;
18
19
  disabled: boolean;
19
- placeholder: string;
20
20
  options: DropdownOption[];
21
- readonly: boolean;
21
+ placeholder: string;
22
22
  allowClear: boolean;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
24
  rootRef: HTMLDivElement;
@@ -10,8 +10,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
10
10
  onChange?: ((...args: any[]) => any) | undefined;
11
11
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
12
12
  }>, {
13
- size: string;
14
13
  disabled: boolean;
14
+ size: string;
15
15
  modelValue: boolean;
16
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
17
17
  export default _default;
@@ -31,9 +31,9 @@ declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {},
31
31
  onSelect?: ((keys: string[]) => any) | undefined;
32
32
  "onRow-click"?: ((row: TableRow) => any) | undefined;
33
33
  }>, {
34
- size: "small" | "middle" | "large";
35
34
  loading: boolean;
36
35
  multiple: boolean;
36
+ size: "small" | "middle" | "large";
37
37
  columns: TableColumn[];
38
38
  stripe: boolean;
39
39
  selectable: boolean;
@@ -26,6 +26,8 @@ export interface FieldMeta {
26
26
  bindInfo?: string;
27
27
  /** 主子关联 绑定子模型字段 */
28
28
  bindFieldKey?: string;
29
+ /** 对象字段所属对象 key */
30
+ belongingObject?: string;
29
31
  createTime: string;
30
32
  createUserName: string;
31
33
  modifyTime: string;
@@ -1,6 +1,8 @@
1
1
  import { Doc } from '../view/Doc';
2
2
  import { PostChangePipelineContext } from './post-change-pipeline';
3
- export type EmitSource = 'user' | 'dependency' | 'enrichment' | 'parent';
3
+ import { EmitSource } from './emit-source';
4
+ export type { EmitSource } from './emit-source';
5
+ export { EMIT_SOURCE_DESC } from './emit-source';
4
6
  /** 单字段变更明细(path 作为 FieldChangeMap 的 key) */
5
7
  export interface FieldChangeDetail {
6
8
  oldValue: unknown;
@@ -62,10 +64,20 @@ export declare class DataManager {
62
64
  * 调度 layout,自动合并同一微任务队列中的多个操作
63
65
  */
64
66
  attachPostChangePipeline(ctx: PostChangePipelineContext): void;
65
- /** 文档初始化 / 刷新数据后,对已有 value 跑一轮后置 enrich */
67
+ /** 文档初始化 / 刷新数据后,对已有 value 跑一轮后置 enrich(不触发业务副作用) */
66
68
  runInitialPostChangeFlush(paths: JsonPath[]): Promise<void>;
67
69
  /** 等待已入队的 emit 批处理(含 postChange / enrich 写回)全部完成 */
68
70
  whenEmitSettled(): Promise<void>;
71
+ /**
72
+ * 提交前准备:排空流水线 → 物化未写入 rawData 的默认值 → 补全 _lb_ / _href_
73
+ * 避免秒存或懒读 defaults 导致提交缺标签。
74
+ */
75
+ prepareForSubmit(): Promise<void>;
76
+ /**
77
+ * 将 defaults Map 中尚未进入 rawData 的项物化写入(source: hydrate)。
78
+ * @returns 本次物化的路径列表
79
+ */
80
+ materializePendingDefaults(): JsonPath[];
69
81
  /**
70
82
  * 对已注册的组件依赖全量重算(refresh 后 depGraph 已重建,需等 readonly/赋值稳定后再 enrich/layout)
71
83
  */
@@ -118,9 +130,10 @@ export declare class DataManager {
118
130
  * 根据 jsonpath 设置数据
119
131
  * @param path jsonpath 路径
120
132
  * @param value 要设置的值
133
+ * @param source 写入来源
121
134
  * @returns 是否设置成功
122
135
  */
123
- set(path: JsonPath, value: any, source?: EmitSource): boolean;
136
+ set(path: JsonPath, value: any, source: EmitSource): boolean;
124
137
  /**
125
138
  * 从带数字下标的 path 推断二维坐标(供 setMultiple / patch / 业务回填等无 modelRef 的场景)
126
139
  * - 单轴:$.f_ewb[0].f_name → y=0;$.f_ewblink[1].x → x=1(需能从 rawData 的交叉 key 识别轴,或命中 link 命名启发)
@@ -153,7 +166,7 @@ export declare class DataManager {
153
166
  /**
154
167
  * 将一个部分值对象合进整体
155
168
  */
156
- patch(data: PartialData): void;
169
+ patch(data: PartialData, source: EmitSource): void;
157
170
  /**
158
171
  * 根据 jsonpath 删除数据
159
172
  * @param path jsonpath 路径
@@ -166,13 +179,14 @@ export declare class DataManager {
166
179
  * @param callback 更新回调函数
167
180
  * @returns 是否更新成功
168
181
  */
169
- update<T = any>(path: JsonPath, callback: (value: T) => T): boolean;
182
+ update<T = any>(path: JsonPath, callback: (value: T) => T, source: EmitSource): boolean;
170
183
  /**
171
184
  * 根据 jsonpath 批量设置数据
172
185
  * @param updates 路径与值的映射对象
186
+ * @param source 写入来源
173
187
  * @returns 是否全部设置成功
174
188
  */
175
- setMultiple(updates: Record<JsonPath, any>, source?: EmitSource): boolean;
189
+ setMultiple(updates: Record<JsonPath, any>, source: EmitSource): boolean;
176
190
  /** 依赖赋值写回 rawData,不触发 emit(用于注册期常量公式立即执行) */
177
191
  private applyDependencyWrites;
178
192
  /**
@@ -363,4 +377,3 @@ export declare class DataManager {
363
377
  */
364
378
  clear(): void;
365
379
  }
366
- export {};
@@ -0,0 +1,20 @@
1
+ /** 与 rawData 并存的 label 后缀(展示用) */
2
+ export declare const LABEL_SUFFIX = "_lb_";
3
+ /** 与 rawData 并存的外链 href 后缀(超链接字段) */
4
+ export declare const HREF_SUFFIX = "_href_";
5
+ /** 版面超链接文字颜色 */
6
+ export declare const HYPERLINK_TEXT_COLOR = "#0563c1";
7
+ export declare function getLabelPath(path: string): string;
8
+ export declare function getHrefPath(path: string): string;
9
+ /** 派生数据路径(label / href),不参与 changedMap / 业务副作用 */
10
+ export declare function isDerivedDataPath(path: string): boolean;
11
+ /** 子表行内仅前端使用、不参与提交的字段 */
12
+ export declare const ROW_RUNTIME_META_KEYS: Set<string>;
13
+ /** 该字段 key 是否不参与提交 */
14
+ export declare function isSubmitExcludedKey(key: string): boolean;
15
+ /** 提交时是否保留该行字段(含空 label 剔除规则) */
16
+ export declare function shouldIncludeSubmitField(key: string, value: unknown): boolean;
17
+ /** 从对象中挑出可提交的字段 */
18
+ export declare function pickSubmitFields(record: Record<string, unknown>): Record<string, unknown>;
19
+ /** 剔除顶层不参与提交的 key */
20
+ export declare function omitSubmitExcludedTopLevel<T extends Record<string, unknown>>(data: T): Partial<T>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 字段写入来源
3
+ *
4
+ * 用来区分「用户真的改了」还是「系统在补水/算公式」
5
+ * 从而决定要不要触发业务副作用,比如清空下游、remoteSync 等
6
+ *
7
+ * @property user - 用户手动操作触发(下拉、输入、扫码)
8
+ * @property hydrate - 打开表单、刷新、初始化填空(非用户操作,不能把「加载」当成「改字段」,两者是不同的)
9
+ * @property dependency - 数据变更触发后把别的字段值给算出来了(组件依赖)
10
+ * @property enrichment - Pipeline 进行数据补充,自动补的派生数据(超链接 _href_、标签 _lb_)
11
+ * @property parent - 子字段变了,通知父级监听,主要是内部使用
12
+ */
13
+ export type EmitSource = 'user' | 'hydrate' | 'dependency' | 'enrichment' | 'parent';
14
+ /** 各来源中文说明 */
15
+ export declare const EMIT_SOURCE_DESC: Record<EmitSource, string>;
@@ -1,6 +1,13 @@
1
+ import { EmitSource } from './emit-source';
2
+ /** enricher 执行时的批次上下文 */
3
+ export type EnrichContext = {
4
+ batchSource?: EmitSource;
5
+ oldValue?: unknown;
6
+ newValue?: unknown;
7
+ };
1
8
  export type DataEnricherRegistration = {
2
9
  id: string;
3
10
  valuePathTemplate: string;
4
11
  match: (path: string) => boolean;
5
- enrich: (path: string, value: unknown) => Promise<Record<string, unknown> | void>;
12
+ enrich: (path: string, value: unknown, ctx?: EnrichContext) => Promise<Record<string, unknown> | void>;
6
13
  };
@@ -2,6 +2,29 @@ import { Doc } from '../../view/Doc';
2
2
  import { Wr } from '../../model/document';
3
3
  import { PostChangePipelineContext } from '../post-change-pipeline';
4
4
  import { DataEnricherRegistration } from '../enricher-types';
5
+ import { FieldComputedConfig } from '../../../domain/field/field-props-schema-type';
6
+ /**
7
+ * 解析 enricher 用的 widget props
8
+ * 枚举等字段的运行时选项在 computedOptions,需先跑 manifest.propRules
9
+ */
10
+ export declare function resolveEnricherWidgetProps(instance: {
11
+ widgetMeta?: {
12
+ props?: Record<string, unknown>;
13
+ };
14
+ }, manifest?: {
15
+ computed?: FieldComputedConfig;
16
+ }): Record<string, unknown>;
17
+ /** 根据文档 widget 列表构建全部 enricher 注册项 */
5
18
  export declare function buildFieldEnricherRegistrations(instances: any[], ctx: PostChangePipelineContext, doc: Doc): DataEnricherRegistration[];
6
- /** 收集 init 后需 enrich 的运行时路径(按 rawData 实际行数展开) */
19
+ /**
20
+ * 将设计/初始化路径模板展开为运行时具体路径(含 [n] / [n_y][n_x])
21
+ */
22
+ export declare function expandInitPathTemplates(templatePath: string, rawData: Record<string, any>): string[];
23
+ /**
24
+ * 收集 init / 换数后需要跑 hydrate 的运行时路径(仅 rawData 中已有值的字段)
25
+ */
7
26
  export declare function collectInitialEnrichPaths(instances: Wr[], rawData: Record<string, any>): string[];
27
+ /** 收集子表指定行的 widget 字段路径(扫码 / 批量写行后补跑 label enrich) */
28
+ export declare function collectSubtableRowEnrichPaths(instances: Wr[], subFieldKey: string, rowIndexes: number[]): string[];
29
+ /** 子表指定行补跑 label / 派生字段 hydrate(enrichment 或整表 user 写入后不触发 enricher) */
30
+ export declare function hydrateSubtableRowLabels(doc: Doc, subFieldKey: string, rowIndexes: number[]): Promise<void>;
@@ -0,0 +1,19 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { FieldDataBindingMeta } from '../../../domain/field/field-binding';
3
+ import { FIELD_TYPE } from '../../../domain/field/field-type';
4
+ import { FieldManifest } from '../../../capabilities/field-manifest';
5
+ import { FieldMeta } from '../../../capabilities/model-field-runtime';
6
+ /** 单字段 defaults Map 补全 _lb_ */
7
+ export declare function enrichDesignDefaults(defaults: Record<string, any> | undefined, options: {
8
+ doc: Doc;
9
+ fieldBinding?: FieldDataBindingMeta | null;
10
+ widgetProps: Record<string, unknown>;
11
+ manifest?: FieldManifest;
12
+ loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>;
13
+ }): Promise<Record<string, any> | undefined>;
14
+ /** 填报 init:为 loadDefaultValuesByFields 产出的 defaults Map 批量补 _lb_ */
15
+ export declare function enrichWidgetDefaultsMap(defaultDataMap: Record<string, any>, instances: any[], options: {
16
+ doc: Doc;
17
+ getFieldManifest: (type: FIELD_TYPE) => FieldManifest | undefined;
18
+ loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>;
19
+ }): Promise<Record<string, any>>;
@@ -0,0 +1,62 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { WidgetMeta } from '../../widget/widget-meta';
3
+ import { FieldDataBindingMeta } from '../../../domain/field/field-binding';
4
+ import { FIELD_TYPE } from '../../../domain/field/field-type';
5
+ import { FieldManifest } from '../../../capabilities/field-manifest';
6
+ import { FieldMeta } from '../../../capabilities/model-field-runtime';
7
+ import { DataEnricherRegistration } from '../enricher-types';
8
+ import { DataManager } from '../DataManager';
9
+ import { apiFetchers } from '../../../runtime/interface/fetchers';
10
+ /** 单条 label 解析策略 */
11
+ type LabelResolveStrategy = {
12
+ type: 'dict';
13
+ dictFieldKey?: string;
14
+ } | {
15
+ type: 'options';
16
+ from: 'optionsJson' | 'computedOptions';
17
+ labelKey?: string;
18
+ multiple?: boolean;
19
+ } | {
20
+ type: 'api';
21
+ fetcher: keyof typeof apiFetchers;
22
+ fallback?: string;
23
+ } | {
24
+ type: 'static-map';
25
+ map: Record<string, string>;
26
+ };
27
+ /** resolveFieldLabel 运行时入参 */
28
+ interface LabelResolveContext {
29
+ path: string;
30
+ value: unknown;
31
+ dataManager: DataManager;
32
+ fieldBinding: FieldDataBindingMeta;
33
+ widgetProps: Record<string, unknown>;
34
+ manifest?: FieldManifest;
35
+ loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>;
36
+ }
37
+ type LabelEnricherOptions = Omit<DataEnricherRegistration, 'enrich'> & {
38
+ doc: Doc;
39
+ widgetMeta: WidgetMeta;
40
+ fieldBinding: FieldDataBindingMeta;
41
+ manifest?: FieldManifest;
42
+ loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>;
43
+ };
44
+ /** 该字段是否应注册 label-enricher */
45
+ export declare function fieldNeedsLabelEnrichment(fieldType: FIELD_TYPE, manifest?: FieldManifest): boolean;
46
+ /**
47
+ * 静态映射 enricher:value 字段 → 固定 label 字段
48
+ * 用于无 widget 的业务字段,如盘点 stocktake_status → stocktake_status__lb_
49
+ */
50
+ export declare function createStaticMapLabelEnricher(doc: Doc, options: {
51
+ id: string;
52
+ valueFieldKey: string;
53
+ labelFieldKey: string;
54
+ map: Record<string, string>;
55
+ }): DataEnricherRegistration;
56
+ /** 从 manifest 推导 label 解析策略链 */
57
+ export declare function resolveFieldLabelStrategies(fieldType: FIELD_TYPE, manifest?: FieldManifest): LabelResolveStrategy[] | undefined;
58
+ /** 按策略链解析 label */
59
+ export declare function resolveFieldLabel(strategies: LabelResolveStrategy[], ctx: LabelResolveContext): Promise<string | null | undefined>;
60
+ /** 为单个 widget 字段创建 label enricher 注册项 */
61
+ export declare function createLabelEnricher(reg: LabelEnricherOptions): DataEnricherRegistration;
62
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Doc } from '../../view/Doc';
2
+ import { DataEnricherRegistration } from '../enricher-types';
3
+ /** 拿到 doc 后生成 enricher 注册项 */
4
+ type StaticLabelEnricherFactory = (doc: Doc) => DataEnricherRegistration;
5
+ /** 注册业务侧静态/定制 label enricher */
6
+ export declare function registerStaticLabelEnricher(factory: StaticLabelEnricherFactory): void;
7
+ /** 文档初始化时构建所有已注册的静态 label enricher */
8
+ export declare function buildStaticLabelEnrichers(doc: Doc): DataEnricherRegistration[];
9
+ export {};
@@ -0,0 +1,72 @@
1
+ import { EmitSource } from './emit-source';
2
+ export type PipelineLogNS = 'data.emit' | 'pipeline.hydrate' | 'pipeline.onChange' | 'pipeline.deps' | 'enricher.label' | 'enricher.hyperlink' | 'pipeline.afterFlush' | 'table.runtime' | 'init.lifecycle' | 'submit.prepare';
3
+ export type PipelineLogLevel = 'debug' | 'info' | 'warn' | 'error';
4
+ export interface PipelineLogEvent {
5
+ ns: PipelineLogNS;
6
+ level: PipelineLogLevel;
7
+ msg: string;
8
+ batchId?: string;
9
+ path?: string;
10
+ source?: EmitSource;
11
+ durationMs?: number;
12
+ meta?: Record<string, unknown>;
13
+ }
14
+ export interface PipelineLogger {
15
+ debug(msg: string, meta?: Record<string, unknown>): void;
16
+ info(msg: string, meta?: Record<string, unknown>): void;
17
+ warn(msg: string, meta?: Record<string, unknown>): void;
18
+ error(msg: string, meta?: Record<string, unknown>): void;
19
+ child(meta: Record<string, unknown>): PipelineLogger;
20
+ time(label: string): () => number;
21
+ }
22
+ interface PipelineLoggingConfig {
23
+ enabled: boolean;
24
+ level: PipelineLogLevel;
25
+ namespaces?: PipelineLogNS[];
26
+ }
27
+ /** 创建 pipeline 批次 id,用于串联同一次 flush 日志 */
28
+ export declare function createPipelineBatchId(prefix?: string): string;
29
+ /** 配置 pipeline 日志 */
30
+ export declare function configurePipelineLogging(options: Partial<PipelineLoggingConfig>): void;
31
+ /** 日志展示 来源枚举 → 中文 */
32
+ export declare function formatEmitSourceLabel(source: EmitSource): string;
33
+ export declare function truncatePipelineValue(value: unknown, maxLen?: number): unknown;
34
+ /** 单值展示(日志一行里用) */
35
+ export declare function formatPipelineValue(value: unknown): string;
36
+ export interface PipelineFieldChangeInput {
37
+ oldValue: unknown;
38
+ newValue: unknown;
39
+ source: EmitSource;
40
+ }
41
+ export interface FieldChangeLogMeta {
42
+ pathCount: number;
43
+ paths: string[];
44
+ changes: Array<{
45
+ path: string;
46
+ source: EmitSource;
47
+ old: unknown;
48
+ new: unknown;
49
+ text: string;
50
+ }>;
51
+ /** 拼进 log.msg 的简短摘要 */
52
+ brief: string;
53
+ omittedCount: number;
54
+ }
55
+ /**
56
+ * 把一批字段变更整理成 Console 可读的结构
57
+ * - brief:单条直接展示 path + 旧→新;多条展示前几条 +「等 N 项」
58
+ * - changes:展开可看每条明细
59
+ */
60
+ export declare function formatFieldChangesForLog(changedMap: Record<string, PipelineFieldChangeInput>, options?: {
61
+ maxItems?: number;
62
+ hydrateMode?: boolean;
63
+ }): FieldChangeLogMeta;
64
+ /** info 级日志附带字段明细(paths + changes + brief) */
65
+ export declare function fieldChangeLogMeta(changedMap: Record<string, PipelineFieldChangeInput>, options?: {
66
+ maxItems?: number;
67
+ hydrateMode?: boolean;
68
+ }): Record<string, unknown>;
69
+ export declare function createPipelineLogger(ns: PipelineLogNS, baseMeta?: Record<string, unknown>): PipelineLogger;
70
+ /** 开发构建默认开启 debug 级别 pipeline 日志 */
71
+ export declare function configurePipelineLoggingForDev(): void;
72
+ export {};