@things-factory/operato-tools 6.2.54 → 6.2.57
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
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x23e04f=a0_0x49de;function a0_0x1e03(){const _0x15c4b2=['unuse','description','grid_view_use','tLabel','289824pkGXFx','desk_mode','getGridConfigTabValues','330040SpPofW','includes','unlimited','3HBjBBC','support','gridPageOptions','setGridConfigTabValues','6687vQEpSC','GRID_PAGE_OPTIONS','setGridConfigTabDetaultValues','GRID','4863964HLGnoR','grid_term_default','use_filter_form','grid_pagination','13kqWPSR','use_row_checker','list_view_use','mobile_mode','132BTnjxQ','1182710QTTCfu','option','true','grid_term_','card_view_use','360012HDaXNu','grid_mobile_view','grid_desk_view','unsupport','push','grid_term_unlimited','row','CARD','setGridConfigTabConfig','grid','map','_view_use','grid_support_view','7ykSiSg','toLowerCase','length','3937CjCNHh','use','6PaIojZ','view_mode','grid_use_row_check','1990aPbRYU','getElementValueById','viewGridData','grid_row_check_use','renderGridConfigTab','pages','multiple_select','grid_support_multi_select','gridViewModes','grid_term_1000','grid_term_100','74aBWAeL','grid_use_filter','codeItems','name','LIST'];a0_0x1e03=function(){return _0x15c4b2;};return a0_0x1e03();}(function(_0x514771,_0x394099){const _0x110081=a0_0x49de,_0x4572b6=_0x514771();while(!![]){try{const _0x534d12=parseInt(_0x110081(0x1a9))/0x1*(-parseInt(_0x110081(0x174))/0x2)+-parseInt(_0x110081(0x183))/0x3*(parseInt(_0x110081(0x199))/0x4)+parseInt(_0x110081(0x194))/0x5*(parseInt(_0x110081(0x1ab))/0x6)+-parseInt(_0x110081(0x1a6))/0x7*(parseInt(_0x110081(0x180))/0x8)+-parseInt(_0x110081(0x187))/0x9*(-parseInt(_0x110081(0x1ae))/0xa)+-parseInt(_0x110081(0x193))/0xb*(parseInt(_0x110081(0x17d))/0xc)+parseInt(_0x110081(0x18f))/0xd*(parseInt(_0x110081(0x18b))/0xe);if(_0x534d12===_0x394099)break;else _0x4572b6['push'](_0x4572b6['shift']());}catch(_0x244d0a){_0x4572b6['push'](_0x4572b6['shift']());}}}(a0_0x1e03,0x284d2));import{html}from'lit-element';function a0_0x49de(_0x59e4fb,_0x359680){const _0x1e0367=a0_0x1e03();return a0_0x49de=function(_0x49de96,_0xb82c75){_0x49de96=_0x49de96-0x171;let _0x2ee52c=_0x1e0367[_0x49de96];return _0x2ee52c;},a0_0x49de(_0x59e4fb,_0x359680);}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=_0x43b516=>class extends _0x43b516{[a0_0x23e04f(0x186)](_0x1aaf2f){const _0x24117d=a0_0x23e04f;if(_0x1aaf2f){var {mobile_mode:_0x515931='',desk_mode:_0x178836='',pages:_0x2d00b2=[],use_row_checker:_0x2e5d72=!0x0,view_mode:_0x3b2dbd=[]}=_0x1aaf2f[_0x24117d(0x195)]||{};let _0x52858f=(_0x1aaf2f[_0x24117d(0x19f)]||{'multiple_select':!0x1})[_0x24117d(0x1b4)],_0x3a2f00=_0x24117d(0x182)==_0x2d00b2?_0x24117d(0x19e):0x0==_0x2d00b2[_0x24117d(0x1a8)]?'':0x14==_0x2d00b2[0x0]?_0x24117d(0x18c):_0x24117d(0x197)+_0x2d00b2[0x0];this[_0x24117d(0x1b0)]={'mobile_mode':_0x515931,'desk_mode':_0x178836,'use_row_checker':_0x2e5d72,'pages':_0x3a2f00,'view_mode':_0x3b2dbd,'multiple_select':_0x52858f,'use_filter_form':_0x1aaf2f[_0x24117d(0x18d)]};}else this[_0x24117d(0x189)]();}[a0_0x23e04f(0x17f)](){const _0x305731=a0_0x23e04f;let _0x1fcf54={'grid':{'option':{},'row':{'click':'select-row-toggle'}}},_0x959329=this[_0x305731(0x1af)](_0x305731(0x1b1)),_0xfac38d=this['getElementValueById']('grid_multi_select'),_0x5917a2=this[_0x305731(0x1af)](_0x305731(0x19b)),_0xc8a0eb=this[_0x305731(0x1af)](_0x305731(0x19a)),_0x29ed03=this['getElementValueById'](_0x305731(0x175)),_0x1391f0=this[_0x305731(0x1af)](_0x305731(0x18e)),_0x303f24=this['getElementValueById'](_0x305731(0x17b)),_0x9d1496=this[_0x305731(0x1af)](_0x305731(0x191)),_0x56cc21=this['getElementValueById'](_0x305731(0x198));return _0x1fcf54[_0x305731(0x1a2)]['use_filter_form']=_0x305731(0x196)==_0x29ed03,_0x1fcf54[_0x305731(0x1a2)][_0x305731(0x19f)]['multiple_select']='true'==_0xfac38d,_0x1fcf54[_0x305731(0x1a2)]['option']['use_row_checker']='true'==_0x959329,_0x1fcf54[_0x305731(0x1a2)]['option']['mobile_mode']=_0xc8a0eb,_0x1fcf54[_0x305731(0x1a2)][_0x305731(0x195)][_0x305731(0x17e)]=_0x5917a2,_0x305731(0x18c)==_0x1391f0?_0x1fcf54[_0x305731(0x1a2)][_0x305731(0x195)][_0x305731(0x1b3)]=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x1391f0?_0x1fcf54[_0x305731(0x1a2)]['option']['pages']=[0x32,0x64,0x1f4,0x3e8]:_0x305731(0x173)==_0x1391f0?_0x1fcf54[_0x305731(0x1a2)][_0x305731(0x195)][_0x305731(0x1b3)]=[0x64,0x1f4,0x3e8,0x1388]:_0x305731(0x172)==_0x1391f0?_0x1fcf54['grid']['option'][_0x305731(0x1b3)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x305731(0x19e)==_0x1391f0&&(_0x1fcf54['grid']['option'][_0x305731(0x1b3)]=_0x305731(0x182)),_0x1fcf54['grid'][_0x305731(0x195)][_0x305731(0x1ac)]=[],'true'==_0x303f24&&_0x1fcf54[_0x305731(0x1a2)][_0x305731(0x195)][_0x305731(0x1ac)][_0x305731(0x19d)]('GRID'),_0x305731(0x196)==_0x9d1496&&_0x1fcf54[_0x305731(0x1a2)][_0x305731(0x195)][_0x305731(0x1ac)][_0x305731(0x19d)](_0x305731(0x178)),_0x305731(0x196)==_0x56cc21&&_0x1fcf54[_0x305731(0x1a2)]['option']['view_mode'][_0x305731(0x19d)](_0x305731(0x1a0)),_0x1fcf54;}async[a0_0x23e04f(0x1a1)](){const _0x27db7d=a0_0x23e04f;let _0x5e8e4c=await MetaApi['codeItems'](_0x27db7d(0x188)),_0x41e434=await MetaApi[_0x27db7d(0x176)]('GRID_VIEW_MODE');this[_0x27db7d(0x171)]=_0x41e434,this['gridPageOptions']=_0x5e8e4c;}[a0_0x23e04f(0x189)](){const _0xcd521b=a0_0x23e04f;this[_0xcd521b(0x1b0)]||(this[_0xcd521b(0x1b0)]={'mobile_mode':this[_0xcd521b(0x171)]?this[_0xcd521b(0x171)][0x1]:_0xcd521b(0x178),'desk_mode':this[_0xcd521b(0x171)]?this['gridViewModes'][0x0]:'GRID','use_row_checker':!0x0,'pages':_0xcd521b(0x18c),'view_mode':[...this['gridViewModes']?this[_0xcd521b(0x171)]:[_0xcd521b(0x18a),'LIST',_0xcd521b(0x1a0)]],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x23e04f(0x1b2)](){const _0x4ca030=a0_0x23e04f;return this[_0x4ca030(0x189)](),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[_0x4ca030(0x17c)](_0x4ca030(0x1ad))}
|
|
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[_0x4ca030(0x1b0)]['use_row_checker']}>${TermsUtil[_0x4ca030(0x17c)](_0x4ca030(0x1aa))}</input>
|
|
11
11
|
<input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
|
|
12
|
-
?checked=${!this[
|
|
12
|
+
?checked=${!this[_0x4ca030(0x1b0)][_0x4ca030(0x190)]}>${TermsUtil['tLabel'](_0x4ca030(0x179))}</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[_0x4ca030(0x17c)](_0x4ca030(0x1b5))}
|
|
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[_0x4ca030(0x1b0)][_0x4ca030(0x1b4)]}>${TermsUtil[_0x4ca030(0x17c)](_0x4ca030(0x184))}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this['viewGridData'][
|
|
25
|
+
?checked=${!this['viewGridData'][_0x4ca030(0x1b4)]}>${TermsUtil['tLabel'](_0x4ca030(0x19c))}</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[_0x4ca030(0x17c)](_0x4ca030(0x175))}
|
|
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[_0x4ca030(0x1b0)][_0x4ca030(0x18d)]}>${TermsUtil[_0x4ca030(0x17c)](_0x4ca030(0x1aa))}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0x4ca030(0x1b0)][_0x4ca030(0x18d)]}>${TermsUtil[_0x4ca030(0x17c)](_0x4ca030(0x179))}</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[_0x4ca030(0x17c)](_0x4ca030(0x19b))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this[
|
|
49
|
+
${this[_0x4ca030(0x171)]?.['map'](_0x25abfa=>html`<option value=${_0x25abfa['name']} ?selected=${this[_0x4ca030(0x1b0)][_0x4ca030(0x17e)]==_0x25abfa[_0x4ca030(0x177)]}>${_0x25abfa[_0x4ca030(0x17a)]}</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[_0x4ca030(0x17c)](_0x4ca030(0x19a))}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this[
|
|
59
|
+
${this[_0x4ca030(0x171)]?.[_0x4ca030(0x1a3)](_0x19f38d=>html`<option value=${_0x19f38d['name']} ?selected=${this[_0x4ca030(0x1b0)][_0x4ca030(0x192)]==_0x19f38d[_0x4ca030(0x177)]}>${_0x19f38d['description']}</option>`)}
|
|
60
60
|
</select>
|
|
61
61
|
</label>
|
|
62
62
|
</div>
|
|
63
63
|
<div field>
|
|
64
64
|
<h2>
|
|
65
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
65
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x4ca030(0x1a5))}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0x4ca030(0x171)]?.['map'](_0x2b641e=>html`
|
|
69
|
+
<span>${_0x2b641e['name']}
|
|
70
|
+
<input type="radio" name=${_0x2b641e[_0x4ca030(0x177)][_0x4ca030(0x1a7)]()+_0x4ca030(0x1a4)} id=${_0x2b641e[_0x4ca030(0x177)]['toLowerCase']()+'_view_use'} ?checked=${this[_0x4ca030(0x1b0)][_0x4ca030(0x1ac)][_0x4ca030(0x181)](_0x2b641e[_0x4ca030(0x177)])} value="true">${TermsUtil[_0x4ca030(0x17c)](_0x4ca030(0x1aa))}</input>
|
|
71
|
+
<input type="radio" name=${_0x2b641e[_0x4ca030(0x177)]['toLowerCase']()+_0x4ca030(0x1a4)} id=${_0x2b641e['name']['toLowerCase']()+'_view_use'} ?checked=${!this[_0x4ca030(0x1b0)]['view_mode']['includes'](_0x2b641e[_0x4ca030(0x177)])} value="false">${TermsUtil[_0x4ca030(0x17c)]('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'](_0x4ca030(0x18e))}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this[
|
|
81
|
+
${this[_0x4ca030(0x185)]?.[_0x4ca030(0x1a3)](_0xe68095=>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=${_0xe68095['name']} ?checked=${this['viewGridData'][_0x4ca030(0x1b3)]==_0xe68095[_0x4ca030(0x177)]}>${TermsUtil[_0x4ca030(0x17c)](_0xe68095[_0x4ca030(0x177)])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x6a0c45=a0_0x4269;(function(_0x97d4aa,_0x578d97){const _0x396f38=a0_0x4269,_0x5e1d9f=_0x97d4aa();while(!![]){try{const _0x7fdead=-parseInt(_0x396f38(0x13a))/0x1*(parseInt(_0x396f38(0x13d))/0x2)+parseInt(_0x396f38(0x145))/0x3*(-parseInt(_0x396f38(0x127))/0x4)+parseInt(_0x396f38(0x12d))/0x5*(-parseInt(_0x396f38(0x13f))/0x6)+-parseInt(_0x396f38(0x11a))/0x7+parseInt(_0x396f38(0x137))/0x8*(parseInt(_0x396f38(0x134))/0x9)+-parseInt(_0x396f38(0x147))/0xa*(-parseInt(_0x396f38(0x124))/0xb)+-parseInt(_0x396f38(0x12e))/0xc*(-parseInt(_0x396f38(0x12f))/0xd);if(_0x7fdead===_0x578d97)break;else _0x5e1d9f['push'](_0x5e1d9f['shift']());}catch(_0x4c1a67){_0x5e1d9f['push'](_0x5e1d9f['shift']());}}}(a0_0x420f,0x7d3a9));import{html}from'lit-element';function a0_0x4269(_0xb33e58,_0x5c342d){const _0x420f13=a0_0x420f();return a0_0x4269=function(_0x426999,_0x2277d0){_0x426999=_0x426999-0x113;let _0x312875=_0x420f13[_0x426999];return _0x312875;},a0_0x4269(_0xb33e58,_0x5c342d);}function a0_0x420f(){const _0x928854=['3474908jQKTxd','viewEmphasizedData','rowEmphasizedConfig','left','button','fetchColumnEmphasized','25GsIqGV','39048OoOknk','7618MhnTXV','bind','getElementValueById','forEach','rank','146043SbtrOx','renderGridEmphasizedConfigTab','background-color','152mzDZzk','backgroundColor','delete','3815AlyNuZ','code-input','tLabel','118nplFxw','push','720294VLXNYH','deleteRow','fetchRowEmphasized','logic','emphasizedConfigTabColumnEmphasizedGrist','querySelector','3BETmdQ','columnEmphasizedData','1921030oDyvHz','setGridEmphasizedConfigTabConfig','sortRecordByRank','column-emphasized-grist','fontColor','rowEmphasizedData','string','shadowRoot','integer','emphasizedConfigTabRowEmphasizedGrist','setGridEmphasizedConfigTabDefaultValues','columnEmphasizedConfig','5436025QwDqyH','row','grid_row_emphasized_config','setGridEmphasizedConfigTabValues','right','getGristGuttersConfig','getGristSelectableConfig','column','fetch','GRID','44zYOvjE','getGridEmphasizedConfigTabValues','#row-emphasized-grist'];a0_0x420f=function(){return _0x928854;};return a0_0x420f();}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=_0x3bedf4=>class extends _0x3bedf4{[a0_0x6a0c45(0x11d)](_0x23752a){const _0x421b9e=a0_0x6a0c45;if(_0x23752a){this[_0x421b9e(0x128)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0xceb9a1=0x1;this[_0x421b9e(0x128)][_0x421b9e(0x113)]=(_0x23752a[_0x421b9e(0x11b)]||[])['map'](_0x3517c8=>({'id':_0xceb9a1,'rank':_0xceb9a1++,'backgroundColor':_0x3517c8[_0x421b9e(0x138)]||'','fontColor':_0x3517c8[_0x421b9e(0x14b)]||'','logic':_0x3517c8[_0x421b9e(0x142)]||''})),_0xceb9a1=0x1;let _0x2aadc7=_0x23752a['column']||[];Object['keys'](_0x2aadc7)[_0x421b9e(0x132)](_0xb36eb6=>{const _0x316fb4=_0x421b9e;let _0x366c15=_0x2aadc7[_0xb36eb6]||[],_0x3e9d7d=0x1;_0x366c15[_0x316fb4(0x132)](_0x300048=>{const _0x1cff88=_0x316fb4;this[_0x1cff88(0x128)][_0x1cff88(0x146)]['push']({'id':_0xceb9a1++,'rank':_0x3e9d7d++,'column':_0xb36eb6,'backgroundColor':_0x300048['backgroundColor']||'','fontColor':_0x300048[_0x1cff88(0x14b)]||'','logic':_0x300048[_0x1cff88(0x142)]||''});});}),this['emphasizedConfigTabColumnEmphasizedGrist']?.[_0x421b9e(0x122)](),this['emphasizedConfigTabRowEmphasizedGrist']?.[_0x421b9e(0x122)]();}else this[_0x421b9e(0x118)]();}[a0_0x6a0c45(0x125)](){const _0x2b3726=a0_0x6a0c45;let _0x253372=this[_0x2b3726(0x131)]('row-emphasized-grist'),_0x34731b=this[_0x2b3726(0x131)](_0x2b3726(0x14a)),_0x3780cd=[];this[_0x2b3726(0x149)](_0x253372)?.['forEach'](_0x4ca351=>{const _0x558fba=_0x2b3726;_0x3780cd[_0x558fba(0x13e)]({'backgroundColor':_0x4ca351[_0x558fba(0x138)],'fontColor':_0x4ca351[_0x558fba(0x14b)],'logic':_0x4ca351[_0x558fba(0x142)]});});let _0x85cf52={};return this[_0x2b3726(0x149)](_0x34731b)?.['forEach'](_0x309a12=>{const _0xdc9b97=_0x2b3726;_0x85cf52[_0x309a12['column']]||(_0x85cf52[_0x309a12[_0xdc9b97(0x121)]]=[]),_0x85cf52[_0x309a12[_0xdc9b97(0x121)]][_0xdc9b97(0x13e)]({'backgroundColor':_0x309a12['backgroundColor'],'fontColor':_0x309a12[_0xdc9b97(0x14b)],'logic':_0x309a12[_0xdc9b97(0x142)]});}),{'gridEmphasized':{'row':_0x3780cd||[],'column':_0x85cf52||{}}};}get[a0_0x6a0c45(0x117)](){const _0x236546=a0_0x6a0c45;return this[_0x236546(0x115)]['querySelector'](_0x236546(0x126));}get[a0_0x6a0c45(0x143)](){const _0x188aa0=a0_0x6a0c45;return this['shadowRoot'][_0x188aa0(0x144)]('#column-emphasized-grist');}[a0_0x6a0c45(0x148)](){const _0x376a47=a0_0x6a0c45;this[_0x376a47(0x129)]={'rows':MetaApi[_0x376a47(0x120)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x376a47(0x11f)](!0x1,!0x1),{'type':'gutter','gutterName':_0x376a47(0x12b),'icon':_0x376a47(0x139),'handlers':{'click':(_0x2b91ab,_0x28fba9,_0x34e716,_0x460164,_0x3adaaf)=>{const _0x441110=_0x376a47;_0x460164['id']&&this[_0x441110(0x140)](this[_0x441110(0x117)],_0x460164);}}},{'type':_0x376a47(0x114),'name':'id','hidden':!0x0},{'type':_0x376a47(0x116),'name':_0x376a47(0x133),'header':TermsUtil[_0x376a47(0x13c)]('rank'),'sortable':!0x1,'width':0x37,'record':{'align':_0x376a47(0x11e),'editable':!0x0,'mandatory':!0x0}},{'type':_0x376a47(0x114),'name':'backgroundColor','header':TermsUtil[_0x376a47(0x13c)](_0x376a47(0x136)),'record':{'align':_0x376a47(0x12a),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x376a47(0x114),'name':_0x376a47(0x14b),'header':TermsUtil[_0x376a47(0x13c)]('font-color'),'record':{'align':_0x376a47(0x12a),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x376a47(0x13b),'name':_0x376a47(0x142),'header':TermsUtil[_0x376a47(0x13c)]('logic'),'record':{'align':_0x376a47(0x12a),'editable':!0x0,'mandatory':!0x0},'width':0x352}]},this['columnEmphasizedConfig']={'rows':MetaApi[_0x376a47(0x120)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':'gutter','gutterName':'button','icon':_0x376a47(0x139),'handlers':{'click':(_0x2b7900,_0x1aa198,_0x3b726f,_0x334c8b,_0x1629fe)=>{const _0x24bf34=_0x376a47;_0x334c8b['id']&&this[_0x24bf34(0x140)](this[_0x24bf34(0x143)],_0x334c8b);}}},{'type':_0x376a47(0x114),'name':'id','hidden':!0x0},{'type':_0x376a47(0x116),'name':_0x376a47(0x133),'header':TermsUtil[_0x376a47(0x13c)](_0x376a47(0x133)),'sortable':!0x1,'width':0x37,'record':{'align':_0x376a47(0x11e),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x376a47(0x121),'header':TermsUtil[_0x376a47(0x13c)]('column'),'record':{'align':_0x376a47(0x12a),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x376a47(0x114),'name':'backgroundColor','header':TermsUtil[_0x376a47(0x13c)](_0x376a47(0x136)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x376a47(0x114),'name':'fontColor','header':TermsUtil[_0x376a47(0x13c)]('font-color'),'record':{'align':_0x376a47(0x12a),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'code-input','name':_0x376a47(0x142),'header':TermsUtil['tLabel'](_0x376a47(0x142)),'record':{'align':_0x376a47(0x12a),'editable':!0x0,'mandatory':!0x0},'width':0x2d5}]};}[a0_0x6a0c45(0x118)](){const _0x1fe476=a0_0x6a0c45;this[_0x1fe476(0x128)]||(this[_0x1fe476(0x128)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x6a0c45(0x135)](){const _0x3907e7=a0_0x6a0c45;return this[_0x3907e7(0x118)](),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[_0x3907e7(0x13c)](_0x3907e7(0x11c))}
|
|
6
6
|
</h2>
|
|
7
|
-
<ox-grist id="row-emphasized-grist" .config=${this[
|
|
8
|
-
.fetchHandler=${this[
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x3907e7(0x129)]} .mode=${_0x3907e7(0x123)} auto-fetch
|
|
8
|
+
.fetchHandler=${this[_0x3907e7(0x141)][_0x3907e7(0x130)](this)}></ox-grist>
|
|
9
9
|
</div>
|
|
10
10
|
<div field >
|
|
11
11
|
<h2>
|
|
12
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](
|
|
12
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel']('grid_column_emphasized_config')}
|
|
13
13
|
</h2>
|
|
14
|
-
<ox-grist id="column-emphasized-grist" .config=${this[
|
|
15
|
-
.fetchHandler=${this[
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this[_0x3907e7(0x119)]} .mode=${_0x3907e7(0x123)} auto-fetch
|
|
15
|
+
.fetchHandler=${this[_0x3907e7(0x12c)]['bind'](this)}></ox-grist>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
-
`;}async[
|
|
18
|
+
`;}async[a0_0x6a0c45(0x141)](){const _0x41a3a9=a0_0x6a0c45;return{'records':this[_0x41a3a9(0x128)][_0x41a3a9(0x113)],'total':0x0};}async[a0_0x6a0c45(0x12c)](){const _0x5effa1=a0_0x6a0c45;return{'records':this[_0x5effa1(0x128)][_0x5effa1(0x146)],'total':0x0};}};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x6b78(_0x12dbe8,_0x29bd08){const _0x17b49f=a0_0x17b4();return a0_0x6b78=function(_0x6b786f,_0x568614){_0x6b786f=_0x6b786f-0x14b;let _0x16f997=_0x17b49f[_0x6b786f];return _0x16f997;},a0_0x6b78(_0x12dbe8,_0x29bd08);}const a0_0x259c74=a0_0x6b78;(function(_0x12618,_0x173a64){const _0x5dab02=a0_0x6b78,_0x5e1572=_0x12618();while(!![]){try{const _0x18df14=parseInt(_0x5dab02(0x153))/0x1+-parseInt(_0x5dab02(0x166))/0x2+-parseInt(_0x5dab02(0x152))/0x3+parseInt(_0x5dab02(0x15f))/0x4+-parseInt(_0x5dab02(0x15e))/0x5+parseInt(_0x5dab02(0x14c))/0x6+parseInt(_0x5dab02(0x158))/0x7;if(_0x18df14===_0x173a64)break;else _0x5e1572['push'](_0x5e1572['shift']());}catch(_0x301b3f){_0x5e1572['push'](_0x5e1572['shift']());}}}(a0_0x17b4,0xe32dd));import{html}from'lit-element';function a0_0x17b4(){const _0x29c2fe=['menu_title','menu_desc_field','804602WARRqD','tTitle','8824002fpLnfe','help_doc','tLabel','target','menuTitleChange','name','1894515xFzJnK','840252uqbcFW','menu','display','value','help','2167830INTinH','getElementById','title','desc','setMenuConfigTabDefaultValue','getElementValueById','6629370qrBPic','2678384luPScQ','setMenuConfigTabValues','menu_name_field','viewMenuData','getMenuConfigTabValues'];a0_0x17b4=function(){return _0x29c2fe;};return a0_0x17b4();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x3f77a5=>class extends _0x3f77a5{[a0_0x259c74(0x160)](_0x2e4f49){const _0x4d57a3=a0_0x259c74;if(_0x2e4f49){var {title:_0x5c0295='',name:_0x30b8f7='',desc:_0x441766='',help:_0x46f08e=''}=_0x2e4f49||{};this[_0x4d57a3(0x162)]={'title':_0x5c0295,'name':_0x30b8f7,'desc':_0x441766,'help_doc':_0x46f08e},this[_0x4d57a3(0x159)]('title')[_0x4d57a3(0x156)]=_0x5c0295,this[_0x4d57a3(0x159)](_0x4d57a3(0x151))[_0x4d57a3(0x156)]=_0x30b8f7,this[_0x4d57a3(0x159)](_0x4d57a3(0x15b))[_0x4d57a3(0x156)]=_0x441766,this['getElementById'](_0x4d57a3(0x14d))[_0x4d57a3(0x156)]=_0x46f08e;}else this[_0x4d57a3(0x15c)]();}[a0_0x259c74(0x163)](){const _0x3d79b2=a0_0x259c74;let _0x431405={'menu':{}},_0x44dde4=this[_0x3d79b2(0x15d)](_0x3d79b2(0x15a)),_0x4c182=this[_0x3d79b2(0x15d)](_0x3d79b2(0x151)),_0x1ab9b9=this[_0x3d79b2(0x15d)](_0x3d79b2(0x15b)),_0x28d511=this[_0x3d79b2(0x15d)](_0x3d79b2(0x14d));return _0x44dde4&&(_0x431405[_0x3d79b2(0x154)][_0x3d79b2(0x15a)]=_0x44dde4),_0x4c182&&(_0x431405['menu'][_0x3d79b2(0x151)]=_0x4c182),_0x1ab9b9&&(_0x431405[_0x3d79b2(0x154)]['desc']=_0x1ab9b9),_0x28d511&&(_0x431405[_0x3d79b2(0x154)][_0x3d79b2(0x157)]=_0x28d511),_0x431405;}['setMenuConfigTabDefaultValue'](){const _0x13701d=a0_0x259c74;this[_0x13701d(0x162)]||(this[_0x13701d(0x162)]={'title':'','name':_0x13701d(0x151),'desc':'description','help_doc':''});}[a0_0x259c74(0x150)](_0x3bc6dd){const _0x503749=a0_0x259c74;let _0x543b02=this[_0x503749(0x159)](_0x503749(0x155));_0x543b02&&(_0x543b02[_0x503749(0x156)]=TermsUtil[_0x503749(0x14b)](_0x3bc6dd[_0x503749(0x14f)]['value']));}['renderMenuConfigTab'](){const _0x5e6541=a0_0x259c74;return this[_0x5e6541(0x15c)](),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[_0x5e6541(0x14e)](_0x5e6541(0x164))}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this['viewMenuData'][_0x5e6541(0x15a)]} @change=${_0x27e495=>this[_0x5e6541(0x150)](_0x27e495)}/>
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil[
|
|
10
|
-
<input id="display" name="display" value=${TermsUtil[
|
|
9
|
+
<label>${TermsUtil[_0x5e6541(0x14e)]('display')}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil[_0x5e6541(0x14b)](this[_0x5e6541(0x162)][_0x5e6541(0x15a)])} 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[_0x5e6541(0x14e)](_0x5e6541(0x161))}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x5e6541(0x162)]['name']} />
|
|
17
17
|
</label>
|
|
18
18
|
</div>
|
|
19
19
|
<div field>
|
|
20
|
-
<label>${TermsUtil[
|
|
21
|
-
<input id="desc" name="desc" type="text" value=${this[
|
|
20
|
+
<label>${TermsUtil[_0x5e6541(0x14e)](_0x5e6541(0x165))}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this[_0x5e6541(0x162)][_0x5e6541(0x15b)]} />
|
|
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['tLabel']('help_doc')}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x5e6541(0x162)][_0x5e6541(0x14d)]} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3c6759=a0_0x150a;(function(_0x289216,_0x47f88b){const _0x39ce83=a0_0x150a,_0x29d1a9=_0x289216();while(!![]){try{const _0x1ca511=parseInt(_0x39ce83(0x1f2))/0x1+parseInt(_0x39ce83(0x1d7))/0x2+parseInt(_0x39ce83(0x1c5))/0x3*(-parseInt(_0x39ce83(0x1a1))/0x4)+-parseInt(_0x39ce83(0x1d6))/0x5+parseInt(_0x39ce83(0x1c0))/0x6+-parseInt(_0x39ce83(0x193))/0x7*(parseInt(_0x39ce83(0x1c2))/0x8)+parseInt(_0x39ce83(0x1c3))/0x9;if(_0x1ca511===_0x47f88b)break;else _0x29d1a9['push'](_0x29d1a9['shift']());}catch(_0x5b1421){_0x29d1a9['push'](_0x29d1a9['shift']());}}}(a0_0xb48e,0x4a364));import{html,css}from'lit-element';import{merge}from'lodash';import a0_0x5706ae from'graphql-tag';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{client}from'@operato/graphql';import{store}from'@operato/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';function a0_0xb48e(){const _0x414c65=['menu_config','getState','filter','forEach','371EQaTef','keys','studioPermission','sort_rank','name','refresh','push','dispatchEvent','toLowerCase','dec','rep_field','back','records','graphql','4XEUMvw','initData','metaTemplate','meta-generator-page','slice','getConfigTab','error','styles','form_config','value','thumbnail_field','updateMultiple','style','option','active','menuId','set','button','options','dataStorage','search','dirtyData','type','backToMenu','ox-input-code','stringify','convertFirstCharUpperCase','enc','hidden','tab','thumbnail','2710620SnHgxc','currentTabKey','75896cDuqUi','24723xOqkST','graphql_config','45975YfnEuU','notify','list','charAt','parse','fields','\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','toUpperCase','radio','tButton','lifecycle','errors','render','clear','pageUpdated','menu','rank','2961150xkmhYF','1120732QgRDqo','bind','error.invalid\x20license\x20key','column','search_config','sorters','desc','button_config','icon','querySelector','remove','properties','setTabData','form','details','detail_field','selectedIndex','ConfigTabConfig','menuName','tabData','save','updateMultipleMenu','context','tagName','template','ConfigTabValues','display:none','399455duzHFz','pageInitialized','map','grid_config','sort','ConfigTab','tLabel','sortRecordByField','query','deleteRow','column_config','tab_config','length','etc_config','shadowRoot'];a0_0xb48e=function(){return _0x414c65;};return a0_0xb48e();}import{TabConfigTabMixin}from'./tab-config-tab-mixin';import{EtcConfigTabMixin}from'./etc-config-tab-mixin';import{GridEmphasizedConfigTabMixin}from'./grid-emphasized-config-tab-mixin';function a0_0x150a(_0x55f932,_0x1af8a0){const _0xb48e06=a0_0xb48e();return a0_0x150a=function(_0x150a2a,_0x329f01){_0x150a2a=_0x150a2a-0x192;let _0x315505=_0xb48e06[_0x150a2a];return _0x315505;},a0_0x150a(_0x55f932,_0x1af8a0);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';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_0x3c6759(0x1a8)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -139,24 +139,24 @@ const a0_0x9db818=a0_0x8384;(function(_0x5f1770,_0x169a5a){const _0xe1442f=a0_0x
|
|
|
139
139
|
ox-grist {
|
|
140
140
|
overflow-y: auto;
|
|
141
141
|
flex: 1;
|
|
142
|
-
}`];}static get[
|
|
142
|
+
}`];}static get[a0_0x3c6759(0x1e2)](){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_0x3c6759(0x1ed)](){const _0x4c063d=a0_0x3c6759;return{'title':TermsUtil['tTitle']('meta_generator'),'actions':[{'title':TermsUtil['tButton'](_0x4c063d(0x1eb)),'action':this['save']['bind'](this),...CommonButtonStyles[_0x4c063d(0x1eb)]},{'title':TermsUtil['tButton'](_0x4c063d(0x19e)),'action':this[_0x4c063d(0x1b8)][_0x4c063d(0x1d8)](this),...CommonButtonStyles[_0x4c063d(0x19e)]},{'title':TermsUtil[_0x4c063d(0x1ce)](_0x4c063d(0x198)),'action':this['refresh'][_0x4c063d(0x1d8)](this),...CommonButtonStyles[_0x4c063d(0x198)]}]};}[a0_0x3c6759(0x1fb)](_0x8cf2f3,_0x1f1afd){const _0x5f49ea=a0_0x3c6759;let _0x1568db=_0x8cf2f3[_0x5f49ea(0x1b6)];_0x1568db['records']=_0x1568db['records'][_0x5f49ea(0x203)](_0x4d372c=>_0x4d372c['id']!=_0x1f1afd['id']),_0x8cf2f3['data']=_0x1568db;}async[a0_0x3c6759(0x1eb)](){const _0x15dd84=a0_0x3c6759;if(0x0==store[_0x15dd84(0x202)]()['operatoTools'][_0x15dd84(0x195)])return void document[_0x15dd84(0x19a)](new CustomEvent(_0x15dd84(0x1c6),{'detail':{'level':_0x15dd84(0x1a7),'message':i18next['t'](_0x15dd84(0x1d9))}}));if((await client[_0x15dd84(0x1fa)]({'query':a0_0x5706ae`
|
|
143
143
|
query ($id: String!) {
|
|
144
144
|
studioTemplateIsOverLimit(id: $id)
|
|
145
145
|
}
|
|
146
|
-
`,'variables':{'id':this['menuId']}}))[
|
|
147
|
-
<h1>${this[
|
|
146
|
+
`,'variables':{'id':this['menuId']}}))[_0x15dd84(0x1d0)])return;let _0x3d2381={},_0x4b8ea3={};Object[_0x15dd84(0x194)](this[_0x15dd84(0x1ea)])[_0x15dd84(0x192)](_0x4a6f4a=>{const _0x5408bd=_0x15dd84;let _0x263cab=this[_0x5408bd(0x1bb)](_0x4a6f4a);_0x3d2381[_0x4a6f4a]=this['get'+_0x263cab+_0x5408bd(0x1f0)](),_0x4b8ea3=merge(_0x4b8ea3,_0x3d2381[_0x4a6f4a]);}),_0x4b8ea3=JSON[_0x15dd84(0x1ba)](_0x4b8ea3),_0x4b8ea3=MetaCrypto[_0x15dd84(0x1bc)](_0x4b8ea3),await MetaApi[_0x15dd84(0x1ac)](_0x15dd84(0x1ec),[{'id':this[_0x15dd84(0x1b0)],'template':_0x4b8ea3,'cuFlag':'M'}])&&await this[_0x15dd84(0x1a2)]();}[a0_0x3c6759(0x1d2)](){const _0x55552b=a0_0x3c6759;this[_0x55552b(0x1e3)](),this[_0x55552b(0x1b4)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object['keys'](this[_0x55552b(0x1ea)])['forEach'](_0x1d1678=>{const _0x4fd124=_0x55552b;let _0x168679=this['convertFirstCharUpperCase'](_0x1d1678);if(this[_0x4fd124(0x1b1)+_0x168679+_0x4fd124(0x1f0)])return this[_0x4fd124(0x1b1)+_0x168679+_0x4fd124(0x1f0)](this[_0x4fd124(0x1b4)][_0x1d1678]);});}async[a0_0x3c6759(0x198)](){const _0x269b5f=a0_0x3c6759;this[_0x269b5f(0x1d2)](),await this[_0x269b5f(0x1a2)]();}[a0_0x3c6759(0x1b8)](){const _0x9b7041=a0_0x3c6759;history[_0x9b7041(0x19e)]();}async[a0_0x3c6759(0x1a2)](){const _0x23e3db=a0_0x3c6759;let {menuId:_0x3cbe28=''}=this[_0x23e3db(0x1cf)]?.['params']?this[_0x23e3db(0x1cf)]['params']:{};if(this['menuId']=_0x3cbe28,!_0x3cbe28||''==_0x3cbe28)return void this['clear']();let _0x57224a=await MetaApi['findOne'](_0x23e3db(0x1d4),_0x3cbe28,_0x23e3db(0x1cb));if(!_0x57224a)return;try{JSON['parse'](MetaCrypto[_0x23e3db(0x19c)](_0x57224a[_0x23e3db(0x1ef)]));}catch(_0x41d302){return;}this[_0x23e3db(0x1e9)]=TermsUtil['tMenu'](_0x57224a[_0x23e3db(0x197)]),this[_0x23e3db(0x1a3)]=_0x57224a['template']?JSON[_0x23e3db(0x1c9)](MetaCrypto[_0x23e3db(0x19c)](_0x57224a[_0x23e3db(0x1ef)])):{};let {menu:_0x325af9={},gql:_0x44ac25={},button:_0x3eb213=[],grid_column:_0x20e68d=[],grid:_0x461abd={},search:_0x11cc6e=[],form:_0x1fe633=[],tab:_0x43e1e0=[],etc:_0x2c2e36={},gridEmphasized:_0x381eea=[]}=this[_0x23e3db(0x1a3)]?this['metaTemplate']:{};this[_0x23e3db(0x1e3)](),this[_0x23e3db(0x1b4)]={},this[_0x23e3db(0x1b4)][_0x23e3db(0x1d4)]=_0x325af9,this['dataStorage'][_0x23e3db(0x1a0)]=_0x44ac25,this[_0x23e3db(0x1b4)]['grid']=_0x461abd,this[_0x23e3db(0x1b4)][_0x23e3db(0x1e4)]=_0x1fe633,this[_0x23e3db(0x1b4)][_0x23e3db(0x1be)]=_0x43e1e0,this[_0x23e3db(0x1b4)]['etc']=_0x2c2e36,this[_0x23e3db(0x1b4)]['gridEmphasized']=_0x381eea,(_0x461abd[_0x23e3db(0x1ae)]?.[_0x23e3db(0x1dc)]||[])['forEach']((_0x42d893,_0x53a951)=>{const _0x7037b6=_0x23e3db;_0x42d893[_0x7037b6(0x1d5)]=0xa*(_0x53a951+0x1);}),this['dataStorage'][_0x23e3db(0x1da)]=_0x20e68d[_0x23e3db(0x1f4)](_0x341b2f=>{const _0x42d5a8=_0x23e3db;let _0x3f067d=(_0x461abd[_0x42d5a8(0x1ae)]?.['sorters']||[])[_0x42d5a8(0x203)](_0x136f47=>_0x136f47[_0x42d5a8(0x197)]==_0x341b2f[_0x42d5a8(0x197)]);return _0x3f067d&&_0x3f067d[_0x42d5a8(0x1fe)]>0x0?(_0x341b2f[_0x42d5a8(0x196)]=_0x3f067d[0x0][_0x42d5a8(0x1d5)],_0x341b2f['sort_desc']=!!_0x3f067d[0x0][_0x42d5a8(0x1dd)]&&_0x3f067d[0x0][_0x42d5a8(0x1dd)]):_0x341b2f[_0x42d5a8(0x196)]=0x0,_0x341b2f[_0x42d5a8(0x19d)]=(_0x461abd[_0x42d5a8(0x1c7)]?.[_0x42d5a8(0x1ca)]||[])['includes'](_0x341b2f[_0x42d5a8(0x197)]),_0x341b2f[_0x42d5a8(0x1e6)]=(_0x461abd[_0x42d5a8(0x1c7)]?.[_0x42d5a8(0x1e5)]||[])['includes'](_0x341b2f[_0x42d5a8(0x197)]),_0x341b2f[_0x42d5a8(0x1ab)]=_0x461abd[_0x42d5a8(0x1c7)]?.[_0x42d5a8(0x1bf)]==_0x341b2f[_0x42d5a8(0x197)],_0x341b2f;}),_0x11cc6e[_0x23e3db(0x199)](...(_0x44ac25['query']?.['filters']||[])[_0x23e3db(0x1f4)](_0x107aa8=>(_0x107aa8[_0x23e3db(0x1bd)]=!0x0,_0x107aa8))),this[_0x23e3db(0x1b4)][_0x23e3db(0x1b5)]=_0x11cc6e,_0x3eb213[_0x23e3db(0x199)](...(_0x461abd[_0x23e3db(0x1b2)]||[])[_0x23e3db(0x1f4)](_0x332a2c=>(_0x332a2c[_0x23e3db(0x1b7)]='grid-'+_0x332a2c['type'],_0x332a2c[_0x23e3db(0x1ad)]=_0x332a2c[_0x23e3db(0x1df)],_0x332a2c))),this[_0x23e3db(0x1b4)][_0x23e3db(0x1b2)]=_0x3eb213,Object[_0x23e3db(0x194)](this['tabData'])['forEach'](_0x4743d0=>{const _0x11dc96=_0x23e3db;let _0x24766e=this[_0x11dc96(0x1bb)](_0x4743d0);if(this[_0x11dc96(0x1b1)+_0x24766e+_0x11dc96(0x1f0)])return this[_0x11dc96(0x1b1)+_0x24766e+_0x11dc96(0x1f0)](this[_0x11dc96(0x1b4)][_0x4743d0]);});}async[a0_0x3c6759(0x1f3)](){const _0x435eb6=a0_0x3c6759;this[_0x435eb6(0x1e3)]();let _0x35d9ac=Object[_0x435eb6(0x194)](this['tabData']);for(let _0x284df0=0x0;_0x284df0<_0x35d9ac[_0x435eb6(0x1fe)];_0x284df0++){let _0x5cb79f=this[_0x435eb6(0x1bb)](_0x35d9ac[_0x284df0]);this[_0x435eb6(0x1b1)+_0x5cb79f+_0x435eb6(0x1e8)]&&await this[_0x435eb6(0x1b1)+_0x5cb79f+_0x435eb6(0x1e8)]();}}async[a0_0x3c6759(0x1d3)](_0x13c6a0,_0x140340,_0x2eef71){const _0xe27c03=a0_0x3c6759;!0x0===this[_0xe27c03(0x1af)]?(this['setTabData'](),await this[_0xe27c03(0x1a2)](),this[_0xe27c03(0x1e3)]()):(this['clear'](),this[_0xe27c03(0x1e1)]());}[a0_0x3c6759(0x1e3)](){const _0x31dedb=a0_0x3c6759;this[_0x31dedb(0x1ea)]||(this['tabData']={'menu':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x201)),'graphql':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1c4)),'grid':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1f5)),'column':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1fc)),'gridEmphasized':TermsUtil[_0x31dedb(0x1f8)]('grid_emphasized_config'),'button':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1de)),'search':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1db)),'form':TermsUtil['tLabel'](_0x31dedb(0x1a9)),'tab':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1fd)),'etc':TermsUtil[_0x31dedb(0x1f8)](_0x31dedb(0x1ff))});}['render'](){const _0x1f79a1=a0_0x3c6759;this[_0x1f79a1(0x1c1)]||(this['currentTabKey']=_0x1f79a1(0x1d4)),this[_0x1f79a1(0x1e3)]();let _0x5ce753=Object[_0x1f79a1(0x194)](this[_0x1f79a1(0x1ea)]);return this['tabData'][this[_0x1f79a1(0x1c1)]]?this[_0x1f79a1(0x1c1)]:_0x5ce753[0x0],html`
|
|
147
|
+
<h1>${this['menuName']}</h1>
|
|
148
148
|
<div class="tabs">
|
|
149
|
-
${
|
|
150
|
-
<div class="tab" ?activate="${
|
|
151
|
-
<span>${
|
|
149
|
+
${_0x5ce753[_0x1f79a1(0x1f4)](_0x351d55=>{const _0x209500=_0x1f79a1;let _0x12fc9d=this[_0x209500(0x1ea)][_0x351d55];return html`
|
|
150
|
+
<div class="tab" ?activate="${_0x351d55===this[_0x209500(0x1c1)]}" @click="${()=>this[_0x209500(0x1c1)]=_0x351d55}">
|
|
151
|
+
<span>${_0x12fc9d}</span>
|
|
152
152
|
</div>
|
|
153
153
|
`;})}
|
|
154
154
|
</div>
|
|
155
155
|
<div class="content-container">
|
|
156
|
-
${
|
|
157
|
-
<div class='tab-contents' style="${
|
|
158
|
-
${this[
|
|
156
|
+
${_0x5ce753[_0x1f79a1(0x1f4)](_0x1c303e=>{const _0x56e025=_0x1f79a1;let _0x3fc9f1=_0x56e025(0x1f1);return _0x1c303e==this[_0x56e025(0x1c1)]&&(_0x3fc9f1='display:flex'),html`
|
|
157
|
+
<div class='tab-contents' style="${_0x3fc9f1}">
|
|
158
|
+
${this[_0x56e025(0x1a6)](_0x1c303e)}
|
|
159
159
|
</div>
|
|
160
160
|
`;})}
|
|
161
161
|
</div>
|
|
162
|
-
`;}[
|
|
162
|
+
`;}[a0_0x3c6759(0x1a6)](_0x3dfcd7){const _0x578118=a0_0x3c6759;let _0x1914cc=this['convertFirstCharUpperCase'](_0x3dfcd7);return this[_0x578118(0x1d1)+_0x1914cc+_0x578118(0x1f7)]?this[_0x578118(0x1d1)+_0x1914cc+_0x578118(0x1f7)]():html``;}['convertFirstCharUpperCase'](_0x286080){const _0x4f4b02=a0_0x3c6759;return _0x286080[_0x4f4b02(0x1c8)](0x0)[_0x4f4b02(0x1cc)]()+_0x286080[_0x4f4b02(0x1a5)](0x1);}['getElementById'](_0x517698){const _0x4f74cc=a0_0x3c6759;return this[_0x4f74cc(0x200)][_0x4f74cc(0x1e0)]('#'+_0x517698);}['getElementValueById'](_0x2017b3){const _0x212213=a0_0x3c6759;let _0x5793dd=this[_0x212213(0x200)][_0x212213(0x1e0)]('#'+_0x2017b3);if(!_0x5793dd)return;let _0x377284='';if('select'==_0x5793dd['tagName']['toLowerCase']()){if(!_0x5793dd[_0x212213(0x1b3)]||0x0==_0x5793dd['options'][_0x212213(0x1fe)])return;_0x377284=_0x5793dd[_0x212213(0x1b3)][_0x5793dd[_0x212213(0x1e7)]][_0x212213(0x1aa)];}else{if('ox-grist'==_0x5793dd['tagName']['toLowerCase']()){if(!_0x5793dd[_0x212213(0x1b6)])return;if(!_0x5793dd[_0x212213(0x1b6)][_0x212213(0x19f)])return;if(0x0==_0x5793dd['dirtyData']['records'][_0x212213(0x1fe)])return;return _0x5793dd[_0x212213(0x1b6)]['records'];}if(_0x212213(0x1b9)==_0x5793dd[_0x212213(0x1ee)]['toLowerCase']())return _0x5793dd[_0x212213(0x1aa)];if(_0x212213(0x1cd)==_0x5793dd[_0x212213(0x1b7)][_0x212213(0x19b)]()){let _0x17b9fe=this[_0x212213(0x200)][_0x212213(0x1e0)]('#'+_0x2017b3+':checked');if(!_0x17b9fe)return;return _0x17b9fe['value'];}_0x377284=_0x5793dd[_0x212213(0x1aa)];}return _0x377284&&''!=_0x377284?_0x377284:void 0x0;}['sortRecordByRank'](_0x4b91cf){const _0x5b04ac=a0_0x3c6759;return _0x4b91cf?this[_0x5b04ac(0x1f9)](_0x4b91cf,'rank'):_0x4b91cf;}['sortRecordByField'](_0x444acd,_0x260a5f){const _0x59103e=a0_0x3c6759;return _0x444acd[_0x59103e(0x1f6)]((_0x424c05,_0x4c6c76)=>_0x424c05[_0x260a5f]-_0x4c6c76[_0x260a5f]),_0x444acd;}}customElements['define'](a0_0x3c6759(0x1a4),MetaGeneratorPage);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
<ox-grist auto-fetch id="search-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
const a0_0x353f0c=a0_0x5982;function a0_0x5982(_0x444630,_0x18e7d9){const _0x1a3f81=a0_0x1a3f();return a0_0x5982=function(_0x59825a,_0x3032a9){_0x59825a=_0x59825a-0x175;let _0x54f86f=_0x1a3f81[_0x59825a];return _0x54f86f;},a0_0x5982(_0x444630,_0x18e7d9);}(function(_0xd9dbed,_0x2514ef){const _0x15a1ff=a0_0x5982,_0x4c2810=_0xd9dbed();while(!![]){try{const _0x4ef34d=parseInt(_0x15a1ff(0x17e))/0x1*(-parseInt(_0x15a1ff(0x18a))/0x2)+-parseInt(_0x15a1ff(0x186))/0x3*(-parseInt(_0x15a1ff(0x19c))/0x4)+-parseInt(_0x15a1ff(0x185))/0x5*(-parseInt(_0x15a1ff(0x18f))/0x6)+parseInt(_0x15a1ff(0x199))/0x7+-parseInt(_0x15a1ff(0x19b))/0x8+-parseInt(_0x15a1ff(0x1a5))/0x9+-parseInt(_0x15a1ff(0x184))/0xa;if(_0x4ef34d===_0x2514ef)break;else _0x4c2810['push'](_0x4c2810['shift']());}catch(_0x508aa8){_0x4c2810['push'](_0x4c2810['shift']());}}}(a0_0x1a3f,0x73802));function a0_0x1a3f(){const _0x4b2ac3=['FILTER_OPERATORS','query','setSearchConfigTabConfig','rank','4200nniCqy','tLabel','getSearchConfigTabValues','searchTabGridConfig','gql','filter','delete','gutter','fetch','integer','5774062DpDXmh','setSearchConfigTabValues','1318080idaGlf','12gMxOjv','hidden','map','default_value','center','object','search_operator','searchTabGrist','deleteRow','183411uzHrbk','forEach','push','right','shadowRoot','operator','sortRecordByRank','value','fetchSearchTabHandler','getGristGuttersConfig','button','boolean','258jQGltv','viewSearchData','filters','name','select','string','3411600fpbULK','4505hiLmfA','192177NkKobT','getElementValueById','left','search','5026olrZSx'];a0_0x1a3f=function(){return _0x4b2ac3;};return a0_0x1a3f();}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=_0x18d87c=>class extends _0x18d87c{[a0_0x353f0c(0x19a)](_0x4a9b17){const _0x591c3d=a0_0x353f0c;let _0x48d78f=_0x4a9b17?.[_0x591c3d(0x19e)]((_0x4f13fe,_0x545ad2)=>{const _0x16a3d7=_0x591c3d;let _0x4f7a16=_0x545ad2+0x1,_0x375c9a={};return _0x16a3d7(0x1a1)==typeof _0x4f13fe?Object['assign'](_0x375c9a,_0x4f13fe):(_0x375c9a['name']=_0x4f13fe,_0x375c9a[_0x16a3d7(0x177)]='filter'),_0x375c9a[_0x16a3d7(0x18e)]=0xa*_0x4f7a16,_0x375c9a['id']=_0x4f7a16,_0x375c9a;});this[_0x591c3d(0x17f)]=_0x48d78f||[],this[_0x591c3d(0x1a3)]?.[_0x591c3d(0x197)]();}[a0_0x353f0c(0x191)](){const _0x1fee2e=a0_0x353f0c;let _0x498d19={'search':[],'gql':{'query':{'filters':[]}}},_0x71f366=this[_0x1fee2e(0x187)]('search-tab-grid');return this[_0x1fee2e(0x178)](_0x71f366)?.[_0x1fee2e(0x1a6)](_0x101517=>{const _0x5eba44=_0x1fee2e;var {name:_0x45cd03,operator:_0xadc39e='eq',hidden:_0xf52d71=!0x1,value:_0x39d9f9}=_0x101517;if(_0x45cd03){if(_0x5eba44(0x194)==_0xadc39e)_0x498d19[_0x5eba44(0x189)][_0x5eba44(0x1a7)](_0x45cd03);else{let _0x8e3a9c={'name':_0x45cd03,'operator':_0xadc39e};0x1==_0xf52d71?(_0x8e3a9c[_0x5eba44(0x179)]=_0x39d9f9,_0x498d19[_0x5eba44(0x193)][_0x5eba44(0x18c)][_0x5eba44(0x180)][_0x5eba44(0x1a7)](_0x8e3a9c)):(_0x8e3a9c[_0x5eba44(0x179)]=_0x39d9f9,_0x498d19[_0x5eba44(0x189)][_0x5eba44(0x1a7)](_0x8e3a9c));}}}),_0x498d19;}['renderSearchConfigTab'](){const _0x51eded=a0_0x353f0c;return html`
|
|
2
|
+
<ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x51eded(0x192)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this['fetchSearchTabHandler']['bind'](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x353f0c(0x1a3)](){const _0x45485f=a0_0x353f0c;return this[_0x45485f(0x176)]['querySelector']('#search-tab-grid');}async[a0_0x353f0c(0x17a)](){const _0x669870=a0_0x353f0c;return{'total':0x0,'records':this[_0x669870(0x17f)]||[]};}async[a0_0x353f0c(0x18d)](){const _0x1af0a3=a0_0x353f0c;let _0x53305e=await MetaApi['getCodeSelectorData'](_0x1af0a3(0x18b));this['searchTabGridConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x1af0a3(0x18e),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x1af0a3(0x17b)](!0x1,!0x1),{'type':_0x1af0a3(0x196),'gutterName':_0x1af0a3(0x17c),'icon':_0x1af0a3(0x195),'handlers':{'click':(_0x14ec14,_0x49f503,_0x5c82e8,_0x421bf7,_0x443d55)=>{const _0x83df9d=_0x1af0a3;_0x421bf7['id']&&this[_0x83df9d(0x1a4)](this[_0x83df9d(0x1a3)],_0x421bf7);}}},{'type':_0x1af0a3(0x183),'name':'id','hidden':!0x0},{'type':_0x1af0a3(0x198),'name':'rank','header':TermsUtil['tLabel'](_0x1af0a3(0x18e)),'sortable':!0x1,'width':0x32,'record':{'align':_0x1af0a3(0x175),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1af0a3(0x183),'name':_0x1af0a3(0x181),'header':TermsUtil[_0x1af0a3(0x190)](_0x1af0a3(0x181)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x1af0a3(0x188),'editable':!0x0,'mandatory':!0x0}},{'type':_0x1af0a3(0x182),'name':_0x1af0a3(0x177),'header':TermsUtil[_0x1af0a3(0x190)](_0x1af0a3(0x1a2)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x1,'options':_0x53305e}},{'type':_0x1af0a3(0x17d),'name':_0x1af0a3(0x19d),'header':TermsUtil['tLabel'](_0x1af0a3(0x19d)),'sortable':!0x1,'width':0x37,'record':{'align':_0x1af0a3(0x1a0),'mandatory':!0x1,'editable':!0x0}},{'type':'string','name':_0x1af0a3(0x179),'header':TermsUtil[_0x1af0a3(0x190)](_0x1af0a3(0x19f)),'sortable':!0x1,'width':0x2ee,'record':{'align':_0x1af0a3(0x188),'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_0x5e1f83=a0_0x218c;(function(_0xb095b,_0x102638){const _0x19e892=a0_0x218c,_0xde88ec=_0xb095b();while(!![]){try{const _0x4515e3=-parseInt(_0x19e892(0x90))/0x1+-parseInt(_0x19e892(0x94))/0x2*(-parseInt(_0x19e892(0x8b))/0x3)+-parseInt(_0x19e892(0x9a))/0x4+-parseInt(_0x19e892(0x99))/0x5+parseInt(_0x19e892(0x84))/0x6*(-parseInt(_0x19e892(0x9e))/0x7)+parseInt(_0x19e892(0x9f))/0x8+parseInt(_0x19e892(0x97))/0x9*(parseInt(_0x19e892(0x92))/0xa);if(_0x4515e3===_0x102638)break;else _0xde88ec['push'](_0xde88ec['shift']());}catch(_0x319eee){_0xde88ec['push'](_0xde88ec['shift']());}}}(a0_0xcb2b,0xbb2b8));import{html}from'lit-element';function a0_0xcb2b(){const _0xb169bc=['routing','110sEVpVK','tabTabGridConfig','2wqPVNV','getGristSelectableConfig','tabTabGrist','2406069QjJpvO','param_field','4231000PQaOsZ','4871948NHbQoC','button','tagname','setTabConfigTabConfig','43309AsTFIZ','4473592ySyQBE','left','getGristGuttersConfig','sortRecordByRank','menu','tLabel','#tab-tab-grid','right','querySelector','fetchTabTabHandler','page_location','location','icon','delete','fetch','parent_id','map','forEach','viewTabData','name','integer','942PEqmsM','rank','parent_field','deleteRow','params','push','tag','1644453eqQlaa','gutter','string','tab-tab-grid','display','245907zfUELP'];a0_0xcb2b=function(){return _0xb169bc;};return a0_0xcb2b();}function a0_0x218c(_0x2c61df,_0x3835ce){const _0xcb2bab=a0_0xcb2b();return a0_0x218c=function(_0x218cf5,_0x57448a){_0x218cf5=_0x218cf5-0x74;let _0x1e02e1=_0xcb2bab[_0x218cf5];return _0x1e02e1;},a0_0x218c(_0x2c61df,_0x3835ce);}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=_0x4cf2b4=>class extends _0x4cf2b4{['setTabConfigTabValues'](_0x187a5b){const _0x2442b7=a0_0x218c;let _0x167e77=_0x187a5b?.[_0x2442b7(0x7f)]((_0x1049ba,_0x582c33)=>{const _0x15fceb=_0x2442b7;let _0x7de9e5=_0x582c33+0x1,_0x3c957c={};return _0x3c957c['rank']=0xa*_0x7de9e5,_0x3c957c['id']=_0x7de9e5,_0x3c957c['name']=_0x1049ba[_0x15fceb(0x82)],_0x3c957c[_0x15fceb(0x8f)]=_0x1049ba[_0x15fceb(0x8f)],_0x3c957c['tagname']=_0x1049ba[_0x15fceb(0x9c)],_0x3c957c[_0x15fceb(0x7b)]=_0x1049ba[_0x15fceb(0x7b)],_0x3c957c['location']=_0x1049ba[_0x15fceb(0x7a)],_0x3c957c[_0x15fceb(0x86)]=_0x1049ba[_0x15fceb(0x86)],_0x3c957c[_0x15fceb(0x98)]=_0x1049ba[_0x15fceb(0x98)],_0x3c957c[_0x15fceb(0xa3)]=_0x1049ba['menu'],_0x3c957c;});this[_0x2442b7(0x81)]=_0x167e77||[],this[_0x2442b7(0x96)]?.[_0x2442b7(0x7d)]();}['getTabConfigTabValues'](){const _0x1fd95a=a0_0x218c;let _0x307c10={'tab':[]},_0x52fa8e=this['getElementValueById'](_0x1fd95a(0x8e));return this[_0x1fd95a(0xa2)](_0x52fa8e)?.[_0x1fd95a(0x80)](_0x7f2df6=>{const _0xf6e6db=_0x1fd95a;var {name:_0xdb86eb,display:_0x522ec1,tagname:_0x378d85,location:_0x134b69,parent_field:_0x5385c1,param_field:_0x1dac93,menu:_0x57549c,icon:_0x3155e1}=_0x7f2df6;_0xdb86eb&&_0x378d85&&_0x134b69&&_0x57549c&&(_0x522ec1||(_0x522ec1=_0xdb86eb),_0x5385c1||(_0x5385c1='id'),_0x1dac93||(_0x1dac93=_0xf6e6db(0x98)),_0x307c10['tab'][_0xf6e6db(0x89)]({'name':_0xdb86eb,'display':_0x522ec1,'tagname':_0x378d85,'location':_0x134b69,'parent_field':_0x5385c1,'param_field':_0x1dac93,'menu':_0x57549c,'icon':_0x3155e1}));}),_0x307c10;}['renderTabConfigTab'](){const _0x4f8a56=a0_0x218c;return html`
|
|
2
|
+
<ox-grist auto-fetch id="tab-tab-grid" .config=${this[_0x4f8a56(0x93)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x4f8a56(0x78)]['bind'](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x5e1f83(0x96)](){const _0x3582c1=a0_0x5e1f83;return this['shadowRoot'][_0x3582c1(0x77)](_0x3582c1(0x75));}async[a0_0x5e1f83(0x78)](){const _0x2148d8=a0_0x5e1f83;return{'total':0x0,'records':this[_0x2148d8(0x81)]||[]};}async[a0_0x5e1f83(0x9d)](){const _0x960f69=a0_0x5e1f83;this[_0x960f69(0x93)]={'rows':MetaApi[_0x960f69(0x95)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x960f69(0xa1)](!0x1,!0x1),{'type':_0x960f69(0x8c),'gutterName':_0x960f69(0x9b),'icon':_0x960f69(0x7c),'handlers':{'click':(_0x2e4539,_0x588d91,_0x217cba,_0x561a4e,_0x285a68)=>{const _0x565438=_0x960f69;_0x561a4e['id']&&this[_0x565438(0x87)](this[_0x565438(0x96)],_0x561a4e);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x960f69(0x83),'name':_0x960f69(0x85),'header':TermsUtil[_0x960f69(0x74)](_0x960f69(0x85)),'sortable':!0x1,'width':0x32,'record':{'align':_0x960f69(0x76),'editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':_0x960f69(0x82),'header':TermsUtil['tLabel']('name'),'sortable':!0x1,'width':0x6e,'record':{'align':_0x960f69(0xa0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':'display','header':TermsUtil[_0x960f69(0x74)](_0x960f69(0x8f)),'sortable':!0x1,'width':0x6e,'record':{'align':_0x960f69(0xa0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':_0x960f69(0x7b),'header':TermsUtil[_0x960f69(0x74)](_0x960f69(0x7b)),'sortable':!0x0,'width':0x55,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':_0x960f69(0xa3),'header':TermsUtil[_0x960f69(0x74)](_0x960f69(0x91)),'sortable':!0x1,'width':0x96,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':_0x960f69(0x9c),'header':TermsUtil[_0x960f69(0x74)](_0x960f69(0x8a)),'sortable':!0x1,'width':0x96,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':_0x960f69(0x7a),'header':TermsUtil['tLabel'](_0x960f69(0x79)),'sortable':!0x1,'width':0x145,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'parent_field','header':TermsUtil['tLabel'](_0x960f69(0x7e)),'sortable':!0x1,'width':0x64,'record':{'align':_0x960f69(0xa0),'editable':!0x0,'mandatory':!0x0}},{'type':_0x960f69(0x8d),'name':_0x960f69(0x98),'header':TermsUtil[_0x960f69(0x74)](_0x960f69(0x88)),'sortable':!0x1,'width':0x5a,'record':{'align':_0x960f69(0xa0),'editable':!0x0,'mandatory':!0x0}}]};}};
|