@jt-home/mfe-components 1.0.0
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/index.cjs +2 -0
- package/dist/index.mjs +3029 -0
- package/dist/style.css +1 -0
- package/dist/types/components/JtButton/index.d.ts +1 -0
- package/dist/types/components/JtButton/index.vue.d.ts +21 -0
- package/dist/types/components/JtPageHeader/index.d.ts +2 -0
- package/dist/types/components/JtPageHeader/index.vue.d.ts +25 -0
- package/dist/types/components/JtPageHeader/types.d.ts +31 -0
- package/dist/types/components/JtPagination/index.d.ts +2 -0
- package/dist/types/components/JtPagination/index.vue.d.ts +22 -0
- package/dist/types/components/JtPagination/types.d.ts +16 -0
- package/dist/types/components/form/JtFormItems.vue.d.ts +16 -0
- package/dist/types/components/form/index.d.ts +4 -0
- package/dist/types/components/form/item/JtCascader/index.d.ts +1 -0
- package/dist/types/components/form/item/JtCascader/index.vue.d.ts +29 -0
- package/dist/types/components/form/item/JtDatePicker/index.d.ts +1 -0
- package/dist/types/components/form/item/JtDatePicker/index.vue.d.ts +9 -0
- package/dist/types/components/form/item/JtInput/index.d.ts +1 -0
- package/dist/types/components/form/item/JtInput/index.vue.d.ts +35 -0
- package/dist/types/components/form/item/JtSelect/index.d.ts +2 -0
- package/dist/types/components/form/item/JtSelect/index.vue.d.ts +34 -0
- package/dist/types/components/form/item/JtSelect/types.d.ts +6 -0
- package/dist/types/components/form/item/index.d.ts +5 -0
- package/dist/types/components/form/types.d.ts +71 -0
- package/dist/types/components/globalInfo/components/GlobalInfoGroup.vue.d.ts +105 -0
- package/dist/types/components/globalInfo/components/GlobalInfoProvider.vue.d.ts +22 -0
- package/dist/types/components/globalInfo/components/GlobalInfoSectionBlock.vue.d.ts +165 -0
- package/dist/types/components/globalInfo/components/GlobalInfoSectionOutlet.vue.d.ts +31 -0
- package/dist/types/components/globalInfo/components/GlobalInfoSections.vue.d.ts +59 -0
- package/dist/types/components/globalInfo/components/GlobalInfoSlotErrorBoundary.vue.d.ts +36 -0
- package/dist/types/components/globalInfo/controller/useGlobalInfoController.d.ts +19 -0
- package/dist/types/components/globalInfo/index.d.ts +14 -0
- package/dist/types/components/globalInfo/model/adapter.d.ts +9 -0
- package/dist/types/components/globalInfo/model/fieldUtils.d.ts +11 -0
- package/dist/types/components/globalInfo/model/types.d.ts +558 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoAutoRenderer.vue.d.ts +11 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoDeleteConfirm.vue.d.ts +28 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoFieldControl.vue.d.ts +19 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoFieldValue.vue.d.ts +11 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoFormRenderer.vue.d.ts +34 -0
- package/dist/types/components/globalInfo/renderers/GlobalInfoTableRenderer.vue.d.ts +39 -0
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/table/JtCrudTable.vue.d.ts +288 -0
- package/dist/types/components/table/JtFilterBar.vue.d.ts +65 -0
- package/dist/types/components/table/JtPagination.vue.d.ts +22 -0
- package/dist/types/components/table/JtTable.vue.d.ts +27 -0
- package/dist/types/components/table/index.d.ts +5 -0
- package/dist/types/components/table/types.d.ts +134 -0
- package/dist/types/components/table/useSearchDisabled.d.ts +12 -0
- package/dist/types/main.d.ts +3 -0
- package/dist/types/utils/componentAttrs.d.ts +14 -0
- package/package.json +77 -0
- package/readme.md +671 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
node: GlobalInfoNode;
|
|
4
|
+
state: GlobalInfoState;
|
|
5
|
+
actions: GlobalInfoActions;
|
|
6
|
+
hideHeader?: boolean;
|
|
7
|
+
onEdit?: (section: GlobalInfoSection, node: GlobalInfoNode) => void | Promise<void>;
|
|
8
|
+
onCancel?: (section: GlobalInfoSection, node: GlobalInfoNode) => void | Promise<void>;
|
|
9
|
+
onSave?: (section: GlobalInfoSection, node: GlobalInfoNode) => unknown | Promise<unknown>;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {
|
|
12
|
+
section: GlobalInfoSection | null;
|
|
13
|
+
sectionView?: GlobalInfoSection | null;
|
|
14
|
+
node?: GlobalInfoNode | null;
|
|
15
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
16
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
17
|
+
title?: string;
|
|
18
|
+
editing: boolean;
|
|
19
|
+
isEmpty?: boolean;
|
|
20
|
+
empty?: boolean;
|
|
21
|
+
isSelfSection?: boolean;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
error?: unknown;
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
26
|
+
state?: GlobalInfoState;
|
|
27
|
+
actions?: GlobalInfoActions;
|
|
28
|
+
reload?: () => Promise<void>;
|
|
29
|
+
handleEdit?: () => Promise<void>;
|
|
30
|
+
handleCancel?: () => Promise<void>;
|
|
31
|
+
handleAddTableRow?: () => void;
|
|
32
|
+
handleSave?: () => Promise<void>;
|
|
33
|
+
}, __VLS_3: {
|
|
34
|
+
section: GlobalInfoSection | null;
|
|
35
|
+
sectionView?: GlobalInfoSection | null;
|
|
36
|
+
node?: GlobalInfoNode | null;
|
|
37
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
38
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
39
|
+
title?: string;
|
|
40
|
+
editing: boolean;
|
|
41
|
+
isEmpty?: boolean;
|
|
42
|
+
empty?: boolean;
|
|
43
|
+
isSelfSection?: boolean;
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
error?: unknown;
|
|
46
|
+
errorMessage?: string;
|
|
47
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
48
|
+
state?: GlobalInfoState;
|
|
49
|
+
actions?: GlobalInfoActions;
|
|
50
|
+
reload?: () => Promise<void>;
|
|
51
|
+
handleEdit?: () => Promise<void>;
|
|
52
|
+
handleCancel?: () => Promise<void>;
|
|
53
|
+
handleAddTableRow?: () => void;
|
|
54
|
+
handleSave?: () => Promise<void>;
|
|
55
|
+
}, __VLS_37: {
|
|
56
|
+
section: GlobalInfoSection | null;
|
|
57
|
+
sectionView?: GlobalInfoSection | null;
|
|
58
|
+
node?: GlobalInfoNode | null;
|
|
59
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
60
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
61
|
+
title?: string;
|
|
62
|
+
editing: boolean;
|
|
63
|
+
isEmpty?: boolean;
|
|
64
|
+
empty?: boolean;
|
|
65
|
+
isSelfSection?: boolean;
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
error?: unknown;
|
|
68
|
+
errorMessage?: string;
|
|
69
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
70
|
+
state?: GlobalInfoState;
|
|
71
|
+
actions?: GlobalInfoActions;
|
|
72
|
+
reload?: () => Promise<void>;
|
|
73
|
+
handleEdit?: () => Promise<void>;
|
|
74
|
+
handleCancel?: () => Promise<void>;
|
|
75
|
+
handleAddTableRow?: () => void;
|
|
76
|
+
handleSave?: () => Promise<void>;
|
|
77
|
+
}, __VLS_39: {
|
|
78
|
+
section: GlobalInfoSection | null;
|
|
79
|
+
sectionView?: GlobalInfoSection | null;
|
|
80
|
+
node?: GlobalInfoNode | null;
|
|
81
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
82
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
83
|
+
title?: string;
|
|
84
|
+
editing: boolean;
|
|
85
|
+
isEmpty?: boolean;
|
|
86
|
+
empty?: boolean;
|
|
87
|
+
isSelfSection?: boolean;
|
|
88
|
+
loading?: boolean;
|
|
89
|
+
error?: unknown;
|
|
90
|
+
errorMessage?: string;
|
|
91
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
92
|
+
state?: GlobalInfoState;
|
|
93
|
+
actions?: GlobalInfoActions;
|
|
94
|
+
reload?: () => Promise<void>;
|
|
95
|
+
handleEdit?: () => Promise<void>;
|
|
96
|
+
handleCancel?: () => Promise<void>;
|
|
97
|
+
handleAddTableRow?: () => void;
|
|
98
|
+
handleSave?: () => Promise<void>;
|
|
99
|
+
}, __VLS_57: string, __VLS_58: {
|
|
100
|
+
section: GlobalInfoSection;
|
|
101
|
+
sectionView: GlobalInfoSection;
|
|
102
|
+
node: GlobalInfoNode | null | undefined;
|
|
103
|
+
editing: boolean;
|
|
104
|
+
isEmpty: boolean;
|
|
105
|
+
empty: boolean;
|
|
106
|
+
fields: import("../index.ts").GlobalInfoField[];
|
|
107
|
+
state: GlobalInfoState;
|
|
108
|
+
actions: GlobalInfoActions;
|
|
109
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
110
|
+
title?: string;
|
|
111
|
+
isSelfSection?: boolean;
|
|
112
|
+
loading?: boolean;
|
|
113
|
+
error?: unknown;
|
|
114
|
+
errorMessage?: string;
|
|
115
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
116
|
+
reload?: () => Promise<void>;
|
|
117
|
+
handleEdit?: () => Promise<void>;
|
|
118
|
+
handleCancel?: () => Promise<void>;
|
|
119
|
+
handleAddTableRow?: () => void;
|
|
120
|
+
handleSave?: () => Promise<void>;
|
|
121
|
+
}, __VLS_61: {
|
|
122
|
+
section: GlobalInfoSection | null;
|
|
123
|
+
sectionView?: GlobalInfoSection | null;
|
|
124
|
+
node?: GlobalInfoNode | null;
|
|
125
|
+
fields?: import("../index.ts").GlobalInfoField[];
|
|
126
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
127
|
+
title?: string;
|
|
128
|
+
editing: boolean;
|
|
129
|
+
isEmpty?: boolean;
|
|
130
|
+
empty?: boolean;
|
|
131
|
+
isSelfSection?: boolean;
|
|
132
|
+
loading?: boolean;
|
|
133
|
+
error?: unknown;
|
|
134
|
+
errorMessage?: string;
|
|
135
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
136
|
+
state?: GlobalInfoState;
|
|
137
|
+
actions?: GlobalInfoActions;
|
|
138
|
+
reload?: () => Promise<void>;
|
|
139
|
+
handleEdit?: () => Promise<void>;
|
|
140
|
+
handleCancel?: () => Promise<void>;
|
|
141
|
+
handleAddTableRow?: () => void;
|
|
142
|
+
handleSave?: () => Promise<void>;
|
|
143
|
+
};
|
|
144
|
+
type __VLS_Slots = {} & {
|
|
145
|
+
[K in NonNullable<typeof __VLS_57>]?: (props: typeof __VLS_58) => any;
|
|
146
|
+
} & {
|
|
147
|
+
header?: (props: typeof __VLS_1) => any;
|
|
148
|
+
} & {
|
|
149
|
+
actions?: (props: typeof __VLS_3) => any;
|
|
150
|
+
} & {
|
|
151
|
+
loading?: (props: typeof __VLS_37) => any;
|
|
152
|
+
} & {
|
|
153
|
+
empty?: (props: typeof __VLS_39) => any;
|
|
154
|
+
} & {
|
|
155
|
+
empty?: (props: typeof __VLS_61) => any;
|
|
156
|
+
};
|
|
157
|
+
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>;
|
|
158
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
159
|
+
declare const _default: typeof __VLS_export;
|
|
160
|
+
export default _default;
|
|
161
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
162
|
+
new (): {
|
|
163
|
+
$slots: S;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoNode, 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
|
+
};
|
|
9
|
+
declare var __VLS_2: string, __VLS_3: {
|
|
10
|
+
section: GlobalInfoSection;
|
|
11
|
+
sectionView: GlobalInfoSection;
|
|
12
|
+
node: GlobalInfoNode | null | undefined;
|
|
13
|
+
editing: boolean;
|
|
14
|
+
isEmpty: boolean;
|
|
15
|
+
empty: boolean;
|
|
16
|
+
fields: import("../index.ts").GlobalInfoField[];
|
|
17
|
+
state: GlobalInfoState;
|
|
18
|
+
actions: GlobalInfoActions;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
22
|
+
};
|
|
23
|
+
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>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoState } from '../model/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
nodes: GlobalInfoNode[];
|
|
4
|
+
state: GlobalInfoState;
|
|
5
|
+
actions: GlobalInfoActions;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_2: string, __VLS_3: {
|
|
8
|
+
group: GlobalInfoNode;
|
|
9
|
+
children: GlobalInfoNode[];
|
|
10
|
+
state: GlobalInfoState;
|
|
11
|
+
actions: GlobalInfoActions;
|
|
12
|
+
index: number;
|
|
13
|
+
isEmpty: boolean;
|
|
14
|
+
}, __VLS_5: {
|
|
15
|
+
group: GlobalInfoNode;
|
|
16
|
+
children: GlobalInfoNode[];
|
|
17
|
+
state: GlobalInfoState;
|
|
18
|
+
actions: GlobalInfoActions;
|
|
19
|
+
index: number;
|
|
20
|
+
isEmpty: boolean;
|
|
21
|
+
}, __VLS_15: string, __VLS_16: {
|
|
22
|
+
section: import("../index.ts").GlobalInfoSection;
|
|
23
|
+
sectionView: import("../index.ts").GlobalInfoSection;
|
|
24
|
+
node: GlobalInfoNode | null | undefined;
|
|
25
|
+
editing: boolean;
|
|
26
|
+
isEmpty: boolean;
|
|
27
|
+
empty: boolean;
|
|
28
|
+
fields: import("../index.ts").GlobalInfoField[];
|
|
29
|
+
state: GlobalInfoState;
|
|
30
|
+
actions: GlobalInfoActions;
|
|
31
|
+
viewModel?: import("../index.ts").GlobalInfoViewModel;
|
|
32
|
+
title?: string;
|
|
33
|
+
isSelfSection?: boolean;
|
|
34
|
+
loading?: boolean;
|
|
35
|
+
error?: unknown;
|
|
36
|
+
errorMessage?: string;
|
|
37
|
+
sectionStatus?: import("../index.ts").GlobalInfoSectionStatus;
|
|
38
|
+
reload?: () => Promise<void>;
|
|
39
|
+
handleEdit?: () => Promise<void>;
|
|
40
|
+
handleCancel?: () => Promise<void>;
|
|
41
|
+
handleAddTableRow?: () => void;
|
|
42
|
+
handleSave?: () => Promise<void>;
|
|
43
|
+
};
|
|
44
|
+
type __VLS_Slots = {} & {
|
|
45
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
46
|
+
} & {
|
|
47
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
48
|
+
} & {
|
|
49
|
+
group?: (props: typeof __VLS_5) => any;
|
|
50
|
+
};
|
|
51
|
+
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>;
|
|
52
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 插槽错误边界。
|
|
3
|
+
*
|
|
4
|
+
* GlobalInfo 的页面级插槽由公共组件主动调用,如果插槽内部组件抛错,
|
|
5
|
+
* 这里负责把错误拦在当前 section 内:错误输出到控制台,页面显示 fallback。
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
boundaryKey: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
error: (_error: unknown) => true;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
boundaryKey: {
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
onError?: ((_error: unknown) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
label: string;
|
|
35
|
+
boundaryKey: string | number;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoSection, GlobalInfoSectionStatus, GlobalInfoService, GlobalInfoState, GlobalInfoViewModel } from '../model/types';
|
|
2
|
+
export interface UseGlobalInfoControllerOptions<TService extends GlobalInfoService = GlobalInfoService> {
|
|
3
|
+
service: TService;
|
|
4
|
+
adaptScene?: string;
|
|
5
|
+
emplid?: string | number;
|
|
6
|
+
autoLoad?: boolean;
|
|
7
|
+
initialActiveNodeKey?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useGlobalInfoController: <TService extends GlobalInfoService = GlobalInfoService>(options: UseGlobalInfoControllerOptions<TService>) => {
|
|
10
|
+
viewModel: import("vue").ShallowRef<GlobalInfoViewModel | null, GlobalInfoViewModel | null>;
|
|
11
|
+
nodes: import("vue").ShallowRef<GlobalInfoNode[], GlobalInfoNode[]>;
|
|
12
|
+
sections: import("vue").ComputedRef<GlobalInfoSection[]>;
|
|
13
|
+
sectionMap: import("vue").ShallowRef<Record<string, GlobalInfoSection>, Record<string, GlobalInfoSection>>;
|
|
14
|
+
sectionStatusMap: import("vue").ShallowRef<Record<string, GlobalInfoSectionStatus>, Record<string, GlobalInfoSectionStatus>>;
|
|
15
|
+
activeNode: import("vue").ShallowRef<GlobalInfoNode | null, GlobalInfoNode | null>;
|
|
16
|
+
activeSection: import("vue").ShallowRef<GlobalInfoSection | null, GlobalInfoSection | null>;
|
|
17
|
+
state: import("vue").ComputedRef<GlobalInfoState>;
|
|
18
|
+
actions: GlobalInfoActions;
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as GlobalInfoProvider } from './components/GlobalInfoProvider.vue';
|
|
2
|
+
export { default as GlobalInfoSections } from './components/GlobalInfoSections.vue';
|
|
3
|
+
export { default as GlobalInfoGroup } from './components/GlobalInfoGroup.vue';
|
|
4
|
+
export { default as GlobalInfoSectionBlock } from './components/GlobalInfoSectionBlock.vue';
|
|
5
|
+
export { default as GlobalInfoSectionOutlet } from './components/GlobalInfoSectionOutlet.vue';
|
|
6
|
+
export { default as GlobalInfoAutoRenderer } from './renderers/GlobalInfoAutoRenderer.vue';
|
|
7
|
+
export { default as GlobalInfoFormRenderer } from './renderers/GlobalInfoFormRenderer.vue';
|
|
8
|
+
export { default as GlobalInfoTableRenderer } from './renderers/GlobalInfoTableRenderer.vue';
|
|
9
|
+
export { default as GlobalInfoFieldControl } from './renderers/GlobalInfoFieldControl.vue';
|
|
10
|
+
export { default as GlobalInfoFieldValue } from './renderers/GlobalInfoFieldValue.vue';
|
|
11
|
+
export { default as GlobalInfoDeleteConfirm } from './renderers/GlobalInfoDeleteConfirm.vue';
|
|
12
|
+
export { useGlobalInfoController } from './controller/useGlobalInfoController';
|
|
13
|
+
export { buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, } from './model/adapter';
|
|
14
|
+
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, } from './model/types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GlobalInfoDetailParams, GlobalInfoFieldOption, GlobalInfoNode, GlobalInfoRenderType, GlobalInfoSection, GlobalInfoSetMark, GlobalInfoUpdateParams, GlobalInfoViewModel } from './types';
|
|
2
|
+
export declare function createEmptyGlobalInfoViewModel(raw?: unknown): GlobalInfoViewModel;
|
|
3
|
+
export declare function normalizeGlobalInfoTree(input: unknown): GlobalInfoViewModel;
|
|
4
|
+
export declare function mergeGlobalInfoChildren(nodes: GlobalInfoNode[], parentKey: string, children: GlobalInfoNode[]): GlobalInfoNode[];
|
|
5
|
+
export declare function normalizeGlobalInfoDetail(input: unknown, params?: GlobalInfoDetailParams, activeNode?: GlobalInfoNode | null): GlobalInfoViewModel;
|
|
6
|
+
export declare function resolveGlobalInfoRenderType(mark: Pick<GlobalInfoSetMark, 'htmlDisplay' | 'multRow'>): GlobalInfoRenderType;
|
|
7
|
+
export declare function buildGlobalInfoUpdatePayload(section: GlobalInfoSection, params?: GlobalInfoDetailParams): GlobalInfoUpdateParams;
|
|
8
|
+
export declare function isGlobalInfoNode(value: unknown): value is GlobalInfoNode;
|
|
9
|
+
export declare function normalizeGlobalInfoOptions(input: unknown): GlobalInfoFieldOption[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GlobalInfoField, GlobalInfoFieldValue } from './types';
|
|
2
|
+
export type GlobalInfoFieldControlKind = 'text' | 'textarea' | 'select' | 'date' | 'number' | 'switch' | 'file' | 'html' | 'code' | 'multi-row' | 'empty';
|
|
3
|
+
export type GlobalInfoFieldDisplayKind = 'text' | 'select' | 'switch' | 'file' | 'html' | 'code' | 'multi-row' | 'empty';
|
|
4
|
+
type GlobalInfoFieldKindSource = Pick<GlobalInfoField, 'type' | 'renderType'> & Partial<Pick<GlobalInfoField, 'fieldType'>>;
|
|
5
|
+
export declare function resolveGlobalInfoFieldControlKind(field: GlobalInfoFieldKindSource): GlobalInfoFieldControlKind;
|
|
6
|
+
export declare function resolveGlobalInfoFieldDisplayKind(field: GlobalInfoFieldKindSource): GlobalInfoFieldDisplayKind;
|
|
7
|
+
export declare function isEmptyGlobalInfoFieldValue(value: GlobalInfoFieldValue): boolean;
|
|
8
|
+
export declare function isGlobalInfoErrorValue(value: unknown): boolean;
|
|
9
|
+
export declare function formatGlobalInfoFieldValue(field: GlobalInfoField, value: GlobalInfoFieldValue, emptyText?: string): string;
|
|
10
|
+
export declare function toGlobalInfoBooleanValue(value: GlobalInfoFieldValue): boolean;
|
|
11
|
+
export {};
|