@things-factory/operato-tools 6.1.43 → 6.1.46
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 +4 -4
- package/client/pages/generator/graphql-config-tab-mixin.js +24 -24
- package/client/pages/generator/grid-config-tab-mixin.js +23 -23
- 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 +4 -4
- 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
|
+
const a0_0x395d92=a0_0x4ac8;function a0_0x42ab(){const _0x49b6d0=['grid_term_1000','true','grid_use_filter','row','grid_support_view','grid_term_default','toLowerCase','support','_view_use','grid_support_multi_select','LIST','1643159wgZUmo','grid_term_unlimited','multiple_select','unuse','includes','card_view_use','grid','grid_use_row_check','grid_view_use','16wBDDle','81lmGMSc','view_mode','2276522DNhBDh','list_view_use','462030gbNraR','gridViewModes','5064554HaSUUM','40HIHQcl','name','codeItems','map','1735518boAuUJ','grid_row_check_use','grid_pagination','grid_term_100','pages','grid_multi_select','24279fDEKxj','select-row-toggle','getElementValueById','option','CARD','use_row_checker','length','gridPageOptions','getGridConfigTabValues','tLabel','5ocdUgu','setGridConfigTabValues','setGridConfigTabDetaultValues','grid_mobile_view','mobile_mode','GRID_VIEW_MODE','GRID','grid_desk_view','setGridConfigTabConfig','use','grid_term_50','GRID_PAGE_OPTIONS','unlimited','use_filter_form','1269176XpVIbD','viewGridData','desk_mode'];a0_0x42ab=function(){return _0x49b6d0;};return a0_0x42ab();}(function(_0x1281da,_0x542781){const _0x50cabb=a0_0x4ac8,_0x18eedd=_0x1281da();while(!![]){try{const _0x9dfa6f=parseInt(_0x50cabb(0x1a4))/0x1+parseInt(_0x50cabb(0x1d6))/0x2+-parseInt(_0x50cabb(0x1d8))/0x3*(parseInt(_0x50cabb(0x1d3))/0x4)+-parseInt(_0x50cabb(0x1ae))/0x5*(parseInt(_0x50cabb(0x1df))/0x6)+parseInt(_0x50cabb(0x1ca))/0x7+-parseInt(_0x50cabb(0x1bc))/0x8*(parseInt(_0x50cabb(0x1d4))/0x9)+parseInt(_0x50cabb(0x1db))/0xa*(parseInt(_0x50cabb(0x1da))/0xb);if(_0x9dfa6f===_0x542781)break;else _0x18eedd['push'](_0x18eedd['shift']());}catch(_0x419db){_0x18eedd['push'](_0x18eedd['shift']());}}}(a0_0x42ab,0xdd259));import{html}from'lit-element';function a0_0x4ac8(_0x19a82b,_0x485c2a){const _0x42ab4d=a0_0x42ab();return a0_0x4ac8=function(_0x4ac815,_0x596fbb){_0x4ac815=_0x4ac815-0x1a4;let _0x54336e=_0x42ab4d[_0x4ac815];return _0x54336e;},a0_0x4ac8(_0x19a82b,_0x485c2a);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0x18fa41=>class extends _0x18fa41{[a0_0x395d92(0x1af)](_0x310e94){const _0x506c03=a0_0x395d92;if(_0x310e94){var {mobile_mode:_0x1e9b58='',desk_mode:_0x4482dc='',pages:_0x18190d=[],use_row_checker:_0x5d0b1d=!0x0,view_mode:_0x1fdabe=[]}=_0x310e94['option']||{};let _0x58dc3d=(_0x310e94[_0x506c03(0x1c2)]||{'multiple_select':!0x1})[_0x506c03(0x1cc)],_0x3f7337=_0x506c03(0x1ba)==_0x18190d?_0x506c03(0x1cb):0x0==_0x18190d[_0x506c03(0x1aa)]?'':0x14==_0x18190d[0x0]?_0x506c03(0x1c4):'grid_term_'+_0x18190d[0x0];this[_0x506c03(0x1bd)]={'mobile_mode':_0x1e9b58,'desk_mode':_0x4482dc,'use_row_checker':_0x5d0b1d,'pages':_0x3f7337,'view_mode':_0x1fdabe,'multiple_select':_0x58dc3d,'use_filter_form':_0x310e94[_0x506c03(0x1bb)]};}else this[_0x506c03(0x1b0)]();}[a0_0x395d92(0x1ac)](){const _0xd160e1=a0_0x395d92;let _0x3a8197={'grid':{'option':{},'row':{'click':_0xd160e1(0x1a5)}}},_0x46974a=this['getElementValueById'](_0xd160e1(0x1e0)),_0x58e5cd=this[_0xd160e1(0x1a6)](_0xd160e1(0x1e4)),_0x13b982=this[_0xd160e1(0x1a6)](_0xd160e1(0x1b5)),_0x4cef24=this[_0xd160e1(0x1a6)](_0xd160e1(0x1b1)),_0x44ba99=this[_0xd160e1(0x1a6)](_0xd160e1(0x1c1)),_0x829000=this['getElementValueById'](_0xd160e1(0x1e1)),_0x208608=this[_0xd160e1(0x1a6)](_0xd160e1(0x1d2)),_0x36ae0f=this[_0xd160e1(0x1a6)](_0xd160e1(0x1d7)),_0x48411c=this['getElementValueById'](_0xd160e1(0x1cf));return _0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1bb)]=_0xd160e1(0x1c0)==_0x44ba99,_0x3a8197[_0xd160e1(0x1d0)]['row'][_0xd160e1(0x1cc)]=_0xd160e1(0x1c0)==_0x58e5cd,_0x3a8197['grid'][_0xd160e1(0x1a7)][_0xd160e1(0x1a9)]=_0xd160e1(0x1c0)==_0x46974a,_0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1a7)][_0xd160e1(0x1b2)]=_0x4cef24,_0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1a7)][_0xd160e1(0x1be)]=_0x13b982,_0xd160e1(0x1c4)==_0x829000?_0x3a8197['grid'][_0xd160e1(0x1a7)][_0xd160e1(0x1e3)]=[0x14,0x1e,0x32,0x64]:_0xd160e1(0x1b8)==_0x829000?_0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1a7)][_0xd160e1(0x1e3)]=[0x32,0x64,0x1f4,0x3e8]:_0xd160e1(0x1e2)==_0x829000?_0x3a8197[_0xd160e1(0x1d0)]['option']['pages']=[0x64,0x1f4,0x3e8,0x1388]:_0xd160e1(0x1bf)==_0x829000?_0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1a7)][_0xd160e1(0x1e3)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:'grid_term_unlimited'==_0x829000&&(_0x3a8197['grid'][_0xd160e1(0x1a7)][_0xd160e1(0x1e3)]=_0xd160e1(0x1ba)),_0x3a8197['grid']['option'][_0xd160e1(0x1d5)]=[],_0xd160e1(0x1c0)==_0x208608&&_0x3a8197['grid'][_0xd160e1(0x1a7)][_0xd160e1(0x1d5)]['push']('GRID'),_0xd160e1(0x1c0)==_0x36ae0f&&_0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1a7)][_0xd160e1(0x1d5)]['push']('LIST'),_0xd160e1(0x1c0)==_0x48411c&&_0x3a8197[_0xd160e1(0x1d0)][_0xd160e1(0x1a7)][_0xd160e1(0x1d5)]['push']('CARD'),_0x3a8197;}async[a0_0x395d92(0x1b6)](){const _0x511adf=a0_0x395d92;let _0x39b725=await MetaApi[_0x511adf(0x1dd)](_0x511adf(0x1b9)),_0x4c87e6=await MetaApi[_0x511adf(0x1dd)](_0x511adf(0x1b3));this['gridViewModes']=_0x4c87e6,this[_0x511adf(0x1ab)]=_0x39b725;}[a0_0x395d92(0x1b0)](){const _0x7d4ff6=a0_0x395d92;this[_0x7d4ff6(0x1bd)]||(this['viewGridData']={'mobile_mode':this['gridViewModes']?this[_0x7d4ff6(0x1d9)][0x1]:_0x7d4ff6(0x1c9),'desk_mode':this['gridViewModes']?this[_0x7d4ff6(0x1d9)][0x0]:_0x7d4ff6(0x1b4),'use_row_checker':!0x0,'pages':_0x7d4ff6(0x1c4),'view_mode':[...this[_0x7d4ff6(0x1d9)]?this[_0x7d4ff6(0x1d9)]:[_0x7d4ff6(0x1b4),_0x7d4ff6(0x1c9),_0x7d4ff6(0x1a8)]],'multiple_select':!0x0,'use_filter_form':!0x0});}['renderGridConfigTab'](){const _0xa44c0a=a0_0x395d92;return this[_0xa44c0a(0x1b0)](),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[_0xa44c0a(0x1ad)](_0xa44c0a(0x1d1))}
|
|
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['viewGridData'][_0xa44c0a(0x1a9)]}>${TermsUtil[_0xa44c0a(0x1ad)]('use')}</input>
|
|
11
11
|
<input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
|
|
12
|
-
?checked=${!this[
|
|
12
|
+
?checked=${!this[_0xa44c0a(0x1bd)]['use_row_checker']}>${TermsUtil[_0xa44c0a(0x1ad)]('unuse')}</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[_0xa44c0a(0x1ad)](_0xa44c0a(0x1c8))}
|
|
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[_0xa44c0a(0x1bd)]['multiple_select']}>${TermsUtil[_0xa44c0a(0x1ad)](_0xa44c0a(0x1c6))}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this[
|
|
25
|
+
?checked=${!this['viewGridData']['multiple_select']}>${TermsUtil[_0xa44c0a(0x1ad)]('unsupport')}</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[_0xa44c0a(0x1ad)]('grid_use_filter')}
|
|
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[_0xa44c0a(0x1bd)]['use_filter_form']}>${TermsUtil[_0xa44c0a(0x1ad)](_0xa44c0a(0x1b7))}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0xa44c0a(0x1bd)][_0xa44c0a(0x1bb)]}>${TermsUtil['tLabel'](_0xa44c0a(0x1cd))}</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['tLabel'](
|
|
45
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0xa44c0a(0x1b5))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this[
|
|
49
|
+
${this['gridViewModes']?.[_0xa44c0a(0x1de)](_0xd1d359=>html`<option value=${_0xd1d359[_0xa44c0a(0x1dc)]} ?selected=${this[_0xa44c0a(0x1bd)][_0xa44c0a(0x1be)]==_0xd1d359[_0xa44c0a(0x1dc)]}>${_0xd1d359['description']}</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[_0xa44c0a(0x1ad)]('grid_mobile_view')}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this[
|
|
59
|
+
${this[_0xa44c0a(0x1d9)]?.[_0xa44c0a(0x1de)](_0x355339=>html`<option value=${_0x355339[_0xa44c0a(0x1dc)]} ?selected=${this[_0xa44c0a(0x1bd)]['mobile_mode']==_0x355339[_0xa44c0a(0x1dc)]}>${_0x355339['description']}</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[_0xa44c0a(0x1ad)](_0xa44c0a(0x1c3))}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0xa44c0a(0x1d9)]?.[_0xa44c0a(0x1de)](_0x40fe01=>html`
|
|
69
|
+
<span>${_0x40fe01['name']}
|
|
70
|
+
<input type="radio" name=${_0x40fe01[_0xa44c0a(0x1dc)][_0xa44c0a(0x1c5)]()+_0xa44c0a(0x1c7)} id=${_0x40fe01['name'][_0xa44c0a(0x1c5)]()+_0xa44c0a(0x1c7)} ?checked=${this[_0xa44c0a(0x1bd)][_0xa44c0a(0x1d5)][_0xa44c0a(0x1ce)](_0x40fe01[_0xa44c0a(0x1dc)])} value="true">${TermsUtil[_0xa44c0a(0x1ad)](_0xa44c0a(0x1b7))}</input>
|
|
71
|
+
<input type="radio" name=${_0x40fe01[_0xa44c0a(0x1dc)]['toLowerCase']()+_0xa44c0a(0x1c7)} id=${_0x40fe01['name'][_0xa44c0a(0x1c5)]()+_0xa44c0a(0x1c7)} ?checked=${!this[_0xa44c0a(0x1bd)][_0xa44c0a(0x1d5)][_0xa44c0a(0x1ce)](_0x40fe01[_0xa44c0a(0x1dc)])} value="false">${TermsUtil[_0xa44c0a(0x1ad)](_0xa44c0a(0x1cd))}</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[_0xa44c0a(0x1ad)](_0xa44c0a(0x1e1))}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this[
|
|
81
|
+
${this[_0xa44c0a(0x1ab)]?.[_0xa44c0a(0x1de)](_0x412226=>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=${_0x412226[_0xa44c0a(0x1dc)]} ?checked=${this[_0xa44c0a(0x1bd)]['pages']==_0x412226['name']}>${TermsUtil[_0xa44c0a(0x1ad)](_0x412226['name'])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -88,4 +88,4 @@ const a0_0x5cbcb4=a0_0x33e8;(function(_0x3db101,_0x4e37c4){const _0x48c1c0=a0_0x
|
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
|
-
`;}};
|
|
91
|
+
`;}};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0xe289c8=a0_0x1de6;(function(_0x10b3d0,_0x342811){const _0x5ed5e1=a0_0x1de6,_0xdb33c6=_0x10b3d0();while(!![]){try{const _0x4215bc=parseInt(_0x5ed5e1(0x1fc))/0x1+-parseInt(_0x5ed5e1(0x20a))/0x2*(-parseInt(_0x5ed5e1(0x1fe))/0x3)+parseInt(_0x5ed5e1(0x1dd))/0x4*(-parseInt(_0x5ed5e1(0x1ef))/0x5)+-parseInt(_0x5ed5e1(0x203))/0x6+-parseInt(_0x5ed5e1(0x1f5))/0x7+parseInt(_0x5ed5e1(0x1e6))/0x8*(parseInt(_0x5ed5e1(0x1db))/0x9)+parseInt(_0x5ed5e1(0x202))/0xa;if(_0x4215bc===_0x342811)break;else _0xdb33c6['push'](_0xdb33c6['shift']());}catch(_0x1fe176){_0xdb33c6['push'](_0xdb33c6['shift']());}}}(a0_0x3b29,0xa83a8));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x3b29(){const _0x88a27=['9592280qKvHap','6272520ZEhUtr','right','querySelector','renderGridEmphasizedConfigTab','rowEmphasizedData','getGristGuttersConfig','setGridEmphasizedConfigTabValues','2RKGnME','viewEmphasizedData','gutter','integer','logic','tLabel','fontColor','setGridEmphasizedConfigTabConfig','#column-emphasized-grist','getGridEmphasizedConfigTabValues','grid_row_emphasized_config','rank','push','9BDBjsy','columnEmphasizedConfig','4wYhcAx','background-color','keys','forEach','row-emphasized-grist','row','emphasizedConfigTabColumnEmphasizedGrist','GRID','shadowRoot','7538152WZkiSE','delete','map','deleteRow','columnEmphasizedData','fetchColumnEmphasized','fetch','left','code-input','1962635mcWPTy','backgroundColor','font-color','button','grid_column_emphasized_config','#row-emphasized-grist','1948583XtEekQ','rowEmphasizedConfig','column','emphasizedConfigTabRowEmphasizedGrist','fetchRowEmphasized','bind','getGristSelectableConfig','496634VRFXcY','string','21747WYpctA','sortRecordByRank','setGridEmphasizedConfigTabDefaultValues','getElementValueById'];a0_0x3b29=function(){return _0x88a27;};return a0_0x3b29();}function a0_0x1de6(_0x16f573,_0x5dd5b7){const _0x3b2927=a0_0x3b29();return a0_0x1de6=function(_0x1de683,_0x34d82c){_0x1de683=_0x1de683-0x1db;let _0x90e00e=_0x3b2927[_0x1de683];return _0x90e00e;},a0_0x1de6(_0x16f573,_0x5dd5b7);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridEmphasizedConfigTabMixin=_0x319faa=>class extends _0x319faa{[a0_0xe289c8(0x209)](_0x602793){const _0x12929c=a0_0xe289c8;if(_0x602793){this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x16f321=0x1;this['viewEmphasizedData'][_0x12929c(0x207)]=(_0x602793[_0x12929c(0x1e2)]||[])[_0x12929c(0x1e8)](_0x30bd31=>({'id':_0x16f321,'rank':_0x16f321++,'backgroundColor':_0x30bd31[_0x12929c(0x1f0)]||'','fontColor':_0x30bd31['fontColor']||'','logic':_0x30bd31[_0x12929c(0x20e)]||''})),_0x16f321=0x1;let _0x1ead3d=_0x602793[_0x12929c(0x1f7)]||[];Object[_0x12929c(0x1df)](_0x1ead3d)['forEach'](_0x3e0db1=>{const _0x1dc530=_0x12929c;let _0x205152=_0x1ead3d[_0x3e0db1]||[],_0x676643=0x1;_0x205152[_0x1dc530(0x1e0)](_0x190713=>{const _0x2efb20=_0x1dc530;this['viewEmphasizedData'][_0x2efb20(0x1ea)]['push']({'id':_0x16f321++,'rank':_0x676643++,'column':_0x3e0db1,'backgroundColor':_0x190713[_0x2efb20(0x1f0)]||'','fontColor':_0x190713[_0x2efb20(0x210)]||'','logic':_0x190713['logic']||''});});}),this[_0x12929c(0x1e3)]?.[_0x12929c(0x1ec)](),this[_0x12929c(0x1f8)]?.[_0x12929c(0x1ec)]();}else this[_0x12929c(0x200)]();}[a0_0xe289c8(0x213)](){const _0x51f49b=a0_0xe289c8;let _0x1b93c9=this[_0x51f49b(0x201)](_0x51f49b(0x1e1)),_0x20b330=this[_0x51f49b(0x201)]('column-emphasized-grist'),_0x1c2570=[];this['sortRecordByRank'](_0x1b93c9)?.[_0x51f49b(0x1e0)](_0x4b30c8=>{const _0x4fd885=_0x51f49b;_0x1c2570[_0x4fd885(0x216)]({'backgroundColor':_0x4b30c8['backgroundColor'],'fontColor':_0x4b30c8[_0x4fd885(0x210)],'logic':_0x4b30c8[_0x4fd885(0x20e)]});});let _0x3e6d17={};return this[_0x51f49b(0x1ff)](_0x20b330)?.['forEach'](_0x6d775c=>{const _0x139ddd=_0x51f49b;_0x3e6d17[_0x6d775c[_0x139ddd(0x1f7)]]||(_0x3e6d17[_0x6d775c[_0x139ddd(0x1f7)]]=[]),_0x3e6d17[_0x6d775c[_0x139ddd(0x1f7)]][_0x139ddd(0x216)]({'backgroundColor':_0x6d775c['backgroundColor'],'fontColor':_0x6d775c[_0x139ddd(0x210)],'logic':_0x6d775c['logic']});}),{'gridEmphasized':{'row':_0x1c2570||[],'column':_0x3e6d17||{}}};}get[a0_0xe289c8(0x1f8)](){const _0x14c618=a0_0xe289c8;return this['shadowRoot']['querySelector'](_0x14c618(0x1f4));}get['emphasizedConfigTabColumnEmphasizedGrist'](){const _0x4c8275=a0_0xe289c8;return this[_0x4c8275(0x1e5)][_0x4c8275(0x205)](_0x4c8275(0x212));}[a0_0xe289c8(0x211)](){const _0x5e31ea=a0_0xe289c8;this[_0x5e31ea(0x1f6)]={'rows':MetaApi[_0x5e31ea(0x1fb)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x5e31ea(0x208)](!0x1,!0x1),{'type':'gutter','gutterName':'button','icon':_0x5e31ea(0x1e7),'handlers':{'click':(_0x297fcb,_0x4bb5a5,_0x56ef2b,_0x110a1c,_0x35769d)=>{const _0x2a09b7=_0x5e31ea;_0x110a1c['id']&&this[_0x2a09b7(0x1e9)](this[_0x2a09b7(0x1f8)],_0x110a1c);}}},{'type':_0x5e31ea(0x1fd),'name':'id','hidden':!0x0},{'type':_0x5e31ea(0x20d),'name':_0x5e31ea(0x215),'header':TermsUtil[_0x5e31ea(0x20f)](_0x5e31ea(0x215)),'sortable':!0x0,'width':0x41,'record':{'align':_0x5e31ea(0x204),'editable':!0x0,'mandatory':!0x0}},{'type':_0x5e31ea(0x1fd),'name':_0x5e31ea(0x1f0),'header':TermsUtil[_0x5e31ea(0x20f)]('background-color'),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5e31ea(0x1fd),'name':'fontColor','header':TermsUtil[_0x5e31ea(0x20f)]('font-color'),'record':{'align':_0x5e31ea(0x1ed),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5e31ea(0x1ee),'name':_0x5e31ea(0x20e),'header':TermsUtil[_0x5e31ea(0x20f)]('logic'),'record':{'align':_0x5e31ea(0x1ed),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x5e31ea(0x1dc)]={'rows':MetaApi[_0x5e31ea(0x1fb)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x5e31ea(0x20c),'gutterName':_0x5e31ea(0x1f2),'icon':_0x5e31ea(0x1e7),'handlers':{'click':(_0x3cd06f,_0x28b554,_0x45a742,_0x17d70d,_0x45e6d6)=>{const _0x3391b9=_0x5e31ea;_0x17d70d['id']&&this[_0x3391b9(0x1e9)](this['emphasizedConfigTabColumnEmphasizedGrist'],_0x17d70d);}}},{'type':_0x5e31ea(0x1fd),'name':'id','hidden':!0x0},{'type':_0x5e31ea(0x1fd),'name':_0x5e31ea(0x1f7),'header':TermsUtil[_0x5e31ea(0x20f)]('column'),'record':{'align':_0x5e31ea(0x1ed),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5e31ea(0x20d),'name':'rank','header':TermsUtil[_0x5e31ea(0x20f)](_0x5e31ea(0x215)),'sortable':!0x0,'width':0x41,'record':{'align':_0x5e31ea(0x204),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x5e31ea(0x1f0),'header':TermsUtil['tLabel'](_0x5e31ea(0x1de)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5e31ea(0x1fd),'name':'fontColor','header':TermsUtil['tLabel'](_0x5e31ea(0x1f1)),'record':{'align':_0x5e31ea(0x1ed),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5e31ea(0x1ee),'name':_0x5e31ea(0x20e),'header':TermsUtil[_0x5e31ea(0x20f)](_0x5e31ea(0x20e)),'record':{'align':_0x5e31ea(0x1ed),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0xe289c8(0x200)](){const _0x3c6b4e=a0_0xe289c8;this[_0x3c6b4e(0x20b)]||(this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0xe289c8(0x206)](){const _0x5b3c27=a0_0xe289c8;return this[_0x5b3c27(0x200)](),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[_0x5b3c27(0x20f)](_0x5b3c27(0x214))}
|
|
6
6
|
</h2>
|
|
7
|
-
<ox-grist id="row-emphasized-grist" .config=${this[
|
|
8
|
-
.fetchHandler=${this[
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x5b3c27(0x1f6)]} .mode=${_0x5b3c27(0x1e4)} auto-fetch
|
|
8
|
+
.fetchHandler=${this[_0x5b3c27(0x1f9)][_0x5b3c27(0x1fa)](this)}></ox-grist>
|
|
9
9
|
</div>
|
|
10
10
|
<div field >
|
|
11
11
|
<h2>
|
|
12
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](
|
|
12
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x5b3c27(0x1f3))}
|
|
13
13
|
</h2>
|
|
14
|
-
<ox-grist id="column-emphasized-grist" .config=${this[
|
|
15
|
-
.fetchHandler=${this[
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this[_0x5b3c27(0x1dc)]} .mode=${_0x5b3c27(0x1e4)} auto-fetch
|
|
15
|
+
.fetchHandler=${this[_0x5b3c27(0x1eb)]['bind'](this)}></ox-grist>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
-
`;}async['fetchRowEmphasized'](){
|
|
18
|
+
`;}async['fetchRowEmphasized'](){return{'records':this['viewEmphasizedData']['rowEmphasizedData'],'total':0x0};}async[a0_0xe289c8(0x1eb)](){const _0x2aee1b=a0_0xe289c8;return{'records':this[_0x2aee1b(0x20b)][_0x2aee1b(0x1ea)],'total':0x0};}};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x50f0(){const _0x4c77cb=['34064pWbCfB','title','getMenuConfigTabValues','description','value','name','menu_name_field','setMenuConfigTabDefaultValue','menu_desc_field','9422217wDEIHH','3632728MYrAxE','6qnQtVs','15lDrHTC','desc','getElementById','menu_title','tTitle','help_doc','menuTitleChange','290320ycjEQw','7143101jGtuJB','210418NNSWqq','setMenuConfigTabValues','tLabel','295121pQrPoi','target','getElementValueById','menu','viewMenuData','display'];a0_0x50f0=function(){return _0x4c77cb;};return a0_0x50f0();}const a0_0x5c8466=a0_0x5e69;(function(_0x555cf0,_0x33531e){const _0x192288=a0_0x5e69,_0x267d72=_0x555cf0();while(!![]){try{const _0x3ad88d=-parseInt(_0x192288(0xf3))/0x1+parseInt(_0x192288(0xf0))/0x2*(parseInt(_0x192288(0xe7))/0x3)+-parseInt(_0x192288(0xf9))/0x4+-parseInt(_0x192288(0xee))/0x5+parseInt(_0x192288(0x104))/0x6*(-parseInt(_0x192288(0xef))/0x7)+parseInt(_0x192288(0x103))/0x8+parseInt(_0x192288(0x102))/0x9;if(_0x3ad88d===_0x33531e)break;else _0x267d72['push'](_0x267d72['shift']());}catch(_0x4ab504){_0x267d72['push'](_0x267d72['shift']());}}}(a0_0x50f0,0x9d729));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x5e69(_0x3c9bb2,_0x4b07c8){const _0x50f0b1=a0_0x50f0();return a0_0x5e69=function(_0x5e6963,_0x4c683b){_0x5e6963=_0x5e6963-0xe7;let _0x56323c=_0x50f0b1[_0x5e6963];return _0x56323c;},a0_0x5e69(_0x3c9bb2,_0x4b07c8);}export const MenuConfigTabMixin=_0x29ab80=>class extends _0x29ab80{[a0_0x5c8466(0xf1)](_0x1152f4){const _0x4ed3d2=a0_0x5c8466;if(_0x1152f4){var {title:_0x158669='',name:_0x3d81dd='',desc:_0x3c2dcd='',help:_0x497def=''}=_0x1152f4||{};this[_0x4ed3d2(0xf7)]={'title':_0x158669,'name':_0x3d81dd,'desc':_0x3c2dcd,'help_doc':_0x497def},this[_0x4ed3d2(0xe9)]('title')[_0x4ed3d2(0xfd)]=_0x158669,this[_0x4ed3d2(0xe9)]('name')['value']=_0x3d81dd,this[_0x4ed3d2(0xe9)]('desc')[_0x4ed3d2(0xfd)]=_0x3c2dcd,this[_0x4ed3d2(0xe9)](_0x4ed3d2(0xec))[_0x4ed3d2(0xfd)]=_0x497def;}else this[_0x4ed3d2(0x100)]();}[a0_0x5c8466(0xfb)](){const _0x107d6d=a0_0x5c8466;let _0x4f7e05={'menu':{}},_0x64e607=this['getElementValueById']('title'),_0x47fa11=this[_0x107d6d(0xf5)](_0x107d6d(0xfe)),_0x29ced3=this[_0x107d6d(0xf5)](_0x107d6d(0xe8)),_0x4b39c5=this[_0x107d6d(0xf5)]('help_doc');return _0x64e607&&(_0x4f7e05['menu']['title']=_0x64e607),_0x47fa11&&(_0x4f7e05[_0x107d6d(0xf6)]['name']=_0x47fa11),_0x29ced3&&(_0x4f7e05[_0x107d6d(0xf6)]['desc']=_0x29ced3),_0x4b39c5&&(_0x4f7e05[_0x107d6d(0xf6)]['help']=_0x4b39c5),_0x4f7e05;}['setMenuConfigTabDefaultValue'](){const _0x157c0e=a0_0x5c8466;this[_0x157c0e(0xf7)]||(this[_0x157c0e(0xf7)]={'title':'','name':_0x157c0e(0xfe),'desc':_0x157c0e(0xfc),'help_doc':''});}['menuTitleChange'](_0x2d0fdf){const _0x559927=a0_0x5c8466;let _0x2eae78=this[_0x559927(0xe9)]('display');_0x2eae78&&(_0x2eae78[_0x559927(0xfd)]=TermsUtil[_0x559927(0xeb)](_0x2d0fdf[_0x559927(0xf4)]['value']));}['renderMenuConfigTab'](){const _0x340967=a0_0x5c8466;return this[_0x340967(0x100)](),html`
|
|
2
2
|
<div field-2column>
|
|
3
3
|
<div field>
|
|
4
|
-
<label>${TermsUtil[
|
|
5
|
-
<input id="title" name="title" type="text" value=${this[
|
|
4
|
+
<label>${TermsUtil[_0x340967(0xf2)](_0x340967(0xea))}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this[_0x340967(0xf7)][_0x340967(0xfa)]} @change=${_0x1645a8=>this[_0x340967(0xed)](_0x1645a8)}/>
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil[
|
|
10
|
-
<input id="display" name="display" value=${TermsUtil['tTitle'](this[
|
|
9
|
+
<label>${TermsUtil[_0x340967(0xf2)](_0x340967(0xf8))}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil['tTitle'](this[_0x340967(0xf7)][_0x340967(0xfa)])} 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['tLabel'](_0x340967(0xff))}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x340967(0xf7)]['name']} />
|
|
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[_0x340967(0xf2)](_0x340967(0x101))}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this['viewMenuData'][_0x340967(0xe8)]} />
|
|
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[_0x340967(0xf2)](_0x340967(0xec))}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x340967(0xf7)]['help_doc']} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
|
-
`;}};
|
|
30
|
+
`;}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5a66bc=a0_0x1990;function a0_0x1990(_0x480545,_0x143891){const _0x58a40e=a0_0x58a4();return a0_0x1990=function(_0x1990eb,_0x4b8d57){_0x1990eb=_0x1990eb-0x184;let _0x2d04f8=_0x58a40e[_0x1990eb];return _0x2d04f8;},a0_0x1990(_0x480545,_0x143891);}(function(_0x3901df,_0x4251af){const _0xfef6bb=a0_0x1990,_0x1f29b2=_0x3901df();while(!![]){try{const _0x5c5e0c=parseInt(_0xfef6bb(0x1f1))/0x1*(-parseInt(_0xfef6bb(0x1ef))/0x2)+parseInt(_0xfef6bb(0x197))/0x3+parseInt(_0xfef6bb(0x1cc))/0x4*(parseInt(_0xfef6bb(0x1d1))/0x5)+-parseInt(_0xfef6bb(0x1d0))/0x6*(parseInt(_0xfef6bb(0x18f))/0x7)+-parseInt(_0xfef6bb(0x1e0))/0x8+parseInt(_0xfef6bb(0x19f))/0x9+parseInt(_0xfef6bb(0x195))/0xa*(-parseInt(_0xfef6bb(0x18d))/0xb);if(_0x5c5e0c===_0x4251af)break;else _0x1f29b2['push'](_0x1f29b2['shift']());}catch(_0x449b87){_0x1f29b2['push'](_0x1f29b2['shift']());}}}(a0_0x58a4,0x40558));import a0_0x36b73d 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';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';function a0_0x58a4(){const _0x2b0b21=['2583248yWVsPz','refresh','rank','params','tab_config','sort','includes','length','query','convertFirstCharUpperCase','detail_field','studioPermission','button','tMenu','findOne','10vhNyxi','desc','23117CwmXfi','dec','getConfigTab','radio','tabData','clear','menu','tagName','filters','list','parse','etc','form','name','template',':checked','thumbnail','notify','34617RiMUmq','toLowerCase','42YimHct','lifecycle','select','stringify','currentTabKey','sorters','430VHZbdA','value','1123236AVREJY','set','ox-input-code','querySelector','keys','\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','form_config','ConfigTabConfig','4685202qGjcbX','tLabel','dataStorage','menuId','selectedIndex','thumbnail_field','etc_config','getElementById','operatoTools','pageInitialized','remove','updateMultipleMenu','active','push','menuName','grid-','display:none','toUpperCase','properties','meta_generator','initData','render','charAt','ox-grist','data','dirtyData','graphql','ConfigTabValues','records','map','get','tTitle','backToMenu','metaTemplate','styles','forEach','bind','shadowRoot','ConfigTab','setTabData','save','grid_config','tab','type','getState','304MrbrYV','display:flex','context','updateMultiple','357942WuOZgV','19755SNgVav','define','style','tButton','sort_rank','back','enc','search','hidden','options','menu_config','sortRecordByField','option','getElementValueById','deleteRow'];a0_0x58a4=function(){return _0x2b0b21;};return a0_0x58a4();}class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x5a66bc(0x1c1)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -141,24 +141,24 @@ const a0_0xe43ee7=a0_0x4d70;(function(_0x4eb186,_0x160197){const _0x8dc2ba=a0_0x
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
`];}static get[
|
|
144
|
+
`];}static get[a0_0x5a66bc(0x1b1)](){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_0x5a66bc(0x1ce)](){const _0x1cafca=a0_0x5a66bc;return{'title':TermsUtil[_0x1cafca(0x1be)](_0x1cafca(0x1b2)),'actions':[{'title':TermsUtil[_0x1cafca(0x1d4)]('save'),'action':this['save'][_0x1cafca(0x1c3)](this),...CommonButtonStyles[_0x1cafca(0x1c7)]},{'title':TermsUtil[_0x1cafca(0x1d4)](_0x1cafca(0x1d6)),'action':this[_0x1cafca(0x1bf)][_0x1cafca(0x1c3)](this),...CommonButtonStyles[_0x1cafca(0x1d6)]},{'title':TermsUtil['tButton']('refresh'),'action':this[_0x1cafca(0x1e1)][_0x1cafca(0x1c3)](this),...CommonButtonStyles['refresh']}]};}[a0_0x5a66bc(0x1df)](_0x267760,_0x1e21c3){const _0x40d446=a0_0x5a66bc;let _0x101af7=_0x267760[_0x40d446(0x1b8)];_0x101af7['records']=_0x101af7[_0x40d446(0x1bb)]['filter'](_0x1e2178=>_0x1e2178['id']!=_0x1e21c3['id']),_0x267760[_0x40d446(0x1b7)]=_0x101af7;}async[a0_0x5a66bc(0x1c7)](){const _0x156261=a0_0x5a66bc;if(0x0==store[_0x156261(0x1cb)]()[_0x156261(0x1a7)][_0x156261(0x1eb)])return void document['dispatchEvent'](new CustomEvent(_0x156261(0x18c),{'detail':{'level':'error','message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client['query']({'query':a0_0x36b73d`
|
|
145
145
|
query ($id: String!) {
|
|
146
146
|
studioTemplateIsOverLimit(id: $id)
|
|
147
147
|
}
|
|
148
|
-
`,'variables':{'id':this[
|
|
149
|
-
<h1>${this[
|
|
148
|
+
`,'variables':{'id':this[_0x156261(0x1a2)]}}))['errors'])return;let _0x33d00b={},_0x3b45ad={};Object['keys'](this[_0x156261(0x1f5)])[_0x156261(0x1c2)](_0x1dd540=>{const _0x490d2f=_0x156261;let _0x5a0953=this['convertFirstCharUpperCase'](_0x1dd540);_0x33d00b[_0x1dd540]=this[_0x490d2f(0x1bd)+_0x5a0953+_0x490d2f(0x1ba)](),_0x3b45ad=merge(_0x3b45ad,_0x33d00b[_0x1dd540]);}),_0x3b45ad=JSON[_0x156261(0x192)](_0x3b45ad),_0x3b45ad=MetaCrypto[_0x156261(0x1d7)](_0x3b45ad),await MetaApi[_0x156261(0x1cf)](_0x156261(0x1aa),[{'id':this['menuId'],'template':_0x3b45ad,'cuFlag':'M'}])&&await this[_0x156261(0x1b3)]();}[a0_0x5a66bc(0x1f6)](){const _0x60f3d8=a0_0x5a66bc;this[_0x60f3d8(0x1c6)](),this[_0x60f3d8(0x1a1)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object['keys'](this['tabData'])[_0x60f3d8(0x1c2)](_0x2554b7=>{const _0x1b4cb7=_0x60f3d8;let _0x201c26=this['convertFirstCharUpperCase'](_0x2554b7);if(this[_0x1b4cb7(0x198)+_0x201c26+_0x1b4cb7(0x1ba)])return this[_0x1b4cb7(0x198)+_0x201c26+_0x1b4cb7(0x1ba)](this[_0x1b4cb7(0x1a1)][_0x2554b7]);});}async[a0_0x5a66bc(0x1e1)](){const _0x4bdb33=a0_0x5a66bc;this[_0x4bdb33(0x1f6)](),await this[_0x4bdb33(0x1b3)]();}[a0_0x5a66bc(0x1bf)](){const _0x2b79f2=a0_0x5a66bc;history[_0x2b79f2(0x1d6)]();}async['initData'](){const _0x26fcf5=a0_0x5a66bc;var {menuId:_0x2765e0=''}=this[_0x26fcf5(0x190)]?.[_0x26fcf5(0x1e3)]?this[_0x26fcf5(0x190)][_0x26fcf5(0x1e3)]:{};if(this['menuId']=_0x2765e0,!_0x2765e0||''==_0x2765e0)return void this['clear']();let _0x18728b=await MetaApi[_0x26fcf5(0x1ee)](_0x26fcf5(0x1f7),_0x2765e0,_0x26fcf5(0x19c));if(_0x18728b){try{JSON[_0x26fcf5(0x185)](MetaCrypto[_0x26fcf5(0x1f2)](_0x18728b['template']));}catch(_0x223e8d){return;}this[_0x26fcf5(0x1ad)]=TermsUtil[_0x26fcf5(0x1ed)](_0x18728b[_0x26fcf5(0x188)]),this[_0x26fcf5(0x1c0)]=_0x18728b[_0x26fcf5(0x189)]?JSON[_0x26fcf5(0x185)](MetaCrypto[_0x26fcf5(0x1f2)](_0x18728b[_0x26fcf5(0x189)])):{};var {menu:_0x5733c8={},gql:_0x1e002e={},button:_0x19b7f5=[],grid_column:_0x42c196=[],grid:_0x185d6a={},search:_0x5d0b98=[],form:_0x2a401d=[],tab:_0x3a903b=[],etc:_0x3d6e3d={},gridEmphasized:_0x2234f4=[]}=this[_0x26fcf5(0x1c0)]?this['metaTemplate']:{};this[_0x26fcf5(0x1c6)](),this[_0x26fcf5(0x1a1)]={},this[_0x26fcf5(0x1a1)][_0x26fcf5(0x1f7)]=_0x5733c8,this['dataStorage'][_0x26fcf5(0x1b9)]=_0x1e002e,this['dataStorage']['grid']=_0x185d6a,this[_0x26fcf5(0x1a1)][_0x26fcf5(0x187)]=_0x2a401d,this['dataStorage'][_0x26fcf5(0x1c9)]=_0x3a903b,this[_0x26fcf5(0x1a1)][_0x26fcf5(0x186)]=_0x3d6e3d,this['dataStorage']['gridEmphasized']=_0x2234f4,(_0x185d6a[_0x26fcf5(0x1dd)]?.[_0x26fcf5(0x194)]||[])[_0x26fcf5(0x1c2)]((_0x4a765e,_0x2d9448)=>{const _0x223a94=_0x26fcf5;_0x4a765e[_0x223a94(0x1e2)]=0xa*(_0x2d9448+0x1);}),this[_0x26fcf5(0x1a1)]['column']=_0x42c196[_0x26fcf5(0x1bc)](_0x384378=>{const _0x1107d7=_0x26fcf5;let _0x57085b=(_0x185d6a[_0x1107d7(0x1dd)]?.[_0x1107d7(0x194)]||[])['filter'](_0xac3772=>_0xac3772[_0x1107d7(0x188)]==_0x384378[_0x1107d7(0x188)]);return _0x57085b&&_0x57085b[_0x1107d7(0x1e7)]>0x0?(_0x384378[_0x1107d7(0x1d5)]=_0x57085b[0x0]['rank'],_0x384378['sort_desc']=!!_0x57085b[0x0][_0x1107d7(0x1f0)]&&_0x57085b[0x0][_0x1107d7(0x1f0)]):_0x384378[_0x1107d7(0x1d5)]=0x0,_0x384378['rep_field']=(_0x185d6a[_0x1107d7(0x184)]?.['fields']||[])[_0x1107d7(0x1e6)](_0x384378[_0x1107d7(0x188)]),_0x384378[_0x1107d7(0x1ea)]=(_0x185d6a['list']?.['details']||[])['includes'](_0x384378['name']),_0x384378[_0x1107d7(0x1a4)]=_0x185d6a[_0x1107d7(0x184)]?.[_0x1107d7(0x18b)]==_0x384378[_0x1107d7(0x188)],_0x384378;}),_0x5d0b98[_0x26fcf5(0x1ac)](...(_0x1e002e[_0x26fcf5(0x1e8)]?.[_0x26fcf5(0x1f9)]||[])[_0x26fcf5(0x1bc)](_0x53b7d9=>(_0x53b7d9[_0x26fcf5(0x1d9)]=!0x0,_0x53b7d9))),this['dataStorage'][_0x26fcf5(0x1d8)]=_0x5d0b98,_0x19b7f5['push'](...(_0x185d6a[_0x26fcf5(0x1ec)]||[])[_0x26fcf5(0x1bc)](_0x3bf34b=>(_0x3bf34b[_0x26fcf5(0x1ca)]=_0x26fcf5(0x1ae)+_0x3bf34b[_0x26fcf5(0x1ca)],_0x3bf34b[_0x26fcf5(0x1d3)]=_0x3bf34b['icon'],_0x3bf34b))),this[_0x26fcf5(0x1a1)][_0x26fcf5(0x1ec)]=_0x19b7f5,Object['keys'](this[_0x26fcf5(0x1f5)])['forEach'](_0x4d89f7=>{const _0x5c8c6d=_0x26fcf5;let _0x4a19c6=this[_0x5c8c6d(0x1e9)](_0x4d89f7);if(this['set'+_0x4a19c6+_0x5c8c6d(0x1ba)])return this['set'+_0x4a19c6+_0x5c8c6d(0x1ba)](this[_0x5c8c6d(0x1a1)][_0x4d89f7]);});}}async[a0_0x5a66bc(0x1a8)](){const _0x1daf19=a0_0x5a66bc;this[_0x1daf19(0x1c6)]();let _0x1f20eb=Object['keys'](this['tabData']);for(var _0x582b2b=0x0;_0x582b2b<_0x1f20eb[_0x1daf19(0x1e7)];_0x582b2b++){let _0x3f6672=this[_0x1daf19(0x1e9)](_0x1f20eb[_0x582b2b]);this[_0x1daf19(0x198)+_0x3f6672+_0x1daf19(0x19e)]&&await this[_0x1daf19(0x198)+_0x3f6672+_0x1daf19(0x19e)]();}}async['pageUpdated'](_0x1a5e4e,_0x27f3ff,_0x1aa571){const _0x6c8ca9=a0_0x5a66bc;!0x0===this[_0x6c8ca9(0x1ab)]?(this[_0x6c8ca9(0x1c6)](),await this[_0x6c8ca9(0x1b3)](),this[_0x6c8ca9(0x1c6)]()):(this[_0x6c8ca9(0x1f6)](),this[_0x6c8ca9(0x1a9)]());}['setTabData'](){const _0x137553=a0_0x5a66bc;this[_0x137553(0x1f5)]||(this['tabData']={'menu':TermsUtil[_0x137553(0x1a0)](_0x137553(0x1db)),'graphql':TermsUtil['tLabel']('graphql_config'),'grid':TermsUtil['tLabel'](_0x137553(0x1c8)),'column':TermsUtil[_0x137553(0x1a0)]('column_config'),'gridEmphasized':TermsUtil[_0x137553(0x1a0)]('grid_emphasized_config'),'button':TermsUtil[_0x137553(0x1a0)]('button_config'),'search':TermsUtil[_0x137553(0x1a0)]('search_config'),'form':TermsUtil[_0x137553(0x1a0)](_0x137553(0x19d)),'tab':TermsUtil[_0x137553(0x1a0)](_0x137553(0x1e4)),'etc':TermsUtil[_0x137553(0x1a0)](_0x137553(0x1a5))});}[a0_0x5a66bc(0x1b4)](){const _0x11c28f=a0_0x5a66bc;this['currentTabKey']||(this[_0x11c28f(0x193)]=_0x11c28f(0x1f7)),this[_0x11c28f(0x1c6)]();let _0x1ee6e0=Object[_0x11c28f(0x19b)](this[_0x11c28f(0x1f5)]);return this['tabData'][this[_0x11c28f(0x193)]]?this[_0x11c28f(0x193)]:_0x1ee6e0[0x0],html`
|
|
149
|
+
<h1>${this['menuName']}</h1>
|
|
150
150
|
<div class="tabs">
|
|
151
|
-
${
|
|
152
|
-
<div class="tab" ?activate="${
|
|
153
|
-
<span>${
|
|
151
|
+
${_0x1ee6e0[_0x11c28f(0x1bc)](_0x1a1d05=>{const _0x1a84dd=_0x11c28f;let _0x52007f=this[_0x1a84dd(0x1f5)][_0x1a1d05];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x1a1d05===this[_0x1a84dd(0x193)]}" @click="${()=>this[_0x1a84dd(0x193)]=_0x1a1d05}">
|
|
153
|
+
<span>${_0x52007f}</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
|
+
${_0x1ee6e0[_0x11c28f(0x1bc)](_0xdaae51=>{const _0x1652d9=_0x11c28f;let _0x436ec4=_0x1652d9(0x1af);return _0xdaae51==this[_0x1652d9(0x193)]&&(_0x436ec4=_0x1652d9(0x1cd)),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x436ec4}">
|
|
160
|
+
${this[_0x1652d9(0x1f3)](_0xdaae51)}
|
|
161
161
|
</div>
|
|
162
162
|
`;})}
|
|
163
163
|
</div>
|
|
164
|
-
`;}[
|
|
164
|
+
`;}[a0_0x5a66bc(0x1f3)](_0x33358e){const _0x2ca48d=a0_0x5a66bc;let _0x34a91f=this[_0x2ca48d(0x1e9)](_0x33358e);return this['render'+_0x34a91f+_0x2ca48d(0x1c5)]?this[_0x2ca48d(0x1b4)+_0x34a91f+_0x2ca48d(0x1c5)]():html``;}['convertFirstCharUpperCase'](_0x9d8fe8){const _0x5d4485=a0_0x5a66bc;return _0x9d8fe8[_0x5d4485(0x1b5)](0x0)[_0x5d4485(0x1b0)]()+_0x9d8fe8['slice'](0x1);}[a0_0x5a66bc(0x1a6)](_0xd18211){const _0x105a29=a0_0x5a66bc;return this[_0x105a29(0x1c4)]['querySelector']('#'+_0xd18211);}[a0_0x5a66bc(0x1de)](_0x194d03){const _0x555f6a=a0_0x5a66bc;let _0x3c199f=this['shadowRoot']['querySelector']('#'+_0x194d03);if(!_0x3c199f)return;let _0x5ea090='';if(_0x555f6a(0x191)==_0x3c199f[_0x555f6a(0x1f8)]['toLowerCase']()){if(!_0x3c199f[_0x555f6a(0x1da)]||0x0==_0x3c199f['options'][_0x555f6a(0x1e7)])return;_0x5ea090=_0x3c199f[_0x555f6a(0x1da)][_0x3c199f[_0x555f6a(0x1a3)]][_0x555f6a(0x196)];}else{if(_0x555f6a(0x1b6)==_0x3c199f[_0x555f6a(0x1f8)][_0x555f6a(0x18e)]()){if(!_0x3c199f[_0x555f6a(0x1b8)])return;if(!_0x3c199f[_0x555f6a(0x1b8)][_0x555f6a(0x1bb)])return;if(0x0==_0x3c199f['dirtyData'][_0x555f6a(0x1bb)]['length'])return;return _0x3c199f[_0x555f6a(0x1b8)][_0x555f6a(0x1bb)];}if(_0x555f6a(0x199)==_0x3c199f[_0x555f6a(0x1f8)]['toLowerCase']())return _0x3c199f[_0x555f6a(0x196)];if(_0x555f6a(0x1f4)==_0x3c199f[_0x555f6a(0x1ca)][_0x555f6a(0x18e)]()){let _0x39e0ac=this['shadowRoot'][_0x555f6a(0x19a)]('#'+_0x194d03+_0x555f6a(0x18a));if(!_0x39e0ac)return;return _0x39e0ac[_0x555f6a(0x196)];}_0x5ea090=_0x3c199f[_0x555f6a(0x196)];}return _0x5ea090&&''!=_0x5ea090?_0x5ea090:void 0x0;}['sortRecordByRank'](_0x46f67b){const _0x267e6f=a0_0x5a66bc;return _0x46f67b?this[_0x267e6f(0x1dc)](_0x46f67b,_0x267e6f(0x1e2)):_0x46f67b;}[a0_0x5a66bc(0x1dc)](_0xc327e2,_0x1e1b5d){const _0x14cc4d=a0_0x5a66bc;return _0xc327e2[_0x14cc4d(0x1e5)]((_0x7fd177,_0x107575)=>_0x7fd177[_0x1e1b5d]-_0x107575[_0x1e1b5d]),_0xc327e2;}}customElements[a0_0x5a66bc(0x1d2)]('meta-generator-page',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_0x3aa052=a0_0x5d46;function a0_0x3d50(){const _0x5ccbf2=['sortRecordByRank','2391340iSowMl','search_operator','setSearchConfigTabValues','object','name','getGristSelectableConfig','4003866NbwoRD','filters','search','push','rank','searchTabGrist','right','hidden','filter','tLabel','709091YsMjnI','40102Eroloo','viewSearchData','getCodeSelectorData','#search-tab-grid','delete','setSearchConfigTabConfig','28fNoKdg','integer','bind','left','getGristGuttersConfig','59010DgGIlW','operator','default_value','search-tab-grid','fetchSearchTabHandler','assign','719065HATaDu','searchTabGridConfig','5940936wkkBPu','fetch','boolean','string','value','forEach'];a0_0x3d50=function(){return _0x5ccbf2;};return a0_0x3d50();}(function(_0x41d613,_0x42488c){const _0xb5d3cf=a0_0x5d46,_0x4c03f8=_0x41d613();while(!![]){try{const _0x4f4f72=-parseInt(_0xb5d3cf(0x9b))/0x1+parseInt(_0xb5d3cf(0x9c))/0x2+-parseInt(_0xb5d3cf(0x7c))/0x3*(parseInt(_0xb5d3cf(0xa2))/0x4)+parseInt(_0xb5d3cf(0x82))/0x5+parseInt(_0xb5d3cf(0x91))/0x6+-parseInt(_0xb5d3cf(0x8b))/0x7+parseInt(_0xb5d3cf(0x84))/0x8;if(_0x4f4f72===_0x42488c)break;else _0x4c03f8['push'](_0x4c03f8['shift']());}catch(_0x4d3b7d){_0x4c03f8['push'](_0x4c03f8['shift']());}}}(a0_0x3d50,0x5e16f));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x5d46(_0x4fb219,_0x3ee888){const _0x3d506b=a0_0x3d50();return a0_0x5d46=function(_0x5d4679,_0x49bef2){_0x5d4679=_0x5d4679-0x7c;let _0x428944=_0x3d506b[_0x5d4679];return _0x428944;},a0_0x5d46(_0x4fb219,_0x3ee888);}export const SearchConfigTabMixin=_0x467e54=>class extends _0x467e54{[a0_0x3aa052(0x8d)](_0x715e2b){const _0x2ef08b=a0_0x3aa052;let _0x560a23=_0x715e2b?.['map']((_0x1f6ea9,_0xd642f1)=>{const _0x1366e7=a0_0x5d46;let _0x304512=_0xd642f1+0x1,_0x316fc2={};return _0x1366e7(0x8e)==typeof _0x1f6ea9?Object[_0x1366e7(0x81)](_0x316fc2,_0x1f6ea9):(_0x316fc2['name']=_0x1f6ea9,_0x316fc2[_0x1366e7(0x7d)]=_0x1366e7(0x99)),_0x316fc2[_0x1366e7(0x95)]=0xa*_0x304512,_0x316fc2['id']=_0x304512,_0x316fc2;});this[_0x2ef08b(0x9d)]=_0x560a23||[],this['searchTabGrist']?.[_0x2ef08b(0x85)]();}['getSearchConfigTabValues'](){const _0x5db296=a0_0x3aa052;let _0xd02c2f={'search':[],'gql':{'query':{'filters':[]}}},_0x29368f=this['getElementValueById'](_0x5db296(0x7f));return this[_0x5db296(0x8a)](_0x29368f)?.[_0x5db296(0x89)](_0xdc99aa=>{const _0x67587b=_0x5db296;var {name:_0x36d504,operator:_0x5a2de7='eq',hidden:_0x3ccb85=!0x1,value:_0x1fdea1}=_0xdc99aa;if(_0x36d504){if(_0x67587b(0x99)==_0x5a2de7)_0xd02c2f[_0x67587b(0x93)]['push'](_0x36d504);else{let _0x37ae41={'name':_0x36d504,'operator':_0x5a2de7};0x1==_0x3ccb85?(_0x37ae41['value']=_0x1fdea1,_0xd02c2f['gql']['query'][_0x67587b(0x92)][_0x67587b(0x94)](_0x37ae41)):(_0x37ae41['value']=_0x1fdea1,_0xd02c2f[_0x67587b(0x93)]['push'](_0x37ae41));}}}),_0xd02c2f;}['renderSearchConfigTab'](){const _0x3c8025=a0_0x3aa052;return html`
|
|
2
|
+
<ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x3c8025(0x83)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x3c8025(0x80)][_0x3c8025(0xa4)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x3aa052(0x96)](){const _0x245e85=a0_0x3aa052;return this['shadowRoot']['querySelector'](_0x245e85(0x9f));}async[a0_0x3aa052(0x80)](){const _0x1f6164=a0_0x3aa052;return{'total':0x0,'records':this[_0x1f6164(0x9d)]||[]};}async[a0_0x3aa052(0xa1)](){const _0x4f8192=a0_0x3aa052;let _0x44b4a0=await MetaApi[_0x4f8192(0x9e)]('FILTER_OPERATORS');this[_0x4f8192(0x83)]={'rows':MetaApi[_0x4f8192(0x90)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x4f8192(0x95),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x4f8192(0xa6)](!0x1,!0x1),{'type':'gutter','gutterName':'button','icon':_0x4f8192(0xa0),'handlers':{'click':(_0x3a2f54,_0x1895ae,_0x33c834,_0x21b449,_0x1fcc98)=>{const _0x2391c4=_0x4f8192;_0x21b449['id']&&this['deleteRow'](this[_0x2391c4(0x96)],_0x21b449);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x4f8192(0xa3),'name':_0x4f8192(0x95),'header':TermsUtil['tLabel'](_0x4f8192(0x95)),'sortable':!0x0,'width':0x41,'record':{'align':_0x4f8192(0x97),'editable':!0x0,'mandatory':!0x0}},{'type':_0x4f8192(0x87),'name':_0x4f8192(0x8f),'header':TermsUtil[_0x4f8192(0x9a)](_0x4f8192(0x8f)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x4f8192(0xa5),'editable':!0x0,'mandatory':!0x0}},{'type':'select','name':_0x4f8192(0x7d),'header':TermsUtil['tLabel'](_0x4f8192(0x8c)),'sortable':!0x1,'width':0x64,'record':{'align':_0x4f8192(0xa5),'editable':!0x0,'mandatory':!0x1,'options':_0x44b4a0}},{'type':_0x4f8192(0x86),'name':_0x4f8192(0x98),'header':TermsUtil[_0x4f8192(0x9a)](_0x4f8192(0x98)),'sortable':!0x1,'width':0x41,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':'string','name':_0x4f8192(0x88),'header':TermsUtil[_0x4f8192(0x9a)](_0x4f8192(0x7e)),'sortable':!0x1,'width':0xc8,'record':{'align':'left','editable':!0x0,'mandatory':!0x1}}]};}};
|