@jt-home/mfe-components 1.0.59 → 1.0.60-beta.1
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/JtAttachmentPreview/index.cjs +2 -1
- package/dist/JtAttachmentPreview/index.mjs +6 -4
- package/dist/{index-D67nILVt.js → index-BdgCXrMw.js} +453 -667
- package/dist/index-DtqPcdZG.cjs +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +3171 -2615
- package/dist/style.css +1 -1
- package/dist/types/components/JtAttachmentPreview/index.d.ts +3 -3
- package/dist/types/components/JtAttachmentPreview/types.d.ts +6 -4
- package/dist/types/components/globalInfo/components/GlobalInfoGroup.vue.d.ts +9 -4
- package/dist/types/components/globalInfo/components/GlobalInfoLeftNav.vue.d.ts +29 -0
- package/dist/types/components/globalInfo/components/GlobalInfoSectionBlock.vue.d.ts +17 -12
- package/dist/types/components/globalInfo/components/GlobalInfoSectionOutlet.vue.d.ts +13 -0
- package/dist/types/components/globalInfo/components/GlobalInfoSections.vue.d.ts +9 -4
- package/dist/types/components/globalInfo/index.d.ts +6 -2
- package/dist/types/components/globalInfo/model/fieldUtils.d.ts +1 -1
- package/dist/types/components/globalInfo/model/fieldValidation.d.ts +19 -0
- package/dist/types/components/globalInfo/model/slotIdentity.d.ts +1 -1
- package/dist/types/components/globalInfo/model/types.d.ts +48 -1
- package/dist/types/components/globalInfo/model/valueListOptions.d.ts +4 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoAutoRenderer.vue.d.ts +50 -1
- package/dist/types/components/globalInfo/renderers/GlobalInfoFormRenderer.vue.d.ts +2 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoMultiFormRenderer.vue.d.ts +49 -0
- package/dist/types/components/globalInfo/renderers/optionPreload.d.ts +12 -2
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/main.d.ts +2 -1
- package/package.json +28 -26
- package/dist/JtAttachmentPreview/style.css +0 -1
- package/dist/index-DEbU13vV.cjs +0 -1
- package/dist/pdf-BmBuG7of.js +0 -18058
- package/dist/pdf-Da0bm_Ya.cjs +0 -55
- package/dist/pdf.worker.min-4PI-nNLo.js +0 -4
- package/dist/pdf.worker.min-BAJUPwg6.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type JtAttachmentPreviewMode = 'auto' | 'image' | 'pdf'
|
|
1
|
+
export type JtAttachmentPreviewMode = 'auto' | 'image' | 'pdf';
|
|
2
2
|
export interface JtAttachmentPreviewDownloadContext<Params = unknown> {
|
|
3
3
|
url: string;
|
|
4
4
|
name: string;
|
|
@@ -40,8 +40,6 @@ export interface JtAttachmentPreviewOptions {
|
|
|
40
40
|
download?: JtAttachmentPreviewDownloadHandler;
|
|
41
41
|
/** 弹窗层级。 */
|
|
42
42
|
zIndex?: number;
|
|
43
|
-
/** iframe sandbox 属性,不传则不限制 iframe。 */
|
|
44
|
-
sandbox?: string;
|
|
45
43
|
/** 按 Esc 时是否关闭弹窗。 */
|
|
46
44
|
closeOnPressEscape?: boolean;
|
|
47
45
|
/** 加载成功回调。 */
|
|
@@ -52,6 +50,7 @@ export interface JtAttachmentPreviewOptions {
|
|
|
52
50
|
onClose?: () => void;
|
|
53
51
|
}
|
|
54
52
|
export type JtAttachmentPreviewFileOptions = JtAttachmentPreviewOptions;
|
|
53
|
+
export type JtAttachmentPreviewResolveFileHandler<Params = unknown> = (params: Params) => JtAttachmentPreviewFileOptions | Promise<JtAttachmentPreviewFileOptions>;
|
|
55
54
|
export interface JtAttachmentPreviewRequestConfig<Params = unknown, Response = unknown, DownloadResponse = unknown> {
|
|
56
55
|
/** 根据业务参数请求文件信息。可以直接调用 axios、fetch 或项目内 request。 */
|
|
57
56
|
request: (params: Params) => Promise<Response>;
|
|
@@ -69,5 +68,8 @@ export interface JtAttachmentPreviewHandler {
|
|
|
69
68
|
export interface JtAttachmentPreviewService {
|
|
70
69
|
(options: string | JtAttachmentPreviewOptions): JtAttachmentPreviewHandler;
|
|
71
70
|
openByParams: <Params = unknown>(params: Params) => JtAttachmentPreviewHandler;
|
|
72
|
-
setup:
|
|
71
|
+
setup: {
|
|
72
|
+
<Params = unknown>(resolveFile: JtAttachmentPreviewResolveFileHandler<Params>): void;
|
|
73
|
+
<Params = unknown, Response = unknown, DownloadResponse = unknown>(config: JtAttachmentPreviewRequestConfig<Params, Response, DownloadResponse>): void;
|
|
74
|
+
};
|
|
73
75
|
}
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
state: GlobalInfoState;
|
|
6
6
|
actions: GlobalInfoActions;
|
|
7
7
|
index?: number;
|
|
8
|
+
loadOnVisible?: boolean;
|
|
8
9
|
renderConfig?: GlobalInfoRenderConfig;
|
|
9
10
|
};
|
|
10
11
|
declare var __VLS_1: {
|
|
@@ -57,18 +58,22 @@ declare var __VLS_1: {
|
|
|
57
58
|
handleCancel: () => void;
|
|
58
59
|
handleSave: () => Promise<unknown>;
|
|
59
60
|
}, __VLS_19: string, __VLS_20: {
|
|
61
|
+
field: import("../index.ts").GlobalInfoField;
|
|
60
62
|
section: import("../index.ts").GlobalInfoSection;
|
|
61
63
|
sectionView: import("../index.ts").GlobalInfoSection;
|
|
62
64
|
node: GlobalInfoNode | null | undefined;
|
|
63
65
|
editing: boolean;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
fields: import("../index.ts").GlobalInfoField[];
|
|
67
|
-
renderConfig: GlobalInfoRenderConfig | undefined;
|
|
66
|
+
modelValue: unknown;
|
|
67
|
+
value: unknown;
|
|
68
68
|
state: GlobalInfoState;
|
|
69
69
|
actions: GlobalInfoActions;
|
|
70
|
+
updateModelValue: (value: unknown) => void;
|
|
71
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
72
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
70
73
|
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
71
74
|
title?: string;
|
|
75
|
+
isEmpty?: boolean;
|
|
76
|
+
empty?: boolean;
|
|
72
77
|
isSelfSection?: boolean;
|
|
73
78
|
loading?: boolean;
|
|
74
79
|
error?: unknown;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GlobalInfoNode, GlobalInfoSection } from '../model/types';
|
|
2
|
+
type GlobalInfoLeftNavItem = GlobalInfoNode | GlobalInfoSection;
|
|
3
|
+
type GlobalInfoLeftNavItemMeta = {
|
|
4
|
+
key?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
time?: string;
|
|
7
|
+
tag?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
targetId?: string;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
items: GlobalInfoLeftNavItem[];
|
|
14
|
+
activeKey?: string;
|
|
15
|
+
mode: 'anchor' | 'timeline';
|
|
16
|
+
itemMeta?: (item: GlobalInfoLeftNavItem, index: number) => GlobalInfoLeftNavItemMeta;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
select: (item: GlobalInfoLeftNavItem, key: string) => any;
|
|
20
|
+
"update:activeKey": (key: string) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onSelect?: ((item: GlobalInfoLeftNavItem, key: string) => any) | undefined;
|
|
23
|
+
"onUpdate:activeKey"?: ((key: string) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
mode: "anchor" | "timeline";
|
|
26
|
+
activeKey: string;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
state: GlobalInfoState;
|
|
5
5
|
actions: GlobalInfoActions;
|
|
6
6
|
hideHeader?: boolean;
|
|
7
|
+
loadOnVisible?: boolean;
|
|
7
8
|
renderConfig?: GlobalInfoRenderConfig;
|
|
8
9
|
onEdit?: (section: GlobalInfoSection, node: GlobalInfoNode) => void | Promise<void>;
|
|
9
10
|
onCancel?: (section: GlobalInfoSection, node: GlobalInfoNode) => void | Promise<void>;
|
|
@@ -55,7 +56,7 @@ declare var __VLS_1: {
|
|
|
55
56
|
handleCancel?: () => Promise<void>;
|
|
56
57
|
handleAddTableRow?: () => void;
|
|
57
58
|
handleSave?: () => Promise<void>;
|
|
58
|
-
},
|
|
59
|
+
}, __VLS_44: {
|
|
59
60
|
section: GlobalInfoSection | null;
|
|
60
61
|
sectionView?: GlobalInfoSection | null;
|
|
61
62
|
node?: GlobalInfoNode | null;
|
|
@@ -78,7 +79,7 @@ declare var __VLS_1: {
|
|
|
78
79
|
handleCancel?: () => Promise<void>;
|
|
79
80
|
handleAddTableRow?: () => void;
|
|
80
81
|
handleSave?: () => Promise<void>;
|
|
81
|
-
},
|
|
82
|
+
}, __VLS_47: {
|
|
82
83
|
section: GlobalInfoSection | null;
|
|
83
84
|
sectionView?: GlobalInfoSection | null;
|
|
84
85
|
node?: GlobalInfoNode | null;
|
|
@@ -101,19 +102,23 @@ declare var __VLS_1: {
|
|
|
101
102
|
handleCancel?: () => Promise<void>;
|
|
102
103
|
handleAddTableRow?: () => void;
|
|
103
104
|
handleSave?: () => Promise<void>;
|
|
104
|
-
},
|
|
105
|
+
}, __VLS_65: string, __VLS_66: {
|
|
106
|
+
field: import("../index.ts").GlobalInfoField;
|
|
105
107
|
section: GlobalInfoSection;
|
|
106
108
|
sectionView: GlobalInfoSection;
|
|
107
109
|
node: GlobalInfoNode | null | undefined;
|
|
108
110
|
editing: boolean;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
fields: import("../index.ts").GlobalInfoField[];
|
|
112
|
-
renderConfig: GlobalInfoRenderConfig | undefined;
|
|
111
|
+
modelValue: unknown;
|
|
112
|
+
value: unknown;
|
|
113
113
|
state: GlobalInfoState;
|
|
114
114
|
actions: GlobalInfoActions;
|
|
115
|
+
updateModelValue: (value: unknown) => void;
|
|
116
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
117
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
115
118
|
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
116
119
|
title?: string;
|
|
120
|
+
isEmpty?: boolean;
|
|
121
|
+
empty?: boolean;
|
|
117
122
|
isSelfSection?: boolean;
|
|
118
123
|
loading?: boolean;
|
|
119
124
|
error?: unknown;
|
|
@@ -124,7 +129,7 @@ declare var __VLS_1: {
|
|
|
124
129
|
handleCancel?: () => Promise<void>;
|
|
125
130
|
handleAddTableRow?: () => void;
|
|
126
131
|
handleSave?: () => Promise<void>;
|
|
127
|
-
},
|
|
132
|
+
}, __VLS_69: {
|
|
128
133
|
section: GlobalInfoSection | null;
|
|
129
134
|
sectionView?: GlobalInfoSection | null;
|
|
130
135
|
node?: GlobalInfoNode | null;
|
|
@@ -149,17 +154,17 @@ declare var __VLS_1: {
|
|
|
149
154
|
handleSave?: () => Promise<void>;
|
|
150
155
|
};
|
|
151
156
|
type __VLS_Slots = {} & {
|
|
152
|
-
[K in NonNullable<typeof
|
|
157
|
+
[K in NonNullable<typeof __VLS_65>]?: (props: typeof __VLS_66) => any;
|
|
153
158
|
} & {
|
|
154
159
|
header?: (props: typeof __VLS_1) => any;
|
|
155
160
|
} & {
|
|
156
161
|
actions?: (props: typeof __VLS_3) => any;
|
|
157
162
|
} & {
|
|
158
|
-
loading?: (props: typeof
|
|
163
|
+
loading?: (props: typeof __VLS_44) => any;
|
|
159
164
|
} & {
|
|
160
|
-
empty?: (props: typeof
|
|
165
|
+
empty?: (props: typeof __VLS_47) => any;
|
|
161
166
|
} & {
|
|
162
|
-
empty?: (props: typeof
|
|
167
|
+
empty?: (props: typeof __VLS_69) => any;
|
|
163
168
|
};
|
|
164
169
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
165
170
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -18,9 +18,22 @@ declare var __VLS_2: string, __VLS_3: {
|
|
|
18
18
|
renderConfig: GlobalInfoRenderConfig | undefined;
|
|
19
19
|
state: GlobalInfoState;
|
|
20
20
|
actions: GlobalInfoActions;
|
|
21
|
+
}, __VLS_14: string, __VLS_15: {
|
|
22
|
+
field: import("../index.ts").GlobalInfoField;
|
|
23
|
+
section: GlobalInfoSection;
|
|
24
|
+
sectionView: GlobalInfoSection;
|
|
25
|
+
node: GlobalInfoNode | null | undefined;
|
|
26
|
+
editing: boolean;
|
|
27
|
+
modelValue: unknown;
|
|
28
|
+
value: unknown;
|
|
29
|
+
state: GlobalInfoState;
|
|
30
|
+
actions: GlobalInfoActions;
|
|
31
|
+
updateModelValue: (value: unknown) => void;
|
|
21
32
|
};
|
|
22
33
|
type __VLS_Slots = {} & {
|
|
23
34
|
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
35
|
+
} & {
|
|
36
|
+
[K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
|
|
24
37
|
};
|
|
25
38
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
39
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,6 +3,7 @@ type __VLS_Props = {
|
|
|
3
3
|
nodes: GlobalInfoNode[];
|
|
4
4
|
state: GlobalInfoState;
|
|
5
5
|
actions: GlobalInfoActions;
|
|
6
|
+
loadOnVisible?: boolean;
|
|
6
7
|
renderConfig?: GlobalInfoRenderConfig;
|
|
7
8
|
};
|
|
8
9
|
declare var __VLS_2: string, __VLS_3: {
|
|
@@ -22,18 +23,22 @@ declare var __VLS_2: string, __VLS_3: {
|
|
|
22
23
|
index: number;
|
|
23
24
|
isEmpty: boolean;
|
|
24
25
|
}, __VLS_15: string, __VLS_16: {
|
|
26
|
+
field: import("../index.ts").GlobalInfoField;
|
|
25
27
|
section: import("../index.ts").GlobalInfoSection;
|
|
26
28
|
sectionView: import("../index.ts").GlobalInfoSection;
|
|
27
29
|
node: GlobalInfoNode | null | undefined;
|
|
28
30
|
editing: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
fields: import("../index.ts").GlobalInfoField[];
|
|
32
|
-
renderConfig: GlobalInfoRenderConfig | undefined;
|
|
31
|
+
modelValue: unknown;
|
|
32
|
+
value: unknown;
|
|
33
33
|
state: GlobalInfoState;
|
|
34
34
|
actions: GlobalInfoActions;
|
|
35
|
+
updateModelValue: (value: unknown) => void;
|
|
36
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
37
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
35
38
|
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
36
39
|
title?: string;
|
|
40
|
+
isEmpty?: boolean;
|
|
41
|
+
empty?: boolean;
|
|
37
42
|
isSelfSection?: boolean;
|
|
38
43
|
loading?: boolean;
|
|
39
44
|
error?: unknown;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
export { default as GlobalInfoProvider } from './components/GlobalInfoProvider.vue';
|
|
2
2
|
export { default as GlobalInfoSections } from './components/GlobalInfoSections.vue';
|
|
3
3
|
export { default as GlobalInfoGroup } from './components/GlobalInfoGroup.vue';
|
|
4
|
+
export { default as GlobalInfoLeftNav } from './components/GlobalInfoLeftNav.vue';
|
|
4
5
|
export { default as GlobalInfoSectionBlock } from './components/GlobalInfoSectionBlock.vue';
|
|
5
6
|
export { default as GlobalInfoSectionOutlet } from './components/GlobalInfoSectionOutlet.vue';
|
|
6
7
|
export { default as GlobalInfoAutoRenderer } from './renderers/GlobalInfoAutoRenderer.vue';
|
|
7
8
|
export { default as GlobalInfoFormRenderer } from './renderers/GlobalInfoFormRenderer.vue';
|
|
9
|
+
export { default as GlobalInfoMultiFormRenderer } from './renderers/GlobalInfoMultiFormRenderer.vue';
|
|
8
10
|
export { default as GlobalInfoTableRenderer } from './renderers/GlobalInfoTableRenderer.vue';
|
|
9
11
|
export { default as GlobalInfoFieldControl } from './renderers/GlobalInfoFieldControl.vue';
|
|
10
12
|
export { default as GlobalInfoFieldValue } from './renderers/GlobalInfoFieldValue.vue';
|
|
11
13
|
export { default as GlobalInfoDeleteConfirm } from './renderers/GlobalInfoDeleteConfirm.vue';
|
|
12
14
|
export { useGlobalInfoController } from './controller/useGlobalInfoController';
|
|
13
|
-
export { buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, } from './model/adapter';
|
|
15
|
+
export { buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoOptions, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, } from './model/adapter';
|
|
16
|
+
export { getGlobalInfoFieldErrorKey, isGlobalInfoFieldRequired, resolveGlobalInfoFieldRequiredMessage, validateGlobalInfoRequiredFields, } from './model/fieldValidation';
|
|
17
|
+
export type { GlobalInfoRequiredFieldValidationResult, } from './model/fieldValidation';
|
|
14
18
|
export { DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './model/requiredInfoSetValidation';
|
|
15
|
-
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoExternalOperationParamsFormatter, GlobalInfoExternalOperationParamsFormatterContext, GlobalInfoField, GlobalInfoFieldBusinessChangeContext, GlobalInfoFieldBusinessChangeHandler, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRequestSource, GlobalInfoRequestType, GlobalInfoRequiredInfoSetEmptyMessage, GlobalInfoRequiredInfoSetEmptyMessageContext, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTableRowDeleteVisibleContext, GlobalInfoTableRowDeleteVisibleRule, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, } from './model/types';
|
|
19
|
+
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoBeforeSaveContext, GlobalInfoBeforeSaveHandler, GlobalInfoBeforeSaveResult, GlobalInfoDetailParams, GlobalInfoExternalOperationParamsFormatter, GlobalInfoExternalOperationParamsFormatterContext, GlobalInfoField, GlobalInfoFieldBusinessChangeContext, GlobalInfoFieldBusinessChangeHandler, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoFieldRequiredContext, GlobalInfoFieldRequiredRule, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRequestSource, GlobalInfoRequestType, GlobalInfoRequiredInfoSetEmptyMessage, GlobalInfoRequiredInfoSetEmptyMessageContext, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTableRowDeleteVisibleContext, GlobalInfoTableRowDeleteVisibleRule, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, } from './model/types';
|
|
@@ -42,7 +42,7 @@ export declare function normalizeGlobalInfoSelectValues(field: GlobalInfoField,
|
|
|
42
42
|
export declare function toGlobalInfoSelectModelValue(field: GlobalInfoField, value: GlobalInfoFieldValue): GlobalInfoFieldValue;
|
|
43
43
|
export declare function fromGlobalInfoSelectModelValue(field: GlobalInfoField, value: GlobalInfoFieldValue): GlobalInfoFieldValue;
|
|
44
44
|
export declare function toGlobalInfoBooleanValue(value: GlobalInfoFieldValue): boolean;
|
|
45
|
-
export declare function isGlobalInfoOptionValueMatched(option: Pick<GlobalInfoFieldOption, 'value' | 'raw'> & Partial<Pick<GlobalInfoFieldOption, 'code'
|
|
45
|
+
export declare function isGlobalInfoOptionValueMatched(option: Pick<GlobalInfoFieldOption, 'value' | 'raw'> & Partial<Pick<GlobalInfoFieldOption, 'code'>>, value: GlobalInfoFieldValue): boolean;
|
|
46
46
|
export declare function resolveGlobalInfoVisibleFields(fields: GlobalInfoField[], section?: GlobalInfoSection | null, config?: GlobalInfoRenderConfig, runtime?: GlobalInfoFieldVisibilityRuntime): GlobalInfoField[];
|
|
47
47
|
export declare function isGlobalInfoSequenceField(field: GlobalInfoField): boolean;
|
|
48
48
|
export declare function isGlobalInfoSeqNoField(field: GlobalInfoField): boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GlobalInfoField, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoSection } from './types';
|
|
2
|
+
export interface GlobalInfoRequiredFieldValidationResult {
|
|
3
|
+
/** 字段实例级错误表;表格字段使用 rowIndex:fieldCode 作为 key。 */
|
|
4
|
+
fieldErrors: Record<string, string>;
|
|
5
|
+
/** 第一个错误文案,供保存前直接阻断。 */
|
|
6
|
+
firstMessage: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function getGlobalInfoFieldErrorKey(field: GlobalInfoField, rowIndex?: number): string;
|
|
9
|
+
export declare function isGlobalInfoFieldRequired(field: GlobalInfoField, section: GlobalInfoSection, config: GlobalInfoRenderConfig | undefined, values: GlobalInfoRawRecord, runtime?: {
|
|
10
|
+
row?: GlobalInfoRawRecord;
|
|
11
|
+
rowIndex?: number;
|
|
12
|
+
rows?: GlobalInfoRawRecord[];
|
|
13
|
+
}): boolean;
|
|
14
|
+
export declare function resolveGlobalInfoFieldRequiredMessage(field: GlobalInfoField, section: GlobalInfoSection, config: GlobalInfoRenderConfig | undefined, values: GlobalInfoRawRecord, runtime?: {
|
|
15
|
+
row?: GlobalInfoRawRecord;
|
|
16
|
+
rowIndex?: number;
|
|
17
|
+
rows?: GlobalInfoRawRecord[];
|
|
18
|
+
}): string | null;
|
|
19
|
+
export declare function validateGlobalInfoRequiredFields(section: GlobalInfoSection, config?: GlobalInfoRenderConfig): GlobalInfoRequiredFieldValidationResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GlobalInfoNode, GlobalInfoSection } from './types';
|
|
2
2
|
type SlotRegistry = Record<string, unknown>;
|
|
3
3
|
export declare function getNodeSlotIdentity(node: Pick<GlobalInfoNode, 'code'>): string;
|
|
4
|
-
export declare function getSectionSlotIdentity(node: Pick<GlobalInfoNode, 'code'
|
|
4
|
+
export declare function getSectionSlotIdentity(node: Partial<Pick<GlobalInfoNode, 'code' | 'infSetId' | 'setId'>>, section?: Pick<GlobalInfoSection, 'code'> | null): string;
|
|
5
5
|
export declare function findGlobalInfoSlotName(slotMap: SlotRegistry, prefix: string, identity: string): string;
|
|
6
6
|
export {};
|
|
@@ -5,7 +5,7 @@ export type GlobalInfoPrimitive = string | number | boolean | null;
|
|
|
5
5
|
/** 字段值保持开放,文件、日期对象、自定义插槽值都可以透传。 */
|
|
6
6
|
export type GlobalInfoFieldValue = unknown;
|
|
7
7
|
/** 信息集最终渲染类型:表单、表格、文本、HTML、代码、多行、空态或文件。 */
|
|
8
|
-
export type GlobalInfoRenderType = 'form' | 'table' | 'text' | 'html' | 'code' | 'multi-row' | 'empty' | 'file';
|
|
8
|
+
export type GlobalInfoRenderType = 'form' | 'table' | 'multi-form' | 'text' | 'html' | 'code' | 'multi-row' | 'empty' | 'file';
|
|
9
9
|
/** 字段动态隐藏方法上下文,values 是当前表单或当前表格行的完整值。 */
|
|
10
10
|
export interface GlobalInfoFieldHiddenContext {
|
|
11
11
|
/** 当前字段定义。 */
|
|
@@ -86,12 +86,55 @@ export type GlobalInfoRequiredInfoSetEmptyMessageContext = {
|
|
|
86
86
|
infSetValues: GlobalInfoRawRecord[];
|
|
87
87
|
};
|
|
88
88
|
export type GlobalInfoRequiredInfoSetEmptyMessage = string | ((context: GlobalInfoRequiredInfoSetEmptyMessageContext) => string);
|
|
89
|
+
/** 字段级必填规则上下文,values 始终是当前表单或当前表格行的值。 */
|
|
90
|
+
export interface GlobalInfoFieldRequiredContext {
|
|
91
|
+
/** 当前字段定义。 */
|
|
92
|
+
field: GlobalInfoField;
|
|
93
|
+
/** 当前字段所属 section。 */
|
|
94
|
+
section: GlobalInfoSection;
|
|
95
|
+
/** 当前表单或表格行的所有字段值。 */
|
|
96
|
+
values: GlobalInfoRawRecord;
|
|
97
|
+
/** 当前字段值。 */
|
|
98
|
+
value: unknown;
|
|
99
|
+
/** 表格场景下的当前行数据,表单场景不传。 */
|
|
100
|
+
row?: GlobalInfoRawRecord;
|
|
101
|
+
/** 表格场景下的当前行下标,表单场景不传。 */
|
|
102
|
+
rowIndex?: number;
|
|
103
|
+
/** 表格场景下的完整 rows,表单场景不传。 */
|
|
104
|
+
rows?: GlobalInfoRawRecord[];
|
|
105
|
+
}
|
|
106
|
+
/** 返回 true 表示必填,返回字符串表示必填并使用该字符串作为错误文案。 */
|
|
107
|
+
export type GlobalInfoFieldRequiredRule = (context: GlobalInfoFieldRequiredContext) => boolean | string;
|
|
108
|
+
/** 保存前业务钩子上下文;payload 已经是即将提交给后端的数据。 */
|
|
109
|
+
export interface GlobalInfoBeforeSaveContext {
|
|
110
|
+
/** 当前保存的信息集。 */
|
|
111
|
+
section: GlobalInfoSection;
|
|
112
|
+
/** 当前归属节点。 */
|
|
113
|
+
node?: GlobalInfoNode | null;
|
|
114
|
+
/** 当前表单模型。 */
|
|
115
|
+
model: GlobalInfoRawRecord;
|
|
116
|
+
/** 当前表格行或表单单行数据。 */
|
|
117
|
+
rows: GlobalInfoRawRecord[];
|
|
118
|
+
/** 即将提交给后端的保存 payload。 */
|
|
119
|
+
payload: GlobalInfoUpdateParams;
|
|
120
|
+
/** 当前全局状态快照。 */
|
|
121
|
+
state: GlobalInfoState;
|
|
122
|
+
/** controller 动作集合。 */
|
|
123
|
+
actions: GlobalInfoActions;
|
|
124
|
+
}
|
|
125
|
+
export type GlobalInfoBeforeSaveResult = void | boolean | string | Error;
|
|
126
|
+
/** 保存前业务钩子;返回字符串、Error 或 false 时阻断保存。 */
|
|
127
|
+
export type GlobalInfoBeforeSaveHandler = (context: GlobalInfoBeforeSaveContext) => GlobalInfoBeforeSaveResult | Promise<GlobalInfoBeforeSaveResult>;
|
|
89
128
|
/** globalInfo 默认渲染器配置,字段隐藏只保留 hiddenRule 一种方式,避免多套规则互相覆盖。 */
|
|
90
129
|
export interface GlobalInfoRenderConfig {
|
|
91
130
|
/** 字段隐藏方法;字段值变化后 computed 会重新执行,返回 true 时隐藏当前字段。 */
|
|
92
131
|
hiddenRule?: GlobalInfoFieldHiddenRule;
|
|
132
|
+
/** 字段级动态必填规则;隐藏字段不会参与必填校验。 */
|
|
133
|
+
requiredRule?: GlobalInfoFieldRequiredRule;
|
|
93
134
|
/** 字段业务变更回调,用于把字段变更现场交给外部业务处理。 */
|
|
94
135
|
onFieldBusinessChange?: GlobalInfoFieldBusinessChangeHandler;
|
|
136
|
+
/** 保存前业务钩子;只负责阻断或放行,普通保存仍由 saveSection 继续执行。 */
|
|
137
|
+
onBeforeSave?: GlobalInfoBeforeSaveHandler;
|
|
95
138
|
/** 表格行删除按钮展示方法;返回 false 时只隐藏当前行删除入口。 */
|
|
96
139
|
rowDeleteVisibleRule?: GlobalInfoTableRowDeleteVisibleRule;
|
|
97
140
|
/** 信息集级必填为空时的提示文案;默认提示“信息集不能为空,最后一条数据不可删除”。 */
|
|
@@ -375,6 +418,8 @@ export interface GlobalInfoField {
|
|
|
375
418
|
placeholder?: string;
|
|
376
419
|
/** 静态或动态加载后的选项。 */
|
|
377
420
|
options?: GlobalInfoFieldOption[];
|
|
421
|
+
/** 信息集枚举来源类型:NOTRANS 不处理,REST 调接口,ENUMS 使用详情响应内联枚举。 */
|
|
422
|
+
valueListType?: string;
|
|
378
423
|
/** 字段动态接口描述,常用于级联下拉。 */
|
|
379
424
|
interface?: GlobalInfoApiOperation;
|
|
380
425
|
/** 当前字段变更后需要清空的字段 code 列表。 */
|
|
@@ -490,6 +535,8 @@ export interface GlobalInfoSectionStatus {
|
|
|
490
535
|
loaded: boolean;
|
|
491
536
|
/** 是否处于编辑态。 */
|
|
492
537
|
editing: boolean;
|
|
538
|
+
/** 字段实例级错误,key 为字段 code 或 rowIndex:fieldCode。 */
|
|
539
|
+
fieldErrors?: Record<string, string>;
|
|
493
540
|
}
|
|
494
541
|
/** 模板树适配后的返回结构。 */
|
|
495
542
|
export interface GlobalInfoTemplateResponse {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GlobalInfoField, GlobalInfoFieldOption, GlobalInfoRawRecord } from './types';
|
|
2
|
+
type NormalizeGlobalInfoOptions = (input: unknown) => GlobalInfoFieldOption[];
|
|
3
|
+
export declare function applyFieldValueListOptions(fields: GlobalInfoField[], _rawRows: unknown, sectionRecord: GlobalInfoRawRecord, normalizeOptions: NormalizeGlobalInfoOptions): GlobalInfoField[];
|
|
4
|
+
export {};
|
|
@@ -7,6 +7,55 @@ type __VLS_Props = {
|
|
|
7
7
|
actions: GlobalInfoActions;
|
|
8
8
|
renderConfig?: GlobalInfoRenderConfig;
|
|
9
9
|
};
|
|
10
|
-
declare
|
|
10
|
+
declare var __VLS_10: string, __VLS_11: {
|
|
11
|
+
field: import("../index.ts").GlobalInfoField;
|
|
12
|
+
section: GlobalInfoSection;
|
|
13
|
+
sectionView: GlobalInfoSection;
|
|
14
|
+
node: GlobalInfoNode | null | undefined;
|
|
15
|
+
row: import("../index.ts").GlobalInfoRawRecord;
|
|
16
|
+
rowIndex: number;
|
|
17
|
+
editing: boolean;
|
|
18
|
+
modelValue: unknown;
|
|
19
|
+
value: unknown;
|
|
20
|
+
state: GlobalInfoState;
|
|
21
|
+
actions: GlobalInfoActions;
|
|
22
|
+
updateModelValue: (value: unknown) => void;
|
|
23
|
+
}, __VLS_22: string, __VLS_23: {
|
|
24
|
+
field: import("../index.ts").GlobalInfoField;
|
|
25
|
+
section: GlobalInfoSection;
|
|
26
|
+
sectionView: GlobalInfoSection;
|
|
27
|
+
node: GlobalInfoNode | null | undefined;
|
|
28
|
+
editing: boolean;
|
|
29
|
+
modelValue: unknown;
|
|
30
|
+
value: unknown;
|
|
31
|
+
state: GlobalInfoState;
|
|
32
|
+
actions: GlobalInfoActions;
|
|
33
|
+
updateModelValue: (value: unknown) => void;
|
|
34
|
+
}, __VLS_34: string, __VLS_35: {
|
|
35
|
+
field: import("../index.ts").GlobalInfoField;
|
|
36
|
+
section: GlobalInfoSection;
|
|
37
|
+
sectionView: GlobalInfoSection;
|
|
38
|
+
node: GlobalInfoNode | null | undefined;
|
|
39
|
+
editing: boolean;
|
|
40
|
+
modelValue: unknown;
|
|
41
|
+
value: unknown;
|
|
42
|
+
state: GlobalInfoState;
|
|
43
|
+
actions: GlobalInfoActions;
|
|
44
|
+
updateModelValue: (value: unknown) => void;
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Slots = {} & {
|
|
47
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
48
|
+
} & {
|
|
49
|
+
[K in NonNullable<typeof __VLS_22>]?: (props: typeof __VLS_23) => any;
|
|
50
|
+
} & {
|
|
51
|
+
[K in NonNullable<typeof __VLS_34>]?: (props: typeof __VLS_35) => any;
|
|
52
|
+
};
|
|
53
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
55
|
declare const _default: typeof __VLS_export;
|
|
12
56
|
export default _default;
|
|
57
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -7,6 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
actions: GlobalInfoActions;
|
|
8
8
|
model?: GlobalInfoRawRecord;
|
|
9
9
|
onUpdateModel?: (model: GlobalInfoRawRecord) => void;
|
|
10
|
+
rowIndex?: number;
|
|
11
|
+
rows?: GlobalInfoRawRecord[];
|
|
10
12
|
renderConfig?: GlobalInfoRenderConfig;
|
|
11
13
|
};
|
|
12
14
|
declare var __VLS_16: string, __VLS_17: {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
section: GlobalInfoSection;
|
|
4
|
+
node?: GlobalInfoNode | null;
|
|
5
|
+
editing: boolean;
|
|
6
|
+
state: GlobalInfoState;
|
|
7
|
+
actions: GlobalInfoActions;
|
|
8
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
9
|
+
resolveRowSection?: (section: GlobalInfoSection, row: GlobalInfoRawRecord, rowIndex: number) => GlobalInfoSection;
|
|
10
|
+
onUpdateRows?: (rows: GlobalInfoRawRecord[], context: {
|
|
11
|
+
section: GlobalInfoSection;
|
|
12
|
+
rowIndex: number;
|
|
13
|
+
model: GlobalInfoRawRecord;
|
|
14
|
+
}) => void;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_1: {
|
|
17
|
+
section: GlobalInfoSection;
|
|
18
|
+
sourceSection: GlobalInfoSection;
|
|
19
|
+
row: GlobalInfoRawRecord;
|
|
20
|
+
rowIndex: number;
|
|
21
|
+
editing: boolean;
|
|
22
|
+
state: GlobalInfoState;
|
|
23
|
+
actions: GlobalInfoActions;
|
|
24
|
+
}, __VLS_11: string, __VLS_12: {
|
|
25
|
+
field: import("../index.ts").GlobalInfoField;
|
|
26
|
+
section: GlobalInfoSection;
|
|
27
|
+
sectionView: GlobalInfoSection;
|
|
28
|
+
node: GlobalInfoNode | null | undefined;
|
|
29
|
+
editing: boolean;
|
|
30
|
+
modelValue: unknown;
|
|
31
|
+
value: unknown;
|
|
32
|
+
state: GlobalInfoState;
|
|
33
|
+
actions: GlobalInfoActions;
|
|
34
|
+
updateModelValue: (value: unknown) => void;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Slots = {} & {
|
|
37
|
+
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
38
|
+
} & {
|
|
39
|
+
itemHeader?: (props: typeof __VLS_1) => any;
|
|
40
|
+
};
|
|
41
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import type { GlobalInfoField, GlobalInfoFieldOptionsLoadOptions, GlobalInfoRawRecord } from '../model/types.js';
|
|
2
|
+
export type InitPreloadFetchOptions = {
|
|
3
|
+
sectionKey: string;
|
|
4
|
+
fields: GlobalInfoField[];
|
|
5
|
+
model: GlobalInfoRawRecord;
|
|
6
|
+
rowKey?: string;
|
|
7
|
+
getCachedPreloadKey: (key: string) => string | undefined;
|
|
8
|
+
setCachedPreloadKey: (key: string, value: string) => void;
|
|
9
|
+
loadFieldOptions: (field: GlobalInfoField, options: GlobalInfoFieldOptionsLoadOptions, value: unknown) => Promise<void> | void;
|
|
10
|
+
};
|
|
2
11
|
export declare function isDynamicSelectField(field: GlobalInfoField): boolean;
|
|
3
|
-
export declare function buildFieldOptionsPreloadKey(sectionKey: string, field: Pick<GlobalInfoField, '
|
|
12
|
+
export declare function buildFieldOptionsPreloadKey(sectionKey: string, field: Pick<GlobalInfoField, 'code' | 'cascadeDependFields' | 'interface'>, model?: GlobalInfoRawRecord, rowKey?: string): string;
|
|
4
13
|
export declare function shouldReuseLoadedFieldOptions(field: Pick<GlobalInfoField, 'options' | 'cascadeDependFields' | 'interface'>, cachedPreloadKey: string | undefined, currentPreloadKey: string): boolean;
|
|
5
14
|
export declare function hasFieldOptionsSearchText(options?: GlobalInfoFieldOptionsLoadOptions): boolean;
|
|
6
|
-
export declare function isFieldOptionsDependentOnChangedField(targetField: Pick<GlobalInfoField, 'cascadeDependFields' | 'interface'>, changedField: Pick<GlobalInfoField, '
|
|
15
|
+
export declare function isFieldOptionsDependentOnChangedField(targetField: Pick<GlobalInfoField, 'cascadeDependFields' | 'interface'>, changedField: Pick<GlobalInfoField, 'code'>): boolean;
|
|
7
16
|
export declare function shouldPreloadDynamicSelectField(field: GlobalInfoField, value: unknown, editing: boolean): boolean;
|
|
8
17
|
export declare function resolveDynamicSelectPreloadValue(field: GlobalInfoField, model: GlobalInfoRawRecord): unknown;
|
|
9
18
|
export declare function getDynamicSelectPreloadOptions(field: GlobalInfoField, value: unknown): GlobalInfoFieldOptionsLoadOptions;
|
|
19
|
+
export declare function initPreloadFetch(options: InitPreloadFetchOptions): Promise<void>;
|
|
@@ -4,7 +4,7 @@ export { JtButton } from './JtButton/index';
|
|
|
4
4
|
export { JtAttachmentPreview, JtAttachmentPreviewByParams, setupJtAttachmentPreview, } from './JtAttachmentPreview/index';
|
|
5
5
|
export { JtCascader, JtDatePicker, JtFormItems, JtInput, JtSelect } from './form/index';
|
|
6
6
|
export { JtPageHeader } from './JtPageHeader/index';
|
|
7
|
-
export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, useGlobalInfoController, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './globalInfo/index';
|
|
7
|
+
export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoLeftNav, GlobalInfoMultiFormRenderer, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, useGlobalInfoController, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoOptions, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './globalInfo/index';
|
|
8
8
|
export type { JTCascaderFormItemConfig, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemCascaderOption, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JtOptionItem, } from './form/index';
|
|
9
9
|
export type { JtPageHeaderOperate, JtPageHeaderProps } from './JtPageHeader/index';
|
|
10
10
|
export type { JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, } from './JtAttachmentPreview/index';
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import './assets/styles/base.css';
|
|
2
|
+
import './components/JtAttachmentPreview/style.scss';
|
|
2
3
|
import type { App } from 'vue';
|
|
3
4
|
import type { LocaleOptions } from './locale';
|
|
4
5
|
export declare function install(app: App, options?: LocaleOptions): void;
|
|
5
6
|
export { getLocale as getJtLocale, installLocale, normalizeLocale, resetLocale as resetJtLocale, setLocale as setJtLocale, } from './locale';
|
|
6
7
|
export type { LocaleCode, LocaleOptions, LocaleSource, } from './locale';
|
|
7
|
-
export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, JtAttachmentPreview, JtAttachmentPreviewByParams, JtCascader, JtButton, JtCrudTable, JtDatePicker, JtFilterBar, JtFormItems, JtInput, JtPageHeader, JtPagination, JtSelect, JtTable, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, setupJtAttachmentPreview, useGlobalInfoController, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './components/index';
|
|
8
|
+
export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoLeftNav, GlobalInfoMultiFormRenderer, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, JtAttachmentPreview, JtAttachmentPreviewByParams, JtCascader, JtButton, JtCrudTable, JtDatePicker, JtFilterBar, JtFormItems, JtInput, JtPageHeader, JtPagination, JtSelect, JtTable, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoOptions, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, setupJtAttachmentPreview, useGlobalInfoController, DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE, validateGlobalInfoRequiredInfoSet, } from './components/index';
|
|
8
9
|
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoRequiredInfoSetEmptyMessage, GlobalInfoRequiredInfoSetEmptyMessageContext, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, JTCascaderFormItemConfig, JtCrudColumn, JtCrudOption, JtDicItem, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JTFormItemCascaderOption, JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, JtOptionItem, JtPageHeaderOperate, JtPageHeaderProps, JtPaginationData, JtSearchType, } from './components/index';
|