@things-factory/operato-tools 6.1.40 → 6.1.42
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 +1 -1
- package/client/pages/generator/button-config-tab-mixin.js +4 -4
- package/client/pages/generator/column-config-tab-mixin.js +4 -4
- package/client/pages/generator/etc-config-tab-mixin.js +4 -4
- package/client/pages/generator/form-config-tab-mixin.js +3 -3
- package/client/pages/generator/graphql-config-tab-mixin.js +23 -23
- package/client/pages/generator/grid-config-tab-mixin.js +22 -22
- package/client/pages/generator/grid-emphasized-config-tab-mixin.js +8 -8
- package/client/pages/generator/menu-config-tab-mixin.js +12 -12
- package/client/pages/generator/meta-generator-page.js +11 -11
- package/client/pages/generator/search-config-tab-mixin.js +4 -4
- package/client/pages/generator/tab-config-tab-mixin.js +4 -4
- package/client/pages/main.js +4 -4
- package/client/reducers/main.js +1 -1
- package/package.json +3 -3
- 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/tool-entity/create-menu.js +1 -1
- package/server/service/tool-entity/create-service.js +1 -1
- package/server/service/tool-secret/tool-permission.js +1 -1
- package/server/service/tool-secret/tool-resolver.js +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x2054(_0x317657,_0x25caf7){const _0x268ce3=a0_0x268c();return a0_0x2054=function(_0x2054cc,_0x1b835a){_0x2054cc=_0x2054cc-0x143;let _0x929bf9=_0x268ce3[_0x2054cc];return _0x929bf9;},a0_0x2054(_0x317657,_0x25caf7);}const a0_0x3e63b9=a0_0x2054;(function(_0x1d989c,_0x55d6a2){const _0x5500c1=a0_0x2054,_0x5b9fdd=_0x1d989c();while(!![]){try{const _0x1fe6a6=parseInt(_0x5500c1(0x168))/0x1*(-parseInt(_0x5500c1(0x15a))/0x2)+parseInt(_0x5500c1(0x162))/0x3*(-parseInt(_0x5500c1(0x155))/0x4)+parseInt(_0x5500c1(0x153))/0x5+-parseInt(_0x5500c1(0x150))/0x6+parseInt(_0x5500c1(0x14a))/0x7+-parseInt(_0x5500c1(0x146))/0x8+parseInt(_0x5500c1(0x148))/0x9*(parseInt(_0x5500c1(0x15c))/0xa);if(_0x1fe6a6===_0x55d6a2)break;else _0x5b9fdd['push'](_0x5b9fdd['shift']());}catch(_0x34ce6b){_0x5b9fdd['push'](_0x5b9fdd['shift']());}}}(a0_0x268c,0xc6fbd));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x268c(){const _0x3c6be8=['codeItems','grid_row_check_use','grid','1073494VVeEui','grid_use_filter','20GmlUdP','use_row_checker','grid_term_unlimited','true','select-row-toggle','mobile_mode','3IKUkAX','renderGridConfigTab','grid_use_row_check','unsupport','name','grid_pagination','2fKuEzU','length','getGridConfigTabValues','view_mode','GRID','grid_term_default','map','pages','use','LIST','grid_support_multi_select','support','setGridConfigTabDetaultValues','row','grid_desk_view','unuse','description','grid_mobile_view','CARD','multiple_select','option','tLabel','list_view_use','gridViewModes','push','grid_multi_select','4754296HhTSuO','_view_use','12648915ICDXHJ','viewGridData','1964487apFMGN','getElementValueById','grid_view_use','toLowerCase','includes','GRID_VIEW_MODE','855360IAQAAw','desk_mode','setGridConfigTabValues','338270ePHeRU','unlimited','2135148TatyEC','use_filter_form'];a0_0x268c=function(){return _0x3c6be8;};return a0_0x268c();}export const GridConfigTabMixin=_0x1a42c5=>class extends _0x1a42c5{[a0_0x3e63b9(0x152)](_0x45b63f){const _0x1b31a9=a0_0x3e63b9;if(_0x45b63f){var {mobile_mode:_0x52e8bf='',desk_mode:_0x531201='',pages:_0x54c627=[],use_row_checker:_0x192e08=!0x0,view_mode:_0x527863=[]}=_0x45b63f[_0x1b31a9(0x17c)]||{};let _0x185962=(_0x45b63f[_0x1b31a9(0x175)]||{'multiple_select':!0x1})[_0x1b31a9(0x17b)],_0x1758ed='unlimited'==_0x54c627?'grid_term_unlimited':0x0==_0x54c627[_0x1b31a9(0x169)]?'':0x14==_0x54c627[0x0]?'grid_term_default':'grid_term_'+_0x54c627[0x0];this[_0x1b31a9(0x149)]={'mobile_mode':_0x52e8bf,'desk_mode':_0x531201,'use_row_checker':_0x192e08,'pages':_0x1758ed,'view_mode':_0x527863,'multiple_select':_0x185962,'use_filter_form':_0x45b63f['use_filter_form']};}else this[_0x1b31a9(0x174)]();}[a0_0x3e63b9(0x16a)](){const _0x56a55d=a0_0x3e63b9;let _0xbd7695={'grid':{'option':{},'row':{'click':_0x56a55d(0x160)}}},_0x213995=this[_0x56a55d(0x14b)](_0x56a55d(0x158)),_0x1eaa87=this[_0x56a55d(0x14b)](_0x56a55d(0x145)),_0x37da28=this[_0x56a55d(0x14b)](_0x56a55d(0x176)),_0x554f69=this[_0x56a55d(0x14b)](_0x56a55d(0x179)),_0x3918e1=this['getElementValueById'](_0x56a55d(0x15b)),_0x3ac52a=this[_0x56a55d(0x14b)](_0x56a55d(0x167)),_0x231a61=this[_0x56a55d(0x14b)](_0x56a55d(0x14c)),_0x1bdcbc=this['getElementValueById'](_0x56a55d(0x17e)),_0xe409ea=this[_0x56a55d(0x14b)]('card_view_use');return _0xbd7695[_0x56a55d(0x159)][_0x56a55d(0x156)]=_0x56a55d(0x15f)==_0x3918e1,_0xbd7695[_0x56a55d(0x159)]['row'][_0x56a55d(0x17b)]=_0x56a55d(0x15f)==_0x1eaa87,_0xbd7695['grid'][_0x56a55d(0x17c)][_0x56a55d(0x15d)]=_0x56a55d(0x15f)==_0x213995,_0xbd7695[_0x56a55d(0x159)]['option'][_0x56a55d(0x161)]=_0x554f69,_0xbd7695['grid'][_0x56a55d(0x17c)]['desk_mode']=_0x37da28,_0x56a55d(0x16d)==_0x3ac52a?_0xbd7695['grid'][_0x56a55d(0x17c)][_0x56a55d(0x16f)]=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x3ac52a?_0xbd7695[_0x56a55d(0x159)][_0x56a55d(0x17c)][_0x56a55d(0x16f)]=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x3ac52a?_0xbd7695[_0x56a55d(0x159)][_0x56a55d(0x17c)]['pages']=[0x64,0x1f4,0x3e8,0x1388]:'grid_term_1000'==_0x3ac52a?_0xbd7695['grid'][_0x56a55d(0x17c)][_0x56a55d(0x16f)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x56a55d(0x15e)==_0x3ac52a&&(_0xbd7695['grid']['option'][_0x56a55d(0x16f)]=_0x56a55d(0x154)),_0xbd7695['grid'][_0x56a55d(0x17c)][_0x56a55d(0x16b)]=[],_0x56a55d(0x15f)==_0x231a61&&_0xbd7695[_0x56a55d(0x159)][_0x56a55d(0x17c)][_0x56a55d(0x16b)][_0x56a55d(0x144)]('GRID'),'true'==_0x1bdcbc&&_0xbd7695[_0x56a55d(0x159)][_0x56a55d(0x17c)][_0x56a55d(0x16b)][_0x56a55d(0x144)](_0x56a55d(0x171)),'true'==_0xe409ea&&_0xbd7695[_0x56a55d(0x159)][_0x56a55d(0x17c)][_0x56a55d(0x16b)][_0x56a55d(0x144)](_0x56a55d(0x17a)),_0xbd7695;}async['setGridConfigTabConfig'](){const _0x24f448=a0_0x3e63b9;let _0x49e6e4=await MetaApi[_0x24f448(0x157)]('GRID_PAGE_OPTIONS'),_0x5d4f1b=await MetaApi[_0x24f448(0x157)](_0x24f448(0x14f));this[_0x24f448(0x143)]=_0x5d4f1b,this['gridPageOptions']=_0x49e6e4;}['setGridConfigTabDetaultValues'](){const _0x38f9aa=a0_0x3e63b9;this['viewGridData']||(this[_0x38f9aa(0x149)]={'mobile_mode':this['gridViewModes']?this['gridViewModes'][0x1]:_0x38f9aa(0x171),'desk_mode':this['gridViewModes']?this[_0x38f9aa(0x143)][0x0]:_0x38f9aa(0x16c),'use_row_checker':!0x0,'pages':_0x38f9aa(0x16d),'view_mode':[...this[_0x38f9aa(0x143)]?this['gridViewModes']:[_0x38f9aa(0x16c),_0x38f9aa(0x171),'CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x3e63b9(0x163)](){const _0x1f0093=a0_0x3e63b9;return this[_0x1f0093(0x174)](),html`
|
|
2
2
|
<div field-2column>
|
|
3
3
|
<div field>
|
|
4
4
|
<h2>
|
|
5
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
5
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x164))}
|
|
6
6
|
</h2>
|
|
7
7
|
<label>
|
|
8
8
|
<span>
|
|
9
9
|
<input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="true"
|
|
10
|
-
?checked=${this[
|
|
10
|
+
?checked=${this[_0x1f0093(0x149)][_0x1f0093(0x15d)]}>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x170))}</input>
|
|
11
11
|
<input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
|
|
12
|
-
?checked=${!this[
|
|
12
|
+
?checked=${!this[_0x1f0093(0x149)][_0x1f0093(0x15d)]}>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x177))}</input>
|
|
13
13
|
</span>
|
|
14
14
|
</label>
|
|
15
15
|
</div>
|
|
16
16
|
<div field>
|
|
17
17
|
<h2>
|
|
18
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
18
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x172))}
|
|
19
19
|
</h2>
|
|
20
20
|
<label>
|
|
21
21
|
<span>
|
|
22
22
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="true"
|
|
23
|
-
?checked=${this[
|
|
23
|
+
?checked=${this[_0x1f0093(0x149)]['multiple_select']}>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x173))}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this[
|
|
25
|
+
?checked=${!this[_0x1f0093(0x149)][_0x1f0093(0x17b)]}>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x165))}</input>
|
|
26
26
|
</span>
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
<div field>
|
|
30
30
|
<h2>
|
|
31
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
31
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x15b))}
|
|
32
32
|
</h2>
|
|
33
33
|
<label>
|
|
34
34
|
<span>
|
|
35
35
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="true"
|
|
36
|
-
?checked=${this[
|
|
36
|
+
?checked=${this[_0x1f0093(0x149)][_0x1f0093(0x156)]}>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x170))}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0x1f0093(0x149)][_0x1f0093(0x156)]}>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x177))}</input>
|
|
39
39
|
</span>
|
|
40
40
|
</label>
|
|
41
41
|
</div>
|
|
42
42
|
<div></div>
|
|
43
43
|
<div field>
|
|
44
44
|
<h2>
|
|
45
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
45
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x176))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this['gridViewModes']?.[
|
|
49
|
+
${this['gridViewModes']?.[_0x1f0093(0x16e)](_0x4efe2a=>html`<option value=${_0x4efe2a[_0x1f0093(0x166)]} ?selected=${this[_0x1f0093(0x149)][_0x1f0093(0x151)]==_0x4efe2a[_0x1f0093(0x166)]}>${_0x4efe2a[_0x1f0093(0x178)]}</option>`)}
|
|
50
50
|
</select>
|
|
51
51
|
</label>
|
|
52
52
|
</div>
|
|
53
53
|
<div field>
|
|
54
54
|
<h2>
|
|
55
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
55
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x1f0093(0x179))}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this[
|
|
59
|
+
${this[_0x1f0093(0x143)]?.[_0x1f0093(0x16e)](_0x962517=>html`<option value=${_0x962517[_0x1f0093(0x166)]} ?selected=${this[_0x1f0093(0x149)][_0x1f0093(0x161)]==_0x962517['name']}>${_0x962517[_0x1f0093(0x178)]}</option>`)}
|
|
60
60
|
</select>
|
|
61
61
|
</label>
|
|
62
62
|
</div>
|
|
63
63
|
<div field>
|
|
64
64
|
<h2>
|
|
65
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
65
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f0093(0x17d)]('grid_support_view')}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0x1f0093(0x143)]?.[_0x1f0093(0x16e)](_0x4f6321=>html`
|
|
69
|
+
<span>${_0x4f6321[_0x1f0093(0x166)]}
|
|
70
|
+
<input type="radio" name=${_0x4f6321[_0x1f0093(0x166)][_0x1f0093(0x14d)]()+_0x1f0093(0x147)} id=${_0x4f6321['name']['toLowerCase']()+_0x1f0093(0x147)} ?checked=${this[_0x1f0093(0x149)][_0x1f0093(0x16b)][_0x1f0093(0x14e)](_0x4f6321[_0x1f0093(0x166)])} value="true">${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x170))}</input>
|
|
71
|
+
<input type="radio" name=${_0x4f6321[_0x1f0093(0x166)][_0x1f0093(0x14d)]()+_0x1f0093(0x147)} id=${_0x4f6321[_0x1f0093(0x166)][_0x1f0093(0x14d)]()+'_view_use'} ?checked=${!this['viewGridData'][_0x1f0093(0x16b)][_0x1f0093(0x14e)](_0x4f6321[_0x1f0093(0x166)])} value="false">${TermsUtil[_0x1f0093(0x17d)]('unuse')}</input>
|
|
72
72
|
</span>
|
|
73
73
|
`)}
|
|
74
74
|
</label>
|
|
75
75
|
</div>
|
|
76
76
|
<div field>
|
|
77
77
|
<h2>
|
|
78
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
78
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1f0093(0x17d)](_0x1f0093(0x167))}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this['gridPageOptions']?.[
|
|
81
|
+
${this['gridPageOptions']?.[_0x1f0093(0x16e)](_0x4eebac=>html`
|
|
82
82
|
<span>
|
|
83
|
-
<input type="radio" name="grid_pagination" id="grid_pagination" value=${
|
|
83
|
+
<input type="radio" name="grid_pagination" id="grid_pagination" value=${_0x4eebac[_0x1f0093(0x166)]} ?checked=${this[_0x1f0093(0x149)][_0x1f0093(0x16f)]==_0x4eebac[_0x1f0093(0x166)]}>${TermsUtil[_0x1f0093(0x17d)](_0x4eebac[_0x1f0093(0x166)])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4506a5=a0_0x2e5d;(function(_0x57f2a0,_0x37ec93){const _0x49b66b=a0_0x2e5d,_0x58aea0=_0x57f2a0();while(!![]){try{const _0x2477ce=-parseInt(_0x49b66b(0x163))/0x1+-parseInt(_0x49b66b(0x14f))/0x2*(parseInt(_0x49b66b(0x135))/0x3)+-parseInt(_0x49b66b(0x145))/0x4*(-parseInt(_0x49b66b(0x157))/0x5)+-parseInt(_0x49b66b(0x14d))/0x6+parseInt(_0x49b66b(0x14b))/0x7*(-parseInt(_0x49b66b(0x14e))/0x8)+-parseInt(_0x49b66b(0x165))/0x9*(-parseInt(_0x49b66b(0x15e))/0xa)+parseInt(_0x49b66b(0x152))/0xb*(parseInt(_0x49b66b(0x158))/0xc);if(_0x2477ce===_0x37ec93)break;else _0x58aea0['push'](_0x58aea0['shift']());}catch(_0x241dba){_0x58aea0['push'](_0x58aea0['shift']());}}}(a0_0x2a23,0xa785d));import{html}from'lit-element';function a0_0x2a23(){const _0x3940f0=['map','GRID','left','grid_row_emphasized_config','string','42JZtVxM','background-color','465552BZEkAZ','1668952YFhgwB','10410dBdXNI','querySelector','emphasizedConfigTabColumnEmphasizedGrist','6229949sNtwIB','fontColor','bind','row-emphasized-grist','gutter','210220XVfKsy','12ZIKjBv','emphasizedConfigTabRowEmphasizedGrist','fetch','tLabel','#row-emphasized-grist','grid_column_emphasized_config','20GxduOx','setGridEmphasizedConfigTabValues','column-emphasized-grist','getGristGuttersConfig','getGristSelectableConfig','743237QUeuYp','shadowRoot','5103144hIaWcR','code-input','rank','columnEmphasizedConfig','rowEmphasizedData','setGridEmphasizedConfigTabConfig','delete','fetchColumnEmphasized','viewEmphasizedData','117ALvUEw','sortRecordByRank','backgroundColor','setGridEmphasizedConfigTabDefaultValues','#column-emphasized-grist','fetchRowEmphasized','right','logic','column','getGridEmphasizedConfigTabValues','rowEmphasizedConfig','forEach','deleteRow','columnEmphasizedData','push','renderGridEmphasizedConfigTab','120WQgxba'];a0_0x2a23=function(){return _0x3940f0;};return a0_0x2a23();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x2e5d(_0x2ae2b4,_0x16ad43){const _0x2a23eb=a0_0x2a23();return a0_0x2e5d=function(_0x2e5d89,_0x97f52f){_0x2e5d89=_0x2e5d89-0x131;let _0x564cea=_0x2a23eb[_0x2e5d89];return _0x564cea;},a0_0x2e5d(_0x2ae2b4,_0x16ad43);}export const GridEmphasizedConfigTabMixin=_0x1d3f25=>class extends _0x1d3f25{[a0_0x4506a5(0x15f)](_0x5e733b){const _0x345871=a0_0x4506a5;if(_0x5e733b){this[_0x345871(0x134)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x5f4063=0x1;this[_0x345871(0x134)][_0x345871(0x169)]=(_0x5e733b['row']||[])[_0x345871(0x146)](_0x245321=>({'id':_0x5f4063,'rank':_0x5f4063++,'backgroundColor':_0x245321[_0x345871(0x137)]||'','fontColor':_0x245321['fontColor']||'','logic':_0x245321[_0x345871(0x13c)]||''})),_0x5f4063=0x1;let _0x28b956=_0x5e733b['column']||[];Object['keys'](_0x28b956)[_0x345871(0x140)](_0x5c6863=>{const _0x291e97=_0x345871;let _0x5b18c8=_0x28b956[_0x5c6863]||[],_0x5d7361=0x1;_0x5b18c8[_0x291e97(0x140)](_0x3928bc=>{const _0x5c3e5e=_0x291e97;this[_0x5c3e5e(0x134)][_0x5c3e5e(0x142)]['push']({'id':_0x5f4063++,'rank':_0x5d7361++,'column':_0x5c6863,'backgroundColor':_0x3928bc[_0x5c3e5e(0x137)]||'','fontColor':_0x3928bc['fontColor']||'','logic':_0x3928bc[_0x5c3e5e(0x13c)]||''});});}),this[_0x345871(0x151)]?.[_0x345871(0x15a)](),this[_0x345871(0x159)]?.[_0x345871(0x15a)]();}else this[_0x345871(0x138)]();}[a0_0x4506a5(0x13e)](){const _0x1659c7=a0_0x4506a5;let _0x591014=this['getElementValueById'](_0x1659c7(0x155)),_0xf28a5e=this['getElementValueById'](_0x1659c7(0x160)),_0x27fa18=[];this['sortRecordByRank'](_0x591014)?.['forEach'](_0x10634d=>{const _0x304a2=_0x1659c7;_0x27fa18[_0x304a2(0x143)]({'backgroundColor':_0x10634d[_0x304a2(0x137)],'fontColor':_0x10634d[_0x304a2(0x153)],'logic':_0x10634d[_0x304a2(0x13c)]});});let _0x446764={};return this[_0x1659c7(0x136)](_0xf28a5e)?.[_0x1659c7(0x140)](_0x2856da=>{const _0x16ace2=_0x1659c7;_0x446764[_0x2856da[_0x16ace2(0x13d)]]||(_0x446764[_0x2856da['column']]=[]),_0x446764[_0x2856da[_0x16ace2(0x13d)]]['push']({'backgroundColor':_0x2856da[_0x16ace2(0x137)],'fontColor':_0x2856da[_0x16ace2(0x153)],'logic':_0x2856da[_0x16ace2(0x13c)]});}),{'gridEmphasized':{'row':_0x27fa18||[],'column':_0x446764||{}}};}get[a0_0x4506a5(0x159)](){const _0xf87fed=a0_0x4506a5;return this[_0xf87fed(0x164)]['querySelector'](_0xf87fed(0x15c));}get[a0_0x4506a5(0x151)](){const _0x37b269=a0_0x4506a5;return this[_0x37b269(0x164)][_0x37b269(0x150)](_0x37b269(0x139));}[a0_0x4506a5(0x131)](){const _0x50399f=a0_0x4506a5;this[_0x50399f(0x13f)]={'rows':MetaApi[_0x50399f(0x162)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x50399f(0x161)](!0x1,!0x1),{'type':_0x50399f(0x156),'gutterName':'button','icon':_0x50399f(0x132),'handlers':{'click':(_0x397a02,_0x113716,_0x1a497f,_0x2adb7f,_0x264048)=>{const _0x5718e1=_0x50399f;_0x2adb7f['id']&&this[_0x5718e1(0x141)](this[_0x5718e1(0x159)],_0x2adb7f);}}},{'type':_0x50399f(0x14a),'name':'id','hidden':!0x0},{'type':'integer','name':_0x50399f(0x167),'header':TermsUtil[_0x50399f(0x15b)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x50399f(0x14a),'name':_0x50399f(0x137),'header':TermsUtil['tLabel'](_0x50399f(0x14c)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'string','name':'fontColor','header':TermsUtil[_0x50399f(0x15b)]('font-color'),'record':{'align':_0x50399f(0x148),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x50399f(0x166),'name':_0x50399f(0x13c),'header':TermsUtil[_0x50399f(0x15b)](_0x50399f(0x13c)),'record':{'align':_0x50399f(0x148),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this['columnEmphasizedConfig']={'rows':MetaApi[_0x50399f(0x162)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x50399f(0x161)](!0x1,!0x1),{'type':'gutter','gutterName':'button','icon':_0x50399f(0x132),'handlers':{'click':(_0x1a763d,_0x1fa9be,_0x232156,_0x1fcbf2,_0x45d9de)=>{const _0x2c9f9e=_0x50399f;_0x1fcbf2['id']&&this[_0x2c9f9e(0x141)](this[_0x2c9f9e(0x151)],_0x1fcbf2);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x50399f(0x14a),'name':'column','header':TermsUtil[_0x50399f(0x15b)](_0x50399f(0x13d)),'record':{'align':_0x50399f(0x148),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'integer','name':_0x50399f(0x167),'header':TermsUtil[_0x50399f(0x15b)](_0x50399f(0x167)),'sortable':!0x0,'width':0x41,'record':{'align':_0x50399f(0x13b),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x50399f(0x137),'header':TermsUtil['tLabel']('background-color'),'record':{'align':_0x50399f(0x148),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x50399f(0x14a),'name':_0x50399f(0x153),'header':TermsUtil[_0x50399f(0x15b)]('font-color'),'record':{'align':_0x50399f(0x148),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x50399f(0x166),'name':_0x50399f(0x13c),'header':TermsUtil[_0x50399f(0x15b)]('logic'),'record':{'align':_0x50399f(0x148),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}['setGridEmphasizedConfigTabDefaultValues'](){const _0x29d79d=a0_0x4506a5;this['viewEmphasizedData']||(this[_0x29d79d(0x134)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x4506a5(0x144)](){const _0x6b5cae=a0_0x4506a5;return this[_0x6b5cae(0x138)](),html`
|
|
2
2
|
<div style='grid-template-rows: 50% 50%;display:grid;flex:1;'>
|
|
3
3
|
<div field >
|
|
4
4
|
<h2>
|
|
5
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
5
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x6b5cae(0x15b)](_0x6b5cae(0x149))}
|
|
6
6
|
</h2>
|
|
7
|
-
<ox-grist id="row-emphasized-grist" .config=${this[
|
|
8
|
-
.fetchHandler=${this[
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x6b5cae(0x13f)]} .mode=${_0x6b5cae(0x147)} auto-fetch
|
|
8
|
+
.fetchHandler=${this[_0x6b5cae(0x13a)][_0x6b5cae(0x154)](this)}></ox-grist>
|
|
9
9
|
</div>
|
|
10
10
|
<div field >
|
|
11
11
|
<h2>
|
|
12
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
12
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x6b5cae(0x15b)](_0x6b5cae(0x15d))}
|
|
13
13
|
</h2>
|
|
14
|
-
<ox-grist id="column-emphasized-grist" .config=${this[
|
|
15
|
-
.fetchHandler=${this[
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this[_0x6b5cae(0x168)]} .mode=${'GRID'} auto-fetch
|
|
15
|
+
.fetchHandler=${this['fetchColumnEmphasized']['bind'](this)}></ox-grist>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
-
`;}async[
|
|
18
|
+
`;}async[a0_0x4506a5(0x13a)](){const _0x1e93ea=a0_0x4506a5;return{'records':this[_0x1e93ea(0x134)]['rowEmphasizedData'],'total':0x0};}async[a0_0x4506a5(0x133)](){const _0x139335=a0_0x4506a5;return{'records':this['viewEmphasizedData'][_0x139335(0x142)],'total':0x0};}};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5010cb=a0_0x3bff;(function(_0x58a898,_0x4d21bf){const _0x445637=a0_0x3bff,_0x67879e=_0x58a898();while(!![]){try{const _0x5889cb=-parseInt(_0x445637(0x120))/0x1*(parseInt(_0x445637(0x11e))/0x2)+-parseInt(_0x445637(0x11b))/0x3*(parseInt(_0x445637(0x13c))/0x4)+parseInt(_0x445637(0x138))/0x5*(-parseInt(_0x445637(0x137))/0x6)+parseInt(_0x445637(0x123))/0x7*(parseInt(_0x445637(0x130))/0x8)+-parseInt(_0x445637(0x125))/0x9*(-parseInt(_0x445637(0x128))/0xa)+parseInt(_0x445637(0x12e))/0xb+-parseInt(_0x445637(0x12d))/0xc*(-parseInt(_0x445637(0x11d))/0xd);if(_0x5889cb===_0x4d21bf)break;else _0x67879e['push'](_0x67879e['shift']());}catch(_0x2b6459){_0x67879e['push'](_0x67879e['shift']());}}}(a0_0x5068,0x2296d));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x16109e=>class extends _0x16109e{[a0_0x5010cb(0x135)](_0x5235c3){const _0x201ccb=a0_0x5010cb;if(_0x5235c3){var {title:_0x36fb5c='',name:_0x13552a='',desc:_0x3c9db4='',help:_0x15443b=''}=_0x5235c3||{};this[_0x201ccb(0x132)]={'title':_0x36fb5c,'name':_0x13552a,'desc':_0x3c9db4,'help_doc':_0x15443b},this[_0x201ccb(0x13a)](_0x201ccb(0x121))[_0x201ccb(0x131)]=_0x36fb5c,this[_0x201ccb(0x13a)](_0x201ccb(0x11c))[_0x201ccb(0x131)]=_0x13552a,this[_0x201ccb(0x13a)](_0x201ccb(0x139))[_0x201ccb(0x131)]=_0x3c9db4,this[_0x201ccb(0x13a)]('help_doc')[_0x201ccb(0x131)]=_0x15443b;}else this['setMenuConfigTabDefaultValue']();}[a0_0x5010cb(0x13b)](){const _0x953cb3=a0_0x5010cb;let _0x462e9f={'menu':{}},_0x378964=this[_0x953cb3(0x12f)](_0x953cb3(0x121)),_0x184565=this['getElementValueById'](_0x953cb3(0x11c)),_0x269a29=this[_0x953cb3(0x12f)]('desc'),_0x2e57f1=this[_0x953cb3(0x12f)](_0x953cb3(0x124));return _0x378964&&(_0x462e9f['menu'][_0x953cb3(0x121)]=_0x378964),_0x184565&&(_0x462e9f['menu'][_0x953cb3(0x11c)]=_0x184565),_0x269a29&&(_0x462e9f[_0x953cb3(0x126)]['desc']=_0x269a29),_0x2e57f1&&(_0x462e9f['menu']['help']=_0x2e57f1),_0x462e9f;}[a0_0x5010cb(0x136)](){const _0x483530=a0_0x5010cb;this['viewMenuData']||(this[_0x483530(0x132)]={'title':'','name':_0x483530(0x11c),'desc':_0x483530(0x134),'help_doc':''});}[a0_0x5010cb(0x12a)](_0x1bf96d){const _0x2d127b=a0_0x5010cb;let _0x499d1a=this[_0x2d127b(0x13a)]('display');_0x499d1a&&(_0x499d1a[_0x2d127b(0x131)]=TermsUtil[_0x2d127b(0x127)](_0x1bf96d[_0x2d127b(0x12b)]['value']));}[a0_0x5010cb(0x11f)](){const _0x35af46=a0_0x5010cb;return this[_0x35af46(0x136)](),html`
|
|
2
2
|
<div field-2column>
|
|
3
3
|
<div field>
|
|
4
|
-
<label>${TermsUtil[
|
|
5
|
-
<input id="title" name="title" type="text" value=${this['viewMenuData'][
|
|
4
|
+
<label>${TermsUtil[_0x35af46(0x122)](_0x35af46(0x133))}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this['viewMenuData'][_0x35af46(0x121)]} @change=${_0x2458a9=>this[_0x35af46(0x12a)](_0x2458a9)}/>
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil[
|
|
10
|
-
<input id="display" name="display" value=${TermsUtil[
|
|
9
|
+
<label>${TermsUtil[_0x35af46(0x122)]('display')}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil[_0x35af46(0x127)](this[_0x35af46(0x132)]['title'])} type="text" readonly
|
|
11
11
|
disabled />
|
|
12
12
|
</label>
|
|
13
13
|
</div>
|
|
14
14
|
<div field>
|
|
15
|
-
<label>${TermsUtil[
|
|
16
|
-
<input id="name" name="name" type="text" value=${this[
|
|
15
|
+
<label>${TermsUtil[_0x35af46(0x122)](_0x35af46(0x129))}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x35af46(0x132)][_0x35af46(0x11c)]} />
|
|
17
17
|
</label>
|
|
18
18
|
</div>
|
|
19
19
|
<div field>
|
|
20
|
-
<label>${TermsUtil[
|
|
21
|
-
<input id="desc" name="desc" type="text" value=${this[
|
|
20
|
+
<label>${TermsUtil[_0x35af46(0x122)](_0x35af46(0x12c))}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this[_0x35af46(0x132)][_0x35af46(0x139)]} />
|
|
22
22
|
</label>
|
|
23
23
|
</div>
|
|
24
24
|
<div field>
|
|
25
|
-
<label>${TermsUtil[
|
|
26
|
-
<input id="help_doc" name="help_doc" type="text" value=${this[
|
|
25
|
+
<label>${TermsUtil[_0x35af46(0x122)](_0x35af46(0x124))}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x35af46(0x132)]['help_doc']} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
|
-
`;}};
|
|
30
|
+
`;}};function a0_0x3bff(_0x234ca6,_0x43e961){const _0x506847=a0_0x5068();return a0_0x3bff=function(_0x3bff4e,_0x5d4892){_0x3bff4e=_0x3bff4e-0x11b;let _0x286647=_0x506847[_0x3bff4e];return _0x286647;},a0_0x3bff(_0x234ca6,_0x43e961);}function a0_0x5068(){const _0x3665c1=['623602hSKADp','help_doc','11871eRTJVS','menu','tTitle','1730ypcGdk','menu_name_field','menuTitleChange','target','menu_desc_field','33432KNwqqo','1984422bWHdBM','getElementValueById','16CCHdAE','value','viewMenuData','menu_title','description','setMenuConfigTabValues','setMenuConfigTabDefaultValue','1314510EFogje','5pIHwEi','desc','getElementById','getMenuConfigTabValues','278276CrgcCP','6Kvfzfq','name','91EXYJYx','212726QKOMXM','renderMenuConfigTab','1NFCWOz','title','tLabel'];a0_0x5068=function(){return _0x3665c1;};return a0_0x5068();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5bcb5f=a0_0x1426;function a0_0x1426(_0x300f1b,_0x519cb6){const _0x25c759=a0_0x25c7();return a0_0x1426=function(_0x142613,_0x476bb4){_0x142613=_0x142613-0x9b;let _0x1d02f6=_0x25c759[_0x142613];return _0x1d02f6;},a0_0x1426(_0x300f1b,_0x519cb6);}(function(_0x4306c4,_0x526b2d){const _0x556f78=a0_0x1426,_0x4a0633=_0x4306c4();while(!![]){try{const _0x15d732=parseInt(_0x556f78(0xfe))/0x1+-parseInt(_0x556f78(0xad))/0x2*(-parseInt(_0x556f78(0xce))/0x3)+-parseInt(_0x556f78(0xbc))/0x4+parseInt(_0x556f78(0x111))/0x5+parseInt(_0x556f78(0xd5))/0x6+-parseInt(_0x556f78(0xc2))/0x7*(-parseInt(_0x556f78(0xb1))/0x8)+-parseInt(_0x556f78(0xee))/0x9*(parseInt(_0x556f78(0xfc))/0xa);if(_0x15d732===_0x526b2d)break;else _0x4a0633['push'](_0x4a0633['shift']());}catch(_0x2a6950){_0x4a0633['push'](_0x4a0633['shift']());}}}(a0_0x25c7,0x82f28));import a0_0xfd5f02 from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';import{store}from'@operato/shell';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{CommonButtonStyles}from'@operato/styles';import{ButtonConfigTabMixin}from'./button-config-tab-mixin';import{MenuConfigTabMixin}from'./menu-config-tab-mixin';import{SearchConfigTabMixin}from'./search-config-tab-mixin';import{GridConfigTabMixin}from'./grid-config-tab-mixin';import{ColumnConfigTabMixin}from'./column-config-tab-mixin';import{GraphQlConfigTabMixin}from'./graphql-config-tab-mixin';import{FormConfigTabMixin}from'./form-config-tab-mixin';import{TabConfigTabMixin}from'./tab-config-tab-mixin';import{EtcConfigTabMixin}from'./etc-config-tab-mixin';import{GridEmphasizedConfigTabMixin}from'./grid-emphasized-config-tab-mixin';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x25c7(){const _0x30db2c=['column','toLowerCase','list','tabData','data','1670ZGIBOz','button','98220hnqZNe','records','form_config','active','graphql_config','currentTabKey','ConfigTabConfig','search','errors','thumbnail_field','error.invalid\x20license\x20key','detail_field','initData','menu_config','rep_field','getState','clear','findOne','remove','5184710HiHayW','save','ConfigTab','filters','parse','gridEmphasized','querySelector','length','tLabel','menu','desc','error','fields','context','grid-','display:none','style','tButton','styles','bind','back','select','809326AMKnsW','filter','refresh','push','32WvdHMx','keys','tab','rank','charAt','button_config','sortRecordByField','column_config','menuName','notify','backToMenu','2310568ktiTPE','getElementById','updateMultiple','pageInitialized','grid_emphasized_config','ConfigTabValues','1604351RBCGDO','query','tagName','meta_generator','define','setTabData','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20template\x0a\x20\x20\x20\x20','radio','tMenu','tab_config','sort_rank','form','3JRLmqk','operatoTools','thumbnail','get','hidden','details','grid','3074646MYSJCc','options','shadowRoot','dec','metaTemplate','selectedIndex','type','tTitle','convertFirstCharUpperCase','ox-input-code','name','meta-generator-page','menuId','option','forEach','render','value','etc','map','getConfigTab',':checked','includes','studioPermission','dataStorage','properties','99972elETmv','template','grid_config','ox-grist','lifecycle','sortRecordByRank','display:flex','dirtyData','set'];a0_0x25c7=function(){return _0x30db2c;};return a0_0x25c7();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{filter,merge}from'lodash';import{MetaCrypto}from'@things-factory/meta-ui/client/utils/meta-crypto';class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x5bcb5f(0xa9)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -141,24 +141,24 @@ const a0_0x166bcd=a0_0x4a7c;(function(_0x6a5df8,_0x324355){const _0x3ca3ac=a0_0x
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
`];}static get[
|
|
144
|
+
`];}static get[a0_0x5bcb5f(0xed)](){return{'menuId':String,'menuName':String,'metaTemplate':Object,'currentTabKey':String,'tabData':Object,'dataStorage':Object,'viewMenuData':Object,'afterSetFieldsConfig':Object,'skipFieldsConfig':Object,'viewGraphqlData':Object,'gridPageOptions':Array,'gridViewModes':Array,'viewGridData':Object,'columnTabGridConfig':Object,'viewColumnData':Array,'buttonTabGridConfig':Object,'viewButtonData':Array,'searchTabGridConfig':Object,'viewSearchData':Array};}get[a0_0x5bcb5f(0xa4)](){const _0x124201=a0_0x5bcb5f;return{'title':TermsUtil[_0x124201(0xdc)](_0x124201(0xc5)),'actions':[{'title':TermsUtil[_0x124201(0xa8)](_0x124201(0x112)),'action':this[_0x124201(0x112)][_0x124201(0xaa)](this),...CommonButtonStyles[_0x124201(0x112)]},{'title':TermsUtil['tButton'](_0x124201(0xab)),'action':this[_0x124201(0xbb)][_0x124201(0xaa)](this),...CommonButtonStyles[_0x124201(0xab)]},{'title':TermsUtil[_0x124201(0xa8)](_0x124201(0xaf)),'action':this[_0x124201(0xaf)]['bind'](this),...CommonButtonStyles['refresh']}]};}['deleteRow'](_0x324a9e,_0x202a66){const _0x50b927=a0_0x5bcb5f;let _0x560373=_0x324a9e[_0x50b927(0xf5)];_0x560373[_0x50b927(0xff)]=_0x560373['records']['filter'](_0x239262=>_0x239262['id']!=_0x202a66['id']),_0x324a9e[_0x50b927(0xfb)]=_0x560373;}async[a0_0x5bcb5f(0x112)](){const _0x3439ab=a0_0x5bcb5f;if(0x0==store[_0x3439ab(0x10d)]()[_0x3439ab(0xcf)][_0x3439ab(0xeb)])return void document['dispatchEvent'](new CustomEvent(_0x3439ab(0xba),{'detail':{'level':_0x3439ab(0xa2),'message':i18next['t'](_0x3439ab(0x108))}}));if((await client[_0x3439ab(0xc3)]({'query':a0_0xfd5f02`
|
|
145
145
|
query ($id: String!) {
|
|
146
146
|
studioTemplateIsOverLimit(id: $id)
|
|
147
147
|
}
|
|
148
|
-
`,'variables':{'id':this[
|
|
149
|
-
<h1>${this[
|
|
148
|
+
`,'variables':{'id':this[_0x3439ab(0xe1)]}}))[_0x3439ab(0x106)])return;let _0x29251f={},_0x833066={};Object[_0x3439ab(0xb2)](this[_0x3439ab(0xfa)])[_0x3439ab(0xe3)](_0x1242b2=>{const _0x3f373b=_0x3439ab;let _0x56b59a=this[_0x3f373b(0xdd)](_0x1242b2);_0x29251f[_0x1242b2]=this[_0x3f373b(0xd1)+_0x56b59a+_0x3f373b(0xc1)](),_0x833066=merge(_0x833066,_0x29251f[_0x1242b2]);}),_0x833066=JSON['stringify'](_0x833066),_0x833066=MetaCrypto['enc'](_0x833066),await MetaApi[_0x3439ab(0xbe)]('updateMultipleMenu',[{'id':this[_0x3439ab(0xe1)],'template':_0x833066,'cuFlag':'M'}])&&await this[_0x3439ab(0x10a)]();}[a0_0x5bcb5f(0x10e)](){const _0x7f060e=a0_0x5bcb5f;this['setTabData'](),this[_0x7f060e(0xec)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x7f060e(0xb2)](this[_0x7f060e(0xfa)])[_0x7f060e(0xe3)](_0x250e1a=>{const _0xb6e813=_0x7f060e;let _0x458abd=this['convertFirstCharUpperCase'](_0x250e1a);if(this['set'+_0x458abd+_0xb6e813(0xc1)])return this['set'+_0x458abd+'ConfigTabValues'](this[_0xb6e813(0xec)][_0x250e1a]);});}async[a0_0x5bcb5f(0xaf)](){const _0x1fabfa=a0_0x5bcb5f;this[_0x1fabfa(0x10e)](),await this['initData']();}[a0_0x5bcb5f(0xbb)](){const _0x5803c2=a0_0x5bcb5f;history[_0x5803c2(0xab)]();}async[a0_0x5bcb5f(0x10a)](){const _0x364713=a0_0x5bcb5f;var {menuId:_0x4a8450=''}=this[_0x364713(0xf2)]?.['params']?this[_0x364713(0xf2)]['params']:{};if(this['menuId']=_0x4a8450,!_0x4a8450||''==_0x4a8450)return void this[_0x364713(0x10e)]();let _0x23e386=await MetaApi[_0x364713(0x10f)](_0x364713(0xa0),_0x4a8450,_0x364713(0xc8));if(_0x23e386){try{JSON[_0x364713(0x9b)](MetaCrypto['dec'](_0x23e386[_0x364713(0xef)]));}catch(_0x233977){return;}this[_0x364713(0xb9)]=TermsUtil[_0x364713(0xca)](_0x23e386[_0x364713(0xdf)]),this[_0x364713(0xd9)]=_0x23e386[_0x364713(0xef)]?JSON[_0x364713(0x9b)](MetaCrypto[_0x364713(0xd8)](_0x23e386[_0x364713(0xef)])):{};var {menu:_0x55de54={},gql:_0x3806f2={},button:_0x221b13=[],grid_column:_0x5cbf84=[],grid:_0x52835e={},search:_0x2f0565=[],form:_0x12f5c2=[],tab:_0x492171=[],etc:_0xa0918c={},gridEmphasized:_0x4e6eb1=[]}=this[_0x364713(0xd9)]?this[_0x364713(0xd9)]:{};this[_0x364713(0xc7)](),this[_0x364713(0xec)]={},this['dataStorage'][_0x364713(0xa0)]=_0x55de54,this[_0x364713(0xec)]['graphql']=_0x3806f2,this[_0x364713(0xec)][_0x364713(0xd4)]=_0x52835e,this['dataStorage'][_0x364713(0xcd)]=_0x12f5c2,this[_0x364713(0xec)][_0x364713(0xb3)]=_0x492171,this[_0x364713(0xec)][_0x364713(0xe6)]=_0xa0918c,this[_0x364713(0xec)][_0x364713(0x9c)]=_0x4e6eb1,(_0x52835e[_0x364713(0xe2)]?.['sorters']||[])[_0x364713(0xe3)]((_0x52ded4,_0x488c0a)=>{const _0x5cb4ee=_0x364713;_0x52ded4[_0x5cb4ee(0xb4)]=0xa*(_0x488c0a+0x1);}),this[_0x364713(0xec)][_0x364713(0xf7)]=_0x5cbf84['map'](_0xf639ca=>{const _0x37e913=_0x364713;let _0x595483=(_0x52835e['option']?.['sorters']||[])[_0x37e913(0xae)](_0x29c829=>_0x29c829['name']==_0xf639ca[_0x37e913(0xdf)]);return _0x595483&&_0x595483[_0x37e913(0x9e)]>0x0?(_0xf639ca['sort_rank']=_0x595483[0x0][_0x37e913(0xb4)],_0xf639ca['sort_desc']=!!_0x595483[0x0][_0x37e913(0xa1)]&&_0x595483[0x0][_0x37e913(0xa1)]):_0xf639ca[_0x37e913(0xcc)]=0x0,_0xf639ca[_0x37e913(0x10c)]=(_0x52835e['list']?.[_0x37e913(0xa3)]||[])[_0x37e913(0xea)](_0xf639ca[_0x37e913(0xdf)]),_0xf639ca[_0x37e913(0x109)]=(_0x52835e[_0x37e913(0xf9)]?.[_0x37e913(0xd3)]||[])[_0x37e913(0xea)](_0xf639ca[_0x37e913(0xdf)]),_0xf639ca[_0x37e913(0x107)]=_0x52835e[_0x37e913(0xf9)]?.[_0x37e913(0xd0)]==_0xf639ca[_0x37e913(0xdf)],_0xf639ca;}),_0x2f0565[_0x364713(0xb0)](...(_0x3806f2['query']?.[_0x364713(0x114)]||[])[_0x364713(0xe7)](_0x302bc9=>(_0x302bc9[_0x364713(0xd2)]=!0x0,_0x302bc9))),this[_0x364713(0xec)][_0x364713(0x105)]=_0x2f0565,_0x221b13[_0x364713(0xb0)](...(_0x52835e[_0x364713(0xfd)]||[])[_0x364713(0xe7)](_0x55c422=>(_0x55c422[_0x364713(0xdb)]=_0x364713(0xa5)+_0x55c422['type'],_0x55c422[_0x364713(0xa7)]=_0x55c422['icon'],_0x55c422))),this[_0x364713(0xec)][_0x364713(0xfd)]=_0x221b13,Object[_0x364713(0xb2)](this[_0x364713(0xfa)])[_0x364713(0xe3)](_0x550773=>{const _0x139df0=_0x364713;let _0x5cf9a1=this[_0x139df0(0xdd)](_0x550773);if(this[_0x139df0(0xf6)+_0x5cf9a1+'ConfigTabValues'])return this[_0x139df0(0xf6)+_0x5cf9a1+'ConfigTabValues'](this[_0x139df0(0xec)][_0x550773]);});}}async[a0_0x5bcb5f(0xbf)](){const _0x78db3=a0_0x5bcb5f;this[_0x78db3(0xc7)]();let _0x35a163=Object[_0x78db3(0xb2)](this[_0x78db3(0xfa)]);for(var _0x20d998=0x0;_0x20d998<_0x35a163[_0x78db3(0x9e)];_0x20d998++){let _0x2dc8ce=this[_0x78db3(0xdd)](_0x35a163[_0x20d998]);this[_0x78db3(0xf6)+_0x2dc8ce+_0x78db3(0x104)]&&await this[_0x78db3(0xf6)+_0x2dc8ce+'ConfigTabConfig']();}}async['pageUpdated'](_0x4619ea,_0x15b056,_0x45a76c){const _0x42e584=a0_0x5bcb5f;!0x0===this[_0x42e584(0x101)]?(this[_0x42e584(0xc7)](),await this[_0x42e584(0x10a)](),this[_0x42e584(0xc7)]()):(this[_0x42e584(0x10e)](),this[_0x42e584(0x110)]());}[a0_0x5bcb5f(0xc7)](){const _0x452e04=a0_0x5bcb5f;this[_0x452e04(0xfa)]||(this[_0x452e04(0xfa)]={'menu':TermsUtil['tLabel'](_0x452e04(0x10b)),'graphql':TermsUtil[_0x452e04(0x9f)](_0x452e04(0x102)),'grid':TermsUtil[_0x452e04(0x9f)](_0x452e04(0xf0)),'column':TermsUtil[_0x452e04(0x9f)](_0x452e04(0xb8)),'gridEmphasized':TermsUtil['tLabel'](_0x452e04(0xc0)),'button':TermsUtil[_0x452e04(0x9f)](_0x452e04(0xb6)),'search':TermsUtil[_0x452e04(0x9f)]('search_config'),'form':TermsUtil[_0x452e04(0x9f)](_0x452e04(0x100)),'tab':TermsUtil[_0x452e04(0x9f)](_0x452e04(0xcb)),'etc':TermsUtil['tLabel']('etc_config')});}['render'](){const _0x58aaa2=a0_0x5bcb5f;this[_0x58aaa2(0x103)]||(this[_0x58aaa2(0x103)]=_0x58aaa2(0xa0)),this[_0x58aaa2(0xc7)]();let _0x43c222=Object[_0x58aaa2(0xb2)](this[_0x58aaa2(0xfa)]);return this['tabData'][this['currentTabKey']]?this[_0x58aaa2(0x103)]:_0x43c222[0x0],html`
|
|
149
|
+
<h1>${this[_0x58aaa2(0xb9)]}</h1>
|
|
150
150
|
<div class="tabs">
|
|
151
|
-
${
|
|
152
|
-
<div class="tab" ?activate="${
|
|
153
|
-
<span>${
|
|
151
|
+
${_0x43c222[_0x58aaa2(0xe7)](_0x5cb84b=>{const _0x26ed7c=_0x58aaa2;let _0x433f30=this[_0x26ed7c(0xfa)][_0x5cb84b];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x5cb84b===this[_0x26ed7c(0x103)]}" @click="${()=>this[_0x26ed7c(0x103)]=_0x5cb84b}">
|
|
153
|
+
<span>${_0x433f30}</span>
|
|
154
154
|
</div>
|
|
155
155
|
`;})}
|
|
156
156
|
</div>
|
|
157
157
|
<div class="content-container">
|
|
158
|
-
${
|
|
159
|
-
<div class='tab-contents' style="${
|
|
160
|
-
${this[
|
|
158
|
+
${_0x43c222[_0x58aaa2(0xe7)](_0x1800e7=>{const _0x3db2e6=_0x58aaa2;let _0x56eae5=_0x3db2e6(0xa6);return _0x1800e7==this['currentTabKey']&&(_0x56eae5=_0x3db2e6(0xf4)),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x56eae5}">
|
|
160
|
+
${this['getConfigTab'](_0x1800e7)}
|
|
161
161
|
</div>
|
|
162
162
|
`;})}
|
|
163
163
|
</div>
|
|
164
|
-
`;}[
|
|
164
|
+
`;}[a0_0x5bcb5f(0xe8)](_0x431cec){const _0x486046=a0_0x5bcb5f;let _0x509c6e=this[_0x486046(0xdd)](_0x431cec);return this[_0x486046(0xe4)+_0x509c6e+_0x486046(0x113)]?this[_0x486046(0xe4)+_0x509c6e+'ConfigTab']():html``;}['convertFirstCharUpperCase'](_0x11788d){const _0x1b9976=a0_0x5bcb5f;return _0x11788d[_0x1b9976(0xb5)](0x0)['toUpperCase']()+_0x11788d['slice'](0x1);}[a0_0x5bcb5f(0xbd)](_0x5b5f02){const _0x35a091=a0_0x5bcb5f;return this[_0x35a091(0xd7)][_0x35a091(0x9d)]('#'+_0x5b5f02);}['getElementValueById'](_0x1bac00){const _0x1dfedf=a0_0x5bcb5f;let _0x3e32af=this[_0x1dfedf(0xd7)]['querySelector']('#'+_0x1bac00);if(!_0x3e32af)return;let _0x4eca2b='';if(_0x1dfedf(0xac)==_0x3e32af[_0x1dfedf(0xc4)][_0x1dfedf(0xf8)]()){if(!_0x3e32af[_0x1dfedf(0xd6)]||0x0==_0x3e32af[_0x1dfedf(0xd6)][_0x1dfedf(0x9e)])return;_0x4eca2b=_0x3e32af[_0x1dfedf(0xd6)][_0x3e32af[_0x1dfedf(0xda)]][_0x1dfedf(0xe5)];}else{if(_0x1dfedf(0xf1)==_0x3e32af['tagName']['toLowerCase']()){if(!_0x3e32af[_0x1dfedf(0xf5)])return;if(!_0x3e32af[_0x1dfedf(0xf5)][_0x1dfedf(0xff)])return;if(0x0==_0x3e32af[_0x1dfedf(0xf5)][_0x1dfedf(0xff)][_0x1dfedf(0x9e)])return;return _0x3e32af[_0x1dfedf(0xf5)][_0x1dfedf(0xff)];}if(_0x1dfedf(0xde)==_0x3e32af[_0x1dfedf(0xc4)][_0x1dfedf(0xf8)]())return _0x3e32af[_0x1dfedf(0xe5)];if(_0x1dfedf(0xc9)==_0x3e32af[_0x1dfedf(0xdb)][_0x1dfedf(0xf8)]()){let _0x56bb43=this[_0x1dfedf(0xd7)]['querySelector']('#'+_0x1bac00+_0x1dfedf(0xe9));if(!_0x56bb43)return;return _0x56bb43['value'];}_0x4eca2b=_0x3e32af[_0x1dfedf(0xe5)];}return _0x4eca2b&&''!=_0x4eca2b?_0x4eca2b:void 0x0;}[a0_0x5bcb5f(0xf3)](_0x2e2a75){const _0x117237=a0_0x5bcb5f;return _0x2e2a75?this[_0x117237(0xb7)](_0x2e2a75,_0x117237(0xb4)):_0x2e2a75;}[a0_0x5bcb5f(0xb7)](_0xffe58c,_0x3f1fe3){return _0xffe58c['sort']((_0x409294,_0x7b0c84)=>_0x409294[_0x3f1fe3]-_0x7b0c84[_0x3f1fe3]),_0xffe58c;}}customElements[a0_0x5bcb5f(0xc6)](a0_0x5bcb5f(0xe0),MetaGeneratorPage);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="search-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
const a0_0x8e8db0=a0_0xc36b;function a0_0x58a3(){const _0x3a10f0=['searchTabGrist','7179kzLOgq','setSearchConfigTabValues','filter','gql','operator','push','right','querySelector','boolean','2578962VcbCoN','getGristSelectableConfig','left','center','16721199nUIddK','default_value','deleteRow','7AGwmvm','button','search','query','1188490IxJRsb','338PxTtcg','4716824WoJRCF','name','value','forEach','select','map','getSearchConfigTabValues','search_operator','viewSearchData','delete','374839PKSMbH','FILTER_OPERATORS','string','fetchSearchTabHandler','rank','sortRecordByRank','searchTabGridConfig','shadowRoot','integer','getCodeSelectorData','hidden','getGristGuttersConfig','#search-tab-grid','tLabel','fetch','3193320PbNmKy'];a0_0x58a3=function(){return _0x3a10f0;};return a0_0x58a3();}(function(_0x2a24f3,_0x1c41a9){const _0x5dc52e=a0_0xc36b,_0xbfcb96=_0x2a24f3();while(!![]){try{const _0x42e45f=parseInt(_0x5dc52e(0xd3))/0x1+-parseInt(_0x5dc52e(0xc8))/0x2*(-parseInt(_0x5dc52e(0xe4))/0x3)+parseInt(_0x5dc52e(0xe2))/0x4+parseInt(_0x5dc52e(0xc7))/0x5+-parseInt(_0x5dc52e(0xbc))/0x6*(-parseInt(_0x5dc52e(0xc3))/0x7)+parseInt(_0x5dc52e(0xc9))/0x8+-parseInt(_0x5dc52e(0xc0))/0x9;if(_0x42e45f===_0x1c41a9)break;else _0xbfcb96['push'](_0xbfcb96['shift']());}catch(_0xd0674e){_0xbfcb96['push'](_0xbfcb96['shift']());}}}(a0_0x58a3,0xee7a3));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0xc36b(_0x2fc329,_0x3cddee){const _0x58a358=a0_0x58a3();return a0_0xc36b=function(_0xc36b12,_0x4eb9c3){_0xc36b12=_0xc36b12-0xbc;let _0x1525c2=_0x58a358[_0xc36b12];return _0x1525c2;},a0_0xc36b(_0x2fc329,_0x3cddee);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const SearchConfigTabMixin=_0x29b0f7=>class extends _0x29b0f7{[a0_0x8e8db0(0xe5)](_0x58ddcb){const _0xfb1fe3=a0_0x8e8db0;let _0x20e8a9=_0x58ddcb?.[_0xfb1fe3(0xce)]((_0x502838,_0x457dd9)=>{const _0x200fbc=_0xfb1fe3;let _0x21ad8b=_0x457dd9+0x1,_0x265bb7={};return'object'==typeof _0x502838?Object['assign'](_0x265bb7,_0x502838):(_0x265bb7[_0x200fbc(0xca)]=_0x502838,_0x265bb7[_0x200fbc(0xe8)]=_0x200fbc(0xe6)),_0x265bb7['rank']=0xa*_0x21ad8b,_0x265bb7['id']=_0x21ad8b,_0x265bb7;});this[_0xfb1fe3(0xd1)]=_0x20e8a9||[],this[_0xfb1fe3(0xe3)]?.[_0xfb1fe3(0xe1)]();}[a0_0x8e8db0(0xcf)](){const _0x4d0f2d=a0_0x8e8db0;let _0x27e8a7={'search':[],'gql':{'query':{'filters':[]}}},_0x378994=this['getElementValueById']('search-tab-grid');return this[_0x4d0f2d(0xd8)](_0x378994)?.[_0x4d0f2d(0xcc)](_0x12e37a=>{const _0x34b3cc=_0x4d0f2d;var {name:_0x8510bf,operator:_0x3c412c='eq',hidden:_0x5a4ad9=!0x1,value:_0x434304}=_0x12e37a;if(_0x8510bf){if(_0x34b3cc(0xe6)==_0x3c412c)_0x27e8a7[_0x34b3cc(0xc5)]['push'](_0x8510bf);else{let _0x13ea75={'name':_0x8510bf,'operator':_0x3c412c};0x1==_0x5a4ad9?(_0x13ea75[_0x34b3cc(0xcb)]=_0x434304,_0x27e8a7[_0x34b3cc(0xe7)][_0x34b3cc(0xc6)]['filters'][_0x34b3cc(0xe9)](_0x13ea75)):(_0x13ea75['value']=_0x434304,_0x27e8a7['search']['push'](_0x13ea75));}}}),_0x27e8a7;}['renderSearchConfigTab'](){const _0x4f5a82=a0_0x8e8db0;return html`
|
|
2
|
+
<ox-grist auto-fetch id="search-tab-grid" .config=${this['searchTabGridConfig']} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x4f5a82(0xd6)]['bind'](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x8e8db0(0xe3)](){const _0x47142f=a0_0x8e8db0;return this[_0x47142f(0xda)][_0x47142f(0xeb)](_0x47142f(0xdf));}async[a0_0x8e8db0(0xd6)](){const _0x561ca3=a0_0x8e8db0;return{'total':0x0,'records':this[_0x561ca3(0xd1)]||[]};}async['setSearchConfigTabConfig'](){const _0x259d6f=a0_0x8e8db0;let _0x463e84=await MetaApi[_0x259d6f(0xdc)](_0x259d6f(0xd4));this[_0x259d6f(0xd9)]={'rows':MetaApi[_0x259d6f(0xbd)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x259d6f(0xde)](!0x1,!0x1),{'type':'gutter','gutterName':_0x259d6f(0xc4),'icon':_0x259d6f(0xd2),'handlers':{'click':(_0x155356,_0x34586b,_0x3b8413,_0x5550ce,_0x3390ad)=>{const _0x3d12bc=_0x259d6f;_0x5550ce['id']&&this[_0x3d12bc(0xc2)](this['searchTabGrist'],_0x5550ce);}}},{'type':_0x259d6f(0xd5),'name':'id','hidden':!0x0},{'type':_0x259d6f(0xdb),'name':_0x259d6f(0xd7),'header':TermsUtil[_0x259d6f(0xe0)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x259d6f(0xea),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x259d6f(0xca),'header':TermsUtil[_0x259d6f(0xe0)](_0x259d6f(0xca)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x259d6f(0xbe),'editable':!0x0,'mandatory':!0x0}},{'type':_0x259d6f(0xcd),'name':'operator','header':TermsUtil[_0x259d6f(0xe0)](_0x259d6f(0xd0)),'sortable':!0x1,'width':0x64,'record':{'align':_0x259d6f(0xbe),'editable':!0x0,'mandatory':!0x1,'options':_0x463e84}},{'type':_0x259d6f(0xec),'name':_0x259d6f(0xdd),'header':TermsUtil[_0x259d6f(0xe0)](_0x259d6f(0xdd)),'sortable':!0x1,'width':0x41,'record':{'align':_0x259d6f(0xbf),'mandatory':!0x1,'editable':!0x0}},{'type':'string','name':_0x259d6f(0xcb),'header':TermsUtil[_0x259d6f(0xe0)](_0x259d6f(0xc1)),'sortable':!0x1,'width':0xc8,'record':{'align':'left','editable':!0x0,'mandatory':!0x1}}]};}};
|