@gct-paas/word 0.1.63-beta.2 → 0.1.63-beta.3

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 (123) hide show
  1. package/dist/assets/theme/index.d.ts +1 -0
  2. package/dist/base/icon/src/icon.vue.d.ts +1 -1
  3. package/dist/base/input/src/input.vue.d.ts +1 -1
  4. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
  5. package/dist/base/table/src/table.vue.d.ts +1 -1
  6. package/dist/capabilities/component-registry/registry.d.ts +1 -1
  7. package/dist/capabilities/component-registry/service.d.ts +1 -1
  8. package/dist/capabilities/component-registry/types.d.ts +1 -1
  9. package/dist/capabilities/field-manifest/service.d.ts +1 -2
  10. package/dist/capabilities/field-manifest/types.d.ts +1 -1
  11. package/dist/capabilities/model-field-runtime/types/paper-widget.d.ts +1 -1
  12. package/dist/capabilities/paper-widget-manifest/registry.d.ts +1 -1
  13. package/dist/capabilities/paper-widget-manifest/service.d.ts +1 -1
  14. package/dist/capabilities/paper-widget-manifest/types.d.ts +1 -2
  15. package/dist/core/command/commands/InsertField.d.ts +1 -1
  16. package/dist/core/constants/component.d.ts +27 -0
  17. package/dist/core/constants/doc-mode.d.ts +10 -0
  18. package/dist/core/constants/index.d.ts +3 -68
  19. package/dist/core/constants/paper.d.ts +31 -0
  20. package/dist/core/data/enrichers/enrich-design-defaults.d.ts +1 -1
  21. package/dist/core/data/enrichers/hyperlink-enricher.d.ts +1 -1
  22. package/dist/core/data/enrichers/id-enricher.d.ts +1 -1
  23. package/dist/core/data/enrichers/label-enricher.d.ts +1 -2
  24. package/dist/core/data/enrichers/label-resolve.d.ts +1 -1
  25. package/dist/{domain/field/of-inst-num → core/data/enrichers}/of-inst-num-enricher.d.ts +3 -3
  26. package/dist/core/data/index.d.ts +1 -0
  27. package/dist/{utils/func/render.d.ts → core/data/submit/form-state.d.ts} +2 -2
  28. package/dist/core/index.d.ts +7 -6
  29. package/dist/core/layout/attach-field/AttachFieldContext.d.ts +1 -1
  30. package/dist/core/{utils → layout/image}/adaptive-image-cell.d.ts +8 -8
  31. package/dist/core/layout/providers/TableInfoProvider.d.ts +1 -1
  32. package/dist/core/{utils/index.d.ts → layout/shared/helpers.d.ts} +1 -0
  33. package/dist/core/layout/{linkSubTableLayout.d.ts → table/link-sub-table-layout.d.ts} +1 -1
  34. package/dist/core/{utils/splitTable.d.ts → layout/table/split-table.d.ts} +1 -1
  35. package/dist/core/{utils/expand.d.ts → layout/table/table-expand.d.ts} +5 -5
  36. package/dist/core/model/document/WrText.d.ts +1 -1
  37. package/dist/core/view/TableCell.d.ts +1 -1
  38. package/dist/core/{utils → view/context}/DocPubApiContext.d.ts +3 -3
  39. package/dist/core/view/runs/ImageWidget.d.ts +1 -1
  40. package/dist/core/view/runs/TextWidget.d.ts +1 -1
  41. package/dist/core/widget/{field-hyperlink.d.ts → hyperlink.d.ts} +1 -1
  42. package/dist/core/widget/index.d.ts +5 -0
  43. package/dist/core/widget/{widget-state.d.ts → state.d.ts} +1 -1
  44. package/dist/core/widget/types.d.ts +190 -0
  45. package/dist/domain/constants/enum/form.d.ts +56 -0
  46. package/dist/domain/constants/enum/image.d.ts +15 -0
  47. package/dist/domain/constants/enum/index.d.ts +5 -0
  48. package/dist/domain/constants/enum/signature.d.ts +30 -0
  49. package/dist/domain/constants/enum/view.d.ts +79 -0
  50. package/dist/domain/constants/enum/widget.d.ts +48 -0
  51. package/dist/domain/field/field-type.d.ts +6 -0
  52. package/dist/{utils/func/form.d.ts → domain/field/form-value.d.ts} +2 -2
  53. package/dist/domain/field/index.d.ts +1 -1
  54. package/dist/domain/table/business/shared/change-parse-rule.d.ts +1 -1
  55. package/dist/domain/table/business/shared/scan-action.d.ts +2 -2
  56. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/before-btn-click.d.ts +1 -1
  57. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +1 -1
  58. package/dist/index.es.js +258 -224
  59. package/dist/runtime/_register_/context/DesignSuiteContext.d.ts +2 -3
  60. package/dist/runtime/canvas/__common__/widget-container/overlay-layer.vue.d.ts +1 -1
  61. package/dist/runtime/canvas/constants/index.d.ts +1 -0
  62. package/dist/runtime/canvas/table/render/label-parse-rule/useLabelParsingRules.d.ts +1 -1
  63. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +1 -1
  64. package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +2 -0
  65. package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
  66. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +2 -2
  67. package/dist/runtime/canvas/table/render/material-consume/service.d.ts +1 -1
  68. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
  69. package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +1 -1
  70. package/dist/runtime/factories/createDesignWidgetFactory.d.ts +2 -2
  71. package/dist/runtime/factories/useWidgetRenderData.d.ts +7 -7
  72. package/dist/runtime/interface/computed.d.ts +1 -1
  73. package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +3 -3
  74. package/dist/runtime/renderer/dialogs/dialog-container.vue.d.ts +1 -1
  75. package/dist/{core/widget/e-sop-view.d.ts → runtime/renderer/dialogs/e-sop-view/open-e-sop-view.d.ts} +1 -2
  76. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +1 -1
  77. package/dist/runtime/renderer/dialogs/upload-file/upload-file-dialog.vue.d.ts +1 -1
  78. package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -1
  79. package/dist/runtime/renderer/dropdowns/components/dropdown-container.vue.d.ts +1 -1
  80. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +3 -3
  81. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +3 -3
  82. package/dist/runtime/renderer/dropdowns/factories/dropdown-factory.d.ts +1 -1
  83. package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +1 -2
  84. package/dist/sdk/setup.d.ts +1 -1
  85. package/dist/sdk/types/index.d.ts +2 -1
  86. package/dist/suites/edhr/component/index.d.ts +1 -1
  87. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +1 -1
  88. package/dist/suites/edhr/manifest/paper-widget/index.d.ts +1 -1
  89. package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +1 -1
  90. package/dist/suites/edhr/panel-schema/material-consume-table/parse-rule-add-btn.vue.d.ts +1 -1
  91. package/dist/suites/edhr/panel-schema/rule/utils/uom-convert-rule.d.ts +3 -1
  92. package/dist/suites/shared/hooks/useFieldPanelMeta.d.ts +1 -1
  93. package/dist/suites/shared/panel/config/editor/attach-fields-editor/types.d.ts +1 -1
  94. package/dist/suites/shared/panel/config/editor/date-format-editor/logic.d.ts +1 -1
  95. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +1 -1
  96. package/dist/suites/shared/panel/config/editor/single-field-editor/types.d.ts +1 -1
  97. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +1 -1
  98. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-module.vue.d.ts +1 -1
  99. package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -1
  100. package/dist/suites/shared/panel/modules/field-formula-module/formula-field-options.d.ts +1 -1
  101. package/dist/{types → suites/shared/panel/types}/formula.type.d.ts +2 -2
  102. package/dist/utils/symbol/contextKey.d.ts +0 -2
  103. package/dist/word.css +411 -411
  104. package/package.json +1 -1
  105. package/dist/core/widget/widget-meta.d.ts +0 -72
  106. package/dist/domain/constants/enum.d.ts +0 -228
  107. package/dist/domain/field/field-binding.d.ts +0 -74
  108. package/dist/domain/field/of-inst-num/index.d.ts +0 -1
  109. package/dist/domain/field/resolve-field-type.d.ts +0 -7
  110. package/dist/domain/paper-widget/paper-widget-type.d.ts +0 -18
  111. package/dist/domain/paper-widget/widget-binding.d.ts +0 -8
  112. package/dist/domain/widget/component-type.d.ts +0 -22
  113. package/dist/utils/deepEqualJson.d.ts +0 -16
  114. /package/dist/{domain/constants → assets/theme}/field-state.d.ts +0 -0
  115. /package/dist/core/{utils → data/formula}/calculate-formula.d.ts +0 -0
  116. /package/dist/core/{utils/unit-converter-util.d.ts → layout/shared/unit-converter.d.ts} +0 -0
  117. /package/dist/{types/material.type.d.ts → domain/table/business/material/types.d.ts} +0 -0
  118. /package/dist/{types/warehouse-allocate.type.d.ts → domain/table/business/warehouse/warehouse-allocate/types.d.ts} +0 -0
  119. /package/dist/{types/warehouse-inventory.type.d.ts → domain/table/business/warehouse/warehouse-inventory/types.d.ts} +0 -0
  120. /package/dist/{domain/constants/canvas.d.ts → runtime/canvas/constants/base-attrs.d.ts} +0 -0
  121. /package/dist/{types/main.type.d.ts → sdk/types/action-button.d.ts} +0 -0
  122. /package/dist/utils/{ServiceUtil.d.ts → adapters/ServiceUtil.d.ts} +0 -0
  123. /package/dist/utils/{TriggerUtil.d.ts → adapters/TriggerUtil.d.ts} +0 -0
@@ -0,0 +1,190 @@
1
+ import { FIELD_TYPE } from '../../domain/field/field-type';
2
+ export type ExternalComponentType = 'cascade' | 'fw:input' | 'fw:number' | 'fw:double' | 'fw:enum' | 'fw:enum-multiple' | 'fw:date-time' | 'fw:date' | 'fw:time' | 'fw:select' | 'fw:select-multiple' | 'fw:tree-select' | 'fw:tree-select-multiple' | 'fw:table-select' | 'fw:rdo-table-select' | 'fw:signature' | 'fw:image' | 'fw:file' | 'pw:image' | 'pw:barcode' | 'pw:qrcode' | 'pw:diagonal' | 'pw:serialnumber' | 'pw:pagination' | 'pw:line' | 'pw:timediff';
3
+ /** 渲染组件标识 后续支持自定义组件 */
4
+ export type ExternalNodeType = 'render:gct-placeholder' | 'render:gct-control' | 'render:gct-space' | 'render:gct-text' | 'render:gct-image' | 'render:gct-signature' | 'render:gct-leftMarker' | 'render:gct-rightMarker' | 'render:pw-barcode' | 'render:pw-qrcode' | 'render:pw-image' | 'render:pw-diagonal' | 'render:pw-pagination' | 'render:pw-line';
5
+ /** 渲染节点集合 */
6
+ export interface FieldNodeRenderers {
7
+ /** 暗提示节点 */
8
+ placeholder: ExternalNodeType;
9
+ /** 控制器节点(checkbox、radio) */
10
+ control: ExternalNodeType;
11
+ /** 间距节点 */
12
+ space: ExternalNodeType;
13
+ /** 文本节点 */
14
+ text: ExternalNodeType;
15
+ /** 字段左侧框选标记 */
16
+ leftMarker: ExternalNodeType;
17
+ /** 字段右侧框选标记 */
18
+ rightMarker: ExternalNodeType;
19
+ }
20
+ export interface PaperWidgetNodeRenderers {
21
+ /** 文本节点 */
22
+ text: ExternalNodeType;
23
+ }
24
+ /**
25
+ * 字段数据绑定元信息接口
26
+ * 用于描述字段与模型之间的绑定关联关系,包含主表和子表的绑定配置
27
+ *
28
+ * @example
29
+ * 主表 模型key为 fm_4cmuyhmp 示例
30
+ * const mainBinding1 = {
31
+ * fieldLink: "f_wb",
32
+ * modelLink: "fm_4cmuyhmp",
33
+ * };
34
+ *
35
+ * @example
36
+ * 主表 模型key为 fm_4cmuyhmp 引用示例
37
+ * const mainBinding2 = {
38
+ * fieldLink: "f_mxgl.original_workflow_id_.version_",
39
+ * modelLink: "fm_4cmuyhmp.em_container.em_workflow",
40
+ * };
41
+ *
42
+ * 子表 模型key为 fm_rhmu6kuo 示例
43
+ * const subTableBinding1 = {
44
+ * fieldLink: "f_zs",
45
+ * modelLink: "fm_rhmu6kuo",
46
+ * subFieldKey: "f_dtb"
47
+ * };
48
+ *
49
+ * @example
50
+ * 子表 模型key为 fm_rhmu6kuo 引用示例
51
+ * const subTableBinding2 = {
52
+ * fieldLink: "f_sub_mxgl.parent_container_id_.edhr_inst_id_",
53
+ * modelLink: "fm_rhmu6kuo.em_parent_container.em_container",
54
+ * subFieldKey: "f_dtb"
55
+ * };
56
+ *
57
+ * @example
58
+ * valuePath
59
+ * $.f_gdb[n].routing_operation_1_
60
+ * $.scrap_material_1_
61
+ */
62
+ export interface FieldDataBindingMeta {
63
+ /**
64
+ * 字段 manifest 类型(拖入时由 bizType ?? type 解析写入)
65
+ * 例:外部参考号字段为 external_reference_no,而非底层存储类型 text
66
+ */
67
+ fieldType: FIELD_TYPE;
68
+ /**
69
+ * 字段链路
70
+ * 标识字段的关联路径或唯一标识
71
+ */
72
+ fieldLink: string;
73
+ /**
74
+ * 模型链路
75
+ * 标识绑定的模型路径或模型唯一标识
76
+ */
77
+ modelLink: string;
78
+ /**
79
+ * 数据路径
80
+ * 标识字段对应数据的提取/存储路径
81
+ */
82
+ valuePath: string;
83
+ /**
84
+ * 是否是关联模型字段
85
+ */
86
+ isLinkedModelField: boolean;
87
+ /**
88
+ * 子表字段关键字
89
+ * 可选属性,仅子表绑定配置时需要,用于标识子表字段的唯一关键字
90
+ */
91
+ subFieldKey?: string;
92
+ /**
93
+ * 对象字段所属对象键值
94
+ */
95
+ belongingObject?: string;
96
+ }
97
+ export declare enum PAPER_WIDGET_TYPE {
98
+ /** 图片 */
99
+ IMAGE = "image",
100
+ /** 条形码 */
101
+ BARCODE = "barcode",
102
+ /** 二维码 */
103
+ QRCODE = "qrcode",
104
+ /** 表头分栏 */
105
+ DIAGONAL = "diagonal",
106
+ /** 序列号 */
107
+ SERIAL_NUMBER = "serialnumber",
108
+ /** 页码 */
109
+ PAGINATION = "pagination",
110
+ /** 线条 */
111
+ LINE = "line",
112
+ /** 时间差 */
113
+ TIME_DIFF = "timediff"
114
+ }
115
+ /**
116
+ * 页面组件数据绑定元信息接口
117
+ */
118
+ export interface PaperWidgetDataBindingMeta {
119
+ /** 字段类型 */
120
+ widgetType: PAPER_WIDGET_TYPE;
121
+ }
122
+ /** 组件基础信息 */
123
+ interface WidgetMetaBase {
124
+ /** 节点唯一标识 */
125
+ id: string;
126
+ /** 组件类型 */
127
+ type: ExternalComponentType;
128
+ /** 节点状态 */
129
+ state?: {
130
+ hidden?: boolean;
131
+ readonly?: boolean;
132
+ disabled?: boolean;
133
+ locked?: boolean;
134
+ };
135
+ }
136
+ /** 组件布局 */
137
+ interface WidgetLayoutMeta {
138
+ /** 尺寸 */
139
+ width?: number;
140
+ height?: number;
141
+ }
142
+ /** 组件行为 */
143
+ interface WidgetBehaviorMeta {
144
+ /** 是否允许拖拽 */
145
+ draggable?: boolean;
146
+ /** 是否允许调整尺寸 */
147
+ resizable?: boolean;
148
+ /** 是否允许复制 */
149
+ copyable?: boolean;
150
+ /** 是否允许删除 */
151
+ removable?: boolean;
152
+ /** 是否允许作为容器 */
153
+ droppable?: boolean;
154
+ /** 是否允许脱离文档流 */
155
+ outOfFlow?: boolean;
156
+ /** 事件映射 */
157
+ events?: Record<string, {
158
+ action: string;
159
+ payload?: any;
160
+ }>;
161
+ }
162
+ /** 组件样式 */
163
+ interface WidgetStyleMeta {
164
+ className?: string;
165
+ style?: Record<string, string | number>;
166
+ }
167
+ /** 扩展声明 */
168
+ interface WidgetExtraMeta {
169
+ /** 设计器扩展能力 */
170
+ extensions?: Record<string, any>;
171
+ /** 业务自定义数据 */
172
+ biz?: any;
173
+ }
174
+ export interface WidgetMeta extends WidgetMetaBase {
175
+ /** 布局信息 */
176
+ layout?: WidgetLayoutMeta;
177
+ /** 参数信息 */
178
+ props: WidgetPropsMeta;
179
+ /** 行为信息 */
180
+ behavior?: WidgetBehaviorMeta;
181
+ /** 样式信息 */
182
+ style?: WidgetStyleMeta;
183
+ /** 字段信息 */
184
+ field?: FieldDataBindingMeta;
185
+ /** 页面组件信息 */
186
+ widget?: PaperWidgetDataBindingMeta;
187
+ /** 扩展能力 */
188
+ extra?: WidgetExtraMeta;
189
+ }
190
+ export {};
@@ -0,0 +1,56 @@
1
+ /** 排列方式 */
2
+ export declare const OrientationTypeConst: {
3
+ /** 纵 */
4
+ readonly Portrait: "portrait";
5
+ /** 横 */
6
+ readonly Landscape: "landscape";
7
+ };
8
+ export type VOrientationType = ValueOf<typeof OrientationTypeConst>;
9
+ /**组件依赖-组件行为类型 */
10
+ export declare const FieldDependencyTypeConst: {
11
+ /**隐藏 */
12
+ Hidden: string;
13
+ /**只读 */
14
+ Readonly: string;
15
+ /**禁用 */
16
+ Disabled: string;
17
+ /**必填 */
18
+ Required: string;
19
+ /**赋值 */
20
+ Assignment: string;
21
+ };
22
+ export type FieldDependencyType = ValueOf<typeof FieldDependencyTypeConst>;
23
+ /** 新值赋值策略 */
24
+ export declare const AssignmentStrategyTypeConst: {
25
+ /**始终覆盖 */
26
+ AlwaysCover: string;
27
+ /**不覆盖已修改 */
28
+ NotCovered: string;
29
+ };
30
+ export type AssignmentStrategyType = ValueOf<typeof AssignmentStrategyTypeConst>;
31
+ /** 表单类型 */
32
+ export declare const FormTypeConst: {
33
+ /** 基础表单 */
34
+ BASE: string;
35
+ /** 流程表单 */
36
+ PROCESS: string;
37
+ /** 视图表单 */
38
+ VIEW: string;
39
+ /** 文本表单 */
40
+ TEXT: string;
41
+ /** 文件表单 */
42
+ FILE: string;
43
+ };
44
+ export type FormType = ValueOf<typeof FormTypeConst>;
45
+ /** 视图类型 */
46
+ export declare const ViewTypeConst: {
47
+ /** 视图模型(查询视图) */
48
+ VIEW_MODEL: string;
49
+ /** SQL数据视图 */
50
+ VIEW_SQL: string;
51
+ /** 数据库视图 */
52
+ VIEW: string;
53
+ /** 自定义模型 */
54
+ VIEW_JS: string;
55
+ };
56
+ export type ViewType = ValueOf<typeof ViewTypeConst>;
@@ -0,0 +1,15 @@
1
+ /** 图片显示模式 */
2
+ export declare const ImageDisplayModeConst: {
3
+ /** 自定义 */
4
+ CUSTOM: string;
5
+ /** 自适应 */
6
+ ADAPTIVE: string;
7
+ };
8
+ /** 图片组件高宽呈现模式 */
9
+ export declare const ImageSizeModeTypeConst: {
10
+ /** 自适应,响应式的适应外层容器的大小 */
11
+ RESPONSIVE: string;
12
+ /** 固定值,高宽设了多少就是多少 */
13
+ FIXED: string;
14
+ };
15
+ export type ImageSizeModeType = ValueOf<typeof ImageSizeModeTypeConst>;
@@ -0,0 +1,5 @@
1
+ export * from './view';
2
+ export * from './form';
3
+ export * from './signature';
4
+ export * from './image';
5
+ export * from './widget';
@@ -0,0 +1,30 @@
1
+ /** 签名人数配置 */
2
+ export declare const SignatureNumberTypeConst: {
3
+ /** 单人签名 */
4
+ SIGNATURE_SINGLE: string;
5
+ /** 多人签名 */
6
+ SIGNATURE_MULTIPLE: string;
7
+ };
8
+ /** 签名格式 */
9
+ export declare const SignatureTypeConst: {
10
+ /** 仅签名 */
11
+ SIGNATURE_ONLY: string;
12
+ /** 签名及日期 */
13
+ SIGNATURE_DATE: string;
14
+ /** 签名及日期时间 */
15
+ SIGNATURE_DATETIME: string;
16
+ };
17
+ /** 签名日期配置 */
18
+ export declare const SignatureTimeTypeConst: {
19
+ /** 跟随签名 */
20
+ FOLLOW_SIGNATURE: string;
21
+ /** 填充新字段 */
22
+ POPULATE_FIELD: string;
23
+ };
24
+ /** 签名显示方式 */
25
+ export declare const SignDisplayTypeConst: {
26
+ /** 垂直显示 */
27
+ VERTICAL: string;
28
+ /** 水平显示 */
29
+ HORIZONTAL: string;
30
+ };
@@ -0,0 +1,79 @@
1
+ /** 空值符 */
2
+ export declare const EmptySymbolTypeConst: {
3
+ readonly '/': "/";
4
+ readonly '--': "--";
5
+ readonly '\u2014\u2014': "——";
6
+ readonly NA: "NA";
7
+ readonly 'N/A': "N/A";
8
+ };
9
+ export type EmptySymbolType = ValueOf<typeof EmptySymbolTypeConst>;
10
+ /** 查看时渲染方式 */
11
+ export declare const ViewStateTypeConst: {
12
+ /** 文本显示 */
13
+ Readonly: string;
14
+ /** 组件显示-禁用 */
15
+ Disabled: string;
16
+ /** 组件显示-跟随设计 */
17
+ Auto: string;
18
+ };
19
+ export type ViewStateType = ValueOf<typeof ViewStateTypeConst>;
20
+ /** 组件样式 */
21
+ export declare const RenderCompTypeConst: {
22
+ /** 圆形 */
23
+ Radio: string;
24
+ /** 方形 */
25
+ Checkbox: string;
26
+ /** 下拉 */
27
+ Select: string;
28
+ };
29
+ export type RenderCompType = ValueOf<typeof RenderCompTypeConst>;
30
+ /** 布尔显示方式 */
31
+ export declare const BooleanShowModeTypeConst: {
32
+ /** 只显示真 */
33
+ OnlyTrue: string;
34
+ /** 只显示真 */
35
+ OnlyFalse: string;
36
+ /** 同时显示真和假 */
37
+ Both: string;
38
+ };
39
+ export type BooleanShowModeType = ValueOf<typeof BooleanShowModeTypeConst>;
40
+ /** 文字前后位置 */
41
+ export declare const LabelPositionTypeConst: {
42
+ /** 文字在前 */
43
+ Before: string;
44
+ /** 文字在后 */
45
+ After: string;
46
+ };
47
+ export type LabelPositionType = ValueOf<typeof LabelPositionTypeConst>;
48
+ /** 小数显示模式 */
49
+ export declare const DecimalDisplayModeTypeConst: {
50
+ /** 显示百分比(%) */
51
+ PERCENT: string;
52
+ /** 显示原始数值 */
53
+ ORIGIN: string;
54
+ };
55
+ export type DecimalDisplayModeType = ValueOf<typeof DecimalDisplayModeTypeConst>;
56
+ /** 字段的上下限校验模式 */
57
+ export declare const RangeValidateModeTypeConst: {
58
+ /** 不校验 */
59
+ No_Validate: string;
60
+ /** 固定输入校验 */
61
+ Fixed_Number: string;
62
+ /** 变量校验 */
63
+ Variable_Validate: string;
64
+ };
65
+ export type RangeValidateModeType = ValueOf<typeof RangeValidateModeTypeConst>;
66
+ /** 字段默认值系统变量 */
67
+ export declare const FieldSysVarDefaultValueConst: {
68
+ NULL: string;
69
+ /** 系统日期 */
70
+ SYS_DATE: string;
71
+ /** 系统时间 */
72
+ SYS_TIME: string;
73
+ /** 系统日期时间 */
74
+ SYS_DATE_TIME: string;
75
+ /** 系统登录用户 */
76
+ CURRENT_USER: string;
77
+ /** 当前登录用户主部门 */
78
+ CURRENT_ORG: string;
79
+ };
@@ -0,0 +1,48 @@
1
+ /** 条码二维码类型 */
2
+ export declare const BwipCodeTypeConst: {
3
+ Code39: string;
4
+ Code128: string;
5
+ QRCode: string;
6
+ GS1DataMatrix: string;
7
+ };
8
+ export type BwipCodeType = ValueOf<typeof BwipCodeTypeConst>;
9
+ /** 条码二维码内容类型 */
10
+ export declare const ValueTypeConst: {
11
+ /** 固定值 */
12
+ Fixed: string;
13
+ /** 字段 */
14
+ Field: string;
15
+ /** 公式 */
16
+ Formula: string;
17
+ };
18
+ export type ValueType = ValueOf<typeof ValueTypeConst>;
19
+ /** 分栏的方向 */
20
+ export declare const DiagonalDirectionTypeConst: {
21
+ /** 从左上到右下 */
22
+ Forward: string;
23
+ /** 从右上到左下 / */
24
+ Backward: string;
25
+ };
26
+ export type DiagonalDirectionType = ValueOf<typeof DiagonalDirectionTypeConst>;
27
+ /** 时间差格式类型 */
28
+ export declare const TimeDiffFormatTypeConst: {
29
+ /** 天时分秒 */
30
+ D_H_MIN_S: string;
31
+ /** 年月天时分秒 */
32
+ Y_M_D_H_MIN_S: string;
33
+ /** 时分秒 */
34
+ H_MIN_S: string;
35
+ /** 年 */
36
+ Y: string;
37
+ /** 月 */
38
+ M: string;
39
+ /** 天 */
40
+ D: string;
41
+ /** 时 */
42
+ H: string;
43
+ /** 分 */
44
+ MIN: string;
45
+ /** 秒 */
46
+ S: string;
47
+ };
48
+ export type TimeDiffFormatType = ValueOf<typeof TimeDiffFormatTypeConst>;
@@ -1,3 +1,4 @@
1
+ import { FieldMeta } from '../../capabilities/model-field-runtime';
1
2
  /** 字段类型 */
2
3
  export declare enum FIELD_TYPE {
3
4
  /**
@@ -385,3 +386,8 @@ export declare enum FIELD_TYPE {
385
386
  */
386
387
  STERILIZATION_CONTAINER = "sterilization_container"
387
388
  }
389
+ export type FieldTypeSource = Pick<FieldMeta, 'type' | 'bizType'>;
390
+ /** manifest / 面板 / 渲染 / icon 查找用的类型 */
391
+ export declare function resolveFieldManifestType(field: FieldTypeSource): FIELD_TYPE;
392
+ /** 数据形态、类型兼容逻辑用的存储类型 */
393
+ export declare function resolveFieldStorageType(field: FieldTypeSource): FIELD_TYPE;
@@ -1,5 +1,5 @@
1
- import { DecimalDisplayModeType } from '../../domain/constants/enum';
2
- import { FIELD_TYPE } from '../../domain/field/field-type';
1
+ import { DecimalDisplayModeType } from '../constants/enum';
2
+ import { FIELD_TYPE } from './field-type';
3
3
  export declare function getValue(value: any, multiple: boolean): any;
4
4
  export declare function setValue(value: any, valuePath: string, payload?: {
5
5
  multiple?: boolean;
@@ -1 +1 @@
1
- export * from './of-inst-num';
1
+ export * from './form-value';
@@ -1,5 +1,5 @@
1
1
  import { Doc, SubRenderer } from '../../../../core';
2
- import { TriggerName } from '../../../../utils/TriggerUtil';
2
+ import { TriggerName } from '../../../../utils/adapters/TriggerUtil';
3
3
  /** 变更子表条码解析规则(填报态) */
4
4
  export declare function changeBarcodeParseRule(options: {
5
5
  doc: Doc;
@@ -1,5 +1,5 @@
1
- import { ParseRuleProps } from '../../../../types/material.type';
2
- import { TriggerName } from '../../../../utils/TriggerUtil';
1
+ import { ParseRuleProps } from '../material/types';
2
+ import { TriggerName } from '../../../../utils/adapters/TriggerUtil';
3
3
  /** 将 widget 上的条码解析规则 id 字符串转为配置对象 */
4
4
  export declare function toParseRuleConfig(value?: string): ParseRuleProps | undefined;
5
5
  export interface ScanRuleInfo {
@@ -1,5 +1,5 @@
1
1
  import { Doc } from '../../../../../../core';
2
- import { IActionButtonItem } from '../../../../../../types/main.type';
2
+ import { IActionButtonItem } from '../../../../../../sdk/types';
3
3
  export declare const beforeBtnClick: (params: {
4
4
  btn: IActionButtonItem;
5
5
  }, doc: Doc) => Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { Doc } from '../../../../../../core';
2
2
  import { WarehouseInventoryScanAdjustType } from './scan-config';
3
- import { StocktakeStatusKey, IWarehouseInventoryRow } from '../../../../../../types/warehouse-inventory.type';
3
+ import { StocktakeStatusKey, IWarehouseInventoryRow } from '../types';
4
4
  /** 盘点状态 key 对应展示文案 */
5
5
  export declare function getStocktakeStatusLabel(key: StocktakeStatusKey): string;
6
6
  /** 计算差异数量 */