@things-factory/operato-tools 6.1.52 → 6.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +1 -1
- package/client/pages/generator/button-config-tab-mixin.js +4 -4
- package/client/pages/generator/column-config-tab-mixin.js +4 -4
- package/client/pages/generator/etc-config-tab-mixin.js +4 -4
- package/client/pages/generator/form-config-tab-mixin.js +4 -4
- package/client/pages/generator/graphql-config-tab-mixin.js +24 -24
- package/client/pages/generator/grid-config-tab-mixin.js +22 -22
- package/client/pages/generator/grid-emphasized-config-tab-mixin.js +8 -8
- package/client/pages/generator/menu-config-tab-mixin.js +11 -11
- package/client/pages/generator/meta-generator-page.js +11 -11
- package/client/pages/generator/search-config-tab-mixin.js +4 -4
- package/client/pages/generator/tab-config-tab-mixin.js +4 -4
- package/client/pages/main.js +4 -4
- package/client/reducers/main.js +1 -1
- package/package.json +3 -3
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/tool-entity/create-menu.js +1 -1
- package/server/service/tool-entity/create-service.js +1 -1
- package/server/service/tool-secret/tool-permission.js +1 -1
- package/server/service/tool-secret/tool-resolver.js +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x23990c=a0_0x3626;function a0_0x3626(_0x10fe4f,_0x4dd593){const _0x120a4f=a0_0x120a();return a0_0x3626=function(_0x3626e2,_0x1fda08){_0x3626e2=_0x3626e2-0x1ce;let _0x40a730=_0x120a4f[_0x3626e2];return _0x40a730;},a0_0x3626(_0x10fe4f,_0x4dd593);}function a0_0x120a(){const _0x3b1d7a=['LIST','name','select-row-toggle','3184496TRlfLD','tLabel','grid_desk_view','getElementValueById','unlimited','length','53152rHRDzL','grid_multi_select','map','mobile_mode','grid_term_1000','gridPageOptions','card_view_use','891751IRLCfa','use_row_checker','view_mode','option','901206hhkQNs','setGridConfigTabConfig','90811msgvLY','use','206460rjeVgM','unsupport','pages','multiple_select','push','codeItems','grid_term_','grid_pagination','description','grid_term_default','desk_mode','list_view_use','renderGridConfigTab','_view_use','row','CARD','gridViewModes','grid_term_unlimited','toLowerCase','grid_view_use','use_filter_form','viewGridData','GRID_PAGE_OPTIONS','3BMpUvD','true','grid_support_view','grid','grid_term_50','setGridConfigTabDetaultValues','grid_use_filter','grid_mobile_view','unuse','includes','GRID','198548kqdpzX'];a0_0x120a=function(){return _0x3b1d7a;};return a0_0x120a();}(function(_0x21e16b,_0x18cf5d){const _0x4aba23=a0_0x3626,_0x7b9c0e=_0x21e16b();while(!![]){try{const _0x279ce6=parseInt(_0x4aba23(0x1d5))/0x1+-parseInt(_0x4aba23(0x1f9))/0x2*(-parseInt(_0x4aba23(0x1ee))/0x3)+parseInt(_0x4aba23(0x203))/0x4+parseInt(_0x4aba23(0x1d7))/0x5+parseInt(_0x4aba23(0x1d3))/0x6+parseInt(_0x4aba23(0x1cf))/0x7+-parseInt(_0x4aba23(0x1fd))/0x8;if(_0x279ce6===_0x18cf5d)break;else _0x7b9c0e['push'](_0x7b9c0e['shift']());}catch(_0x465804){_0x7b9c0e['push'](_0x7b9c0e['shift']());}}}(a0_0x120a,0x1e525));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GridConfigTabMixin=_0x446e82=>class extends _0x446e82{['setGridConfigTabValues'](_0x34c31a){const _0x128b02=a0_0x3626;if(_0x34c31a){var {mobile_mode:_0x564194='',desk_mode:_0x3c3d3c='',pages:_0x1b93dd=[],use_row_checker:_0x422a1c=!0x0,view_mode:_0x10dc7c=[]}=_0x34c31a[_0x128b02(0x1d2)]||{};let _0x48b75f=(_0x34c31a[_0x128b02(0x1e5)]||{'multiple_select':!0x1})['multiple_select'],_0x2a847c=_0x128b02(0x201)==_0x1b93dd?'grid_term_unlimited':0x0==_0x1b93dd[_0x128b02(0x202)]?'':0x14==_0x1b93dd[0x0]?'grid_term_default':_0x128b02(0x1dd)+_0x1b93dd[0x0];this[_0x128b02(0x1ec)]={'mobile_mode':_0x564194,'desk_mode':_0x3c3d3c,'use_row_checker':_0x422a1c,'pages':_0x2a847c,'view_mode':_0x10dc7c,'multiple_select':_0x48b75f,'use_filter_form':_0x34c31a[_0x128b02(0x1eb)]};}else this[_0x128b02(0x1f3)]();}['getGridConfigTabValues'](){const _0x2a88a8=a0_0x3626;let _0x22e495={'grid':{'option':{},'row':{'click':_0x2a88a8(0x1fc)}}},_0x1fe19d=this[_0x2a88a8(0x200)]('grid_row_check_use'),_0x2675d7=this[_0x2a88a8(0x200)](_0x2a88a8(0x204)),_0x3bdc73=this['getElementValueById'](_0x2a88a8(0x1ff)),_0x319107=this[_0x2a88a8(0x200)](_0x2a88a8(0x1f5)),_0x1800d0=this[_0x2a88a8(0x200)](_0x2a88a8(0x1f4)),_0x13fb7e=this[_0x2a88a8(0x200)](_0x2a88a8(0x1de)),_0x5b46e9=this[_0x2a88a8(0x200)](_0x2a88a8(0x1ea)),_0x29a465=this[_0x2a88a8(0x200)](_0x2a88a8(0x1e2)),_0x234978=this[_0x2a88a8(0x200)](_0x2a88a8(0x1ce));return _0x22e495['grid'][_0x2a88a8(0x1eb)]=_0x2a88a8(0x1ef)==_0x1800d0,_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1e5)]['multiple_select']='true'==_0x2675d7,_0x22e495['grid']['option'][_0x2a88a8(0x1d0)]=_0x2a88a8(0x1ef)==_0x1fe19d,_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)][_0x2a88a8(0x206)]=_0x319107,_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)][_0x2a88a8(0x1e1)]=_0x3bdc73,_0x2a88a8(0x1e0)==_0x13fb7e?_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)]['pages']=[0x14,0x1e,0x32,0x64]:_0x2a88a8(0x1f2)==_0x13fb7e?_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)][_0x2a88a8(0x1d9)]=[0x32,0x64,0x1f4,0x3e8]:'grid_term_100'==_0x13fb7e?_0x22e495['grid']['option'][_0x2a88a8(0x1d9)]=[0x64,0x1f4,0x3e8,0x1388]:_0x2a88a8(0x207)==_0x13fb7e?_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)][_0x2a88a8(0x1d9)]=[0x3e8,0x1388,0x2710,0xc350,0x186a0]:_0x2a88a8(0x1e8)==_0x13fb7e&&(_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)][_0x2a88a8(0x1d9)]=_0x2a88a8(0x201)),_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)]['view_mode']=[],_0x2a88a8(0x1ef)==_0x5b46e9&&_0x22e495['grid'][_0x2a88a8(0x1d2)][_0x2a88a8(0x1d1)][_0x2a88a8(0x1db)](_0x2a88a8(0x1f8)),_0x2a88a8(0x1ef)==_0x29a465&&_0x22e495['grid'][_0x2a88a8(0x1d2)][_0x2a88a8(0x1d1)][_0x2a88a8(0x1db)](_0x2a88a8(0x1fa)),_0x2a88a8(0x1ef)==_0x234978&&_0x22e495[_0x2a88a8(0x1f1)][_0x2a88a8(0x1d2)][_0x2a88a8(0x1d1)][_0x2a88a8(0x1db)](_0x2a88a8(0x1e6)),_0x22e495;}async[a0_0x23990c(0x1d4)](){const _0x81d755=a0_0x23990c;let _0x5c2949=await MetaApi[_0x81d755(0x1dc)](_0x81d755(0x1ed)),_0x54682e=await MetaApi[_0x81d755(0x1dc)]('GRID_VIEW_MODE');this[_0x81d755(0x1e7)]=_0x54682e,this['gridPageOptions']=_0x5c2949;}[a0_0x23990c(0x1f3)](){const _0x8e077f=a0_0x23990c;this[_0x8e077f(0x1ec)]||(this[_0x8e077f(0x1ec)]={'mobile_mode':this[_0x8e077f(0x1e7)]?this[_0x8e077f(0x1e7)][0x1]:_0x8e077f(0x1fa),'desk_mode':this[_0x8e077f(0x1e7)]?this[_0x8e077f(0x1e7)][0x0]:_0x8e077f(0x1f8),'use_row_checker':!0x0,'pages':'grid_term_default','view_mode':[...this[_0x8e077f(0x1e7)]?this[_0x8e077f(0x1e7)]:[_0x8e077f(0x1f8),'LIST','CARD']],'multiple_select':!0x0,'use_filter_form':!0x0});}[a0_0x23990c(0x1e3)](){const _0x3bcd16=a0_0x23990c;return this[_0x3bcd16(0x1f3)](),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[_0x3bcd16(0x1fe)]('grid_use_row_check')}
|
|
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[_0x3bcd16(0x1ec)][_0x3bcd16(0x1d0)]}>${TermsUtil[_0x3bcd16(0x1fe)](_0x3bcd16(0x1d6))}</input>
|
|
11
11
|
<input type="radio" id="grid_row_check_use" name="grid_row_check_use" value="false"
|
|
12
|
-
?checked=${!this[
|
|
12
|
+
?checked=${!this['viewGridData'][_0x3bcd16(0x1d0)]}>${TermsUtil[_0x3bcd16(0x1fe)](_0x3bcd16(0x1f6))}</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['tLabel']('grid_support_multi_select')}
|
|
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[_0x3bcd16(0x1ec)][_0x3bcd16(0x1da)]}>${TermsUtil[_0x3bcd16(0x1fe)]('support')}</input>
|
|
24
24
|
<input type="radio" id="grid_multi_select" name="grid_multi_select" value="false"
|
|
25
|
-
?checked=${!this[
|
|
25
|
+
?checked=${!this[_0x3bcd16(0x1ec)][_0x3bcd16(0x1da)]}>${TermsUtil[_0x3bcd16(0x1fe)](_0x3bcd16(0x1d8))}</input>
|
|
26
26
|
</span>
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
<div field>
|
|
30
30
|
<h2>
|
|
31
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
31
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tLabel'](_0x3bcd16(0x1f4))}
|
|
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[_0x3bcd16(0x1ec)][_0x3bcd16(0x1eb)]}>${TermsUtil[_0x3bcd16(0x1fe)](_0x3bcd16(0x1d6))}</input>
|
|
37
37
|
<input type="radio" id="grid_use_filter" name="grid_use_filter" value="false"
|
|
38
|
-
?checked=${!this[
|
|
38
|
+
?checked=${!this[_0x3bcd16(0x1ec)][_0x3bcd16(0x1eb)]}>${TermsUtil[_0x3bcd16(0x1fe)](_0x3bcd16(0x1f6))}</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[_0x3bcd16(0x1fe)](_0x3bcd16(0x1ff))}
|
|
46
46
|
</h2>
|
|
47
47
|
<label>
|
|
48
48
|
<select id="grid_desk_view" name="grid_desk_view">
|
|
49
|
-
${this[
|
|
49
|
+
${this[_0x3bcd16(0x1e7)]?.[_0x3bcd16(0x205)](_0xb3441c=>html`<option value=${_0xb3441c[_0x3bcd16(0x1fb)]} ?selected=${this['viewGridData'][_0x3bcd16(0x1e1)]==_0xb3441c[_0x3bcd16(0x1fb)]}>${_0xb3441c[_0x3bcd16(0x1df)]}</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[_0x3bcd16(0x1fe)](_0x3bcd16(0x1f5))}
|
|
56
56
|
</h2>
|
|
57
57
|
<label>
|
|
58
58
|
<select id="grid_mobile_view" name="grid_mobile_view">
|
|
59
|
-
${this[
|
|
59
|
+
${this['gridViewModes']?.[_0x3bcd16(0x205)](_0x1e0d46=>html`<option value=${_0x1e0d46['name']} ?selected=${this[_0x3bcd16(0x1ec)]['mobile_mode']==_0x1e0d46[_0x3bcd16(0x1fb)]}>${_0x1e0d46[_0x3bcd16(0x1df)]}</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[_0x3bcd16(0x1fe)](_0x3bcd16(0x1f0))}
|
|
66
66
|
</h2>
|
|
67
67
|
<label>
|
|
68
|
-
${this[
|
|
69
|
-
<span>${
|
|
70
|
-
<input type="radio" name=${
|
|
71
|
-
<input type="radio" name=${
|
|
68
|
+
${this[_0x3bcd16(0x1e7)]?.[_0x3bcd16(0x205)](_0x10542f=>html`
|
|
69
|
+
<span>${_0x10542f['name']}
|
|
70
|
+
<input type="radio" name=${_0x10542f[_0x3bcd16(0x1fb)][_0x3bcd16(0x1e9)]()+_0x3bcd16(0x1e4)} id=${_0x10542f[_0x3bcd16(0x1fb)][_0x3bcd16(0x1e9)]()+_0x3bcd16(0x1e4)} ?checked=${this[_0x3bcd16(0x1ec)][_0x3bcd16(0x1d1)][_0x3bcd16(0x1f7)](_0x10542f['name'])} value="true">${TermsUtil[_0x3bcd16(0x1fe)](_0x3bcd16(0x1d6))}</input>
|
|
71
|
+
<input type="radio" name=${_0x10542f['name']['toLowerCase']()+_0x3bcd16(0x1e4)} id=${_0x10542f[_0x3bcd16(0x1fb)][_0x3bcd16(0x1e9)]()+_0x3bcd16(0x1e4)} ?checked=${!this[_0x3bcd16(0x1ec)][_0x3bcd16(0x1d1)][_0x3bcd16(0x1f7)](_0x10542f['name'])} value="false">${TermsUtil['tLabel'](_0x3bcd16(0x1f6))}</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[_0x3bcd16(0x1fe)]('grid_pagination')}
|
|
79
79
|
</h2>
|
|
80
80
|
<label>
|
|
81
|
-
${this[
|
|
81
|
+
${this[_0x3bcd16(0x208)]?.[_0x3bcd16(0x205)](_0x563361=>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=${_0x563361[_0x3bcd16(0x1fb)]} ?checked=${this[_0x3bcd16(0x1ec)][_0x3bcd16(0x1d9)]==_0x563361[_0x3bcd16(0x1fb)]}>${TermsUtil['tLabel'](_0x563361['name'])}</input>
|
|
84
84
|
</span>
|
|
85
85
|
`)}
|
|
86
86
|
</label>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x27d38a=a0_0x2470;(function(_0x548de2,_0x1a69d4){const _0x1a6b65=a0_0x2470,_0x2ca488=_0x548de2();while(!![]){try{const _0x174193=parseInt(_0x1a6b65(0x1ff))/0x1+-parseInt(_0x1a6b65(0x203))/0x2*(-parseInt(_0x1a6b65(0x1ef))/0x3)+-parseInt(_0x1a6b65(0x1f8))/0x4*(-parseInt(_0x1a6b65(0x205))/0x5)+-parseInt(_0x1a6b65(0x207))/0x6+-parseInt(_0x1a6b65(0x1e8))/0x7+-parseInt(_0x1a6b65(0x1eb))/0x8+-parseInt(_0x1a6b65(0x201))/0x9*(-parseInt(_0x1a6b65(0x208))/0xa);if(_0x174193===_0x1a69d4)break;else _0x2ca488['push'](_0x2ca488['shift']());}catch(_0x2dfd30){_0x2ca488['push'](_0x2ca488['shift']());}}}(a0_0x5596,0x40025));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x5596(){const _0x53df74=['21pmrVLr','renderGridEmphasizedConfigTab','emphasizedConfigTabColumnEmphasizedGrist','left','column-emphasized-grist','setGridEmphasizedConfigTabValues','column','fetchColumnEmphasized','forEach','4smXysB','delete','fetch','gutter','grid_row_emphasized_config','string','fetchRowEmphasized','309871fJNRqE','rowEmphasizedConfig','63oYVkEe','#row-emphasized-grist','149516UOMYDn','push','646735apDYNl','keys','2998932oArnuw','424690HwuXbn','backgroundColor','columnEmphasizedData','setGridEmphasizedConfigTabDefaultValues','bind','GRID','getGristGuttersConfig','tLabel','rank','logic','deleteRow','sortRecordByRank','integer','getGridEmphasizedConfigTabValues','map','querySelector','button','getGristSelectableConfig','viewEmphasizedData','row','font-color','setGridEmphasizedConfigTabConfig','right','1384215iCtyTS','code-input','columnEmphasizedConfig','2400472gxZtiT','grid_column_emphasized_config','background-color','fontColor'];a0_0x5596=function(){return _0x53df74;};return a0_0x5596();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x2470(_0x13e43e,_0x5d4bd4){const _0x55962d=a0_0x5596();return a0_0x2470=function(_0x247090,_0x7aeef9){_0x247090=_0x247090-0x1d5;let _0x4c4c1a=_0x55962d[_0x247090];return _0x4c4c1a;},a0_0x2470(_0x13e43e,_0x5d4bd4);}export const GridEmphasizedConfigTabMixin=_0x5e2f41=>class extends _0x5e2f41{[a0_0x27d38a(0x1f4)](_0x46db0f){const _0x15001f=a0_0x27d38a;if(_0x46db0f){this[_0x15001f(0x1e3)]={'rowEmphasizedData':[],'columnEmphasizedData':[]};let _0xe5a1f1=0x1;this[_0x15001f(0x1e3)]['rowEmphasizedData']=(_0x46db0f[_0x15001f(0x1e4)]||[])[_0x15001f(0x1df)](_0xb1c8c8=>({'id':_0xe5a1f1,'rank':_0xe5a1f1++,'backgroundColor':_0xb1c8c8[_0x15001f(0x209)]||'','fontColor':_0xb1c8c8[_0x15001f(0x1ee)]||'','logic':_0xb1c8c8[_0x15001f(0x1da)]||''})),_0xe5a1f1=0x1;let _0x390cae=_0x46db0f['column']||[];Object[_0x15001f(0x206)](_0x390cae)[_0x15001f(0x1f7)](_0x20005a=>{const _0x2520ac=_0x15001f;let _0x843901=_0x390cae[_0x20005a]||[],_0x50c667=0x1;_0x843901[_0x2520ac(0x1f7)](_0xa73572=>{const _0x2c834d=_0x2520ac;this[_0x2c834d(0x1e3)][_0x2c834d(0x20a)][_0x2c834d(0x204)]({'id':_0xe5a1f1++,'rank':_0x50c667++,'column':_0x20005a,'backgroundColor':_0xa73572['backgroundColor']||'','fontColor':_0xa73572[_0x2c834d(0x1ee)]||'','logic':_0xa73572[_0x2c834d(0x1da)]||''});});}),this[_0x15001f(0x1f1)]?.[_0x15001f(0x1fa)](),this['emphasizedConfigTabRowEmphasizedGrist']?.['fetch']();}else this[_0x15001f(0x20b)]();}[a0_0x27d38a(0x1de)](){const _0x4b16e8=a0_0x27d38a;let _0x4e80eb=this['getElementValueById']('row-emphasized-grist'),_0x5733a1=this['getElementValueById'](_0x4b16e8(0x1f3)),_0x2afdc7=[];this[_0x4b16e8(0x1dc)](_0x4e80eb)?.[_0x4b16e8(0x1f7)](_0x5d0d2b=>{const _0x114cb6=_0x4b16e8;_0x2afdc7[_0x114cb6(0x204)]({'backgroundColor':_0x5d0d2b['backgroundColor'],'fontColor':_0x5d0d2b[_0x114cb6(0x1ee)],'logic':_0x5d0d2b['logic']});});let _0x4ed8ea={};return this[_0x4b16e8(0x1dc)](_0x5733a1)?.[_0x4b16e8(0x1f7)](_0x3dbfd7=>{const _0x38e254=_0x4b16e8;_0x4ed8ea[_0x3dbfd7[_0x38e254(0x1f5)]]||(_0x4ed8ea[_0x3dbfd7[_0x38e254(0x1f5)]]=[]),_0x4ed8ea[_0x3dbfd7[_0x38e254(0x1f5)]][_0x38e254(0x204)]({'backgroundColor':_0x3dbfd7['backgroundColor'],'fontColor':_0x3dbfd7[_0x38e254(0x1ee)],'logic':_0x3dbfd7[_0x38e254(0x1da)]});}),{'gridEmphasized':{'row':_0x2afdc7||[],'column':_0x4ed8ea||{}}};}get['emphasizedConfigTabRowEmphasizedGrist'](){const _0xa54411=a0_0x27d38a;return this['shadowRoot'][_0xa54411(0x1e0)](_0xa54411(0x202));}get[a0_0x27d38a(0x1f1)](){return this['shadowRoot']['querySelector']('#column-emphasized-grist');}[a0_0x27d38a(0x1e6)](){const _0x594fe1=a0_0x27d38a;this[_0x594fe1(0x200)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x594fe1(0x1d7)](!0x1,!0x1),{'type':_0x594fe1(0x1fb),'gutterName':'button','icon':_0x594fe1(0x1f9),'handlers':{'click':(_0x5ac896,_0x3c137d,_0x3fac00,_0x6c1857,_0x34d14b)=>{const _0x471c2b=_0x594fe1;_0x6c1857['id']&&this[_0x471c2b(0x1db)](this['emphasizedConfigTabRowEmphasizedGrist'],_0x6c1857);}}},{'type':_0x594fe1(0x1fd),'name':'id','hidden':!0x0},{'type':_0x594fe1(0x1dd),'name':_0x594fe1(0x1d9),'header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1d9)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x594fe1(0x1fd),'name':_0x594fe1(0x209),'header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1ed)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x594fe1(0x1fd),'name':_0x594fe1(0x1ee),'header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1e5)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':'code-input','name':_0x594fe1(0x1da),'header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1da)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]},this[_0x594fe1(0x1ea)]={'rows':MetaApi[_0x594fe1(0x1e2)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x594fe1(0x1fb),'gutterName':_0x594fe1(0x1e1),'icon':_0x594fe1(0x1f9),'handlers':{'click':(_0xce9a5a,_0x48f359,_0x47ced1,_0x5457dc,_0xe91f13)=>{const _0x61aff8=_0x594fe1;_0x5457dc['id']&&this[_0x61aff8(0x1db)](this[_0x61aff8(0x1f1)],_0x5457dc);}}},{'type':_0x594fe1(0x1fd),'name':'id','hidden':!0x0},{'type':'string','name':_0x594fe1(0x1f5),'header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1f5)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x594fe1(0x1dd),'name':_0x594fe1(0x1d9),'header':TermsUtil['tLabel']('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x594fe1(0x1e7),'editable':!0x0,'mandatory':!0x0}},{'type':_0x594fe1(0x1fd),'name':_0x594fe1(0x209),'header':TermsUtil['tLabel'](_0x594fe1(0x1ed)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x594fe1(0x1fd),'name':_0x594fe1(0x1ee),'header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1e5)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x82},{'type':_0x594fe1(0x1e9),'name':'logic','header':TermsUtil[_0x594fe1(0x1d8)](_0x594fe1(0x1da)),'record':{'align':_0x594fe1(0x1f2),'editable':!0x0,'mandatory':!0x0},'width':0x12c}]};}[a0_0x27d38a(0x20b)](){const _0x52741a=a0_0x27d38a;this[_0x52741a(0x1e3)]||(this[_0x52741a(0x1e3)]={'rowEmphasizedData':[],'columnEmphasizedData':[]});}[a0_0x27d38a(0x1f0)](){const _0x8bd872=a0_0x27d38a;return this[_0x8bd872(0x20b)](),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[_0x8bd872(0x1d8)](_0x8bd872(0x1fc))}
|
|
6
6
|
</h2>
|
|
7
|
-
<ox-grist id="row-emphasized-grist" .config=${this[
|
|
8
|
-
.fetchHandler=${this[
|
|
7
|
+
<ox-grist id="row-emphasized-grist" .config=${this[_0x8bd872(0x200)]} .mode=${_0x8bd872(0x1d6)} auto-fetch
|
|
8
|
+
.fetchHandler=${this[_0x8bd872(0x1fe)][_0x8bd872(0x1d5)](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[_0x8bd872(0x1d8)](_0x8bd872(0x1ec))}
|
|
13
13
|
</h2>
|
|
14
|
-
<ox-grist id="column-emphasized-grist" .config=${this[
|
|
15
|
-
.fetchHandler=${this[
|
|
14
|
+
<ox-grist id="column-emphasized-grist" .config=${this[_0x8bd872(0x1ea)]} .mode=${'GRID'} auto-fetch
|
|
15
|
+
.fetchHandler=${this[_0x8bd872(0x1f6)]['bind'](this)}></ox-grist>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
-
`;}async[
|
|
18
|
+
`;}async[a0_0x27d38a(0x1fe)](){const _0x4c546a=a0_0x27d38a;return{'records':this[_0x4c546a(0x1e3)]['rowEmphasizedData'],'total':0x0};}async[a0_0x27d38a(0x1f6)](){const _0x1d047a=a0_0x27d38a;return{'records':this[_0x1d047a(0x1e3)]['columnEmphasizedData'],'total':0x0};}};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x4721(_0x24e88d,_0x448ebd){const _0x312df1=a0_0x312d();return a0_0x4721=function(_0x472113,_0x5f2b73){_0x472113=_0x472113-0x1de;let _0x119701=_0x312df1[_0x472113];return _0x119701;},a0_0x4721(_0x24e88d,_0x448ebd);}function a0_0x312d(){const _0x193c46=['help_doc','753646JTjHMB','12962184YCuJgV','5mfGAVi','menu','608427wtKjaY','description','getElementValueById','menu_name_field','menu_title','5334762iyACgj','name','8EtKbYf','1zWopFF','setMenuConfigTabValues','desc','getElementById','getMenuConfigTabValues','20HetMIK','2609613jbryBM','target','renderMenuConfigTab','setMenuConfigTabDefaultValue','tTitle','title','3305918PcVRZH','tLabel','4PBoTqA','value','menuTitleChange','viewMenuData','7164402ckNBlH','display'];a0_0x312d=function(){return _0x193c46;};return a0_0x312d();}const a0_0x33b103=a0_0x4721;(function(_0x557b0a,_0x1dc054){const _0x3003e7=a0_0x4721,_0x27ebc1=_0x557b0a();while(!![]){try{const _0x37b172=parseInt(_0x3003e7(0x1ee))/0x1*(parseInt(_0x3003e7(0x1e2))/0x2)+parseInt(_0x3003e7(0x1e6))/0x3*(parseInt(_0x3003e7(0x1fc))/0x4)+parseInt(_0x3003e7(0x1e4))/0x5*(parseInt(_0x3003e7(0x1eb))/0x6)+-parseInt(_0x3003e7(0x1df))/0x7+-parseInt(_0x3003e7(0x1ed))/0x8*(parseInt(_0x3003e7(0x1f4))/0x9)+-parseInt(_0x3003e7(0x1f3))/0xa*(parseInt(_0x3003e7(0x1fa))/0xb)+parseInt(_0x3003e7(0x1e3))/0xc;if(_0x37b172===_0x1dc054)break;else _0x27ebc1['push'](_0x27ebc1['shift']());}catch(_0x419b22){_0x27ebc1['push'](_0x27ebc1['shift']());}}}(a0_0x312d,0x9ae36));import{html}from'lit-element';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const MenuConfigTabMixin=_0x485a07=>class extends _0x485a07{[a0_0x33b103(0x1ef)](_0x101e00){const _0x141fb4=a0_0x33b103;if(_0x101e00){var {title:_0x41b488='',name:_0x29afac='',desc:_0x15acaa='',help:_0x36123a=''}=_0x101e00||{};this[_0x141fb4(0x1de)]={'title':_0x41b488,'name':_0x29afac,'desc':_0x15acaa,'help_doc':_0x36123a},this[_0x141fb4(0x1f1)](_0x141fb4(0x1f9))['value']=_0x41b488,this[_0x141fb4(0x1f1)](_0x141fb4(0x1ec))[_0x141fb4(0x1fd)]=_0x29afac,this[_0x141fb4(0x1f1)]('desc')['value']=_0x15acaa,this['getElementById'](_0x141fb4(0x1e1))[_0x141fb4(0x1fd)]=_0x36123a;}else this[_0x141fb4(0x1f7)]();}[a0_0x33b103(0x1f2)](){const _0x1a82ed=a0_0x33b103;let _0x4b743e={'menu':{}},_0x25854f=this[_0x1a82ed(0x1e8)]('title'),_0x42418f=this['getElementValueById']('name'),_0x1a93a2=this[_0x1a82ed(0x1e8)](_0x1a82ed(0x1f0)),_0x38877a=this[_0x1a82ed(0x1e8)](_0x1a82ed(0x1e1));return _0x25854f&&(_0x4b743e[_0x1a82ed(0x1e5)][_0x1a82ed(0x1f9)]=_0x25854f),_0x42418f&&(_0x4b743e['menu'][_0x1a82ed(0x1ec)]=_0x42418f),_0x1a93a2&&(_0x4b743e['menu'][_0x1a82ed(0x1f0)]=_0x1a93a2),_0x38877a&&(_0x4b743e['menu']['help']=_0x38877a),_0x4b743e;}[a0_0x33b103(0x1f7)](){const _0x564fd7=a0_0x33b103;this[_0x564fd7(0x1de)]||(this[_0x564fd7(0x1de)]={'title':'','name':_0x564fd7(0x1ec),'desc':_0x564fd7(0x1e7),'help_doc':''});}[a0_0x33b103(0x1fe)](_0x5a0a6d){const _0x29a071=a0_0x33b103;let _0x25d189=this[_0x29a071(0x1f1)]('display');_0x25d189&&(_0x25d189[_0x29a071(0x1fd)]=TermsUtil[_0x29a071(0x1f8)](_0x5a0a6d[_0x29a071(0x1f5)][_0x29a071(0x1fd)]));}[a0_0x33b103(0x1f6)](){const _0x2a14af=a0_0x33b103;return this[_0x2a14af(0x1f7)](),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['tLabel'](_0x2a14af(0x1ea))}
|
|
5
|
+
<input id="title" name="title" type="text" value=${this[_0x2a14af(0x1de)][_0x2a14af(0x1f9)]} @change=${_0x350f35=>this[_0x2a14af(0x1fe)](_0x350f35)}/>
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil['tLabel'](
|
|
10
|
-
<input id="display" name="display" value=${TermsUtil[
|
|
9
|
+
<label>${TermsUtil['tLabel'](_0x2a14af(0x1e0))}
|
|
10
|
+
<input id="display" name="display" value=${TermsUtil[_0x2a14af(0x1f8)](this[_0x2a14af(0x1de)]['title'])} type="text" readonly
|
|
11
11
|
disabled />
|
|
12
12
|
</label>
|
|
13
13
|
</div>
|
|
14
14
|
<div field>
|
|
15
|
-
<label>${TermsUtil[
|
|
16
|
-
<input id="name" name="name" type="text" value=${this[
|
|
15
|
+
<label>${TermsUtil[_0x2a14af(0x1fb)](_0x2a14af(0x1e9))}
|
|
16
|
+
<input id="name" name="name" type="text" value=${this[_0x2a14af(0x1de)][_0x2a14af(0x1ec)]} />
|
|
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[_0x2a14af(0x1fb)]('menu_desc_field')}
|
|
21
|
+
<input id="desc" name="desc" type="text" value=${this[_0x2a14af(0x1de)]['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[_0x2a14af(0x1fb)](_0x2a14af(0x1e1))}
|
|
26
|
+
<input id="help_doc" name="help_doc" type="text" value=${this[_0x2a14af(0x1de)][_0x2a14af(0x1e1)]} />
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x48ba46=a0_0x270b;(function(_0x166cff,_0x1b642e){const _0x2e987e=a0_0x270b,_0x47b95c=_0x166cff();while(!![]){try{const _0x128dac=parseInt(_0x2e987e(0x13e))/0x1+-parseInt(_0x2e987e(0xef))/0x2+parseInt(_0x2e987e(0x10f))/0x3+-parseInt(_0x2e987e(0x100))/0x4+parseInt(_0x2e987e(0x10a))/0x5+parseInt(_0x2e987e(0x11a))/0x6*(parseInt(_0x2e987e(0x154))/0x7)+-parseInt(_0x2e987e(0x102))/0x8*(-parseInt(_0x2e987e(0x11c))/0x9);if(_0x128dac===_0x1b642e)break;else _0x47b95c['push'](_0x47b95c['shift']());}catch(_0x2425cb){_0x47b95c['push'](_0x47b95c['shift']());}}}(a0_0x32ad,0x44863));import a0_0x1910a0 from'graphql-tag';import{html,css}from'lit-element';import{client}from'@operato/graphql';import{store}from'@operato/shell';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{CommonButtonStyles}from'@operato/styles';import{ButtonConfigTabMixin}from'./button-config-tab-mixin';import{MenuConfigTabMixin}from'./menu-config-tab-mixin';import{SearchConfigTabMixin}from'./search-config-tab-mixin';function a0_0x270b(_0x108615,_0x217161){const _0x32ada7=a0_0x32ad();return a0_0x270b=function(_0x270b3a,_0x3e17fc){_0x270b3a=_0x270b3a-0xeb;let _0x17d4cd=_0x32ada7[_0x270b3a];return _0x17d4cd;},a0_0x270b(_0x108615,_0x217161);}import{GridConfigTabMixin}from'./grid-config-tab-mixin';import{ColumnConfigTabMixin}from'./column-config-tab-mixin';import{GraphQlConfigTabMixin}from'./graphql-config-tab-mixin';import{FormConfigTabMixin}from'./form-config-tab-mixin';import{TabConfigTabMixin}from'./tab-config-tab-mixin';import{EtcConfigTabMixin}from'./etc-config-tab-mixin';import{GridEmphasizedConfigTabMixin}from'./grid-emphasized-config-tab-mixin';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';function a0_0x32ad(){const _0x56b192=['query','ox-grist','sortRecordByRank','set','6559ocBWfL','filter','sort_desc','detail_field','tab','menuId','push','select','dec','get','menu_config','currentTabKey','bind','meta_generator','options','tButton','save','grid-','gridEmphasized','clear','grid_config','683748ZIbady','style','errors','refresh',':checked','convertFirstCharUpperCase','rank','tLabel','studioPermission','stringify','backToMenu','enc','lifecycle','tTitle','graphql_config','column_config','icon','1476376OadJrU','querySelector','1291880xbcOGE','list','length','display:flex','keys','shadowRoot','thumbnail_field','desc','771150rxSfZg','form','\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','error.invalid\x20license\x20key','toLowerCase','906162DfHmzH','sort','getElementById','records','display:none','map','dispatchEvent','ConfigTabConfig','charAt','template','button_config','186LhVyqs','tagName','9nRqaDV','ConfigTab','sortRecordByField','initData','updateMultipleMenu','etc','dataStorage','ox-input-code','filters','styles','includes','thumbnail','column','tab_config','fields','details','menu','dirtyData','hidden','tabData','back','context','option','sort_rank','getElementValueById','ConfigTabValues','menuName','forEach','form_config','name','deleteRow','notify','selectedIndex','setTabData','344827AFfbfl','active','grid','rep_field','metaTemplate','grid_emphasized_config','button','sorters','tMenu','value','params','findOne','type','operatoTools','search_config','render','pageInitialized','getConfigTab'];a0_0x32ad=function(){return _0x56b192;};return a0_0x32ad();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{filter,merge}from'lodash';import{MetaCrypto}from'@things-factory/meta-ui/client/utils/meta-crypto';class MetaGeneratorPage extends MenuConfigTabMixin(GraphQlConfigTabMixin(GridConfigTabMixin(ColumnConfigTabMixin(ButtonConfigTabMixin(SearchConfigTabMixin(FormConfigTabMixin(TabConfigTabMixin(EtcConfigTabMixin(GridEmphasizedConfigTabMixin(localize(i18next)(PageView))))))))))){static get[a0_0x48ba46(0x125)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -141,24 +141,24 @@ const a0_0x3e179f=a0_0x4b9e;(function(_0x302a47,_0x26537e){const _0x51fe18=a0_0x
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
`];}static get[
|
|
144
|
+
`];}static get['properties'](){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_0x48ba46(0x131)](){const _0x864384=a0_0x48ba46;return{'title':TermsUtil[_0x864384(0xfc)](_0x864384(0x161)),'actions':[{'title':TermsUtil[_0x864384(0x163)](_0x864384(0x164)),'action':this['save'][_0x864384(0x160)](this),...CommonButtonStyles[_0x864384(0x164)]},{'title':TermsUtil[_0x864384(0x163)](_0x864384(0x130)),'action':this['backToMenu'][_0x864384(0x160)](this),...CommonButtonStyles[_0x864384(0x130)]},{'title':TermsUtil[_0x864384(0x163)](_0x864384(0xf2)),'action':this[_0x864384(0xf2)][_0x864384(0x160)](this),...CommonButtonStyles[_0x864384(0xf2)]}]};}[a0_0x48ba46(0x13a)](_0x5aa440,_0x496d8b){const _0x5f7cf0=a0_0x48ba46;let _0x51d41b=_0x5aa440[_0x5f7cf0(0x12d)];_0x51d41b[_0x5f7cf0(0x112)]=_0x51d41b[_0x5f7cf0(0x112)][_0x5f7cf0(0x155)](_0x4584ba=>_0x4584ba['id']!=_0x496d8b['id']),_0x5aa440['data']=_0x51d41b;}async['save'](){const _0x10b768=a0_0x48ba46;if(0x0==store['getState']()[_0x10b768(0x14b)][_0x10b768(0xf7)])return void document[_0x10b768(0x115)](new CustomEvent(_0x10b768(0x13b),{'detail':{'level':'error','message':i18next['t'](_0x10b768(0x10d))}}));if((await client[_0x10b768(0x150)]({'query':a0_0x1910a0`
|
|
145
145
|
query ($id: String!) {
|
|
146
146
|
studioTemplateIsOverLimit(id: $id)
|
|
147
147
|
}
|
|
148
|
-
`,'variables':{'id':this[
|
|
149
|
-
<h1>${this[
|
|
148
|
+
`,'variables':{'id':this[_0x10b768(0x159)]}}))[_0x10b768(0xf1)])return;let _0x47111f={},_0x1eb955={};Object[_0x10b768(0x106)](this[_0x10b768(0x12f)])[_0x10b768(0x137)](_0x5b6835=>{const _0xf5e622=_0x10b768;let _0x34bd3d=this['convertFirstCharUpperCase'](_0x5b6835);_0x47111f[_0x5b6835]=this[_0xf5e622(0x15d)+_0x34bd3d+'ConfigTabValues'](),_0x1eb955=merge(_0x1eb955,_0x47111f[_0x5b6835]);}),_0x1eb955=JSON[_0x10b768(0xf8)](_0x1eb955),_0x1eb955=MetaCrypto[_0x10b768(0xfa)](_0x1eb955),await MetaApi['updateMultiple'](_0x10b768(0x120),[{'id':this[_0x10b768(0x159)],'template':_0x1eb955,'cuFlag':'M'}])&&await this['initData']();}[a0_0x48ba46(0xed)](){const _0x4f5b64=a0_0x48ba46;this['setTabData'](),this[_0x4f5b64(0x122)]={'menu':{},'graphql':{},'button':[],'column':[],'grid':{},'search':[],'form':[],'tab':[],'etc':{},'gridEmphasized':{}},Object[_0x4f5b64(0x106)](this['tabData'])[_0x4f5b64(0x137)](_0x40330f=>{const _0x588874=_0x4f5b64;let _0x122687=this[_0x588874(0xf4)](_0x40330f);if(this[_0x588874(0x153)+_0x122687+'ConfigTabValues'])return this[_0x588874(0x153)+_0x122687+_0x588874(0x135)](this[_0x588874(0x122)][_0x40330f]);});}async['refresh'](){const _0xc60d97=a0_0x48ba46;this[_0xc60d97(0xed)](),await this[_0xc60d97(0x11f)]();}[a0_0x48ba46(0xf9)](){const _0x37d463=a0_0x48ba46;history[_0x37d463(0x130)]();}async['initData'](){const _0x27e1ad=a0_0x48ba46;var {menuId:_0x55db19=''}=this[_0x27e1ad(0xfb)]?.[_0x27e1ad(0x148)]?this['lifecycle'][_0x27e1ad(0x148)]:{};if(this[_0x27e1ad(0x159)]=_0x55db19,!_0x55db19||''==_0x55db19)return void this['clear']();let _0x3b1682=await MetaApi[_0x27e1ad(0x149)](_0x27e1ad(0x12c),_0x55db19,_0x27e1ad(0x10c));if(_0x3b1682){try{JSON['parse'](MetaCrypto['dec'](_0x3b1682[_0x27e1ad(0x118)]));}catch(_0x2d607b){return;}this[_0x27e1ad(0x136)]=TermsUtil[_0x27e1ad(0x146)](_0x3b1682[_0x27e1ad(0x139)]),this[_0x27e1ad(0x142)]=_0x3b1682[_0x27e1ad(0x118)]?JSON['parse'](MetaCrypto[_0x27e1ad(0x15c)](_0x3b1682[_0x27e1ad(0x118)])):{};var {menu:_0x4f5377={},gql:_0x3607bd={},button:_0x315b42=[],grid_column:_0x5bf434=[],grid:_0x3ab6a3={},search:_0x275660=[],form:_0x37d4c9=[],tab:_0x52c54d=[],etc:_0x2b698d={},gridEmphasized:_0x72d26e=[]}=this[_0x27e1ad(0x142)]?this[_0x27e1ad(0x142)]:{};this[_0x27e1ad(0x13d)](),this[_0x27e1ad(0x122)]={},this[_0x27e1ad(0x122)]['menu']=_0x4f5377,this['dataStorage']['graphql']=_0x3607bd,this[_0x27e1ad(0x122)][_0x27e1ad(0x140)]=_0x3ab6a3,this[_0x27e1ad(0x122)][_0x27e1ad(0x10b)]=_0x37d4c9,this[_0x27e1ad(0x122)][_0x27e1ad(0x158)]=_0x52c54d,this['dataStorage'][_0x27e1ad(0x121)]=_0x2b698d,this[_0x27e1ad(0x122)][_0x27e1ad(0xec)]=_0x72d26e,(_0x3ab6a3[_0x27e1ad(0x132)]?.[_0x27e1ad(0x145)]||[])[_0x27e1ad(0x137)]((_0x2e1f78,_0x5d2474)=>{const _0x79d425=_0x27e1ad;_0x2e1f78[_0x79d425(0xf5)]=0xa*(_0x5d2474+0x1);}),this[_0x27e1ad(0x122)][_0x27e1ad(0x128)]=_0x5bf434[_0x27e1ad(0x114)](_0x39183d=>{const _0x5a5299=_0x27e1ad;let _0x53ca56=(_0x3ab6a3[_0x5a5299(0x132)]?.[_0x5a5299(0x145)]||[])[_0x5a5299(0x155)](_0x39caa1=>_0x39caa1[_0x5a5299(0x139)]==_0x39183d[_0x5a5299(0x139)]);return _0x53ca56&&_0x53ca56[_0x5a5299(0x104)]>0x0?(_0x39183d[_0x5a5299(0x133)]=_0x53ca56[0x0][_0x5a5299(0xf5)],_0x39183d[_0x5a5299(0x156)]=!!_0x53ca56[0x0][_0x5a5299(0x109)]&&_0x53ca56[0x0][_0x5a5299(0x109)]):_0x39183d[_0x5a5299(0x133)]=0x0,_0x39183d[_0x5a5299(0x141)]=(_0x3ab6a3[_0x5a5299(0x103)]?.[_0x5a5299(0x12a)]||[])[_0x5a5299(0x126)](_0x39183d[_0x5a5299(0x139)]),_0x39183d[_0x5a5299(0x157)]=(_0x3ab6a3['list']?.[_0x5a5299(0x12b)]||[])[_0x5a5299(0x126)](_0x39183d[_0x5a5299(0x139)]),_0x39183d[_0x5a5299(0x108)]=_0x3ab6a3[_0x5a5299(0x103)]?.[_0x5a5299(0x127)]==_0x39183d['name'],_0x39183d;}),_0x275660[_0x27e1ad(0x15a)](...(_0x3607bd[_0x27e1ad(0x150)]?.[_0x27e1ad(0x124)]||[])[_0x27e1ad(0x114)](_0x4d46d6=>(_0x4d46d6[_0x27e1ad(0x12e)]=!0x0,_0x4d46d6))),this[_0x27e1ad(0x122)]['search']=_0x275660,_0x315b42[_0x27e1ad(0x15a)](...(_0x3ab6a3['button']||[])[_0x27e1ad(0x114)](_0x22129f=>(_0x22129f[_0x27e1ad(0x14a)]=_0x27e1ad(0xeb)+_0x22129f[_0x27e1ad(0x14a)],_0x22129f[_0x27e1ad(0xf0)]=_0x22129f[_0x27e1ad(0xff)],_0x22129f))),this[_0x27e1ad(0x122)][_0x27e1ad(0x144)]=_0x315b42,Object['keys'](this[_0x27e1ad(0x12f)])['forEach'](_0x539fbc=>{const _0x165494=_0x27e1ad;let _0x528926=this[_0x165494(0xf4)](_0x539fbc);if(this[_0x165494(0x153)+_0x528926+_0x165494(0x135)])return this[_0x165494(0x153)+_0x528926+_0x165494(0x135)](this[_0x165494(0x122)][_0x539fbc]);});}}async[a0_0x48ba46(0x14e)](){const _0x54f89e=a0_0x48ba46;this['setTabData']();let _0x244cae=Object[_0x54f89e(0x106)](this['tabData']);for(var _0x5daac7=0x0;_0x5daac7<_0x244cae[_0x54f89e(0x104)];_0x5daac7++){let _0x3ffac3=this[_0x54f89e(0xf4)](_0x244cae[_0x5daac7]);this['set'+_0x3ffac3+_0x54f89e(0x116)]&&await this[_0x54f89e(0x153)+_0x3ffac3+_0x54f89e(0x116)]();}}async['pageUpdated'](_0xc1720f,_0x226fa6,_0xe0ea61){const _0x16f270=a0_0x48ba46;!0x0===this[_0x16f270(0x13f)]?(this['setTabData'](),await this[_0x16f270(0x11f)](),this[_0x16f270(0x13d)]()):(this[_0x16f270(0xed)](),this['remove']());}['setTabData'](){const _0x53bac4=a0_0x48ba46;this['tabData']||(this[_0x53bac4(0x12f)]={'menu':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0x15e)),'graphql':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0xfd)),'grid':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0xee)),'column':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0xfe)),'gridEmphasized':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0x143)),'button':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0x119)),'search':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0x14c)),'form':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0x138)),'tab':TermsUtil[_0x53bac4(0xf6)](_0x53bac4(0x129)),'etc':TermsUtil['tLabel']('etc_config')});}['render'](){const _0xfd30f0=a0_0x48ba46;this['currentTabKey']||(this[_0xfd30f0(0x15f)]=_0xfd30f0(0x12c)),this[_0xfd30f0(0x13d)]();let _0x5adb5e=Object[_0xfd30f0(0x106)](this[_0xfd30f0(0x12f)]);return this[_0xfd30f0(0x12f)][this[_0xfd30f0(0x15f)]]?this[_0xfd30f0(0x15f)]:_0x5adb5e[0x0],html`
|
|
149
|
+
<h1>${this[_0xfd30f0(0x136)]}</h1>
|
|
150
150
|
<div class="tabs">
|
|
151
|
-
${
|
|
152
|
-
<div class="tab" ?activate="${
|
|
153
|
-
<span>${
|
|
151
|
+
${_0x5adb5e['map'](_0x38979d=>{const _0x4717e9=_0xfd30f0;let _0xed1270=this[_0x4717e9(0x12f)][_0x38979d];return html`
|
|
152
|
+
<div class="tab" ?activate="${_0x38979d===this[_0x4717e9(0x15f)]}" @click="${()=>this[_0x4717e9(0x15f)]=_0x38979d}">
|
|
153
|
+
<span>${_0xed1270}</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
|
+
${_0x5adb5e[_0xfd30f0(0x114)](_0x2eb5ae=>{const _0x465136=_0xfd30f0;let _0x28e507=_0x465136(0x113);return _0x2eb5ae==this[_0x465136(0x15f)]&&(_0x28e507=_0x465136(0x105)),html`
|
|
159
|
+
<div class='tab-contents' style="${_0x28e507}">
|
|
160
|
+
${this['getConfigTab'](_0x2eb5ae)}
|
|
161
161
|
</div>
|
|
162
162
|
`;})}
|
|
163
163
|
</div>
|
|
164
|
-
`;}[
|
|
164
|
+
`;}[a0_0x48ba46(0x14f)](_0x258009){const _0x467ddf=a0_0x48ba46;let _0x1682da=this[_0x467ddf(0xf4)](_0x258009);return this[_0x467ddf(0x14d)+_0x1682da+'ConfigTab']?this[_0x467ddf(0x14d)+_0x1682da+_0x467ddf(0x11d)]():html``;}[a0_0x48ba46(0xf4)](_0x4918a2){const _0x279e5c=a0_0x48ba46;return _0x4918a2[_0x279e5c(0x117)](0x0)['toUpperCase']()+_0x4918a2['slice'](0x1);}[a0_0x48ba46(0x111)](_0x4e178d){const _0x133261=a0_0x48ba46;return this['shadowRoot'][_0x133261(0x101)]('#'+_0x4e178d);}[a0_0x48ba46(0x134)](_0x3465bf){const _0x37f86e=a0_0x48ba46;let _0x12d24e=this['shadowRoot'][_0x37f86e(0x101)]('#'+_0x3465bf);if(!_0x12d24e)return;let _0x494bc7='';if(_0x37f86e(0x15b)==_0x12d24e[_0x37f86e(0x11b)]['toLowerCase']()){if(!_0x12d24e[_0x37f86e(0x162)]||0x0==_0x12d24e[_0x37f86e(0x162)]['length'])return;_0x494bc7=_0x12d24e[_0x37f86e(0x162)][_0x12d24e[_0x37f86e(0x13c)]]['value'];}else{if(_0x37f86e(0x151)==_0x12d24e[_0x37f86e(0x11b)][_0x37f86e(0x10e)]()){if(!_0x12d24e[_0x37f86e(0x12d)])return;if(!_0x12d24e[_0x37f86e(0x12d)][_0x37f86e(0x112)])return;if(0x0==_0x12d24e[_0x37f86e(0x12d)][_0x37f86e(0x112)][_0x37f86e(0x104)])return;return _0x12d24e['dirtyData'][_0x37f86e(0x112)];}if(_0x37f86e(0x123)==_0x12d24e[_0x37f86e(0x11b)][_0x37f86e(0x10e)]())return _0x12d24e['value'];if('radio'==_0x12d24e['type'][_0x37f86e(0x10e)]()){let _0x1e290e=this[_0x37f86e(0x107)][_0x37f86e(0x101)]('#'+_0x3465bf+_0x37f86e(0xf3));if(!_0x1e290e)return;return _0x1e290e[_0x37f86e(0x147)];}_0x494bc7=_0x12d24e[_0x37f86e(0x147)];}return _0x494bc7&&''!=_0x494bc7?_0x494bc7:void 0x0;}[a0_0x48ba46(0x152)](_0x1229de){const _0x35fe2d=a0_0x48ba46;return _0x1229de?this[_0x35fe2d(0x11e)](_0x1229de,_0x35fe2d(0xf5)):_0x1229de;}[a0_0x48ba46(0x11e)](_0x4d000a,_0x1cbefa){const _0x48ba8f=a0_0x48ba46;return _0x4d000a[_0x48ba8f(0x110)]((_0xe51ee7,_0x1c4664)=>_0xe51ee7[_0x1cbefa]-_0x1c4664[_0x1cbefa]),_0x4d000a;}}customElements['define']('meta-generator-page',MetaGeneratorPage);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="search-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
const a0_0x52c849=a0_0x3bc6;(function(_0x3679bf,_0x3b9dbf){const _0x27861e=a0_0x3bc6,_0x477d8c=_0x3679bf();while(!![]){try{const _0x2af2d9=-parseInt(_0x27861e(0xbb))/0x1+parseInt(_0x27861e(0xce))/0x2*(-parseInt(_0x27861e(0xc4))/0x3)+parseInt(_0x27861e(0xca))/0x4*(-parseInt(_0x27861e(0xdc))/0x5)+-parseInt(_0x27861e(0xcb))/0x6*(-parseInt(_0x27861e(0xc0))/0x7)+parseInt(_0x27861e(0xbf))/0x8*(-parseInt(_0x27861e(0xcf))/0x9)+-parseInt(_0x27861e(0xe8))/0xa+parseInt(_0x27861e(0xd9))/0xb;if(_0x2af2d9===_0x3b9dbf)break;else _0x477d8c['push'](_0x477d8c['shift']());}catch(_0x479147){_0x477d8c['push'](_0x477d8c['shift']());}}}(a0_0x11a7,0xc9ae3));import{html}from'lit-element';function a0_0x11a7(){const _0x3c82d0=['hidden','63964109TyuQng','filter','filters','1493095gdlsxR','delete','name','operator','boolean','searchTabGrist','right','fetchSearchTabHandler','query','search_operator','forEach','map','7970480ElDzwv','deleteRow','getGristGuttersConfig','left','center','sortRecordByRank','assign','1493261pavzhX','searchTabGridConfig','gql','search','472sjHYYT','14SKlzdE','setSearchConfigTabConfig','integer','select','3JihogL','string','gutter','getGristSelectableConfig','rank','button','20gQnacl','2783154tAfvQx','default_value','search-tab-grid','1731188jDftjj','193356hAomlb','getElementValueById','renderSearchConfigTab','viewSearchData','bind','tLabel','value','push','shadowRoot'];a0_0x11a7=function(){return _0x3c82d0;};return a0_0x11a7();}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';function a0_0x3bc6(_0x5c3d2f,_0x47157e){const _0x11a772=a0_0x11a7();return a0_0x3bc6=function(_0x3bc62a,_0x4f37d5){_0x3bc62a=_0x3bc62a-0xbb;let _0x4708cf=_0x11a772[_0x3bc62a];return _0x4708cf;},a0_0x3bc6(_0x5c3d2f,_0x47157e);}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const SearchConfigTabMixin=_0xcf7942=>class extends _0xcf7942{['setSearchConfigTabValues'](_0xbe6cc9){const _0x49110d=a0_0x3bc6;let _0x1693cc=_0xbe6cc9?.[_0x49110d(0xe7)]((_0x4495a6,_0x4abae3)=>{const _0x51d0b9=_0x49110d;let _0x3de46b=_0x4abae3+0x1,_0x2ff00={};return'object'==typeof _0x4495a6?Object[_0x51d0b9(0xee)](_0x2ff00,_0x4495a6):(_0x2ff00['name']=_0x4495a6,_0x2ff00['operator']=_0x51d0b9(0xda)),_0x2ff00[_0x51d0b9(0xc8)]=0xa*_0x3de46b,_0x2ff00['id']=_0x3de46b,_0x2ff00;});this['viewSearchData']=_0x1693cc||[],this[_0x49110d(0xe1)]?.['fetch']();}['getSearchConfigTabValues'](){const _0x28ca0d=a0_0x3bc6;let _0x537d14={'search':[],'gql':{'query':{'filters':[]}}},_0x899d42=this[_0x28ca0d(0xd0)](_0x28ca0d(0xcd));return this[_0x28ca0d(0xed)](_0x899d42)?.[_0x28ca0d(0xe6)](_0x10d532=>{const _0x5e2d42=_0x28ca0d;var {name:_0x3dc757,operator:_0x1d55f0='eq',hidden:_0xe1c965=!0x1,value:_0x3689e3}=_0x10d532;if(_0x3dc757){if(_0x5e2d42(0xda)==_0x1d55f0)_0x537d14[_0x5e2d42(0xbe)]['push'](_0x3dc757);else{let _0x191ffb={'name':_0x3dc757,'operator':_0x1d55f0};0x1==_0xe1c965?(_0x191ffb[_0x5e2d42(0xd5)]=_0x3689e3,_0x537d14[_0x5e2d42(0xbd)][_0x5e2d42(0xe4)][_0x5e2d42(0xdb)][_0x5e2d42(0xd6)](_0x191ffb)):(_0x191ffb[_0x5e2d42(0xd5)]=_0x3689e3,_0x537d14['search']['push'](_0x191ffb));}}}),_0x537d14;}[a0_0x52c849(0xd1)](){const _0x23582e=a0_0x52c849;return html`
|
|
2
|
+
<ox-grist auto-fetch id="search-tab-grid" .config=${this[_0x23582e(0xbc)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x23582e(0xe3)][_0x23582e(0xd3)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x52c849(0xe1)](){const _0x51b1d4=a0_0x52c849;return this[_0x51b1d4(0xd7)]['querySelector']('#search-tab-grid');}async[a0_0x52c849(0xe3)](){const _0x32d0b5=a0_0x52c849;return{'total':0x0,'records':this[_0x32d0b5(0xd2)]||[]};}async[a0_0x52c849(0xc1)](){const _0x1e0cc1=a0_0x52c849;let _0x21b269=await MetaApi['getCodeSelectorData']('FILTER_OPERATORS');this[_0x1e0cc1(0xbc)]={'rows':MetaApi[_0x1e0cc1(0xc7)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x1e0cc1(0xc8),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x1e0cc1(0xea)](!0x1,!0x1),{'type':_0x1e0cc1(0xc6),'gutterName':_0x1e0cc1(0xc9),'icon':_0x1e0cc1(0xdd),'handlers':{'click':(_0xab0e11,_0x2c1718,_0x4be330,_0xb91cd2,_0x151829)=>{const _0x4f19f2=_0x1e0cc1;_0xb91cd2['id']&&this[_0x4f19f2(0xe9)](this[_0x4f19f2(0xe1)],_0xb91cd2);}}},{'type':_0x1e0cc1(0xc5),'name':'id','hidden':!0x0},{'type':_0x1e0cc1(0xc2),'name':'rank','header':TermsUtil[_0x1e0cc1(0xd4)](_0x1e0cc1(0xc8)),'sortable':!0x0,'width':0x41,'record':{'align':_0x1e0cc1(0xe2),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x1e0cc1(0xde),'header':TermsUtil[_0x1e0cc1(0xd4)](_0x1e0cc1(0xde)),'sortable':!0x1,'width':0x9b,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x1e0cc1(0xc3),'name':_0x1e0cc1(0xdf),'header':TermsUtil[_0x1e0cc1(0xd4)](_0x1e0cc1(0xe5)),'sortable':!0x1,'width':0x64,'record':{'align':_0x1e0cc1(0xeb),'editable':!0x0,'mandatory':!0x1,'options':_0x21b269}},{'type':_0x1e0cc1(0xe0),'name':'hidden','header':TermsUtil[_0x1e0cc1(0xd4)](_0x1e0cc1(0xd8)),'sortable':!0x1,'width':0x41,'record':{'align':_0x1e0cc1(0xec),'mandatory':!0x1,'editable':!0x0}},{'type':_0x1e0cc1(0xc5),'name':_0x1e0cc1(0xd5),'header':TermsUtil[_0x1e0cc1(0xd4)](_0x1e0cc1(0xcc)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x1e0cc1(0xeb),'editable':!0x0,'mandatory':!0x1}}]};}};
|