@devtable/settings-form 13.0.0 → 13.0.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.
@@ -1,8 +1,12 @@
1
1
  import { IStyles } from './styles';
2
- interface IAccountList {
3
- lang: string;
2
+ type Props = {
4
3
  styles?: IStyles;
5
- config: ISettingsFormConfig;
6
- }
7
- export declare function AccountList({ lang, styles, config }: IAccountList): import('./react/jsx-runtime').JSX.Element;
4
+ };
5
+ export declare const AccountList: {
6
+ (props: Props & {
7
+ lang: string;
8
+ config: ISettingsFormConfig;
9
+ }): import('./react/jsx-runtime').JSX.Element;
10
+ displayName: string;
11
+ };
8
12
  export {};
@@ -1,10 +1,14 @@
1
1
  import { ILoginResp } from '../../api-caller/account.typed';
2
2
  import { IStyles } from '../styles';
3
- interface ILogin {
4
- lang: string;
3
+ type Props = {
5
4
  styles?: IStyles;
6
- config: ISettingsFormConfig;
7
5
  onSuccess: (resp: ILoginResp) => void;
8
- }
9
- export declare function Login({ lang, styles, config, onSuccess }: ILogin): import('./react/jsx-runtime').JSX.Element;
6
+ };
7
+ export declare const Login: {
8
+ (props: Props & {
9
+ lang: string;
10
+ config: ISettingsFormConfig;
11
+ }): import('./react/jsx-runtime').JSX.Element;
12
+ displayName: string;
13
+ };
10
14
  export {};
@@ -1,8 +1,12 @@
1
1
  import { IStyles } from './styles';
2
- interface IAPIKeyList {
3
- lang: string;
2
+ type Props = {
4
3
  styles?: IStyles;
5
- config: ISettingsFormConfig;
6
- }
7
- export declare function APIKeyList({ lang, styles, config }: IAPIKeyList): import('./react/jsx-runtime').JSX.Element;
4
+ };
5
+ export declare const APIKeyList: {
6
+ (props: Props & {
7
+ lang: string;
8
+ config: ISettingsFormConfig;
9
+ }): import('./react/jsx-runtime').JSX.Element;
10
+ displayName: string;
11
+ };
8
12
  export {};
@@ -1,2 +1,3 @@
1
1
  export * from './minimal-mocaco-editor';
2
2
  export * from './submit-form-button';
3
+ export * from './with-entry';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type EntryProps = {
3
+ lang: string;
4
+ config: ISettingsFormConfig;
5
+ };
6
+ export declare function withEntry<T extends object>(displayName: string, Component: React.ComponentType<T>): {
7
+ (props: T & EntryProps): import('./react/jsx-runtime').JSX.Element;
8
+ displayName: string;
9
+ };
10
+ export {};
@@ -1,8 +1,12 @@
1
1
  import { IStyles } from './styles';
2
- interface IDataSourceList {
3
- lang: string;
2
+ type Props = {
4
3
  styles?: IStyles;
5
- config: ISettingsFormConfig;
6
- }
7
- export declare function DataSourceList({ lang, styles, config }: IDataSourceList): import('./react/jsx-runtime').JSX.Element;
4
+ };
5
+ export declare const DataSourceList: {
6
+ (props: Props & {
7
+ lang: string;
8
+ config: ISettingsFormConfig;
9
+ }): import('./react/jsx-runtime').JSX.Element;
10
+ displayName: string;
11
+ };
8
12
  export {};
@@ -1,134 +1,132 @@
1
1
  export declare const en: {
2
2
  translation: {
3
- settings: {
4
- datasource: {
5
- label: string;
6
- add: string;
7
- edit: string;
8
- connection_info: string;
9
- db: {
10
- host: string;
11
- port: string;
12
- username: string;
13
- password: string;
14
- database: string;
15
- permission_tip: string;
16
- };
17
- cant_edit: {
18
- db: string;
19
- preset: string;
20
- };
21
- delete: {
22
- title: string;
23
- hint: string;
24
- cant_delete_preset: string;
25
- };
26
- http: {
27
- base_url: string;
28
- processing: {
29
- pre: {
30
- label: string;
31
- description: string;
32
- };
33
- post: {
34
- label: string;
35
- description: string;
36
- };
37
- };
38
- };
39
- state: {
40
- adding: string;
41
- added: string;
42
- updating: string;
43
- updated: string;
44
- deleting: string;
45
- deleted: string;
46
- };
47
- };
48
- account: {
49
- label: string;
50
- add: string;
51
- edit: string;
52
- editing_xx: string;
3
+ datasource: {
4
+ label: string;
5
+ add: string;
6
+ edit: string;
7
+ connection_info: string;
8
+ db: {
9
+ host: string;
10
+ port: string;
53
11
  username: string;
54
- email: string;
55
12
  password: string;
56
- password_hint: string;
57
- new_password: string;
58
- reset_password: string;
59
- state: {
60
- adding: string;
61
- added: string;
62
- updating: string;
63
- updated: string;
64
- deleting: string;
65
- deleted: string;
66
- logging_in: string;
67
- logged_in: string;
68
- };
69
- delete: string;
13
+ database: string;
14
+ permission_tip: string;
70
15
  };
71
- global_sql_snippet: {
72
- label: string;
73
- add: string;
74
- edit: string;
75
- content: string;
76
- description: string;
77
- state: {
78
- adding: string;
79
- added: string;
80
- updating: string;
81
- updated: string;
82
- deleting: string;
83
- deleted: string;
84
- };
85
- delete: string;
16
+ cant_edit: {
17
+ db: string;
18
+ preset: string;
86
19
  };
87
- api_key: {
88
- label: string;
89
- add: string;
90
- edit: string;
91
- app_id: string;
92
- app_secret: string;
93
- state: {
94
- adding: string;
95
- added: string;
96
- updating: string;
97
- updated: string;
98
- deleting: string;
99
- deleted: string;
100
- };
101
- save: {
102
- title: string;
103
- warn: string;
104
- saved: string;
20
+ delete: {
21
+ title: string;
22
+ hint: string;
23
+ cant_delete_preset: string;
24
+ };
25
+ http: {
26
+ base_url: string;
27
+ processing: {
28
+ pre: {
29
+ label: string;
30
+ description: string;
31
+ };
32
+ post: {
33
+ label: string;
34
+ description: string;
35
+ };
105
36
  };
106
- delete: string;
107
37
  };
108
- role: {
109
- label: string;
38
+ state: {
39
+ adding: string;
40
+ added: string;
41
+ updating: string;
42
+ updated: string;
43
+ deleting: string;
44
+ deleted: string;
110
45
  };
111
- common: {
112
- type: string;
113
- name: string;
114
- name_placeholder: string;
115
- created_at: string;
116
- updated_at: string;
117
- state: {
118
- pending: string;
119
- successful: string;
120
- failed: string;
121
- };
122
- action: string;
123
- actions: {
124
- edit: string;
125
- delete: string;
126
- submit: string;
127
- reset_to_default: string;
128
- cancel: string;
129
- save: string;
130
- confirm: string;
131
- };
46
+ };
47
+ account: {
48
+ label: string;
49
+ add: string;
50
+ edit: string;
51
+ editing_xx: string;
52
+ username: string;
53
+ email: string;
54
+ password: string;
55
+ password_hint: string;
56
+ new_password: string;
57
+ reset_password: string;
58
+ state: {
59
+ adding: string;
60
+ added: string;
61
+ updating: string;
62
+ updated: string;
63
+ deleting: string;
64
+ deleted: string;
65
+ logging_in: string;
66
+ logged_in: string;
67
+ };
68
+ delete: string;
69
+ };
70
+ global_sql_snippet: {
71
+ label: string;
72
+ add: string;
73
+ edit: string;
74
+ content: string;
75
+ description: string;
76
+ state: {
77
+ adding: string;
78
+ added: string;
79
+ updating: string;
80
+ updated: string;
81
+ deleting: string;
82
+ deleted: string;
83
+ };
84
+ delete: string;
85
+ };
86
+ api_key: {
87
+ label: string;
88
+ add: string;
89
+ edit: string;
90
+ app_id: string;
91
+ app_secret: string;
92
+ state: {
93
+ adding: string;
94
+ added: string;
95
+ updating: string;
96
+ updated: string;
97
+ deleting: string;
98
+ deleted: string;
99
+ };
100
+ save: {
101
+ title: string;
102
+ warn: string;
103
+ saved: string;
104
+ };
105
+ delete: string;
106
+ };
107
+ role: {
108
+ label: string;
109
+ };
110
+ common: {
111
+ type: string;
112
+ name: string;
113
+ name_placeholder: string;
114
+ created_at: string;
115
+ updated_at: string;
116
+ state: {
117
+ pending: string;
118
+ successful: string;
119
+ failed: string;
120
+ };
121
+ action: string;
122
+ actions: {
123
+ edit: string;
124
+ delete: string;
125
+ submit: string;
126
+ reset_to_default: string;
127
+ cancel: string;
128
+ save: string;
129
+ confirm: string;
132
130
  };
133
131
  };
134
132
  };
@@ -1,2 +1,2 @@
1
- import i18n from 'i18next';
1
+ declare const i18n: import("i18next").i18n;
2
2
  export default i18n;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from './react';
2
+ export declare function I18nextContextProvider({ lang, children }: {
3
+ lang: string;
4
+ children: ReactNode;
5
+ }): import('./react/jsx-runtime').JSX.Element;
@@ -1,2 +1 @@
1
1
  export * from './i18n';
2
- export * from './useApplyLanguage';
@@ -1,134 +1,132 @@
1
1
  export declare const zh: {
2
2
  translation: {
3
- settings: {
4
- datasource: {
5
- label: string;
6
- add: string;
7
- edit: string;
8
- connection_info: string;
9
- db: {
10
- host: string;
11
- port: string;
12
- username: string;
13
- password: string;
14
- database: string;
15
- permission_tip: string;
16
- };
17
- cant_edit: {
18
- db: string;
19
- preset: string;
20
- };
21
- delete: {
22
- title: string;
23
- hint: string;
24
- cant_delete_preset: string;
25
- };
26
- http: {
27
- base_url: string;
28
- processing: {
29
- pre: {
30
- label: string;
31
- description: string;
32
- };
33
- post: {
34
- label: string;
35
- description: string;
36
- };
37
- };
38
- };
39
- state: {
40
- adding: string;
41
- added: string;
42
- updating: string;
43
- updated: string;
44
- deleting: string;
45
- deleted: string;
46
- };
47
- };
48
- account: {
49
- label: string;
50
- add: string;
51
- edit: string;
52
- editing_xx: string;
3
+ datasource: {
4
+ label: string;
5
+ add: string;
6
+ edit: string;
7
+ connection_info: string;
8
+ db: {
9
+ host: string;
10
+ port: string;
53
11
  username: string;
54
- email: string;
55
12
  password: string;
56
- password_hint: string;
57
- new_password: string;
58
- reset_password: string;
59
- state: {
60
- adding: string;
61
- added: string;
62
- updating: string;
63
- updated: string;
64
- deleting: string;
65
- deleted: string;
66
- logging_in: string;
67
- logged_in: string;
68
- };
69
- delete: string;
13
+ database: string;
14
+ permission_tip: string;
70
15
  };
71
- global_sql_snippet: {
72
- label: string;
73
- add: string;
74
- edit: string;
75
- content: string;
76
- description: string;
77
- state: {
78
- adding: string;
79
- added: string;
80
- updating: string;
81
- updated: string;
82
- deleting: string;
83
- deleted: string;
84
- };
85
- delete: string;
16
+ cant_edit: {
17
+ db: string;
18
+ preset: string;
86
19
  };
87
- api_key: {
88
- label: string;
89
- add: string;
90
- edit: string;
91
- app_id: string;
92
- app_secret: string;
93
- state: {
94
- adding: string;
95
- added: string;
96
- updating: string;
97
- updated: string;
98
- deleting: string;
99
- deleted: string;
100
- };
101
- save: {
102
- title: string;
103
- warn: string;
104
- saved: string;
20
+ delete: {
21
+ title: string;
22
+ hint: string;
23
+ cant_delete_preset: string;
24
+ };
25
+ http: {
26
+ base_url: string;
27
+ processing: {
28
+ pre: {
29
+ label: string;
30
+ description: string;
31
+ };
32
+ post: {
33
+ label: string;
34
+ description: string;
35
+ };
105
36
  };
106
- delete: string;
107
37
  };
108
- role: {
109
- label: string;
38
+ state: {
39
+ adding: string;
40
+ added: string;
41
+ updating: string;
42
+ updated: string;
43
+ deleting: string;
44
+ deleted: string;
110
45
  };
111
- common: {
112
- type: string;
113
- name: string;
114
- name_placeholder: string;
115
- created_at: string;
116
- updated_at: string;
117
- state: {
118
- pending: string;
119
- successful: string;
120
- failed: string;
121
- };
122
- action: string;
123
- actions: {
124
- edit: string;
125
- delete: string;
126
- submit: string;
127
- reset_to_default: string;
128
- cancel: string;
129
- save: string;
130
- confirm: string;
131
- };
46
+ };
47
+ account: {
48
+ label: string;
49
+ add: string;
50
+ edit: string;
51
+ editing_xx: string;
52
+ username: string;
53
+ email: string;
54
+ password: string;
55
+ password_hint: string;
56
+ new_password: string;
57
+ reset_password: string;
58
+ state: {
59
+ adding: string;
60
+ added: string;
61
+ updating: string;
62
+ updated: string;
63
+ deleting: string;
64
+ deleted: string;
65
+ logging_in: string;
66
+ logged_in: string;
67
+ };
68
+ delete: string;
69
+ };
70
+ global_sql_snippet: {
71
+ label: string;
72
+ add: string;
73
+ edit: string;
74
+ content: string;
75
+ description: string;
76
+ state: {
77
+ adding: string;
78
+ added: string;
79
+ updating: string;
80
+ updated: string;
81
+ deleting: string;
82
+ deleted: string;
83
+ };
84
+ delete: string;
85
+ };
86
+ api_key: {
87
+ label: string;
88
+ add: string;
89
+ edit: string;
90
+ app_id: string;
91
+ app_secret: string;
92
+ state: {
93
+ adding: string;
94
+ added: string;
95
+ updating: string;
96
+ updated: string;
97
+ deleting: string;
98
+ deleted: string;
99
+ };
100
+ save: {
101
+ title: string;
102
+ warn: string;
103
+ saved: string;
104
+ };
105
+ delete: string;
106
+ };
107
+ role: {
108
+ label: string;
109
+ };
110
+ common: {
111
+ type: string;
112
+ name: string;
113
+ name_placeholder: string;
114
+ created_at: string;
115
+ updated_at: string;
116
+ state: {
117
+ pending: string;
118
+ successful: string;
119
+ failed: string;
120
+ };
121
+ action: string;
122
+ actions: {
123
+ edit: string;
124
+ delete: string;
125
+ submit: string;
126
+ reset_to_default: string;
127
+ cancel: string;
128
+ save: string;
129
+ confirm: string;
132
130
  };
133
131
  };
134
132
  };
@@ -1,8 +1,12 @@
1
1
  import { IStyles } from './styles';
2
- interface ISQLSnippetList {
3
- lang: string;
2
+ type Props = {
4
3
  styles?: IStyles;
5
- config: ISettingsFormConfig;
6
- }
7
- export declare function SQLSnippetList({ lang, styles, config }: ISQLSnippetList): import('./react/jsx-runtime').JSX.Element;
4
+ };
5
+ export declare const SQLSnippetList: {
6
+ (props: Props & {
7
+ lang: string;
8
+ config: ISettingsFormConfig;
9
+ }): import('./react/jsx-runtime').JSX.Element;
10
+ displayName: string;
11
+ };
8
12
  export {};