@things-factory/operato-tools 7.0.1-alpha.3 → 7.0.1-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/client/pages/generator/button-config-tab-mixin.js +288 -300
- package/client/pages/generator/column-config-tab-mixin.js +502 -499
- package/client/pages/generator/etc-config-tab-mixin.js +90 -93
- package/client/pages/generator/form-config-tab-mixin.js +143 -149
- package/client/pages/generator/graphql-config-tab-mixin.js +281 -277
- package/client/pages/generator/grid-config-tab-mixin.js +135 -147
- package/client/pages/generator/grid-emphasized-config-tab-mixin.js +256 -256
- package/client/pages/generator/menu-config-tab-mixin.js +94 -100
- package/client/pages/generator/meta-generator-page.js +179 -174
- package/client/pages/generator/search-config-tab-mixin.js +153 -161
- package/client/pages/generator/tab-config-tab-mixin.js +204 -204
- package/client/pages/main.js +1 -1
- package/package.json +3 -3
@@ -1,335 +1,339 @@
|
|
1
|
-
import { html } from 'lit
|
1
|
+
import { html } from 'lit'
|
2
2
|
|
3
3
|
import { TermsUtil } from '@things-factory/meta-ui/client/utils/terms-util'
|
4
4
|
import { MetaApi } from '@things-factory/meta-ui/client/utils/meta-api'
|
5
5
|
|
6
|
+
export const GraphQlConfigTabMixin = baseElement =>
|
7
|
+
class extends baseElement {
|
8
|
+
setGraphqlConfigTabValues(data) {
|
9
|
+
// 1. 조회 데이터 설정
|
10
|
+
if (data) {
|
11
|
+
var graphQl = {
|
12
|
+
query: data.query || {},
|
13
|
+
multiple: data.mutation?.multiple || {},
|
14
|
+
delete: data.mutation?.delete || {}
|
15
|
+
}
|
6
16
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
this.viewGraphqlData = {
|
19
|
-
query_list: graphQl.query.list_func || '',
|
20
|
-
query_find: graphQl.query.find_one_func || '',
|
21
|
-
query_parent_id: graphQl.query.parent_id || '',
|
22
|
-
after_set_fields_data: graphQl.query.after_set_fields || [],
|
23
|
-
mutation_multiple: graphQl.multiple.func || '',
|
24
|
-
mutation_multiple_type: graphQl.multiple.type || '',
|
25
|
-
mutation_multiple_parent_id: graphQl.multiple.parent_id || '',
|
26
|
-
skip_fields_data: graphQl.multiple.skip_fields || [],
|
27
|
-
mutation_delete: graphQl.delete.func || ''
|
28
|
-
}
|
17
|
+
this.viewGraphqlData = {
|
18
|
+
query_list: graphQl.query.list_func || '',
|
19
|
+
query_find: graphQl.query.find_one_func || '',
|
20
|
+
query_parent_id: graphQl.query.parent_id || '',
|
21
|
+
after_set_fields_data: graphQl.query.after_set_fields || [],
|
22
|
+
mutation_multiple: graphQl.multiple.func || '',
|
23
|
+
mutation_multiple_type: graphQl.multiple.type || '',
|
24
|
+
mutation_multiple_parent_id: graphQl.multiple.parent_id || '',
|
25
|
+
skip_fields_data: graphQl.multiple.skip_fields || [],
|
26
|
+
mutation_delete: graphQl.delete.func || ''
|
27
|
+
}
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
= Object.keys(this.viewGraphqlData.after_set_fields_data).map(key => {
|
29
|
+
let idx = 1
|
30
|
+
this.viewGraphqlData.after_set_fields_data = Object.keys(this.viewGraphqlData.after_set_fields_data).map(key => {
|
33
31
|
return {
|
34
32
|
id: idx++,
|
35
33
|
set_field: key,
|
36
34
|
get_field: this.viewGraphqlData.after_set_fields_data[key]
|
37
|
-
}
|
35
|
+
}
|
38
36
|
})
|
39
37
|
|
40
|
-
|
41
|
-
= this.viewGraphqlData.skip_fields_data.map(x => {
|
38
|
+
this.viewGraphqlData.skip_fields_data = this.viewGraphqlData.skip_fields_data.map(x => {
|
42
39
|
return {
|
43
40
|
id: idx++,
|
44
41
|
except_field: x
|
45
|
-
}
|
42
|
+
}
|
46
43
|
})
|
47
44
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
45
|
+
this.graphqlTabAfterSetFieldGrist?.fetch()
|
46
|
+
this.graphqlTabSkipFieldGrist?.fetch()
|
47
|
+
} else {
|
48
|
+
this.setGraphqlConfigTabDefaultValues()
|
49
|
+
}
|
53
50
|
}
|
54
51
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
gql: {}
|
87
|
-
};
|
88
|
-
let valueKeys = Object.keys(valueSet);
|
52
|
+
getGraphqlConfigTabValues() {
|
53
|
+
let valueSet = {}
|
54
|
+
|
55
|
+
// 설정 데이터
|
56
|
+
let query_list = this.getElementValueById('query_list')
|
57
|
+
let query_find = this.getElementValueById('query_find')
|
58
|
+
let mutation_multiple = this.getElementValueById('mutation_multiple')
|
59
|
+
let mutation_multiple_type = this.getElementValueById('mutation_multiple_type')
|
60
|
+
let mutation_delete = this.getElementValueById('mutation_delete')
|
61
|
+
let query_parent_id = this.getElementValueById('query_parent_id')
|
62
|
+
let mutation_multiple_parent_id = this.getElementValueById('mutation_multiple_parent_id')
|
63
|
+
let after_set_fields_data = this.getElementValueById('after-set-fields-grist')
|
64
|
+
let skip_fields_data = this.getElementValueById('skip-fields-grist')
|
65
|
+
|
66
|
+
if (query_list) valueSet.query_list = query_list
|
67
|
+
if (query_find) valueSet.query_find = query_find
|
68
|
+
if (query_parent_id) valueSet.query_parent_id = query_parent_id
|
69
|
+
if (after_set_fields_data) valueSet.query_after_set_fields_data = after_set_fields_data
|
70
|
+
|
71
|
+
if (mutation_multiple) valueSet.mutation_multiple = mutation_multiple
|
72
|
+
if (mutation_multiple_type) valueSet.mutation_multiple_type = mutation_multiple_type
|
73
|
+
if (mutation_multiple_parent_id) valueSet.mutation_multiple_parent_id = mutation_multiple_parent_id
|
74
|
+
if (skip_fields_data) valueSet.mutation_multiple_skip_fields_data = skip_fields_data
|
75
|
+
|
76
|
+
if (mutation_delete) valueSet.mutation_delete = mutation_delete
|
77
|
+
|
78
|
+
// 리턴 오브젝트로 가공
|
79
|
+
let retObject = {
|
80
|
+
gql: {}
|
81
|
+
}
|
82
|
+
let valueKeys = Object.keys(valueSet)
|
89
83
|
|
90
|
-
|
91
|
-
|
92
|
-
|
84
|
+
// query 가 포함 되어 있으면
|
85
|
+
if (valueKeys.filter(x => x.startsWith('query'))) {
|
86
|
+
retObject.gql.query = {}
|
93
87
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
88
|
+
if (valueSet.query_list) retObject.gql.query.list_func = valueSet.query_list
|
89
|
+
if (valueSet.query_find) retObject.gql.query.find_one_func = valueSet.query_find
|
90
|
+
if (valueSet.query_parent_id) retObject.gql.query.parent_id = valueSet.query_parent_id
|
91
|
+
if (valueSet.query_after_set_fields_data) {
|
92
|
+
retObject.gql.query.after_set_fields = {}
|
99
93
|
|
100
|
-
|
101
|
-
|
102
|
-
|
94
|
+
valueSet.query_after_set_fields_data.forEach(x => {
|
95
|
+
retObject.gql.query.after_set_fields[x.set_field] = x.get_field
|
96
|
+
})
|
97
|
+
}
|
103
98
|
}
|
104
|
-
}
|
105
99
|
|
106
|
-
|
107
|
-
|
108
|
-
|
100
|
+
// mutation 이 포함되어 있으면
|
101
|
+
if (valueKeys.filter(x => x.startsWith('mutation'))) {
|
102
|
+
retObject.gql.mutation = {}
|
103
|
+
|
104
|
+
// multiple 이 포함 되어 있으면
|
105
|
+
if (valueKeys.filter(x => x.startsWith('mutation_multiple'))) {
|
106
|
+
retObject.gql.mutation.multiple = {}
|
107
|
+
|
108
|
+
if (valueSet.mutation_multiple) retObject.gql.mutation.multiple.func = valueSet.mutation_multiple
|
109
|
+
if (valueSet.mutation_multiple_type) retObject.gql.mutation.multiple.type = valueSet.mutation_multiple_type
|
110
|
+
if (valueSet.mutation_multiple_parent_id) retObject.gql.mutation.multiple.parent_id = valueSet.mutation_multiple_parent_id
|
111
|
+
if (valueSet.mutation_multiple_skip_fields_data)
|
112
|
+
retObject.gql.mutation.multiple.skip_fields = valueSet.mutation_multiple_skip_fields_data.map(x => {
|
113
|
+
return x.except_field
|
114
|
+
})
|
115
|
+
}
|
109
116
|
|
110
|
-
|
111
|
-
|
112
|
-
|
117
|
+
// delete 가 포함되어 있으면
|
118
|
+
if (valueKeys.filter(x => x.startsWith('mutation_delete'))) {
|
119
|
+
retObject.gql.mutation.delete = {}
|
113
120
|
|
114
|
-
|
115
|
-
|
116
|
-
if (valueSet.mutation_multiple_parent_id) retObject.gql.mutation.multiple.parent_id = valueSet.mutation_multiple_parent_id;
|
117
|
-
if (valueSet.mutation_multiple_skip_fields_data) retObject.gql.mutation.multiple.skip_fields = valueSet.mutation_multiple_skip_fields_data.map(x => {
|
118
|
-
return x.except_field;
|
119
|
-
});
|
121
|
+
if (valueSet.mutation_delete) retObject.gql.mutation.delete.func = valueSet.mutation_delete
|
122
|
+
}
|
120
123
|
}
|
121
124
|
|
122
|
-
|
123
|
-
if (valueKeys.filter(x => x.startsWith('mutation_delete'))) {
|
124
|
-
retObject.gql.mutation.delete = {};
|
125
|
-
|
126
|
-
if (valueSet.mutation_delete) retObject.gql.mutation.delete.func = valueSet.mutation_delete;
|
127
|
-
}
|
125
|
+
return retObject
|
128
126
|
}
|
129
127
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
get graphqlTabSkipFieldGrist() {
|
137
|
-
return this.shadowRoot.querySelector('#skip-fields-grist')
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
setGraphqlConfigTabConfig() {
|
128
|
+
get graphqlTabAfterSetFieldGrist() {
|
129
|
+
return this.shadowRoot.querySelector('#after-set-fields-grist')
|
130
|
+
}
|
131
|
+
get graphqlTabSkipFieldGrist() {
|
132
|
+
return this.shadowRoot.querySelector('#skip-fields-grist')
|
133
|
+
}
|
142
134
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
135
|
+
setGraphqlConfigTabConfig() {
|
136
|
+
// 1. 조회후 필드 변경 그리드 설정
|
137
|
+
this.afterSetFieldsConfig = {
|
138
|
+
rows: MetaApi.getGristSelectableConfig(false),
|
139
|
+
pagination: { infinite: true },
|
140
|
+
appendable: true,
|
141
|
+
columns: [
|
142
|
+
...MetaApi.getGristGuttersConfig(false, false),
|
143
|
+
{
|
144
|
+
type: 'gutter',
|
145
|
+
gutterName: 'button',
|
146
|
+
icon: 'delete',
|
147
|
+
handlers: {
|
148
|
+
click: (_columns, _data, _column, record, _rowIndex) => {
|
149
|
+
if (record.id) {
|
150
|
+
this.deleteRow(this.graphqlTabAfterSetFieldGrist, record)
|
151
|
+
}
|
156
152
|
}
|
157
153
|
}
|
158
154
|
},
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
hidden: true
|
164
|
-
},
|
165
|
-
{
|
166
|
-
type: 'string',
|
167
|
-
name: 'set_field',
|
168
|
-
header: TermsUtil.tLabel('set_field_name'),
|
169
|
-
record: {
|
170
|
-
align: 'left',
|
171
|
-
editable: true,
|
172
|
-
mandatory: true
|
155
|
+
{
|
156
|
+
type: 'string',
|
157
|
+
name: 'id',
|
158
|
+
hidden: true
|
173
159
|
},
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
160
|
+
{
|
161
|
+
type: 'string',
|
162
|
+
name: 'set_field',
|
163
|
+
header: TermsUtil.tLabel('set_field_name'),
|
164
|
+
record: {
|
165
|
+
align: 'left',
|
166
|
+
editable: true,
|
167
|
+
mandatory: true
|
168
|
+
},
|
169
|
+
width: 150
|
184
170
|
},
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
171
|
+
{
|
172
|
+
type: 'string',
|
173
|
+
name: 'get_field',
|
174
|
+
header: TermsUtil.tLabel('get_field_name'),
|
175
|
+
record: {
|
176
|
+
align: 'left',
|
177
|
+
editable: true,
|
178
|
+
mandatory: true
|
179
|
+
},
|
180
|
+
width: 150
|
181
|
+
}
|
182
|
+
]
|
183
|
+
}
|
189
184
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
185
|
+
// 1. mutation 시 제외 필드 설정
|
186
|
+
this.skipFieldsConfig = {
|
187
|
+
rows: MetaApi.getGristSelectableConfig(false),
|
188
|
+
pagination: { infinite: true },
|
189
|
+
appendable: true,
|
190
|
+
columns: [
|
191
|
+
...MetaApi.getGristGuttersConfig(false, false),
|
192
|
+
{
|
193
|
+
type: 'gutter',
|
194
|
+
gutterName: 'button',
|
195
|
+
icon: 'delete',
|
196
|
+
handlers: {
|
197
|
+
click: (_columns, _data, _column, record, _rowIndex) => {
|
198
|
+
if (record.id) {
|
199
|
+
this.deleteRow(this.graphqlTabSkipFieldGrist, record)
|
200
|
+
}
|
203
201
|
}
|
204
202
|
}
|
205
203
|
},
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
hidden: true
|
211
|
-
},
|
212
|
-
{
|
213
|
-
type: 'string',
|
214
|
-
name: 'except_field',
|
215
|
-
header: TermsUtil.tLabel('field_name'),
|
216
|
-
record: {
|
217
|
-
align: 'left',
|
218
|
-
editable: true,
|
219
|
-
mandatory: true
|
204
|
+
{
|
205
|
+
type: 'string',
|
206
|
+
name: 'id',
|
207
|
+
hidden: true
|
220
208
|
},
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
mutation_multiple: '',
|
234
|
-
mutation_multiple_type: '',
|
235
|
-
mutation_delete: '',
|
236
|
-
query_parent_id: '',
|
237
|
-
mutation_multiple_parent_id: '',
|
238
|
-
after_set_fields_data: [],
|
239
|
-
skip_fields_data: []
|
209
|
+
{
|
210
|
+
type: 'string',
|
211
|
+
name: 'except_field',
|
212
|
+
header: TermsUtil.tLabel('field_name'),
|
213
|
+
record: {
|
214
|
+
align: 'left',
|
215
|
+
editable: true,
|
216
|
+
mandatory: true
|
217
|
+
},
|
218
|
+
width: 250
|
219
|
+
}
|
220
|
+
]
|
240
221
|
}
|
241
222
|
}
|
242
|
-
}
|
243
223
|
|
224
|
+
setGraphqlConfigTabDefaultValues() {
|
225
|
+
if (!this.viewGraphqlData) {
|
226
|
+
this.viewGraphqlData = {
|
227
|
+
query_list: '',
|
228
|
+
query_find: '',
|
229
|
+
mutation_multiple: '',
|
230
|
+
mutation_multiple_type: '',
|
231
|
+
mutation_delete: '',
|
232
|
+
query_parent_id: '',
|
233
|
+
mutation_multiple_parent_id: '',
|
234
|
+
after_set_fields_data: [],
|
235
|
+
skip_fields_data: []
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
244
239
|
|
245
|
-
|
246
|
-
|
247
|
-
|
240
|
+
// 화면
|
241
|
+
renderGraphqlConfigTab() {
|
242
|
+
this.setGraphqlConfigTabDefaultValues()
|
248
243
|
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</div>
|
256
|
-
<div field>
|
257
|
-
<label>${TermsUtil.tLabel('query_find_function')}
|
258
|
-
<input id="query_find" name="query_find" type="text" value=${this.viewGraphqlData.query_find} />
|
259
|
-
</label>
|
260
|
-
</div>
|
261
|
-
<div field>
|
262
|
-
<label>${TermsUtil.tLabel('multiple_update_function')}
|
263
|
-
<input id="mutation_multiple" name="mutation_multiple" type="text"
|
264
|
-
value=${this.viewGraphqlData.mutation_multiple} />
|
265
|
-
</label>
|
266
|
-
</div>
|
267
|
-
<div field>
|
268
|
-
<label>${TermsUtil.tLabel('multiple_update_type')}
|
269
|
-
<input id="mutation_multiple_type" name="mutation_multiple_type" type="text"
|
270
|
-
value=${this.viewGraphqlData.mutation_multiple_type} />
|
271
|
-
</label>
|
272
|
-
</div>
|
273
|
-
<div field>
|
274
|
-
<label>${TermsUtil.tLabel('delete_function')}
|
275
|
-
<input id="mutation_delete" name="mutation_delete" type="text" value=${this.viewGraphqlData.mutation_delete} />
|
276
|
-
</label>
|
277
|
-
</div>
|
278
|
-
<div field>
|
279
|
-
</div>
|
280
|
-
<div field>
|
281
|
-
<h2>
|
282
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil.tLabel('query_option')}
|
283
|
-
</h2>
|
284
|
-
<div subfield>
|
285
|
-
<label>${TermsUtil.tLabel('parent_id')}
|
286
|
-
<input id="query_parent_id" name="query_parent_id" type="text" value=${this.viewGraphqlData.query_parent_id} />
|
244
|
+
let renderHtml = html`
|
245
|
+
<div field-2column>
|
246
|
+
<div field>
|
247
|
+
<label
|
248
|
+
>${TermsUtil.tLabel('query_list_function')}
|
249
|
+
<input id="query_list" name="query_list" type="text" value=${this.viewGraphqlData.query_list} />
|
287
250
|
</label>
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
</div>
|
251
|
+
</div>
|
252
|
+
<div field>
|
253
|
+
<label
|
254
|
+
>${TermsUtil.tLabel('query_find_function')}
|
255
|
+
<input id="query_find" name="query_find" type="text" value=${this.viewGraphqlData.query_find} />
|
294
256
|
</label>
|
295
257
|
</div>
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
</h2>
|
301
|
-
<div subfield>
|
302
|
-
<label>${TermsUtil.tLabel('parent_id')}
|
303
|
-
<input id="mutation_multiple_parent_id" name="mutation_multiple_parent_id" type="text"
|
304
|
-
value=${this.viewGraphqlData.mutation_multiple_parent_id} />
|
258
|
+
<div field>
|
259
|
+
<label
|
260
|
+
>${TermsUtil.tLabel('multiple_update_function')}
|
261
|
+
<input id="mutation_multiple" name="mutation_multiple" type="text" value=${this.viewGraphqlData.mutation_multiple} />
|
305
262
|
</label>
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
263
|
+
</div>
|
264
|
+
<div field>
|
265
|
+
<label
|
266
|
+
>${TermsUtil.tLabel('multiple_update_type')}
|
267
|
+
<input id="mutation_multiple_type" name="mutation_multiple_type" type="text" value=${this.viewGraphqlData.mutation_multiple_type} />
|
268
|
+
</label>
|
269
|
+
</div>
|
270
|
+
<div field>
|
271
|
+
<label
|
272
|
+
>${TermsUtil.tLabel('delete_function')}
|
273
|
+
<input id="mutation_delete" name="mutation_delete" type="text" value=${this.viewGraphqlData.mutation_delete} />
|
312
274
|
</label>
|
313
275
|
</div>
|
276
|
+
<div field></div>
|
277
|
+
<div field>
|
278
|
+
<h2><mwc-icon>list_alt</mwc-icon>${TermsUtil.tLabel('query_option')}</h2>
|
279
|
+
<div subfield>
|
280
|
+
<label
|
281
|
+
>${TermsUtil.tLabel('parent_id')}
|
282
|
+
<input id="query_parent_id" name="query_parent_id" type="text" value=${this.viewGraphqlData.query_parent_id} />
|
283
|
+
</label>
|
284
|
+
|
285
|
+
<label
|
286
|
+
>${TermsUtil.tLabel('after_set_fields')}
|
287
|
+
<div style="display:flex;height:200px">
|
288
|
+
<ox-grist
|
289
|
+
id="after-set-fields-grist"
|
290
|
+
.config=${this.afterSetFieldsConfig}
|
291
|
+
.mode=${'GRID'}
|
292
|
+
auto-fetch
|
293
|
+
.fetchHandler=${this.fetchAfterSetFields.bind(this)}
|
294
|
+
></ox-grist>
|
295
|
+
</div>
|
296
|
+
</label>
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
<div field>
|
300
|
+
<h2><mwc-icon>list_alt</mwc-icon>${TermsUtil.tLabel('multiple_update_option')}</h2>
|
301
|
+
<div subfield>
|
302
|
+
<label
|
303
|
+
>${TermsUtil.tLabel('parent_id')}
|
304
|
+
<input id="mutation_multiple_parent_id" name="mutation_multiple_parent_id" type="text" value=${this.viewGraphqlData.mutation_multiple_parent_id} />
|
305
|
+
</label>
|
306
|
+
|
307
|
+
<label
|
308
|
+
>${TermsUtil.tLabel('skip_fields')}
|
309
|
+
<div style="display:flex;height:200px">
|
310
|
+
<ox-grist
|
311
|
+
id="skip-fields-grist"
|
312
|
+
.config=${this.skipFieldsConfig}
|
313
|
+
.mode=${'GRID'}
|
314
|
+
auto-fetch
|
315
|
+
.fetchHandler=${this.fetchSkipFields.bind(this)}
|
316
|
+
></ox-grist>
|
317
|
+
</div>
|
318
|
+
</label>
|
319
|
+
</div>
|
320
|
+
</div>
|
314
321
|
</div>
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
return renderHtml;
|
319
|
-
}
|
320
|
-
|
322
|
+
`
|
323
|
+
return renderHtml
|
324
|
+
}
|
321
325
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
+
async fetchAfterSetFields() {
|
327
|
+
return {
|
328
|
+
records: this.viewGraphqlData.after_set_fields_data,
|
329
|
+
total: 0
|
330
|
+
}
|
326
331
|
}
|
327
|
-
}
|
328
332
|
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
+
async fetchSkipFields() {
|
334
|
+
return {
|
335
|
+
records: this.viewGraphqlData.skip_fields_data,
|
336
|
+
total: 0
|
337
|
+
}
|
333
338
|
}
|
334
339
|
}
|
335
|
-
}
|