@things-factory/operato-tools 6.1.20 → 6.1.21
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 +22 -22
- package/client/pages/generator/grid-emphasized-config-tab-mixin.js +18 -0
- package/client/pages/generator/menu-config-tab-mixin.js +11 -11
- 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
- package/translations/en.json +4 -1
- package/translations/ko.json +4 -1
- package/translations/ms.json +4 -1
- package/translations/zh.json +4 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xbf555=a0_0x1af5;(function(_0x494824,_0x33e5ad){const _0x1bf7dd=a0_0x1af5,_0x12f2cd=_0x494824();while(!![]){try{const _0x7b89dd=-parseInt(_0x1bf7dd(0x131))/0x1+-parseInt(_0x1bf7dd(0x121))/0x2+-parseInt(_0x1bf7dd(0x122))/0x3+parseInt(_0x1bf7dd(0x12f))/0x4*(parseInt(_0x1bf7dd(0x128))/0x5)+parseInt(_0x1bf7dd(0x110))/0x6+-parseInt(_0x1bf7dd(0x118))/0x7+parseInt(_0x1bf7dd(0x120))/0x8*(parseInt(_0x1bf7dd(0x119))/0x9);if(_0x7b89dd===_0x33e5ad)break;else _0x12f2cd['push'](_0x12f2cd['shift']());}catch(_0x2fac36){_0x12f2cd['push'](_0x12f2cd['shift']());}}}(a0_0x179f,0x52e77));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x179f(){const _0x19e266=['codeItems','grid_support_multi_select','grid_term_100','getGridConfigTabValues','renderGridConfigTab','grid_use_row_check','grid_term_default','length','option','support','GRID','grid_use_filter','grid_term_1000','grid_pagination','description','grid_term_unlimited','1138548WpjoqH','push','grid_desk_view','mobile_mode','true','includes','unlimited','tLabel','2513203VBHJKI','27LMGdLK','card_view_use','GRID_VIEW_MODE','setGridConfigTabConfig','view_mode','viewGridData','grid','664184lnrIRh','351200yUqKEz','153417nQdUpl','grid_mobile_view','grid_term_50','unuse','toLowerCase','setGridConfigTabValues','3346395Pbpsev','use','name','pages','gridViewModes','use_filter_form','select-row-toggle','4stqiXJ','CARD','182763yxVwVV','use_row_checker','multiple_select','desk_mode','map','_view_use','grid_support_view','LIST','getElementValueById','gridPageOptions','setGridConfigTabDetaultValues','row'];a0_0x179f=function(){return _0x19e266;};return a0_0x179f();}function a0_0x1af5(_0x5945f8,_0x44febd){const _0x179f1d=a0_0x179f();return a0_0x1af5=function(_0x1af5c5,_0xb40de2){_0x1af5c5=_0x1af5c5-0x105;let _0x3a3829=_0x179f1d[_0x1af5c5];return _0x3a3829;},a0_0x1af5(_0x5945f8,_0x44febd);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0x20d1cf=>class extends _0x20d1cf{[a0_0xbf555(0x127)](_0x1667c3){const _0x464f10=a0_0xbf555;if(_0x1667c3){var {mobile_mode:_0x54c7e9='',desk_mode:_0xe7567a='',pages:_0x35d713=[],use_row_checker:_0x5c6763=!0x0,view_mode:_0x56444c=[]}=_0x1667c3[_0x464f10(0x108)]||{};let _0xc6a338=(_0x1667c3[_0x464f10(0x13c)]||{'multiple_select':!0x1})[_0x464f10(0x133)],_0x426b38='unlimited'==_0x35d713?_0x464f10(0x10f):0x0==_0x35d713[_0x464f10(0x107)]?'':0x14==_0x35d713[0x0]?_0x464f10(0x106):'grid_term_'+_0x35d713[0x0];this[_0x464f10(0x11e)]={'mobile_mode':_0x54c7e9,'desk_mode':_0xe7567a,'use_row_checker':_0x5c6763,'pages':_0x426b38,'view_mode':_0x56444c,'multiple_select':_0xc6a338,'use_filter_form':_0x1667c3[_0x464f10(0x12d)]};}else this['setGridConfigTabDetaultValues']();}[a0_0xbf555(0x140)](){const _0x1a814f=a0_0xbf555;let _0x1fe15e={'grid':{'option':{},'row':{'click':_0x1a814f(0x12e)}}},_0x342811=this[_0x1a814f(0x139)]('grid_row_check_use'),_0x43cbc6=this[_0x1a814f(0x139)]('grid_multi_select'),_0xee98f2=this[_0x1a814f(0x139)](_0x1a814f(0x112)),_0x5b831b=this[_0x1a814f(0x139)](_0x1a814f(0x123)),_0x700272=this[_0x1a814f(0x139)](_0x1a814f(0x10b)),_0x3caf29=this[_0x1a814f(0x139)](_0x1a814f(0x10d)),_0x18aaf0=this[_0x1a814f(0x139)]('grid_view_use'),_0x590314=this['getElementValueById']('list_view_use'),_0x2b33a6=this[_0x1a814f(0x139)](_0x1a814f(0x11a));return _0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x12d)]=_0x1a814f(0x114)==_0x700272,_0x1fe15e['grid']['row'][_0x1a814f(0x133)]=_0x1a814f(0x114)==_0x43cbc6,_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)]['use_row_checker']='true'==_0x342811,_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)][_0x1a814f(0x113)]=_0x5b831b,_0x1fe15e[_0x1a814f(0x11f)]['option']['desk_mode']=_0xee98f2,_0x1a814f(0x106)==_0x3caf29?_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)][_0x1a814f(0x12b)]=[0x14,0x1e,0x32,0x64]:_0x1a814f(0x124)==_0x3caf29?_0x1fe15e['grid'][_0x1a814f(0x108)][_0x1a814f(0x12b)]=[0x32,0x64,0x1f4,0x3e8]:_0x1a814f(0x13f)==_0x3caf29?_0x1fe15e['grid']['option']['pages']=[0x64,0x1f4,0x3e8,0x1388]:_0x1a814f(0x10c)==_0x3caf29?_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)][_0x1a814f(0x12b)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x1a814f(0x10f)==_0x3caf29&&(_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)][_0x1a814f(0x12b)]=_0x1a814f(0x116)),_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)]['view_mode']=[],'true'==_0x18aaf0&&_0x1fe15e[_0x1a814f(0x11f)][_0x1a814f(0x108)][_0x1a814f(0x11d)][_0x1a814f(0x111)]('GRID'),_0x1a814f(0x114)==_0x590314&&_0x1fe15e['grid']['option'][_0x1a814f(0x11d)][_0x1a814f(0x111)](_0x1a814f(0x138)),_0x1a814f(0x114)==_0x2b33a6&&_0x1fe15e[_0x1a814f(0x11f)]['option'][_0x1a814f(0x11d)][_0x1a814f(0x111)](_0x1a814f(0x130)),_0x1fe15e;}async[a0_0xbf555(0x11c)](){const _0x3da5c5=a0_0xbf555;let _0x220d9f=await MetaApi[_0x3da5c5(0x13d)]('GRID_PAGE_OPTIONS'),_0x1b6f90=await MetaApi[_0x3da5c5(0x13d)](_0x3da5c5(0x11b));this[_0x3da5c5(0x12c)]=_0x1b6f90,this[_0x3da5c5(0x13a)]=_0x220d9f;}[a0_0xbf555(0x13b)](){const _0x385d55=a0_0xbf555;this['viewGridData']||(this['viewGridData']={'mobile_mode':this['gridViewModes']?this[_0x385d55(0x12c)][0x1]:_0x385d55(0x138),'desk_mode':this['gridViewModes']?this['gridViewModes'][0x0]:'GRID','use_row_checker':!0x0,'pages':_0x385d55(0x106),'view_mode':[...this['gridViewModes']?this[_0x385d55(0x12c)]:[_0x385d55(0x10a),_0x385d55(0x138),'CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0xbf555(0x141)](){const _0x455de1=a0_0xbf555;return this['setGridConfigTabDetaultValues'](),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['tLabel'](_0x455de1(0x105))}
|
|
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[_0x455de1(0x11e)][_0x455de1(0x132)]}>${TermsUtil[_0x455de1(0x117)](_0x455de1(0x129))}</input>
|
|
11
11
|
<input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
|
|
12
|
-
?checked=${!this[
|
|
12
|
+
?checked=${!this['viewGridData'][_0x455de1(0x132)]}>${TermsUtil[_0x455de1(0x117)](_0x455de1(0x125))}</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[_0x455de1(0x117)](_0x455de1(0x13e))}
|
|
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[_0x455de1(0x11e)]['multiple_select']}>${TermsUtil['tLabel'](_0x455de1(0x109))}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this[
|
|
25
|
+
?checked=${!this[_0x455de1(0x11e)][_0x455de1(0x133)]}>${TermsUtil[_0x455de1(0x117)]('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['tLabel'](_0x455de1(0x10b))}
|
|
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[_0x455de1(0x11e)]['use_filter_form']}>${TermsUtil['tLabel'](_0x455de1(0x129))}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0x455de1(0x11e)][_0x455de1(0x12d)]}>${TermsUtil[_0x455de1(0x117)](_0x455de1(0x125))}</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[_0x455de1(0x117)](_0x455de1(0x112))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this[
|
|
49
|
+
${this[_0x455de1(0x12c)]?.['map'](_0x12e4da=>html`<option value=${_0x12e4da[_0x455de1(0x12a)]} ?selected=${this[_0x455de1(0x11e)][_0x455de1(0x134)]==_0x12e4da['name']}>${_0x12e4da[_0x455de1(0x10e)]}</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[_0x455de1(0x117)]('grid_mobile_view')}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this[
|
|
59
|
+
${this[_0x455de1(0x12c)]?.[_0x455de1(0x135)](_0x5005aa=>html`<option value=${_0x5005aa['name']} ?selected=${this[_0x455de1(0x11e)][_0x455de1(0x113)]==_0x5005aa[_0x455de1(0x12a)]}>${_0x5005aa[_0x455de1(0x10e)]}</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[_0x455de1(0x117)](_0x455de1(0x137))}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0x455de1(0x12c)]?.['map'](_0x394bb5=>html`
|
|
69
|
+
<span>${_0x394bb5[_0x455de1(0x12a)]}
|
|
70
|
+
<input type="radio" name=${_0x394bb5[_0x455de1(0x12a)][_0x455de1(0x126)]()+_0x455de1(0x136)} id=${_0x394bb5[_0x455de1(0x12a)][_0x455de1(0x126)]()+_0x455de1(0x136)} ?checked=${this[_0x455de1(0x11e)][_0x455de1(0x11d)][_0x455de1(0x115)](_0x394bb5['name'])} value="true">${TermsUtil[_0x455de1(0x117)](_0x455de1(0x129))}</input>
|
|
71
|
+
<input type="radio" name=${_0x394bb5[_0x455de1(0x12a)]['toLowerCase']()+_0x455de1(0x136)} id=${_0x394bb5[_0x455de1(0x12a)][_0x455de1(0x126)]()+_0x455de1(0x136)} ?checked=${!this[_0x455de1(0x11e)][_0x455de1(0x11d)][_0x455de1(0x115)](_0x394bb5[_0x455de1(0x12a)])} value="false">${TermsUtil[_0x455de1(0x117)](_0x455de1(0x125))}</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[_0x455de1(0x117)]('grid_pagination')}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this[
|
|
81
|
+
${this['gridPageOptions']?.[_0x455de1(0x135)](_0x5352e2=>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=${_0x5352e2[_0x455de1(0x12a)]} ?checked=${this[_0x455de1(0x11e)][_0x455de1(0x12b)]==_0x5352e2[_0x455de1(0x12a)]}>${TermsUtil['tLabel'](_0x5352e2[_0x455de1(0x12a)])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const a0_0x4d0bf7=a0_0x1bca;(function(_0x188039,_0x35a1dd){const _0x558450=a0_0x1bca,_0x61a161=_0x188039();while(!![]){try{const _0xe280a0=-parseInt(_0x558450(0x113))/0x1*(-parseInt(_0x558450(0x104))/0x2)+parseInt(_0x558450(0x10e))/0x3+parseInt(_0x558450(0x121))/0x4*(parseInt(_0x558450(0x112))/0x5)+-parseInt(_0x558450(0x11b))/0x6*(-parseInt(_0x558450(0x127))/0x7)+-parseInt(_0x558450(0xf6))/0x8*(parseInt(_0x558450(0xf4))/0x9)+-parseInt(_0x558450(0x10c))/0xa*(parseInt(_0x558450(0xf7))/0xb)+-parseInt(_0x558450(0xf3))/0xc;if(_0xe280a0===_0x35a1dd)break;else _0x61a161['push'](_0x61a161['shift']());}catch(_0x14235a){_0x61a161['push'](_0x61a161['shift']());}}}(a0_0x2721,0x22854));function a0_0x2721(){const _0x41e74d=['11014KAHwvo','getGridEmphasizedConfigTabValues','fetchColumnEmphasized','forEach','column','grid_row_emphasized_config','background-color','setGridEmphasizedConfigTabValues','90ceCcUq','querySelector','82770peiKya','deleteRow','fetch','renderGridEmphasizedConfigTab','2535FDOfjU','50PviGuq','keys','string','button','integer','left','GRID','#column-emphasized-grist','1258392oTlOsd','emphasizedConfigTabColumnEmphasizedGrist','push','sortRecordByRank','right','map','1260uJYnuF','fontColor','rowEmphasizedConfig','setGridEmphasizedConfigTabDefaultValues','bind','grid_column_emphasized_config','7ZAvnTj','row','setGridEmphasizedConfigTabConfig','tLabel','code-input','row-emphasized-grist','columnEmphasizedData','emphasizedConfigTabRowEmphasizedGrist','4231368VzhpDA','14400wLEHmE','gutter','376eUTcsm','126093XfxHwp','rank','getElementValueById','shadowRoot','logic','delete','viewEmphasizedData','backgroundColor','font-color','columnEmphasizedConfig','fetchRowEmphasized','getGristGuttersConfig','getGristSelectableConfig'];a0_0x2721=function(){return _0x41e74d;};return a0_0x2721();}function a0_0x1bca(_0x332f78,_0x3cedf0){const _0x272173=a0_0x2721();return a0_0x1bca=function(_0x1bca50,_0x18bb69){_0x1bca50=_0x1bca50-0xed;let _0x2c1a15=_0x272173[_0x1bca50];return _0x2c1a15;},a0_0x1bca(_0x332f78,_0x3cedf0);}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';export const GridEmphasizedConfigTabMixin=_0x3b8012=>class extends _0x3b8012{[a0_0x4d0bf7(0x10b)](_0x300426){const _0x70f9b9=a0_0x4d0bf7;if(_0x300426){this[_0x70f9b9(0xfd)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x3d1daa=0x1;this[_0x70f9b9(0xfd)]['rowEmphasizedData']=(_0x300426[_0x70f9b9(0x128)]||[])[_0x70f9b9(0x120)](_0x25fbd1=>({'id':_0x3d1daa,'rank':_0x3d1daa++,'backgroundColor':_0x25fbd1[_0x70f9b9(0xfe)]||'','fontColor':_0x25fbd1[_0x70f9b9(0x122)]||'','logic':_0x25fbd1[_0x70f9b9(0xfb)]||''})),_0x3d1daa=0x1;let _0x1d18a0=_0x300426[_0x70f9b9(0x108)]||[];Object[_0x70f9b9(0x114)](_0x1d18a0)[_0x70f9b9(0x107)](_0x17b57b=>{let _0x2c0daa=_0x1d18a0[_0x17b57b]||[],_0x2c5ccc=0x1;_0x2c0daa['forEach'](_0x562dcc=>{const _0x26fed2=a0_0x1bca;this[_0x26fed2(0xfd)]['columnEmphasizedData'][_0x26fed2(0x11d)]({'id':_0x3d1daa++,'rank':_0x2c5ccc++,'column':_0x17b57b,'backgroundColor':_0x562dcc[_0x26fed2(0xfe)]||'','fontColor':_0x562dcc[_0x26fed2(0x122)]||'','logic':_0x562dcc[_0x26fed2(0xfb)]||''});});}),this['emphasizedConfigTabColumnEmphasizedGrist']?.['fetch'](),this[_0x70f9b9(0xf2)]?.[_0x70f9b9(0x110)]();}else this[_0x70f9b9(0x124)]();}[a0_0x4d0bf7(0x105)](){const _0x54a528=a0_0x4d0bf7;let _0x41a62e=this[_0x54a528(0xf9)](_0x54a528(0xf0)),_0x37b931=this['getElementValueById']('column-emphasized-grist'),_0x5dea51=[];this[_0x54a528(0x11e)](_0x41a62e)?.[_0x54a528(0x107)](_0x1e25a5=>{const _0x542c43=_0x54a528;_0x5dea51['push']({'backgroundColor':_0x1e25a5['backgroundColor'],'fontColor':_0x1e25a5[_0x542c43(0x122)],'logic':_0x1e25a5[_0x542c43(0xfb)]});});let _0x342d38={};return this['sortRecordByRank'](_0x37b931)?.['forEach'](_0x321f0d=>{const _0x19e321=_0x54a528;_0x342d38[_0x321f0d[_0x19e321(0x108)]]||(_0x342d38[_0x321f0d['column']]=[]),_0x342d38[_0x321f0d[_0x19e321(0x108)]][_0x19e321(0x11d)]({'backgroundColor':_0x321f0d[_0x19e321(0xfe)],'fontColor':_0x321f0d[_0x19e321(0x122)],'logic':_0x321f0d['logic']});}),{'gridEmphasized':{'row':_0x5dea51||[],'column':_0x342d38||{}}};}get['emphasizedConfigTabRowEmphasizedGrist'](){const _0x5abf9a=a0_0x4d0bf7;return this[_0x5abf9a(0xfa)][_0x5abf9a(0x10d)]('#row-emphasized-grist');}get[a0_0x4d0bf7(0x11c)](){const _0x2d8030=a0_0x4d0bf7;return this[_0x2d8030(0xfa)][_0x2d8030(0x10d)](_0x2d8030(0x11a));}[a0_0x4d0bf7(0xed)](){const _0x5076e4=a0_0x4d0bf7;this[_0x5076e4(0x123)]={'rows':MetaApi[_0x5076e4(0x103)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x5076e4(0x102)](!0x1,!0x1),{'type':'gutter','gutterName':_0x5076e4(0x116),'icon':_0x5076e4(0xfc),'handlers':{'click':(_0x181f28,_0x377b0a,_0x1a4709,_0x2ee4f7,_0xc1df8d)=>{const _0x3cbf11=_0x5076e4;_0x2ee4f7['id']&&this[_0x3cbf11(0x10f)](this['emphasizedConfigTabRowEmphasizedGrist'],_0x2ee4f7);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x5076e4(0x117),'name':_0x5076e4(0xf8),'header':TermsUtil['tLabel'](_0x5076e4(0xf8)),'sortable':!0x0,'width':0x41,'record':{'align':_0x5076e4(0x11f),'editable':!0x0,'mandatory':!0x0}},{'type':_0x5076e4(0x115),'name':'backgroundColor','header':TermsUtil[_0x5076e4(0xee)](_0x5076e4(0x10a)),'record':{'align':_0x5076e4(0x118),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'string','name':_0x5076e4(0x122),'header':TermsUtil[_0x5076e4(0xee)](_0x5076e4(0xff)),'record':{'align':_0x5076e4(0x118),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5076e4(0xef),'name':'logic','header':TermsUtil[_0x5076e4(0xee)]('logic'),'record':{'align':_0x5076e4(0x118),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x5076e4(0x100)]={'rows':MetaApi[_0x5076e4(0x103)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x5076e4(0x102)](!0x1,!0x1),{'type':_0x5076e4(0xf5),'gutterName':_0x5076e4(0x116),'icon':_0x5076e4(0xfc),'handlers':{'click':(_0x369160,_0x5cf3a,_0x1da9b4,_0x624f59,_0x16b643)=>{const _0x4bb53f=_0x5076e4;_0x624f59['id']&&this[_0x4bb53f(0x10f)](this['emphasizedConfigTabColumnEmphasizedGrist'],_0x624f59);}}},{'type':_0x5076e4(0x115),'name':'id','hidden':!0x0},{'type':_0x5076e4(0x115),'name':_0x5076e4(0x108),'header':TermsUtil['tLabel'](_0x5076e4(0x108)),'record':{'align':_0x5076e4(0x118),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5076e4(0x117),'name':'rank','header':TermsUtil[_0x5076e4(0xee)](_0x5076e4(0xf8)),'sortable':!0x0,'width':0x41,'record':{'align':_0x5076e4(0x11f),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x5076e4(0xfe),'header':TermsUtil[_0x5076e4(0xee)]('background-color'),'record':{'align':_0x5076e4(0x118),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5076e4(0x115),'name':_0x5076e4(0x122),'header':TermsUtil['tLabel'](_0x5076e4(0xff)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x5076e4(0xef),'name':_0x5076e4(0xfb),'header':TermsUtil[_0x5076e4(0xee)](_0x5076e4(0xfb)),'record':{'align':_0x5076e4(0x118),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x4d0bf7(0x124)](){const _0x145c07=a0_0x4d0bf7;this[_0x145c07(0xfd)]||(this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x4d0bf7(0x111)](){const _0x3a16b1=a0_0x4d0bf7;return this[_0x3a16b1(0x124)](),html`
|
|
2
|
+
<div style='grid-template-rows: 50% 50%;display:grid;flex:1;'>
|
|
3
|
+
<div field >
|
|
4
|
+
<h2>
|
|
5
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x3a16b1(0x109))}
|
|
6
|
+
</h2>
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x3a16b1(0x123)]} .mode=${'GRID'} auto-fetch
|
|
8
|
+
.fetchHandler=${this[_0x3a16b1(0x101)][_0x3a16b1(0x125)](this)}></ox-grist>
|
|
9
|
+
</div>
|
|
10
|
+
<div field >
|
|
11
|
+
<h2>
|
|
12
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3a16b1(0xee)](_0x3a16b1(0x126))}
|
|
13
|
+
</h2>
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this['columnEmphasizedConfig']} .mode=${_0x3a16b1(0x119)} auto-fetch
|
|
15
|
+
.fetchHandler=${this[_0x3a16b1(0x106)]['bind'](this)}></ox-grist>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
`;}async['fetchRowEmphasized'](){const _0x156a49=a0_0x4d0bf7;return{'records':this[_0x156a49(0xfd)]['rowEmphasizedData'],'total':0x0};}async[a0_0x4d0bf7(0x106)](){const _0x59bc66=a0_0x4d0bf7;return{'records':this['viewEmphasizedData'][_0x59bc66(0xf1)],'total':0x0};}};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x126b22=a0_0x257d;(function(_0x8b9c1f,_0x11a00c){const _0xe7f15a=a0_0x257d,_0x11430f=_0x8b9c1f();while(!![]){try{const _0x2d3c5a=parseInt(_0xe7f15a(0x1b7))/0x1+-parseInt(_0xe7f15a(0x1b8))/0x2+parseInt(_0xe7f15a(0x1a8))/0x3+-parseInt(_0xe7f15a(0x1ab))/0x4+parseInt(_0xe7f15a(0x1a7))/0x5*(parseInt(_0xe7f15a(0x1b2))/0x6)+-parseInt(_0xe7f15a(0x1b9))/0x7*(-parseInt(_0xe7f15a(0x1c1))/0x8)+-parseInt(_0xe7f15a(0x1be))/0x9*(parseInt(_0xe7f15a(0x1bd))/0xa);if(_0x2d3c5a===_0x11a00c)break;else _0x11430f['push'](_0x11430f['shift']());}catch(_0x2b775e){_0x11430f['push'](_0x11430f['shift']());}}}(a0_0x368c,0xf2180));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x368c(){const _0x167b70=['3452256rhmPSs','title','getMenuConfigTabValues','5628228lRgWFd','viewMenuData','renderMenuConfigTab','help_doc','setMenuConfigTabValues','help','tTitle','246CDTnXM','desc','target','setMenuConfigTabDefaultValue','name','130918rzRzlp','2591794DhFOBy','7Kkxoni','menu_title','getElementById','value','2230bqokwV','43623UGGIKe','menuTitleChange','display','15710928bhpGpV','getElementValueById','tLabel','186575tVtkeE'];a0_0x368c=function(){return _0x167b70;};return a0_0x368c();}function a0_0x257d(_0x333f28,_0x56c424){const _0x368ce5=a0_0x368c();return a0_0x257d=function(_0x257d2c,_0x1ba819){_0x257d2c=_0x257d2c-0x1a6;let _0x1a52b5=_0x368ce5[_0x257d2c];return _0x1a52b5;},a0_0x257d(_0x333f28,_0x56c424);}export const MenuConfigTabMixin=_0x10a571=>class extends _0x10a571{[a0_0x126b22(0x1af)](_0x49a45d){const _0x4ffc44=a0_0x126b22;if(_0x49a45d){var {title:_0x381de5='',name:_0x57946e='',desc:_0x2af319='',help:_0x2b7a3f=''}=_0x49a45d||{};this[_0x4ffc44(0x1ac)]={'title':_0x381de5,'name':_0x57946e,'desc':_0x2af319,'help_doc':_0x2b7a3f},this['getElementById']('title')['value']=_0x381de5,this[_0x4ffc44(0x1bb)](_0x4ffc44(0x1b6))[_0x4ffc44(0x1bc)]=_0x57946e,this[_0x4ffc44(0x1bb)]('desc')[_0x4ffc44(0x1bc)]=_0x2af319,this[_0x4ffc44(0x1bb)](_0x4ffc44(0x1ae))[_0x4ffc44(0x1bc)]=_0x2b7a3f;}else this['setMenuConfigTabDefaultValue']();}[a0_0x126b22(0x1aa)](){const _0x6dcba=a0_0x126b22;let _0x6acfb2={'menu':{}},_0x750a6b=this[_0x6dcba(0x1c2)]('title'),_0x5d087f=this[_0x6dcba(0x1c2)]('name'),_0x12a2c5=this[_0x6dcba(0x1c2)](_0x6dcba(0x1b3)),_0x2468dd=this[_0x6dcba(0x1c2)](_0x6dcba(0x1ae));return _0x750a6b&&(_0x6acfb2['menu'][_0x6dcba(0x1a9)]=_0x750a6b),_0x5d087f&&(_0x6acfb2['menu']['name']=_0x5d087f),_0x12a2c5&&(_0x6acfb2['menu'][_0x6dcba(0x1b3)]=_0x12a2c5),_0x2468dd&&(_0x6acfb2['menu'][_0x6dcba(0x1b0)]=_0x2468dd),_0x6acfb2;}[a0_0x126b22(0x1b5)](){const _0x199b11=a0_0x126b22;this[_0x199b11(0x1ac)]||(this['viewMenuData']={'title':'','name':_0x199b11(0x1b6),'desc':'description','help_doc':''});}[a0_0x126b22(0x1bf)](_0x2a1e12){const _0x1e9bac=a0_0x126b22;let _0x3dc10b=this[_0x1e9bac(0x1bb)]('display');_0x3dc10b&&(_0x3dc10b[_0x1e9bac(0x1bc)]=TermsUtil[_0x1e9bac(0x1b1)](_0x2a1e12[_0x1e9bac(0x1b4)][_0x1e9bac(0x1bc)]));}[a0_0x126b22(0x1ad)](){const _0x413e31=a0_0x126b22;return this[_0x413e31(0x1b5)](),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[_0x413e31(0x1a6)](_0x413e31(0x1ba))}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this[_0x413e31(0x1ac)]['title']} @change=${_0x2d298d=>this['menuTitleChange'](_0x2d298d)}/>
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil['tLabel'](
|
|
10
|
-
<input id="display" name="display" value=${TermsUtil[
|
|
9
|
+
<label>${TermsUtil['tLabel'](_0x413e31(0x1c0))}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil[_0x413e31(0x1b1)](this[_0x413e31(0x1ac)][_0x413e31(0x1a9)])} 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[_0x413e31(0x1a6)]('menu_name_field')}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x413e31(0x1ac)][_0x413e31(0x1b6)]} />
|
|
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[_0x413e31(0x1a6)]('menu_desc_field')}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this[_0x413e31(0x1ac)][_0x413e31(0x1b3)]} />
|
|
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[_0x413e31(0x1a6)](_0x413e31(0x1ae))}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x413e31(0x1ac)][_0x413e31(0x1ae)]} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4ebb7f=a0_0x4a8f;(function(_0x33288a,_0x2c127c){const _0x1f651d=a0_0x4a8f,_0x1864ca=_0x33288a();while(!![]){try{const _0xebec50=-parseInt(_0x1f651d(0xbb))/0x1+-parseInt(_0x1f651d(0x9a))/0x2+-parseInt(_0x1f651d(0x9e))/0x3*(parseInt(_0x1f651d(0xf2))/0x4)+parseInt(_0x1f651d(0xf3))/0x5*(parseInt(_0x1f651d(0xa1))/0x6)+-parseInt(_0x1f651d(0x9d))/0x7*(-parseInt(_0x1f651d(0xd1))/0x8)+-parseInt(_0x1f651d(0xce))/0x9+parseInt(_0x1f651d(0x98))/0xa;if(_0xebec50===_0x2c127c)break;else _0x1864ca['push'](_0x1864ca['shift']());}catch(_0x4f7c80){_0x1864ca['push'](_0x1864ca['shift']());}}}(a0_0x5155,0x653a8));function a0_0x5155(){const _0x3d6190=['currentTabKey','tTitle','19047090neAeDV','style','956464IDHnur','clear','tButton','42RxxyWX','9FnhFiH','errors','sort','27234SqzWPm','enc','hidden','menu_config','display:flex','querySelector','initData','context','toLowerCase','radio','parse','ConfigTabConfig','grid-','dispatchEvent','setTabData','pageUpdated','thumbnail_field','data','detail_field','refresh','params','set','get','updateMultipleMenu','sortRecordByField','pageInitialized','791978rGRvXV','dataStorage','filter','back',':checked','template','length','tabData','records','form','notify','shadowRoot','studioPermission','ConfigTab','keys','grid_config','desc','button','getElementById','3113505wQxkIr','select','filters','1056488IwWwhd','error.invalid\x20license\x20key','stringify','search','forEach','meta-generator-page','slice','grid','details','selectedIndex','properties','query','list','tagName','render','column','metaTemplate','fields','define','save','graphql','value','includes','map','error','sorters','option','\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','ox-input-code','graphql_config','options','lifecycle','column_config','912592tonZWr','20cyeoxy','sort_desc','menuName','etc_config','gridEmphasized','menuId','convertFirstCharUpperCase','dirtyData','active','rep_field','remove','rank','getState','menu','bind','updateMultiple','type','dec','sort_rank','sortRecordByRank','styles','icon','tab_config','name','form_config','deleteRow','push','backToMenu','getElementValueById','ConfigTabValues','tLabel','getConfigTab','tMenu'];a0_0x5155=function(){return _0x3d6190;};return a0_0x5155();}import a0_0x355a48 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';function a0_0x4a8f(_0x1a214a,_0x3a4dfc){const _0x5155f0=a0_0x5155();return a0_0x4a8f=function(_0x4a8fa2,_0x3d1ab1){_0x4a8fa2=_0x4a8fa2-0x86;let _0x48ce2f=_0x5155f0[_0x4a8fa2];return _0x48ce2f;},a0_0x4a8f(_0x1a214a,_0x3a4dfc);}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';class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x4ebb7f(0x89)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -141,24 +141,24 @@ const a0_0x5e4951=a0_0x25e8;(function(_0x17b951,_0x4a7959){const _0x310bf6=a0_0x
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
`];}static get[
|
|
144
|
+
`];}static get[a0_0x4ebb7f(0xdb)](){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_0x4ebb7f(0xa8)](){const _0x3da3bb=a0_0x4ebb7f;return{'title':TermsUtil[_0x3da3bb(0x97)]('meta_generator'),'actions':[{'title':TermsUtil[_0x3da3bb(0x9c)](_0x3da3bb(0xe4)),'action':this[_0x3da3bb(0xe4)][_0x3da3bb(0x101)](this),...CommonButtonStyles['save']},{'title':TermsUtil['tButton'](_0x3da3bb(0xbe)),'action':this[_0x3da3bb(0x90)][_0x3da3bb(0x101)](this),...CommonButtonStyles[_0x3da3bb(0xbe)]},{'title':TermsUtil[_0x3da3bb(0x9c)](_0x3da3bb(0xb4)),'action':this[_0x3da3bb(0xb4)][_0x3da3bb(0x101)](this),...CommonButtonStyles[_0x3da3bb(0xb4)]}]};}[a0_0x4ebb7f(0x8e)](_0x4f12a0,_0x597c95){const _0x5b91c1=a0_0x4ebb7f;let _0x12da80=_0x4f12a0['dirtyData'];_0x12da80[_0x5b91c1(0xc3)]=_0x12da80['records']['filter'](_0x56622f=>_0x56622f['id']!=_0x597c95['id']),_0x4f12a0[_0x5b91c1(0xb2)]=_0x12da80;}async[a0_0x4ebb7f(0xe4)](){const _0x3592d2=a0_0x4ebb7f;if(0x0==store[_0x3592d2(0xff)]()['operatoTools'][_0x3592d2(0xc7)])return void document[_0x3592d2(0xae)](new CustomEvent(_0x3592d2(0xc5),{'detail':{'level':_0x3592d2(0xe9),'message':i18next['t'](_0x3592d2(0xd2))}}));if((await client[_0x3592d2(0xdc)]({'query':a0_0x355a48`
|
|
145
145
|
query ($id: String!) {
|
|
146
146
|
studioTemplateIsOverLimit(id: $id)
|
|
147
147
|
}
|
|
148
|
-
`,'variables':{'id':this[
|
|
149
|
-
<h1>${this[
|
|
148
|
+
`,'variables':{'id':this[_0x3592d2(0xf8)]}}))[_0x3592d2(0x9f)])return;let _0x35d7b3={},_0x604408={};Object[_0x3592d2(0xc9)](this[_0x3592d2(0xc2)])['forEach'](_0x53a17a=>{const _0x50d558=_0x3592d2;let _0xf7ef13=this[_0x50d558(0xf9)](_0x53a17a);_0x35d7b3[_0x53a17a]=this[_0x50d558(0xb7)+_0xf7ef13+'ConfigTabValues'](),_0x604408=merge(_0x604408,_0x35d7b3[_0x53a17a]);}),_0x604408=JSON[_0x3592d2(0xd3)](_0x604408),_0x604408=MetaCrypto[_0x3592d2(0xa2)](_0x604408),await MetaApi[_0x3592d2(0x102)](_0x3592d2(0xb8),[{'id':this[_0x3592d2(0xf8)],'template':_0x604408,'cuFlag':'M'}])&&await this[_0x3592d2(0xa7)]();}[a0_0x4ebb7f(0x9b)](){const _0x66a714=a0_0x4ebb7f;this[_0x66a714(0xaf)](),this[_0x66a714(0xbc)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x66a714(0xc9)](this[_0x66a714(0xc2)])[_0x66a714(0xd5)](_0x5ee210=>{const _0x9e95e9=_0x66a714;let _0x301257=this[_0x9e95e9(0xf9)](_0x5ee210);if(this[_0x9e95e9(0xb6)+_0x301257+'ConfigTabValues'])return this['set'+_0x301257+_0x9e95e9(0x92)](this['dataStorage'][_0x5ee210]);});}async[a0_0x4ebb7f(0xb4)](){const _0x155036=a0_0x4ebb7f;this['clear'](),await this[_0x155036(0xa7)]();}[a0_0x4ebb7f(0x90)](){history['back']();}async['initData'](){const _0x4d1297=a0_0x4ebb7f;var {menuId:_0x4986fc=''}=this[_0x4d1297(0xf0)]?.[_0x4d1297(0xb5)]?this[_0x4d1297(0xf0)][_0x4d1297(0xb5)]:{};if(this['menuId']=_0x4986fc,!_0x4986fc||''==_0x4986fc)return void this['clear']();let _0x49f730=await MetaApi['findOne'](_0x4d1297(0x100),_0x4986fc,_0x4d1297(0xec));if(_0x49f730){try{JSON[_0x4d1297(0xab)](MetaCrypto[_0x4d1297(0x86)](_0x49f730['template']));}catch(_0x5877ea){return;}this[_0x4d1297(0xf5)]=TermsUtil[_0x4d1297(0x95)](_0x49f730['name']),this[_0x4d1297(0xe1)]=_0x49f730[_0x4d1297(0xc0)]?JSON['parse'](MetaCrypto[_0x4d1297(0x86)](_0x49f730[_0x4d1297(0xc0)])):{};var {menu:_0x1665c2={},gql:_0x553931={},button:_0x2ba9ee=[],grid_column:_0x20b965=[],grid:_0x5492aa={},search:_0x1f3e18=[],form:_0x3c290e=[],tab:_0x681516=[],etc:_0x1c202e={},gridEmphasized:_0x359332=[]}=this['metaTemplate']?this['metaTemplate']:{};this[_0x4d1297(0xaf)](),this['dataStorage']={},this[_0x4d1297(0xbc)][_0x4d1297(0x100)]=_0x1665c2,this[_0x4d1297(0xbc)][_0x4d1297(0xe5)]=_0x553931,this[_0x4d1297(0xbc)][_0x4d1297(0xd8)]=_0x5492aa,this[_0x4d1297(0xbc)][_0x4d1297(0xc4)]=_0x3c290e,this[_0x4d1297(0xbc)]['tab']=_0x681516,this[_0x4d1297(0xbc)]['etc']=_0x1c202e,this[_0x4d1297(0xbc)][_0x4d1297(0xf7)]=_0x359332,(_0x5492aa[_0x4d1297(0xeb)]?.[_0x4d1297(0xea)]||[])[_0x4d1297(0xd5)]((_0x505038,_0x309a31)=>{const _0x2ecddb=_0x4d1297;_0x505038[_0x2ecddb(0xfe)]=0xa*(_0x309a31+0x1);}),this[_0x4d1297(0xbc)][_0x4d1297(0xe0)]=_0x20b965[_0x4d1297(0xe8)](_0x6180a8=>{const _0x39cdfb=_0x4d1297;let _0x31476b=(_0x5492aa['option']?.[_0x39cdfb(0xea)]||[])[_0x39cdfb(0xbd)](_0x8385b3=>_0x8385b3[_0x39cdfb(0x8c)]==_0x6180a8[_0x39cdfb(0x8c)]);return _0x31476b&&_0x31476b[_0x39cdfb(0xc1)]>0x0?(_0x6180a8['sort_rank']=_0x31476b[0x0][_0x39cdfb(0xfe)],_0x6180a8[_0x39cdfb(0xf4)]=!!_0x31476b[0x0][_0x39cdfb(0xcb)]&&_0x31476b[0x0][_0x39cdfb(0xcb)]):_0x6180a8[_0x39cdfb(0x87)]=0x0,_0x6180a8[_0x39cdfb(0xfc)]=(_0x5492aa[_0x39cdfb(0xdd)]?.[_0x39cdfb(0xe2)]||[])[_0x39cdfb(0xe7)](_0x6180a8['name']),_0x6180a8[_0x39cdfb(0xb3)]=(_0x5492aa[_0x39cdfb(0xdd)]?.[_0x39cdfb(0xd9)]||[])[_0x39cdfb(0xe7)](_0x6180a8[_0x39cdfb(0x8c)]),_0x6180a8[_0x39cdfb(0xb1)]=_0x5492aa[_0x39cdfb(0xdd)]?.['thumbnail']==_0x6180a8[_0x39cdfb(0x8c)],_0x6180a8;}),_0x1f3e18['push'](...(_0x553931['query']?.[_0x4d1297(0xd0)]||[])['map'](_0x565e4b=>(_0x565e4b[_0x4d1297(0xa3)]=!0x0,_0x565e4b))),this[_0x4d1297(0xbc)][_0x4d1297(0xd4)]=_0x1f3e18,_0x2ba9ee[_0x4d1297(0x8f)](...(_0x5492aa['button']||[])['map'](_0x402a21=>(_0x402a21[_0x4d1297(0x103)]=_0x4d1297(0xad)+_0x402a21['type'],_0x402a21[_0x4d1297(0x99)]=_0x402a21[_0x4d1297(0x8a)],_0x402a21))),this[_0x4d1297(0xbc)][_0x4d1297(0xcc)]=_0x2ba9ee,Object[_0x4d1297(0xc9)](this[_0x4d1297(0xc2)])[_0x4d1297(0xd5)](_0x1ba74e=>{const _0x44ff20=_0x4d1297;let _0x4a32e9=this['convertFirstCharUpperCase'](_0x1ba74e);if(this[_0x44ff20(0xb6)+_0x4a32e9+_0x44ff20(0x92)])return this[_0x44ff20(0xb6)+_0x4a32e9+_0x44ff20(0x92)](this['dataStorage'][_0x1ba74e]);});}}async[a0_0x4ebb7f(0xba)](){const _0x5a26cc=a0_0x4ebb7f;this['setTabData']();let _0x424c0d=Object['keys'](this[_0x5a26cc(0xc2)]);for(var _0x4e6943=0x0;_0x4e6943<_0x424c0d[_0x5a26cc(0xc1)];_0x4e6943++){let _0x4ed9a2=this[_0x5a26cc(0xf9)](_0x424c0d[_0x4e6943]);this[_0x5a26cc(0xb6)+_0x4ed9a2+_0x5a26cc(0xac)]&&await this['set'+_0x4ed9a2+_0x5a26cc(0xac)]();}}async[a0_0x4ebb7f(0xb0)](_0x38fd9a,_0xe08bc3,_0x23e0f1){const _0x148742=a0_0x4ebb7f;!0x0===this[_0x148742(0xfb)]?(this[_0x148742(0xaf)](),await this[_0x148742(0xa7)](),this['setTabData']()):(this['clear'](),this[_0x148742(0xfd)]());}['setTabData'](){const _0x2f1f8e=a0_0x4ebb7f;this[_0x2f1f8e(0xc2)]||(this[_0x2f1f8e(0xc2)]={'menu':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0xa4)),'graphql':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0xee)),'grid':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0xca)),'column':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0xf1)),'gridEmphasized':TermsUtil[_0x2f1f8e(0x93)]('grid_emphasized_config'),'button':TermsUtil[_0x2f1f8e(0x93)]('button_config'),'search':TermsUtil[_0x2f1f8e(0x93)]('search_config'),'form':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0x8d)),'tab':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0x8b)),'etc':TermsUtil[_0x2f1f8e(0x93)](_0x2f1f8e(0xf6))});}['render'](){const _0x438cf1=a0_0x4ebb7f;this[_0x438cf1(0x96)]||(this[_0x438cf1(0x96)]='menu'),this[_0x438cf1(0xaf)]();let _0x139ac3=Object[_0x438cf1(0xc9)](this[_0x438cf1(0xc2)]);return this[_0x438cf1(0xc2)][this[_0x438cf1(0x96)]]?this[_0x438cf1(0x96)]:_0x139ac3[0x0],html`
|
|
149
|
+
<h1>${this[_0x438cf1(0xf5)]}</h1>
|
|
150
150
|
<div class="tabs">
|
|
151
|
-
${
|
|
152
|
-
<div class="tab" ?activate="${
|
|
153
|
-
<span>${
|
|
151
|
+
${_0x139ac3[_0x438cf1(0xe8)](_0x45d9c4=>{const _0x9f0073=_0x438cf1;let _0x583f69=this[_0x9f0073(0xc2)][_0x45d9c4];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x45d9c4===this[_0x9f0073(0x96)]}" @click="${()=>this[_0x9f0073(0x96)]=_0x45d9c4}">
|
|
153
|
+
<span>${_0x583f69}</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
|
+
${_0x139ac3['map'](_0x2ec5f7=>{const _0x346f27=_0x438cf1;let _0x5d6b77='display:none';return _0x2ec5f7==this[_0x346f27(0x96)]&&(_0x5d6b77=_0x346f27(0xa5)),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x5d6b77}">
|
|
160
|
+
${this[_0x346f27(0x94)](_0x2ec5f7)}
|
|
161
161
|
</div>
|
|
162
162
|
`;})}
|
|
163
163
|
</div>
|
|
164
|
-
`;}[
|
|
164
|
+
`;}[a0_0x4ebb7f(0x94)](_0x3e66e4){const _0x2199c7=a0_0x4ebb7f;let _0x3f39b3=this['convertFirstCharUpperCase'](_0x3e66e4);return this[_0x2199c7(0xdf)+_0x3f39b3+_0x2199c7(0xc8)]?this['render'+_0x3f39b3+_0x2199c7(0xc8)]():html``;}[a0_0x4ebb7f(0xf9)](_0x3013ff){const _0x3e9386=a0_0x4ebb7f;return _0x3013ff['charAt'](0x0)['toUpperCase']()+_0x3013ff[_0x3e9386(0xd7)](0x1);}[a0_0x4ebb7f(0xcd)](_0xa80fe5){const _0x3c28f9=a0_0x4ebb7f;return this[_0x3c28f9(0xc6)]['querySelector']('#'+_0xa80fe5);}[a0_0x4ebb7f(0x91)](_0x535db8){const _0x9df0=a0_0x4ebb7f;let _0x56dc4b=this[_0x9df0(0xc6)][_0x9df0(0xa6)]('#'+_0x535db8);if(!_0x56dc4b)return;let _0x2f1a66='';if(_0x9df0(0xcf)==_0x56dc4b['tagName'][_0x9df0(0xa9)]()){if(!_0x56dc4b[_0x9df0(0xef)]||0x0==_0x56dc4b['options']['length'])return;_0x2f1a66=_0x56dc4b[_0x9df0(0xef)][_0x56dc4b[_0x9df0(0xda)]][_0x9df0(0xe6)];}else{if('ox-grist'==_0x56dc4b[_0x9df0(0xde)][_0x9df0(0xa9)]()){if(!_0x56dc4b['dirtyData'])return;if(!_0x56dc4b[_0x9df0(0xfa)][_0x9df0(0xc3)])return;if(0x0==_0x56dc4b[_0x9df0(0xfa)]['records'][_0x9df0(0xc1)])return;return _0x56dc4b[_0x9df0(0xfa)][_0x9df0(0xc3)];}if(_0x9df0(0xed)==_0x56dc4b[_0x9df0(0xde)][_0x9df0(0xa9)]())return _0x56dc4b['value'];if(_0x9df0(0xaa)==_0x56dc4b[_0x9df0(0x103)][_0x9df0(0xa9)]()){let _0x16c584=this['shadowRoot']['querySelector']('#'+_0x535db8+_0x9df0(0xbf));if(!_0x16c584)return;return _0x16c584[_0x9df0(0xe6)];}_0x2f1a66=_0x56dc4b[_0x9df0(0xe6)];}return _0x2f1a66&&''!=_0x2f1a66?_0x2f1a66:void 0x0;}[a0_0x4ebb7f(0x88)](_0x569ec4){const _0x29dd6a=a0_0x4ebb7f;return _0x569ec4?this['sortRecordByField'](_0x569ec4,_0x29dd6a(0xfe)):_0x569ec4;}[a0_0x4ebb7f(0xb9)](_0x14bb10,_0x9c6446){const _0x975e45=a0_0x4ebb7f;return _0x14bb10[_0x975e45(0xa0)]((_0x259d8f,_0x362c2b)=>_0x259d8f[_0x9c6446]-_0x362c2b[_0x9c6446]),_0x14bb10;}}customElements[a0_0x4ebb7f(0xe3)](a0_0x4ebb7f(0xd6),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_0x1fe8a7=a0_0x18bc;function a0_0x4416(){const _0x2d3846=['renderSearchConfigTab','forEach','FILTER_OPERATORS','assign','672272hzjoUT','search_operator','getElementValueById','value','26KBeYmq','rank','gutter','getCodeSelectorData','378792OYDPzy','35634rCCHws','default_value','5MhTySS','getSearchConfigTabValues','21xrBJAB','sortRecordByRank','operator','name','querySelector','24100UOUrMf','tLabel','hidden','1992784XjlrHL','search','push','searchTabGridConfig','getGristSelectableConfig','152779GxQPqw','left','bind','fetchSearchTabHandler','539YCVTRh','2994cAzyLf','viewSearchData','select','searchTabGrist','right','search-tab-grid','string','shadowRoot'];a0_0x4416=function(){return _0x2d3846;};return a0_0x4416();}(function(_0x2e4933,_0x29a95c){const _0x233d5e=a0_0x18bc,_0x4029f3=_0x2e4933();while(!![]){try{const _0x6c1332=-parseInt(_0x233d5e(0x1b0))/0x1+-parseInt(_0x233d5e(0x1c5))/0x2*(-parseInt(_0x233d5e(0x1b5))/0x3)+parseInt(_0x233d5e(0x1c1))/0x4*(parseInt(_0x233d5e(0x1cc))/0x5)+-parseInt(_0x233d5e(0x1ca))/0x6*(-parseInt(_0x233d5e(0x1ce))/0x7)+parseInt(_0x233d5e(0x1d6))/0x8+-parseInt(_0x233d5e(0x1c9))/0x9+parseInt(_0x233d5e(0x1d3))/0xa*(-parseInt(_0x233d5e(0x1b4))/0xb);if(_0x6c1332===_0x29a95c)break;else _0x4029f3['push'](_0x4029f3['shift']());}catch(_0x28e292){_0x4029f3['push'](_0x4029f3['shift']());}}}(a0_0x4416,0x20f58));import{html}from'lit-element';function a0_0x18bc(_0x451b4e,_0x5edde0){const _0x4416c4=a0_0x4416();return a0_0x18bc=function(_0x18bc71,_0x241adc){_0x18bc71=_0x18bc71-0x1ac;let _0x57c1bb=_0x4416c4[_0x18bc71];return _0x57c1bb;},a0_0x18bc(_0x451b4e,_0x5edde0);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const SearchConfigTabMixin=_0x16f5ea=>class extends _0x16f5ea{['setSearchConfigTabValues'](_0x2b9cf3){const _0x5db4b5=a0_0x18bc;let _0x379d75=_0x2b9cf3?.['map']((_0x20b24e,_0x591ff9)=>{const _0x14c358=a0_0x18bc;let _0x1ee89e=_0x591ff9+0x1,_0x33818b={};return'object'==typeof _0x20b24e?Object[_0x14c358(0x1c0)](_0x33818b,_0x20b24e):(_0x33818b[_0x14c358(0x1d1)]=_0x20b24e,_0x33818b[_0x14c358(0x1d0)]='filter'),_0x33818b[_0x14c358(0x1c6)]=0xa*_0x1ee89e,_0x33818b['id']=_0x1ee89e,_0x33818b;});this[_0x5db4b5(0x1b6)]=_0x379d75||[],this['searchTabGrist']?.['fetch']();}[a0_0x1fe8a7(0x1cd)](){const _0x183086=a0_0x1fe8a7;let _0x39c709={'search':[],'gql':{'query':{'filters':[]}}},_0x2555eb=this[_0x183086(0x1c3)](_0x183086(0x1ba));return this[_0x183086(0x1cf)](_0x2555eb)?.[_0x183086(0x1be)](_0x4a9b50=>{const _0x3ed80e=_0x183086;var {name:_0x2e4d2a,operator:_0x1c2f57='eq',hidden:_0x2d109b=!0x1,value:_0x3488df}=_0x4a9b50;if(_0x2e4d2a){if('filter'==_0x1c2f57)_0x39c709[_0x3ed80e(0x1ac)][_0x3ed80e(0x1ad)](_0x2e4d2a);else{let _0x102f77={'name':_0x2e4d2a,'operator':_0x1c2f57};0x1==_0x2d109b?(_0x102f77['value']=_0x3488df,_0x39c709['gql']['query']['filters'][_0x3ed80e(0x1ad)](_0x102f77)):(_0x102f77[_0x3ed80e(0x1c4)]=_0x3488df,_0x39c709[_0x3ed80e(0x1ac)][_0x3ed80e(0x1ad)](_0x102f77));}}}),_0x39c709;}[a0_0x1fe8a7(0x1bd)](){const _0x4e2beb=a0_0x1fe8a7;return html`
|
|
2
|
+
<ox-grist auto-fetch id="search-tab-grid" .config=${this['searchTabGridConfig']} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x4e2beb(0x1b3)][_0x4e2beb(0x1b2)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x1fe8a7(0x1b8)](){const _0x9c3883=a0_0x1fe8a7;return this[_0x9c3883(0x1bc)][_0x9c3883(0x1d2)]('#search-tab-grid');}async[a0_0x1fe8a7(0x1b3)](){const _0x5a677e=a0_0x1fe8a7;return{'total':0x0,'records':this[_0x5a677e(0x1b6)]||[]};}async['setSearchConfigTabConfig'](){const _0x500e76=a0_0x1fe8a7;let _0x2e7835=await MetaApi[_0x500e76(0x1c8)](_0x500e76(0x1bf));this[_0x500e76(0x1ae)]={'rows':MetaApi[_0x500e76(0x1af)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x500e76(0x1c6),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x500e76(0x1c7),'gutterName':'button','icon':'delete','handlers':{'click':(_0x5c063e,_0x843d51,_0x388439,_0x213217,_0x4f8eba)=>{const _0xf511ad=_0x500e76;_0x213217['id']&&this['deleteRow'](this[_0xf511ad(0x1b8)],_0x213217);}}},{'type':'string','name':'id','hidden':!0x0},{'type':'integer','name':_0x500e76(0x1c6),'header':TermsUtil[_0x500e76(0x1d4)](_0x500e76(0x1c6)),'sortable':!0x0,'width':0x41,'record':{'align':_0x500e76(0x1b9),'editable':!0x0,'mandatory':!0x0}},{'type':_0x500e76(0x1bb),'name':'name','header':TermsUtil[_0x500e76(0x1d4)](_0x500e76(0x1d1)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x500e76(0x1b1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x500e76(0x1b7),'name':_0x500e76(0x1d0),'header':TermsUtil['tLabel'](_0x500e76(0x1c2)),'sortable':!0x1,'width':0x64,'record':{'align':_0x500e76(0x1b1),'editable':!0x0,'mandatory':!0x1,'options':_0x2e7835}},{'type':'boolean','name':'hidden','header':TermsUtil[_0x500e76(0x1d4)](_0x500e76(0x1d5)),'sortable':!0x1,'width':0x41,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':_0x500e76(0x1bb),'name':_0x500e76(0x1c4),'header':TermsUtil[_0x500e76(0x1d4)](_0x500e76(0x1cb)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x500e76(0x1b1),'editable':!0x0,'mandatory':!0x1}}]};}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="tab-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this['fetchTabTabHandler'][
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
function a0_0x122a(){const _0x5d09e9=['params','center','619055JxptOR','9816RyJcUR','getElementValueById','deleteRow','page_location','left','setTabConfigTabValues','delete','tag','4lIvxyq','fetchTabTabHandler','renderTabConfigTab','push','button','tab-tab-grid','135MhrTPU','routing','forEach','2918416ejpepG','955790yAePQM','getTabConfigTabValues','parent_field','bind','rank','location','2oMbgUX','icon','tagname','getGristGuttersConfig','2116329XpVYKg','right','959SRoMSf','name','tLabel','#tab-tab-grid','viewTabData','menu','string','1725083xcMbhV','getGristSelectableConfig','tabTabGridConfig','tabTabGrist','40748158imJYoF','param_field','display'];a0_0x122a=function(){return _0x5d09e9;};return a0_0x122a();}function a0_0x37aa(_0x15b803,_0x5b099a){const _0x122af9=a0_0x122a();return a0_0x37aa=function(_0x37aaf7,_0x53ce37){_0x37aaf7=_0x37aaf7-0xe5;let _0x3b9f12=_0x122af9[_0x37aaf7];return _0x3b9f12;},a0_0x37aa(_0x15b803,_0x5b099a);}const a0_0x395bf8=a0_0x37aa;(function(_0x511b48,_0x40fb7f){const _0x406a51=a0_0x37aa,_0x306545=_0x511b48();while(!![]){try{const _0x42215a=parseInt(_0x406a51(0x110))/0x1*(parseInt(_0x406a51(0x103))/0x2)+parseInt(_0x406a51(0x107))/0x3+parseInt(_0x406a51(0xf3))/0x4*(parseInt(_0x406a51(0xea))/0x5)+-parseInt(_0x406a51(0xeb))/0x6*(-parseInt(_0x406a51(0x109))/0x7)+parseInt(_0x406a51(0xfc))/0x8+-parseInt(_0x406a51(0xf9))/0x9*(-parseInt(_0x406a51(0xfd))/0xa)+-parseInt(_0x406a51(0xe5))/0xb;if(_0x42215a===_0x40fb7f)break;else _0x306545['push'](_0x306545['shift']());}catch(_0x50399e){_0x306545['push'](_0x306545['shift']());}}}(a0_0x122a,0xd5082));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';export const TabConfigTabMixin=_0x157bd8=>class extends _0x157bd8{[a0_0x395bf8(0xf0)](_0x6417){const _0x5ac379=a0_0x395bf8;let _0x404092=_0x6417?.['map']((_0x4c5e56,_0x15cca0)=>{const _0x5e085f=a0_0x37aa;let _0x560e73=_0x15cca0+0x1,_0x2f6210={};return _0x2f6210[_0x5e085f(0x101)]=0xa*_0x560e73,_0x2f6210['id']=_0x560e73,_0x2f6210[_0x5e085f(0x10a)]=_0x4c5e56['name'],_0x2f6210[_0x5e085f(0xe7)]=_0x4c5e56[_0x5e085f(0xe7)],_0x2f6210['tagname']=_0x4c5e56['tagname'],_0x2f6210[_0x5e085f(0x104)]=_0x4c5e56['icon'],_0x2f6210[_0x5e085f(0x102)]=_0x4c5e56[_0x5e085f(0x102)],_0x2f6210['parent_field']=_0x4c5e56[_0x5e085f(0xff)],_0x2f6210[_0x5e085f(0xe6)]=_0x4c5e56[_0x5e085f(0xe6)],_0x2f6210[_0x5e085f(0x10e)]=_0x4c5e56[_0x5e085f(0x10e)],_0x2f6210;});this[_0x5ac379(0x10d)]=_0x404092||[],this[_0x5ac379(0x113)]?.['fetch']();}[a0_0x395bf8(0xfe)](){const _0x3b5c10=a0_0x395bf8;let _0x3c500e={'tab':[]},_0x212377=this[_0x3b5c10(0xec)](_0x3b5c10(0xf8));return this['sortRecordByRank'](_0x212377)?.[_0x3b5c10(0xfb)](_0x3b826d=>{const _0x1aa279=_0x3b5c10;var {name:_0x332618,display:_0x5d2b9c,tagname:_0x52f6fc,location:_0x194679,parent_field:_0x1f1e3d,param_field:_0x328f42,menu:_0x498f45,icon:_0x39fcd9}=_0x3b826d;_0x332618&&_0x52f6fc&&_0x194679&&_0x498f45&&(_0x5d2b9c||(_0x5d2b9c=_0x332618),_0x1f1e3d||(_0x1f1e3d='id'),_0x328f42||(_0x328f42=_0x1aa279(0xe6)),_0x3c500e['tab'][_0x1aa279(0xf6)]({'name':_0x332618,'display':_0x5d2b9c,'tagname':_0x52f6fc,'location':_0x194679,'parent_field':_0x1f1e3d,'param_field':_0x328f42,'menu':_0x498f45,'icon':_0x39fcd9}));}),_0x3c500e;}[a0_0x395bf8(0xf5)](){const _0x50a19e=a0_0x395bf8;return html`
|
|
2
|
+
<ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x50a19e(0x112)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this['fetchTabTabHandler'][_0x50a19e(0x100)](this)}>
|
|
4
|
+
</ox-grist>`;}get['tabTabGrist'](){const _0x25be0a=a0_0x395bf8;return this['shadowRoot']['querySelector'](_0x25be0a(0x10c));}async[a0_0x395bf8(0xf4)](){return{'total':0x0,'records':this['viewTabData']||[]};}async['setTabConfigTabConfig'](){const _0x386649=a0_0x395bf8;this['tabTabGridConfig']={'rows':MetaApi[_0x386649(0x111)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x386649(0x101),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x386649(0x106)](!0x1,!0x1),{'type':'gutter','gutterName':_0x386649(0xf7),'icon':_0x386649(0xf1),'handlers':{'click':(_0x4e4414,_0x29fca8,_0x4f4018,_0x2b3a7b,_0x600da)=>{const _0x48c9fb=_0x386649;_0x2b3a7b['id']&&this[_0x48c9fb(0xed)](this[_0x48c9fb(0x113)],_0x2b3a7b);}}},{'type':'string','name':'id','hidden':!0x0},{'type':'integer','name':_0x386649(0x101),'header':TermsUtil['tLabel'](_0x386649(0x101)),'sortable':!0x0,'width':0x41,'record':{'align':_0x386649(0x108),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x386649(0x10a),'header':TermsUtil[_0x386649(0x10b)](_0x386649(0x10a)),'sortable':!0x1,'width':0x64,'record':{'align':_0x386649(0xef),'editable':!0x0,'mandatory':!0x0}},{'type':_0x386649(0x10f),'name':_0x386649(0xe7),'header':TermsUtil['tLabel'](_0x386649(0xe7)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x386649(0x104),'header':TermsUtil[_0x386649(0x10b)]('icon'),'sortable':!0x0,'width':0x41,'record':{'align':_0x386649(0xe9),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x386649(0x10e),'header':TermsUtil[_0x386649(0x10b)](_0x386649(0xfa)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x386649(0x105),'header':TermsUtil['tLabel'](_0x386649(0xf2)),'sortable':!0x1,'width':0x96,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x386649(0x102),'header':TermsUtil[_0x386649(0x10b)](_0x386649(0xee)),'sortable':!0x1,'width':0x12c,'record':{'align':_0x386649(0xef),'editable':!0x0,'mandatory':!0x0}},{'type':_0x386649(0x10f),'name':'parent_field','header':TermsUtil[_0x386649(0x10b)]('parent_id'),'sortable':!0x1,'width':0x64,'record':{'align':_0x386649(0xef),'editable':!0x0,'mandatory':!0x0}},{'type':_0x386649(0x10f),'name':_0x386649(0xe6),'header':TermsUtil[_0x386649(0x10b)](_0x386649(0xe8)),'sortable':!0x1,'width':0x64,'record':{'align':_0x386649(0xef),'editable':!0x0,'mandatory':!0x0}}]};}};
|
package/client/pages/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x338b12=a0_0x53b9;function a0_0x53b9(_0x2113e9,_0x5b00c1){var _0x1e64ba=a0_0x1e64();return a0_0x53b9=function(_0x53b974,_0x3227b1){_0x53b974=_0x53b974-0x1f0;var _0x54493c=_0x1e64ba[_0x53b974];return _0x54493c;},a0_0x53b9(_0x2113e9,_0x5b00c1);}(function(_0x1b4465,_0x4100fa){var _0x7db5c8=a0_0x53b9,_0x19bfcf=_0x1b4465();while(!![]){try{var _0x1847d5=parseInt(_0x7db5c8(0x1fd))/0x1+parseInt(_0x7db5c8(0x1f8))/0x2+parseInt(_0x7db5c8(0x1f4))/0x3+parseInt(_0x7db5c8(0x1f6))/0x4+-parseInt(_0x7db5c8(0x1f9))/0x5+parseInt(_0x7db5c8(0x1fb))/0x6+-parseInt(_0x7db5c8(0x1f2))/0x7*(parseInt(_0x7db5c8(0x1fe))/0x8);if(_0x1847d5===_0x4100fa)break;else _0x19bfcf['push'](_0x19bfcf['shift']());}catch(_0x2a5c22){_0x19bfcf['push'](_0x19bfcf['shift']());}}}(a0_0x1e64,0xc75a6));import{html,css}from'lit-element';import{connect}from'pwa-helpers/connect-mixin.js';function a0_0x1e64(){var _0x364911=['customElements','21XybPid','context','2403060qonksh','operato-tools-main','4127092rDbwmJ','render','2821990TIyIvU','4389165jvFWRZ','tool\x20start\x20msg','4468722cObHBI','define','1541818kYiSLe','10229360EzbEGO','styles','Operato\x20Tools'];a0_0x1e64=function(){return _0x364911;};return a0_0x1e64();}import{store,PageView}from'@things-factory/shell';import{TermsUtil}from'@things-factory/meta-ui';class OperatoToolsMain extends connect(store)(PageView){static get[a0_0x338b12(0x1ff)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
background-color: var(--main-section-background-color);
|
|
@@ -41,11 +41,11 @@ var a0_0x276b07=a0_0x1e67;(function(_0x220d15,_0x2d64b5){var _0x4c1acb=a0_0x1e67
|
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`];}get[
|
|
44
|
+
`];}get[a0_0x338b12(0x1f3)](){var _0x57efb5=a0_0x338b12;return{'title':_0x57efb5(0x1f0),'actions':[]};}[a0_0x338b12(0x1f7)](){var _0x2dbb6a=a0_0x338b12;return html`
|
|
45
45
|
<h2>Operato Tools</h2>
|
|
46
46
|
<p page-description>
|
|
47
|
-
${TermsUtil[
|
|
47
|
+
${TermsUtil['tText'](_0x2dbb6a(0x1fa))}
|
|
48
48
|
</p>
|
|
49
49
|
|
|
50
50
|
<img src="/assets/images/operato-tools.png" />
|
|
51
|
-
`;}}
|
|
51
|
+
`;}}window[a0_0x338b12(0x1f1)][a0_0x338b12(0x1fc)](a0_0x338b12(0x1f5),OperatoToolsMain);
|
package/client/reducers/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x4be6(){const _0x4649bb=['studioPermission','dispatch','query','8759MaAkbo','4463901pGDtSp','UPDATE_OPERATO_TOOLS_PERMISSION','state','96OBvLTk','2YlsRSw','47700ggrtAS','2743116lvewqv','9343030YofEKw','60XpUnXA','815328wKVgVs','69510tXnoZp'];a0_0x4be6=function(){return _0x4649bb;};return a0_0x4be6();}const a0_0x5a9153=a0_0x1717;function a0_0x1717(_0x4d4327,_0x5ac3ba){const _0x4be673=a0_0x4be6();return a0_0x1717=function(_0x171745,_0x421f25){_0x171745=_0x171745-0x90;let _0x2b9314=_0x4be673[_0x171745];return _0x2b9314;},a0_0x1717(_0x4d4327,_0x5ac3ba);}(function(_0x15e871,_0x5dd06c){const _0x212932=a0_0x1717,_0x54c87e=_0x15e871();while(!![]){try{const _0x31d5db=parseInt(_0x212932(0x96))/0x1*(-parseInt(_0x212932(0x9b))/0x2)+parseInt(_0x212932(0x91))/0x3+parseInt(_0x212932(0x9c))/0x4*(parseInt(_0x212932(0x90))/0x5)+parseInt(_0x212932(0x9d))/0x6+-parseInt(_0x212932(0x92))/0x7*(parseInt(_0x212932(0x9a))/0x8)+parseInt(_0x212932(0x97))/0x9+-parseInt(_0x212932(0x9e))/0xa;if(_0x31d5db===_0x5dd06c)break;else _0x54c87e['push'](_0x54c87e['shift']());}catch(_0x12430c){_0x54c87e['push'](_0x54c87e['shift']());}}}(a0_0x4be6,0x4aaa5));import a0_0x194691 from'graphql-tag';import{i18next}from'@operato/i18n';import{store}from'@operato/shell';import{client,gqlContext}from'@operato/graphql';import{UPDATE_OPERATO_TOOLS}from'../actions/main';const INITIAL_STATE={'operatoTools':'ABC','studioPermission':!0x1};export const UPDATE_OPERATO_TOOLS_PERMISSION=a0_0x5a9153(0x98);((async()=>{const _0x46576e=a0_0x5a9153;var _0x228b1f=await client[_0x46576e(0x95)]({'query':a0_0x194691`{studioPermission}`});let _0x1f38b1=!0x1;_0x228b1f['errors']||(_0x1f38b1=_0x228b1f['data'][_0x46576e(0x93)]),store[_0x46576e(0x94)]({'type':UPDATE_OPERATO_TOOLS_PERMISSION,'state':{'studioPermission':_0x1f38b1}});})());const operatoTools=(_0x28ee97=INITIAL_STATE,_0x4a27da)=>{const _0x5bd3df=a0_0x5a9153;switch(_0x4a27da['type']){case UPDATE_OPERATO_TOOLS:return{..._0x28ee97};case UPDATE_OPERATO_TOOLS_PERMISSION:return{...INITIAL_STATE,..._0x4a27da[_0x5bd3df(0x99)]};default:return _0x28ee97;}};export default operatoTools;
|