@things-factory/operato-tools 6.1.21 → 6.1.22
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 +3 -3
- 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 +23 -23
- package/client/pages/generator/grid-config-tab-mixin.js +22 -22
- package/client/pages/generator/grid-emphasized-config-tab-mixin.js +8 -8
- package/client/pages/generator/menu-config-tab-mixin.js +11 -11
- package/client/pages/generator/meta-generator-page.js +11 -11
- package/client/pages/generator/search-config-tab-mixin.js +3 -3
- package/client/pages/generator/tab-config-tab-mixin.js +4 -4
- package/client/pages/main.js +4 -4
- package/client/reducers/main.js +1 -1
- package/package.json +4 -4
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/tool-entity/create-menu.js +1 -1
- package/server/service/tool-entity/create-service.js +1 -1
- package/server/service/tool-secret/tool-permission.js +1 -1
- package/server/service/tool-secret/tool-resolver.js +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xd0fc39=a0_0x203f;(function(_0x4633d8,_0x52e2db){const _0x4f2b54=a0_0x203f,_0x283da8=_0x4633d8();while(!![]){try{const _0x1b07f1=parseInt(_0x4f2b54(0x210))/0x1*(parseInt(_0x4f2b54(0x208))/0x2)+parseInt(_0x4f2b54(0x1d6))/0x3*(parseInt(_0x4f2b54(0x203))/0x4)+parseInt(_0x4f2b54(0x1f8))/0x5*(parseInt(_0x4f2b54(0x1dc))/0x6)+-parseInt(_0x4f2b54(0x1fc))/0x7+parseInt(_0x4f2b54(0x1e5))/0x8*(-parseInt(_0x4f2b54(0x1e1))/0x9)+parseInt(_0x4f2b54(0x1f5))/0xa*(parseInt(_0x4f2b54(0x20d))/0xb)+-parseInt(_0x4f2b54(0x1f7))/0xc*(-parseInt(_0x4f2b54(0x1e3))/0xd);if(_0x1b07f1===_0x52e2db)break;else _0x283da8['push'](_0x283da8['shift']());}catch(_0x197c8a){_0x283da8['push'](_0x283da8['shift']());}}}(a0_0x3dc4,0xce573));import{html}from'lit-element';function a0_0x3dc4(){const _0x150444=['gridViewModes','view_mode','pages','4971ioNBzY','grid_desk_view','row','viewGridData','getElementValueById','tLabel','6qudasz','grid_view_use','option','grid_use_filter','push','18DJFiQh','_view_use','13143MKTmgb','unlimited','5119216GcCMkQ','unsupport','setGridConfigTabDetaultValues','true','grid_support_view','grid','grid_support_multi_select','length','list_view_use','setGridConfigTabConfig','GRID','toLowerCase','grid_term_unlimited','use_row_checker','grid_term_default','multiple_select','450xCouEh','use_filter_form','5868qLgvUo','4540685EXRbKa','gridPageOptions','GRID_PAGE_OPTIONS','mobile_mode','10570966WTJGgU','getGridConfigTabValues','name','GRID_VIEW_MODE','includes','grid_pagination','grid_use_row_check','2512QXOdyR','unuse','grid_term_','grid_term_100','CARD','5294csOgzG','LIST','grid_mobile_view','grid_multi_select','map','247379lgGzdB','grid_row_check_use','description','68zblUoH','support'];a0_0x3dc4=function(){return _0x150444;};return a0_0x3dc4();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x203f(_0x43cf3f,_0x2086b4){const _0x3dc453=a0_0x3dc4();return a0_0x203f=function(_0x203f87,_0x1d2307){_0x203f87=_0x203f87-0x1d3;let _0x1fefad=_0x3dc453[_0x203f87];return _0x1fefad;},a0_0x203f(_0x43cf3f,_0x2086b4);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0x15d243=>class extends _0x15d243{['setGridConfigTabValues'](_0x58a38d){const _0x1d62fe=a0_0x203f;if(_0x58a38d){var {mobile_mode:_0x32d83d='',desk_mode:_0x1b4377='',pages:_0x4319e4=[],use_row_checker:_0x1881a4=!0x0,view_mode:_0x36e71e=[]}=_0x58a38d['option']||{};let _0x24b905=(_0x58a38d[_0x1d62fe(0x1d8)]||{'multiple_select':!0x1})[_0x1d62fe(0x1f4)],_0x429f4d=_0x1d62fe(0x1e4)==_0x4319e4?'grid_term_unlimited':0x0==_0x4319e4[_0x1d62fe(0x1ec)]?'':0x14==_0x4319e4[0x0]?_0x1d62fe(0x1f3):_0x1d62fe(0x205)+_0x4319e4[0x0];this[_0x1d62fe(0x1d9)]={'mobile_mode':_0x32d83d,'desk_mode':_0x1b4377,'use_row_checker':_0x1881a4,'pages':_0x429f4d,'view_mode':_0x36e71e,'multiple_select':_0x24b905,'use_filter_form':_0x58a38d[_0x1d62fe(0x1f6)]};}else this[_0x1d62fe(0x1e7)]();}[a0_0xd0fc39(0x1fd)](){const _0x2e82e0=a0_0xd0fc39;let _0x19844a={'grid':{'option':{},'row':{'click':'select-row-toggle'}}},_0x21d6c7=this[_0x2e82e0(0x1da)](_0x2e82e0(0x20e)),_0x3c9e1e=this[_0x2e82e0(0x1da)](_0x2e82e0(0x20b)),_0x47d740=this[_0x2e82e0(0x1da)]('grid_desk_view'),_0x3f1422=this[_0x2e82e0(0x1da)](_0x2e82e0(0x20a)),_0x8771b8=this[_0x2e82e0(0x1da)]('grid_use_filter'),_0x27bda2=this[_0x2e82e0(0x1da)](_0x2e82e0(0x201)),_0x1a6e8e=this['getElementValueById'](_0x2e82e0(0x1dd)),_0x29df0f=this[_0x2e82e0(0x1da)](_0x2e82e0(0x1ed)),_0x12a521=this[_0x2e82e0(0x1da)]('card_view_use');return _0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1f6)]=_0x2e82e0(0x1e8)==_0x8771b8,_0x19844a['grid'][_0x2e82e0(0x1d8)]['multiple_select']='true'==_0x3c9e1e,_0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1de)][_0x2e82e0(0x1f2)]=_0x2e82e0(0x1e8)==_0x21d6c7,_0x19844a[_0x2e82e0(0x1ea)]['option'][_0x2e82e0(0x1fb)]=_0x3f1422,_0x19844a[_0x2e82e0(0x1ea)]['option']['desk_mode']=_0x47d740,_0x2e82e0(0x1f3)==_0x27bda2?_0x19844a[_0x2e82e0(0x1ea)]['option'][_0x2e82e0(0x1d5)]=[0x14,0x1e,0x32,0x64]:'grid_term_50'==_0x27bda2?_0x19844a[_0x2e82e0(0x1ea)]['option'][_0x2e82e0(0x1d5)]=[0x32,0x64,0x1f4,0x3e8]:_0x2e82e0(0x206)==_0x27bda2?_0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1de)][_0x2e82e0(0x1d5)]=[0x64,0x1f4,0x3e8,0x1388]:'grid_term_1000'==_0x27bda2?_0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1de)][_0x2e82e0(0x1d5)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x2e82e0(0x1f1)==_0x27bda2&&(_0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1de)]['pages']=_0x2e82e0(0x1e4)),_0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1de)][_0x2e82e0(0x1d4)]=[],_0x2e82e0(0x1e8)==_0x1a6e8e&&_0x19844a[_0x2e82e0(0x1ea)][_0x2e82e0(0x1de)]['view_mode']['push'](_0x2e82e0(0x1ef)),_0x2e82e0(0x1e8)==_0x29df0f&&_0x19844a['grid']['option'][_0x2e82e0(0x1d4)][_0x2e82e0(0x1e0)]('LIST'),_0x2e82e0(0x1e8)==_0x12a521&&_0x19844a['grid'][_0x2e82e0(0x1de)]['view_mode'][_0x2e82e0(0x1e0)](_0x2e82e0(0x207)),_0x19844a;}async[a0_0xd0fc39(0x1ee)](){const _0x2fa519=a0_0xd0fc39;let _0x4024df=await MetaApi['codeItems'](_0x2fa519(0x1fa)),_0x324fcb=await MetaApi['codeItems'](_0x2fa519(0x1ff));this[_0x2fa519(0x1d3)]=_0x324fcb,this[_0x2fa519(0x1f9)]=_0x4024df;}[a0_0xd0fc39(0x1e7)](){const _0x206163=a0_0xd0fc39;this[_0x206163(0x1d9)]||(this['viewGridData']={'mobile_mode':this[_0x206163(0x1d3)]?this[_0x206163(0x1d3)][0x1]:_0x206163(0x209),'desk_mode':this['gridViewModes']?this[_0x206163(0x1d3)][0x0]:_0x206163(0x1ef),'use_row_checker':!0x0,'pages':_0x206163(0x1f3),'view_mode':[...this[_0x206163(0x1d3)]?this[_0x206163(0x1d3)]:[_0x206163(0x1ef),'LIST','CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}['renderGridConfigTab'](){const _0x4c4074=a0_0xd0fc39;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[_0x4c4074(0x1db)](_0x4c4074(0x202))}
|
|
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[_0x4c4074(0x1d9)]['use_row_checker']}>${TermsUtil[_0x4c4074(0x1db)]('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[_0x4c4074(0x1d9)]['use_row_checker']}>${TermsUtil[_0x4c4074(0x1db)](_0x4c4074(0x204))}</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[_0x4c4074(0x1db)](_0x4c4074(0x1eb))}
|
|
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[_0x4c4074(0x1d9)][_0x4c4074(0x1f4)]}>${TermsUtil[_0x4c4074(0x1db)](_0x4c4074(0x211))}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this[
|
|
25
|
+
?checked=${!this[_0x4c4074(0x1d9)][_0x4c4074(0x1f4)]}>${TermsUtil['tLabel'](_0x4c4074(0x1e6))}</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[_0x4c4074(0x1db)](_0x4c4074(0x1df))}
|
|
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[_0x4c4074(0x1d9)][_0x4c4074(0x1f6)]}>${TermsUtil[_0x4c4074(0x1db)]('use')}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0x4c4074(0x1d9)][_0x4c4074(0x1f6)]}>${TermsUtil['tLabel'](_0x4c4074(0x204))}</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['tLabel'](_0x4c4074(0x1d7))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this[
|
|
49
|
+
${this['gridViewModes']?.['map'](_0x2d4b35=>html`<option value=${_0x2d4b35[_0x4c4074(0x1fe)]} ?selected=${this[_0x4c4074(0x1d9)]['desk_mode']==_0x2d4b35[_0x4c4074(0x1fe)]}>${_0x2d4b35[_0x4c4074(0x20f)]}</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[_0x4c4074(0x1db)](_0x4c4074(0x20a))}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this[
|
|
59
|
+
${this[_0x4c4074(0x1d3)]?.[_0x4c4074(0x20c)](_0x19581b=>html`<option value=${_0x19581b[_0x4c4074(0x1fe)]} ?selected=${this[_0x4c4074(0x1d9)][_0x4c4074(0x1fb)]==_0x19581b['name']}>${_0x19581b[_0x4c4074(0x20f)]}</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[_0x4c4074(0x1db)](_0x4c4074(0x1e9))}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0x4c4074(0x1d3)]?.[_0x4c4074(0x20c)](_0x1a452e=>html`
|
|
69
|
+
<span>${_0x1a452e['name']}
|
|
70
|
+
<input type="radio" name=${_0x1a452e[_0x4c4074(0x1fe)][_0x4c4074(0x1f0)]()+_0x4c4074(0x1e2)} id=${_0x1a452e[_0x4c4074(0x1fe)]['toLowerCase']()+_0x4c4074(0x1e2)} ?checked=${this[_0x4c4074(0x1d9)][_0x4c4074(0x1d4)][_0x4c4074(0x200)](_0x1a452e['name'])} value="true">${TermsUtil[_0x4c4074(0x1db)]('use')}</input>
|
|
71
|
+
<input type="radio" name=${_0x1a452e[_0x4c4074(0x1fe)][_0x4c4074(0x1f0)]()+_0x4c4074(0x1e2)} id=${_0x1a452e['name'][_0x4c4074(0x1f0)]()+_0x4c4074(0x1e2)} ?checked=${!this[_0x4c4074(0x1d9)]['view_mode'][_0x4c4074(0x200)](_0x1a452e[_0x4c4074(0x1fe)])} value="false">${TermsUtil[_0x4c4074(0x1db)](_0x4c4074(0x204))}</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[_0x4c4074(0x1db)](_0x4c4074(0x201))}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this['gridPageOptions']?.[
|
|
81
|
+
${this['gridPageOptions']?.['map'](_0x561ee2=>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=${_0x561ee2[_0x4c4074(0x1fe)]} ?checked=${this['viewGridData']['pages']==_0x561ee2[_0x4c4074(0x1fe)]}>${TermsUtil[_0x4c4074(0x1db)](_0x561ee2[_0x4c4074(0x1fe)])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3a2c83=a0_0x5be6;function a0_0x862d(){const _0x26836a=['4602006YYFhwH','#column-emphasized-grist','25316mpPuoE','fontColor','getGridEmphasizedConfigTabValues','getElementValueById','rowEmphasizedConfig','1972728BHFwSs','delete','rank','shadowRoot','string','setGridEmphasizedConfigTabValues','map','emphasizedConfigTabRowEmphasizedGrist','getGristGuttersConfig','232buJVil','push','gutter','backgroundColor','column-emphasized-grist','row','74395kuLKmP','button','columnEmphasizedData','setGridEmphasizedConfigTabDefaultValues','22MCkRKM','GRID','logic','18HWMdTw','deleteRow','viewEmphasizedData','emphasizedConfigTabColumnEmphasizedGrist','3445085MQOQal','forEach','222whXItq','#row-emphasized-grist','code-input','1949540ZPEPbB','rowEmphasizedData','tLabel','fetchColumnEmphasized','columnEmphasizedConfig','144935eDYSGe','sortRecordByRank','bind','right','keys','left','fetchRowEmphasized','font-color','row-emphasized-grist','setGridEmphasizedConfigTabConfig','fetch','background-color','getGristSelectableConfig','column','grid_row_emphasized_config','grid_column_emphasized_config','querySelector','integer'];a0_0x862d=function(){return _0x26836a;};return a0_0x862d();}(function(_0x157768,_0x36fad7){const _0x26d0d7=a0_0x5be6,_0x2aa9e8=_0x157768();while(!![]){try{const _0x31cbec=-parseInt(_0x26d0d7(0x1cb))/0x1*(parseInt(_0x26d0d7(0x1d2))/0x2)+parseInt(_0x26d0d7(0x1d8))/0x3*(parseInt(_0x26d0d7(0x1f4))/0x4)+parseInt(_0x26d0d7(0x1d6))/0x5+parseInt(_0x26d0d7(0x1f2))/0x6+-parseInt(_0x26d0d7(0x1e0))/0x7*(parseInt(_0x26d0d7(0x1c5))/0x8)+parseInt(_0x26d0d7(0x1f9))/0x9+-parseInt(_0x26d0d7(0x1db))/0xa*(parseInt(_0x26d0d7(0x1cf))/0xb);if(_0x31cbec===_0x36fad7)break;else _0x2aa9e8['push'](_0x2aa9e8['shift']());}catch(_0x53e3ac){_0x2aa9e8['push'](_0x2aa9e8['shift']());}}}(a0_0x862d,0x76140));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x5be6(_0x46bc83,_0x2ec04d){const _0x862dc6=a0_0x862d();return a0_0x5be6=function(_0x5be6ce,_0x41771a){_0x5be6ce=_0x5be6ce-0x1bd;let _0x345099=_0x862dc6[_0x5be6ce];return _0x345099;},a0_0x5be6(_0x46bc83,_0x2ec04d);}export const GridEmphasizedConfigTabMixin=_0x53a83e=>class extends _0x53a83e{[a0_0x3a2c83(0x1c1)](_0x50b9e3){const _0xf00362=a0_0x3a2c83;if(_0x50b9e3){this['viewEmphasizedData']={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0x5642e1=0x1;this[_0xf00362(0x1d4)][_0xf00362(0x1dc)]=(_0x50b9e3[_0xf00362(0x1ca)]||[])[_0xf00362(0x1c2)](_0x25c0fc=>({'id':_0x5642e1,'rank':_0x5642e1++,'backgroundColor':_0x25c0fc['backgroundColor']||'','fontColor':_0x25c0fc[_0xf00362(0x1f5)]||'','logic':_0x25c0fc['logic']||''})),_0x5642e1=0x1;let _0x664ff0=_0x50b9e3[_0xf00362(0x1ed)]||[];Object[_0xf00362(0x1e4)](_0x664ff0)[_0xf00362(0x1d7)](_0x49f921=>{const _0x426638=_0xf00362;let _0x143a57=_0x664ff0[_0x49f921]||[],_0x566dac=0x1;_0x143a57[_0x426638(0x1d7)](_0x53a2c3=>{const _0x47dccf=_0x426638;this[_0x47dccf(0x1d4)][_0x47dccf(0x1cd)][_0x47dccf(0x1c6)]({'id':_0x5642e1++,'rank':_0x566dac++,'column':_0x49f921,'backgroundColor':_0x53a2c3[_0x47dccf(0x1c8)]||'','fontColor':_0x53a2c3[_0x47dccf(0x1f5)]||'','logic':_0x53a2c3[_0x47dccf(0x1d1)]||''});});}),this[_0xf00362(0x1d5)]?.['fetch'](),this['emphasizedConfigTabRowEmphasizedGrist']?.[_0xf00362(0x1ea)]();}else this['setGridEmphasizedConfigTabDefaultValues']();}[a0_0x3a2c83(0x1f6)](){const _0x120a2c=a0_0x3a2c83;let _0x2c29c8=this[_0x120a2c(0x1f7)](_0x120a2c(0x1e8)),_0x26b606=this[_0x120a2c(0x1f7)](_0x120a2c(0x1c9)),_0x16a35e=[];this['sortRecordByRank'](_0x2c29c8)?.[_0x120a2c(0x1d7)](_0x4da89c=>{const _0x2ce494=_0x120a2c;_0x16a35e[_0x2ce494(0x1c6)]({'backgroundColor':_0x4da89c[_0x2ce494(0x1c8)],'fontColor':_0x4da89c[_0x2ce494(0x1f5)],'logic':_0x4da89c[_0x2ce494(0x1d1)]});});let _0x2997fa={};return this[_0x120a2c(0x1e1)](_0x26b606)?.[_0x120a2c(0x1d7)](_0x252e77=>{const _0xedfd0=_0x120a2c;_0x2997fa[_0x252e77['column']]||(_0x2997fa[_0x252e77[_0xedfd0(0x1ed)]]=[]),_0x2997fa[_0x252e77['column']][_0xedfd0(0x1c6)]({'backgroundColor':_0x252e77[_0xedfd0(0x1c8)],'fontColor':_0x252e77[_0xedfd0(0x1f5)],'logic':_0x252e77[_0xedfd0(0x1d1)]});}),{'gridEmphasized':{'row':_0x16a35e||[],'column':_0x2997fa||{}}};}get[a0_0x3a2c83(0x1c3)](){const _0x4294b6=a0_0x3a2c83;return this[_0x4294b6(0x1bf)][_0x4294b6(0x1f0)](_0x4294b6(0x1d9));}get['emphasizedConfigTabColumnEmphasizedGrist'](){const _0x423cab=a0_0x3a2c83;return this[_0x423cab(0x1bf)][_0x423cab(0x1f0)](_0x423cab(0x1f3));}[a0_0x3a2c83(0x1e9)](){const _0x2cfc1d=a0_0x3a2c83;this[_0x2cfc1d(0x1f8)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x2cfc1d(0x1c4)](!0x1,!0x1),{'type':_0x2cfc1d(0x1c7),'gutterName':_0x2cfc1d(0x1cc),'icon':_0x2cfc1d(0x1bd),'handlers':{'click':(_0x4f4957,_0x51c803,_0x40deb3,_0x5064d6,_0x1b2b10)=>{const _0x4a2449=_0x2cfc1d;_0x5064d6['id']&&this[_0x4a2449(0x1d3)](this[_0x4a2449(0x1c3)],_0x5064d6);}}},{'type':_0x2cfc1d(0x1c0),'name':'id','hidden':!0x0},{'type':'integer','name':_0x2cfc1d(0x1be),'header':TermsUtil[_0x2cfc1d(0x1dd)](_0x2cfc1d(0x1be)),'sortable':!0x0,'width':0x41,'record':{'align':_0x2cfc1d(0x1e3),'editable':!0x0,'mandatory':!0x0}},{'type':_0x2cfc1d(0x1c0),'name':'backgroundColor','header':TermsUtil['tLabel'](_0x2cfc1d(0x1eb)),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x2cfc1d(0x1c0),'name':_0x2cfc1d(0x1f5),'header':TermsUtil[_0x2cfc1d(0x1dd)]('font-color'),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x2cfc1d(0x1da),'name':_0x2cfc1d(0x1d1),'header':TermsUtil[_0x2cfc1d(0x1dd)]('logic'),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x2cfc1d(0x1df)]={'rows':MetaApi[_0x2cfc1d(0x1ec)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x2cfc1d(0x1c7),'gutterName':_0x2cfc1d(0x1cc),'icon':_0x2cfc1d(0x1bd),'handlers':{'click':(_0x3efda0,_0x4e3d92,_0x2c3bde,_0x37f157,_0x383d83)=>{const _0x7a2db5=_0x2cfc1d;_0x37f157['id']&&this[_0x7a2db5(0x1d3)](this['emphasizedConfigTabColumnEmphasizedGrist'],_0x37f157);}}},{'type':_0x2cfc1d(0x1c0),'name':'id','hidden':!0x0},{'type':_0x2cfc1d(0x1c0),'name':_0x2cfc1d(0x1ed),'header':TermsUtil[_0x2cfc1d(0x1dd)](_0x2cfc1d(0x1ed)),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x2cfc1d(0x1f1),'name':_0x2cfc1d(0x1be),'header':TermsUtil[_0x2cfc1d(0x1dd)](_0x2cfc1d(0x1be)),'sortable':!0x0,'width':0x41,'record':{'align':_0x2cfc1d(0x1e3),'editable':!0x0,'mandatory':!0x0}},{'type':_0x2cfc1d(0x1c0),'name':_0x2cfc1d(0x1c8),'header':TermsUtil[_0x2cfc1d(0x1dd)](_0x2cfc1d(0x1eb)),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x2cfc1d(0x1c0),'name':_0x2cfc1d(0x1f5),'header':TermsUtil[_0x2cfc1d(0x1dd)](_0x2cfc1d(0x1e7)),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x2cfc1d(0x1da),'name':_0x2cfc1d(0x1d1),'header':TermsUtil['tLabel'](_0x2cfc1d(0x1d1)),'record':{'align':_0x2cfc1d(0x1e5),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x3a2c83(0x1ce)](){const _0x58a2ba=a0_0x3a2c83;this[_0x58a2ba(0x1d4)]||(this[_0x58a2ba(0x1d4)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}['renderGridEmphasizedConfigTab'](){const _0x229606=a0_0x3a2c83;return this[_0x229606(0x1ce)](),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['tLabel'](
|
|
5
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x229606(0x1ee))}
|
|
6
6
|
</h2>
|
|
7
|
-
<ox-grist id="row-emphasized-grist" .config=${this[
|
|
8
|
-
.fetchHandler=${this[
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x229606(0x1f8)]} .mode=${_0x229606(0x1d0)} auto-fetch
|
|
8
|
+
.fetchHandler=${this[_0x229606(0x1e6)]['bind'](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[_0x229606(0x1dd)](_0x229606(0x1ef))}
|
|
13
13
|
</h2>
|
|
14
|
-
<ox-grist id="column-emphasized-grist" .config=${this[
|
|
15
|
-
.fetchHandler=${this[
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this[_0x229606(0x1df)]} .mode=${_0x229606(0x1d0)} auto-fetch
|
|
15
|
+
.fetchHandler=${this[_0x229606(0x1de)][_0x229606(0x1e2)](this)}></ox-grist>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
-
`;}async[
|
|
18
|
+
`;}async[a0_0x3a2c83(0x1e6)](){const _0x5c17fa=a0_0x3a2c83;return{'records':this[_0x5c17fa(0x1d4)]['rowEmphasizedData'],'total':0x0};}async['fetchColumnEmphasized'](){const _0x912a0e=a0_0x3a2c83;return{'records':this[_0x912a0e(0x1d4)][_0x912a0e(0x1cd)],'total':0x0};}};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x4d08(){const _0xada5ec=['menu','3597573yrjUoi','display','1055835AfBpPB','menu_title','description','value','1167327zvafgP','desc','439kcdzOt','help','viewMenuData','setMenuConfigTabDefaultValue','setMenuConfigTabValues','getElementById','menu_desc_field','338kByqtu','tTitle','2743736xpIkOq','getElementValueById','target','help_doc','tLabel','renderMenuConfigTab','menuTitleChange','257130KUUeif','title','getMenuConfigTabValues','name','8OYHoWK','871240UsVWUg'];a0_0x4d08=function(){return _0xada5ec;};return a0_0x4d08();}const a0_0x798846=a0_0x522d;(function(_0x13817a,_0x585d74){const _0x1821cd=a0_0x522d,_0x289a4a=_0x13817a();while(!![]){try{const _0x3b130c=-parseInt(_0x1821cd(0x1aa))/0x1*(parseInt(_0x1821cd(0x1b1))/0x2)+-parseInt(_0x1821cd(0x1a4))/0x3+-parseInt(_0x1821cd(0x19f))/0x4*(-parseInt(_0x1821cd(0x1a0))/0x5)+parseInt(_0x1821cd(0x19b))/0x6+parseInt(_0x1821cd(0x1a2))/0x7+-parseInt(_0x1821cd(0x194))/0x8+parseInt(_0x1821cd(0x1a8))/0x9;if(_0x3b130c===_0x585d74)break;else _0x289a4a['push'](_0x289a4a['shift']());}catch(_0x1eb7c9){_0x289a4a['push'](_0x289a4a['shift']());}}}(a0_0x4d08,0x40ea2));function a0_0x522d(_0xb3bea6,_0x96d364){const _0x4d08a0=a0_0x4d08();return a0_0x522d=function(_0x522d11,_0x2778dd){_0x522d11=_0x522d11-0x193;let _0x354a01=_0x4d08a0[_0x522d11];return _0x354a01;},a0_0x522d(_0xb3bea6,_0x96d364);}import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x317555=>class extends _0x317555{[a0_0x798846(0x1ae)](_0x13512d){const _0xe71ee6=a0_0x798846;if(_0x13512d){var {title:_0x3611f8='',name:_0x23416d='',desc:_0x4ef661='',help:_0x455ff6=''}=_0x13512d||{};this['viewMenuData']={'title':_0x3611f8,'name':_0x23416d,'desc':_0x4ef661,'help_doc':_0x455ff6},this[_0xe71ee6(0x1af)](_0xe71ee6(0x19c))[_0xe71ee6(0x1a7)]=_0x3611f8,this[_0xe71ee6(0x1af)](_0xe71ee6(0x19e))['value']=_0x23416d,this[_0xe71ee6(0x1af)]('desc')[_0xe71ee6(0x1a7)]=_0x4ef661,this[_0xe71ee6(0x1af)](_0xe71ee6(0x197))[_0xe71ee6(0x1a7)]=_0x455ff6;}else this[_0xe71ee6(0x1ad)]();}[a0_0x798846(0x19d)](){const _0x317578=a0_0x798846;let _0xd6278b={'menu':{}},_0xa5c7e3=this[_0x317578(0x195)]('title'),_0x200b8b=this['getElementValueById'](_0x317578(0x19e)),_0x3be717=this['getElementValueById'](_0x317578(0x1a9)),_0x2b5523=this[_0x317578(0x195)]('help_doc');return _0xa5c7e3&&(_0xd6278b[_0x317578(0x1a1)][_0x317578(0x19c)]=_0xa5c7e3),_0x200b8b&&(_0xd6278b['menu']['name']=_0x200b8b),_0x3be717&&(_0xd6278b[_0x317578(0x1a1)][_0x317578(0x1a9)]=_0x3be717),_0x2b5523&&(_0xd6278b[_0x317578(0x1a1)][_0x317578(0x1ab)]=_0x2b5523),_0xd6278b;}[a0_0x798846(0x1ad)](){const _0x499437=a0_0x798846;this[_0x499437(0x1ac)]||(this[_0x499437(0x1ac)]={'title':'','name':'name','desc':_0x499437(0x1a6),'help_doc':''});}[a0_0x798846(0x19a)](_0x396ea0){const _0x17ccb1=a0_0x798846;let _0xdb365a=this[_0x17ccb1(0x1af)](_0x17ccb1(0x1a3));_0xdb365a&&(_0xdb365a[_0x17ccb1(0x1a7)]=TermsUtil[_0x17ccb1(0x193)](_0x396ea0[_0x17ccb1(0x196)][_0x17ccb1(0x1a7)]));}[a0_0x798846(0x199)](){const _0x51bf0c=a0_0x798846;return this['setMenuConfigTabDefaultValue'](),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[_0x51bf0c(0x198)](_0x51bf0c(0x1a5))}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this[_0x51bf0c(0x1ac)][_0x51bf0c(0x19c)]} @change=${_0x2ee859=>this['menuTitleChange'](_0x2ee859)}/>
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil['
|
|
10
|
-
<input id="display" name="display" value=${TermsUtil[
|
|
9
|
+
<label>${TermsUtil[_0x51bf0c(0x198)]('display')}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil[_0x51bf0c(0x193)](this[_0x51bf0c(0x1ac)][_0x51bf0c(0x19c)])} 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[_0x51bf0c(0x198)]('menu_name_field')}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x51bf0c(0x1ac)][_0x51bf0c(0x19e)]} />
|
|
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[_0x51bf0c(0x198)](_0x51bf0c(0x1b0))}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this[_0x51bf0c(0x1ac)]['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['tLabel'](_0x51bf0c(0x197))}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x51bf0c(0x1ac)][_0x51bf0c(0x197)]} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1a8acb=a0_0x58ec;(function(_0x1613f0,_0x39e1b2){const _0x404d79=a0_0x58ec,_0x51aae6=_0x1613f0();while(!![]){try{const _0x25a860=parseInt(_0x404d79(0x1a4))/0x1*(-parseInt(_0x404d79(0x1a5))/0x2)+-parseInt(_0x404d79(0x1ca))/0x3+parseInt(_0x404d79(0x1cc))/0x4*(-parseInt(_0x404d79(0x172))/0x5)+-parseInt(_0x404d79(0x18b))/0x6+parseInt(_0x404d79(0x19c))/0x7+parseInt(_0x404d79(0x1d1))/0x8*(-parseInt(_0x404d79(0x1b2))/0x9)+parseInt(_0x404d79(0x1d8))/0xa;if(_0x25a860===_0x39e1b2)break;else _0x51aae6['push'](_0x51aae6['shift']());}catch(_0x16c187){_0x51aae6['push'](_0x51aae6['shift']());}}}(a0_0xa2f7,0xd2ebf));import a0_0x2d2593 from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';function a0_0x58ec(_0x459e8e,_0x2a3e38){const _0xa2f788=a0_0xa2f7();return a0_0x58ec=function(_0x58ec2c,_0x4abb28){_0x58ec2c=_0x58ec2c-0x16a;let _0x21988d=_0xa2f788[_0x58ec2c];return _0x21988d;},a0_0x58ec(_0x459e8e,_0x2a3e38);}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';function a0_0xa2f7(){const _0x422434=['slice','get','backToMenu','form_config','render','ox-input-code','613695CbWUyg','type','bind','params','tab_config','tTitle','pageInitialized','grid_emphasized_config','column','menuId','grid_config','forEach','filter','updateMultiple','sort_rank','template','tab','meta-generator-page','fields','select','deleteRow','sort_desc','menuName','findOne','records','561324CtCgGx','shadowRoot','tabData','details','charAt','stringify','currentTabKey','form','lifecycle','display:none','menu','properties','push','filters','tButton','pageUpdated','dispatchEvent','5496827IAkrDC','desc','etc','enc','parse','getElementById','includes','selectedIndex','90794onkBKQ','8hDlYCf','gridEmphasized','toLowerCase','studioPermission','value','convertFirstCharUpperCase','rank','sortRecordByField','menu_config','refresh','option','dataStorage','clear','1287gzgYNf','metaTemplate','button_config','context','error','active','graphql_config','set','\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','ConfigTabConfig','save','ConfigTab','length','ConfigTabValues','query','map','toUpperCase','list','etc_config','dec','error.invalid\x20license\x20key','tLabel','notify','graphql','2816319veaVAw','style','24MJGuSH','initData','setTabData','sort','button','51832lQBmNc','sorters','sortRecordByRank','dirtyData','getConfigTab','operatoTools','tMenu','31371080gZPnft','getState','thumbnail','name','search','querySelector','column_config','meta_generator','detail_field','tagName','back','keys','search_config','options'];a0_0xa2f7=function(){return _0x422434;};return a0_0xa2f7();}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['styles'](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -141,24 +141,24 @@ const a0_0x4ebb7f=a0_0x4a8f;(function(_0x33288a,_0x2c127c){const _0x1f651d=a0_0x
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
`];}static get[
|
|
144
|
+
`];}static get[a0_0x1a8acb(0x196)](){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_0x1a8acb(0x1b5)](){const _0x4cfea2=a0_0x1a8acb;return{'title':TermsUtil[_0x4cfea2(0x177)](_0x4cfea2(0x1df)),'actions':[{'title':TermsUtil[_0x4cfea2(0x199)](_0x4cfea2(0x1bc)),'action':this[_0x4cfea2(0x1bc)][_0x4cfea2(0x174)](this),...CommonButtonStyles['save']},{'title':TermsUtil[_0x4cfea2(0x199)](_0x4cfea2(0x1e2)),'action':this[_0x4cfea2(0x16e)][_0x4cfea2(0x174)](this),...CommonButtonStyles['back']},{'title':TermsUtil[_0x4cfea2(0x199)](_0x4cfea2(0x1ae)),'action':this[_0x4cfea2(0x1ae)][_0x4cfea2(0x174)](this),...CommonButtonStyles['refresh']}]};}[a0_0x1a8acb(0x186)](_0x2772f9,_0x1180f6){const _0xa09dc5=a0_0x1a8acb;let _0x1b2d75=_0x2772f9[_0xa09dc5(0x1d4)];_0x1b2d75['records']=_0x1b2d75[_0xa09dc5(0x18a)][_0xa09dc5(0x17e)](_0x1402fd=>_0x1402fd['id']!=_0x1180f6['id']),_0x2772f9['data']=_0x1b2d75;}async['save'](){const _0x4b09df=a0_0x1a8acb;if(0x0==store[_0x4b09df(0x1d9)]()[_0x4b09df(0x1d6)][_0x4b09df(0x1a8)])return void document[_0x4b09df(0x19b)](new CustomEvent(_0x4b09df(0x1c8),{'detail':{'level':_0x4b09df(0x1b6),'message':i18next['t'](_0x4b09df(0x1c6))}}));if((await client[_0x4b09df(0x1c0)]({'query':a0_0x2d2593`
|
|
145
145
|
query ($id: String!) {
|
|
146
146
|
studioTemplateIsOverLimit(id: $id)
|
|
147
147
|
}
|
|
148
|
-
`,'variables':{'id':this[
|
|
149
|
-
<h1>${this[
|
|
148
|
+
`,'variables':{'id':this[_0x4b09df(0x17b)]}}))['errors'])return;let _0x28cc54={},_0x3af29b={};Object[_0x4b09df(0x1e3)](this[_0x4b09df(0x18d)])[_0x4b09df(0x17d)](_0x4ba8c6=>{const _0xd5a38f=_0x4b09df;let _0x2414cf=this['convertFirstCharUpperCase'](_0x4ba8c6);_0x28cc54[_0x4ba8c6]=this[_0xd5a38f(0x16d)+_0x2414cf+_0xd5a38f(0x1bf)](),_0x3af29b=merge(_0x3af29b,_0x28cc54[_0x4ba8c6]);}),_0x3af29b=JSON[_0x4b09df(0x190)](_0x3af29b),_0x3af29b=MetaCrypto[_0x4b09df(0x19f)](_0x3af29b),await MetaApi[_0x4b09df(0x17f)]('updateMultipleMenu',[{'id':this[_0x4b09df(0x17b)],'template':_0x3af29b,'cuFlag':'M'}])&&await this[_0x4b09df(0x1cd)]();}['clear'](){const _0x170bda=a0_0x1a8acb;this['setTabData'](),this['dataStorage']={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x170bda(0x1e3)](this[_0x170bda(0x18d)])['forEach'](_0x269959=>{const _0x157004=_0x170bda;let _0x2d7128=this[_0x157004(0x1aa)](_0x269959);if(this['set'+_0x2d7128+_0x157004(0x1bf)])return this[_0x157004(0x1b9)+_0x2d7128+_0x157004(0x1bf)](this[_0x157004(0x1b0)][_0x269959]);});}async['refresh'](){const _0x5be824=a0_0x1a8acb;this[_0x5be824(0x1b1)](),await this['initData']();}[a0_0x1a8acb(0x16e)](){const _0x3b3138=a0_0x1a8acb;history[_0x3b3138(0x1e2)]();}async[a0_0x1a8acb(0x1cd)](){const _0xaa90d3=a0_0x1a8acb;var {menuId:_0x10f19b=''}=this[_0xaa90d3(0x193)]?.[_0xaa90d3(0x175)]?this[_0xaa90d3(0x193)]['params']:{};if(this[_0xaa90d3(0x17b)]=_0x10f19b,!_0x10f19b||''==_0x10f19b)return void this['clear']();let _0x3a80f9=await MetaApi[_0xaa90d3(0x189)](_0xaa90d3(0x195),_0x10f19b,_0xaa90d3(0x1ba));if(_0x3a80f9){try{JSON[_0xaa90d3(0x1a0)](MetaCrypto[_0xaa90d3(0x1c5)](_0x3a80f9['template']));}catch(_0x3d9402){return;}this[_0xaa90d3(0x188)]=TermsUtil[_0xaa90d3(0x1d7)](_0x3a80f9[_0xaa90d3(0x1db)]),this[_0xaa90d3(0x1b3)]=_0x3a80f9[_0xaa90d3(0x181)]?JSON[_0xaa90d3(0x1a0)](MetaCrypto[_0xaa90d3(0x1c5)](_0x3a80f9[_0xaa90d3(0x181)])):{};var {menu:_0x4c4095={},gql:_0x4a677e={},button:_0xb7f202=[],grid_column:_0x386e4f=[],grid:_0x4f3d00={},search:_0x4c4e6d=[],form:_0x3a91fa=[],tab:_0x3967b7=[],etc:_0x1d462c={},gridEmphasized:_0x19c296=[]}=this[_0xaa90d3(0x1b3)]?this[_0xaa90d3(0x1b3)]:{};this[_0xaa90d3(0x1ce)](),this['dataStorage']={},this['dataStorage'][_0xaa90d3(0x195)]=_0x4c4095,this[_0xaa90d3(0x1b0)][_0xaa90d3(0x1c9)]=_0x4a677e,this[_0xaa90d3(0x1b0)]['grid']=_0x4f3d00,this[_0xaa90d3(0x1b0)][_0xaa90d3(0x192)]=_0x3a91fa,this['dataStorage'][_0xaa90d3(0x182)]=_0x3967b7,this['dataStorage'][_0xaa90d3(0x19e)]=_0x1d462c,this['dataStorage'][_0xaa90d3(0x1a6)]=_0x19c296,(_0x4f3d00[_0xaa90d3(0x1af)]?.['sorters']||[])[_0xaa90d3(0x17d)]((_0x37de73,_0x3e54d5)=>{const _0x5abc9d=_0xaa90d3;_0x37de73[_0x5abc9d(0x1ab)]=0xa*(_0x3e54d5+0x1);}),this[_0xaa90d3(0x1b0)][_0xaa90d3(0x17a)]=_0x386e4f[_0xaa90d3(0x1c1)](_0x54edbf=>{const _0x5675c3=_0xaa90d3;let _0x52b584=(_0x4f3d00[_0x5675c3(0x1af)]?.[_0x5675c3(0x1d2)]||[])[_0x5675c3(0x17e)](_0x13a1ef=>_0x13a1ef[_0x5675c3(0x1db)]==_0x54edbf['name']);return _0x52b584&&_0x52b584[_0x5675c3(0x1be)]>0x0?(_0x54edbf[_0x5675c3(0x180)]=_0x52b584[0x0][_0x5675c3(0x1ab)],_0x54edbf[_0x5675c3(0x187)]=!!_0x52b584[0x0][_0x5675c3(0x19d)]&&_0x52b584[0x0][_0x5675c3(0x19d)]):_0x54edbf[_0x5675c3(0x180)]=0x0,_0x54edbf['rep_field']=(_0x4f3d00[_0x5675c3(0x1c3)]?.[_0x5675c3(0x184)]||[])['includes'](_0x54edbf['name']),_0x54edbf[_0x5675c3(0x1e0)]=(_0x4f3d00[_0x5675c3(0x1c3)]?.[_0x5675c3(0x18e)]||[])[_0x5675c3(0x1a2)](_0x54edbf[_0x5675c3(0x1db)]),_0x54edbf['thumbnail_field']=_0x4f3d00[_0x5675c3(0x1c3)]?.[_0x5675c3(0x1da)]==_0x54edbf[_0x5675c3(0x1db)],_0x54edbf;}),_0x4c4e6d['push'](...(_0x4a677e[_0xaa90d3(0x1c0)]?.[_0xaa90d3(0x198)]||[])['map'](_0x174a27=>(_0x174a27['hidden']=!0x0,_0x174a27))),this[_0xaa90d3(0x1b0)][_0xaa90d3(0x1dc)]=_0x4c4e6d,_0xb7f202[_0xaa90d3(0x197)](...(_0x4f3d00[_0xaa90d3(0x1d0)]||[])[_0xaa90d3(0x1c1)](_0x4cf3d0=>(_0x4cf3d0[_0xaa90d3(0x173)]='grid-'+_0x4cf3d0[_0xaa90d3(0x173)],_0x4cf3d0[_0xaa90d3(0x1cb)]=_0x4cf3d0['icon'],_0x4cf3d0))),this[_0xaa90d3(0x1b0)][_0xaa90d3(0x1d0)]=_0xb7f202,Object['keys'](this['tabData'])['forEach'](_0x47d788=>{const _0x308ad9=_0xaa90d3;let _0x3103c6=this[_0x308ad9(0x1aa)](_0x47d788);if(this[_0x308ad9(0x1b9)+_0x3103c6+_0x308ad9(0x1bf)])return this[_0x308ad9(0x1b9)+_0x3103c6+_0x308ad9(0x1bf)](this[_0x308ad9(0x1b0)][_0x47d788]);});}}async[a0_0x1a8acb(0x178)](){const _0x3c348f=a0_0x1a8acb;this[_0x3c348f(0x1ce)]();let _0x1653dc=Object['keys'](this[_0x3c348f(0x18d)]);for(var _0x82c262=0x0;_0x82c262<_0x1653dc[_0x3c348f(0x1be)];_0x82c262++){let _0x3288f7=this[_0x3c348f(0x1aa)](_0x1653dc[_0x82c262]);this['set'+_0x3288f7+_0x3c348f(0x1bb)]&&await this[_0x3c348f(0x1b9)+_0x3288f7+_0x3c348f(0x1bb)]();}}async[a0_0x1a8acb(0x19a)](_0x443ad8,_0x34d953,_0x5eafce){const _0x179490=a0_0x1a8acb;!0x0===this[_0x179490(0x1b7)]?(this[_0x179490(0x1ce)](),await this[_0x179490(0x1cd)](),this[_0x179490(0x1ce)]()):(this['clear'](),this['remove']());}[a0_0x1a8acb(0x1ce)](){const _0x37e239=a0_0x1a8acb;this['tabData']||(this[_0x37e239(0x18d)]={'menu':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x1ad)),'graphql':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x1b8)),'grid':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x17c)),'column':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x1de)),'gridEmphasized':TermsUtil['tLabel'](_0x37e239(0x179)),'button':TermsUtil['tLabel'](_0x37e239(0x1b4)),'search':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x16a)),'form':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x16f)),'tab':TermsUtil['tLabel'](_0x37e239(0x176)),'etc':TermsUtil[_0x37e239(0x1c7)](_0x37e239(0x1c4))});}[a0_0x1a8acb(0x170)](){const _0x593bc4=a0_0x1a8acb;this['currentTabKey']||(this[_0x593bc4(0x191)]='menu'),this[_0x593bc4(0x1ce)]();let _0x180aa5=Object[_0x593bc4(0x1e3)](this[_0x593bc4(0x18d)]);return this[_0x593bc4(0x18d)][this[_0x593bc4(0x191)]]?this['currentTabKey']:_0x180aa5[0x0],html`
|
|
149
|
+
<h1>${this['menuName']}</h1>
|
|
150
150
|
<div class="tabs">
|
|
151
|
-
${
|
|
152
|
-
<div class="tab" ?activate="${
|
|
153
|
-
<span>${
|
|
151
|
+
${_0x180aa5[_0x593bc4(0x1c1)](_0x12e874=>{const _0x5a52c9=_0x593bc4;let _0x5b1ce0=this[_0x5a52c9(0x18d)][_0x12e874];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x12e874===this[_0x5a52c9(0x191)]}" @click="${()=>this[_0x5a52c9(0x191)]=_0x12e874}">
|
|
153
|
+
<span>${_0x5b1ce0}</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
|
+
${_0x180aa5['map'](_0x4fd7b9=>{const _0x3ae4c4=_0x593bc4;let _0x9d16d6=_0x3ae4c4(0x194);return _0x4fd7b9==this[_0x3ae4c4(0x191)]&&(_0x9d16d6='display:flex'),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x9d16d6}">
|
|
160
|
+
${this[_0x3ae4c4(0x1d5)](_0x4fd7b9)}
|
|
161
161
|
</div>
|
|
162
162
|
`;})}
|
|
163
163
|
</div>
|
|
164
|
-
`;}[
|
|
164
|
+
`;}[a0_0x1a8acb(0x1d5)](_0x1b3205){const _0x58a3e3=a0_0x1a8acb;let _0x3acde3=this['convertFirstCharUpperCase'](_0x1b3205);return this['render'+_0x3acde3+'ConfigTab']?this[_0x58a3e3(0x170)+_0x3acde3+_0x58a3e3(0x1bd)]():html``;}['convertFirstCharUpperCase'](_0x356e67){const _0xb10302=a0_0x1a8acb;return _0x356e67[_0xb10302(0x18f)](0x0)[_0xb10302(0x1c2)]()+_0x356e67[_0xb10302(0x16c)](0x1);}[a0_0x1a8acb(0x1a1)](_0x230948){const _0x1b40d2=a0_0x1a8acb;return this['shadowRoot'][_0x1b40d2(0x1dd)]('#'+_0x230948);}['getElementValueById'](_0x3f2389){const _0x1e1c45=a0_0x1a8acb;let _0x587a1c=this[_0x1e1c45(0x18c)][_0x1e1c45(0x1dd)]('#'+_0x3f2389);if(!_0x587a1c)return;let _0x71d386='';if(_0x1e1c45(0x185)==_0x587a1c[_0x1e1c45(0x1e1)][_0x1e1c45(0x1a7)]()){if(!_0x587a1c[_0x1e1c45(0x16b)]||0x0==_0x587a1c[_0x1e1c45(0x16b)][_0x1e1c45(0x1be)])return;_0x71d386=_0x587a1c[_0x1e1c45(0x16b)][_0x587a1c[_0x1e1c45(0x1a3)]][_0x1e1c45(0x1a9)];}else{if('ox-grist'==_0x587a1c[_0x1e1c45(0x1e1)][_0x1e1c45(0x1a7)]()){if(!_0x587a1c[_0x1e1c45(0x1d4)])return;if(!_0x587a1c[_0x1e1c45(0x1d4)][_0x1e1c45(0x18a)])return;if(0x0==_0x587a1c[_0x1e1c45(0x1d4)]['records'][_0x1e1c45(0x1be)])return;return _0x587a1c['dirtyData'][_0x1e1c45(0x18a)];}if(_0x1e1c45(0x171)==_0x587a1c[_0x1e1c45(0x1e1)][_0x1e1c45(0x1a7)]())return _0x587a1c['value'];if('radio'==_0x587a1c[_0x1e1c45(0x173)]['toLowerCase']()){let _0x108e9b=this[_0x1e1c45(0x18c)][_0x1e1c45(0x1dd)]('#'+_0x3f2389+':checked');if(!_0x108e9b)return;return _0x108e9b[_0x1e1c45(0x1a9)];}_0x71d386=_0x587a1c[_0x1e1c45(0x1a9)];}return _0x71d386&&''!=_0x71d386?_0x71d386:void 0x0;}[a0_0x1a8acb(0x1d3)](_0x327e0e){const _0x39b617=a0_0x1a8acb;return _0x327e0e?this[_0x39b617(0x1ac)](_0x327e0e,_0x39b617(0x1ab)):_0x327e0e;}[a0_0x1a8acb(0x1ac)](_0x1aca22,_0x3f1acf){const _0x3ccfd2=a0_0x1a8acb;return _0x1aca22[_0x3ccfd2(0x1cf)]((_0x341c79,_0x4e2994)=>_0x341c79[_0x3f1acf]-_0x4e2994[_0x3f1acf]),_0x1aca22;}}customElements['define'](a0_0x1a8acb(0x183),MetaGeneratorPage);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5c0a80=a0_0x2b79;(function(_0x3f86d7,_0x5f3f8a){const _0x2e6865=a0_0x2b79,_0x1cf9ed=_0x3f86d7();while(!![]){try{const _0x53074e=-parseInt(_0x2e6865(0x1ed))/0x1+-parseInt(_0x2e6865(0x204))/0x2*(parseInt(_0x2e6865(0x1ea))/0x3)+-parseInt(_0x2e6865(0x20f))/0x4*(parseInt(_0x2e6865(0x1e5))/0x5)+parseInt(_0x2e6865(0x1e6))/0x6+-parseInt(_0x2e6865(0x1f6))/0x7*(parseInt(_0x2e6865(0x1fb))/0x8)+parseInt(_0x2e6865(0x1f4))/0x9*(parseInt(_0x2e6865(0x1ef))/0xa)+parseInt(_0x2e6865(0x1f3))/0xb*(parseInt(_0x2e6865(0x1e4))/0xc);if(_0x53074e===_0x5f3f8a)break;else _0x1cf9ed['push'](_0x1cf9ed['shift']());}catch(_0x793fa9){_0x1cf9ed['push'](_0x1cf9ed['shift']());}}}(a0_0x3373,0xe376f));import{html}from'lit-element';function a0_0x2b79(_0x4be16d,_0x436f63){const _0x337305=a0_0x3373();return a0_0x2b79=function(_0x2b79d9,_0x5c14fa){_0x2b79d9=_0x2b79d9-0x1df;let _0x1fc349=_0x337305[_0x2b79d9];return _0x1fc349;},a0_0x2b79(_0x4be16d,_0x436f63);}function a0_0x3373(){const _0x1e6874=['tLabel','bind','3435772UTXRXG','operator','delete','rank','getSearchConfigTabValues','querySelector','12JpHDfN','10KXAPtu','6032730AspVmr','gutter','assign','searchTabGrist','177hcRCaj','string','map','1269859tYEbkS','hidden','1532920BHYDUX','renderSearchConfigTab','name','search','49383565mFsDZG','18uhVaay','search_operator','275611ijgupY','searchTabGridConfig','left','sortRecordByRank','forEach','296UzxXfD','setSearchConfigTabValues','fetch','getGristGuttersConfig','value','integer','#search-tab-grid','select','button','14414NRaoob','getCodeSelectorData','filter','push','viewSearchData','search-tab-grid','getGristSelectableConfig','right','boolean'];a0_0x3373=function(){return _0x1e6874;};return a0_0x3373();}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=_0x15bba2=>class extends _0x15bba2{[a0_0x5c0a80(0x1fc)](_0x2654b6){const _0x5d1c3e=a0_0x5c0a80;let _0x33a853=_0x2654b6?.[_0x5d1c3e(0x1ec)]((_0x10b7b7,_0x3aa256)=>{const _0xf434f8=_0x5d1c3e;let _0x88ba60=_0x3aa256+0x1,_0x1d6136={};return'object'==typeof _0x10b7b7?Object[_0xf434f8(0x1e8)](_0x1d6136,_0x10b7b7):(_0x1d6136[_0xf434f8(0x1f1)]=_0x10b7b7,_0x1d6136[_0xf434f8(0x1df)]='filter'),_0x1d6136[_0xf434f8(0x1e1)]=0xa*_0x88ba60,_0x1d6136['id']=_0x88ba60,_0x1d6136;});this[_0x5d1c3e(0x208)]=_0x33a853||[],this[_0x5d1c3e(0x1e9)]?.[_0x5d1c3e(0x1fd)]();}[a0_0x5c0a80(0x1e2)](){const _0x4fe251=a0_0x5c0a80;let _0x4eb34a={'search':[],'gql':{'query':{'filters':[]}}},_0x1cdd09=this['getElementValueById'](_0x4fe251(0x209));return this[_0x4fe251(0x1f9)](_0x1cdd09)?.[_0x4fe251(0x1fa)](_0x27a8d0=>{const _0x3789c2=_0x4fe251;var {name:_0x127fe7,operator:_0x4db032='eq',hidden:_0x5792ca=!0x1,value:_0x381e8f}=_0x27a8d0;if(_0x127fe7){if(_0x3789c2(0x206)==_0x4db032)_0x4eb34a['search'][_0x3789c2(0x207)](_0x127fe7);else{let _0xe05e3d={'name':_0x127fe7,'operator':_0x4db032};0x1==_0x5792ca?(_0xe05e3d[_0x3789c2(0x1ff)]=_0x381e8f,_0x4eb34a['gql']['query']['filters'][_0x3789c2(0x207)](_0xe05e3d)):(_0xe05e3d['value']=_0x381e8f,_0x4eb34a[_0x3789c2(0x1f2)][_0x3789c2(0x207)](_0xe05e3d));}}}),_0x4eb34a;}[a0_0x5c0a80(0x1f0)](){const _0xb93664=a0_0x5c0a80;return html`
|
|
2
2
|
<ox-grist auto-fetch id="search-tab-grid" .config=${this['searchTabGridConfig']} .mode='GRID'
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
3
|
+
.fetchHandler=${this['fetchSearchTabHandler'][_0xb93664(0x20e)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x5c0a80(0x1e9)](){const _0x5ed4c5=a0_0x5c0a80;return this['shadowRoot'][_0x5ed4c5(0x1e3)](_0x5ed4c5(0x201));}async['fetchSearchTabHandler'](){const _0x1dd845=a0_0x5c0a80;return{'total':0x0,'records':this[_0x1dd845(0x208)]||[]};}async['setSearchConfigTabConfig'](){const _0x9df015=a0_0x5c0a80;let _0x318834=await MetaApi[_0x9df015(0x205)]('FILTER_OPERATORS');this[_0x9df015(0x1f7)]={'rows':MetaApi[_0x9df015(0x20a)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x9df015(0x1fe)](!0x1,!0x1),{'type':_0x9df015(0x1e7),'gutterName':_0x9df015(0x203),'icon':_0x9df015(0x1e0),'handlers':{'click':(_0x517538,_0x465289,_0x59edb6,_0x561ac3,_0x4590f1)=>{const _0x35252b=_0x9df015;_0x561ac3['id']&&this['deleteRow'](this[_0x35252b(0x1e9)],_0x561ac3);}}},{'type':_0x9df015(0x1eb),'name':'id','hidden':!0x0},{'type':_0x9df015(0x200),'name':'rank','header':TermsUtil[_0x9df015(0x20d)](_0x9df015(0x1e1)),'sortable':!0x0,'width':0x41,'record':{'align':_0x9df015(0x20b),'editable':!0x0,'mandatory':!0x0}},{'type':_0x9df015(0x1eb),'name':'name','header':TermsUtil[_0x9df015(0x20d)]('name'),'sortable':!0x1,'width':0x9b,'record':{'align':_0x9df015(0x1f8),'editable':!0x0,'mandatory':!0x0}},{'type':_0x9df015(0x202),'name':_0x9df015(0x1df),'header':TermsUtil[_0x9df015(0x20d)](_0x9df015(0x1f5)),'sortable':!0x1,'width':0x64,'record':{'align':_0x9df015(0x1f8),'editable':!0x0,'mandatory':!0x1,'options':_0x318834}},{'type':_0x9df015(0x20c),'name':_0x9df015(0x1ee),'header':TermsUtil['tLabel']('hidden'),'sortable':!0x1,'width':0x41,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':_0x9df015(0x1eb),'name':_0x9df015(0x1ff),'header':TermsUtil[_0x9df015(0x20d)]('default_value'),'sortable':!0x1,'width':0xc8,'record':{'align':_0x9df015(0x1f8),'editable':!0x0,'mandatory':!0x1}}]};}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
<ox-grist auto-fetch id="tab-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get['tabTabGrist'](){const
|
|
1
|
+
const a0_0x394445=a0_0x5c78;function a0_0x5c78(_0x507c6d,_0x328a48){const _0x28bfde=a0_0x28bf();return a0_0x5c78=function(_0x5c781a,_0x329d85){_0x5c781a=_0x5c781a-0x6e;let _0x2c0420=_0x28bfde[_0x5c781a];return _0x2c0420;},a0_0x5c78(_0x507c6d,_0x328a48);}(function(_0x12c87b,_0x1e860c){const _0x39c4cc=a0_0x5c78,_0x1c84c2=_0x12c87b();while(!![]){try{const _0x1756b1=-parseInt(_0x39c4cc(0x97))/0x1*(-parseInt(_0x39c4cc(0x98))/0x2)+-parseInt(_0x39c4cc(0x9e))/0x3+parseInt(_0x39c4cc(0x78))/0x4*(parseInt(_0x39c4cc(0x77))/0x5)+-parseInt(_0x39c4cc(0x89))/0x6*(-parseInt(_0x39c4cc(0x85))/0x7)+parseInt(_0x39c4cc(0x8e))/0x8*(parseInt(_0x39c4cc(0x7b))/0x9)+-parseInt(_0x39c4cc(0x86))/0xa+parseInt(_0x39c4cc(0x7e))/0xb;if(_0x1756b1===_0x1e860c)break;else _0x1c84c2['push'](_0x1c84c2['shift']());}catch(_0x8bde9b){_0x1c84c2['push'](_0x1c84c2['shift']());}}}(a0_0x28bf,0x8d6f4));import{html}from'lit-element';function a0_0x28bf(){const _0x25818d=['parent_id','params','menu','tabTabGrist','tLabel','getElementValueById','tag','2215DDaNxw','7580jQesnJ','getGristSelectableConfig','page_location','54mYemPY','center','querySelector','4404411XPKuya','left','rank','display','delete','viewTabData','name','7ENFbcO','7729350iSBsqJ','location','tabTabGridConfig','1090338boWbju','gutter','right','tab-tab-grid','button','734296zZjrJP','tagname','push','setTabConfigTabValues','fetchTabTabHandler','map','bind','fetch','icon','53pYTapz','1028ZYLleU','string','setTabConfigTabConfig','param_field','parent_field','getTabConfigTabValues','1941966QwkPjz','deleteRow','renderTabConfigTab'];a0_0x28bf=function(){return _0x25818d;};return a0_0x28bf();}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=_0x4b7c4c=>class extends _0x4b7c4c{[a0_0x394445(0x91)](_0x3180a6){const _0x4ab575=a0_0x394445;let _0x5e11ab=_0x3180a6?.[_0x4ab575(0x93)]((_0x125ebc,_0x4e54fa)=>{const _0x1e782f=_0x4ab575;let _0x4646aa=_0x4e54fa+0x1,_0x848d13={};return _0x848d13[_0x1e782f(0x80)]=0xa*_0x4646aa,_0x848d13['id']=_0x4646aa,_0x848d13[_0x1e782f(0x84)]=_0x125ebc[_0x1e782f(0x84)],_0x848d13[_0x1e782f(0x81)]=_0x125ebc['display'],_0x848d13[_0x1e782f(0x8f)]=_0x125ebc['tagname'],_0x848d13[_0x1e782f(0x96)]=_0x125ebc[_0x1e782f(0x96)],_0x848d13[_0x1e782f(0x87)]=_0x125ebc['location'],_0x848d13[_0x1e782f(0x9c)]=_0x125ebc['parent_field'],_0x848d13[_0x1e782f(0x9b)]=_0x125ebc[_0x1e782f(0x9b)],_0x848d13[_0x1e782f(0x72)]=_0x125ebc['menu'],_0x848d13;});this[_0x4ab575(0x83)]=_0x5e11ab||[],this[_0x4ab575(0x73)]?.[_0x4ab575(0x95)]();}[a0_0x394445(0x9d)](){const _0x32067b=a0_0x394445;let _0x4bc423={'tab':[]},_0x42e57a=this[_0x32067b(0x75)](_0x32067b(0x8c));return this['sortRecordByRank'](_0x42e57a)?.['forEach'](_0x3bfbaf=>{const _0x19d6c0=_0x32067b;var {name:_0x48cd12,display:_0x365cb8,tagname:_0x61fbf2,location:_0x203826,parent_field:_0x1c5222,param_field:_0x42da69,menu:_0x157dce,icon:_0x527a1f}=_0x3bfbaf;_0x48cd12&&_0x61fbf2&&_0x203826&&_0x157dce&&(_0x365cb8||(_0x365cb8=_0x48cd12),_0x1c5222||(_0x1c5222='id'),_0x42da69||(_0x42da69=_0x19d6c0(0x9b)),_0x4bc423['tab'][_0x19d6c0(0x90)]({'name':_0x48cd12,'display':_0x365cb8,'tagname':_0x61fbf2,'location':_0x203826,'parent_field':_0x1c5222,'param_field':_0x42da69,'menu':_0x157dce,'icon':_0x527a1f}));}),_0x4bc423;}[a0_0x394445(0x6f)](){const _0x4db26c=a0_0x394445;return html`
|
|
2
|
+
<ox-grist auto-fetch id="tab-tab-grid" .config=${this['tabTabGridConfig']} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x4db26c(0x92)][_0x4db26c(0x94)](this)}>
|
|
4
|
+
</ox-grist>`;}get['tabTabGrist'](){const _0x33be57=a0_0x394445;return this['shadowRoot'][_0x33be57(0x7d)]('#tab-tab-grid');}async['fetchTabTabHandler'](){return{'total':0x0,'records':this['viewTabData']||[]};}async[a0_0x394445(0x9a)](){const _0x47c770=a0_0x394445;this[_0x47c770(0x88)]={'rows':MetaApi[_0x47c770(0x79)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x47c770(0x80),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x47c770(0x8a),'gutterName':_0x47c770(0x8d),'icon':_0x47c770(0x82),'handlers':{'click':(_0x4618fe,_0x2008b3,_0x1849a3,_0x5858d0,_0x484401)=>{const _0x5b1e53=_0x47c770;_0x5858d0['id']&&this[_0x5b1e53(0x6e)](this[_0x5b1e53(0x73)],_0x5858d0);}}},{'type':_0x47c770(0x99),'name':'id','hidden':!0x0},{'type':'integer','name':_0x47c770(0x80),'header':TermsUtil[_0x47c770(0x74)](_0x47c770(0x80)),'sortable':!0x0,'width':0x41,'record':{'align':_0x47c770(0x8b),'editable':!0x0,'mandatory':!0x0}},{'type':_0x47c770(0x99),'name':_0x47c770(0x84),'header':TermsUtil['tLabel'](_0x47c770(0x84)),'sortable':!0x1,'width':0x64,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x47c770(0x81),'header':TermsUtil[_0x47c770(0x74)](_0x47c770(0x81)),'sortable':!0x1,'width':0x64,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}},{'type':_0x47c770(0x99),'name':_0x47c770(0x96),'header':TermsUtil[_0x47c770(0x74)](_0x47c770(0x96)),'sortable':!0x0,'width':0x41,'record':{'align':_0x47c770(0x7c),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x47c770(0x72),'header':TermsUtil[_0x47c770(0x74)]('routing'),'sortable':!0x1,'width':0x64,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x47c770(0x8f),'header':TermsUtil['tLabel'](_0x47c770(0x76)),'sortable':!0x1,'width':0x96,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}},{'type':_0x47c770(0x99),'name':_0x47c770(0x87),'header':TermsUtil[_0x47c770(0x74)](_0x47c770(0x7a)),'sortable':!0x1,'width':0x12c,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}},{'type':_0x47c770(0x99),'name':_0x47c770(0x9c),'header':TermsUtil[_0x47c770(0x74)](_0x47c770(0x70)),'sortable':!0x1,'width':0x64,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}},{'type':_0x47c770(0x99),'name':_0x47c770(0x9b),'header':TermsUtil[_0x47c770(0x74)](_0x47c770(0x71)),'sortable':!0x1,'width':0x64,'record':{'align':_0x47c770(0x7f),'editable':!0x0,'mandatory':!0x0}}]};}};
|