@things-factory/meta-ui 6.0.27 → 6.0.32
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/actions/main.js +3 -3
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +9 -9
- package/client/mixin/meta-master-detail-mixin.js +23 -0
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/entity/config-entity.js +40 -1015
- package/client/pages/entity/main-menu-selector.js +69 -257
- package/client/pages/history/history-copy-list-popup.js +18 -0
- package/client/pages/history/history-json-list-popup.js +18 -0
- package/client/pages/loading-page.js +8 -84
- package/client/pages/menu/dynamic-menu-template.js +34 -175
- package/client/pages/menu/dynamic-menu.js +23 -472
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -0
- package/client/pages/meta-master-detail-page.js +1 -0
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +72 -274
- package/client/pages/terms/config-terminology.js +5 -5
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +108 -61
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +6 -6
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +10 -10
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/translations/en.json +5 -1
- package/translations/ko.json +5 -1
- package/translations/ms.json +5 -1
- package/translations/zh.json +5 -1
|
@@ -1,1044 +1,69 @@
|
|
|
1
|
-
const
|
|
2
|
-
;(function (_0x37927a, _0x27195f) {
|
|
3
|
-
const _0x802f3f = a0_0x13b1,
|
|
4
|
-
_0x524500 = _0x37927a()
|
|
5
|
-
while (!![]) {
|
|
6
|
-
try {
|
|
7
|
-
const _0x2369fc =
|
|
8
|
-
(parseInt(_0x802f3f(0xc9)) / 0x1) * (parseInt(_0x802f3f(0x15d)) / 0x2) +
|
|
9
|
-
parseInt(_0x802f3f(0x10f)) / 0x3 +
|
|
10
|
-
parseInt(_0x802f3f(0x168)) / 0x4 +
|
|
11
|
-
(parseInt(_0x802f3f(0x143)) / 0x5) * (parseInt(_0x802f3f(0x138)) / 0x6) +
|
|
12
|
-
(-parseInt(_0x802f3f(0x141)) / 0x7) * (-parseInt(_0x802f3f(0xe8)) / 0x8) +
|
|
13
|
-
(-parseInt(_0x802f3f(0x156)) / 0x9) * (parseInt(_0x802f3f(0x101)) / 0xa) +
|
|
14
|
-
-parseInt(_0x802f3f(0x13c)) / 0xb
|
|
15
|
-
if (_0x2369fc === _0x27195f) break
|
|
16
|
-
else _0x524500['push'](_0x524500['shift']())
|
|
17
|
-
} catch (_0x153f11) {
|
|
18
|
-
_0x524500['push'](_0x524500['shift']())
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
})(a0_0x166e, 0xa3364)
|
|
22
|
-
import { html } from 'lit'
|
|
23
|
-
import a0_0x5a5606 from 'graphql-tag'
|
|
24
|
-
import { client, gqlContext } from '@operato/graphql'
|
|
25
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
26
|
-
import { PageView } from '@things-factory/shell'
|
|
27
|
-
import { store } from '@operato/shell'
|
|
28
|
-
function a0_0x166e() {
|
|
29
|
-
const _0x5270db = [
|
|
30
|
-
'pop',
|
|
31
|
-
'fetchEntityColumns',
|
|
32
|
-
'create-service',
|
|
33
|
-
'records',
|
|
34
|
-
'searchByPagination',
|
|
35
|
-
'fetchEntities',
|
|
36
|
-
'imex',
|
|
37
|
-
'success\x20to\x20process',
|
|
38
|
-
'LIST',
|
|
39
|
-
'GRID',
|
|
40
|
-
'large',
|
|
41
|
-
'gridWidth',
|
|
42
|
-
'i_like',
|
|
43
|
-
'rank',
|
|
44
|
-
'export',
|
|
45
|
-
'entityColumns',
|
|
46
|
-
'#master-grist',
|
|
47
|
-
'searchFields',
|
|
48
|
-
'timestamp',
|
|
49
|
-
'createUnregisteredTerms',
|
|
50
|
-
'success\x20to\x20register\x20terms',
|
|
51
|
-
'split',
|
|
52
|
-
'getGristColumnConfig2',
|
|
53
|
-
'tButton',
|
|
54
|
-
'getBasicMasterDetailGristStyle',
|
|
55
|
-
'186TFPwDL',
|
|
56
|
-
'nullable',
|
|
57
|
-
'string',
|
|
58
|
-
'error',
|
|
59
|
-
'14946052qWxOkF',
|
|
60
|
-
'deleteEntityColumns',
|
|
61
|
-
'getGristGuttersConfig',
|
|
62
|
-
'accept',
|
|
63
|
-
'button.create-service',
|
|
64
|
-
'3101qrINDr',
|
|
65
|
-
'config-entity',
|
|
66
|
-
'6485NwbEpw',
|
|
67
|
-
'exportEntityColumns',
|
|
68
|
-
'import',
|
|
69
|
-
'createCustomElement',
|
|
70
|
-
'dispatch',
|
|
71
|
-
'updated_at',
|
|
72
|
-
'selectCallback',
|
|
73
|
-
'confirm',
|
|
74
|
-
'refType',
|
|
75
|
-
'delete',
|
|
76
|
-
'#detail-grist',
|
|
77
|
-
'value',
|
|
78
|
-
'ref_type',
|
|
79
|
-
'GRIST_COLUMN_TYPES',
|
|
80
|
-
'FILTER_OPERATORS',
|
|
81
|
-
'medium',
|
|
82
|
-
'size',
|
|
83
|
-
'deleteMasters',
|
|
84
|
-
'importConfig',
|
|
85
|
-
'675vCBIXI',
|
|
86
|
-
'saveEntityColumns',
|
|
87
|
-
'info',
|
|
88
|
-
'label.',
|
|
89
|
-
'gridEditor',
|
|
90
|
-
'BUNDLE',
|
|
91
|
-
'getGristSelectableConfig',
|
|
92
|
-
'19476dxETuZ',
|
|
93
|
-
'checkEntityColumns',
|
|
94
|
-
'search_rank',
|
|
95
|
-
'data',
|
|
96
|
-
'getGristSearchCodeColumnConfig',
|
|
97
|
-
'masterConfig',
|
|
98
|
-
'render',
|
|
99
|
-
'errors',
|
|
100
|
-
'check-columns',
|
|
101
|
-
'length',
|
|
102
|
-
'bind',
|
|
103
|
-
'3998656ZeKzsW',
|
|
104
|
-
'properties',
|
|
105
|
-
'term',
|
|
106
|
-
'select',
|
|
107
|
-
'click',
|
|
108
|
-
'xlsx',
|
|
109
|
-
'createService',
|
|
110
|
-
'bundle',
|
|
111
|
-
'entityId',
|
|
112
|
-
'result',
|
|
113
|
-
'creator_id',
|
|
114
|
-
'setAttribute',
|
|
115
|
-
'domain_id',
|
|
116
|
-
'files',
|
|
117
|
-
'description',
|
|
118
|
-
'message',
|
|
119
|
-
'\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20',
|
|
120
|
-
'openPopupByElement',
|
|
121
|
-
'integer',
|
|
122
|
-
'toolCreateMenu',
|
|
123
|
-
'created_at',
|
|
124
|
-
'forEach',
|
|
125
|
-
'selectedEntity',
|
|
126
|
-
'button.create-menu',
|
|
127
|
-
'text.nothing_selected',
|
|
128
|
-
'target',
|
|
129
|
-
'shadowRoot',
|
|
130
|
-
'getQueryFilters',
|
|
131
|
-
'_config',
|
|
132
|
-
'grid_editor',
|
|
133
|
-
'edit',
|
|
134
|
-
'getGristSearchColumnConfig',
|
|
135
|
-
'detailConfig',
|
|
136
|
-
'query',
|
|
137
|
-
'isNotEmpty',
|
|
138
|
-
'importEntityColumns',
|
|
139
|
-
'importXlsxFile',
|
|
140
|
-
'center',
|
|
141
|
-
'toBoolean',
|
|
142
|
-
'showAlertPopup',
|
|
143
|
-
'findIndex',
|
|
144
|
-
'left-right',
|
|
145
|
-
'57XYhvNp',
|
|
146
|
-
'colSize',
|
|
147
|
-
'context',
|
|
148
|
-
'updateMultiple',
|
|
149
|
-
'header',
|
|
150
|
-
'detailGrist',
|
|
151
|
-
'uniqRank',
|
|
152
|
-
'reduce',
|
|
153
|
-
'domain',
|
|
154
|
-
'fetch',
|
|
155
|
-
'searchForm',
|
|
156
|
-
'searchRank',
|
|
157
|
-
'createElement',
|
|
158
|
-
'entity-column',
|
|
159
|
-
'map',
|
|
160
|
-
'search_oper',
|
|
161
|
-
'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20',
|
|
162
|
-
'filter',
|
|
163
|
-
'grid_rank',
|
|
164
|
-
'getGristColumnConfig',
|
|
165
|
-
'text.no_data',
|
|
166
|
-
'push',
|
|
167
|
-
'question',
|
|
168
|
-
'sequence',
|
|
169
|
-
'type',
|
|
170
|
-
'col_type',
|
|
171
|
-
'record',
|
|
172
|
-
'createMenuTo',
|
|
173
|
-
'input',
|
|
174
|
-
'name',
|
|
175
|
-
'back',
|
|
176
|
-
'6576oZUWPl',
|
|
177
|
-
'key',
|
|
178
|
-
'boolean',
|
|
179
|
-
'updater_id',
|
|
180
|
-
'getGristCodeSelectorColumnConfig',
|
|
181
|
-
'gutter',
|
|
182
|
-
'importHandler',
|
|
183
|
-
'text.are_you_sure',
|
|
184
|
-
'file',
|
|
185
|
-
'__selected__',
|
|
186
|
-
'change',
|
|
187
|
-
'ref_name',
|
|
188
|
-
'left',
|
|
189
|
-
'button',
|
|
190
|
-
'gridRank',
|
|
191
|
-
'pageInitialized',
|
|
192
|
-
'updateMultipleEntity',
|
|
193
|
-
'isMobileEnv',
|
|
194
|
-
'deleteListByGristSelected',
|
|
195
|
-
'refName',
|
|
196
|
-
'deleteEntities',
|
|
197
|
-
'getSelectedIdList',
|
|
198
|
-
'main-menu-selector',
|
|
199
|
-
'querySelector',
|
|
200
|
-
'openMainMenuSelectorPopup',
|
|
201
|
-
'70450UqlmXD',
|
|
202
|
-
'tLabel',
|
|
203
|
-
'creator',
|
|
204
|
-
'patchesForUpdateMultiple',
|
|
205
|
-
'appendChild',
|
|
206
|
-
'entity',
|
|
207
|
-
'colType',
|
|
208
|
-
'tText',
|
|
209
|
-
'saveMasters',
|
|
210
|
-
'toInteger',
|
|
211
|
-
'masterGrist',
|
|
212
|
-
'grid_width',
|
|
213
|
-
'styles',
|
|
214
|
-
'uniq_rank',
|
|
215
|
-
'1789620xdQJFp',
|
|
216
|
-
'showToast',
|
|
217
|
-
'right',
|
|
218
|
-
'updateMultipleEntityColumn',
|
|
219
|
-
'createMenu',
|
|
220
|
-
'currentTarget',
|
|
221
|
-
'cancel',
|
|
222
|
-
'readAsArrayBuffer',
|
|
223
|
-
'searchEntityColumns',
|
|
224
|
-
'save',
|
|
225
|
-
'table_name',
|
|
226
|
-
'hidden',
|
|
227
|
-
'tTitle',
|
|
228
|
-
'tableName',
|
|
229
|
-
'ox-filters-form-base',
|
|
230
|
-
'columns'
|
|
231
|
-
]
|
|
232
|
-
a0_0x166e = function () {
|
|
233
|
-
return _0x5270db
|
|
234
|
-
}
|
|
235
|
-
return a0_0x166e()
|
|
236
|
-
}
|
|
237
|
-
import { EXPORT } from '@things-factory/export-base'
|
|
238
|
-
import { IMPORT } from '@things-factory/import-base'
|
|
239
|
-
import '@things-factory/form-ui'
|
|
240
|
-
import '@things-factory/grist-ui'
|
|
241
|
-
import '@things-factory/import-ui'
|
|
242
|
-
import { TermsUtil } from './../../utils/terms-util'
|
|
243
|
-
import { ValueUtil } from '../../utils/value-util'
|
|
244
|
-
import { MetaApi } from '../../utils/meta-api'
|
|
245
|
-
function a0_0x13b1(_0x437019, _0x584c19) {
|
|
246
|
-
const _0x166ef9 = a0_0x166e()
|
|
247
|
-
return (
|
|
248
|
-
(a0_0x13b1 = function (_0x13b114, _0x11c3db) {
|
|
249
|
-
_0x13b114 = _0x13b114 - 0xc6
|
|
250
|
-
let _0x63f8 = _0x166ef9[_0x13b114]
|
|
251
|
-
return _0x63f8
|
|
252
|
-
}),
|
|
253
|
-
a0_0x13b1(_0x437019, _0x584c19)
|
|
254
|
-
)
|
|
255
|
-
}
|
|
256
|
-
import './main-menu-selector'
|
|
257
|
-
class ConfigEntity extends localize(i18next)(PageView) {
|
|
258
|
-
static get [a0_0x554f97(0x169)]() {
|
|
259
|
-
return {
|
|
260
|
-
searchFields: Array,
|
|
261
|
-
masterConfig: Object,
|
|
262
|
-
detailConfig: Object,
|
|
263
|
-
importConfig: Object,
|
|
264
|
-
entityId: String,
|
|
265
|
-
selectedEntity: Object
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
static get [a0_0x554f97(0x10d)]() {
|
|
269
|
-
const _0x600e1d = a0_0x554f97
|
|
270
|
-
return MetaApi[_0x600e1d(0x137)](_0x600e1d(0xc8))
|
|
271
|
-
}
|
|
272
|
-
get [a0_0x554f97(0xcb)]() {
|
|
273
|
-
const _0x551032 = a0_0x554f97
|
|
274
|
-
return { title: TermsUtil[_0x551032(0x11b)]('entity') }
|
|
275
|
-
}
|
|
276
|
-
get [a0_0x554f97(0xd3)]() {
|
|
277
|
-
const _0x3fc530 = a0_0x554f97
|
|
278
|
-
return this[_0x3fc530(0x182)][_0x3fc530(0xff)](_0x3fc530(0x11d))
|
|
279
|
-
}
|
|
280
|
-
get [a0_0x554f97(0x10b)]() {
|
|
281
|
-
const _0x2377fe = a0_0x554f97
|
|
282
|
-
return this['shadowRoot']['querySelector'](_0x2377fe(0x12f))
|
|
283
|
-
}
|
|
284
|
-
get [a0_0x554f97(0xce)]() {
|
|
285
|
-
const _0x30971e = a0_0x554f97
|
|
286
|
-
return this[_0x30971e(0x182)]['querySelector'](_0x30971e(0x14d))
|
|
287
|
-
}
|
|
288
|
-
async [a0_0x554f97(0x124)]({
|
|
289
|
-
page: _0x369443,
|
|
290
|
-
limit: _0x5a1699,
|
|
291
|
-
sorters: _0x363185 = [{ name: a0_0x554f97(0x16f) }, { name: a0_0x554f97(0xe6) }]
|
|
292
|
-
}) {
|
|
293
|
-
const _0x17d8e8 = a0_0x554f97
|
|
294
|
-
;(this[_0x17d8e8(0x170)] = null),
|
|
295
|
-
(this[_0x17d8e8(0x17e)] = null),
|
|
296
|
-
this[_0x17d8e8(0xce)] && this[_0x17d8e8(0xce)][_0x17d8e8(0x160)] && (this[_0x17d8e8(0xce)]['data'] = {})
|
|
297
|
-
let _0x9f7c26 = [...(await this[_0x17d8e8(0xd3)][_0x17d8e8(0x183)]())]
|
|
298
|
-
return await MetaApi[_0x17d8e8(0x123)]('entities', _0x9f7c26, _0x363185, _0x369443, _0x5a1699, _0x17d8e8(0xd9))
|
|
299
|
-
}
|
|
300
|
-
async [a0_0x554f97(0x120)]({
|
|
301
|
-
page: _0x24090a,
|
|
302
|
-
limit: _0x3d6f69,
|
|
303
|
-
sorters: _0x2dec83 = [{ name: a0_0x554f97(0x12c) }]
|
|
304
|
-
}) {
|
|
305
|
-
const _0x518238 = a0_0x554f97
|
|
306
|
-
if (this[_0x518238(0x170)]) {
|
|
307
|
-
let _0x4fa48f = [{ name: 'entityId', operator: 'eq', value: this[_0x518238(0x170)] }],
|
|
308
|
-
_0x1bb865 = _0x518238(0x178)
|
|
309
|
-
return await MetaApi[_0x518238(0x123)](_0x518238(0x12e), _0x4fa48f, _0x2dec83, _0x24090a, _0x3d6f69, _0x1bb865)
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
async [a0_0x554f97(0x117)](_0x581ac9) {
|
|
313
|
-
const _0x3f79ac = a0_0x554f97
|
|
314
|
-
;(this['entityId'] = _0x581ac9['id']), (this[_0x3f79ac(0x17e)] = _0x581ac9), await this[_0x3f79ac(0xce)]['fetch']()
|
|
315
|
-
}
|
|
316
|
-
async [a0_0x554f97(0x100)]() {
|
|
317
|
-
const _0x24fbb2 = a0_0x554f97
|
|
318
|
-
let _0xcf0c23 = MetaApi[_0x24fbb2(0x146)]('main-menu-selector', _0x24fbb2(0xfe))
|
|
319
|
-
;(_0xcf0c23[_0x24fbb2(0x149)] = this[_0x24fbb2(0xe4)][_0x24fbb2(0x167)](this)),
|
|
320
|
-
await MetaApi[_0x24fbb2(0x179)](TermsUtil['tButton']('create-menu'), _0x24fbb2(0x152), _0xcf0c23, !0x0)
|
|
321
|
-
}
|
|
322
|
-
async [a0_0x554f97(0x109)]() {
|
|
323
|
-
const _0x3805ec = a0_0x554f97
|
|
324
|
-
let _0x2528bc = MetaApi[_0x3805ec(0x104)](this[_0x3805ec(0x10b)])
|
|
325
|
-
ValueUtil[_0x3805ec(0x18a)](_0x2528bc) &&
|
|
326
|
-
(await MetaApi[_0x3805ec(0xcc)](_0x3805ec(0xf8), _0x2528bc)) &&
|
|
327
|
-
this[_0x3805ec(0x10b)][_0x3805ec(0xd2)]()
|
|
328
|
-
}
|
|
329
|
-
async [a0_0x554f97(0x154)]() {
|
|
330
|
-
const _0x44f64c = a0_0x554f97
|
|
331
|
-
await MetaApi[_0x44f64c(0xfa)](this[_0x44f64c(0x10b)], _0x44f64c(0xfc))
|
|
332
|
-
}
|
|
333
|
-
async [a0_0x554f97(0x157)]() {
|
|
334
|
-
const _0x118872 = a0_0x554f97
|
|
335
|
-
if (this[_0x118872(0x170)]) {
|
|
336
|
-
let _0x5a9e56 = MetaApi[_0x118872(0x104)](this[_0x118872(0xce)])
|
|
337
|
-
if (ValueUtil[_0x118872(0x18a)](_0x5a9e56)) {
|
|
338
|
-
let _0x253d8d = 0x0
|
|
339
|
-
_0x5a9e56['forEach'](_0x158742 => {
|
|
340
|
-
const _0x58ae65 = _0x118872
|
|
341
|
-
;(_0x253d8d += 0xa),
|
|
342
|
-
(_0x158742['entity'] = { id: this[_0x58ae65(0x170)] }),
|
|
343
|
-
(_0x158742['nullable'] =
|
|
344
|
-
void 0x0 !== _0x158742[_0x58ae65(0x139)] && null != _0x158742[_0x58ae65(0x139)] && _0x158742['nullable']),
|
|
345
|
-
(_0x158742[_0x58ae65(0x12c)] =
|
|
346
|
-
_0x158742[_0x58ae65(0x12c)] && 0x0 != _0x158742['rank'] ? _0x158742[_0x58ae65(0x12c)] : _0x253d8d),
|
|
347
|
-
(_0x158742['gridRank'] = _0x158742[_0x58ae65(0xf6)] ? _0x158742[_0x58ae65(0xf6)] : 0x0),
|
|
348
|
-
(_0x158742[_0x58ae65(0x16a)] = _0x158742['term']
|
|
349
|
-
? _0x158742[_0x58ae65(0x16a)]
|
|
350
|
-
: _0x158742[_0x58ae65(0xe6)]),
|
|
351
|
-
(_0x158742[_0x58ae65(0x107)] = _0x158742['colType'] ? _0x158742['colType'] : _0x58ae65(0x13a)),
|
|
352
|
-
(_0x158742['colSize'] =
|
|
353
|
-
_0x58ae65(0x13a) != _0x158742[_0x58ae65(0x107)] || _0x158742[_0x58ae65(0xca)]
|
|
354
|
-
? _0x158742[_0x58ae65(0xca)]
|
|
355
|
-
: 0x32)
|
|
356
|
-
}),
|
|
357
|
-
(await MetaApi[_0x118872(0xcc)](_0x118872(0x112), _0x5a9e56)) && this['detailGrist'][_0x118872(0xd2)]()
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
async [a0_0x554f97(0x13d)]() {
|
|
362
|
-
const _0x423849 = a0_0x554f97
|
|
363
|
-
await MetaApi[_0x423849(0xfa)](this[_0x423849(0xce)], _0x423849(0x13d))
|
|
364
|
-
}
|
|
365
|
-
async [a0_0x554f97(0x16e)]() {
|
|
366
|
-
const _0x54cdaa = a0_0x554f97
|
|
367
|
-
if (
|
|
368
|
-
(
|
|
369
|
-
await MetaApi['showAlertPopup'](
|
|
370
|
-
_0x54cdaa(0x140),
|
|
371
|
-
_0x54cdaa(0xef),
|
|
372
|
-
_0x54cdaa(0xdf),
|
|
373
|
-
_0x54cdaa(0x14a),
|
|
374
|
-
_0x54cdaa(0x115)
|
|
375
|
-
)
|
|
376
|
-
)[_0x54cdaa(0x14e)]
|
|
377
|
-
) {
|
|
378
|
-
let _0x193838 = MetaApi[_0x54cdaa(0xfd)](this['masterGrist'], !0x0)
|
|
379
|
-
if (_0x193838) {
|
|
380
|
-
let _0x5a4607 = _0x193838[0x0]
|
|
381
|
-
const _0x139014 = await client[_0x54cdaa(0x189)]({
|
|
382
|
-
query: a0_0x5a5606`
|
|
1
|
+
const a0_0x222be3=a0_0x5eb4;(function(_0x13c919,_0x217c24){const _0x3ecdf2=a0_0x5eb4,_0x2607d9=_0x13c919();while(!![]){try{const _0x400cf8=-parseInt(_0x3ecdf2(0x22c))/0x1+-parseInt(_0x3ecdf2(0x1f3))/0x2*(parseInt(_0x3ecdf2(0x1dc))/0x3)+-parseInt(_0x3ecdf2(0x22a))/0x4+parseInt(_0x3ecdf2(0x23a))/0x5*(-parseInt(_0x3ecdf2(0x213))/0x6)+parseInt(_0x3ecdf2(0x20b))/0x7+parseInt(_0x3ecdf2(0x1e8))/0x8+parseInt(_0x3ecdf2(0x23e))/0x9;if(_0x400cf8===_0x217c24)break;else _0x2607d9['push'](_0x2607d9['shift']());}catch(_0x2e723d){_0x2607d9['push'](_0x2607d9['shift']());}}}(a0_0x4484,0xd3392));function a0_0x4484(){const _0x4463cb=['4115744bUKFHx','string','1116875agPwGp','center','bind','entity-column','entity','COLUMN_REF_TYPE','updater_id','query','filter','detailConfig','hidden','text.nothing_selected','updateMultipleEntityColumn','type','5vAyVMs','rank','key','pop','19791063aYaafv','toInteger','text.are_you_sure','searchByPagination','searchFields','appendChild','_config','save','undefined','dataProp','deleteMasters','checkEntityColumns','length','delete','created_at','createMenu','getGristCodeSelectorColumnConfig','createUnregisteredTerms','FILTER_OPERATORS','tText','BUNDLE','right','imex','term','isMobileEnv','entityId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20','ENTITY_GRIST_COLUMN_TYPES','medium','dispatch','info','uniqRank','updated_at','getGristColumnConfig','GRIST_COLUMN_TYPES','isNotEmpty','masterConfig','records','file','grid_rank','search_oper','creator','fetchEntities','gridWidth','split','LIST','export','check-columns','createMenuTo','gutter','createService','body','import','getSelectedIdList','table_name','left-right','getQueryFilters','gridRank','accept','searchRank','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20dataProp\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','register-terms','refName','getGristSelectableConfig','patchesForUpdateMultiple','getGristColumnConfig2','entities','shadowRoot','description','render','ENTITY_COLUMN_TYPES','grid_editor','button.create-service','creator_id','deleteListByGristSelected','boolean','question','header','success\x20to\x20process','toolCreateMenu','left','col_type','back','setAttribute','integer','masterGrist','large','timestamp','tTitle','colSize','getGristSearchColumnConfig','openMainMenuSelectorPopup','ref_type','getGristGuttersConfig','domain_id','348OzZGgt','xlsx','openPopupByElement','data','target','onload','columns','click','deleteEntities','change','exportEntityColumns','#detail-grist','5245176leLSnK','value','getBasicMasterDetailGristStyle','create-service','label.','reduce','pageInitialized','refType','name','nullable','#master-grist','6194AsEvJr','showAlertPopup','define','map','saveMasters','record','bundle','ref_name','entityColumns','tLabel','findIndex','importXlsxFile','select','selectedEntity','updateMultiple','sequence','main-menu-selector','confirm','createElement','size','toolCreateService','fetch','cancel','detailGrist','8999256EqLGEI','push','ox-filters-form-base','getGristSearchCodeColumnConfig','gridEditor','showToast','__selected__','success\x20to\x20register\x20terms','4620174AsMbkU','ENTITY_HIST_TYPE','searchEntityColumns','fetchEntityColumns','forEach','querySelector','GRID','toBoolean','createCustomElement','colType','button','tButton','create-menu','importConfig','currentTarget','updateMultipleEntity','search_rank','error','grid_width','deleteEntityColumns','message','edit','text.no_data'];a0_0x4484=function(){return _0x4463cb;};return a0_0x4484();}import{html}from'lit-element';import a0_0x23c82e from'graphql-tag';import{client,gqlContext}from'@operato/graphql';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{store}from'@operato/shell';import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/grist-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x5eb4(_0x5c40e4,_0x3175c9){const _0x4484d5=a0_0x4484();return a0_0x5eb4=function(_0x5eb436,_0x378cbc){_0x5eb436=_0x5eb436-0x180;let _0x831748=_0x4484d5[_0x5eb436];return _0x831748;},a0_0x5eb4(_0x5c40e4,_0x3175c9);}import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get['properties'](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get['styles'](){const _0x58cae6=a0_0x5eb4;return MetaApi[_0x58cae6(0x1ea)](_0x58cae6(0x1b4));}get['context'](){const _0x50412d=a0_0x5eb4;return{'title':TermsUtil[_0x50412d(0x1d5)]('entity')};}get['searchForm'](){const _0xca106=a0_0x5eb4;return this[_0xca106(0x1c0)][_0xca106(0x218)](_0xca106(0x20d));}get['masterGrist'](){const _0x5a59b3=a0_0x5eb4;return this[_0x5a59b3(0x1c0)][_0x5a59b3(0x218)](_0x5a59b3(0x1f2));}get[a0_0x222be3(0x20a)](){const _0x4e80a7=a0_0x222be3;return this['shadowRoot']['querySelector'](_0x4e80a7(0x1e7));}async[a0_0x222be3(0x1a7)]({page:_0x3e7fa3,limit:_0xc19ac,sorters:_0x46aa41=[{'name':a0_0x222be3(0x1f9)},{'name':'name'}]}){const _0x2f76e7=a0_0x222be3;this['entityId']=null,this[_0x2f76e7(0x200)]=null,this['detailGrist']&&this[_0x2f76e7(0x20a)][_0x2f76e7(0x1df)]&&(this[_0x2f76e7(0x20a)]['data']={});let _0x50274f=[...await this['searchForm'][_0x2f76e7(0x1b5)]()];return await MetaApi['searchByPagination'](_0x2f76e7(0x1bf),_0x50274f,_0x46aa41,_0x3e7fa3,_0xc19ac,_0x2f76e7(0x1b9));}async[a0_0x222be3(0x216)]({page:_0x257d9f,limit:_0x2c26cd,sorters:_0x49be7d=[{'name':a0_0x222be3(0x23b)}]}){const _0x55b654=a0_0x222be3;if(this[_0x55b654(0x196)]){let _0x579a56=[{'name':_0x55b654(0x196),'operator':'eq','value':this['entityId']}],_0x371d3f=_0x55b654(0x197);return await MetaApi[_0x55b654(0x180)](_0x55b654(0x1fb),_0x579a56,_0x49be7d,_0x257d9f,_0x2c26cd,_0x371d3f);}}async[a0_0x222be3(0x215)](_0x23c511){const _0x585349=a0_0x222be3;this['entityId']=_0x23c511['id'],this[_0x585349(0x200)]=_0x23c511,await this['detailGrist']['fetch']();}async[a0_0x222be3(0x1d8)](){const _0x23c6b1=a0_0x222be3;let _0x51a4cf=MetaApi[_0x23c6b1(0x21b)](_0x23c6b1(0x203),_0x23c6b1(0x203));_0x51a4cf['selectCallback']=this[_0x23c6b1(0x1ad)][_0x23c6b1(0x22e)](this),await MetaApi[_0x23c6b1(0x1de)](TermsUtil[_0x23c6b1(0x21e)](_0x23c6b1(0x21f)),_0x23c6b1(0x199),_0x51a4cf,!0x0);}async[a0_0x222be3(0x1f7)](){const _0x2afba7=a0_0x222be3;let _0x4a2c0d=MetaApi[_0x2afba7(0x1bd)](this[_0x2afba7(0x1d2)]);ValueUtil['isNotEmpty'](_0x4a2c0d)&&(await MetaApi[_0x2afba7(0x201)](_0x2afba7(0x222),_0x4a2c0d)&&this[_0x2afba7(0x1d2)][_0x2afba7(0x208)]());}async['deleteMasters'](){const _0x57f0e3=a0_0x222be3;await MetaApi[_0x57f0e3(0x1c7)](this['masterGrist'],_0x57f0e3(0x1e4));}async['saveEntityColumns'](){const _0x1d92bc=a0_0x222be3;if(this[_0x1d92bc(0x196)]){let _0x5ad2f5=MetaApi['patchesForUpdateMultiple'](this[_0x1d92bc(0x20a)]);if(ValueUtil[_0x1d92bc(0x1a0)](_0x5ad2f5)){let _0x172100=0x0;_0x5ad2f5['forEach'](_0x43aa9d=>{const _0x3c9b94=_0x1d92bc;_0x172100+=0xa,_0x43aa9d[_0x3c9b94(0x230)]={'id':this[_0x3c9b94(0x196)]},_0x43aa9d[_0x3c9b94(0x1f1)]=void 0x0!==_0x43aa9d[_0x3c9b94(0x1f1)]&&null!=_0x43aa9d['nullable']&&_0x43aa9d['nullable'],_0x43aa9d['rank']=_0x43aa9d[_0x3c9b94(0x23b)]&&0x0!=_0x43aa9d[_0x3c9b94(0x23b)]?_0x43aa9d[_0x3c9b94(0x23b)]:_0x172100,_0x43aa9d[_0x3c9b94(0x1b6)]=_0x43aa9d[_0x3c9b94(0x1b6)]?_0x43aa9d[_0x3c9b94(0x1b6)]:0x0,_0x43aa9d[_0x3c9b94(0x194)]=_0x43aa9d['term']?_0x43aa9d[_0x3c9b94(0x194)]:_0x43aa9d[_0x3c9b94(0x1f0)],_0x43aa9d[_0x3c9b94(0x21c)]=_0x43aa9d['colType']?_0x43aa9d[_0x3c9b94(0x21c)]:_0x3c9b94(0x22b),_0x43aa9d['colSize']='string'!=_0x43aa9d[_0x3c9b94(0x21c)]||_0x43aa9d[_0x3c9b94(0x1d6)]?_0x43aa9d[_0x3c9b94(0x1d6)]:0x32;}),await MetaApi[_0x1d92bc(0x201)](_0x1d92bc(0x238),_0x5ad2f5)&&this['detailGrist'][_0x1d92bc(0x208)]();}}}async['deleteEntityColumns'](){const _0x3e4b3f=a0_0x222be3;await MetaApi['deleteListByGristSelected'](this[_0x3e4b3f(0x20a)],_0x3e4b3f(0x226));}async[a0_0x222be3(0x1af)](){const _0x2f2c92=a0_0x222be3;if((await MetaApi[_0x2f2c92(0x1f4)](_0x2f2c92(0x1c5),_0x2f2c92(0x240),_0x2f2c92(0x1c9),_0x2f2c92(0x204),_0x2f2c92(0x209)))[_0x2f2c92(0x1e9)]){let _0x289b56=MetaApi[_0x2f2c92(0x1b2)](this[_0x2f2c92(0x1d2)],!0x0);if(_0x289b56){let _0x3d6846=_0x289b56[0x0];const _0x1dc31=await client[_0x2f2c92(0x233)]({'query':a0_0x23c82e`
|
|
383
2
|
query ($id: String!) {
|
|
384
3
|
toolCreateService(id: $id)
|
|
385
4
|
}
|
|
386
|
-
`,
|
|
387
|
-
variables: { id: _0x5a4607 },
|
|
388
|
-
context: gqlContext()
|
|
389
|
-
})
|
|
390
|
-
_0x139014 &&
|
|
391
|
-
_0x139014[_0x54cdaa(0x160)] &&
|
|
392
|
-
_0x139014[_0x54cdaa(0x160)]['toolCreateService'] &&
|
|
393
|
-
MetaApi[_0x54cdaa(0x110)](_0x54cdaa(0x158), TermsUtil[_0x54cdaa(0x108)](_0x54cdaa(0x126)))
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
async [a0_0x554f97(0x113)]() {
|
|
398
|
-
const _0x875585 = a0_0x554f97
|
|
399
|
-
if (this[_0x875585(0x170)])
|
|
400
|
-
(
|
|
401
|
-
await MetaApi['showAlertPopup'](
|
|
402
|
-
_0x875585(0x17f),
|
|
403
|
-
_0x875585(0xef),
|
|
404
|
-
_0x875585(0xdf),
|
|
405
|
-
_0x875585(0x14a),
|
|
406
|
-
_0x875585(0x115)
|
|
407
|
-
)
|
|
408
|
-
)[_0x875585(0x14e)] &&
|
|
409
|
-
MetaApi['getSelectedIdList'](this[_0x875585(0x10b)], !0x0) &&
|
|
410
|
-
(await this[_0x875585(0x100)]())
|
|
411
|
-
else MetaApi[_0x875585(0xc6)](_0x875585(0x180), 'text.nothing_selected', _0x875585(0x158), _0x875585(0x14a))
|
|
412
|
-
}
|
|
413
|
-
async [a0_0x554f97(0xe4)](_0x507dd6) {
|
|
414
|
-
const _0x5b6d83 = a0_0x554f97,
|
|
415
|
-
_0xa78959 = await client[_0x5b6d83(0x189)]({
|
|
416
|
-
query: a0_0x5a5606`
|
|
5
|
+
`,'variables':{'id':_0x3d6846},'context':gqlContext()});_0x1dc31&&_0x1dc31[_0x2f2c92(0x1df)]&&_0x1dc31[_0x2f2c92(0x1df)][_0x2f2c92(0x207)]&&MetaApi[_0x2f2c92(0x210)](_0x2f2c92(0x19b),TermsUtil[_0x2f2c92(0x190)]('success\x20to\x20process'));}}}async[a0_0x222be3(0x18c)](){const _0x2b24fe=a0_0x222be3;if(this['entityId'])(await MetaApi['showAlertPopup']('button.create-menu',_0x2b24fe(0x240),'question',_0x2b24fe(0x204),_0x2b24fe(0x209)))[_0x2b24fe(0x1e9)]&&MetaApi[_0x2b24fe(0x1b2)](this[_0x2b24fe(0x1d2)],!0x0)&&await this['openMainMenuSelectorPopup']();else MetaApi[_0x2b24fe(0x1f4)](_0x2b24fe(0x237),_0x2b24fe(0x237),_0x2b24fe(0x19b),_0x2b24fe(0x204));}async[a0_0x222be3(0x1ad)](_0x3346ae){const _0x173bc0=a0_0x222be3,_0x21ecba=await client[_0x173bc0(0x233)]({'query':a0_0x23c82e`
|
|
417
6
|
mutation($id: String!, $parent_menu_id: String!) {
|
|
418
7
|
toolCreateMenu(id: $id, parent_menu_id: $parent_menu_id)
|
|
419
8
|
}
|
|
420
|
-
`,
|
|
421
|
-
variables: { id: this[_0x5b6d83(0x170)], parent_menu_id: _0x507dd6 },
|
|
422
|
-
context: gqlContext()
|
|
423
|
-
})
|
|
424
|
-
return _0xa78959 && _0xa78959[_0x5b6d83(0x160)] && _0xa78959[_0x5b6d83(0x160)][_0x5b6d83(0x17b)]
|
|
425
|
-
? (MetaApi[_0x5b6d83(0x110)](_0x5b6d83(0x158), TermsUtil[_0x5b6d83(0x108)](_0x5b6d83(0x126))), { success: !0x0 })
|
|
426
|
-
: { success: !0x1 }
|
|
427
|
-
}
|
|
428
|
-
async [a0_0x554f97(0x132)]() {
|
|
429
|
-
const _0x2a1072 = a0_0x554f97
|
|
430
|
-
try {
|
|
431
|
-
if (this[_0x2a1072(0x170)]) {
|
|
432
|
-
const _0x48e67b = this['detailGrist'][_0x2a1072(0x160)][_0x2a1072(0x122)]
|
|
433
|
-
[_0x2a1072(0xda)](_0x69e668 => TermsUtil['tLabel'](_0x69e668[_0x2a1072(0x16a)]) === _0x69e668['term'])
|
|
434
|
-
[_0x2a1072(0xd7)](_0x450d2d => _0x2a1072(0x159) + _0x450d2d['term']),
|
|
435
|
-
_0x42ce05 = this[_0x2a1072(0x17e)][_0x2a1072(0x16f)]
|
|
436
|
-
_0x48e67b[_0x2a1072(0x166)] &&
|
|
437
|
-
((
|
|
438
|
-
await client[_0x2a1072(0x189)]({
|
|
439
|
-
query: a0_0x5a5606`
|
|
9
|
+
`,'variables':{'id':this['entityId'],'parent_menu_id':_0x3346ae},'context':gqlContext()});return _0x21ecba&&_0x21ecba['data']&&_0x21ecba[_0x173bc0(0x1df)][_0x173bc0(0x1cc)]?(MetaApi[_0x173bc0(0x210)](_0x173bc0(0x19b),TermsUtil[_0x173bc0(0x190)](_0x173bc0(0x1cb))),{'success':!0x0}):{'success':!0x1};}async[a0_0x222be3(0x18e)](){const _0x276404=a0_0x222be3;try{if(this[_0x276404(0x196)]){const _0x32cf9a=this[_0x276404(0x20a)]['data'][_0x276404(0x1a2)]['filter'](_0x3da3b9=>TermsUtil[_0x276404(0x1fc)](_0x3da3b9[_0x276404(0x194)])===_0x3da3b9['term'])['map'](_0x4de0d3=>_0x276404(0x1ec)+_0x4de0d3[_0x276404(0x194)]),_0x8e5981=this[_0x276404(0x200)][_0x276404(0x1f9)];_0x32cf9a[_0x276404(0x189)]&&((await client[_0x276404(0x233)]({'query':a0_0x23c82e`
|
|
440
10
|
query setTranslations($bundle: String!, $terms: [String!]!) {
|
|
441
11
|
setTranslations(bundle: $bundle, terms: $terms)
|
|
442
12
|
}
|
|
443
|
-
`,
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
} catch (_0x5df3cf) {
|
|
450
|
-
MetaApi[_0x2a1072(0x110)](_0x2a1072(0x13b), _0x5df3cf[_0x2a1072(0x177)])
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
async [a0_0x554f97(0x144)]() {
|
|
454
|
-
const _0x289521 = a0_0x554f97
|
|
455
|
-
let _0x2d5a9e = this['detailGrist'][_0x289521(0x184)][_0x289521(0x11e)]
|
|
456
|
-
[_0x289521(0xda)](
|
|
457
|
-
_0x1cf8c9 =>
|
|
458
|
-
_0x289521(0xed) !== _0x1cf8c9['type'] &&
|
|
459
|
-
void 0x0 !== _0x1cf8c9[_0x289521(0xe3)] &&
|
|
460
|
-
void 0x0 !== _0x1cf8c9[_0x289521(0x125)]
|
|
461
|
-
)
|
|
462
|
-
[_0x289521(0xd7)](_0x25a704 => _0x25a704['imex']),
|
|
463
|
-
_0x35f3df = this[_0x289521(0xce)]['data'][_0x289521(0x122)][_0x289521(0xd7)](_0x4d20ed => ({
|
|
464
|
-
id: _0x4d20ed['id'],
|
|
465
|
-
...this['detailGrist']['_config'][_0x289521(0x11e)]
|
|
466
|
-
[_0x289521(0xda)](
|
|
467
|
-
_0x55ca1b =>
|
|
468
|
-
_0x289521(0xed) !== _0x55ca1b[_0x289521(0xe1)] &&
|
|
469
|
-
void 0x0 !== _0x55ca1b[_0x289521(0xe3)] &&
|
|
470
|
-
void 0x0 !== _0x55ca1b[_0x289521(0x125)]
|
|
471
|
-
)
|
|
472
|
-
[_0x289521(0xd0)](
|
|
473
|
-
(_0x472d4f, _0x284701) => (
|
|
474
|
-
(_0x472d4f[_0x284701[_0x289521(0x125)][_0x289521(0xe9)]] = _0x284701[_0x289521(0x125)][_0x289521(0xe9)]
|
|
475
|
-
[_0x289521(0x134)]('.')
|
|
476
|
-
[_0x289521(0xd0)](
|
|
477
|
-
(_0x2add39, _0x359c0e) =>
|
|
478
|
-
_0x2add39 && 'undefined' !== _0x2add39[_0x359c0e] ? _0x2add39[_0x359c0e] : void 0x0,
|
|
479
|
-
_0x4d20ed
|
|
480
|
-
)),
|
|
481
|
-
_0x472d4f
|
|
482
|
-
),
|
|
483
|
-
{}
|
|
484
|
-
)
|
|
485
|
-
}))
|
|
486
|
-
store['dispatch']({
|
|
487
|
-
type: EXPORT,
|
|
488
|
-
exportable: {
|
|
489
|
-
extension: 'xlsx',
|
|
490
|
-
name: TermsUtil[_0x289521(0x11b)]('entity-column') + '-' + this['selectedEntity'][_0x289521(0xe6)],
|
|
491
|
-
data: { header: _0x2d5a9e, data: _0x35f3df }
|
|
492
|
-
}
|
|
493
|
-
})
|
|
494
|
-
}
|
|
495
|
-
async [a0_0x554f97(0x18c)]() {
|
|
496
|
-
const _0x2f2ffe = a0_0x554f97
|
|
497
|
-
let _0x4cede0 = this
|
|
498
|
-
const _0x3e4651 = document[_0x2f2ffe(0xd5)](_0x2f2ffe(0xe5))
|
|
499
|
-
_0x3e4651[_0x2f2ffe(0x173)](_0x2f2ffe(0xe1), _0x2f2ffe(0xf0)),
|
|
500
|
-
_0x3e4651['setAttribute'](_0x2f2ffe(0x13f), [_0x2f2ffe(0x16d)]),
|
|
501
|
-
(_0x3e4651[_0x2f2ffe(0x11a)] = !0x0),
|
|
502
|
-
_0x3e4651['addEventListener'](_0x2f2ffe(0xf2), _0x40ee42 => {
|
|
503
|
-
const _0x244abd = _0x2f2ffe,
|
|
504
|
-
_0x581338 = _0x40ee42[_0x244abd(0x114)][_0x244abd(0x175)][0x0],
|
|
505
|
-
_0x147856 = _0x581338[_0x244abd(0xe6)]['split']('.')[_0x244abd(0x11f)](),
|
|
506
|
-
_0x3e799c = new FileReader()
|
|
507
|
-
;(_0x3e799c['onload'] = function (_0x118625) {
|
|
508
|
-
const _0x48a807 = _0x244abd,
|
|
509
|
-
_0x58c4cb = _0x118625[_0x48a807(0x181)][_0x48a807(0x171)]
|
|
510
|
-
store[_0x48a807(0x147)]({
|
|
511
|
-
type: IMPORT,
|
|
512
|
-
importable: {
|
|
513
|
-
extension: _0x147856,
|
|
514
|
-
handler: _0x4cede0['importEntityColumns'][_0x48a807(0x167)](_0x4cede0)
|
|
515
|
-
},
|
|
516
|
-
data: _0x58c4cb
|
|
517
|
-
})
|
|
518
|
-
}),
|
|
519
|
-
_0x3e799c[_0x244abd(0x116)](_0x581338)
|
|
520
|
-
}),
|
|
521
|
-
document['body'][_0x2f2ffe(0x105)](_0x3e4651),
|
|
522
|
-
_0x3e4651[_0x2f2ffe(0x16c)]()
|
|
523
|
-
}
|
|
524
|
-
[a0_0x554f97(0x18b)](_0x32e876) {
|
|
525
|
-
const _0x59f57b = a0_0x554f97
|
|
526
|
-
let _0x1d34f6 = _0x32e876[_0x59f57b(0xcd)] ? _0x32e876['data'] : _0x32e876
|
|
527
|
-
if (_0x1d34f6 && _0x1d34f6[_0x59f57b(0x166)] > 0x0) {
|
|
528
|
-
_0x1d34f6[_0x59f57b(0x17d)](_0x1f6053 => {
|
|
529
|
-
const _0x40569b = _0x59f57b
|
|
530
|
-
_0x1f6053[_0x40569b(0xf1)] = !0x0
|
|
531
|
-
})
|
|
532
|
-
let _0x501f43 = this[_0x59f57b(0x155)][_0x59f57b(0x11e)]['filter'](_0x7aeae9 => !!_0x7aeae9[_0x59f57b(0x125)])
|
|
533
|
-
setTimeout(() => {
|
|
534
|
-
const _0xcbb82c = _0x59f57b
|
|
535
|
-
MetaApi[_0xcbb82c(0x179)](
|
|
536
|
-
TermsUtil[_0xcbb82c(0x11b)]('import'),
|
|
537
|
-
_0xcbb82c(0x129),
|
|
538
|
-
html` <import-pop-up
|
|
539
|
-
.records=${_0x1d34f6}
|
|
540
|
-
.config=${{
|
|
541
|
-
rows: _0x1d34f6,
|
|
542
|
-
columns: [{ type: _0xcbb82c(0xed), gutterName: _0xcbb82c(0xe0) }, ..._0x501f43]
|
|
543
|
-
}}
|
|
544
|
-
.importHandler="${this[_0xcbb82c(0xee)][_0xcbb82c(0x167)](this)}"
|
|
545
|
-
>
|
|
546
|
-
</import-pop-up>`
|
|
547
|
-
)
|
|
548
|
-
}, 0x1f4)
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
async [a0_0x554f97(0xee)](_0x1d6ca0) {
|
|
552
|
-
const _0x10c890 = a0_0x554f97
|
|
553
|
-
if (_0x1d6ca0 && 0x0 != _0x1d6ca0[_0x10c890(0x166)]) {
|
|
554
|
-
let _0x212245 = 0x0
|
|
555
|
-
_0x1d6ca0[_0x10c890(0x17d)](_0x5f2ea1 => {
|
|
556
|
-
const _0xa5e174 = _0x10c890
|
|
557
|
-
;(_0x212245 += 0xa),
|
|
558
|
-
(_0x5f2ea1['colSize'] = ValueUtil[_0xa5e174(0x18a)](_0x5f2ea1[_0xa5e174(0xca)])
|
|
559
|
-
? ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['colSize'])
|
|
560
|
-
: _0xa5e174(0x13a) == _0x5f2ea1['colType']
|
|
561
|
-
? 0x32
|
|
562
|
-
: 0x0),
|
|
563
|
-
(_0x5f2ea1[_0xa5e174(0x12c)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12c)], 0x0)),
|
|
564
|
-
(_0x5f2ea1[_0xa5e174(0xcf)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['uniqRank'], 0x0)),
|
|
565
|
-
(_0x5f2ea1[_0xa5e174(0xd4)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0xd4)], 0x0)),
|
|
566
|
-
(_0x5f2ea1[_0xa5e174(0xf6)] = ValueUtil['toInteger'](_0x5f2ea1[_0xa5e174(0xf6)], 0x0)),
|
|
567
|
-
(_0x5f2ea1[_0xa5e174(0x12a)] = ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12a)], 0x0)),
|
|
568
|
-
(_0x5f2ea1[_0xa5e174(0x106)] = { id: this[_0xa5e174(0x170)] }),
|
|
569
|
-
(_0x5f2ea1['nullable'] = ValueUtil[_0xa5e174(0x18e)](_0x5f2ea1[_0xa5e174(0x139)])),
|
|
570
|
-
(_0x5f2ea1[_0xa5e174(0x16a)] = _0x5f2ea1[_0xa5e174(0x16a)] ? _0x5f2ea1['term'] : _0x5f2ea1[_0xa5e174(0xe6)]),
|
|
571
|
-
(_0x5f2ea1['colType'] = _0x5f2ea1[_0xa5e174(0x107)] ? _0x5f2ea1[_0xa5e174(0x107)] : _0xa5e174(0x13a)),
|
|
572
|
-
delete _0x5f2ea1[_0xa5e174(0x13a)]
|
|
573
|
-
}),
|
|
574
|
-
(await MetaApi[_0x10c890(0xcc)](_0x10c890(0x112), _0x1d6ca0)) &&
|
|
575
|
-
(this[_0x10c890(0xce)][_0x10c890(0xd2)](), history[_0x10c890(0xe7)]())
|
|
576
|
-
} else MetaApi[_0x10c890(0x110)]('info', _0x10c890(0xdd)), history[_0x10c890(0xe7)]()
|
|
577
|
-
}
|
|
578
|
-
async [a0_0x554f97(0x15e)]() {
|
|
579
|
-
const _0x2f3999 = a0_0x554f97
|
|
580
|
-
if (this[_0x2f3999(0x170)]) {
|
|
581
|
-
let _0x46ca0a = this['detailGrist'][_0x2f3999(0x160)][_0x2f3999(0x122)],
|
|
582
|
-
_0x5a75b6 = _0x46ca0a && _0x46ca0a[_0x2f3999(0x166)] ? 0xa * _0x46ca0a[_0x2f3999(0x166)] : 0x0,
|
|
583
|
-
_0x18deff = !0x1,
|
|
584
|
-
_0x266d02 = !0x1,
|
|
585
|
-
_0x339ba4 = !0x1,
|
|
586
|
-
_0x13d0bc = !0x1,
|
|
587
|
-
_0x49383f = !0x1,
|
|
588
|
-
_0xfb1b0f = !0x1
|
|
589
|
-
_0x46ca0a &&
|
|
590
|
-
_0x46ca0a['length'] > 0x0 &&
|
|
591
|
-
((_0x18deff = _0x46ca0a['findIndex'](_0x193385 => 'id' == _0x193385[_0x2f3999(0xe6)]) >= 0x0),
|
|
592
|
-
(_0x266d02 = _0x46ca0a[_0x2f3999(0xc7)](_0x16653e => _0x2f3999(0x174) == _0x16653e[_0x2f3999(0xe6)]) >= 0x0),
|
|
593
|
-
(_0x339ba4 = _0x46ca0a['findIndex'](_0x2f1a46 => 'created_at' == _0x2f1a46[_0x2f3999(0xe6)]) >= 0x0),
|
|
594
|
-
(_0x13d0bc = _0x46ca0a[_0x2f3999(0xc7)](_0x4e0188 => 'updated_at' == _0x4e0188[_0x2f3999(0xe6)]) >= 0x0),
|
|
595
|
-
(_0x49383f = _0x46ca0a['findIndex'](_0x578781 => _0x2f3999(0x172) == _0x578781['name']) >= 0x0),
|
|
596
|
-
(_0xfb1b0f = _0x46ca0a[_0x2f3999(0xc7)](_0x4b6bba => _0x2f3999(0xeb) == _0x4b6bba[_0x2f3999(0xe6)]) >= 0x0))
|
|
597
|
-
let _0x5c0838 = []
|
|
598
|
-
_0x18deff ||
|
|
599
|
-
((_0x5a75b6 += 0xa),
|
|
600
|
-
_0x5c0838[_0x2f3999(0xde)]({
|
|
601
|
-
entity: { id: this[_0x2f3999(0x170)] },
|
|
602
|
-
name: 'id',
|
|
603
|
-
colType: _0x2f3999(0x13a),
|
|
604
|
-
colSize: 0x0,
|
|
605
|
-
nullable: !0x1,
|
|
606
|
-
term: 'id',
|
|
607
|
-
rank: _0x5a75b6,
|
|
608
|
-
cuFlag: '+'
|
|
609
|
-
})),
|
|
610
|
-
_0x266d02 ||
|
|
611
|
-
((_0x5a75b6 += 0xa),
|
|
612
|
-
_0x5c0838[_0x2f3999(0xde)]({
|
|
613
|
-
entity: { id: this[_0x2f3999(0x170)] },
|
|
614
|
-
name: _0x2f3999(0x174),
|
|
615
|
-
colType: _0x2f3999(0x13a),
|
|
616
|
-
colSize: 0x0,
|
|
617
|
-
nullable: !0x1,
|
|
618
|
-
term: _0x2f3999(0xd1),
|
|
619
|
-
rank: _0x5a75b6,
|
|
620
|
-
cuFlag: '+'
|
|
621
|
-
})),
|
|
622
|
-
_0x339ba4 ||
|
|
623
|
-
((_0x5a75b6 += 0xa),
|
|
624
|
-
_0x5c0838[_0x2f3999(0xde)]({
|
|
625
|
-
entity: { id: this[_0x2f3999(0x170)] },
|
|
626
|
-
name: _0x2f3999(0x17c),
|
|
627
|
-
colType: _0x2f3999(0x131),
|
|
628
|
-
colSize: 0x0,
|
|
629
|
-
nullable: !0x0,
|
|
630
|
-
term: _0x2f3999(0x17c),
|
|
631
|
-
rank: _0x5a75b6,
|
|
632
|
-
gridRank: 0x0,
|
|
633
|
-
gridWidth: 0x8c,
|
|
634
|
-
cuFlag: '+'
|
|
635
|
-
})),
|
|
636
|
-
_0x13d0bc ||
|
|
637
|
-
((_0x5a75b6 += 0xa),
|
|
638
|
-
_0x5c0838[_0x2f3999(0xde)]({
|
|
639
|
-
entity: { id: this[_0x2f3999(0x170)] },
|
|
640
|
-
name: _0x2f3999(0x148),
|
|
641
|
-
colType: _0x2f3999(0x131),
|
|
642
|
-
colSize: 0x0,
|
|
643
|
-
nullable: !0x0,
|
|
644
|
-
term: _0x2f3999(0x148),
|
|
645
|
-
rank: _0x5a75b6,
|
|
646
|
-
gridRank: _0x5a75b6,
|
|
647
|
-
gridWidth: 0x8c,
|
|
648
|
-
cuFlag: '+'
|
|
649
|
-
})),
|
|
650
|
-
_0x49383f ||
|
|
651
|
-
((_0x5a75b6 += 0xa),
|
|
652
|
-
_0x5c0838[_0x2f3999(0xde)]({
|
|
653
|
-
entity: { id: this[_0x2f3999(0x170)] },
|
|
654
|
-
name: _0x2f3999(0x172),
|
|
655
|
-
colType: _0x2f3999(0x13a),
|
|
656
|
-
colSize: 0x28,
|
|
657
|
-
nullable: !0x0,
|
|
658
|
-
term: _0x2f3999(0x103),
|
|
659
|
-
rank: _0x5a75b6,
|
|
660
|
-
gridRank: 0x0,
|
|
661
|
-
gridWidth: 0x64,
|
|
662
|
-
cuFlag: '+'
|
|
663
|
-
})),
|
|
664
|
-
_0xfb1b0f ||
|
|
665
|
-
((_0x5a75b6 += 0xa),
|
|
666
|
-
_0x5c0838[_0x2f3999(0xde)]({
|
|
667
|
-
entity: { id: this[_0x2f3999(0x170)] },
|
|
668
|
-
name: _0x2f3999(0xeb),
|
|
669
|
-
colType: 'string',
|
|
670
|
-
colSize: 0x28,
|
|
671
|
-
nullable: !0x0,
|
|
672
|
-
term: 'updater',
|
|
673
|
-
rank: _0x5a75b6,
|
|
674
|
-
gridRank: 0x0,
|
|
675
|
-
gridWidth: 0x64,
|
|
676
|
-
cuFlag: '+'
|
|
677
|
-
})),
|
|
678
|
-
(await MetaApi[_0x2f3999(0xcc)]('updateMultipleEntityColumn', _0x5c0838)) &&
|
|
679
|
-
this[_0x2f3999(0xce)][_0x2f3999(0xd2)]()
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
async [a0_0x554f97(0xf7)]() {
|
|
683
|
-
const _0x48c5cf = a0_0x554f97
|
|
684
|
-
;(this[_0x48c5cf(0x130)] = [
|
|
685
|
-
MetaApi[_0x48c5cf(0x187)](_0x48c5cf(0xe6), _0x48c5cf(0x13a), _0x48c5cf(0xe6), _0x48c5cf(0x12b)),
|
|
686
|
-
MetaApi[_0x48c5cf(0x187)]('table_name', _0x48c5cf(0x13a), 'table_name', 'i_like'),
|
|
687
|
-
await MetaApi[_0x48c5cf(0x161)](_0x48c5cf(0x16f), _0x48c5cf(0x16b), 'bundle', 'eq', _0x48c5cf(0x15b))
|
|
688
|
-
]),
|
|
689
|
-
(this[_0x48c5cf(0x162)] = {
|
|
690
|
-
rows: MetaApi[_0x48c5cf(0x15c)](!0x1),
|
|
691
|
-
pagination: { pages: [0x3e8] },
|
|
692
|
-
appendable: !0x0,
|
|
693
|
-
columns: [
|
|
694
|
-
...MetaApi[_0x48c5cf(0x13e)](!0x0, !0x1),
|
|
695
|
-
{
|
|
696
|
-
type: 'gutter',
|
|
697
|
-
gutterName: _0x48c5cf(0xf5),
|
|
698
|
-
icon: _0x48c5cf(0x186),
|
|
699
|
-
handlers: {
|
|
700
|
-
click: (_0xbcc498, _0x29320f, _0x529fbb, _0x48529d, _0x2eee2e) => {
|
|
701
|
-
const _0x2cf37e = _0x48c5cf
|
|
702
|
-
_0x48529d['id'] && this[_0x2cf37e(0x117)](_0x48529d)
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
},
|
|
706
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
707
|
-
_0x48c5cf(0x16f),
|
|
708
|
-
_0x48c5cf(0x16f),
|
|
709
|
-
_0x48c5cf(0xf4),
|
|
710
|
-
!0x1,
|
|
711
|
-
0x73,
|
|
712
|
-
!0x0,
|
|
713
|
-
'BUNDLE'
|
|
714
|
-
),
|
|
715
|
-
MetaApi['getGristColumnConfig'](_0x48c5cf(0x13a), _0x48c5cf(0xe6), _0x48c5cf(0xf4), !0x0, !0x1, 0x7d),
|
|
716
|
-
MetaApi['getGristColumnConfig2'](
|
|
717
|
-
_0x48c5cf(0x13a),
|
|
718
|
-
_0x48c5cf(0x11c),
|
|
719
|
-
_0x48c5cf(0x119),
|
|
720
|
-
_0x48c5cf(0xf4),
|
|
721
|
-
!0x0,
|
|
722
|
-
!0x1,
|
|
723
|
-
0x7d
|
|
724
|
-
),
|
|
725
|
-
MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a), _0x48c5cf(0x176), _0x48c5cf(0xf4), !0x0, !0x1, 0x96)
|
|
726
|
-
]
|
|
727
|
-
}),
|
|
728
|
-
(this[_0x48c5cf(0x188)] = {
|
|
729
|
-
rows: MetaApi[_0x48c5cf(0x15c)](!0x0),
|
|
730
|
-
pagination: { pages: [0x3e8] },
|
|
731
|
-
appendable: !0x0,
|
|
732
|
-
columns: [
|
|
733
|
-
...MetaApi[_0x48c5cf(0x13e)](!0x0, !0x0),
|
|
734
|
-
MetaApi['getGristColumnConfig'](_0x48c5cf(0x17a), _0x48c5cf(0x12c), _0x48c5cf(0x18d), !0x0, !0x1, 0x32),
|
|
735
|
-
MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a), 'name', _0x48c5cf(0xf4), !0x0, !0x1, 0x73),
|
|
736
|
-
{
|
|
737
|
-
type: _0x48c5cf(0x13a),
|
|
738
|
-
name: _0x48c5cf(0x16a),
|
|
739
|
-
header: TermsUtil[_0x48c5cf(0x102)]('term'),
|
|
740
|
-
sortable: !0x1,
|
|
741
|
-
width: 0x87,
|
|
742
|
-
record: {
|
|
743
|
-
editable: !0x0,
|
|
744
|
-
align: _0x48c5cf(0xf4),
|
|
745
|
-
renderer: (_0x325268, _0x5479a9, _0x1ac1f1, _0x3effdc, _0x356c3f) =>
|
|
746
|
-
_0x1ac1f1[_0x48c5cf(0x16a)]
|
|
747
|
-
? TermsUtil[_0x48c5cf(0x102)](_0x1ac1f1['term'], null, _0x1ac1f1[_0x48c5cf(0x16a)])
|
|
748
|
-
: ''
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
752
|
-
_0x48c5cf(0x107),
|
|
753
|
-
_0x48c5cf(0xe2),
|
|
754
|
-
_0x48c5cf(0xf4),
|
|
755
|
-
!0x1,
|
|
756
|
-
0x4b,
|
|
757
|
-
!0x0,
|
|
758
|
-
'ENTITY_COLUMN_TYPES'
|
|
759
|
-
),
|
|
760
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
761
|
-
_0x48c5cf(0x17a),
|
|
762
|
-
_0x48c5cf(0xca),
|
|
763
|
-
_0x48c5cf(0x153),
|
|
764
|
-
_0x48c5cf(0x111),
|
|
765
|
-
!0x0,
|
|
766
|
-
!0x1,
|
|
767
|
-
0x3c
|
|
768
|
-
),
|
|
769
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
770
|
-
_0x48c5cf(0xea),
|
|
771
|
-
_0x48c5cf(0x139),
|
|
772
|
-
_0x48c5cf(0x139),
|
|
773
|
-
_0x48c5cf(0x18d),
|
|
774
|
-
!0x0,
|
|
775
|
-
!0x1,
|
|
776
|
-
0x46
|
|
777
|
-
),
|
|
778
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
779
|
-
_0x48c5cf(0x17a),
|
|
780
|
-
_0x48c5cf(0xcf),
|
|
781
|
-
_0x48c5cf(0x10e),
|
|
782
|
-
_0x48c5cf(0x111),
|
|
783
|
-
!0x0,
|
|
784
|
-
!0x1,
|
|
785
|
-
0x46
|
|
786
|
-
),
|
|
787
|
-
MetaApi['getGristColumnConfig2'](_0x48c5cf(0x13a), 'description', _0x48c5cf(0x176), 'left', !0x0, !0x1, 0x87),
|
|
788
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
789
|
-
_0x48c5cf(0x17a),
|
|
790
|
-
'searchRank',
|
|
791
|
-
_0x48c5cf(0x15f),
|
|
792
|
-
_0x48c5cf(0x111),
|
|
793
|
-
!0x0,
|
|
794
|
-
!0x1,
|
|
795
|
-
0x46
|
|
796
|
-
),
|
|
797
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
798
|
-
_0x48c5cf(0x13a),
|
|
799
|
-
_0x48c5cf(0xd8),
|
|
800
|
-
_0x48c5cf(0xf4),
|
|
801
|
-
!0x1,
|
|
802
|
-
0x55,
|
|
803
|
-
!0x0,
|
|
804
|
-
'FILTER_OPERATORS'
|
|
805
|
-
),
|
|
806
|
-
MetaApi[_0x48c5cf(0x135)]('integer', _0x48c5cf(0xf6), 'grid_rank', _0x48c5cf(0x111), !0x0, !0x1, 0x50),
|
|
807
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
808
|
-
_0x48c5cf(0x17a),
|
|
809
|
-
_0x48c5cf(0x12a),
|
|
810
|
-
_0x48c5cf(0x10c),
|
|
811
|
-
_0x48c5cf(0x111),
|
|
812
|
-
!0x0,
|
|
813
|
-
!0x1,
|
|
814
|
-
0x4b
|
|
815
|
-
),
|
|
816
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
817
|
-
'gridEditor',
|
|
818
|
-
_0x48c5cf(0x185),
|
|
819
|
-
_0x48c5cf(0xf4),
|
|
820
|
-
!0x1,
|
|
821
|
-
0x5a,
|
|
822
|
-
!0x0,
|
|
823
|
-
'ENTITY_GRIST_COLUMN_TYPES'
|
|
824
|
-
),
|
|
825
|
-
await MetaApi['getGristCodeSelectorColumnConfig'](
|
|
826
|
-
_0x48c5cf(0x14b),
|
|
827
|
-
_0x48c5cf(0x14f),
|
|
828
|
-
_0x48c5cf(0xf4),
|
|
829
|
-
!0x1,
|
|
830
|
-
0x55,
|
|
831
|
-
!0x0,
|
|
832
|
-
'COLUMN_REF_TYPE'
|
|
833
|
-
),
|
|
834
|
-
MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a), _0x48c5cf(0xfb), _0x48c5cf(0xf3), 'left', !0x0, !0x1, 0x64)
|
|
835
|
-
]
|
|
836
|
-
}),
|
|
837
|
-
(this[_0x48c5cf(0x155)] = {
|
|
838
|
-
rows: MetaApi[_0x48c5cf(0x15c)](!0x0),
|
|
839
|
-
pagination: { pages: [0x3e8] },
|
|
840
|
-
appendable: !0x0,
|
|
841
|
-
columns: [
|
|
842
|
-
...MetaApi['getGristGuttersConfig'](!0x0, !0x0),
|
|
843
|
-
MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x17a), _0x48c5cf(0x12c), _0x48c5cf(0x18d), !0x0, !0x1, 0x32),
|
|
844
|
-
MetaApi[_0x48c5cf(0xdc)]('string', 'name', _0x48c5cf(0xf4), !0x0, !0x1, 0x73),
|
|
845
|
-
{
|
|
846
|
-
type: 'string',
|
|
847
|
-
name: _0x48c5cf(0x16a),
|
|
848
|
-
header: TermsUtil[_0x48c5cf(0x102)]('term'),
|
|
849
|
-
sortable: !0x1,
|
|
850
|
-
width: 0x87,
|
|
851
|
-
record: {
|
|
852
|
-
editable: !0x1,
|
|
853
|
-
align: 'left',
|
|
854
|
-
renderer: (_0x38a34b, _0x1aedb1, _0x5a2bb8, _0x4b7759, _0x3fe4d9) =>
|
|
855
|
-
_0x5a2bb8[_0x48c5cf(0x16a)]
|
|
856
|
-
? TermsUtil['tLabel'](_0x5a2bb8['term'], null, _0x5a2bb8[_0x48c5cf(0x16a)])
|
|
857
|
-
: ''
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
await MetaApi[_0x48c5cf(0xec)]('colType', _0x48c5cf(0xe2), 'left', !0x1, 0x4b, !0x0, 'ENTITY_COLUMN_TYPES'),
|
|
861
|
-
MetaApi[_0x48c5cf(0x135)]('integer', _0x48c5cf(0xca), _0x48c5cf(0x153), _0x48c5cf(0x111), !0x0, !0x1, 0x3c),
|
|
862
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
863
|
-
_0x48c5cf(0xea),
|
|
864
|
-
_0x48c5cf(0x139),
|
|
865
|
-
_0x48c5cf(0x139),
|
|
866
|
-
_0x48c5cf(0x18d),
|
|
867
|
-
!0x0,
|
|
868
|
-
!0x1,
|
|
869
|
-
0x46
|
|
870
|
-
),
|
|
871
|
-
MetaApi['getGristColumnConfig2'](
|
|
872
|
-
_0x48c5cf(0x17a),
|
|
873
|
-
_0x48c5cf(0xcf),
|
|
874
|
-
_0x48c5cf(0x10e),
|
|
875
|
-
_0x48c5cf(0x111),
|
|
876
|
-
!0x0,
|
|
877
|
-
!0x1,
|
|
878
|
-
0x46
|
|
879
|
-
),
|
|
880
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
881
|
-
_0x48c5cf(0x13a),
|
|
882
|
-
_0x48c5cf(0x176),
|
|
883
|
-
'description',
|
|
884
|
-
_0x48c5cf(0xf4),
|
|
885
|
-
!0x0,
|
|
886
|
-
!0x1,
|
|
887
|
-
0x87
|
|
888
|
-
),
|
|
889
|
-
MetaApi['getGristColumnConfig2'](
|
|
890
|
-
_0x48c5cf(0x17a),
|
|
891
|
-
_0x48c5cf(0xd4),
|
|
892
|
-
_0x48c5cf(0x15f),
|
|
893
|
-
_0x48c5cf(0x111),
|
|
894
|
-
!0x0,
|
|
895
|
-
!0x1,
|
|
896
|
-
0x46
|
|
897
|
-
),
|
|
898
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
899
|
-
_0x48c5cf(0x13a),
|
|
900
|
-
'search_oper',
|
|
901
|
-
_0x48c5cf(0xf4),
|
|
902
|
-
!0x1,
|
|
903
|
-
0x55,
|
|
904
|
-
!0x0,
|
|
905
|
-
_0x48c5cf(0x151)
|
|
906
|
-
),
|
|
907
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
908
|
-
_0x48c5cf(0x17a),
|
|
909
|
-
_0x48c5cf(0xf6),
|
|
910
|
-
_0x48c5cf(0xdb),
|
|
911
|
-
_0x48c5cf(0x111),
|
|
912
|
-
!0x0,
|
|
913
|
-
!0x1,
|
|
914
|
-
0x50
|
|
915
|
-
),
|
|
916
|
-
MetaApi[_0x48c5cf(0x135)](
|
|
917
|
-
_0x48c5cf(0x17a),
|
|
918
|
-
_0x48c5cf(0x12a),
|
|
919
|
-
_0x48c5cf(0x10c),
|
|
920
|
-
_0x48c5cf(0x111),
|
|
921
|
-
!0x0,
|
|
922
|
-
!0x1,
|
|
923
|
-
0x4b
|
|
924
|
-
),
|
|
925
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
926
|
-
_0x48c5cf(0x15a),
|
|
927
|
-
_0x48c5cf(0x185),
|
|
928
|
-
'left',
|
|
929
|
-
!0x1,
|
|
930
|
-
0x5a,
|
|
931
|
-
!0x0,
|
|
932
|
-
_0x48c5cf(0x150)
|
|
933
|
-
),
|
|
934
|
-
await MetaApi[_0x48c5cf(0xec)](
|
|
935
|
-
_0x48c5cf(0x14b),
|
|
936
|
-
'ref_type',
|
|
937
|
-
_0x48c5cf(0xf4),
|
|
938
|
-
!0x1,
|
|
939
|
-
0x55,
|
|
940
|
-
!0x0,
|
|
941
|
-
'COLUMN_REF_TYPE'
|
|
942
|
-
),
|
|
943
|
-
MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a), _0x48c5cf(0xfb), 'ref_name', _0x48c5cf(0xf4), !0x0, !0x1, 0x64)
|
|
944
|
-
]
|
|
945
|
-
})
|
|
946
|
-
}
|
|
947
|
-
[a0_0x554f97(0x163)]() {
|
|
948
|
-
const _0x1ca032 = a0_0x554f97
|
|
949
|
-
return html`
|
|
13
|
+
`,'variables':{'bundle':_0x8e5981,'terms':_0x32cf9a}}))['errors']||MetaApi[_0x276404(0x210)](_0x276404(0x19b),TermsUtil[_0x276404(0x190)](_0x276404(0x212))));}}catch(_0x67b181){MetaApi[_0x276404(0x210)](_0x276404(0x224),_0x67b181[_0x276404(0x227)]);}}async[a0_0x222be3(0x1e6)](){const _0xe75ff=a0_0x222be3;let _0x144f35=this[_0xe75ff(0x20a)][_0xe75ff(0x183)][_0xe75ff(0x1e2)][_0xe75ff(0x234)](_0x2099ce=>'gutter'!==_0x2099ce[_0xe75ff(0x239)]&&void 0x0!==_0x2099ce[_0xe75ff(0x1f8)]&&void 0x0!==_0x2099ce[_0xe75ff(0x193)])['map'](_0x37288d=>_0x37288d['imex']),_0x495ee4=this[_0xe75ff(0x20a)][_0xe75ff(0x1df)][_0xe75ff(0x1a2)][_0xe75ff(0x1f6)](_0x5a61af=>({'id':_0x5a61af['id'],...this[_0xe75ff(0x20a)][_0xe75ff(0x183)][_0xe75ff(0x1e2)][_0xe75ff(0x234)](_0x1b7d51=>_0xe75ff(0x1ae)!==_0x1b7d51['type']&&void 0x0!==_0x1b7d51['record']&&void 0x0!==_0x1b7d51[_0xe75ff(0x193)])[_0xe75ff(0x1ed)]((_0x2995c5,_0x4dd798)=>(_0x2995c5[_0x4dd798[_0xe75ff(0x193)][_0xe75ff(0x23c)]]=_0x4dd798['imex'][_0xe75ff(0x23c)][_0xe75ff(0x1a9)]('.')[_0xe75ff(0x1ed)]((_0x45886a,_0x548500)=>_0x45886a&&_0xe75ff(0x185)!==_0x45886a[_0x548500]?_0x45886a[_0x548500]:void 0x0,_0x5a61af),_0x2995c5),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':'xlsx','name':TermsUtil[_0xe75ff(0x1d5)](_0xe75ff(0x22f))+'-'+this[_0xe75ff(0x200)][_0xe75ff(0x1f0)],'data':{'header':_0x144f35,'data':_0x495ee4}}});}async[a0_0x222be3(0x1fe)](){const _0x1c4878=a0_0x222be3;let _0x56e53a=this;const _0x2aa4c1=document[_0x1c4878(0x205)]('input');_0x2aa4c1[_0x1c4878(0x1d0)](_0x1c4878(0x239),_0x1c4878(0x1a3)),_0x2aa4c1[_0x1c4878(0x1d0)](_0x1c4878(0x1b7),[_0x1c4878(0x1dd)]),_0x2aa4c1[_0x1c4878(0x236)]=!0x0,_0x2aa4c1['addEventListener'](_0x1c4878(0x1e5),_0xd6a38c=>{const _0x272c02=_0x1c4878,_0x57921b=_0xd6a38c[_0x272c02(0x221)]['files'][0x0],_0xc1a231=_0x57921b[_0x272c02(0x1f0)]['split']('.')[_0x272c02(0x23d)](),_0x2920af=new FileReader();_0x2920af[_0x272c02(0x1e1)]=function(_0x8f54b9){const _0x2b3d27=_0x272c02,_0x88079e=_0x8f54b9[_0x2b3d27(0x1e0)]['result'];store[_0x2b3d27(0x19a)]({'type':IMPORT,'importable':{'extension':_0xc1a231,'handler':_0x56e53a['importEntityColumns'][_0x2b3d27(0x22e)](_0x56e53a)},'data':_0x88079e});},_0x2920af['readAsArrayBuffer'](_0x57921b);}),document[_0x1c4878(0x1b0)][_0x1c4878(0x182)](_0x2aa4c1),_0x2aa4c1[_0x1c4878(0x1e3)]();}['importEntityColumns'](_0x331784){const _0x11e56d=a0_0x222be3;let _0x1241ba=_0x331784[_0x11e56d(0x1ca)]?_0x331784[_0x11e56d(0x1df)]:_0x331784;if(_0x1241ba&&_0x1241ba[_0x11e56d(0x189)]>0x0){_0x1241ba[_0x11e56d(0x217)](_0x176eed=>{const _0x2fd459=_0x11e56d;_0x176eed[_0x2fd459(0x211)]=!0x0;});let _0x25be20=this[_0x11e56d(0x220)][_0x11e56d(0x1e2)]['filter'](_0x49eb28=>!!_0x49eb28[_0x11e56d(0x193)]);setTimeout(()=>{const _0x2b5b57=_0x11e56d;MetaApi[_0x2b5b57(0x1de)](TermsUtil[_0x2b5b57(0x1d5)]('import'),_0x2b5b57(0x1d3),html`
|
|
14
|
+
<import-pop-up
|
|
15
|
+
.records=${_0x1241ba}
|
|
16
|
+
.config=${{'rows':_0x1241ba,'columns':[{'type':_0x2b5b57(0x1ae),'gutterName':_0x2b5b57(0x202)},..._0x25be20]}}
|
|
17
|
+
.importHandler="${this['importHandler'][_0x2b5b57(0x22e)](this)}">
|
|
18
|
+
</import-pop-up>`);},0x1f4);}}async['importHandler'](_0x44d186){const _0x51663d=a0_0x222be3;if(_0x44d186&&0x0!=_0x44d186[_0x51663d(0x189)]){let _0x4cf886=0x0;_0x44d186[_0x51663d(0x217)](_0x31362c=>{const _0x2b21d2=_0x51663d;_0x4cf886+=0xa,_0x31362c[_0x2b21d2(0x1d6)]=ValueUtil['isNotEmpty'](_0x31362c[_0x2b21d2(0x1d6)])?ValueUtil['toInteger'](_0x31362c[_0x2b21d2(0x1d6)]):'string'==_0x31362c[_0x2b21d2(0x21c)]?0x32:0x0,_0x31362c[_0x2b21d2(0x23b)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['rank'],0x0),_0x31362c['uniqRank']=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['uniqRank'],0x0),_0x31362c[_0x2b21d2(0x1b8)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['searchRank'],0x0),_0x31362c[_0x2b21d2(0x1b6)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['gridRank'],0x0),_0x31362c[_0x2b21d2(0x1a8)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c[_0x2b21d2(0x1a8)],0x0),_0x31362c[_0x2b21d2(0x230)]={'id':this[_0x2b21d2(0x196)]},_0x31362c[_0x2b21d2(0x1f1)]=ValueUtil[_0x2b21d2(0x21a)](_0x31362c[_0x2b21d2(0x1f1)]),_0x31362c[_0x2b21d2(0x194)]=_0x31362c[_0x2b21d2(0x194)]?_0x31362c['term']:_0x31362c['name'],_0x31362c[_0x2b21d2(0x21c)]=_0x31362c[_0x2b21d2(0x21c)]?_0x31362c[_0x2b21d2(0x21c)]:_0x2b21d2(0x22b),delete _0x31362c['string'];}),await MetaApi[_0x51663d(0x201)](_0x51663d(0x238),_0x44d186)&&(this['detailGrist'][_0x51663d(0x208)](),history[_0x51663d(0x1cf)]());}else MetaApi['showToast']('info',_0x51663d(0x229)),history[_0x51663d(0x1cf)]();}async[a0_0x222be3(0x188)](){const _0x300036=a0_0x222be3;if(this[_0x300036(0x196)]){let _0x44fd5b=this[_0x300036(0x20a)][_0x300036(0x1df)][_0x300036(0x1a2)],_0x115233=_0x44fd5b&&_0x44fd5b[_0x300036(0x189)]?0xa*_0x44fd5b[_0x300036(0x189)]:0x0,_0xbc7251=!0x1,_0x1dd06d=!0x1,_0x21396a=!0x1,_0x44bf06=!0x1,_0x4cd933=!0x1,_0x194262=!0x1;_0x44fd5b&&_0x44fd5b[_0x300036(0x189)]>0x0&&(_0xbc7251=_0x44fd5b[_0x300036(0x1fd)](_0x2b80a8=>'id'==_0x2b80a8[_0x300036(0x1f0)])>=0x0,_0x1dd06d=_0x44fd5b['findIndex'](_0x1836d4=>_0x300036(0x1db)==_0x1836d4[_0x300036(0x1f0)])>=0x0,_0x21396a=_0x44fd5b['findIndex'](_0x37b15f=>_0x300036(0x18b)==_0x37b15f['name'])>=0x0,_0x44bf06=_0x44fd5b[_0x300036(0x1fd)](_0x5d81aa=>'updated_at'==_0x5d81aa[_0x300036(0x1f0)])>=0x0,_0x4cd933=_0x44fd5b[_0x300036(0x1fd)](_0x10b081=>_0x300036(0x1c6)==_0x10b081[_0x300036(0x1f0)])>=0x0,_0x194262=_0x44fd5b['findIndex'](_0x2dc860=>_0x300036(0x232)==_0x2dc860[_0x300036(0x1f0)])>=0x0);let _0x424348=[];_0xbc7251||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':'id','colType':'string','colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x115233,'cuFlag':'+'})),_0x1dd06d||(_0x115233+=0xa,_0x424348['push']({'entity':{'id':this[_0x300036(0x196)]},'name':_0x300036(0x1db),'colType':_0x300036(0x22b),'colSize':0x0,'nullable':!0x1,'term':'domain','rank':_0x115233,'cuFlag':'+'})),_0x21396a||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':'created_at','colType':_0x300036(0x1d4),'colSize':0x0,'nullable':!0x0,'term':_0x300036(0x18b),'rank':_0x115233,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x44bf06||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':'updated_at','colType':_0x300036(0x1d4),'colSize':0x0,'nullable':!0x0,'term':_0x300036(0x19d),'rank':_0x115233,'gridRank':_0x115233,'gridWidth':0x8c,'cuFlag':'+'})),_0x4cd933||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':_0x300036(0x1c6),'colType':_0x300036(0x22b),'colSize':0x28,'nullable':!0x0,'term':_0x300036(0x1a6),'rank':_0x115233,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x194262||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this['entityId']},'name':_0x300036(0x232),'colType':_0x300036(0x22b),'colSize':0x28,'nullable':!0x0,'term':'updater','rank':_0x115233,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x300036(0x201)](_0x300036(0x238),_0x424348)&&this[_0x300036(0x20a)]['fetch']();}}async[a0_0x222be3(0x1ee)](){const _0x26b7c7=a0_0x222be3;this[_0x26b7c7(0x181)]=[MetaApi[_0x26b7c7(0x1d7)]('name',_0x26b7c7(0x22b),_0x26b7c7(0x1f0),'i_like'),MetaApi['getGristSearchColumnConfig'](_0x26b7c7(0x1b3),_0x26b7c7(0x22b),_0x26b7c7(0x1b3),'i_like'),await MetaApi[_0x26b7c7(0x20e)](_0x26b7c7(0x1f9),_0x26b7c7(0x1ff),_0x26b7c7(0x1f9),'eq',_0x26b7c7(0x191))],this[_0x26b7c7(0x1a1)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x26b7c7(0x1da)](!0x0,!0x1),{'type':'gutter','gutterName':_0x26b7c7(0x21d),'icon':_0x26b7c7(0x228),'handlers':{'click':(_0x13d39b,_0x5a9653,_0x316ab6,_0x562164,_0x47fcfa)=>{const _0x448e52=_0x26b7c7;_0x562164['id']&&this[_0x448e52(0x215)](_0x562164);}}},await MetaApi[_0x26b7c7(0x18d)]('bundle','bundle',_0x26b7c7(0x1cd),!0x1,0x73,!0x0,_0x26b7c7(0x191)),MetaApi['getGristColumnConfig']('string','name','left',!0x0,!0x1,0x7d),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x186),'entity_manage_hist',_0x26b7c7(0x22d),!0x1,0x73,!0x0,_0x26b7c7(0x214)),MetaApi[_0x26b7c7(0x19e)](_0x26b7c7(0x22b),_0x26b7c7(0x1c1),_0x26b7c7(0x1cd),!0x0,!0x1,0x96)]},this[_0x26b7c7(0x235)]={'rows':MetaApi[_0x26b7c7(0x1bc)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x26b7c7(0x1da)](!0x0,!0x0),MetaApi[_0x26b7c7(0x19e)](_0x26b7c7(0x1d1),_0x26b7c7(0x23b),_0x26b7c7(0x22d),!0x0,!0x1,0x32),MetaApi[_0x26b7c7(0x19e)]('string',_0x26b7c7(0x1f0),_0x26b7c7(0x1cd),!0x0,!0x1,0x73),{'type':_0x26b7c7(0x22b),'name':_0x26b7c7(0x194),'header':TermsUtil[_0x26b7c7(0x1fc)](_0x26b7c7(0x194)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x26b7c7(0x1cd),'renderer':(_0x40b4d5,_0x53b7a4,_0x35cb06,_0x38e42a,_0x259d4d)=>_0x35cb06[_0x26b7c7(0x194)]?TermsUtil[_0x26b7c7(0x1fc)](_0x35cb06[_0x26b7c7(0x194)],null,_0x35cb06[_0x26b7c7(0x194)]):''}},await MetaApi[_0x26b7c7(0x18d)]('colType',_0x26b7c7(0x1ce),_0x26b7c7(0x1cd),!0x1,0x4b,!0x0,_0x26b7c7(0x1c3)),MetaApi[_0x26b7c7(0x1be)]('integer',_0x26b7c7(0x1d6),_0x26b7c7(0x206),_0x26b7c7(0x192),!0x0,!0x1,0x3c),MetaApi[_0x26b7c7(0x1be)]('boolean',_0x26b7c7(0x1f1),_0x26b7c7(0x1f1),_0x26b7c7(0x22d),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x26b7c7(0x1d1),_0x26b7c7(0x19c),'uniq_rank','right',!0x0,!0x1,0x46),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x22b),_0x26b7c7(0x1c1),_0x26b7c7(0x1c1),_0x26b7c7(0x1cd),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x26b7c7(0x1d1),_0x26b7c7(0x1b8),_0x26b7c7(0x223),_0x26b7c7(0x192),!0x0,!0x1,0x46),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x22b),'search_oper',_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x18f)),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1b6),_0x26b7c7(0x1a4),_0x26b7c7(0x192),!0x0,!0x1,0x50),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1a8),_0x26b7c7(0x225),_0x26b7c7(0x192),!0x0,!0x1,0x4b),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x20f),_0x26b7c7(0x1c4),_0x26b7c7(0x1cd),!0x1,0x5a,!0x0,_0x26b7c7(0x198)),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x1ef),_0x26b7c7(0x1d9),_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x231)),MetaApi[_0x26b7c7(0x1be)]('string',_0x26b7c7(0x1bb),_0x26b7c7(0x1fa),_0x26b7c7(0x1cd),!0x0,!0x1,0x64)]},this[_0x26b7c7(0x220)]={'rows':MetaApi[_0x26b7c7(0x1bc)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x26b7c7(0x1da)](!0x0,!0x0),MetaApi[_0x26b7c7(0x19e)](_0x26b7c7(0x1d1),_0x26b7c7(0x23b),_0x26b7c7(0x22d),!0x0,!0x1,0x32),MetaApi['getGristColumnConfig'](_0x26b7c7(0x22b),_0x26b7c7(0x1f0),_0x26b7c7(0x1cd),!0x0,!0x1,0x73),{'type':_0x26b7c7(0x22b),'name':_0x26b7c7(0x194),'header':TermsUtil['tLabel'](_0x26b7c7(0x194)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x26b7c7(0x1cd),'renderer':(_0x9eed44,_0x56f07f,_0x256ec0,_0x444e21,_0x1ab62a)=>_0x256ec0[_0x26b7c7(0x194)]?TermsUtil[_0x26b7c7(0x1fc)](_0x256ec0[_0x26b7c7(0x194)],null,_0x256ec0[_0x26b7c7(0x194)]):''}},await MetaApi[_0x26b7c7(0x18d)]('colType','col_type',_0x26b7c7(0x1cd),!0x1,0x4b,!0x0,_0x26b7c7(0x1c3)),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1d6),_0x26b7c7(0x206),_0x26b7c7(0x192),!0x0,!0x1,0x3c),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1c8),_0x26b7c7(0x1f1),_0x26b7c7(0x1f1),_0x26b7c7(0x22d),!0x0,!0x1,0x46),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x19c),'uniq_rank',_0x26b7c7(0x192),!0x0,!0x1,0x46),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x22b),_0x26b7c7(0x1c1),_0x26b7c7(0x1c1),'left',!0x0,!0x1,0x87),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1b8),_0x26b7c7(0x223),_0x26b7c7(0x192),!0x0,!0x1,0x46),await MetaApi['getGristCodeSelectorColumnConfig'](_0x26b7c7(0x22b),_0x26b7c7(0x1a5),_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x18f)),MetaApi[_0x26b7c7(0x1be)]('integer','gridRank',_0x26b7c7(0x1a4),'right',!0x0,!0x1,0x50),MetaApi[_0x26b7c7(0x1be)]('integer',_0x26b7c7(0x1a8),_0x26b7c7(0x225),_0x26b7c7(0x192),!0x0,!0x1,0x4b),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x20f),_0x26b7c7(0x1c4),_0x26b7c7(0x1cd),!0x1,0x5a,!0x0,_0x26b7c7(0x19f)),await MetaApi['getGristCodeSelectorColumnConfig'](_0x26b7c7(0x1ef),_0x26b7c7(0x1d9),_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x231)),MetaApi['getGristColumnConfig2']('string',_0x26b7c7(0x1bb),'ref_name',_0x26b7c7(0x1cd),!0x0,!0x1,0x64)]};}[a0_0x222be3(0x1c2)](){const _0x543c8e=a0_0x222be3;return html`
|
|
950
19
|
<div slot="headroom">
|
|
951
20
|
<div id="filters">
|
|
952
|
-
<ox-filters-form-base
|
|
953
|
-
.filters=${this[
|
|
954
|
-
@filters-change=${
|
|
955
|
-
const _0x1ad8d6 = _0x1ca032
|
|
956
|
-
this[_0x1ad8d6(0x10b)]?.[_0x1ad8d6(0xd2)]()
|
|
957
|
-
}}
|
|
21
|
+
<ox-filters-form-base
|
|
22
|
+
.filters=${this[_0x543c8e(0x181)]||[]}
|
|
23
|
+
@filters-change=${_0x182434=>{const _0x52dace=_0x543c8e;this[_0x52dace(0x1d2)]?.[_0x52dace(0x208)]();}}
|
|
958
24
|
></ox-filters-form-base>
|
|
959
25
|
</div>
|
|
960
26
|
</div>
|
|
961
27
|
|
|
962
|
-
<div class=
|
|
28
|
+
<div class='container' style='grid-template-columns: 37% 63%'>
|
|
963
29
|
<div class="container_detail">
|
|
964
|
-
<h2
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
30
|
+
<h2>
|
|
31
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x543c8e(0x1d5)](_0x543c8e(0x230))}
|
|
32
|
+
</h2>
|
|
33
|
+
<ox-grist
|
|
34
|
+
id="master-grist"
|
|
35
|
+
.config=${this[_0x543c8e(0x1a1)]}
|
|
36
|
+
.mode=${MetaApi[_0x543c8e(0x195)]()?_0x543c8e(0x1aa):_0x543c8e(0x219)}
|
|
969
37
|
auto-fetch
|
|
970
|
-
.fetchHandler=${this[
|
|
971
|
-
>
|
|
38
|
+
.fetchHandler=${this[_0x543c8e(0x1a7)][_0x543c8e(0x22e)](this)}>
|
|
972
39
|
</ox-grist>
|
|
973
40
|
<div id="button-container" class="button-container">
|
|
974
|
-
<mwc-button
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
></mwc-button>
|
|
979
|
-
<mwc-button
|
|
980
|
-
raised
|
|
981
|
-
label="${TermsUtil[_0x1ca032(0x136)]('create-menu')}"
|
|
982
|
-
@click=${_0x691152 => this['createMenu']()}
|
|
983
|
-
></mwc-button>
|
|
984
|
-
<mwc-button
|
|
985
|
-
raised
|
|
986
|
-
label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x118))}"
|
|
987
|
-
@click=${_0x4ded60 => this['saveMasters']()}
|
|
988
|
-
></mwc-button>
|
|
989
|
-
<mwc-button
|
|
990
|
-
raised
|
|
991
|
-
label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x14c))}"
|
|
992
|
-
@click=${_0x1642de => this['deleteMasters']()}
|
|
993
|
-
></mwc-button>
|
|
41
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1eb))}" @click=${_0xc8b46=>this[_0x543c8e(0x1af)]()}></mwc-button>
|
|
42
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x543c8e(0x21f))}" @click=${_0x1fd0aa=>this[_0x543c8e(0x18c)]()}></mwc-button>
|
|
43
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x184))}" @click=${_0x10b841=>this[_0x543c8e(0x1f7)]()}></mwc-button>
|
|
44
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)]('delete')}" @click=${_0x3dd097=>this[_0x543c8e(0x187)]()}></mwc-button>
|
|
994
45
|
</div>
|
|
995
46
|
</div>
|
|
996
47
|
|
|
997
48
|
<div class="container_detail">
|
|
998
|
-
<h2
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
49
|
+
<h2>
|
|
50
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x543c8e(0x1d5)](_0x543c8e(0x22f))}
|
|
51
|
+
</h2>
|
|
52
|
+
<ox-grist
|
|
53
|
+
id="detail-grist"
|
|
54
|
+
.config=${this[_0x543c8e(0x235)]}
|
|
55
|
+
.mode=${MetaApi[_0x543c8e(0x195)]()?_0x543c8e(0x1aa):_0x543c8e(0x219)}
|
|
1003
56
|
explcit-fetch
|
|
1004
|
-
.fetchHandler=${this[
|
|
1005
|
-
>
|
|
57
|
+
.fetchHandler=${this[_0x543c8e(0x216)][_0x543c8e(0x22e)](this)}>
|
|
1006
58
|
</ox-grist>
|
|
1007
59
|
<div id="button-container" class="button-container">
|
|
1008
|
-
<mwc-button
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
></mwc-button>
|
|
1013
|
-
<mwc-button
|
|
1014
|
-
raised
|
|
1015
|
-
label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x145))}"
|
|
1016
|
-
@click=${_0x4b52a9 => this['importXlsxFile']()}
|
|
1017
|
-
></mwc-button>
|
|
1018
|
-
<mwc-button
|
|
1019
|
-
raised
|
|
1020
|
-
label="${TermsUtil['tButton'](_0x1ca032(0x165))}"
|
|
1021
|
-
@click=${_0x59f0ac => this[_0x1ca032(0x15e)]()}
|
|
1022
|
-
></mwc-button>
|
|
1023
|
-
<mwc-button
|
|
1024
|
-
raised
|
|
1025
|
-
label="${TermsUtil[_0x1ca032(0x136)]('register-terms')}"
|
|
1026
|
-
@click=${_0x2886c4 => this['createUnregisteredTerms']()}
|
|
1027
|
-
></mwc-button>
|
|
1028
|
-
<mwc-button
|
|
1029
|
-
raised
|
|
1030
|
-
label="${TermsUtil[_0x1ca032(0x136)]('save')}"
|
|
1031
|
-
@click=${_0x55df18 => this[_0x1ca032(0x157)]()}
|
|
1032
|
-
></mwc-button>
|
|
1033
|
-
<mwc-button
|
|
1034
|
-
raised
|
|
1035
|
-
label="${TermsUtil[_0x1ca032(0x136)]('delete')}"
|
|
1036
|
-
@click=${_0x40f486 => this[_0x1ca032(0x13d)]()}
|
|
1037
|
-
></mwc-button>
|
|
60
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1ab))}" @click=${_0xf7ee61=>this['exportEntityColumns']()}></mwc-button>
|
|
61
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1b1))}" @click=${_0x4f38da=>this[_0x543c8e(0x1fe)]()}></mwc-button>
|
|
62
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1ac))}" @click=${_0x59a786=>this[_0x543c8e(0x188)]()}></mwc-button>
|
|
63
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1ba))}" @click=${_0x45f90c=>this[_0x543c8e(0x18e)]()}></mwc-button>
|
|
64
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x184))}" @click=${_0x4ccb37=>this['saveEntityColumns']()}></mwc-button>
|
|
65
|
+
<mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x18a))}" @click=${_0x2099af=>this['deleteEntityColumns']()}></mwc-button>
|
|
1038
66
|
</div>
|
|
1039
67
|
</div>
|
|
1040
68
|
</div>
|
|
1041
|
-
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
customElements['define'](a0_0x554f97(0x142), ConfigEntity)
|
|
69
|
+
`;}}customElements[a0_0x222be3(0x1f5)]('config-entity',ConfigEntity);
|