@gct-paas/word 0.2.14 → 0.2.15
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.
- package/dist/base/select/src/basic-select.vue.d.ts +3 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +1 -1
- package/dist/domain/table/business/warehouse/shared/inventory-scan-columns.d.ts +6 -0
- package/dist/index.es.js +359 -188
- package/dist/runtime/validation/merge.d.ts +2 -14
- package/dist/runtime/validation/state.d.ts +20 -3
- package/dist/runtime/validation/useFormValidator.d.ts +1 -1
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +2 -2
- package/dist/word.css +204 -213
- package/package.json +1 -1
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import { Doc } from '../../core';
|
|
2
1
|
import { ValidationCommentMap } from './state';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
rules: any[];
|
|
6
|
-
};
|
|
7
|
-
type ResolvePayload = (path: string) => PayloadLite | null;
|
|
8
|
-
/**
|
|
9
|
-
* 编辑时合并:更新 change/blur 规则结果,保留未修复的 manual 批注。
|
|
10
|
-
*
|
|
11
|
-
* blur/change 不会跑 manual(必填)。上下限等对空值会直接通过,
|
|
12
|
-
* 此时不能整路径 delete,否则会把必填批注清掉。
|
|
13
|
-
*/
|
|
14
|
-
export declare function mergeLiveValidation(doc: Doc, liveResult: ValidationCommentMap, livePaths: string[], resolvePayload: ResolvePayload): ValidationCommentMap;
|
|
15
|
-
export {};
|
|
2
|
+
/** manual 与业务结果独立追加;实时结果优先于展示快照,字段顺序由画布决定。 */
|
|
3
|
+
export declare function mergeValidationResults(interactive: ValidationCommentMap, display: ValidationCommentMap, business: ValidationCommentMap, manual?: ValidationCommentMap, orderedPaths?: string[]): ValidationCommentMap;
|
|
@@ -4,9 +4,25 @@ export type ValidationCommentMap = Record<string, Array<{
|
|
|
4
4
|
fieldValue: any;
|
|
5
5
|
message: string;
|
|
6
6
|
}>> | null;
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
7
|
+
type ValidationSource = 'interactive' | 'manual' | 'business' | 'display';
|
|
8
|
+
export type ValidationRun = {
|
|
9
|
+
isCurrent(source: ValidationSource): boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ValidationUpdate = Partial<Record<ValidationSource, ValidationCommentMap>> & {
|
|
12
|
+
validatedPaths?: string[];
|
|
13
|
+
eligiblePaths?: string[];
|
|
14
|
+
unresolvedManualPaths?: string[];
|
|
15
|
+
replaceInteractive?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** 等待 settle 的任务也属于当前会话,重置后不能重新创建旧结果。 */
|
|
18
|
+
export declare function captureValidationSession(doc: Doc): () => boolean;
|
|
19
|
+
/** 分来源控制异步写回;输入只更新实时结果,不取消提交的 manual / 业务结果。 */
|
|
20
|
+
export declare function beginValidationRun(doc: Doc, sources: ValidationSource[]): ValidationRun;
|
|
21
|
+
/** 只更新本轮拥有的来源和实际执行规则的字段。 */
|
|
22
|
+
export declare function applyValidationResults(doc: Doc, run: ValidationRun, update: ValidationUpdate): ValidationCommentMap;
|
|
23
|
+
/** 数据变化清理旧业务快照,不取消业务校验自身写回数据后的在途结果。 */
|
|
24
|
+
export declare function clearBusinessValidationComments(doc: Doc): void;
|
|
25
|
+
export declare function resetValidationState(doc: Doc): void;
|
|
10
26
|
export declare function pruneValidationComments(doc: Doc): void;
|
|
11
27
|
/** 按 runtimeValuePath 查找批注 map 的 key(兼容 message 内嵌 path) */
|
|
12
28
|
export declare function findValidationCommentKey(map: ValidationCommentMap, runtimeValuePath: string): string | null;
|
|
@@ -14,3 +30,4 @@ export declare function findValidationCommentKey(map: ValidationCommentMap, runt
|
|
|
14
30
|
export declare function hasFieldErrorHighlight(validationCommentMap: ValidationCommentMap, runtimeValuePath: string): boolean;
|
|
15
31
|
/** 将焦点落到首个异常字段,供提交后查看错误信息 */
|
|
16
32
|
export declare function focusFirstValidationComment(doc: Doc, map: ValidationCommentMap): void;
|
|
33
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Doc } from '../../core';
|
|
2
2
|
import { ValidationAdmissionMode } from './admission';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function clearBusinessValidation(doc: Doc): void;
|
|
4
4
|
export type ValidationRunMode = ValidationAdmissionMode;
|
|
5
5
|
/** 请求全量校验(编辑时按 trigger 过滤规则;按钮提交用 mode=all) */
|
|
6
6
|
export declare function requestFullValidation(doc: Doc, options?: {
|
package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ export interface IDisplayField {
|
|
|
7
7
|
name: string;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
10
|
+
/** 物料字段的设计端默认显示列。 */
|
|
11
11
|
export declare const DEFAULT_DISPLAY_FIELDS_MAP: Record<string, string[]>;
|
|
12
12
|
interface DefaultDisplayFieldConfig {
|
|
13
13
|
keys: string[];
|
|
14
14
|
unremovableKeys: string[];
|
|
15
15
|
}
|
|
16
|
-
export declare function getDefaultDisplayFieldConfig(
|
|
16
|
+
export declare function getDefaultDisplayFieldConfig(type?: string): DefaultDisplayFieldConfig;
|
|
17
17
|
/** 仅保留设备及批次类字段从历史搜索配置初始化显示列的行为。 */
|
|
18
18
|
export declare const retainsLegacyDisplayFields: (type?: string) => boolean;
|
|
19
19
|
export {};
|