@devtable/dashboard 6.44.0 → 6.46.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/dashboard.es.js +5950 -5702
- package/dist/dashboard.umd.js +49 -48
- package/dist/main/switch-views/edit-view-modal/config-fields/{config.modal.d.ts → modal/index.d.ts} +0 -0
- package/dist/main/switch-views/edit-view-modal/config-fields/modal/modal-title-editor/function-editor.d.ts +8 -0
- package/dist/main/switch-views/edit-view-modal/config-fields/modal/modal-title-editor/index.d.ts +8 -0
- package/dist/main/switch-views/edit-view-modal/config-fields/modal/modal-title-editor/types.d.ts +8 -0
- package/dist/model/views/view/division.d.ts +24 -0
- package/dist/model/views/view/index.d.ts +100 -6
- package/dist/model/views/view/modal.d.ts +124 -0
- package/dist/types/dashboard.d.ts +1 -1
- package/dist/types/filter.d.ts +1 -0
- package/package.json +1 -1
package/dist/main/switch-views/edit-view-modal/config-fields/{config.modal.d.ts → modal/index.d.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ICustomModalTitleFunctionEditor {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (v: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const CustomModalTitleFunctionEditor: ({ disabled, value, onChange }: ICustomModalTitleFunctionEditor) => JSX.Element;
|
|
8
|
+
export {};
|
package/dist/main/switch-views/edit-view-modal/config-fields/modal/modal-title-editor/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ICustomModalTitle } from './types';
|
|
3
|
+
interface ICustomModalTitleField {
|
|
4
|
+
value: ICustomModalTitle;
|
|
5
|
+
onChange: (v: ICustomModalTitle) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const CustomModalTitleField: ({ value, onChange }: ICustomModalTitleField) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import { EViewComponentType } from '~/types';
|
|
3
|
+
export declare const ViewConfigModel_Division: import("mobx-state-tree").IModelType<{
|
|
4
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
5
|
+
}, {
|
|
6
|
+
readonly json: {
|
|
7
|
+
_name: EViewComponentType.Division;
|
|
8
|
+
};
|
|
9
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
10
|
+
export declare type IViewConfigModel_Division = Instance<typeof ViewConfigModel_Division>;
|
|
11
|
+
export declare type IViewConfigModel_DivisionIn = SnapshotIn<IViewConfigModel_Division>;
|
|
12
|
+
export declare const createViewConfig_Division: () => {
|
|
13
|
+
_name: EViewComponentType.Division;
|
|
14
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
15
|
+
readonly json: {
|
|
16
|
+
_name: EViewComponentType.Division;
|
|
17
|
+
};
|
|
18
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
19
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
20
|
+
}, {
|
|
21
|
+
readonly json: {
|
|
22
|
+
_name: EViewComponentType.Division;
|
|
23
|
+
};
|
|
24
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -3,8 +3,94 @@ import { EViewComponentType } from '~/types';
|
|
|
3
3
|
export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
4
4
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
5
|
name: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<
|
|
7
|
-
config: import("mobx-state-tree").
|
|
6
|
+
type: import("mobx-state-tree").ISimpleType<EViewComponentType>;
|
|
7
|
+
config: import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
8
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
9
|
+
}>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
10
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
11
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
12
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
13
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
14
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
15
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
16
|
+
}, {
|
|
17
|
+
readonly json: {
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
func_content: string;
|
|
20
|
+
};
|
|
21
|
+
readonly value: any;
|
|
22
|
+
} & {
|
|
23
|
+
setEnabled(v: boolean): void;
|
|
24
|
+
setFuncContent(v: string): void;
|
|
25
|
+
replace({ enabled, func_content }: {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
func_content: string;
|
|
28
|
+
}): void;
|
|
29
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
30
|
+
}>>, import("mobx-state-tree").ModelSnapshotType<{
|
|
31
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
32
|
+
}> | import("mobx-state-tree").ModelSnapshotType<{
|
|
33
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
34
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
35
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
36
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
37
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
38
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
39
|
+
}, {
|
|
40
|
+
readonly json: {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
func_content: string;
|
|
43
|
+
};
|
|
44
|
+
readonly value: any;
|
|
45
|
+
} & {
|
|
46
|
+
setEnabled(v: boolean): void;
|
|
47
|
+
setFuncContent(v: string): void;
|
|
48
|
+
replace({ enabled, func_content }: {
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
func_content: string;
|
|
51
|
+
}): void;
|
|
52
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
53
|
+
}>, import("mobx-state-tree").ModelInstanceType<{
|
|
54
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
|
|
55
|
+
}, {
|
|
56
|
+
readonly json: {
|
|
57
|
+
_name: EViewComponentType.Division;
|
|
58
|
+
};
|
|
59
|
+
}> | import("mobx-state-tree").ModelInstanceType<{
|
|
60
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
61
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
62
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
63
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
64
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
65
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
66
|
+
}, {
|
|
67
|
+
readonly json: {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
func_content: string;
|
|
70
|
+
};
|
|
71
|
+
readonly value: any;
|
|
72
|
+
} & {
|
|
73
|
+
setEnabled(v: boolean): void;
|
|
74
|
+
setFuncContent(v: string): void;
|
|
75
|
+
replace({ enabled, func_content }: {
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
func_content: string;
|
|
78
|
+
}): void;
|
|
79
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
80
|
+
}, {
|
|
81
|
+
readonly json: {
|
|
82
|
+
_name: EViewComponentType.Modal;
|
|
83
|
+
width: string;
|
|
84
|
+
height: string;
|
|
85
|
+
custom_modal_title: {
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
func_content: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
} & {
|
|
91
|
+
setWidth(v: string): void;
|
|
92
|
+
setHeight(v: string): void;
|
|
93
|
+
}>>;
|
|
8
94
|
panels: import("mobx-state-tree").IModelType<{
|
|
9
95
|
list: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
10
96
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -8087,8 +8173,18 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
8087
8173
|
readonly json: {
|
|
8088
8174
|
id: string;
|
|
8089
8175
|
name: string;
|
|
8090
|
-
type:
|
|
8091
|
-
config:
|
|
8176
|
+
type: EViewComponentType;
|
|
8177
|
+
config: {
|
|
8178
|
+
_name: EViewComponentType.Division;
|
|
8179
|
+
} | {
|
|
8180
|
+
_name: EViewComponentType.Modal;
|
|
8181
|
+
width: string;
|
|
8182
|
+
height: string;
|
|
8183
|
+
custom_modal_title: {
|
|
8184
|
+
enabled: boolean;
|
|
8185
|
+
func_content: string;
|
|
8186
|
+
};
|
|
8187
|
+
};
|
|
8092
8188
|
panels: {
|
|
8093
8189
|
id: string;
|
|
8094
8190
|
title: string;
|
|
@@ -8181,7 +8277,5 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
|
|
|
8181
8277
|
} & {
|
|
8182
8278
|
setName(name: string): void;
|
|
8183
8279
|
setType(type: EViewComponentType): void;
|
|
8184
|
-
setConfig(config: Record<string, any>): void;
|
|
8185
|
-
updateConfig(key: string, value: $TSFixMe): void;
|
|
8186
8280
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
8187
8281
|
export declare type ViewModelInstance = Instance<typeof ViewModel>;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
2
|
+
import { EViewComponentType } from '~/types';
|
|
3
|
+
export declare const ViewConfigModel_Modal: import("mobx-state-tree").IModelType<{
|
|
4
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
5
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
8
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
9
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
|
+
}, {
|
|
11
|
+
readonly json: {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
func_content: string;
|
|
14
|
+
};
|
|
15
|
+
readonly value: any;
|
|
16
|
+
} & {
|
|
17
|
+
setEnabled(v: boolean): void;
|
|
18
|
+
setFuncContent(v: string): void;
|
|
19
|
+
replace({ enabled, func_content }: {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
func_content: string;
|
|
22
|
+
}): void;
|
|
23
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
24
|
+
}, {
|
|
25
|
+
readonly json: {
|
|
26
|
+
_name: EViewComponentType.Modal;
|
|
27
|
+
width: string;
|
|
28
|
+
height: string;
|
|
29
|
+
custom_modal_title: {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
func_content: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} & {
|
|
35
|
+
setWidth(v: string): void;
|
|
36
|
+
setHeight(v: string): void;
|
|
37
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
38
|
+
export declare type IViewConfigModel_Modal = Instance<typeof ViewConfigModel_Modal>;
|
|
39
|
+
export declare type IViewConfigModel_ModalIn = SnapshotIn<IViewConfigModel_Modal>;
|
|
40
|
+
export declare const createViewConfig_Modal: () => {
|
|
41
|
+
_name: EViewComponentType.Modal;
|
|
42
|
+
width: string;
|
|
43
|
+
height: string;
|
|
44
|
+
custom_modal_title: {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
func_content: string;
|
|
47
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
48
|
+
readonly json: {
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
func_content: string;
|
|
51
|
+
};
|
|
52
|
+
readonly value: any;
|
|
53
|
+
} & {
|
|
54
|
+
setEnabled(v: boolean): void;
|
|
55
|
+
setFuncContent(v: string): void;
|
|
56
|
+
replace({ enabled, func_content }: {
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
func_content: string;
|
|
59
|
+
}): void;
|
|
60
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
61
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
62
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
|
+
}, {
|
|
64
|
+
readonly json: {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
func_content: string;
|
|
67
|
+
};
|
|
68
|
+
readonly value: any;
|
|
69
|
+
} & {
|
|
70
|
+
setEnabled(v: boolean): void;
|
|
71
|
+
setFuncContent(v: string): void;
|
|
72
|
+
replace({ enabled, func_content }: {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
func_content: string;
|
|
75
|
+
}): void;
|
|
76
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
77
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
78
|
+
readonly json: {
|
|
79
|
+
_name: EViewComponentType.Modal;
|
|
80
|
+
width: string;
|
|
81
|
+
height: string;
|
|
82
|
+
custom_modal_title: {
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
func_content: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
} & {
|
|
88
|
+
setWidth(v: string): void;
|
|
89
|
+
setHeight(v: string): void;
|
|
90
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
91
|
+
_name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
|
|
92
|
+
width: import("mobx-state-tree").ISimpleType<string>;
|
|
93
|
+
height: import("mobx-state-tree").ISimpleType<string>;
|
|
94
|
+
custom_modal_title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
95
|
+
enabled: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
96
|
+
func_content: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
97
|
+
}, {
|
|
98
|
+
readonly json: {
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
func_content: string;
|
|
101
|
+
};
|
|
102
|
+
readonly value: any;
|
|
103
|
+
} & {
|
|
104
|
+
setEnabled(v: boolean): void;
|
|
105
|
+
setFuncContent(v: string): void;
|
|
106
|
+
replace({ enabled, func_content }: {
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
func_content: string;
|
|
109
|
+
}): void;
|
|
110
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
111
|
+
}, {
|
|
112
|
+
readonly json: {
|
|
113
|
+
_name: EViewComponentType.Modal;
|
|
114
|
+
width: string;
|
|
115
|
+
height: string;
|
|
116
|
+
custom_modal_title: {
|
|
117
|
+
enabled: boolean;
|
|
118
|
+
func_content: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
} & {
|
|
122
|
+
setWidth(v: string): void;
|
|
123
|
+
setHeight(v: string): void;
|
|
124
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
package/dist/types/filter.d.ts
CHANGED