@things-factory/operato-tools 6.0.25 → 6.0.27
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/client/pages/generator/button-config-tab-mixin.js +367 -5
- package/client/pages/generator/column-config-tab-mixin.js +471 -4
- package/client/pages/generator/etc-config-tab-mixin.js +166 -4
- package/client/pages/generator/form-config-tab-mixin.js +210 -4
- package/client/pages/generator/graphql-config-tab-mixin.js +425 -66
- package/client/pages/generator/grid-config-tab-mixin.js +264 -16
- package/client/pages/generator/menu-config-tab-mixin.js +169 -30
- package/client/pages/generator/meta-generator-page.js +524 -32
- package/client/pages/generator/search-config-tab-mixin.js +218 -4
- package/client/pages/generator/tab-config-tab-mixin.js +269 -4
- package/client/pages/main.js +78 -7
- package/package.json +3 -3
|
@@ -1,5 +1,367 @@
|
|
|
1
|
-
const a0_0xea3c2f
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const a0_0xea3c2f = a0_0x23a7
|
|
2
|
+
;(function (_0x1e1fdf, _0x56208d) {
|
|
3
|
+
const _0x262e19 = a0_0x23a7,
|
|
4
|
+
_0x122754 = _0x1e1fdf()
|
|
5
|
+
while (!![]) {
|
|
6
|
+
try {
|
|
7
|
+
const _0x5e7e61 =
|
|
8
|
+
parseInt(_0x262e19(0x19f)) / 0x1 +
|
|
9
|
+
-parseInt(_0x262e19(0x1ab)) / 0x2 +
|
|
10
|
+
(-parseInt(_0x262e19(0x17d)) / 0x3) * (parseInt(_0x262e19(0x19b)) / 0x4) +
|
|
11
|
+
(parseInt(_0x262e19(0x186)) / 0x5) * (parseInt(_0x262e19(0x1a7)) / 0x6) +
|
|
12
|
+
parseInt(_0x262e19(0x17a)) / 0x7 +
|
|
13
|
+
-parseInt(_0x262e19(0x170)) / 0x8 +
|
|
14
|
+
-parseInt(_0x262e19(0x192)) / 0x9
|
|
15
|
+
if (_0x5e7e61 === _0x56208d) break
|
|
16
|
+
else _0x122754['push'](_0x122754['shift']())
|
|
17
|
+
} catch (_0x2f8fd3) {
|
|
18
|
+
_0x122754['push'](_0x122754['shift']())
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})(a0_0x87f4, 0x5d65d)
|
|
22
|
+
import { html } from 'lit'
|
|
23
|
+
import { MetaApi } from '@things-factory/meta-ui/client/utils/meta-api'
|
|
24
|
+
import { TermsUtil } from '@things-factory/meta-ui/client/utils/terms-util'
|
|
25
|
+
import { getRenderer } from '@operato/data-grist'
|
|
26
|
+
function a0_0x23a7(_0x127905, _0x14545e) {
|
|
27
|
+
const _0x87f48e = a0_0x87f4()
|
|
28
|
+
return (
|
|
29
|
+
(a0_0x23a7 = function (_0x23a738, _0x2e829d) {
|
|
30
|
+
_0x23a738 = _0x23a738 - 0x170
|
|
31
|
+
let _0x47bd87 = _0x87f48e[_0x23a738]
|
|
32
|
+
return _0x47bd87
|
|
33
|
+
}),
|
|
34
|
+
a0_0x23a7(_0x127905, _0x14545e)
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
function a0_0x87f4() {
|
|
38
|
+
const _0x73def2 = [
|
|
39
|
+
'grid-',
|
|
40
|
+
'meta-grist-element',
|
|
41
|
+
'left',
|
|
42
|
+
'setButtonConfigTabValues',
|
|
43
|
+
'shadowRoot',
|
|
44
|
+
'18oMhgbJ',
|
|
45
|
+
'form',
|
|
46
|
+
'string',
|
|
47
|
+
'grid',
|
|
48
|
+
'863432ZTaRWP',
|
|
49
|
+
'large',
|
|
50
|
+
'#button-tab-grid',
|
|
51
|
+
'delete',
|
|
52
|
+
'custom',
|
|
53
|
+
'1975792wLhXFN',
|
|
54
|
+
'button',
|
|
55
|
+
'renderButtonConfigTab',
|
|
56
|
+
'label',
|
|
57
|
+
'push',
|
|
58
|
+
'json5',
|
|
59
|
+
'parse',
|
|
60
|
+
'scenario',
|
|
61
|
+
'setButtonConfigTabConfig',
|
|
62
|
+
'getGristSelectableConfig',
|
|
63
|
+
'2896236XEFboo',
|
|
64
|
+
'testScenario',
|
|
65
|
+
'tLabel',
|
|
66
|
+
'72hPAhbh',
|
|
67
|
+
'basic',
|
|
68
|
+
'icon',
|
|
69
|
+
'title.detail',
|
|
70
|
+
'\x22record-view\x22',
|
|
71
|
+
'replaceAll',
|
|
72
|
+
'grist_selected',
|
|
73
|
+
'gutter',
|
|
74
|
+
'popup',
|
|
75
|
+
'987815dpJPvC',
|
|
76
|
+
'buttonTabGridConfig',
|
|
77
|
+
'trim',
|
|
78
|
+
'pages/meta-grist-element.js',
|
|
79
|
+
'querySelector',
|
|
80
|
+
'forEach',
|
|
81
|
+
'stringify',
|
|
82
|
+
'deleteRow',
|
|
83
|
+
'getGristGuttersConfig',
|
|
84
|
+
'script',
|
|
85
|
+
'sortRecordByRank',
|
|
86
|
+
'name',
|
|
87
|
+
'353682oDNedJ',
|
|
88
|
+
'rank',
|
|
89
|
+
'bind',
|
|
90
|
+
'fetch',
|
|
91
|
+
'grid-custom',
|
|
92
|
+
'fetchButtonConfigTabHandler',
|
|
93
|
+
'buttonTabGrist',
|
|
94
|
+
'startsWith',
|
|
95
|
+
'display',
|
|
96
|
+
'17592JWYawD',
|
|
97
|
+
'menu.variables',
|
|
98
|
+
'button-tab-grid',
|
|
99
|
+
'style',
|
|
100
|
+
'199660CDVBTu',
|
|
101
|
+
'type',
|
|
102
|
+
'logic'
|
|
103
|
+
]
|
|
104
|
+
a0_0x87f4 = function () {
|
|
105
|
+
return _0x73def2
|
|
106
|
+
}
|
|
107
|
+
return a0_0x87f4()
|
|
108
|
+
}
|
|
109
|
+
export const ButtonConfigTabMixin = _0x1992a4 =>
|
|
110
|
+
class extends _0x1992a4 {
|
|
111
|
+
[a0_0xea3c2f(0x1a5)](_0x255def) {
|
|
112
|
+
const _0x1a7c4c = a0_0xea3c2f
|
|
113
|
+
_0x255def?.[_0x1a7c4c(0x18b)]((_0x5b5091, _0x157019) => {
|
|
114
|
+
const _0x465ec7 = _0x1a7c4c
|
|
115
|
+
let _0x2569a5 = _0x157019 + 0x1
|
|
116
|
+
if (
|
|
117
|
+
((_0x5b5091[_0x465ec7(0x193)] = 0xa * _0x2569a5),
|
|
118
|
+
(_0x5b5091['id'] = _0x2569a5),
|
|
119
|
+
_0x5b5091[_0x465ec7(0x1a1)] && !_0x5b5091[_0x465ec7(0x1a1)][_0x465ec7(0x1a1)])
|
|
120
|
+
) {
|
|
121
|
+
let _0x4cd953 = JSON[_0x465ec7(0x18c)](_0x5b5091[_0x465ec7(0x1a1)], null, 0x2)
|
|
122
|
+
;(_0x5b5091['logic'] = {}), (_0x5b5091[_0x465ec7(0x1a1)][_0x465ec7(0x1a1)] = _0x4cd953)
|
|
123
|
+
}
|
|
124
|
+
_0x5b5091['style'] &&
|
|
125
|
+
Array['isArray'](_0x5b5091['style']) &&
|
|
126
|
+
(_0x5b5091['style'] = JSON[_0x465ec7(0x18c)](_0x5b5091['style'], null, 0x2))
|
|
127
|
+
}),
|
|
128
|
+
(this['viewButtonData'] = _0x255def),
|
|
129
|
+
this[_0x1a7c4c(0x198)]?.[_0x1a7c4c(0x195)]()
|
|
130
|
+
}
|
|
131
|
+
['getButtonConfigTabValues']() {
|
|
132
|
+
const _0x29489e = a0_0xea3c2f
|
|
133
|
+
let _0x22c352 = { button: [], grid: { button: [] } },
|
|
134
|
+
_0x43a144 = this['getElementValueById'](_0x29489e(0x19d))
|
|
135
|
+
return (
|
|
136
|
+
this[_0x29489e(0x190)](_0x43a144)?.[_0x29489e(0x18b)](_0x580623 => {
|
|
137
|
+
const _0x5b47d8 = _0x29489e
|
|
138
|
+
var {
|
|
139
|
+
name: _0x17233d,
|
|
140
|
+
label: _0x1f98ae,
|
|
141
|
+
style: _0x1479b9,
|
|
142
|
+
type: _0x38de54 = _0x5b47d8(0x17e),
|
|
143
|
+
logic: _0xf562d4
|
|
144
|
+
} = _0x580623
|
|
145
|
+
if (!_0x17233d) return
|
|
146
|
+
let _0x1be608 = {
|
|
147
|
+
name: _0x17233d,
|
|
148
|
+
type: _0x38de54[_0x5b47d8(0x182)](_0x5b47d8(0x1a2), ''),
|
|
149
|
+
label: _0x1f98ae || _0x17233d
|
|
150
|
+
}
|
|
151
|
+
_0xf562d4 &&
|
|
152
|
+
(_0x5b47d8(0x1a9) == typeof _0xf562d4 && (_0xf562d4 = JSON[_0x5b47d8(0x176)](_0xf562d4)),
|
|
153
|
+
_0xf562d4[_0x5b47d8(0x1a1)] && (_0x1be608['logic'] = JSON[_0x5b47d8(0x176)](_0xf562d4[_0x5b47d8(0x1a1)]))),
|
|
154
|
+
_0x38de54[_0x5b47d8(0x199)](_0x5b47d8(0x1aa))
|
|
155
|
+
? (_0x1479b9 &&
|
|
156
|
+
((_0x1479b9 = _0x1479b9[_0x5b47d8(0x188)]())[_0x5b47d8(0x199)]('[') &&
|
|
157
|
+
(_0x1479b9 = JSON['parse'](_0x1479b9)),
|
|
158
|
+
(_0x1be608[_0x5b47d8(0x17f)] = _0x1479b9)),
|
|
159
|
+
_0x22c352[_0x5b47d8(0x1aa)][_0x5b47d8(0x171)]['push'](_0x1be608))
|
|
160
|
+
: (_0x1479b9 && (_0x1be608['style'] = _0x1479b9),
|
|
161
|
+
_0x22c352[_0x5b47d8(0x171)][_0x5b47d8(0x174)](_0x1be608))
|
|
162
|
+
}),
|
|
163
|
+
_0x22c352
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
[a0_0xea3c2f(0x172)]() {
|
|
167
|
+
const _0x3e91b9 = a0_0xea3c2f
|
|
168
|
+
return html`
|
|
169
|
+
<ox-grist
|
|
170
|
+
auto-fetch
|
|
171
|
+
id="button-tab-grid"
|
|
172
|
+
.config=${this[_0x3e91b9(0x187)]}
|
|
173
|
+
.mode="GRID"
|
|
174
|
+
.fetchHandler=${this[_0x3e91b9(0x197)][_0x3e91b9(0x194)](this)}
|
|
175
|
+
>
|
|
176
|
+
</ox-grist>
|
|
177
|
+
`
|
|
178
|
+
}
|
|
179
|
+
get [a0_0xea3c2f(0x198)]() {
|
|
180
|
+
const _0x271dde = a0_0xea3c2f
|
|
181
|
+
return this[_0x271dde(0x1a6)][_0x271dde(0x18a)](_0x271dde(0x1ad))
|
|
182
|
+
}
|
|
183
|
+
async [a0_0xea3c2f(0x197)]() {
|
|
184
|
+
return { total: 0x0, records: this['viewButtonData'] || [] }
|
|
185
|
+
}
|
|
186
|
+
[a0_0xea3c2f(0x178)]() {
|
|
187
|
+
const _0x541bc1 = a0_0xea3c2f
|
|
188
|
+
this['buttonTabGridConfig'] = {
|
|
189
|
+
rows: MetaApi[_0x541bc1(0x179)](!0x0),
|
|
190
|
+
pagination: { infinite: !0x0 },
|
|
191
|
+
sorters: [{ name: _0x541bc1(0x193), desc: !0x1 }],
|
|
192
|
+
appendable: !0x0,
|
|
193
|
+
columns: [
|
|
194
|
+
...MetaApi[_0x541bc1(0x18e)](!0x1, !0x1),
|
|
195
|
+
{
|
|
196
|
+
type: _0x541bc1(0x184),
|
|
197
|
+
gutterName: _0x541bc1(0x171),
|
|
198
|
+
icon: _0x541bc1(0x1ae),
|
|
199
|
+
handlers: {
|
|
200
|
+
click: (_0x592819, _0x28ea98, _0x2ff7a3, _0x4a7e37, _0x525e07) => {
|
|
201
|
+
const _0x52491e = _0x541bc1
|
|
202
|
+
_0x4a7e37['id'] && this[_0x52491e(0x18d)](this['buttonTabGrist'], _0x4a7e37)
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
type: 'integer',
|
|
208
|
+
name: _0x541bc1(0x193),
|
|
209
|
+
header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x193)),
|
|
210
|
+
sortable: !0x0,
|
|
211
|
+
width: 0x41,
|
|
212
|
+
record: { align: 'right', editable: !0x0, mandatory: !0x0 }
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
type: _0x541bc1(0x1a9),
|
|
216
|
+
name: _0x541bc1(0x191),
|
|
217
|
+
header: TermsUtil[_0x541bc1(0x17c)]('name'),
|
|
218
|
+
sortable: !0x1,
|
|
219
|
+
width: 0x9b,
|
|
220
|
+
record: { align: _0x541bc1(0x1a4), editable: !0x0, mandatory: !0x0 }
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
type: 'string',
|
|
224
|
+
name: _0x541bc1(0x173),
|
|
225
|
+
header: TermsUtil['tLabel'](_0x541bc1(0x173)),
|
|
226
|
+
sortable: !0x1,
|
|
227
|
+
width: 0xaf,
|
|
228
|
+
record: { align: 'left', editable: !0x0, mandatory: !0x0 }
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
type: 'string',
|
|
232
|
+
name: _0x541bc1(0x19a),
|
|
233
|
+
header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x19a)),
|
|
234
|
+
sortable: !0x1,
|
|
235
|
+
width: 0xaf,
|
|
236
|
+
record: {
|
|
237
|
+
align: _0x541bc1(0x1a4),
|
|
238
|
+
editable: !0x1,
|
|
239
|
+
mandatory: !0x1,
|
|
240
|
+
renderer: (_0x1af892, _0x3e69e3, _0x8d541c, _0x459efb, _0x56977e) =>
|
|
241
|
+
_0x8d541c && _0x8d541c[_0x541bc1(0x173)]
|
|
242
|
+
? TermsUtil['t'](_0x8d541c['label'], null, _0x8d541c[_0x541bc1(0x173)])
|
|
243
|
+
: _0x8d541c && _0x8d541c[_0x541bc1(0x191)]
|
|
244
|
+
? TermsUtil['tButton'](_0x8d541c[_0x541bc1(0x191)])
|
|
245
|
+
: ''
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
type: 'select',
|
|
250
|
+
name: _0x541bc1(0x1a0),
|
|
251
|
+
header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x1a0)),
|
|
252
|
+
sortable: !0x1,
|
|
253
|
+
width: 0x64,
|
|
254
|
+
record: {
|
|
255
|
+
align: _0x541bc1(0x1a4),
|
|
256
|
+
editable: !0x0,
|
|
257
|
+
mandatory: !0x0,
|
|
258
|
+
options: ['', _0x541bc1(0x17e), _0x541bc1(0x1af), 'grid-basic', _0x541bc1(0x196)]
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
type: _0x541bc1(0x1a9),
|
|
263
|
+
name: 'style',
|
|
264
|
+
header: TermsUtil['tLabel'](_0x541bc1(0x19e)),
|
|
265
|
+
sortable: !0x1,
|
|
266
|
+
width: 0x9b,
|
|
267
|
+
record: { align: 'left', editable: !0x0, mandatory: !0x1 }
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
type: 'parameters',
|
|
271
|
+
name: _0x541bc1(0x1a1),
|
|
272
|
+
header: TermsUtil[_0x541bc1(0x17c)](_0x541bc1(0x1a1)),
|
|
273
|
+
sortable: !0x1,
|
|
274
|
+
width: 0xfa,
|
|
275
|
+
record: {
|
|
276
|
+
align: 'left',
|
|
277
|
+
editable: !0x0,
|
|
278
|
+
mandatory: !0x1,
|
|
279
|
+
renderer: (_0x2cdc04, _0x25936e, _0x5c380, _0x3d37cc, _0x51834d) => {
|
|
280
|
+
const _0x1afebe = _0x541bc1
|
|
281
|
+
if (_0x5c380[_0x1afebe(0x1a1)]) _0x1afebe(0x17e) === _0x5c380['type'] && (_0x5c380['logic'] = void 0x0)
|
|
282
|
+
else {
|
|
283
|
+
if (_0x1afebe(0x17e) === _0x5c380['type']) delete _0x5c380[_0x1afebe(0x1a1)]
|
|
284
|
+
else {
|
|
285
|
+
if (_0x1afebe(0x1af) === _0x5c380['type']) {
|
|
286
|
+
let _0x5cb2c0 = {
|
|
287
|
+
logic: JSON[_0x1afebe(0x18c)](
|
|
288
|
+
{
|
|
289
|
+
open_popup: {
|
|
290
|
+
title: _0x1afebe(0x19c),
|
|
291
|
+
title_detail: _0x1afebe(0x191),
|
|
292
|
+
type: 'popup',
|
|
293
|
+
tagname: _0x1afebe(0x1a3),
|
|
294
|
+
location: 'pages/meta-grist-element.js',
|
|
295
|
+
size: _0x1afebe(0x1ac),
|
|
296
|
+
popup_field: 'param_field',
|
|
297
|
+
parent_field: 'id',
|
|
298
|
+
param: ['filter', 'grist_one', _0x1afebe(0x183)]
|
|
299
|
+
},
|
|
300
|
+
call_scenario: {
|
|
301
|
+
type: _0x1afebe(0x177),
|
|
302
|
+
name: _0x1afebe(0x17b),
|
|
303
|
+
after: _0x1afebe(0x195),
|
|
304
|
+
param: ['filter', 'grist_all', 'grist_selected']
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
null,
|
|
308
|
+
0x2
|
|
309
|
+
)
|
|
310
|
+
}
|
|
311
|
+
_0x5c380[_0x1afebe(0x1a1)] = _0x5cb2c0
|
|
312
|
+
} else {
|
|
313
|
+
if ('grid-basic' === _0x5c380['type']) {
|
|
314
|
+
let _0x348080 = { logic: _0x1afebe(0x181) }
|
|
315
|
+
_0x5c380[_0x1afebe(0x1a1)] = _0x348080
|
|
316
|
+
} else {
|
|
317
|
+
if (_0x1afebe(0x196) === _0x5c380[_0x1afebe(0x1a0)]) {
|
|
318
|
+
let _0xb73a4 = {
|
|
319
|
+
logic: JSON[_0x1afebe(0x18c)](
|
|
320
|
+
{
|
|
321
|
+
open_popup: {
|
|
322
|
+
title: 'menu.variables',
|
|
323
|
+
title_detail: _0x1afebe(0x191),
|
|
324
|
+
type: _0x1afebe(0x185),
|
|
325
|
+
tagname: _0x1afebe(0x1a3),
|
|
326
|
+
location: _0x1afebe(0x189),
|
|
327
|
+
size: 'large',
|
|
328
|
+
popup_field: 'param_field',
|
|
329
|
+
parent_field: 'id'
|
|
330
|
+
},
|
|
331
|
+
open_form_popup: {
|
|
332
|
+
type: _0x1afebe(0x1a8),
|
|
333
|
+
title: _0x1afebe(0x180),
|
|
334
|
+
title_detail: _0x1afebe(0x191),
|
|
335
|
+
size: _0x1afebe(0x1ac),
|
|
336
|
+
menu: 'operation-master'
|
|
337
|
+
},
|
|
338
|
+
call_scenario: { type: 'scenario', name: _0x1afebe(0x17b), after: 'fetch' }
|
|
339
|
+
},
|
|
340
|
+
null,
|
|
341
|
+
0x2
|
|
342
|
+
)
|
|
343
|
+
}
|
|
344
|
+
_0x5c380['logic'] = _0xb73a4
|
|
345
|
+
} else _0x5c380['logic'] = void 0x0
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return getRenderer(_0x1afebe(0x175))(_0x2cdc04, _0x25936e, _0x5c380, _0x3d37cc, _0x51834d)
|
|
351
|
+
},
|
|
352
|
+
options: (_0x1efa75, _0x25bf44, _0x4167e5, _0x536ede, _0x240f8a) => {
|
|
353
|
+
const _0x272ca7 = _0x541bc1
|
|
354
|
+
var { name: _0xacafed, help: _0x443ace } = { name: TermsUtil[_0x272ca7(0x17c)]('logic'), help: '' }
|
|
355
|
+
return {
|
|
356
|
+
name: _0xacafed,
|
|
357
|
+
spec: [{ label: _0x272ca7(0x18f), name: 'logic', type: 'textarea' }],
|
|
358
|
+
help: _0x443ace,
|
|
359
|
+
context: this['buttonTabGrist']
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|