ketcher-react 2.9.0-rc.8 → 2.10.0-rc.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/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +726 -531
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +728 -533
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/Editor.d.ts +2 -1
- package/dist/script/editor/shared/closest.d.ts +3 -1
- package/dist/script/editor/tool/helper/dropAndMerge.d.ts +1 -6
- package/dist/script/editor/tool/select.d.ts +3 -1
- package/dist/script/editor/tool/template.d.ts +8 -1
- package/dist/script/ui/data/schema/struct-schema.d.ts +115 -98
- package/dist/script/ui/dialog/template/template-attach.d.ts +5 -0
- package/dist/script/ui/state/editor/index.d.ts +1 -1
- package/dist/script/ui/state/editor/utils/generateCommonProperties.d.ts +6 -0
- package/dist/script/ui/state/editor/utils/index.d.ts +1 -0
- package/dist/script/ui/state/modal/atoms.d.ts +0 -6
- package/dist/script/ui/state/modal/bonds.d.ts +6 -0
- package/dist/script/ui/state/modal/utils/index.d.ts +1 -0
- package/dist/script/ui/state/modal/utils/updateOnlyChangedProperties.d.ts +1 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/BoxWithLines.d.ts +1 -1
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts +3 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts +3 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenericGroups.d.ts +3 -2
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/ButtonGenSet.d.ts +25 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/components/ButtonGenSet/index.d.ts +16 -0
- package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -90,7 +90,8 @@ declare class Editor implements KetcherEditor {
|
|
|
90
90
|
findItem(event: any, maps: any, skip?: any): any;
|
|
91
91
|
findMerge(srcItems: any, maps: any): {
|
|
92
92
|
atoms: Map<number, number>;
|
|
93
|
-
bonds: Map<number, number
|
|
93
|
+
bonds: Map<number, number>;
|
|
94
|
+
atomToFunctionalGroup: Map<number, number> | null;
|
|
94
95
|
};
|
|
95
96
|
explicitSelected(): any;
|
|
96
97
|
structSelected(): Struct;
|
|
@@ -17,9 +17,11 @@ declare function findClosestItem(restruct: any, pos: any, maps: any, skip: any,
|
|
|
17
17
|
* @return {{
|
|
18
18
|
* atoms: Map<number, number>?
|
|
19
19
|
* bonds: Map<number, number>?
|
|
20
|
+
* atomToFunctionalGroup: Map<number, number>?
|
|
20
21
|
* }}
|
|
21
22
|
*/
|
|
22
23
|
declare function findCloseMerge(restruct: ReStruct, selected: object, maps: string[] | undefined, scale: number): {
|
|
23
24
|
atoms: Map<number, number>;
|
|
24
|
-
bonds: Map<number, number
|
|
25
|
+
bonds: Map<number, number>;
|
|
26
|
+
atomToFunctionalGroup: Map<number, number> | null;
|
|
25
27
|
};
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { Action } from 'ketcher-core';
|
|
2
2
|
import Editor from '../../Editor';
|
|
3
|
-
declare
|
|
4
|
-
atoms: Map<number, number>;
|
|
5
|
-
bonds: Map<number, number>;
|
|
6
|
-
};
|
|
7
|
-
export declare function dropAndMerge(editor: Editor, mergeItems: MergeItems, action?: Action, isPaste?: boolean): void;
|
|
8
|
-
export {};
|
|
3
|
+
export declare function dropAndMerge(editor: Editor, mergeItems: any, action?: Action): Action;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
import { ReSGroup, Atom } from 'ketcher-core';
|
|
16
|
+
import { ReSGroup, Atom, Bond } from 'ketcher-core';
|
|
17
17
|
import { Editor } from '../Editor';
|
|
18
18
|
declare class SelectTool {
|
|
19
19
|
#private;
|
|
@@ -34,5 +34,7 @@ declare class SelectTool {
|
|
|
34
34
|
}
|
|
35
35
|
export declare function selMerge(selection: any, add: any, reversible: boolean): any;
|
|
36
36
|
export declare function getSelectedAtoms(selection: any, molecule: any): Atom[];
|
|
37
|
+
export declare function getSelectedBonds(selection: any, molecule: any): Bond[];
|
|
37
38
|
export declare function mapAtomIdsToAtoms(atomsIds: number[], molecule: any): Atom[];
|
|
39
|
+
export declare function mapBondIdsToBonds(bondsIds: number[], molecule: any): Bond[];
|
|
38
40
|
export default SelectTool;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
import { FunctionalGroup, Struct } from 'ketcher-core';
|
|
16
17
|
import Editor from '../Editor';
|
|
17
18
|
declare type MergeItems = Record<string, Map<unknown, unknown>> | null;
|
|
18
19
|
declare class TemplateTool {
|
|
@@ -24,9 +25,15 @@ declare class TemplateTool {
|
|
|
24
25
|
dragCtx: any;
|
|
25
26
|
targetGroupsIds: Array<number>;
|
|
26
27
|
isSaltOrSolvent: boolean;
|
|
28
|
+
event: Event | undefined;
|
|
27
29
|
constructor(editor: Editor, tmpl: any);
|
|
28
|
-
|
|
30
|
+
get struct(): Struct;
|
|
31
|
+
get functionalGroups(): import("ketcher-core").Pool<FunctionalGroup>;
|
|
29
32
|
get isModeFunctionalGroup(): boolean;
|
|
33
|
+
get closestItem(): any;
|
|
34
|
+
get isNeedToShowRemoveAbbreviationPopup(): boolean;
|
|
35
|
+
findKeyOfRelatedGroupId(clickedClosestItemId: number): number;
|
|
36
|
+
showRemoveAbbreviationPopup(): Promise<void>;
|
|
30
37
|
mousedown(event: any): Promise<void>;
|
|
31
38
|
mousemove(event: any): boolean;
|
|
32
39
|
mouseup(event: any): boolean;
|
|
@@ -62,78 +62,86 @@ export namespace atom {
|
|
|
62
62
|
const _default_3: number;
|
|
63
63
|
export { _default_3 as default };
|
|
64
64
|
}
|
|
65
|
-
namespace
|
|
65
|
+
namespace cip {
|
|
66
66
|
const title_7: string;
|
|
67
67
|
export { title_7 as title };
|
|
68
|
-
const
|
|
68
|
+
const type_5: string;
|
|
69
|
+
export { type_5 as type };
|
|
70
|
+
const _enum_2: string[];
|
|
69
71
|
export { _enum_2 as enum };
|
|
72
|
+
}
|
|
73
|
+
namespace ringBondCount {
|
|
74
|
+
const title_8: string;
|
|
75
|
+
export { title_8 as title };
|
|
76
|
+
const _enum_3: number[];
|
|
77
|
+
export { _enum_3 as enum };
|
|
70
78
|
const enumNames_2: string[];
|
|
71
79
|
export { enumNames_2 as enumNames };
|
|
72
80
|
const _default_4: number;
|
|
73
81
|
export { _default_4 as default };
|
|
74
82
|
}
|
|
75
83
|
namespace hCount {
|
|
76
|
-
const
|
|
77
|
-
export {
|
|
78
|
-
const
|
|
79
|
-
export {
|
|
84
|
+
const title_9: string;
|
|
85
|
+
export { title_9 as title };
|
|
86
|
+
const _enum_4: number[];
|
|
87
|
+
export { _enum_4 as enum };
|
|
80
88
|
const enumNames_3: string[];
|
|
81
89
|
export { enumNames_3 as enumNames };
|
|
82
90
|
const _default_5: number;
|
|
83
91
|
export { _default_5 as default };
|
|
84
92
|
}
|
|
85
93
|
namespace substitutionCount {
|
|
86
|
-
const
|
|
87
|
-
export {
|
|
88
|
-
const
|
|
89
|
-
export {
|
|
94
|
+
const title_10: string;
|
|
95
|
+
export { title_10 as title };
|
|
96
|
+
const _enum_5: number[];
|
|
97
|
+
export { _enum_5 as enum };
|
|
90
98
|
const enumNames_4: string[];
|
|
91
99
|
export { enumNames_4 as enumNames };
|
|
92
100
|
const _default_6: number;
|
|
93
101
|
export { _default_6 as default };
|
|
94
102
|
}
|
|
95
103
|
namespace unsaturatedAtom {
|
|
96
|
-
const
|
|
97
|
-
export {
|
|
98
|
-
const
|
|
99
|
-
export {
|
|
104
|
+
const title_11: string;
|
|
105
|
+
export { title_11 as title };
|
|
106
|
+
const type_6: string;
|
|
107
|
+
export { type_6 as type };
|
|
100
108
|
const _default_7: boolean;
|
|
101
109
|
export { _default_7 as default };
|
|
102
110
|
}
|
|
103
111
|
namespace invRet {
|
|
104
|
-
const
|
|
105
|
-
export {
|
|
106
|
-
const
|
|
107
|
-
export {
|
|
112
|
+
const title_12: string;
|
|
113
|
+
export { title_12 as title };
|
|
114
|
+
const _enum_6: number[];
|
|
115
|
+
export { _enum_6 as enum };
|
|
108
116
|
const enumNames_5: string[];
|
|
109
117
|
export { enumNames_5 as enumNames };
|
|
110
118
|
const _default_8: number;
|
|
111
119
|
export { _default_8 as default };
|
|
112
120
|
}
|
|
113
121
|
namespace exactChangeFlag {
|
|
114
|
-
const
|
|
115
|
-
export {
|
|
116
|
-
const
|
|
117
|
-
export {
|
|
122
|
+
const title_13: string;
|
|
123
|
+
export { title_13 as title };
|
|
124
|
+
const type_7: string;
|
|
125
|
+
export { type_7 as type };
|
|
118
126
|
const _default_9: boolean;
|
|
119
127
|
export { _default_9 as default };
|
|
120
128
|
}
|
|
121
129
|
}
|
|
122
130
|
}
|
|
123
131
|
export namespace rgroupSchema {
|
|
124
|
-
const
|
|
125
|
-
export {
|
|
126
|
-
const
|
|
127
|
-
export {
|
|
132
|
+
const title_14: string;
|
|
133
|
+
export { title_14 as title };
|
|
134
|
+
const type_8: string;
|
|
135
|
+
export { type_8 as type };
|
|
128
136
|
export namespace properties_1 {
|
|
129
137
|
namespace values {
|
|
130
|
-
const
|
|
131
|
-
export {
|
|
138
|
+
const type_9: string;
|
|
139
|
+
export { type_9 as type };
|
|
132
140
|
export namespace items {
|
|
133
|
-
const
|
|
134
|
-
export {
|
|
135
|
-
const
|
|
136
|
-
export {
|
|
141
|
+
const type_10: string;
|
|
142
|
+
export { type_10 as type };
|
|
143
|
+
const _enum_7: number[];
|
|
144
|
+
export { _enum_7 as enum };
|
|
137
145
|
const enumNames_6: string[];
|
|
138
146
|
export { enumNames_6 as enumNames };
|
|
139
147
|
}
|
|
@@ -142,154 +150,163 @@ export namespace rgroupSchema {
|
|
|
142
150
|
export { properties_1 as properties };
|
|
143
151
|
}
|
|
144
152
|
export namespace labelEdit {
|
|
145
|
-
const
|
|
146
|
-
export {
|
|
147
|
-
const
|
|
148
|
-
export {
|
|
153
|
+
const title_15: string;
|
|
154
|
+
export { title_15 as title };
|
|
155
|
+
const type_11: string;
|
|
156
|
+
export { type_11 as type };
|
|
149
157
|
const required_1: string[];
|
|
150
158
|
export { required_1 as required };
|
|
151
159
|
export namespace properties_2 {
|
|
152
160
|
export namespace label_1 {
|
|
153
|
-
const
|
|
154
|
-
export {
|
|
161
|
+
const title_16: string;
|
|
162
|
+
export { title_16 as title };
|
|
155
163
|
const _default_10: string;
|
|
156
164
|
export { _default_10 as default };
|
|
157
165
|
const invalidMessage_4: string;
|
|
158
166
|
export { invalidMessage_4 as invalidMessage };
|
|
159
|
-
const
|
|
160
|
-
export {
|
|
167
|
+
const type_12: string;
|
|
168
|
+
export { type_12 as type };
|
|
161
169
|
}
|
|
162
170
|
export { label_1 as label };
|
|
163
171
|
}
|
|
164
172
|
export { properties_2 as properties };
|
|
165
173
|
}
|
|
166
174
|
export namespace attachmentPoints {
|
|
167
|
-
const
|
|
168
|
-
export {
|
|
169
|
-
const
|
|
170
|
-
export {
|
|
175
|
+
const title_17: string;
|
|
176
|
+
export { title_17 as title };
|
|
177
|
+
const type_13: string;
|
|
178
|
+
export { type_13 as type };
|
|
171
179
|
export namespace properties_3 {
|
|
172
180
|
namespace primary {
|
|
173
|
-
const title_17: string;
|
|
174
|
-
export { title_17 as title };
|
|
175
|
-
const type_13: string;
|
|
176
|
-
export { type_13 as type };
|
|
177
|
-
}
|
|
178
|
-
namespace secondary {
|
|
179
181
|
const title_18: string;
|
|
180
182
|
export { title_18 as title };
|
|
181
183
|
const type_14: string;
|
|
182
184
|
export { type_14 as type };
|
|
183
185
|
}
|
|
186
|
+
namespace secondary {
|
|
187
|
+
const title_19: string;
|
|
188
|
+
export { title_19 as title };
|
|
189
|
+
const type_15: string;
|
|
190
|
+
export { type_15 as type };
|
|
191
|
+
}
|
|
184
192
|
}
|
|
185
193
|
export { properties_3 as properties };
|
|
186
194
|
}
|
|
187
195
|
export namespace bond {
|
|
188
|
-
const
|
|
189
|
-
export {
|
|
190
|
-
const
|
|
191
|
-
export {
|
|
196
|
+
const title_20: string;
|
|
197
|
+
export { title_20 as title };
|
|
198
|
+
const type_16: string;
|
|
199
|
+
export { type_16 as type };
|
|
192
200
|
const required_2: string[];
|
|
193
201
|
export { required_2 as required };
|
|
194
202
|
export namespace properties_4 {
|
|
195
|
-
export namespace
|
|
196
|
-
const
|
|
197
|
-
export {
|
|
198
|
-
const
|
|
199
|
-
export {
|
|
203
|
+
export namespace type_17 {
|
|
204
|
+
const title_21: string;
|
|
205
|
+
export { title_21 as title };
|
|
206
|
+
const _enum_8: string[];
|
|
207
|
+
export { _enum_8 as enum };
|
|
200
208
|
const enumNames_7: string[];
|
|
201
209
|
export { enumNames_7 as enumNames };
|
|
202
210
|
const _default_11: string;
|
|
203
211
|
export { _default_11 as default };
|
|
204
212
|
}
|
|
205
|
-
export {
|
|
213
|
+
export { type_17 as type };
|
|
206
214
|
export namespace topology {
|
|
207
|
-
const
|
|
208
|
-
export {
|
|
209
|
-
const
|
|
210
|
-
export {
|
|
215
|
+
const title_22: string;
|
|
216
|
+
export { title_22 as title };
|
|
217
|
+
const _enum_9: number[];
|
|
218
|
+
export { _enum_9 as enum };
|
|
211
219
|
const enumNames_8: string[];
|
|
212
220
|
export { enumNames_8 as enumNames };
|
|
213
221
|
const _default_12: number;
|
|
214
222
|
export { _default_12 as default };
|
|
215
223
|
}
|
|
216
224
|
export namespace center {
|
|
217
|
-
const
|
|
218
|
-
export {
|
|
219
|
-
const
|
|
220
|
-
export {
|
|
225
|
+
const title_23: string;
|
|
226
|
+
export { title_23 as title };
|
|
227
|
+
const _enum_10: number[];
|
|
228
|
+
export { _enum_10 as enum };
|
|
221
229
|
const enumNames_9: string[];
|
|
222
230
|
export { enumNames_9 as enumNames };
|
|
223
231
|
const _default_13: number;
|
|
224
232
|
export { _default_13 as default };
|
|
225
233
|
}
|
|
234
|
+
export namespace cip_1 {
|
|
235
|
+
const title_24: string;
|
|
236
|
+
export { title_24 as title };
|
|
237
|
+
const type_18: string;
|
|
238
|
+
export { type_18 as type };
|
|
239
|
+
const _enum_11: string[];
|
|
240
|
+
export { _enum_11 as enum };
|
|
241
|
+
}
|
|
242
|
+
export { cip_1 as cip };
|
|
226
243
|
}
|
|
227
244
|
export { properties_4 as properties };
|
|
228
245
|
}
|
|
229
246
|
export const sgroupMap: any;
|
|
230
247
|
export namespace rgroupLogic {
|
|
231
|
-
const
|
|
232
|
-
export {
|
|
233
|
-
const
|
|
234
|
-
export {
|
|
248
|
+
const title_25: string;
|
|
249
|
+
export { title_25 as title };
|
|
250
|
+
const type_19: string;
|
|
251
|
+
export { type_19 as type };
|
|
235
252
|
export namespace properties_5 {
|
|
236
253
|
namespace range {
|
|
237
|
-
const
|
|
238
|
-
export {
|
|
239
|
-
const
|
|
240
|
-
export {
|
|
254
|
+
const title_26: string;
|
|
255
|
+
export { title_26 as title };
|
|
256
|
+
const type_20: string;
|
|
257
|
+
export { type_20 as type };
|
|
241
258
|
const maxLength_2: number;
|
|
242
259
|
export { maxLength_2 as maxLength };
|
|
243
260
|
const invalidMessage_5: string;
|
|
244
261
|
export { invalidMessage_5 as invalidMessage };
|
|
245
262
|
}
|
|
246
263
|
namespace resth {
|
|
247
|
-
const
|
|
248
|
-
export {
|
|
249
|
-
const
|
|
250
|
-
export {
|
|
264
|
+
const title_27: string;
|
|
265
|
+
export { title_27 as title };
|
|
266
|
+
const type_21: string;
|
|
267
|
+
export { type_21 as type };
|
|
251
268
|
}
|
|
252
269
|
namespace ifthen {
|
|
253
|
-
const
|
|
254
|
-
export {
|
|
255
|
-
const
|
|
256
|
-
export {
|
|
270
|
+
const title_28: string;
|
|
271
|
+
export { title_28 as title };
|
|
272
|
+
const type_22: string;
|
|
273
|
+
export { type_22 as type };
|
|
257
274
|
export const minium: number;
|
|
258
275
|
}
|
|
259
276
|
}
|
|
260
277
|
export { properties_5 as properties };
|
|
261
278
|
}
|
|
262
279
|
export namespace textSchema {
|
|
263
|
-
const
|
|
264
|
-
export {
|
|
265
|
-
const
|
|
266
|
-
export {
|
|
280
|
+
const title_29: string;
|
|
281
|
+
export { title_29 as title };
|
|
282
|
+
const type_23: string;
|
|
283
|
+
export { type_23 as type };
|
|
267
284
|
const required_3: string[];
|
|
268
285
|
export { required_3 as required };
|
|
269
286
|
export namespace properties_6 {
|
|
270
287
|
export namespace label_2 {
|
|
271
288
|
const _default_14: string;
|
|
272
289
|
export { _default_14 as default };
|
|
273
|
-
const
|
|
274
|
-
export {
|
|
290
|
+
const type_24: string;
|
|
291
|
+
export { type_24 as type };
|
|
275
292
|
}
|
|
276
293
|
export { label_2 as label };
|
|
277
294
|
}
|
|
278
295
|
export { properties_6 as properties };
|
|
279
296
|
}
|
|
280
297
|
export namespace attachSchema {
|
|
281
|
-
const
|
|
282
|
-
export {
|
|
283
|
-
const
|
|
284
|
-
export {
|
|
298
|
+
const title_30: string;
|
|
299
|
+
export { title_30 as title };
|
|
300
|
+
const type_25: string;
|
|
301
|
+
export { type_25 as type };
|
|
285
302
|
const required_4: string[];
|
|
286
303
|
export { required_4 as required };
|
|
287
304
|
export namespace properties_7 {
|
|
288
305
|
namespace name {
|
|
289
|
-
const
|
|
290
|
-
export {
|
|
291
|
-
const
|
|
292
|
-
export {
|
|
306
|
+
const title_31: string;
|
|
307
|
+
export { title_31 as title };
|
|
308
|
+
const type_26: string;
|
|
309
|
+
export { type_26 as type };
|
|
293
310
|
export const minLength: number;
|
|
294
311
|
const maxLength_3: number;
|
|
295
312
|
export { maxLength_3 as maxLength };
|
|
@@ -7,7 +7,7 @@ export default function initEditor(dispatch: any, getState: any): {
|
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
}) => Promise<any>;
|
|
9
9
|
onQuickEdit: (atom: any) => Promise<any>;
|
|
10
|
-
onBondEdit: (
|
|
10
|
+
onBondEdit: (bonds: any) => Promise<any>;
|
|
11
11
|
onRgroupEdit: (rgroup: any) => Promise<any>;
|
|
12
12
|
onSgroupEdit: (sgroup: any) => Promise<{
|
|
13
13
|
type: any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Atom, Bond } from 'ketcher-core';
|
|
2
|
+
declare type partialPropertiesOfElement = Partial<{
|
|
3
|
+
[attribute in keyof (Atom | Bond)]: string | number | boolean;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function generateCommonProperties(selectedElements: Atom[] | Bond[], normalizedElement: any): partialPropertiesOfElement;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generateCommonProperties';
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { Atom } from 'ketcher-core';
|
|
2
2
|
export declare function isAtomsArray(selectedElements: Atom | Atom[]): boolean;
|
|
3
|
-
declare type somePropertiesOfAtom = Partial<{
|
|
4
|
-
[attribute in keyof Atom]: string | number | boolean;
|
|
5
|
-
}>;
|
|
6
|
-
export declare function generateCommonProperties(selectedElements: Atom[]): somePropertiesOfAtom;
|
|
7
|
-
export declare function updateOnlyChangedProperties(atomId: any, userChangedAtom: any, molecule: any): {};
|
|
8
3
|
export declare function updateSelectedAtoms({ atoms, changeAtomPromise, editor }: {
|
|
9
4
|
atoms: number[];
|
|
10
5
|
editor: any;
|
|
11
6
|
changeAtomPromise: Promise<Atom>;
|
|
12
7
|
}): void;
|
|
13
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './updateOnlyChangedProperties';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function updateOnlyChangedProperties(unchangedElement: any, userChangedElement: any): {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/****************************************************************************
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenGroup.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/****************************************************************************
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -19,6 +19,7 @@ declare type GenProps = {
|
|
|
19
19
|
selected: (label: string) => boolean;
|
|
20
20
|
onAtomSelect: (label: string, activateImmediately: boolean) => void;
|
|
21
21
|
group: GenGroupType;
|
|
22
|
+
disabledQueryElements: Array<string> | null;
|
|
22
23
|
};
|
|
23
|
-
declare const GenGroup: ({ group, onAtomSelect, selected }: GenProps) => JSX.Element;
|
|
24
|
+
declare const GenGroup: ({ group, onAtomSelect, selected, disabledQueryElements }: GenProps) => JSX.Element;
|
|
24
25
|
export { GenGroup };
|
package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/GenSet.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/****************************************************************************
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -21,6 +21,7 @@ declare type GenSetProps = {
|
|
|
21
21
|
onAtomSelect: (label: string, activateImmediately: boolean) => void;
|
|
22
22
|
className?: string;
|
|
23
23
|
group: string;
|
|
24
|
+
disabledQueryElements: Array<string> | null;
|
|
24
25
|
};
|
|
25
|
-
declare function GenSet({ labels, selected, onAtomSelect, className, group }: GenSetProps): JSX.Element;
|
|
26
|
+
declare function GenSet({ labels, selected, onAtomSelect, className, group, disabledQueryElements }: GenSetProps): JSX.Element;
|
|
26
27
|
export { GenSet };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/****************************************************************************
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
declare type GenericGroupsProps = {
|
|
18
18
|
selected: (label: string) => boolean;
|
|
19
19
|
onAtomSelect: (label: string, activateImmediately: boolean) => void;
|
|
20
|
+
disabledQueryElements: Array<string> | null;
|
|
20
21
|
};
|
|
21
|
-
declare function GenericGroups({ selected, onAtomSelect }: GenericGroupsProps): JSX.Element;
|
|
22
|
+
declare function GenericGroups({ selected, onAtomSelect, disabledQueryElements }: GenericGroupsProps): JSX.Element;
|
|
22
23
|
export default GenericGroups;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
16
|
+
/// <reference types="react" />
|
|
17
|
+
import { GenItem } from 'ketcher-core';
|
|
18
|
+
declare type ButtonGenSetProps = {
|
|
19
|
+
button: GenItem;
|
|
20
|
+
onAtomSelect: (label: string, activateImmediately: boolean) => void;
|
|
21
|
+
selected: (label: string) => boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare const ButtonGenSet: ({ button, onAtomSelect, selected, disabled }: ButtonGenSetProps) => JSX.Element;
|
|
25
|
+
export default ButtonGenSet;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
16
|
+
export { default } from './ButtonGenSet';
|
package/dist/script/ui/views/modal/components/ExtendedTable/components/GenericGroups/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/****************************************************************************
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2023 EPAM Systems
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0-rc.1",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"font-face-observer": "^1.0.0",
|
|
59
59
|
"hoist-non-react-statics": "^3.3.2",
|
|
60
60
|
"intersection-observer": "^0.12.0",
|
|
61
|
-
"ketcher-core": "
|
|
61
|
+
"ketcher-core": "*",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
63
|
"miew-react": "^1.0.0",
|
|
64
64
|
"react-colorful": "^5.4.0",
|