@things-factory/meta-ui 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/entity/config-entity.js +1015 -40
- package/client/pages/entity/main-menu-selector.js +257 -69
- package/client/pages/loading-page.js +83 -7
- package/client/pages/menu/dynamic-menu-template.js +174 -33
- package/client/pages/menu/dynamic-menu.js +472 -23
- package/client/pages/personalize/personal-column-selector.js +274 -72
- package/package.json +5 -5
|
@@ -1,78 +1,280 @@
|
|
|
1
|
-
const a0_0x15d097
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
const a0_0x15d097 = a0_0x19fc
|
|
2
|
+
function a0_0xc4b7() {
|
|
3
|
+
const _0x15de6e = [
|
|
4
|
+
'3lXBIuF',
|
|
5
|
+
'findMenuGridPersnalTemplate',
|
|
6
|
+
'center',
|
|
7
|
+
'menuId',
|
|
8
|
+
'394336kgPbHS',
|
|
9
|
+
'map',
|
|
10
|
+
'string',
|
|
11
|
+
'477zPHiIm',
|
|
12
|
+
'type',
|
|
13
|
+
'integer',
|
|
14
|
+
'patchesForUpdateMultiple',
|
|
15
|
+
'stringify',
|
|
16
|
+
'delete',
|
|
17
|
+
'cuFlag',
|
|
18
|
+
'tButton',
|
|
19
|
+
'#ox-grist',
|
|
20
|
+
'updateMultiple',
|
|
21
|
+
'display',
|
|
22
|
+
'render',
|
|
23
|
+
'connectedCallback',
|
|
24
|
+
'getGristGuttersConfig',
|
|
25
|
+
'716528GqKiuW',
|
|
26
|
+
'2345352NoJddx',
|
|
27
|
+
'bind',
|
|
28
|
+
'reset',
|
|
29
|
+
'name',
|
|
30
|
+
'back',
|
|
31
|
+
'rank',
|
|
32
|
+
'config',
|
|
33
|
+
'deleteGridPersonalizes',
|
|
34
|
+
'boolean',
|
|
35
|
+
'left',
|
|
36
|
+
'showToast',
|
|
37
|
+
'GRID',
|
|
38
|
+
'getGristColumnConfig',
|
|
39
|
+
'save',
|
|
40
|
+
'48824pKVWfC',
|
|
41
|
+
'hidden',
|
|
42
|
+
'deleteListByIds',
|
|
43
|
+
'updateMultipleGridpersonalize',
|
|
44
|
+
'dirtyData',
|
|
45
|
+
'fetch',
|
|
46
|
+
'querySelector',
|
|
47
|
+
'filter',
|
|
48
|
+
'332481ztEXyG',
|
|
49
|
+
'shadowRoot',
|
|
50
|
+
'gridConfig',
|
|
51
|
+
'gutter',
|
|
52
|
+
'configGrist',
|
|
53
|
+
'records',
|
|
54
|
+
'764475QHMkPp',
|
|
55
|
+
'configName',
|
|
56
|
+
'sort',
|
|
57
|
+
'grist',
|
|
58
|
+
'there_is_nothing_to_delete',
|
|
59
|
+
'styles',
|
|
60
|
+
'2133103MKnlFA',
|
|
61
|
+
'fetchColumns',
|
|
62
|
+
'getGristColumnConfig2'
|
|
63
|
+
]
|
|
64
|
+
a0_0xc4b7 = function () {
|
|
65
|
+
return _0x15de6e
|
|
66
|
+
}
|
|
67
|
+
return a0_0xc4b7()
|
|
68
|
+
}
|
|
69
|
+
;(function (_0xac2986, _0xf25809) {
|
|
70
|
+
const _0x4fc8a3 = a0_0x19fc,
|
|
71
|
+
_0x5e9ebb = _0xac2986()
|
|
72
|
+
while (!![]) {
|
|
73
|
+
try {
|
|
74
|
+
const _0x192fb0 =
|
|
75
|
+
-parseInt(_0x4fc8a3(0x1a2)) / 0x1 +
|
|
76
|
+
(parseInt(_0x4fc8a3(0x1b5)) / 0x2) * (-parseInt(_0x4fc8a3(0x1b1)) / 0x3) +
|
|
77
|
+
parseInt(_0x4fc8a3(0x1c6)) / 0x4 +
|
|
78
|
+
parseInt(_0x4fc8a3(0x1a8)) / 0x5 +
|
|
79
|
+
parseInt(_0x4fc8a3(0x1c7)) / 0x6 +
|
|
80
|
+
-parseInt(_0x4fc8a3(0x1ae)) / 0x7 +
|
|
81
|
+
(-parseInt(_0x4fc8a3(0x19a)) / 0x8) * (-parseInt(_0x4fc8a3(0x1b8)) / 0x9)
|
|
82
|
+
if (_0x192fb0 === _0xf25809) break
|
|
83
|
+
else _0x5e9ebb['push'](_0x5e9ebb['shift']())
|
|
84
|
+
} catch (_0x267b0d) {
|
|
85
|
+
_0x5e9ebb['push'](_0x5e9ebb['shift']())
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
})(a0_0xc4b7, 0x33c20)
|
|
89
|
+
import { css, html, LitElement } from 'lit'
|
|
90
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
91
|
+
import { ScrollbarStyles, CommonGristStyles } from '@operato/styles'
|
|
92
|
+
function a0_0x19fc(_0x4bdc6a, _0x403c80) {
|
|
93
|
+
const _0xc4b7dc = a0_0xc4b7()
|
|
94
|
+
return (
|
|
95
|
+
(a0_0x19fc = function (_0x19fcdd, _0x293570) {
|
|
96
|
+
_0x19fcdd = _0x19fcdd - 0x18d
|
|
97
|
+
let _0x19b98c = _0xc4b7dc[_0x19fcdd]
|
|
98
|
+
return _0x19b98c
|
|
99
|
+
}),
|
|
100
|
+
a0_0x19fc(_0x4bdc6a, _0x403c80)
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
import { TermsUtil } from './../../utils/terms-util'
|
|
104
|
+
import { MetaApi } from '../../utils/meta-api'
|
|
105
|
+
import { ServiceUtil } from '../../utils/service-util'
|
|
106
|
+
export class PersonalColumnSelector extends localize(i18next)(LitElement) {
|
|
107
|
+
static get [a0_0x15d097(0x1ad)]() {
|
|
108
|
+
return [
|
|
109
|
+
ScrollbarStyles,
|
|
110
|
+
CommonGristStyles,
|
|
111
|
+
css`
|
|
112
|
+
:host {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
overflow-x: auto;
|
|
116
|
+
}
|
|
117
|
+
.container {
|
|
118
|
+
flex: 1;
|
|
119
|
+
display: grid;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
}
|
|
122
|
+
.container_detail {
|
|
123
|
+
background-color: var(--main-section-background-color);
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
flex: 1;
|
|
127
|
+
overflow-y: auto;
|
|
128
|
+
}
|
|
19
129
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
130
|
+
h2 {
|
|
131
|
+
padding: var(--subtitle-padding);
|
|
132
|
+
font: var(--subtitle-font);
|
|
133
|
+
color: var(--subtitle-text-color);
|
|
134
|
+
border-bottom: var(--subtitle-border-bottom);
|
|
135
|
+
}
|
|
26
136
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
137
|
+
.container_detail h2 {
|
|
138
|
+
margin: var(--grist-title-margin);
|
|
139
|
+
border: var(--grist-title-border);
|
|
140
|
+
font: var(--grist-title-font);
|
|
141
|
+
color: var(--secondary-color);
|
|
142
|
+
}
|
|
33
143
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
144
|
+
.container_detail h2 mwc-icon {
|
|
145
|
+
vertical-align: middle;
|
|
146
|
+
margin: var(--grist-title-icon-margin);
|
|
147
|
+
font-size: var(--grist-title-icon-size);
|
|
148
|
+
color: var(--grist-title-icon-color);
|
|
149
|
+
}
|
|
40
150
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
151
|
+
h2 {
|
|
152
|
+
padding-bottom: var(--grist-title-with-grid-padding);
|
|
153
|
+
}
|
|
154
|
+
ox-grist {
|
|
155
|
+
overflow-y: auto;
|
|
156
|
+
flex: 1;
|
|
157
|
+
}
|
|
158
|
+
search-form {
|
|
159
|
+
overflow: visible;
|
|
160
|
+
}
|
|
51
161
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
162
|
+
.button-container {
|
|
163
|
+
padding: var(--button-container-padding);
|
|
164
|
+
margin: var(--button-container-margin);
|
|
165
|
+
text-align: var(--button-container-align);
|
|
166
|
+
background-color: var(--button-container-background);
|
|
167
|
+
height: var(--button-container-height);
|
|
168
|
+
text-align: right;
|
|
169
|
+
padding-right: 12px;
|
|
170
|
+
}
|
|
171
|
+
`
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
static get ['properties']() {
|
|
175
|
+
return { configGrist: { type: Object }, menuId: { type: String } }
|
|
176
|
+
}
|
|
177
|
+
async [a0_0x15d097(0x1c4)]() {
|
|
178
|
+
const _0x1edfd3 = a0_0x15d097
|
|
179
|
+
;(this[_0x1edfd3(0x1a4)] = {
|
|
180
|
+
rows: { selectable: !0x1, appendable: !0x1 },
|
|
181
|
+
pagination: { infinite: !0x0 },
|
|
182
|
+
columns: [
|
|
183
|
+
...MetaApi[_0x1edfd3(0x1c5)](!0x1, !0x1),
|
|
184
|
+
MetaApi[_0x1edfd3(0x198)](_0x1edfd3(0x1ba), _0x1edfd3(0x191), _0x1edfd3(0x1b3), !0x0, !0x1, 0x50),
|
|
185
|
+
MetaApi['getGristColumnConfig'](_0x1edfd3(0x1b7), _0x1edfd3(0x18f), _0x1edfd3(0x195), !0x1, !0x1, 0xb4),
|
|
186
|
+
MetaApi[_0x1edfd3(0x1b0)]('string', 'header', _0x1edfd3(0x1c2), _0x1edfd3(0x195), !0x1, !0x1, 0xb4),
|
|
187
|
+
MetaApi[_0x1edfd3(0x198)](_0x1edfd3(0x194), _0x1edfd3(0x19b), _0x1edfd3(0x1b3), !0x0, !0x1, 0x3c)
|
|
188
|
+
]
|
|
189
|
+
}),
|
|
190
|
+
super[_0x1edfd3(0x1c4)] && (await super[_0x1edfd3(0x1c4)]())
|
|
191
|
+
}
|
|
192
|
+
[a0_0x15d097(0x1c3)]() {
|
|
193
|
+
const _0x58b0e5 = a0_0x15d097
|
|
194
|
+
return html` <div id="container" class="container">
|
|
195
|
+
<div class="container_detail">
|
|
196
|
+
<ox-grist
|
|
197
|
+
id="ox-grist"
|
|
198
|
+
.config=${this[_0x58b0e5(0x1a4)]}
|
|
199
|
+
.mode=${_0x58b0e5(0x197)}
|
|
200
|
+
auto-fetch
|
|
201
|
+
.fetchHandler=${this[_0x58b0e5(0x1af)][_0x58b0e5(0x18d)](this)}
|
|
202
|
+
>
|
|
203
|
+
</ox-grist>
|
|
204
|
+
<div id="button-container" class="button-container">
|
|
205
|
+
<mwc-button
|
|
206
|
+
raised
|
|
207
|
+
label="${TermsUtil['tButton'](_0x58b0e5(0x18e))}"
|
|
208
|
+
style="margin-left:7px;margin-top:7px;"
|
|
209
|
+
@click=${this[_0x58b0e5(0x18e)]['bind'](this)}
|
|
210
|
+
>
|
|
211
|
+
</mwc-button>
|
|
212
|
+
<mwc-button
|
|
213
|
+
raised
|
|
214
|
+
label="${TermsUtil[_0x58b0e5(0x1bf)](_0x58b0e5(0x1bd))}"
|
|
215
|
+
style="margin-left:7px;margin-top:7px;"
|
|
216
|
+
@click=${this[_0x58b0e5(0x1bd)]['bind'](this)}
|
|
217
|
+
>
|
|
218
|
+
</mwc-button>
|
|
219
|
+
<mwc-button
|
|
220
|
+
raised
|
|
221
|
+
label="${TermsUtil[_0x58b0e5(0x1bf)](_0x58b0e5(0x199))}"
|
|
222
|
+
style="margin-left:7px;margin-top:7px;"
|
|
223
|
+
@click=${this[_0x58b0e5(0x199)][_0x58b0e5(0x18d)](this)}
|
|
224
|
+
>
|
|
225
|
+
</mwc-button>
|
|
77
226
|
</div>
|
|
78
|
-
</div
|
|
227
|
+
</div>
|
|
228
|
+
</div>`
|
|
229
|
+
}
|
|
230
|
+
get [a0_0x15d097(0x1ab)]() {
|
|
231
|
+
const _0x207269 = a0_0x15d097
|
|
232
|
+
return this[_0x207269(0x1a3)][_0x207269(0x1a0)](_0x207269(0x1c0))
|
|
233
|
+
}
|
|
234
|
+
async [a0_0x15d097(0x1af)]() {
|
|
235
|
+
const _0x35717e = a0_0x15d097
|
|
236
|
+
let _0x4d6eb2 = this[_0x35717e(0x1a6)][_0x35717e(0x192)]['columns'][_0x35717e(0x1a1)](
|
|
237
|
+
_0x3ab341 => _0x35717e(0x1a5) != _0x3ab341[_0x35717e(0x1b9)] && 'id' != _0x3ab341[_0x35717e(0x18f)]
|
|
238
|
+
),
|
|
239
|
+
_0x439bb8 = 0x0
|
|
240
|
+
return {
|
|
241
|
+
total: 0x0,
|
|
242
|
+
records: _0x4d6eb2[_0x35717e(0x1b6)](
|
|
243
|
+
_0x4cf796 => ((_0x439bb8 += 0xa), (_0x4cf796[_0x35717e(0x191)] = _0x439bb8), _0x4cf796)
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
async [a0_0x15d097(0x1bd)](_0x263cca) {
|
|
248
|
+
const _0x3047b9 = a0_0x15d097
|
|
249
|
+
let _0x13c65d = await MetaApi[_0x3047b9(0x1b2)](this[_0x3047b9(0x1b4)]),
|
|
250
|
+
{ id: _0x16a8e6 } = _0x13c65d
|
|
251
|
+
if (_0x16a8e6) 0x1 == (await ServiceUtil[_0x3047b9(0x19c)]([_0x16a8e6], _0x3047b9(0x193))) && history['back']()
|
|
252
|
+
else await MetaApi['showToast']('info', _0x3047b9(0x1ac))
|
|
253
|
+
}
|
|
254
|
+
async ['reset'](_0x1a1480) {
|
|
255
|
+
const _0x340af0 = a0_0x15d097
|
|
256
|
+
await this[_0x340af0(0x1ab)][_0x340af0(0x19f)]()
|
|
257
|
+
}
|
|
258
|
+
async ['save'](_0x39cba7) {
|
|
259
|
+
const _0x51633e = a0_0x15d097
|
|
260
|
+
MetaApi[_0x51633e(0x1bb)](this[_0x51633e(0x1ab)])
|
|
261
|
+
let _0x2a44a3 = await MetaApi['findMenuGridPersnalTemplate'](this[_0x51633e(0x1b4)]),
|
|
262
|
+
{ id: _0x15e814, template: _0x91efd2 = {} } = _0x2a44a3,
|
|
263
|
+
_0x5af54a = 'master'
|
|
264
|
+
this[_0x51633e(0x1a6)][_0x51633e(0x1a9)] && (_0x5af54a = this[_0x51633e(0x1a6)]['configName']),
|
|
265
|
+
_0x91efd2[_0x5af54a] && delete _0x91efd2[_0x5af54a]
|
|
266
|
+
let _0x19942f = this[_0x51633e(0x1ab)][_0x51633e(0x19e)][_0x51633e(0x1a7)][_0x51633e(0x1a1)](
|
|
267
|
+
_0x229445 => 0x0 == _0x229445['hidden']
|
|
268
|
+
)
|
|
269
|
+
_0x19942f[_0x51633e(0x1aa)]((_0x1208b3, _0x45c381) => _0x1208b3[_0x51633e(0x191)] - _0x45c381[_0x51633e(0x191)]),
|
|
270
|
+
(_0x91efd2[_0x5af54a] = _0x19942f[_0x51633e(0x1b6)](_0x294300 => _0x294300[_0x51633e(0x18f)]))
|
|
271
|
+
let _0x2c8faa = { template: JSON[_0x51633e(0x1bc)](_0x91efd2) }
|
|
272
|
+
_0x15e814
|
|
273
|
+
? ((_0x2c8faa['id'] = _0x15e814), (_0x2c8faa['cuFlag'] = 'M'))
|
|
274
|
+
: ((_0x2c8faa['menu'] = { id: this[_0x51633e(0x1b4)] }), (_0x2c8faa[_0x51633e(0x1be)] = '+')),
|
|
275
|
+
await MetaApi[_0x51633e(0x1c1)](_0x51633e(0x19d), [_0x2c8faa]),
|
|
276
|
+
MetaApi[_0x51633e(0x196)]('info', TermsUtil['tText']('success\x20to\x20save')),
|
|
277
|
+
history[_0x51633e(0x190)]()
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
customElements['define']('personal-column-selector', PersonalColumnSelector)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/meta-ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.27",
|
|
4
4
|
"main": "server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@things-factory/lite-menu": "^6.0.
|
|
27
|
-
"@things-factory/menu-base": "^6.0.
|
|
26
|
+
"@things-factory/lite-menu": "^6.0.27",
|
|
27
|
+
"@things-factory/menu-base": "^6.0.27",
|
|
28
28
|
"@things-factory/operato-license-checker": "^3.1.0",
|
|
29
|
-
"@things-factory/shell": "^6.0.
|
|
29
|
+
"@things-factory/shell": "^6.0.27"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "684784a4f3e450e9ce07dcd51db70b8a2d2c2a0f"
|
|
32
32
|
}
|