@gct-paas/word 0.2.4 → 0.2.5-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.
- package/dist/assets/svgs/table/index.d.ts +1 -0
- package/dist/base/input/src/input-number.vue.d.ts +1 -0
- package/dist/base/modal/src/modal.type.d.ts +3 -1
- package/dist/base/utils/image-size-util.d.ts +5 -5
- package/dist/core/data/DataManager.d.ts +6 -1
- package/dist/core/data/enrichers/udi-enricher.d.ts +23 -0
- package/dist/core/data/types/runtime-config.d.ts +11 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -1
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +34 -0
- package/dist/core/view/Doc.d.ts +3 -0
- package/dist/domain/active/active-types.d.ts +2 -0
- package/dist/domain/constants/enum/signature.d.ts +14 -0
- package/dist/domain/document-rule/index.d.ts +3 -0
- package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +13 -0
- package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +19 -0
- package/dist/domain/document-rule/types.d.ts +50 -0
- package/dist/domain/field/field-type.d.ts +8 -0
- package/dist/domain/table/business/device/maintenance/index.d.ts +1 -0
- package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/maintenance/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/point-inspection/index.d.ts +1 -0
- package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +13 -0
- package/dist/domain/table/business/device/signature-lock.d.ts +26 -0
- package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/index.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +39 -0
- package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +4 -0
- package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +3 -0
- package/dist/domain/table/business/material/types.d.ts +2 -1
- package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +3 -0
- package/dist/domain/table/design/sub-model-matcher.d.ts +2 -0
- package/dist/domain/table/index.d.ts +2 -0
- package/dist/domain/table/registry.d.ts +1 -1
- package/dist/domain/table/runtime/table-runtime.d.ts +1 -0
- package/dist/domain/table/types.d.ts +10 -2
- package/dist/index.es.js +4877 -2221
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +10 -2
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +6 -0
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +5 -0
- package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +2 -0
- package/dist/runtime/renderer/dialogs/signature/logic.d.ts +3 -1
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +1 -0
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +17 -0
- package/dist/runtime/validation/useFormValidator.d.ts +4 -0
- package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +3 -0
- package/dist/sdk/types/index.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +8 -3
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +19 -0
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +16 -0
- package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +11 -0
- package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +34 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-node.vue.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +4 -0
- package/dist/word.css +600 -186
- package/package.json +1 -1
|
@@ -31,6 +31,8 @@ export declare class BomEntryValidator {
|
|
|
31
31
|
mainMaterialNo: string;
|
|
32
32
|
/** 物料消耗模式 */
|
|
33
33
|
noBomMode: boolean;
|
|
34
|
+
/** 自定义需求数量,由表格行手动填写 */
|
|
35
|
+
isCustomRequiredQty: boolean;
|
|
34
36
|
/** 该明细使用到的产品的id集合 */
|
|
35
37
|
productIds: string[];
|
|
36
38
|
/** 物料和code的映射 */
|
|
@@ -53,7 +55,9 @@ export declare class BomEntryValidator {
|
|
|
53
55
|
/** 表单实例的批次号 */
|
|
54
56
|
mainMaterialNo: string,
|
|
55
57
|
/** 物料消耗模式 */
|
|
56
|
-
noBomMode: boolean
|
|
58
|
+
noBomMode: boolean,
|
|
59
|
+
/** 自定义需求数量,由表格行手动填写 */
|
|
60
|
+
isCustomRequiredQty?: boolean);
|
|
57
61
|
/**
|
|
58
62
|
* 翻译物料的code
|
|
59
63
|
* @param productId
|
|
@@ -142,6 +146,8 @@ export declare class BomEntriesValidator {
|
|
|
142
146
|
mainMaterialNo: string;
|
|
143
147
|
/** 物料消耗模式 */
|
|
144
148
|
noBomMode: boolean;
|
|
149
|
+
/** 需求数量由表格行手动填写 */
|
|
150
|
+
isCustomRequiredQty: boolean;
|
|
145
151
|
bomEntryValidators: BomEntryValidator[];
|
|
146
152
|
constructor(entries: IBomEntry[],
|
|
147
153
|
/** 是否启用顺序投料 */
|
|
@@ -153,7 +159,9 @@ export declare class BomEntriesValidator {
|
|
|
153
159
|
/** 表单实例的批次号 */
|
|
154
160
|
mainMaterialNo: string,
|
|
155
161
|
/** 物料消耗模式 */
|
|
156
|
-
noBomMode: boolean
|
|
162
|
+
noBomMode: boolean,
|
|
163
|
+
/** 需求数量由表格行手动填写 */
|
|
164
|
+
isCustomRequiredQty?: boolean);
|
|
157
165
|
/** 当前批次/生产数量 */
|
|
158
166
|
get materialNoNum(): number;
|
|
159
167
|
/**
|
package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts
CHANGED
|
@@ -144,6 +144,12 @@ 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;
|
|
147
153
|
/** 错误信息 */
|
|
148
154
|
error(message: string): void;
|
|
149
155
|
/**
|
|
@@ -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
|
|
41
|
+
export declare function loadDataValuesByAutofillRules(record: Record<string, unknown> | null | undefined, autofillRules: any[], sourceValuePath: string, autofillEnabled?: boolean, doc?: Doc): Record<string, unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
message: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -7,6 +7,8 @@ export interface SignInfo {
|
|
|
7
7
|
historyId: string;
|
|
8
8
|
/** 签名用户姓名 */
|
|
9
9
|
username: string;
|
|
10
|
+
/** 签名图片方向 */
|
|
11
|
+
signatureImageDirection?: string;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* 通过账户密码获取签名图片
|
|
@@ -14,7 +16,7 @@ export interface SignInfo {
|
|
|
14
16
|
* @param {string} password
|
|
15
17
|
* @param {string} type
|
|
16
18
|
*/
|
|
17
|
-
export declare function getSignImgByAccount(username: string, password: string, type: string): Promise<SignInfo>;
|
|
19
|
+
export declare function getSignImgByAccount(username: string, password: string, type: string, signatureImageDirection?: string): Promise<SignInfo>;
|
|
18
20
|
/** 从接口异常中提取签名错误提示 */
|
|
19
21
|
export declare function getSignatureErrorMessage(error: unknown): string;
|
|
20
22
|
export declare function getSignWay(enableSignPassword: number): {
|
|
@@ -15,6 +15,7 @@ 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;
|
|
18
19
|
inputRef: HTMLInputElement;
|
|
19
20
|
}, HTMLDivElement>;
|
|
20
21
|
export default _default;
|
|
@@ -30,6 +30,7 @@ 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;
|
|
33
34
|
inputRef: HTMLInputElement;
|
|
34
35
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
35
36
|
P: {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const materialConsumeHistoryColumns: ({
|
|
2
|
+
field: string;
|
|
3
|
+
type: string;
|
|
4
|
+
minWidth: number;
|
|
5
|
+
width: number;
|
|
6
|
+
showOverflow: boolean;
|
|
7
|
+
} | {
|
|
8
|
+
title: string;
|
|
9
|
+
field: string;
|
|
10
|
+
minWidth: number;
|
|
11
|
+
formatter: ({ row }: any) => unknown;
|
|
12
|
+
} | {
|
|
13
|
+
title: string;
|
|
14
|
+
field: string;
|
|
15
|
+
minWidth: number;
|
|
16
|
+
formatter?: undefined;
|
|
17
|
+
})[];
|
|
@@ -12,6 +12,10 @@ 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>;
|
|
15
19
|
type ValidateOptions = {
|
|
16
20
|
/** 调用方已 settle 时可跳过,避免打开时重复等待 */
|
|
17
21
|
settle?: boolean;
|
|
@@ -20,6 +20,8 @@ export interface IDeviceConfig {
|
|
|
20
20
|
defaultOrgId: string | undefined;
|
|
21
21
|
/** 默认的登录账号 */
|
|
22
22
|
defaultLoginAccount?: string;
|
|
23
|
+
/** 默认的用户姓名(预览/兜底签名展示用) */
|
|
24
|
+
defaultUserName?: string;
|
|
23
25
|
/** 默认的物料查询条件 */
|
|
24
26
|
defaultProductSearchFields: string;
|
|
25
27
|
/** 是否启用人员字段 false: 不使用 true: 使用;先留着扩展,后续如果需要在字段列表过滤才使用 */
|
|
@@ -53,6 +53,8 @@ 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;
|
|
56
58
|
};
|
|
57
59
|
export declare const fileFieldDefaultProps: {
|
|
58
60
|
readonly imageDisplayMode: string;
|
|
@@ -16,6 +16,7 @@ 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;
|
|
19
20
|
'fixed-table.basic': import('../../..').PanelSchema;
|
|
20
21
|
'check-table.basic': import('../../..').PanelSchema;
|
|
21
22
|
'data-group.basic': {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const schema: import('../../../..').PanelSchema;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
5
|
click: () => any;
|
|
3
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
4
7
|
onClick?: (() => any) | undefined;
|
|
5
|
-
}>, {
|
|
8
|
+
}>, {
|
|
9
|
+
label: string;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
6
11
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DecisionRuleCondition } from '../types';
|
|
2
|
+
import { DecisionRuleFieldOption } from '../utils/decision-rule';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
condition: DecisionRuleCondition;
|
|
5
|
+
fields: DecisionRuleFieldOption[];
|
|
6
|
+
usedFieldValues: string[];
|
|
7
|
+
removable: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
remove: () => any;
|
|
12
|
+
add: () => any;
|
|
13
|
+
change: () => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onRemove?: (() => any) | undefined;
|
|
16
|
+
onAdd?: (() => any) | undefined;
|
|
17
|
+
onChange?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DecisionRuleGroup } from '../types';
|
|
2
|
+
import { DecisionRuleFieldOption } from '../utils/decision-rule';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
group: DecisionRuleGroup;
|
|
5
|
+
fields: DecisionRuleFieldOption[];
|
|
6
|
+
usedFieldValues: string[];
|
|
7
|
+
invalidKeys: Set<string>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
remove: () => any;
|
|
11
|
+
change: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onRemove?: (() => any) | undefined;
|
|
14
|
+
onChange?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Doc } from '../../../../../core';
|
|
2
|
+
import { InspectionDecisionRule } from '../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
item: InspectionDecisionRule;
|
|
5
|
+
doc: Doc;
|
|
6
|
+
};
|
|
7
|
+
declare function onSave(): Promise<InspectionDecisionRule | null>;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
onSave: typeof onSave;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Doc } from '../../../../../core';
|
|
2
|
+
import { InspectionDecisionRule } from '../types';
|
|
3
|
+
interface InspectionDecisionModalContext {
|
|
4
|
+
item: InspectionDecisionRule;
|
|
5
|
+
doc: Doc;
|
|
6
|
+
}
|
|
7
|
+
export declare function openInspectionDecisionModal(ctx: InspectionDecisionModalContext): Promise<InspectionDecisionRule | null>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
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';
|
|
2
4
|
export type UnitConversionFieldKey = 'sourceUnit' | 'targetUnit';
|
|
3
5
|
/** 字段映射行 */
|
|
4
6
|
export interface RuleFieldMap {
|
|
@@ -35,6 +37,7 @@ export interface BaseRuleItem {
|
|
|
35
37
|
}
|
|
36
38
|
export interface DocumentRulesConfig {
|
|
37
39
|
unitConversionRules: BaseRuleItem[];
|
|
40
|
+
inspectionDecisionRule: InspectionDecisionRule;
|
|
38
41
|
}
|
|
39
42
|
export type RulePanelRuleKind = 'barcodeParsing' | 'unitConversion';
|
|
40
43
|
export type RulePanelModalMode = 'create' | 'edit';
|
|
@@ -22,6 +22,12 @@ 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
|
+
};
|
|
25
31
|
}, DocumentRulesConfig | {
|
|
26
32
|
unitConversionRules: {
|
|
27
33
|
id: string;
|
|
@@ -44,5 +50,11 @@ export declare function useRulesConfig(): {
|
|
|
44
50
|
required?: boolean | undefined;
|
|
45
51
|
}[] | undefined;
|
|
46
52
|
}[];
|
|
53
|
+
inspectionDecisionRule: {
|
|
54
|
+
dataRuleEnabled: boolean;
|
|
55
|
+
dataRule: string;
|
|
56
|
+
dataRuleConfig: string;
|
|
57
|
+
prompt: string;
|
|
58
|
+
};
|
|
47
59
|
}>;
|
|
48
60
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Doc } from '../../../../../core';
|
|
2
|
+
import { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRightValue, InspectionDecisionRule } from '../types';
|
|
3
|
+
export declare const DECISION_RULE_FIELD_TYPES: Set<string>;
|
|
4
|
+
export declare const NUMBER_DECISION_FIELD_TYPES: Set<string>;
|
|
5
|
+
export declare const DECISION_RULE_OPERATORS: Record<'number' | 'enum' | 'boolean', Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}>>;
|
|
9
|
+
export interface DecisionRuleFieldOption extends DecisionRuleField {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
group: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
iconVersion?: 'v1' | 'v2';
|
|
15
|
+
}
|
|
16
|
+
/** 从编辑态字段选项中提取判定规则需要保存的字段信息。 */
|
|
17
|
+
export declare function toStoredDecisionRuleField(field: DecisionRuleField): DecisionRuleField;
|
|
18
|
+
/** 拉取并整理主表、子表、对象字段。 */
|
|
19
|
+
export declare function resolveDecisionRuleFields(doc: Doc): Promise<DecisionRuleFieldOption[]>;
|
|
20
|
+
export declare function getDecisionRuleOperators(type?: string): {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare function areDecisionFieldsCompatible(left?: DecisionRuleField, right?: DecisionRuleField): boolean;
|
|
25
|
+
export declare function createDecisionRuleCondition(pid: string, level: number): DecisionRuleCondition;
|
|
26
|
+
export declare function createDecisionRuleGroup(pid?: string, level?: number, withCondition?: boolean): DecisionRuleGroup;
|
|
27
|
+
export declare function parseDecisionRuleTree(dataRuleConfig?: string): DecisionRuleGroup;
|
|
28
|
+
/** 用最新元数据补齐历史 DataRulesContainer 配置缺少的 scope / 字段右值信息。 */
|
|
29
|
+
export declare function hydrateDecisionRuleTreeFields(root: DecisionRuleGroup, fields: DecisionRuleFieldOption[]): void;
|
|
30
|
+
export declare function getConditionQueryKey(condition: DecisionRuleCondition): string;
|
|
31
|
+
export declare function hasDecisionRuleValue(value?: DecisionRuleRightValue): boolean;
|
|
32
|
+
export declare function validateDecisionRuleTree(root: DecisionRuleGroup): Set<string>;
|
|
33
|
+
/** 生成与 DataRulesContainer 一致的条件查询数据。 */
|
|
34
|
+
export declare function serializeDecisionRule(root: DecisionRuleGroup, prompt: string, enabled?: boolean): InspectionDecisionRule;
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
modelValue?: string;
|
|
6
6
|
forceExpand?: boolean;
|
|
7
7
|
defaultExpanded?: boolean;
|
|
8
|
+
defaultExpandedValues?: string[];
|
|
8
9
|
groupOnlyExpand?: boolean;
|
|
9
10
|
highlightName?: (name?: string) => string;
|
|
10
11
|
};
|
|
@@ -14,6 +15,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
14
15
|
onSelect?: ((value: string, node: FieldTreeNodeType) => any) | undefined;
|
|
15
16
|
}>, {
|
|
16
17
|
defaultExpanded: boolean;
|
|
18
|
+
defaultExpandedValues: string[];
|
|
17
19
|
groupOnlyExpand: boolean;
|
|
18
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
21
|
export default _default;
|
package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ type __VLS_Props = {
|
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
popperWidth?: number;
|
|
7
7
|
defaultExpanded?: boolean;
|
|
8
|
+
defaultExpandedValues?: string[];
|
|
8
9
|
groupOnlyExpand?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
9
11
|
};
|
|
10
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
13
|
"update:modelValue": (value?: string | undefined) => any;
|
|
@@ -14,9 +16,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
14
16
|
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
15
17
|
onChange?: ((value?: string | undefined, node?: FieldTreeNodeType | undefined) => any) | undefined;
|
|
16
18
|
}>, {
|
|
19
|
+
disabled: boolean;
|
|
17
20
|
treeData: FieldTreeNodeType[];
|
|
18
21
|
placeholder: string;
|
|
19
22
|
defaultExpanded: boolean;
|
|
23
|
+
defaultExpandedValues: string[];
|
|
20
24
|
groupOnlyExpand: boolean;
|
|
21
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
26
|
rootRef: HTMLDivElement;
|