@things-factory/operato-tools 6.1.37 → 6.1.39
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 +8 -8
- 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
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0xe4e8(_0x1a6789,_0x14e611){const _0x1599cd=a0_0x1599();return a0_0xe4e8=function(_0xe4e8fd,_0x3c603d){_0xe4e8fd=_0xe4e8fd-0x1db;let _0x234359=_0x1599cd[_0xe4e8fd];return _0x234359;},a0_0xe4e8(_0x1a6789,_0x14e611);}const a0_0x4e7431=a0_0xe4e8;(function(_0xeeda,_0x458d5e){const _0x427f8f=a0_0xe4e8,_0x153759=_0xeeda();while(!![]){try{const _0x5efa08=parseInt(_0x427f8f(0x204))/0x1*(parseInt(_0x427f8f(0x1ea))/0x2)+parseInt(_0x427f8f(0x1fd))/0x3+-parseInt(_0x427f8f(0x1e1))/0x4*(-parseInt(_0x427f8f(0x1eb))/0x5)+-parseInt(_0x427f8f(0x216))/0x6+parseInt(_0x427f8f(0x1ec))/0x7+parseInt(_0x427f8f(0x1f9))/0x8+parseInt(_0x427f8f(0x218))/0x9*(-parseInt(_0x427f8f(0x1ef))/0xa);if(_0x5efa08===_0x458d5e)break;else _0x153759['push'](_0x153759['shift']());}catch(_0x11076f){_0x153759['push'](_0x153759['shift']());}}}(a0_0x1599,0xe8a60));function a0_0x1599(){const _0x3358d3=['renderGridConfigTab','1028872hftbpU','GRID_PAGE_OPTIONS','viewGridData','name','view_mode','setGridConfigTabDetaultValues','select-row-toggle','_view_use','LIST','1807186LgqweI','5LVRcxF','11329430zuhhoo','grid_pagination','desk_mode','15170rXvAbX','CARD','grid_term_unlimited','pages','option','includes','getElementValueById','description','map','grid','10908776KBahvL','unsupport','grid_use_row_check','use_row_checker','1845294gOWwhQ','gridPageOptions','grid_desk_view','mobile_mode','grid_view_use','grid_support_multi_select','grid_multi_select','2LYKupB','true','push','GRID_VIEW_MODE','grid_use_filter','grid_term_50','unlimited','tLabel','setGridConfigTabValues','toLowerCase','gridViewModes','grid_term_default','grid_term_1000','GRID','row','list_view_use','use','length','3731178AoSfSA','grid_support_view','24246pCrLLd','unuse','multiple_select','getGridConfigTabValues','use_filter_form','codeItems'];a0_0x1599=function(){return _0x3358d3;};return a0_0x1599();}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 GridConfigTabMixin=_0x32b8d7=>class extends _0x32b8d7{[a0_0x4e7431(0x20c)](_0x4526c8){const _0x5f279d=a0_0x4e7431;if(_0x4526c8){var {mobile_mode:_0x2e2677='',desk_mode:_0x4da41f='',pages:_0x3223c8=[],use_row_checker:_0x427c8e=!0x0,view_mode:_0x2b757f=[]}=_0x4526c8[_0x5f279d(0x1f3)]||{};let _0x4889af=(_0x4526c8[_0x5f279d(0x212)]||{'multiple_select':!0x1})[_0x5f279d(0x1dc)],_0x2171e3=_0x5f279d(0x20a)==_0x3223c8?_0x5f279d(0x1f1):0x0==_0x3223c8[_0x5f279d(0x215)]?'':0x14==_0x3223c8[0x0]?_0x5f279d(0x20f):'grid_term_'+_0x3223c8[0x0];this['viewGridData']={'mobile_mode':_0x2e2677,'desk_mode':_0x4da41f,'use_row_checker':_0x427c8e,'pages':_0x2171e3,'view_mode':_0x2b757f,'multiple_select':_0x4889af,'use_filter_form':_0x4526c8[_0x5f279d(0x1de)]};}else this[_0x5f279d(0x1e6)]();}[a0_0x4e7431(0x1dd)](){const _0x413cba=a0_0x4e7431;let _0x22118e={'grid':{'option':{},'row':{'click':_0x413cba(0x1e7)}}},_0x2c1e1b=this[_0x413cba(0x1f5)]('grid_row_check_use'),_0x94fb50=this[_0x413cba(0x1f5)](_0x413cba(0x203)),_0x43b749=this[_0x413cba(0x1f5)](_0x413cba(0x1ff)),_0x162050=this[_0x413cba(0x1f5)]('grid_mobile_view'),_0x3c908b=this[_0x413cba(0x1f5)](_0x413cba(0x208)),_0x1f677d=this[_0x413cba(0x1f5)](_0x413cba(0x1ed)),_0x123e14=this['getElementValueById'](_0x413cba(0x201)),_0x56ea04=this[_0x413cba(0x1f5)](_0x413cba(0x213)),_0x2f32b0=this[_0x413cba(0x1f5)]('card_view_use');return _0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1de)]=_0x413cba(0x205)==_0x3c908b,_0x22118e[_0x413cba(0x1f8)]['row'][_0x413cba(0x1dc)]='true'==_0x94fb50,_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)][_0x413cba(0x1fc)]='true'==_0x2c1e1b,_0x22118e['grid']['option'][_0x413cba(0x200)]=_0x162050,_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)][_0x413cba(0x1ee)]=_0x43b749,_0x413cba(0x20f)==_0x1f677d?_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)]['pages']=[0x14,0x1e,0x32,0x64]:_0x413cba(0x209)==_0x1f677d?_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)]['pages']=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x1f677d?_0x22118e['grid'][_0x413cba(0x1f3)][_0x413cba(0x1f2)]=[0x64,0x1f4,0x3e8,0x1388]:_0x413cba(0x210)==_0x1f677d?_0x22118e['grid'][_0x413cba(0x1f3)][_0x413cba(0x1f2)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x413cba(0x1f1)==_0x1f677d&&(_0x22118e[_0x413cba(0x1f8)]['option'][_0x413cba(0x1f2)]=_0x413cba(0x20a)),_0x22118e['grid'][_0x413cba(0x1f3)]['view_mode']=[],'true'==_0x123e14&&_0x22118e[_0x413cba(0x1f8)][_0x413cba(0x1f3)][_0x413cba(0x1e5)][_0x413cba(0x206)](_0x413cba(0x211)),_0x413cba(0x205)==_0x56ea04&&_0x22118e['grid']['option']['view_mode'][_0x413cba(0x206)](_0x413cba(0x1e9)),_0x413cba(0x205)==_0x2f32b0&&_0x22118e[_0x413cba(0x1f8)]['option'][_0x413cba(0x1e5)][_0x413cba(0x206)](_0x413cba(0x1f0)),_0x22118e;}async['setGridConfigTabConfig'](){const _0xb29327=a0_0x4e7431;let _0xd5bd83=await MetaApi[_0xb29327(0x1df)](_0xb29327(0x1e2)),_0xd39827=await MetaApi[_0xb29327(0x1df)](_0xb29327(0x207));this['gridViewModes']=_0xd39827,this[_0xb29327(0x1fe)]=_0xd5bd83;}[a0_0x4e7431(0x1e6)](){const _0x4a88eb=a0_0x4e7431;this[_0x4a88eb(0x1e3)]||(this['viewGridData']={'mobile_mode':this[_0x4a88eb(0x20e)]?this[_0x4a88eb(0x20e)][0x1]:_0x4a88eb(0x1e9),'desk_mode':this['gridViewModes']?this[_0x4a88eb(0x20e)][0x0]:_0x4a88eb(0x211),'use_row_checker':!0x0,'pages':_0x4a88eb(0x20f),'view_mode':[...this[_0x4a88eb(0x20e)]?this[_0x4a88eb(0x20e)]:[_0x4a88eb(0x211),_0x4a88eb(0x1e9),_0x4a88eb(0x1f0)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x4e7431(0x1e0)](){const _0x1f51e6=a0_0x4e7431;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[_0x1f51e6(0x20b)](_0x1f51e6(0x1fb))}
|
|
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[_0x1f51e6(0x1e3)][_0x1f51e6(0x1fc)]}>${TermsUtil[_0x1f51e6(0x20b)]('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['viewGridData'][_0x1f51e6(0x1fc)]}>${TermsUtil[_0x1f51e6(0x20b)](_0x1f51e6(0x1db))}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x202))}
|
|
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[_0x1f51e6(0x1e3)][_0x1f51e6(0x1dc)]}>${TermsUtil['tLabel']('support')}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this[
|
|
25
|
+
?checked=${!this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1dc)]}>${TermsUtil['tLabel'](_0x1f51e6(0x1fa))}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x208))}
|
|
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[_0x1f51e6(0x1e3)][_0x1f51e6(0x1de)]}>${TermsUtil[_0x1f51e6(0x20b)]('use')}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1de)]}>${TermsUtil['tLabel'](_0x1f51e6(0x1db))}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x1ff))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this[
|
|
49
|
+
${this[_0x1f51e6(0x20e)]?.['map'](_0x105dd3=>html`<option value=${_0x105dd3[_0x1f51e6(0x1e4)]} ?selected=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1ee)]==_0x105dd3['name']}>${_0x105dd3[_0x1f51e6(0x1f6)]}</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[_0x1f51e6(0x20b)]('grid_mobile_view')}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this['gridViewModes']?.[
|
|
59
|
+
${this['gridViewModes']?.[_0x1f51e6(0x1f7)](_0x3515aa=>html`<option value=${_0x3515aa['name']} ?selected=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x200)]==_0x3515aa[_0x1f51e6(0x1e4)]}>${_0x3515aa[_0x1f51e6(0x1f6)]}</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[_0x1f51e6(0x20b)](_0x1f51e6(0x217))}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0x1f51e6(0x20e)]?.[_0x1f51e6(0x1f7)](_0x564087=>html`
|
|
69
|
+
<span>${_0x564087[_0x1f51e6(0x1e4)]}
|
|
70
|
+
<input type="radio" name=${_0x564087['name'][_0x1f51e6(0x20d)]()+_0x1f51e6(0x1e8)} id=${_0x564087['name'][_0x1f51e6(0x20d)]()+'_view_use'} ?checked=${this['viewGridData'][_0x1f51e6(0x1e5)][_0x1f51e6(0x1f4)](_0x564087[_0x1f51e6(0x1e4)])} value="true">${TermsUtil['tLabel'](_0x1f51e6(0x214))}</input>
|
|
71
|
+
<input type="radio" name=${_0x564087['name'][_0x1f51e6(0x20d)]()+_0x1f51e6(0x1e8)} id=${_0x564087[_0x1f51e6(0x1e4)][_0x1f51e6(0x20d)]()+'_view_use'} ?checked=${!this[_0x1f51e6(0x1e3)]['view_mode'][_0x1f51e6(0x1f4)](_0x564087[_0x1f51e6(0x1e4)])} value="false">${TermsUtil[_0x1f51e6(0x20b)]('unuse')}</input>
|
|
72
72
|
</span>
|
|
73
73
|
`)}
|
|
74
74
|
</label>
|
|
75
75
|
</div>
|
|
76
76
|
<div field>
|
|
77
77
|
<h2>
|
|
78
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
78
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x1f51e6(0x1ed))}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this[
|
|
81
|
+
${this[_0x1f51e6(0x1fe)]?.[_0x1f51e6(0x1f7)](_0x23b606=>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=${_0x23b606[_0x1f51e6(0x1e4)]} ?checked=${this[_0x1f51e6(0x1e3)][_0x1f51e6(0x1f2)]==_0x23b606[_0x1f51e6(0x1e4)]}>${TermsUtil[_0x1f51e6(0x20b)](_0x23b606['name'])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x56f81f=a0_0x3899;(function(_0x3c3479,_0x4aa185){const _0x52dccb=a0_0x3899,_0x1692c8=_0x3c3479();while(!![]){try{const _0x40c7ba=parseInt(_0x52dccb(0x206))/0x1*(-parseInt(_0x52dccb(0x216))/0x2)+parseInt(_0x52dccb(0x229))/0x3*(parseInt(_0x52dccb(0x222))/0x4)+parseInt(_0x52dccb(0x22a))/0x5+-parseInt(_0x52dccb(0x1f9))/0x6*(parseInt(_0x52dccb(0x204))/0x7)+parseInt(_0x52dccb(0x1f1))/0x8+parseInt(_0x52dccb(0x203))/0x9*(-parseInt(_0x52dccb(0x1f5))/0xa)+-parseInt(_0x52dccb(0x213))/0xb*(-parseInt(_0x52dccb(0x21f))/0xc);if(_0x40c7ba===_0x4aa185)break;else _0x1692c8['push'](_0x1692c8['shift']());}catch(_0xe14d21){_0x1692c8['push'](_0x1692c8['shift']());}}}(a0_0x17b1,0xee02a));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x3899(_0x43f272,_0x5939f6){const _0x17b14d=a0_0x17b1();return a0_0x3899=function(_0x389959,_0x28ef4c){_0x389959=_0x389959-0x1f0;let _0x398acd=_0x17b14d[_0x389959];return _0x398acd;},a0_0x3899(_0x43f272,_0x5939f6);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridEmphasizedConfigTabMixin=_0x595663=>class extends _0x595663{[a0_0x56f81f(0x209)](_0xceced3){const _0x10eaa=a0_0x56f81f;if(_0xceced3){this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x1ea4fd=0x1;this[_0x10eaa(0x207)][_0x10eaa(0x1f7)]=(_0xceced3[_0x10eaa(0x1fb)]||[])[_0x10eaa(0x211)](_0xfbca1f=>({'id':_0x1ea4fd,'rank':_0x1ea4fd++,'backgroundColor':_0xfbca1f[_0x10eaa(0x1f6)]||'','fontColor':_0xfbca1f['fontColor']||'','logic':_0xfbca1f[_0x10eaa(0x20a)]||''})),_0x1ea4fd=0x1;let _0x209e52=_0xceced3[_0x10eaa(0x226)]||[];Object[_0x10eaa(0x200)](_0x209e52)[_0x10eaa(0x208)](_0xf636e1=>{let _0x1babdc=_0x209e52[_0xf636e1]||[],_0x3db163=0x1;_0x1babdc['forEach'](_0x6b1263=>{const _0x2bc40c=a0_0x3899;this[_0x2bc40c(0x207)]['columnEmphasizedData'][_0x2bc40c(0x215)]({'id':_0x1ea4fd++,'rank':_0x3db163++,'column':_0xf636e1,'backgroundColor':_0x6b1263[_0x2bc40c(0x1f6)]||'','fontColor':_0x6b1263[_0x2bc40c(0x20c)]||'','logic':_0x6b1263[_0x2bc40c(0x20a)]||''});});}),this[_0x10eaa(0x219)]?.[_0x10eaa(0x1f3)](),this['emphasizedConfigTabRowEmphasizedGrist']?.[_0x10eaa(0x1f3)]();}else this[_0x10eaa(0x202)]();}[a0_0x56f81f(0x20d)](){const _0x4a8b95=a0_0x56f81f;let _0xf66de5=this['getElementValueById'](_0x4a8b95(0x227)),_0x11d788=this[_0x4a8b95(0x1fd)](_0x4a8b95(0x221)),_0x5e2689=[];this['sortRecordByRank'](_0xf66de5)?.[_0x4a8b95(0x208)](_0x4b6a33=>{const _0x323ad9=_0x4a8b95;_0x5e2689[_0x323ad9(0x215)]({'backgroundColor':_0x4b6a33[_0x323ad9(0x1f6)],'fontColor':_0x4b6a33['fontColor'],'logic':_0x4b6a33[_0x323ad9(0x20a)]});});let _0x2050f7={};return this[_0x4a8b95(0x21b)](_0x11d788)?.[_0x4a8b95(0x208)](_0x3e6596=>{const _0x54d9b1=_0x4a8b95;_0x2050f7[_0x3e6596[_0x54d9b1(0x226)]]||(_0x2050f7[_0x3e6596[_0x54d9b1(0x226)]]=[]),_0x2050f7[_0x3e6596[_0x54d9b1(0x226)]][_0x54d9b1(0x215)]({'backgroundColor':_0x3e6596[_0x54d9b1(0x1f6)],'fontColor':_0x3e6596[_0x54d9b1(0x20c)],'logic':_0x3e6596[_0x54d9b1(0x20a)]});}),{'gridEmphasized':{'row':_0x5e2689||[],'column':_0x2050f7||{}}};}get[a0_0x56f81f(0x220)](){const _0x10d7d6=a0_0x56f81f;return this[_0x10d7d6(0x218)][_0x10d7d6(0x210)]('#row-emphasized-grist');}get[a0_0x56f81f(0x219)](){const _0x442fd1=a0_0x56f81f;return this[_0x442fd1(0x218)][_0x442fd1(0x210)](_0x442fd1(0x214));}['setGridEmphasizedConfigTabConfig'](){const _0x43c9a9=a0_0x56f81f;this[_0x43c9a9(0x21c)]={'rows':MetaApi[_0x43c9a9(0x224)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x43c9a9(0x217)](!0x1,!0x1),{'type':_0x43c9a9(0x21e),'gutterName':_0x43c9a9(0x228),'icon':_0x43c9a9(0x1f2),'handlers':{'click':(_0x227f5c,_0x11377a,_0x1fdd96,_0x43c5d9,_0xfd742f)=>{const _0x56bb2b=_0x43c9a9;_0x43c5d9['id']&&this[_0x56bb2b(0x225)](this[_0x56bb2b(0x220)],_0x43c5d9);}}},{'type':_0x43c9a9(0x205),'name':'id','hidden':!0x0},{'type':_0x43c9a9(0x21a),'name':_0x43c9a9(0x1fc),'header':TermsUtil[_0x43c9a9(0x1fa)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x1f6),'header':TermsUtil[_0x43c9a9(0x1fa)]('background-color'),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x20c),'header':TermsUtil['tLabel'](_0x43c9a9(0x1ff)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x201),'name':'logic','header':TermsUtil[_0x43c9a9(0x1fa)](_0x43c9a9(0x20a)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x43c9a9(0x1f8)]={'rows':MetaApi[_0x43c9a9(0x224)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x43c9a9(0x217)](!0x1,!0x1),{'type':_0x43c9a9(0x21e),'gutterName':_0x43c9a9(0x228),'icon':_0x43c9a9(0x1f2),'handlers':{'click':(_0x50c7ed,_0x4117d1,_0x3f274c,_0x1f29b5,_0x3a8be9)=>{const _0x4a96ef=_0x43c9a9;_0x1f29b5['id']&&this[_0x4a96ef(0x225)](this[_0x4a96ef(0x219)],_0x1f29b5);}}},{'type':_0x43c9a9(0x205),'name':'id','hidden':!0x0},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x226),'header':TermsUtil[_0x43c9a9(0x1fa)](_0x43c9a9(0x226)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x21a),'name':_0x43c9a9(0x1fc),'header':TermsUtil[_0x43c9a9(0x1fa)]('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x43c9a9(0x21d),'editable':!0x0,'mandatory':!0x0}},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x1f6),'header':TermsUtil[_0x43c9a9(0x1fa)](_0x43c9a9(0x1f0)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x205),'name':_0x43c9a9(0x20c),'header':TermsUtil['tLabel'](_0x43c9a9(0x1ff)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x43c9a9(0x201),'name':'logic','header':TermsUtil['tLabel'](_0x43c9a9(0x20a)),'record':{'align':_0x43c9a9(0x1f4),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x56f81f(0x202)](){const _0x32f5a3=a0_0x56f81f;this[_0x32f5a3(0x207)]||(this[_0x32f5a3(0x207)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x56f81f(0x223)](){const _0x14dc91=a0_0x56f81f;return this['setGridEmphasizedConfigTabDefaultValues'](),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[_0x14dc91(0x1fa)]('grid_row_emphasized_config')}
|
|
6
6
|
</h2>
|
|
7
|
-
<ox-grist id="row-emphasized-grist" .config=${this[
|
|
8
|
-
.fetchHandler=${this['fetchRowEmphasized'][
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x14dc91(0x21c)]} .mode=${_0x14dc91(0x20b)} auto-fetch
|
|
8
|
+
.fetchHandler=${this['fetchRowEmphasized'][_0x14dc91(0x1fe)](this)}></ox-grist>
|
|
9
9
|
</div>
|
|
10
10
|
<div field >
|
|
11
11
|
<h2>
|
|
12
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
12
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x14dc91(0x1fa)](_0x14dc91(0x20e))}
|
|
13
13
|
</h2>
|
|
14
|
-
<ox-grist id="column-emphasized-grist" .config=${this[
|
|
15
|
-
.fetchHandler=${this[
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this[_0x14dc91(0x1f8)]} .mode=${_0x14dc91(0x20b)} auto-fetch
|
|
15
|
+
.fetchHandler=${this[_0x14dc91(0x20f)][_0x14dc91(0x1fe)](this)}></ox-grist>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
-
`;}async[
|
|
18
|
+
`;}async[a0_0x56f81f(0x212)](){const _0x1ad0a0=a0_0x56f81f;return{'records':this['viewEmphasizedData'][_0x1ad0a0(0x1f7)],'total':0x0};}async[a0_0x56f81f(0x20f)](){return{'records':this['viewEmphasizedData']['columnEmphasizedData'],'total':0x0};}};function a0_0x17b1(){const _0x43dbcb=['font-color','keys','code-input','setGridEmphasizedConfigTabDefaultValues','2010942pVZcBG','35OiYRDF','string','10XSDMYp','viewEmphasizedData','forEach','setGridEmphasizedConfigTabValues','logic','GRID','fontColor','getGridEmphasizedConfigTabValues','grid_column_emphasized_config','fetchColumnEmphasized','querySelector','map','fetchRowEmphasized','7211853bgXFnh','#column-emphasized-grist','push','264274rwljlT','getGristGuttersConfig','shadowRoot','emphasizedConfigTabColumnEmphasizedGrist','integer','sortRecordByRank','rowEmphasizedConfig','right','gutter','12phOVLc','emphasizedConfigTabRowEmphasizedGrist','column-emphasized-grist','4dueDzm','renderGridEmphasizedConfigTab','getGristSelectableConfig','deleteRow','column','row-emphasized-grist','button','4087221DsDCqb','6735675uknWjB','background-color','10119008LaZoqv','delete','fetch','left','20ImmYGs','backgroundColor','rowEmphasizedData','columnEmphasizedConfig','2264286MUaIcQ','tLabel','row','rank','getElementValueById','bind'];a0_0x17b1=function(){return _0x43dbcb;};return a0_0x17b1();}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xf30da3=a0_0x54be;function a0_0x35bf(){const _0x4d8a01=['6117636zNVPaO','2268978CarANG','12470930iDlszx','title','15daCXra','target','11lHGyDk','getElementValueById','value','help_doc','48jAtZTr','help','getMenuConfigTabValues','menu_name_field','description','desc','6294612pxKivh','getElementById','2527624LogbKA','menuTitleChange','setMenuConfigTabDefaultValue','1RHxler','name','menu_desc_field','display','menu','viewMenuData','tLabel','1082664eKrzOE','1687293qWxrbu'];a0_0x35bf=function(){return _0x4d8a01;};return a0_0x35bf();}(function(_0x12787a,_0x19ebe5){const _0x52ed22=a0_0x54be,_0x2d1bc4=_0x12787a();while(!![]){try{const _0x46934c=-parseInt(_0x52ed22(0x1fb))/0x1*(parseInt(_0x52ed22(0x1f8))/0x2)+-parseInt(_0x52ed22(0x205))/0x3+parseInt(_0x52ed22(0x1f6))/0x4+parseInt(_0x52ed22(0x1ea))/0x5*(parseInt(_0x52ed22(0x202))/0x6)+parseInt(_0x52ed22(0x204))/0x7+parseInt(_0x52ed22(0x1f0))/0x8*(parseInt(_0x52ed22(0x203))/0x9)+-parseInt(_0x52ed22(0x206))/0xa*(parseInt(_0x52ed22(0x1ec))/0xb);if(_0x46934c===_0x19ebe5)break;else _0x2d1bc4['push'](_0x2d1bc4['shift']());}catch(_0x3a650a){_0x2d1bc4['push'](_0x2d1bc4['shift']());}}}(a0_0x35bf,0xceae4));function a0_0x54be(_0x577e29,_0x5ba796){const _0x35bff0=a0_0x35bf();return a0_0x54be=function(_0x54be74,_0x30f1ae){_0x54be74=_0x54be74-0x1ea;let _0x55527e=_0x35bff0[_0x54be74];return _0x55527e;},a0_0x54be(_0x577e29,_0x5ba796);}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x49e8e6=>class extends _0x49e8e6{['setMenuConfigTabValues'](_0x41bd0c){const _0x3b039f=a0_0x54be;if(_0x41bd0c){var {title:_0xe56c0f='',name:_0x4258dd='',desc:_0x2ebf09='',help:_0x20d146=''}=_0x41bd0c||{};this[_0x3b039f(0x200)]={'title':_0xe56c0f,'name':_0x4258dd,'desc':_0x2ebf09,'help_doc':_0x20d146},this[_0x3b039f(0x1f7)](_0x3b039f(0x207))[_0x3b039f(0x1ee)]=_0xe56c0f,this[_0x3b039f(0x1f7)]('name')[_0x3b039f(0x1ee)]=_0x4258dd,this[_0x3b039f(0x1f7)](_0x3b039f(0x1f5))[_0x3b039f(0x1ee)]=_0x2ebf09,this[_0x3b039f(0x1f7)](_0x3b039f(0x1ef))[_0x3b039f(0x1ee)]=_0x20d146;}else this[_0x3b039f(0x1fa)]();}[a0_0xf30da3(0x1f2)](){const _0x345610=a0_0xf30da3;let _0x273411={'menu':{}},_0x60dbe4=this[_0x345610(0x1ed)](_0x345610(0x207)),_0x59aac8=this[_0x345610(0x1ed)](_0x345610(0x1fc)),_0xbe16a3=this[_0x345610(0x1ed)]('desc'),_0x121763=this[_0x345610(0x1ed)](_0x345610(0x1ef));return _0x60dbe4&&(_0x273411[_0x345610(0x1ff)][_0x345610(0x207)]=_0x60dbe4),_0x59aac8&&(_0x273411[_0x345610(0x1ff)]['name']=_0x59aac8),_0xbe16a3&&(_0x273411[_0x345610(0x1ff)][_0x345610(0x1f5)]=_0xbe16a3),_0x121763&&(_0x273411[_0x345610(0x1ff)][_0x345610(0x1f1)]=_0x121763),_0x273411;}[a0_0xf30da3(0x1fa)](){const _0x384ae0=a0_0xf30da3;this['viewMenuData']||(this[_0x384ae0(0x200)]={'title':'','name':_0x384ae0(0x1fc),'desc':_0x384ae0(0x1f4),'help_doc':''});}[a0_0xf30da3(0x1f9)](_0x566052){const _0x432ef4=a0_0xf30da3;let _0x17be95=this[_0x432ef4(0x1f7)](_0x432ef4(0x1fe));_0x17be95&&(_0x17be95[_0x432ef4(0x1ee)]=TermsUtil['tTitle'](_0x566052[_0x432ef4(0x1eb)][_0x432ef4(0x1ee)]));}['renderMenuConfigTab'](){const _0x2ebf7e=a0_0xf30da3;return this[_0x2ebf7e(0x1fa)](),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[_0x2ebf7e(0x201)]('menu_title')}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x207)]} @change=${_0x4c1e61=>this['menuTitleChange'](_0x4c1e61)}/>
|
|
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['tLabel'](_0x2ebf7e(0x1fe))}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil['tTitle'](this['viewMenuData']['title'])} type="text" readonly
|
|
11
11
|
disabled />
|
|
12
12
|
</label>
|
|
13
13
|
</div>
|
|
14
14
|
<div field>
|
|
15
|
-
<label>${TermsUtil[
|
|
16
|
-
<input id="name" name="name" type="text" value=${this[
|
|
15
|
+
<label>${TermsUtil[_0x2ebf7e(0x201)](_0x2ebf7e(0x1f3))}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x1fc)]} />
|
|
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[_0x2ebf7e(0x201)](_0x2ebf7e(0x1fd))}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this['viewMenuData']['desc']} />
|
|
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[_0x2ebf7e(0x201)](_0x2ebf7e(0x1ef))}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x2ebf7e(0x200)][_0x2ebf7e(0x1ef)]} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x575f(_0x4f457f,_0x52640a){const _0xea9484=a0_0xea94();return a0_0x575f=function(_0x575ff9,_0x45c08e){_0x575ff9=_0x575ff9-0x83;let _0x3b0147=_0xea9484[_0x575ff9];return _0x3b0147;},a0_0x575f(_0x4f457f,_0x52640a);}const a0_0x19c321=a0_0x575f;(function(_0x18a2eb,_0x3b792d){const _0x52cf44=a0_0x575f,_0x930642=_0x18a2eb();while(!![]){try{const _0x1974a4=parseInt(_0x52cf44(0xb0))/0x1+parseInt(_0x52cf44(0xe9))/0x2*(parseInt(_0x52cf44(0xe2))/0x3)+-parseInt(_0x52cf44(0x91))/0x4+parseInt(_0x52cf44(0xd1))/0x5*(-parseInt(_0x52cf44(0x9e))/0x6)+-parseInt(_0x52cf44(0xa7))/0x7+parseInt(_0x52cf44(0x8a))/0x8+parseInt(_0x52cf44(0xa8))/0x9;if(_0x1974a4===_0x3b792d)break;else _0x930642['push'](_0x930642['shift']());}catch(_0x5e2772){_0x930642['push'](_0x930642['shift']());}}}(a0_0xea94,0x4ac11));import a0_0x2d96bc from'graphql-tag';function a0_0xea94(){const _0x55a523=['define','error.invalid\x20license\x20key','toLowerCase','rep_field','radio','context','grid_emphasized_config','findOne','convertFirstCharUpperCase','querySelector','sortRecordByField','3WKfoIG','clear','dataStorage','deleteRow','gridEmphasized','forEach','active','882254hsFfgc','currentTabKey','tagName','etc_config','studioPermission','tab_config','ConfigTabConfig','styles',':checked','button_config','data','lifecycle','menu','tMenu','parse','getElementValueById','push','option','render','template','get','query','grid','backToMenu','sort_rank','form','graphql_config','ConfigTabValues','map','1700288BKCbir','stringify','style','menuId','params','display:none','keys','2238092auJtFO','shadowRoot','meta-generator-page','back','fields','toUpperCase','getConfigTab','desc','filter','set','slice','updateMultiple','properties','30KuhZge','dispatchEvent','column','selectedIndex','length','icon','meta_generator','options','sort_desc','910756imeHCz','4368879aAPEmc','value','name','bind','tabData','refresh','ConfigTab','ox-grist','254260xsOpzF','enc','includes','setTabData','sort','initData','tButton','thumbnail_field','tTitle','updateMultipleMenu','select','graphql','metaTemplate','column_config','thumbnail','errors','button','error','form_config','tab','menuName','charAt','grid-','search_config','sorters','records','detail_field','type','tLabel','dirtyData','pageInitialized','notify','rank','397530HdfLXb','list','search','save','dec','menu_config'];a0_0xea94=function(){return _0x55a523;};return a0_0xea94();}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';class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x19c321(0xf0)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -141,24 +141,24 @@ const a0_0x3a86c6=a0_0x1fc4;(function(_0x1771d0,_0x4ae7ab){const _0x43558d=a0_0x
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
`];}static get[
|
|
144
|
+
`];}static get[a0_0x19c321(0x9d)](){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_0x19c321(0xdc)](){const _0x40dcb3=a0_0x19c321;return{'title':TermsUtil[_0x40dcb3(0xb8)](_0x40dcb3(0xa4)),'actions':[{'title':TermsUtil[_0x40dcb3(0xb6)](_0x40dcb3(0xd4)),'action':this[_0x40dcb3(0xd4)][_0x40dcb3(0xab)](this),...CommonButtonStyles[_0x40dcb3(0xd4)]},{'title':TermsUtil[_0x40dcb3(0xb6)](_0x40dcb3(0x94)),'action':this[_0x40dcb3(0x84)]['bind'](this),...CommonButtonStyles[_0x40dcb3(0x94)]},{'title':TermsUtil[_0x40dcb3(0xb6)]('refresh'),'action':this[_0x40dcb3(0xad)][_0x40dcb3(0xab)](this),...CommonButtonStyles[_0x40dcb3(0xad)]}]};}[a0_0x19c321(0xe5)](_0x73b2a3,_0x23430c){const _0x47d2ec=a0_0x19c321;let _0x83a98a=_0x73b2a3[_0x47d2ec(0xcd)];_0x83a98a['records']=_0x83a98a['records'][_0x47d2ec(0x99)](_0x32785a=>_0x32785a['id']!=_0x23430c['id']),_0x73b2a3[_0x47d2ec(0xf3)]=_0x83a98a;}async[a0_0x19c321(0xd4)](){const _0x304d4f=a0_0x19c321;if(0x0==store['getState']()['operatoTools'][_0x304d4f(0xed)])return void document[_0x304d4f(0x9f)](new CustomEvent(_0x304d4f(0xcf),{'detail':{'level':_0x304d4f(0xc1),'message':i18next['t'](_0x304d4f(0xd8))}}));if((await client[_0x304d4f(0xfe)]({'query':a0_0x2d96bc`
|
|
145
145
|
query ($id: String!) {
|
|
146
146
|
studioTemplateIsOverLimit(id: $id)
|
|
147
147
|
}
|
|
148
|
-
`,'variables':{'id':this[
|
|
149
|
-
<h1>${this[
|
|
148
|
+
`,'variables':{'id':this['menuId']}}))[_0x304d4f(0xbf)])return;let _0x3596c3={},_0x3c5c96={};Object[_0x304d4f(0x90)](this['tabData'])['forEach'](_0xf206ed=>{const _0x26d851=_0x304d4f;let _0x47a088=this[_0x26d851(0xdf)](_0xf206ed);_0x3596c3[_0xf206ed]=this[_0x26d851(0xfd)+_0x47a088+_0x26d851(0x88)](),_0x3c5c96=merge(_0x3c5c96,_0x3596c3[_0xf206ed]);}),_0x3c5c96=JSON[_0x304d4f(0x8b)](_0x3c5c96),_0x3c5c96=MetaCrypto[_0x304d4f(0xb1)](_0x3c5c96),await MetaApi[_0x304d4f(0x9c)](_0x304d4f(0xb9),[{'id':this[_0x304d4f(0x8d)],'template':_0x3c5c96,'cuFlag':'M'}])&&await this['initData']();}[a0_0x19c321(0xe3)](){const _0x33c4a1=a0_0x19c321;this[_0x33c4a1(0xb3)](),this[_0x33c4a1(0xe4)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object['keys'](this[_0x33c4a1(0xac)])['forEach'](_0x2ca920=>{const _0x3e048e=_0x33c4a1;let _0x5959e4=this[_0x3e048e(0xdf)](_0x2ca920);if(this[_0x3e048e(0x9a)+_0x5959e4+'ConfigTabValues'])return this[_0x3e048e(0x9a)+_0x5959e4+_0x3e048e(0x88)](this[_0x3e048e(0xe4)][_0x2ca920]);});}async[a0_0x19c321(0xad)](){this['clear'](),await this['initData']();}[a0_0x19c321(0x84)](){const _0x3f08c6=a0_0x19c321;history[_0x3f08c6(0x94)]();}async[a0_0x19c321(0xb5)](){const _0x316d42=a0_0x19c321;var {menuId:_0x37029b=''}=this[_0x316d42(0xf4)]?.[_0x316d42(0x8e)]?this[_0x316d42(0xf4)]['params']:{};if(this[_0x316d42(0x8d)]=_0x37029b,!_0x37029b||''==_0x37029b)return void this[_0x316d42(0xe3)]();let _0x1b1f4f=await MetaApi[_0x316d42(0xde)]('menu',_0x37029b,'\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');if(_0x1b1f4f){try{JSON[_0x316d42(0xf7)](MetaCrypto[_0x316d42(0xd5)](_0x1b1f4f[_0x316d42(0xfc)]));}catch(_0x453849){return;}this[_0x316d42(0xc4)]=TermsUtil[_0x316d42(0xf6)](_0x1b1f4f[_0x316d42(0xaa)]),this[_0x316d42(0xbc)]=_0x1b1f4f[_0x316d42(0xfc)]?JSON['parse'](MetaCrypto[_0x316d42(0xd5)](_0x1b1f4f[_0x316d42(0xfc)])):{};var {menu:_0x1a304c={},gql:_0x27cd37={},button:_0x5d6976=[],grid_column:_0x452490=[],grid:_0x32570d={},search:_0x4f848f=[],form:_0x2ea714=[],tab:_0x1f00d9=[],etc:_0x9c32e7={},gridEmphasized:_0x49d7df=[]}=this['metaTemplate']?this['metaTemplate']:{};this['setTabData'](),this['dataStorage']={},this['dataStorage'][_0x316d42(0xf5)]=_0x1a304c,this[_0x316d42(0xe4)][_0x316d42(0xbb)]=_0x27cd37,this[_0x316d42(0xe4)][_0x316d42(0x83)]=_0x32570d,this[_0x316d42(0xe4)][_0x316d42(0x86)]=_0x2ea714,this['dataStorage'][_0x316d42(0xc3)]=_0x1f00d9,this[_0x316d42(0xe4)]['etc']=_0x9c32e7,this['dataStorage'][_0x316d42(0xe6)]=_0x49d7df,(_0x32570d[_0x316d42(0xfa)]?.['sorters']||[])[_0x316d42(0xe7)]((_0xece0b6,_0x3aca48)=>{const _0x54b7bb=_0x316d42;_0xece0b6[_0x54b7bb(0xd0)]=0xa*(_0x3aca48+0x1);}),this[_0x316d42(0xe4)][_0x316d42(0xa0)]=_0x452490['map'](_0x37f585=>{const _0x4b0a49=_0x316d42;let _0x137bf8=(_0x32570d['option']?.[_0x4b0a49(0xc8)]||[])[_0x4b0a49(0x99)](_0xb10c39=>_0xb10c39[_0x4b0a49(0xaa)]==_0x37f585[_0x4b0a49(0xaa)]);return _0x137bf8&&_0x137bf8[_0x4b0a49(0xa2)]>0x0?(_0x37f585[_0x4b0a49(0x85)]=_0x137bf8[0x0][_0x4b0a49(0xd0)],_0x37f585[_0x4b0a49(0xa6)]=!!_0x137bf8[0x0][_0x4b0a49(0x98)]&&_0x137bf8[0x0]['desc']):_0x37f585[_0x4b0a49(0x85)]=0x0,_0x37f585[_0x4b0a49(0xda)]=(_0x32570d[_0x4b0a49(0xd2)]?.[_0x4b0a49(0x95)]||[])[_0x4b0a49(0xb2)](_0x37f585[_0x4b0a49(0xaa)]),_0x37f585[_0x4b0a49(0xca)]=(_0x32570d[_0x4b0a49(0xd2)]?.['details']||[])[_0x4b0a49(0xb2)](_0x37f585[_0x4b0a49(0xaa)]),_0x37f585[_0x4b0a49(0xb7)]=_0x32570d['list']?.[_0x4b0a49(0xbe)]==_0x37f585[_0x4b0a49(0xaa)],_0x37f585;}),_0x4f848f[_0x316d42(0xf9)](...(_0x27cd37[_0x316d42(0xfe)]?.['filters']||[])[_0x316d42(0x89)](_0x2eb67a=>(_0x2eb67a['hidden']=!0x0,_0x2eb67a))),this[_0x316d42(0xe4)][_0x316d42(0xd3)]=_0x4f848f,_0x5d6976[_0x316d42(0xf9)](...(_0x32570d['button']||[])[_0x316d42(0x89)](_0x595dc0=>(_0x595dc0[_0x316d42(0xcb)]=_0x316d42(0xc6)+_0x595dc0[_0x316d42(0xcb)],_0x595dc0[_0x316d42(0x8c)]=_0x595dc0[_0x316d42(0xa3)],_0x595dc0))),this[_0x316d42(0xe4)][_0x316d42(0xc0)]=_0x5d6976,Object[_0x316d42(0x90)](this[_0x316d42(0xac)])[_0x316d42(0xe7)](_0x20ff6c=>{const _0x222ffc=_0x316d42;let _0x4f6461=this['convertFirstCharUpperCase'](_0x20ff6c);if(this[_0x222ffc(0x9a)+_0x4f6461+_0x222ffc(0x88)])return this[_0x222ffc(0x9a)+_0x4f6461+_0x222ffc(0x88)](this[_0x222ffc(0xe4)][_0x20ff6c]);});}}async[a0_0x19c321(0xce)](){const _0x537f25=a0_0x19c321;this[_0x537f25(0xb3)]();let _0x106910=Object[_0x537f25(0x90)](this[_0x537f25(0xac)]);for(var _0x1935b1=0x0;_0x1935b1<_0x106910[_0x537f25(0xa2)];_0x1935b1++){let _0x514cc3=this[_0x537f25(0xdf)](_0x106910[_0x1935b1]);this[_0x537f25(0x9a)+_0x514cc3+_0x537f25(0xef)]&&await this[_0x537f25(0x9a)+_0x514cc3+_0x537f25(0xef)]();}}async['pageUpdated'](_0x1b21c7,_0x1c789a,_0x485899){const _0x46ffe1=a0_0x19c321;!0x0===this[_0x46ffe1(0xe8)]?(this[_0x46ffe1(0xb3)](),await this['initData'](),this[_0x46ffe1(0xb3)]()):(this[_0x46ffe1(0xe3)](),this['remove']());}['setTabData'](){const _0x3c6137=a0_0x19c321;this[_0x3c6137(0xac)]||(this[_0x3c6137(0xac)]={'menu':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xd6)),'graphql':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0x87)),'grid':TermsUtil[_0x3c6137(0xcc)]('grid_config'),'column':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xbd)),'gridEmphasized':TermsUtil['tLabel'](_0x3c6137(0xdd)),'button':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xf2)),'search':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xc7)),'form':TermsUtil['tLabel'](_0x3c6137(0xc2)),'tab':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xee)),'etc':TermsUtil[_0x3c6137(0xcc)](_0x3c6137(0xec))});}['render'](){const _0x17990e=a0_0x19c321;this['currentTabKey']||(this['currentTabKey']=_0x17990e(0xf5)),this[_0x17990e(0xb3)]();let _0x19ab6a=Object['keys'](this[_0x17990e(0xac)]);return this[_0x17990e(0xac)][this[_0x17990e(0xea)]]?this[_0x17990e(0xea)]:_0x19ab6a[0x0],html`
|
|
149
|
+
<h1>${this[_0x17990e(0xc4)]}</h1>
|
|
150
150
|
<div class="tabs">
|
|
151
|
-
${
|
|
152
|
-
<div class="tab" ?activate="${
|
|
153
|
-
<span>${
|
|
151
|
+
${_0x19ab6a['map'](_0x5e6c3c=>{const _0x35c072=_0x17990e;let _0x29e875=this[_0x35c072(0xac)][_0x5e6c3c];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x5e6c3c===this[_0x35c072(0xea)]}" @click="${()=>this[_0x35c072(0xea)]=_0x5e6c3c}">
|
|
153
|
+
<span>${_0x29e875}</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
|
+
${_0x19ab6a['map'](_0x5a7249=>{const _0x1f9a80=_0x17990e;let _0x526f54=_0x1f9a80(0x8f);return _0x5a7249==this[_0x1f9a80(0xea)]&&(_0x526f54='display:flex'),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x526f54}">
|
|
160
|
+
${this[_0x1f9a80(0x97)](_0x5a7249)}
|
|
161
161
|
</div>
|
|
162
162
|
`;})}
|
|
163
163
|
</div>
|
|
164
|
-
`;}[
|
|
164
|
+
`;}['getConfigTab'](_0x2e56e3){const _0x36e467=a0_0x19c321;let _0x56bf5d=this['convertFirstCharUpperCase'](_0x2e56e3);return this[_0x36e467(0xfb)+_0x56bf5d+_0x36e467(0xae)]?this[_0x36e467(0xfb)+_0x56bf5d+_0x36e467(0xae)]():html``;}[a0_0x19c321(0xdf)](_0x206150){const _0x3522b7=a0_0x19c321;return _0x206150[_0x3522b7(0xc5)](0x0)[_0x3522b7(0x96)]()+_0x206150[_0x3522b7(0x9b)](0x1);}['getElementById'](_0x3109e5){const _0x54ccae=a0_0x19c321;return this[_0x54ccae(0x92)][_0x54ccae(0xe0)]('#'+_0x3109e5);}[a0_0x19c321(0xf8)](_0x7be27a){const _0x2bb99e=a0_0x19c321;let _0x33dbd2=this['shadowRoot']['querySelector']('#'+_0x7be27a);if(!_0x33dbd2)return;let _0x552366='';if(_0x2bb99e(0xba)==_0x33dbd2[_0x2bb99e(0xeb)][_0x2bb99e(0xd9)]()){if(!_0x33dbd2[_0x2bb99e(0xa5)]||0x0==_0x33dbd2[_0x2bb99e(0xa5)][_0x2bb99e(0xa2)])return;_0x552366=_0x33dbd2[_0x2bb99e(0xa5)][_0x33dbd2[_0x2bb99e(0xa1)]]['value'];}else{if(_0x2bb99e(0xaf)==_0x33dbd2[_0x2bb99e(0xeb)][_0x2bb99e(0xd9)]()){if(!_0x33dbd2['dirtyData'])return;if(!_0x33dbd2[_0x2bb99e(0xcd)][_0x2bb99e(0xc9)])return;if(0x0==_0x33dbd2['dirtyData']['records'][_0x2bb99e(0xa2)])return;return _0x33dbd2['dirtyData'][_0x2bb99e(0xc9)];}if('ox-input-code'==_0x33dbd2[_0x2bb99e(0xeb)][_0x2bb99e(0xd9)]())return _0x33dbd2['value'];if(_0x2bb99e(0xdb)==_0x33dbd2[_0x2bb99e(0xcb)][_0x2bb99e(0xd9)]()){let _0x4a0759=this['shadowRoot'][_0x2bb99e(0xe0)]('#'+_0x7be27a+_0x2bb99e(0xf1));if(!_0x4a0759)return;return _0x4a0759['value'];}_0x552366=_0x33dbd2[_0x2bb99e(0xa9)];}return _0x552366&&''!=_0x552366?_0x552366:void 0x0;}['sortRecordByRank'](_0x5a2911){const _0x3989a0=a0_0x19c321;return _0x5a2911?this[_0x3989a0(0xe1)](_0x5a2911,_0x3989a0(0xd0)):_0x5a2911;}['sortRecordByField'](_0x4eaede,_0x583cc8){const _0x10c88f=a0_0x19c321;return _0x4eaede[_0x10c88f(0xb4)]((_0x3a41b0,_0x1165d8)=>_0x3a41b0[_0x583cc8]-_0x1165d8[_0x583cc8]),_0x4eaede;}}customElements[a0_0x19c321(0xd7)](a0_0x19c321(0x93),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
|
+
function a0_0x1466(){const _0x59b360=['1749896yTvmom','querySelector','string','integer','deleteRow','search','center','left','renderSearchConfigTab','object','push','boolean','799245qDiBgs','filters','2375710RSHWxR','operator','2iGWctg','getSearchConfigTabValues','searchTabGridConfig','fetchSearchTabHandler','query','#search-tab-grid','setSearchConfigTabValues','name','489042RSYSBn','searchTabGrist','viewSearchData','search_operator','value','button','getElementValueById','map','4oAVTdU','fetch','1723047uWsSzy','getGristGuttersConfig','shadowRoot','setSearchConfigTabConfig','FILTER_OPERATORS','default_value','search-tab-grid','tLabel','gutter','130dgmzMA','getCodeSelectorData','forEach','388381pzjqZr','delete','select','getGristSelectableConfig','assign','rank','5061762GFMJmI','right','filter','hidden','gql'];a0_0x1466=function(){return _0x59b360;};return a0_0x1466();}function a0_0x3dc9(_0x28a0cb,_0x11aa67){const _0x1466ba=a0_0x1466();return a0_0x3dc9=function(_0x3dc9a1,_0x3049d1){_0x3dc9a1=_0x3dc9a1-0x1ce;let _0x1c32a5=_0x1466ba[_0x3dc9a1];return _0x1c32a5;},a0_0x3dc9(_0x28a0cb,_0x11aa67);}const a0_0x2fbbe7=a0_0x3dc9;(function(_0x3ccf27,_0x188ab8){const _0x5df27c=a0_0x3dc9,_0x10e68b=_0x3ccf27();while(!![]){try{const _0xacb6ef=parseInt(_0x5df27c(0x1ef))/0x1*(parseInt(_0x5df27c(0x1f3))/0x2)+parseInt(_0x5df27c(0x205))/0x3+parseInt(_0x5df27c(0x203))/0x4*(-parseInt(_0x5df27c(0x1f1))/0x5)+-parseInt(_0x5df27c(0x1de))/0x6+parseInt(_0x5df27c(0x1d8))/0x7+-parseInt(_0x5df27c(0x1e3))/0x8+parseInt(_0x5df27c(0x1fb))/0x9*(parseInt(_0x5df27c(0x1d5))/0xa);if(_0xacb6ef===_0x188ab8)break;else _0x10e68b['push'](_0x10e68b['shift']());}catch(_0x447a0d){_0x10e68b['push'](_0x10e68b['shift']());}}}(a0_0x1466,0x91fcd));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 SearchConfigTabMixin=_0x3bb87f=>class extends _0x3bb87f{[a0_0x2fbbe7(0x1f9)](_0x28f485){const _0x27bbef=a0_0x2fbbe7;let _0x18ba02=_0x28f485?.[_0x27bbef(0x202)]((_0x57f03e,_0x138aa3)=>{const _0x1a86e0=_0x27bbef;let _0x350f30=_0x138aa3+0x1,_0x21fc00={};return _0x1a86e0(0x1ec)==typeof _0x57f03e?Object[_0x1a86e0(0x1dc)](_0x21fc00,_0x57f03e):(_0x21fc00[_0x1a86e0(0x1fa)]=_0x57f03e,_0x21fc00[_0x1a86e0(0x1f2)]=_0x1a86e0(0x1e0)),_0x21fc00[_0x1a86e0(0x1dd)]=0xa*_0x350f30,_0x21fc00['id']=_0x350f30,_0x21fc00;});this['viewSearchData']=_0x18ba02||[],this[_0x27bbef(0x1fc)]?.[_0x27bbef(0x204)]();}[a0_0x2fbbe7(0x1f4)](){const _0x27b375=a0_0x2fbbe7;let _0x208af2={'search':[],'gql':{'query':{'filters':[]}}},_0x435438=this[_0x27b375(0x201)](_0x27b375(0x1d2));return this['sortRecordByRank'](_0x435438)?.[_0x27b375(0x1d7)](_0x14960a=>{const _0x3d0866=_0x27b375;var {name:_0x169495,operator:_0x2fdbcf='eq',hidden:_0x5800b6=!0x1,value:_0x120d5b}=_0x14960a;if(_0x169495){if(_0x3d0866(0x1e0)==_0x2fdbcf)_0x208af2[_0x3d0866(0x1e8)][_0x3d0866(0x1ed)](_0x169495);else{let _0x3b0469={'name':_0x169495,'operator':_0x2fdbcf};0x1==_0x5800b6?(_0x3b0469[_0x3d0866(0x1ff)]=_0x120d5b,_0x208af2[_0x3d0866(0x1e2)][_0x3d0866(0x1f7)][_0x3d0866(0x1f0)][_0x3d0866(0x1ed)](_0x3b0469)):(_0x3b0469[_0x3d0866(0x1ff)]=_0x120d5b,_0x208af2[_0x3d0866(0x1e8)][_0x3d0866(0x1ed)](_0x3b0469));}}}),_0x208af2;}[a0_0x2fbbe7(0x1eb)](){const _0x5bbae7=a0_0x2fbbe7;return html`
|
|
2
|
+
<ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x5bbae7(0x1f5)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x5bbae7(0x1f6)]['bind'](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x2fbbe7(0x1fc)](){const _0x3f5f75=a0_0x2fbbe7;return this[_0x3f5f75(0x1ce)][_0x3f5f75(0x1e4)](_0x3f5f75(0x1f8));}async[a0_0x2fbbe7(0x1f6)](){const _0x2fd372=a0_0x2fbbe7;return{'total':0x0,'records':this[_0x2fd372(0x1fd)]||[]};}async[a0_0x2fbbe7(0x1cf)](){const _0x5c88d9=a0_0x2fbbe7;let _0x12494f=await MetaApi[_0x5c88d9(0x1d6)](_0x5c88d9(0x1d0));this[_0x5c88d9(0x1f5)]={'rows':MetaApi[_0x5c88d9(0x1db)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x5c88d9(0x206)](!0x1,!0x1),{'type':_0x5c88d9(0x1d4),'gutterName':_0x5c88d9(0x200),'icon':_0x5c88d9(0x1d9),'handlers':{'click':(_0x3cd5d0,_0x215c52,_0xe000bf,_0x366df2,_0x37925a)=>{const _0x4b5e96=_0x5c88d9;_0x366df2['id']&&this[_0x4b5e96(0x1e7)](this['searchTabGrist'],_0x366df2);}}},{'type':_0x5c88d9(0x1e5),'name':'id','hidden':!0x0},{'type':_0x5c88d9(0x1e6),'name':_0x5c88d9(0x1dd),'header':TermsUtil[_0x5c88d9(0x1d3)](_0x5c88d9(0x1dd)),'sortable':!0x0,'width':0x41,'record':{'align':_0x5c88d9(0x1df),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'name','header':TermsUtil[_0x5c88d9(0x1d3)]('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x5c88d9(0x1ea),'editable':!0x0,'mandatory':!0x0}},{'type':_0x5c88d9(0x1da),'name':_0x5c88d9(0x1f2),'header':TermsUtil['tLabel'](_0x5c88d9(0x1fe)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x1,'options':_0x12494f}},{'type':_0x5c88d9(0x1ee),'name':_0x5c88d9(0x1e1),'header':TermsUtil['tLabel'](_0x5c88d9(0x1e1)),'sortable':!0x1,'width':0x41,'record':{'align':_0x5c88d9(0x1e9),'mandatory':!0x1,'editable':!0x0}},{'type':_0x5c88d9(0x1e5),'name':_0x5c88d9(0x1ff),'header':TermsUtil['tLabel'](_0x5c88d9(0x1d1)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x5c88d9(0x1ea),'editable':!0x0,'mandatory':!0x1}}]};}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="tab-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
const a0_0x55b01d=a0_0x17f2;function a0_0x17f2(_0xf1c12a,_0x44264b){const _0x33ff4f=a0_0x33ff();return a0_0x17f2=function(_0x17f2a5,_0x539a5a){_0x17f2a5=_0x17f2a5-0x1b4;let _0x2dbcc6=_0x33ff4f[_0x17f2a5];return _0x2dbcc6;},a0_0x17f2(_0xf1c12a,_0x44264b);}(function(_0x3a887b,_0x1d4287){const _0x5e4042=a0_0x17f2,_0x23a910=_0x3a887b();while(!![]){try{const _0x2974d5=parseInt(_0x5e4042(0x1b5))/0x1+parseInt(_0x5e4042(0x1d4))/0x2+parseInt(_0x5e4042(0x1bd))/0x3*(-parseInt(_0x5e4042(0x1b9))/0x4)+-parseInt(_0x5e4042(0x1c4))/0x5+parseInt(_0x5e4042(0x1cf))/0x6+parseInt(_0x5e4042(0x1be))/0x7+parseInt(_0x5e4042(0x1dc))/0x8*(-parseInt(_0x5e4042(0x1d3))/0x9);if(_0x2974d5===_0x1d4287)break;else _0x23a910['push'](_0x23a910['shift']());}catch(_0x15617d){_0x23a910['push'](_0x23a910['shift']());}}}(a0_0x33ff,0xe0b70));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_0x33ff(){const _0x1c07bf=['icon','rank','2388860leiGgb','param_field','integer','tLabel','parent_id','display','tagname','bind','#tab-tab-grid','querySelector','setTabConfigTabConfig','9180660chbsHc','right','tab','forEach','83880WpTanE','600726rMNNtb','map','tab-tab-grid','page_location','location','center','shadowRoot','tabTabGrist','1808YcqWIK','menu','setTabConfigTabValues','push','1725388eYIkJs','string','deleteRow','tabTabGridConfig','433996ZnxetM','gutter','fetchTabTabHandler','delete','39YfBTfi','9514050elAeFS','parent_field','name','left'];a0_0x33ff=function(){return _0x1c07bf;};return a0_0x33ff();}export const TabConfigTabMixin=_0x539c77=>class extends _0x539c77{[a0_0x55b01d(0x1de)](_0x1edab4){const _0x192e1e=a0_0x55b01d;let _0x5e80d4=_0x1edab4?.[_0x192e1e(0x1d5)]((_0x211cb3,_0x3ba36a)=>{const _0x1a7fef=_0x192e1e;let _0x187bfd=_0x3ba36a+0x1,_0x2ccf78={};return _0x2ccf78['rank']=0xa*_0x187bfd,_0x2ccf78['id']=_0x187bfd,_0x2ccf78[_0x1a7fef(0x1c0)]=_0x211cb3[_0x1a7fef(0x1c0)],_0x2ccf78['display']=_0x211cb3['display'],_0x2ccf78[_0x1a7fef(0x1ca)]=_0x211cb3[_0x1a7fef(0x1ca)],_0x2ccf78[_0x1a7fef(0x1c2)]=_0x211cb3['icon'],_0x2ccf78[_0x1a7fef(0x1d8)]=_0x211cb3[_0x1a7fef(0x1d8)],_0x2ccf78[_0x1a7fef(0x1bf)]=_0x211cb3[_0x1a7fef(0x1bf)],_0x2ccf78['param_field']=_0x211cb3['param_field'],_0x2ccf78[_0x1a7fef(0x1dd)]=_0x211cb3[_0x1a7fef(0x1dd)],_0x2ccf78;});this['viewTabData']=_0x5e80d4||[],this['tabTabGrist']?.['fetch']();}['getTabConfigTabValues'](){const _0x238355=a0_0x55b01d;let _0x21f42b={'tab':[]},_0xa63e42=this['getElementValueById'](_0x238355(0x1d6));return this['sortRecordByRank'](_0xa63e42)?.[_0x238355(0x1d2)](_0x1aee89=>{const _0x330f66=_0x238355;var {name:_0xb14948,display:_0x1fdc39,tagname:_0x5f0526,location:_0x240bf8,parent_field:_0x1134ac,param_field:_0x218dfe,menu:_0x37de7,icon:_0x1af91f}=_0x1aee89;_0xb14948&&_0x5f0526&&_0x240bf8&&_0x37de7&&(_0x1fdc39||(_0x1fdc39=_0xb14948),_0x1134ac||(_0x1134ac='id'),_0x218dfe||(_0x218dfe=_0x330f66(0x1c5)),_0x21f42b[_0x330f66(0x1d1)][_0x330f66(0x1b4)]({'name':_0xb14948,'display':_0x1fdc39,'tagname':_0x5f0526,'location':_0x240bf8,'parent_field':_0x1134ac,'param_field':_0x218dfe,'menu':_0x37de7,'icon':_0x1af91f}));}),_0x21f42b;}['renderTabConfigTab'](){const _0x3d128b=a0_0x55b01d;return html`
|
|
2
|
+
<ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x3d128b(0x1b8)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this['fetchTabTabHandler'][_0x3d128b(0x1cb)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x55b01d(0x1db)](){const _0xf7a626=a0_0x55b01d;return this[_0xf7a626(0x1da)][_0xf7a626(0x1cd)](_0xf7a626(0x1cc));}async[a0_0x55b01d(0x1bb)](){return{'total':0x0,'records':this['viewTabData']||[]};}async[a0_0x55b01d(0x1ce)](){const _0x354b87=a0_0x55b01d;this['tabTabGridConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x354b87(0x1ba),'gutterName':'button','icon':_0x354b87(0x1bc),'handlers':{'click':(_0x1e9d83,_0x4f9863,_0x4b689e,_0x186cbe,_0x45632d)=>{const _0x12987e=_0x354b87;_0x186cbe['id']&&this[_0x12987e(0x1b7)](this[_0x12987e(0x1db)],_0x186cbe);}}},{'type':_0x354b87(0x1b6),'name':'id','hidden':!0x0},{'type':_0x354b87(0x1c6),'name':'rank','header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1c3)),'sortable':!0x0,'width':0x41,'record':{'align':_0x354b87(0x1d0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':'name','header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1c0)),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x354b87(0x1c9),'header':TermsUtil['tLabel'](_0x354b87(0x1c9)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x354b87(0x1c2),'header':TermsUtil[_0x354b87(0x1c7)]('icon'),'sortable':!0x0,'width':0x41,'record':{'align':_0x354b87(0x1d9),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':'menu','header':TermsUtil[_0x354b87(0x1c7)]('routing'),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x354b87(0x1ca),'header':TermsUtil[_0x354b87(0x1c7)]('tag'),'sortable':!0x1,'width':0x96,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':_0x354b87(0x1d8),'header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1d7)),'sortable':!0x1,'width':0x12c,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':_0x354b87(0x1bf),'header':TermsUtil[_0x354b87(0x1c7)](_0x354b87(0x1c8)),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}},{'type':_0x354b87(0x1b6),'name':_0x354b87(0x1c5),'header':TermsUtil[_0x354b87(0x1c7)]('params'),'sortable':!0x1,'width':0x64,'record':{'align':_0x354b87(0x1c1),'editable':!0x0,'mandatory':!0x0}}]};}};
|