@things-factory/operato-tools 6.0.131 → 6.0.133
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 +23 -23
- package/client/pages/generator/menu-config-tab-mixin.js +11 -11
- package/client/pages/generator/meta-generator-page.js +11 -11
- package/client/pages/generator/search-config-tab-mixin.js +4 -4
- package/client/pages/generator/tab-config-tab-mixin.js +4 -4
- package/client/pages/main.js +4 -4
- package/client/reducers/main.js +1 -1
- package/package.json +3 -3
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/tool-entity/create-menu.js +1 -1
- package/server/service/tool-entity/create-service.js +1 -1
- package/server/service/tool-secret/tool-permission.js +1 -1
- package/server/service/tool-secret/tool-resolver.js +1 -1
- package/translations/ja.json +85 -0
package/client/actions/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x2821(_0x4c8085,_0x579812){const _0x56be1f=a0_0x56be();return a0_0x2821=function(_0x2821af,_0x4bbf56){_0x2821af=_0x2821af-0xa5;let _0xe3ccc4=_0x56be1f[_0x2821af];return _0xe3ccc4;},a0_0x2821(_0x4c8085,_0x579812);}const a0_0x45fb03=a0_0x2821;(function(_0x388ba0,_0x44d4ab){const _0x504c74=a0_0x2821,_0x554239=_0x388ba0();while(!![]){try{const _0x3efe06=parseInt(_0x504c74(0xa6))/0x1+-parseInt(_0x504c74(0xa9))/0x2*(parseInt(_0x504c74(0xaa))/0x3)+-parseInt(_0x504c74(0xa7))/0x4+parseInt(_0x504c74(0xa8))/0x5+-parseInt(_0x504c74(0xa5))/0x6*(parseInt(_0x504c74(0xae))/0x7)+-parseInt(_0x504c74(0xad))/0x8*(-parseInt(_0x504c74(0xac))/0x9)+-parseInt(_0x504c74(0xb0))/0xa*(-parseInt(_0x504c74(0xaf))/0xb);if(_0x3efe06===_0x44d4ab)break;else _0x554239['push'](_0x554239['shift']());}catch(_0x4ac55f){_0x554239['push'](_0x554239['shift']());}}}(a0_0x56be,0x1fb8c));function a0_0x56be(){const _0x29e923=['38104XxCbfo','354963aYyAJm','889339kuYKni','30YTuoTs','6cLqLmf','52718RZMrnV','449996bFbQso','12260ByYUle','76022vbNczq','6fGgeRQ','UPDATE_OPERATO_TOOLS','135xfDqCA'];a0_0x56be=function(){return _0x29e923;};return a0_0x56be();}export const UPDATE_OPERATO_TOOLS=a0_0x45fb03(0xab);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="button-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
1
|
+
const a0_0x54b01e=a0_0x24f8;function a0_0x56e2(){const _0x48f9da=['left','shadowRoot','rank','698550TFCcVw','grid-basic','setButtonConfigTabConfig','querySelector','setButtonConfigTabValues','stringify','sortRecordByRank','tLabel','grid-','integer','param_field','2904948qnDTGt','logic','43484HEPRhW','popup','renderButtonConfigTab','form','meta-grist-element','testScenario','562932PvHxwc','select','menu.variables','custom','pages/meta-grist-element.js','button','fetchButtonConfigTabHandler','getGristSelectableConfig','startsWith','name','buttonTabGridConfig','large','viewButtonData','filter','buttonTabGrist','grist_all','menu-routing','parse','operation-master','delete','icon','grid','grid-custom','push','bind','basic','611624rJOCNP','style','tButton','label','string','replaceAll','json5','\x22record-view\x22','80XQmUnV','1490400ptryDg','trim','scenario','grist_one','display','title.detail','type','grist_changed','559016iahHFX','forEach','button-tab-grid','fetch'];a0_0x56e2=function(){return _0x48f9da;};return a0_0x56e2();}(function(_0x300f11,_0x433ae7){const _0x2add48=a0_0x24f8,_0x19ace5=_0x300f11();while(!![]){try{const _0x187c6d=-parseInt(_0x2add48(0x121))/0x1+parseInt(_0x2add48(0x128))/0x2+-parseInt(_0x2add48(0x13b))/0x3+-parseInt(_0x2add48(0x155))/0x4+parseInt(_0x2add48(0x119))/0x5+parseInt(_0x2add48(0x133))/0x6+parseInt(_0x2add48(0x135))/0x7*(parseInt(_0x2add48(0x118))/0x8);if(_0x187c6d===_0x433ae7)break;else _0x19ace5['push'](_0x19ace5['shift']());}catch(_0x1772ec){_0x19ace5['push'](_0x19ace5['shift']());}}}(a0_0x56e2,0x47cb3));import{html}from'lit-element';function a0_0x24f8(_0x48b68e,_0x15c960){const _0x56e2cc=a0_0x56e2();return a0_0x24f8=function(_0x24f82e,_0x19ba4c){_0x24f82e=_0x24f82e-0x118;let _0x136e08=_0x56e2cc[_0x24f82e];return _0x136e08;},a0_0x24f8(_0x48b68e,_0x15c960);}import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{getRenderer}from'@operato/data-grist';export const ButtonConfigTabMixin=_0x2d5b34=>class extends _0x2d5b34{[a0_0x54b01e(0x12c)](_0x5f09a8){const _0xb74ef8=a0_0x54b01e;_0x5f09a8?.[_0xb74ef8(0x122)]((_0x139821,_0x4690a7)=>{const _0x317da2=_0xb74ef8;let _0x1b4db6=_0x4690a7+0x1;if(_0x139821[_0x317da2(0x127)]=0xa*_0x1b4db6,_0x139821['id']=_0x1b4db6,_0x139821['logic']&&!_0x139821[_0x317da2(0x134)][_0x317da2(0x134)]){let _0x2f84b3=JSON[_0x317da2(0x12d)](_0x139821[_0x317da2(0x134)],null,0x2);_0x139821[_0x317da2(0x134)]={},_0x139821[_0x317da2(0x134)]['logic']=_0x2f84b3;}_0x139821['style']&&Array['isArray'](_0x139821['style'])&&(_0x139821[_0x317da2(0x156)]=JSON[_0x317da2(0x12d)](_0x139821['style'],null,0x2));}),this['viewButtonData']=_0x5f09a8,this[_0xb74ef8(0x149)]?.[_0xb74ef8(0x124)]();}['getButtonConfigTabValues'](){const _0x5d57ce=a0_0x54b01e;let _0x96900e={'button':[],'grid':{'button':[]}},_0x1a4451=this['getElementValueById'](_0x5d57ce(0x123));return this[_0x5d57ce(0x12e)](_0x1a4451)?.['forEach'](_0x2fc8b7=>{const _0x3de6eb=_0x5d57ce;var {name:_0x465b1f,label:_0x1446eb,style:_0xb24de3,type:_0xaf559d=_0x3de6eb(0x154),logic:_0x3224ad}=_0x2fc8b7;if(!_0x465b1f)return;let _0x109959={'name':_0x465b1f,'type':_0xaf559d[_0x3de6eb(0x15a)](_0x3de6eb(0x130),''),'label':_0x1446eb||_0x465b1f};_0x3224ad&&('string'==typeof _0x3224ad&&(_0x3224ad=JSON[_0x3de6eb(0x14c)](_0x3224ad)),_0x3224ad['logic']&&(_0x109959[_0x3de6eb(0x134)]=JSON[_0x3de6eb(0x14c)](_0x3224ad[_0x3de6eb(0x134)]))),_0xaf559d[_0x3de6eb(0x143)](_0x3de6eb(0x150))?(_0xb24de3&&((_0xb24de3=_0xb24de3[_0x3de6eb(0x11a)]())[_0x3de6eb(0x143)]('[')&&(_0xb24de3=JSON['parse'](_0xb24de3)),_0x109959[_0x3de6eb(0x14f)]=_0xb24de3),_0x96900e[_0x3de6eb(0x150)][_0x3de6eb(0x140)][_0x3de6eb(0x152)](_0x109959)):(_0xb24de3&&(_0x109959[_0x3de6eb(0x156)]=_0xb24de3),_0x96900e[_0x3de6eb(0x140)][_0x3de6eb(0x152)](_0x109959));}),_0x96900e;}[a0_0x54b01e(0x137)](){const _0x21dbb1=a0_0x54b01e;return html`
|
|
2
|
+
<ox-grist auto-fetch id="button-tab-grid" .config=${this[_0x21dbb1(0x145)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x21dbb1(0x141)][_0x21dbb1(0x153)](this)}>
|
|
4
4
|
</ox-grist>
|
|
5
|
-
`;}get[
|
|
5
|
+
`;}get[a0_0x54b01e(0x149)](){const _0x2332d5=a0_0x54b01e;return this[_0x2332d5(0x126)][_0x2332d5(0x12b)]('#button-tab-grid');}async[a0_0x54b01e(0x141)](){const _0x2c8fac=a0_0x54b01e;return{'total':0x0,'records':this[_0x2c8fac(0x147)]||[]};}[a0_0x54b01e(0x12a)](){const _0x3d401=a0_0x54b01e;this[_0x3d401(0x145)]={'rows':MetaApi[_0x3d401(0x142)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0x3d401(0x127),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':'gutter','gutterName':'button','icon':_0x3d401(0x14e),'handlers':{'click':(_0x1a0a9e,_0x575da8,_0x21544d,_0x823587,_0x4b3035)=>{const _0x5d6dea=_0x3d401;_0x823587['id']&&this['deleteRow'](this[_0x5d6dea(0x149)],_0x823587);}}},{'type':_0x3d401(0x131),'name':_0x3d401(0x127),'header':TermsUtil['tLabel'](_0x3d401(0x127)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0,'mandatory':!0x0}},{'type':_0x3d401(0x159),'name':'name','header':TermsUtil[_0x3d401(0x12f)](_0x3d401(0x144)),'sortable':!0x1,'width':0x9b,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x3d401(0x159),'name':_0x3d401(0x158),'header':TermsUtil[_0x3d401(0x12f)](_0x3d401(0x158)),'sortable':!0x1,'width':0xaf,'record':{'align':_0x3d401(0x125),'editable':!0x0,'mandatory':!0x0}},{'type':_0x3d401(0x159),'name':_0x3d401(0x11d),'header':TermsUtil[_0x3d401(0x12f)](_0x3d401(0x11d)),'sortable':!0x1,'width':0xaf,'record':{'align':_0x3d401(0x125),'editable':!0x1,'mandatory':!0x1,'renderer':(_0x5a0aa7,_0x356590,_0x3c2b5c,_0x1daaf3,_0xdc4ff1)=>{const _0x17688c=_0x3d401;let _0x336280=_0x3c2b5c[_0x17688c(0x158)]?_0x3c2b5c[_0x17688c(0x158)]:_0x3c2b5c[_0x17688c(0x144)];return TermsUtil[_0x17688c(0x157)](_0x336280);}}},{'type':_0x3d401(0x13c),'name':'type','header':TermsUtil[_0x3d401(0x12f)](_0x3d401(0x11f)),'sortable':!0x1,'width':0x64,'record':{'align':'left','editable':!0x0,'mandatory':!0x0,'options':['',_0x3d401(0x154),_0x3d401(0x13e),_0x3d401(0x129),_0x3d401(0x151)]}},{'type':_0x3d401(0x159),'name':'style','header':TermsUtil['tLabel'](_0x3d401(0x156)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x3d401(0x125),'editable':!0x0,'mandatory':!0x1}},{'type':'parameters','name':_0x3d401(0x134),'header':TermsUtil['tLabel'](_0x3d401(0x134)),'sortable':!0x1,'width':0xfa,'record':{'align':_0x3d401(0x125),'editable':!0x0,'mandatory':!0x1,'renderer':(_0x3b855d,_0x5b7861,_0x44ae3c,_0x330f1a,_0x2e90c3)=>{const _0x3a1a51=_0x3d401;if(_0x44ae3c['logic'])_0x3a1a51(0x154)===_0x44ae3c[_0x3a1a51(0x11f)]&&(_0x44ae3c[_0x3a1a51(0x134)]=void 0x0);else{if(_0x3a1a51(0x154)===_0x44ae3c['type'])delete _0x44ae3c['logic'];else{if(_0x3a1a51(0x13e)===_0x44ae3c[_0x3a1a51(0x11f)]){let _0x3aafce={'logic':JSON[_0x3a1a51(0x12d)]({'open_popup':{'title':_0x3a1a51(0x13d),'title_detail':_0x3a1a51(0x144),'type':_0x3a1a51(0x136),'menu':'menu-routing','tagname':_0x3a1a51(0x139),'location':'pages/meta-grist-element.js','size':_0x3a1a51(0x146),'popup_field':_0x3a1a51(0x132),'parent_field':'id','param':['filter',_0x3a1a51(0x11c),'grist_selected',_0x3a1a51(0x120)]},'call_scenario':{'type':_0x3a1a51(0x11b),'name':_0x3a1a51(0x13a),'after':_0x3a1a51(0x124),'param':[_0x3a1a51(0x148),_0x3a1a51(0x14a),'grist_selected']}},null,0x2)};_0x44ae3c[_0x3a1a51(0x134)]=_0x3aafce;}else{if(_0x3a1a51(0x129)===_0x44ae3c[_0x3a1a51(0x11f)]){let _0x415377={'logic':_0x3a1a51(0x15c)};_0x44ae3c[_0x3a1a51(0x134)]=_0x415377;}else{if(_0x3a1a51(0x151)===_0x44ae3c['type']){let _0x47d380={'logic':JSON[_0x3a1a51(0x12d)]({'open_popup':{'title':'menu.variables','title_detail':_0x3a1a51(0x144),'type':'popup','menu':_0x3a1a51(0x14b),'tagname':'meta-grist-element','location':_0x3a1a51(0x13f),'size':'large','popup_field':_0x3a1a51(0x132),'parent_field':'id'},'open_form_popup':{'type':_0x3a1a51(0x138),'title':_0x3a1a51(0x11e),'title_detail':'name','size':_0x3a1a51(0x146),'menu':_0x3a1a51(0x14d)},'call_scenario':{'type':'scenario','name':_0x3a1a51(0x13a),'after':_0x3a1a51(0x124)}},null,0x2)};_0x44ae3c[_0x3a1a51(0x134)]=_0x47d380;}else _0x44ae3c[_0x3a1a51(0x134)]=void 0x0;}}}}return getRenderer(_0x3a1a51(0x15b))(_0x3b855d,_0x5b7861,_0x44ae3c,_0x330f1a,_0x2e90c3);},'options':(_0x4f858f,_0x178443,_0x8652b8,_0x231a3d,_0x51a413)=>{const _0x49831d=_0x3d401;var {name:_0x4814,help:_0x5891ac}={'name':TermsUtil[_0x49831d(0x12f)](_0x49831d(0x134)),'help':''};return{'name':_0x4814,'spec':[{'label':'script','name':_0x49831d(0x134),'type':'textarea'}],'help':_0x5891ac,'context':this[_0x49831d(0x149)]};}}}]};}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x512d1a=a0_0x13d5;function a0_0x3141(){const _0x5ab074=['entity\x20type\x20filter\x20values\x20[{\x22name\x22:\x20\x22parentId\x22,\x20\x22operator\x22:\x20\x22eq\x22,\x20\x22value\x22:\x20\x22506134f8-8655-47ee-afdc-248b0de2f31c\x22}]','12971gBoUqR','object','type','shadowRoot','sortRecordByField','exportable','#column-tab-grid','reverse_sort','display','rank','978vDrxVd','deleteRow','entity\x20type\x20graphQL\x20Query','json5','code\x20Field','object_opt','sortRecordByRank','name','columnTabGridConfig','right','code\x20type\x20display\x20select\x20Array\x20[{\x22code1\x22,\x22code2\x22}]\x20OR\x20[{\x22value\x22:\x22code1\x22,\x22display\x22:\x22CODE1\x22},\x20{\x22value\x22:\x22code2\x22,\x22display\x22:\x22CODE2\x22}]','1045725lLlZOE','left','push','codeName\x20or\x20scenario\x20Name','getColumnConfigTabValues','width','fields','filter\x20values\x20[{\x22name\x22:\x20\x22parentId\x22,\x20\x22operator\x22:\x20\x22eq\x22,\x20\x22value\x22:\x20\x22506134f8-8655-47ee-afdc-248b0de2f31c\x22}]','fetch','detail_field','[\x22code\x22,\x22display\x22]\x20or\x20[{\x22name\x22:\x22code1\x22,\x22operator\x22:\x22eq\x22},{\x22name\x22:\x22display\x22,\x22operator\x22:\x22eq\x22}]','3357205nkbNmc','columnTabGrist','fetchColumnTabHandler','list','header','stringify','resource-object','boolean','align','popup\x20Title','entity\x20type\x20disp\x20Field','script','select','setColumnConfigTabConfig','hidden','parse','delete','includes','column-tab-grid','string','forEach','center','setColumnConfigTabValues','155353tbtQuQ','textarea','disp\x20Field','parameters','selector_args','sort_rank','Object\x20Mapping\x20Entity\x20reference\x20Field\x20Name','resource-code-selector','sort\x20field\x20[{\x22name\x22:\x20\x22boxTypeCd\x22,\x20\x22desc\x22:\x20false}]','mandatory','thumbnail_field','744052OcPSJM','getGristSelectableConfig','button','querySelector','tLabel','808888LaWWKu','sortable','details','option','sorters','renderColumnConfigTab','bind','sort_desc','select_opt','4475360FWUhbP','editable','thumbnail','viewColumnData','grid','getGristGuttersConfig','GraphQL\x20query\x20Name','gutter','integer'];a0_0x3141=function(){return _0x5ab074;};return a0_0x3141();}(function(_0x2e55ed,_0x1ec103){const _0x535b53=a0_0x13d5,_0x1b40ad=_0x2e55ed();while(!![]){try{const _0x443696=-parseInt(_0x535b53(0x226))/0x1+-parseInt(_0x535b53(0x1dc))/0x2+parseInt(_0x535b53(0x204))/0x3+parseInt(_0x535b53(0x231))/0x4+parseInt(_0x535b53(0x20f))/0x5+-parseInt(_0x535b53(0x1f9))/0x6*(-parseInt(_0x535b53(0x1ef))/0x7)+-parseInt(_0x535b53(0x1e5))/0x8;if(_0x443696===_0x1ec103)break;else _0x1b40ad['push'](_0x1b40ad['shift']());}catch(_0x31df82){_0x1b40ad['push'](_0x1b40ad['shift']());}}}(a0_0x3141,0x5eef3));import{html}from'lit-element';import'@things-factory/component-ui/client/quick-find/quick-find-tabs';function a0_0x13d5(_0x5665b0,_0x44e6d8){const _0x314186=a0_0x3141();return a0_0x13d5=function(_0x13d57b,_0x4b659b){_0x13d57b=_0x13d57b-0x1dc;let _0x456cc7=_0x314186[_0x13d57b];return _0x456cc7;},a0_0x13d5(_0x5665b0,_0x44e6d8);}import'@things-factory/form-ui';import'@things-factory/grist-ui';import{getRenderer}from'@operato/data-grist';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';const objectTypes=[a0_0x512d1a(0x1f0),'resource-object',a0_0x512d1a(0x22d)],jsonConfigTypes=[a0_0x512d1a(0x1f0),a0_0x512d1a(0x21b),a0_0x512d1a(0x215),a0_0x512d1a(0x22d)],typeConfigGuides={'object':{'queryName':'','nameField':'','descriptionField':'','select':[{'name':'','hidden':!0x0},{'name':'','hidden':!0x1}],'list':{'fields':['','']}},'resource-object':{'queryName':a0_0x512d1a(0x1eb),'referenceField':a0_0x512d1a(0x22c),'nameField':'','descriptionField':'','select':[{'name':'','hidden':!0x0},{'name':'','hidden':!0x1}],'list':{'fields':['','']}},'resource-code-selector':{'queryName':'graphQL\x20Query','selectorName':a0_0x512d1a(0x218),'codeField':a0_0x512d1a(0x1fd),'dispField':a0_0x512d1a(0x228),'filterFields':a0_0x512d1a(0x20e),'select':[{'name':'','hidden':!0x0},{'name':'','hidden':!0x1}],'filters':a0_0x512d1a(0x20b),'sorters':a0_0x512d1a(0x22e)},'select':{'type':'code\x20or\x20scenario\x20or\x20entity','name':a0_0x512d1a(0x207),'values':a0_0x512d1a(0x203),'args':{'queryName':a0_0x512d1a(0x1fb),'codeField':'entity\x20type\x20code\x20Field','dispField':a0_0x512d1a(0x219),'filters':a0_0x512d1a(0x1ee),'sorters':'entity\x20type\x20sort\x20field\x20[{\x22name\x22:\x20\x22boxTypeCd\x22,\x20\x22desc\x22:\x20false}]'}}};export const ColumnConfigTabMixin=_0x55f0de=>class extends _0x55f0de{[a0_0x512d1a(0x225)](_0x55b830){const _0x2b9ff0=a0_0x512d1a;_0x55b830?.[_0x2b9ff0(0x223)]((_0x55e797,_0x9fd901)=>{const _0x2e930d=_0x2b9ff0;let _0x5b27fe=_0x9fd901+0x1;if(_0x55e797['rank']=0xa*_0x5b27fe,_0x55e797['id']=_0x5b27fe,objectTypes[_0x2e930d(0x220)](_0x55e797[_0x2e930d(0x1f1)])){if(_0x55e797[_0x2e930d(0x1fe)]&&!_0x55e797[_0x2e930d(0x22a)]){let _0x2dd34a=JSON[_0x2e930d(0x214)](_0x55e797[_0x2e930d(0x1fe)],null,0x2);_0x55e797[_0x2e930d(0x22a)]={},_0x55e797[_0x2e930d(0x22a)]['option']=_0x2dd34a;}}else{if(_0x2e930d(0x21b)==_0x55e797[_0x2e930d(0x1f1)]&&_0x55e797[_0x2e930d(0x1e4)]&&!_0x55e797[_0x2e930d(0x22a)]){let _0x185a18=JSON[_0x2e930d(0x214)](_0x55e797[_0x2e930d(0x1e4)],null,0x2);_0x55e797['selector_args']={},_0x55e797[_0x2e930d(0x22a)][_0x2e930d(0x1df)]=_0x185a18;}}}),this[_0x2b9ff0(0x1e8)]=_0x55b830,this[_0x2b9ff0(0x210)]?.[_0x2b9ff0(0x20c)]();}[a0_0x512d1a(0x208)](){const _0x164548=a0_0x512d1a;let _0x18ca2c={'grid_column':[],'grid':{'list':{'fields':[],'details':[],'thumbnail':''},'option':{'sorters':[]}}},_0x14ea58=this['getElementValueById'](_0x164548(0x221));return _0x14ea58&&(this[_0x164548(0x1ff)](_0x14ea58)?.[_0x164548(0x223)](_0x51c65e=>{const _0x669ed8=_0x164548;var {name:_0x4e0f1a,header:_0x155c5b,type:_0x340626=_0x669ed8(0x222),editable:_0x1da5fe=!0x1,sortable:_0x9d3a87=!0x1,mandatory:_0xed6959=!0x1,exportable:_0x46b05f=!0x1,rep_field:_0xfee547=!0x1,detail_field:_0x3e4721=!0x1,thumbnail_field:_0x1cc891=!0x1,hidden:_0x52e7dc=!0x1,align:_0x56c5fd=_0x669ed8(0x205),width:_0x374dbe=0x0,selector_args:_0x24899e}=_0x51c65e;if(!_0x4e0f1a)return;let _0x4f7337={'name':_0x4e0f1a,'header':_0x155c5b||_0x4e0f1a,'type':_0x340626,'editable':_0x1da5fe,'sortable':_0x9d3a87,'mandatory':_0xed6959,'exportable':_0x46b05f,'hidden':_0x52e7dc,'align':_0x56c5fd,'width':_0x374dbe};_0x24899e&&_0x669ed8(0x222)==typeof _0x24899e&&(_0x24899e=JSON[_0x669ed8(0x21e)](_0x24899e)),jsonConfigTypes[_0x669ed8(0x220)](_0x340626)&&_0x24899e&&_0x24899e['option']&&(_0x4f7337[_0x669ed8(0x21b)==_0x340626?'select_opt':_0x669ed8(0x1fe)]=JSON[_0x669ed8(0x21e)](_0x24899e['option'])),_0x18ca2c['grid_column'][_0x669ed8(0x206)](_0x4f7337),_0xfee547&&_0x18ca2c['grid'][_0x669ed8(0x212)][_0x669ed8(0x20a)][_0x669ed8(0x206)](_0x4e0f1a),_0x3e4721&&_0x18ca2c[_0x669ed8(0x1e9)]['list'][_0x669ed8(0x1de)]['push'](_0x4e0f1a),_0x1cc891&&(_0x18ca2c[_0x669ed8(0x1e9)][_0x669ed8(0x212)][_0x669ed8(0x1e7)]=_0x4e0f1a);}),this[_0x164548(0x1f3)](_0x14ea58['filter'](_0x3f1e69=>_0x3f1e69[_0x164548(0x22b)]&&_0x3f1e69[_0x164548(0x22b)]>0x0),'sort_rank')['forEach'](_0x5c0d1c=>{const _0x30acd9=_0x164548;var {name:_0x37aac9,sort_desc:_0x1be2f7=!0x1}=_0x5c0d1c;_0x37aac9&&_0x18ca2c[_0x30acd9(0x1e9)][_0x30acd9(0x1df)][_0x30acd9(0x1e0)][_0x30acd9(0x206)]({'name':_0x37aac9,'desc':_0x1be2f7});})),_0x18ca2c;}[a0_0x512d1a(0x1e1)](){const _0x482749=a0_0x512d1a;return html`
|
|
2
2
|
<ox-grist auto-fetch id="column-tab-grid" .config=${this['columnTabGridConfig']} .mode='GRID'
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
3
|
+
.fetchHandler=${this[_0x482749(0x211)][_0x482749(0x1e2)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x512d1a(0x210)](){const _0x1edd5c=a0_0x512d1a;return this[_0x1edd5c(0x1f2)][_0x1edd5c(0x234)](_0x1edd5c(0x1f5));}async[a0_0x512d1a(0x211)](){return{'total':0x0,'records':this['viewColumnData']||[]};}async[a0_0x512d1a(0x21c)](){const _0xcfc666=a0_0x512d1a;let _0x310b24=await MetaApi['getCodeSelectorData']('GRIST_COLUMN_TYPES');this[_0xcfc666(0x201)]={'rows':MetaApi[_0xcfc666(0x232)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':_0xcfc666(0x1f8),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0xcfc666(0x1ea)](!0x1,!0x1),{'type':_0xcfc666(0x1ec),'gutterName':_0xcfc666(0x233),'icon':_0xcfc666(0x21f),'handlers':{'click':(_0x162443,_0x11ef80,_0x250eab,_0x45a425,_0xee47c5)=>{const _0x796908=_0xcfc666;_0x45a425['id']&&this[_0x796908(0x1fa)](this['columnTabGrist'],_0x45a425);}}},{'type':_0xcfc666(0x1ed),'name':_0xcfc666(0x1f8),'header':TermsUtil['tLabel'](_0xcfc666(0x1f8)),'sortable':!0x0,'width':0x41,'record':{'align':_0xcfc666(0x202),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'id','hidden':!0x0},{'type':_0xcfc666(0x222),'name':_0xcfc666(0x200),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x200)),'sortable':!0x1,'width':0x87,'record':{'align':_0xcfc666(0x205),'editable':!0x0,'mandatory':!0x0}},{'type':_0xcfc666(0x222),'name':'header','header':TermsUtil[_0xcfc666(0x235)]('header'),'sortable':!0x1,'width':0x87,'record':{'align':_0xcfc666(0x205),'editable':!0x0,'mandatory':!0x0}},{'type':_0xcfc666(0x222),'name':_0xcfc666(0x1f7),'header':TermsUtil[_0xcfc666(0x235)]('display'),'sortable':!0x1,'width':0x87,'record':{'align':_0xcfc666(0x205),'editable':!0x1,'mandatory':!0x1,'renderer':(_0x4c6738,_0x8dc3d1,_0x347085,_0x2bb521,_0x421bd4)=>_0x347085&&_0x347085[_0xcfc666(0x213)]?TermsUtil[_0xcfc666(0x235)](_0x347085[_0xcfc666(0x213)]):''}},{'type':'select','name':_0xcfc666(0x1f1),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x1f1)),'sortable':!0x1,'width':0x64,'record':{'align':_0xcfc666(0x205),'editable':!0x0,'mandatory':!0x0,'options':_0x310b24}},{'type':'boolean','name':_0xcfc666(0x1e6),'header':TermsUtil[_0xcfc666(0x235)]('editable'),'sortable':!0x1,'width':0x50,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x216),'name':_0xcfc666(0x1dd),'header':TermsUtil[_0xcfc666(0x235)]('sortable'),'sortable':!0x1,'width':0x50,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x216),'name':_0xcfc666(0x22f),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x22f)),'sortable':!0x1,'width':0x55,'record':{'align':_0xcfc666(0x224),'mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x216),'name':_0xcfc666(0x1f4),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x1f4)),'sortable':!0x1,'width':0x5a,'record':{'align':_0xcfc666(0x224),'mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x216),'name':'rep_field','header':TermsUtil[_0xcfc666(0x235)]('rep_field'),'sortable':!0x1,'width':0x5a,'record':{'align':_0xcfc666(0x224),'mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x216),'name':_0xcfc666(0x20d),'header':TermsUtil[_0xcfc666(0x235)]('detail_field'),'sortable':!0x1,'width':0x5a,'record':{'align':_0xcfc666(0x224),'mandatory':!0x1,'editable':!0x0}},{'type':'boolean','name':_0xcfc666(0x230),'header':TermsUtil[_0xcfc666(0x235)]('thumbnail_field'),'sortable':!0x1,'width':0x5a,'record':{'align':'center','mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x216),'name':_0xcfc666(0x21d),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x21d)),'sortable':!0x1,'width':0x41,'record':{'align':_0xcfc666(0x224),'mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x21b),'name':_0xcfc666(0x217),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x217)),'sortable':!0x1,'width':0x46,'record':{'align':_0xcfc666(0x205),'editable':!0x0,'mandatory':!0x1,'options':['',_0xcfc666(0x205),_0xcfc666(0x224),_0xcfc666(0x202)]}},{'type':_0xcfc666(0x1ed),'name':_0xcfc666(0x209),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x209)),'sortable':!0x1,'width':0x3c,'record':{'editable':!0x0,'mandatory':!0x0,'align':'right'}},{'type':_0xcfc666(0x1ed),'name':_0xcfc666(0x22b),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x22b)),'sortable':!0x1,'width':0x50,'record':{'editable':!0x0,'mandatory':!0x0,'align':_0xcfc666(0x202)}},{'type':_0xcfc666(0x216),'name':_0xcfc666(0x1e3),'header':TermsUtil[_0xcfc666(0x235)](_0xcfc666(0x1f6)),'sortable':!0x1,'width':0x41,'record':{'align':_0xcfc666(0x224),'mandatory':!0x1,'editable':!0x0}},{'type':_0xcfc666(0x229),'name':_0xcfc666(0x22a),'header':TermsUtil['tLabel']('selector_args'),'sortable':!0x1,'width':0x96,'record':{'align':_0xcfc666(0x205),'editable':!0x0,'mandatory':!0x1,'renderer':(_0x5e49d2,_0x1e6c8a,_0x5853a4,_0x3df5af,_0x33f404)=>{const _0x100201=_0xcfc666;if(!_0x5853a4[_0x100201(0x22a)]){let _0x219358=typeConfigGuides[_0x5853a4[_0x100201(0x1f1)]];_0x219358?_0x5853a4['selector_args']={'option':JSON[_0x100201(0x214)](_0x219358,null,0x2)}:0x0==jsonConfigTypes[_0x100201(0x220)](_0x5853a4[_0x100201(0x1f1)])&&(_0x5853a4['selector_args']=void 0x0);}return getRenderer(_0x100201(0x1fc))(_0x5e49d2,_0x1e6c8a,_0x5853a4,_0x3df5af,_0x33f404);},'options':(_0x2cb7cd,_0x24fc85,_0x5361e2,_0x19da26,_0x11e07d)=>{const _0x47bedc=_0xcfc666;var {name:_0x54e7f3,help:_0x2c6d00}={'name':TermsUtil[_0x47bedc(0x235)](_0x47bedc(0x22a)),'help':''};return{'name':_0x54e7f3,'spec':[{'label':_0x47bedc(0x21a),'name':_0x47bedc(0x1df),'type':_0x47bedc(0x227)}],'help':_0x2c6d00,'context':this['columnTabGrist']};}}}]};}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="etc-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
function a0_0x5b53(_0x399044,_0x491ea9){const _0x3f1300=a0_0x3f13();return a0_0x5b53=function(_0x5b53ea,_0x47bbb3){_0x5b53ea=_0x5b53ea-0x1be;let _0x429c1a=_0x3f1300[_0x5b53ea];return _0x429c1a;},a0_0x5b53(_0x399044,_0x491ea9);}const a0_0x2c6ddb=a0_0x5b53;(function(_0x388f59,_0x27804f){const _0x5f06cb=a0_0x5b53,_0xfc97ad=_0x388f59();while(!![]){try{const _0x15aa04=-parseInt(_0x5f06cb(0x1c2))/0x1+parseInt(_0x5f06cb(0x1d1))/0x2+parseInt(_0x5f06cb(0x1cb))/0x3+-parseInt(_0x5f06cb(0x1c5))/0x4+-parseInt(_0x5f06cb(0x1c3))/0x5*(-parseInt(_0x5f06cb(0x1ce))/0x6)+parseInt(_0x5f06cb(0x1c4))/0x7*(-parseInt(_0x5f06cb(0x1be))/0x8)+parseInt(_0x5f06cb(0x1c1))/0x9*(parseInt(_0x5f06cb(0x1d4))/0xa);if(_0x15aa04===_0x27804f)break;else _0xfc97ad['push'](_0xfc97ad['shift']());}catch(_0xa8483d){_0xfc97ad['push'](_0xfc97ad['shift']());}}}(a0_0x3f13,0x61750));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const EtcConfigTabMixin=_0x433628=>class extends _0x433628{[a0_0x2c6ddb(0x1d9)](_0x52b288){const _0x24cc3d=a0_0x2c6ddb;let _0x24269f=0x1,_0x436761=Object['keys'](_0x52b288||{})[_0x24cc3d(0x1d0)](_0xba16c4=>{const _0x5ddbf2=_0x24cc3d;let _0x551d98={};return _0x551d98['id']=0x64*_0x24269f,_0x551d98[_0x5ddbf2(0x1e0)]=_0xba16c4,_0x551d98[_0x5ddbf2(0x1d3)]=_0x52b288[_0xba16c4],_0x24269f+=0x1,_0x551d98;});this[_0x24cc3d(0x1c7)]=_0x436761||[],this[_0x24cc3d(0x1de)]?.[_0x24cc3d(0x1c0)]();}[a0_0x2c6ddb(0x1d7)](){const _0x2c9a73=a0_0x2c6ddb;let _0xbf9254={'etc':{}};return this[_0x2c9a73(0x1cf)]('etc-tab-grid')?.[_0x2c9a73(0x1c6)](_0x1749e2=>{const _0x2ce577=_0x2c9a73;var {key:_0x1f7451,value:_0x18e542}=_0x1749e2;_0x1f7451&&_0x18e542&&(_0xbf9254[_0x2ce577(0x1d5)][_0x1f7451]=_0x18e542);}),_0xbf9254;}[a0_0x2c6ddb(0x1d2)](){const _0x3d54bc=a0_0x2c6ddb;return html`
|
|
2
|
+
<ox-grist auto-fetch id="etc-tab-grid" .config=${this[_0x3d54bc(0x1c8)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x3d54bc(0x1da)][_0x3d54bc(0x1d8)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x2c6ddb(0x1de)](){const _0x3f2d0=a0_0x2c6ddb;return this['shadowRoot']['querySelector'](_0x3f2d0(0x1e1));}async[a0_0x2c6ddb(0x1da)](){const _0x228e70=a0_0x2c6ddb;return{'total':0x0,'records':this[_0x228e70(0x1c7)]||[]};}async[a0_0x2c6ddb(0x1dd)](){const _0x3df734=a0_0x2c6ddb;this['etcTabGridConfig']={'rows':MetaApi[_0x3df734(0x1df)](!0x0),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x3df734(0x1cc)](!0x1,!0x1),{'type':_0x3df734(0x1cd),'gutterName':_0x3df734(0x1bf),'icon':_0x3df734(0x1dc),'handlers':{'click':(_0x2f0373,_0x496d36,_0x235053,_0x106801,_0x5744ae)=>{const _0x102105=_0x3df734;_0x106801['id']&&this[_0x102105(0x1d6)](this[_0x102105(0x1de)],_0x106801);}}},{'type':_0x3df734(0x1c9),'name':'id','hidden':!0x0},{'type':'string','name':_0x3df734(0x1e0),'header':TermsUtil[_0x3df734(0x1ca)](_0x3df734(0x1e0)),'sortable':!0x1,'width':0xc8,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':'string','name':_0x3df734(0x1d3),'header':TermsUtil[_0x3df734(0x1ca)](_0x3df734(0x1d3)),'sortable':!0x1,'width':0xc8,'record':{'align':_0x3df734(0x1db),'editable':!0x0,'mandatory':!0x0}}]};}};function a0_0x3f13(){const _0x3f1d6a=['7JzwlVI','1586056bhVszH','forEach','viewEtcData','etcTabGridConfig','string','tLabel','1345023hyTOdg','getGristGuttersConfig','gutter','404598mMOTcu','getElementValueById','map','1250466fwVWtE','renderEtcConfigTab','value','1250EgoPMN','etc','deleteRow','getEtcConfigTabValues','bind','setEtcConfigTabValues','fetchEtcTabHandler','left','delete','setEtcConfigTabConfig','etcTabGrist','getGristSelectableConfig','key','#etc-tab-grid','3883688mESUre','button','fetch','59922DiJzoE','692098lXkUHx','5MfHjId'];a0_0x3f13=function(){return _0x3f1d6a;};return a0_0x3f13();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<ox-grist auto-fetch id="form-tab-grid" .config=${this[
|
|
3
|
-
.fetchHandler=${this[
|
|
4
|
-
</ox-grist>`;}get[
|
|
1
|
+
function a0_0x35cd(_0x2839a0,_0x361456){const _0x40b678=a0_0x40b6();return a0_0x35cd=function(_0x35cd58,_0x1e4d8d){_0x35cd58=_0x35cd58-0x1e1;let _0x5ee9d8=_0x40b678[_0x35cd58];return _0x5ee9d8;},a0_0x35cd(_0x2839a0,_0x361456);}const a0_0x4b7bf4=a0_0x35cd;function a0_0x40b6(){const _0x40f971=['column_list','display','rank','sortRecordByRank','5580370noOxNi','category','forEach','formTabGrist','deleteRow','189oSPxgy','70948vCxZAl','27kNvzsH','split','tLabel','integer','setFormConfigTabValues','map','getFormConfigTabValues','form','column','4730dhDkkq','string','fetchFormTabHandler','#form-tab-grid','querySelector','gutter','bind','renderFormConfigTab','form-tab-grid','right','543545oDjPFX','388ZQwqFn','129114YSyYkB','left','8UnjwlS','push','shadowRoot','button','formTabGridConfig','getElementValueById','getGristSelectableConfig','delete','viewFormData','4538151RCFbJn','column_cnt','1587333zscddX'];a0_0x40b6=function(){return _0x40f971;};return a0_0x40b6();}(function(_0x26193f,_0x29a52c){const _0x3e4bfd=a0_0x35cd,_0x2130ee=_0x26193f();while(!![]){try{const _0x4a7a02=-parseInt(_0x3e4bfd(0x1e4))/0x1+-parseInt(_0x3e4bfd(0x1fe))/0x2*(-parseInt(_0x3e4bfd(0x1ff))/0x3)+-parseInt(_0x3e4bfd(0x1e5))/0x4*(parseInt(_0x3e4bfd(0x208))/0x5)+parseInt(_0x3e4bfd(0x1e6))/0x6*(-parseInt(_0x3e4bfd(0x1fd))/0x7)+parseInt(_0x3e4bfd(0x1e8))/0x8*(parseInt(_0x3e4bfd(0x1f1))/0x9)+parseInt(_0x3e4bfd(0x1f8))/0xa+parseInt(_0x3e4bfd(0x1f3))/0xb;if(_0x4a7a02===_0x29a52c)break;else _0x2130ee['push'](_0x2130ee['shift']());}catch(_0xe98939){_0x2130ee['push'](_0x2130ee['shift']());}}}(a0_0x40b6,0x4b915));import{html}from'lit-element';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';export const FormConfigTabMixin=_0x256324=>class extends _0x256324{[a0_0x4b7bf4(0x203)](_0x243cb1){const _0x1803c8=a0_0x4b7bf4;let _0x1403fa=_0x243cb1?.[_0x1803c8(0x204)]((_0x22879f,_0x326332)=>{const _0x154d2b=_0x1803c8;let _0x37817d=_0x326332+0x1,_0x439cc3={};return _0x439cc3[_0x154d2b(0x1f6)]=0xa*_0x37817d,_0x439cc3['id']=_0x37817d,_0x439cc3[_0x154d2b(0x1f9)]=_0x22879f[_0x154d2b(0x1f9)],_0x439cc3[_0x154d2b(0x1f5)]=_0x22879f[_0x154d2b(0x1f5)],_0x439cc3[_0x154d2b(0x207)]=_0x22879f['column'],_0x439cc3[_0x154d2b(0x1f4)]=_0x22879f['column_list']['join'](','),_0x439cc3;});this[_0x1803c8(0x1f0)]=_0x1403fa||[],this[_0x1803c8(0x1fb)]?.['fetch']();}[a0_0x4b7bf4(0x205)](){const _0x56cd0c=a0_0x4b7bf4;let _0x2e1735={'form':[]},_0x327fc5=this[_0x56cd0c(0x1ed)](_0x56cd0c(0x1e2));return this[_0x56cd0c(0x1f7)](_0x327fc5)?.[_0x56cd0c(0x1fa)](_0x454b96=>{const _0x48d0cd=_0x56cd0c;var {category:_0x16bdb8,display:_0x54d6ca,column:_0x478910=0x1,column_list:_0x44223a}=_0x454b96;_0x16bdb8&&_0x44223a&&(_0x54d6ca||(_0x54d6ca=_0x16bdb8),_0x44223a=_0x44223a[_0x48d0cd(0x200)](','),_0x2e1735[_0x48d0cd(0x206)][_0x48d0cd(0x1e9)]({'category':_0x16bdb8,'display':_0x54d6ca,'column':_0x478910,'column_list':_0x44223a}));}),_0x2e1735;}[a0_0x4b7bf4(0x1e1)](){const _0x5057e8=a0_0x4b7bf4;return html`
|
|
2
|
+
<ox-grist auto-fetch id="form-tab-grid" .config=${this[_0x5057e8(0x1ec)]} .mode='GRID'
|
|
3
|
+
.fetchHandler=${this[_0x5057e8(0x20a)][_0x5057e8(0x20e)](this)}>
|
|
4
|
+
</ox-grist>`;}get[a0_0x4b7bf4(0x1fb)](){const _0x327133=a0_0x4b7bf4;return this[_0x327133(0x1ea)][_0x327133(0x20c)](_0x327133(0x20b));}async['fetchFormTabHandler'](){const _0x3564ba=a0_0x4b7bf4;return{'total':0x0,'records':this[_0x3564ba(0x1f0)]||[]};}async['setFormConfigTabConfig'](){const _0x4894d3=a0_0x4b7bf4;this[_0x4894d3(0x1ec)]={'rows':MetaApi[_0x4894d3(0x1ee)](!0x0),'pagination':{'infinite':!0x0},'sorters':[{'name':'rank','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x4894d3(0x20d),'gutterName':_0x4894d3(0x1eb),'icon':_0x4894d3(0x1ef),'handlers':{'click':(_0x5f4357,_0x4b561f,_0x12a303,_0x164a62,_0x3ef625)=>{const _0x294918=_0x4894d3;_0x164a62['id']&&this[_0x294918(0x1fc)](this[_0x294918(0x1fb)],_0x164a62);}}},{'type':'string','name':'id','hidden':!0x0},{'type':_0x4894d3(0x202),'name':'rank','header':TermsUtil['tLabel']('rank'),'sortable':!0x0,'width':0x41,'record':{'align':_0x4894d3(0x1e3),'editable':!0x0,'mandatory':!0x0}},{'type':'string','name':'category','header':TermsUtil[_0x4894d3(0x201)](_0x4894d3(0x1f9)),'sortable':!0x1,'width':0x9b,'record':{'align':'left','editable':!0x0,'mandatory':!0x0}},{'type':_0x4894d3(0x209),'name':_0x4894d3(0x1f5),'header':TermsUtil[_0x4894d3(0x201)](_0x4894d3(0x1f5)),'sortable':!0x1,'width':0x9b,'record':{'align':_0x4894d3(0x1e7),'editable':!0x0,'mandatory':!0x0}},{'type':_0x4894d3(0x202),'name':_0x4894d3(0x207),'header':TermsUtil[_0x4894d3(0x201)](_0x4894d3(0x1f2)),'sortable':!0x0,'width':0x41,'record':{'align':'right','editable':!0x0}},{'type':'string','name':'column_list','header':TermsUtil[_0x4894d3(0x201)]('grid_column_list'),'sortable':!0x1,'width':0x190,'record':{'align':_0x4894d3(0x1e7),'editable':!0x0,'mandatory':!0x0}}]};}};
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x28f6b7=a0_0x19c8;function a0_0x19c8(_0x3235e5,_0x549deb){const _0x46377c=a0_0x4637();return a0_0x19c8=function(_0x19c84a,_0x214005){_0x19c84a=_0x19c84a-0x163;let _0x5d34de=_0x46377c[_0x19c84a];return _0x5d34de;},a0_0x19c8(_0x3235e5,_0x549deb);}(function(_0x30bdea,_0x26590c){const _0x23cde5=a0_0x19c8,_0x56f9d7=_0x30bdea();while(!![]){try{const _0x151456=-parseInt(_0x23cde5(0x175))/0x1*(-parseInt(_0x23cde5(0x1a0))/0x2)+parseInt(_0x23cde5(0x182))/0x3*(parseInt(_0x23cde5(0x19f))/0x4)+-parseInt(_0x23cde5(0x199))/0x5+-parseInt(_0x23cde5(0x196))/0x6+parseInt(_0x23cde5(0x170))/0x7+-parseInt(_0x23cde5(0x1a9))/0x8+parseInt(_0x23cde5(0x186))/0x9;if(_0x151456===_0x26590c)break;else _0x56f9d7['push'](_0x56f9d7['shift']());}catch(_0x3d36c8){_0x56f9d7['push'](_0x56f9d7['shift']());}}}(a0_0x4637,0x80d8a));import{html}from'lit-element';function a0_0x4637(){const _0x2a08d8=['fetchAfterSetFields','379NcytqN','query_after_set_fields_data','set_field','func','find_one_func','query_option','query_find','multiple','keys','skipFieldsConfig','skip_fields','getGristGuttersConfig','list_func','2357991emTgbk','viewGraphqlData','graphqlTabAfterSetFieldGrist','deleteRow','2783529bpUlCP','getGristSelectableConfig','#skip-fields-grist','fetch','gutter','gql','delete','mutation_multiple_parent_id','fetchSkipFields','skip_fields_data','renderGraphqlConfigTab','query_parent_id','button','left','startsWith','getGraphqlConfigTabValues','1751772lHQpSt','tLabel','except_field','3440290hovWQQ','graphqlTabSkipFieldGrist','query_find_function','shadowRoot','map','get_field_name','4Bddwic','2786IBkvdW','after_set_fields_data','delete_function','#after-set-fields-grist','query_list','querySelector','after_set_fields','mutation_multiple','setGraphqlConfigTabValues','3561056vgoWUT','string','mutation_multiple_skip_fields_data','query','filter','setGraphqlConfigTabDefaultValues','multiple_update_function','mutation_delete','mutation_multiple_type','skip-fields-grist','type','get_field','getElementValueById','multiple_update_type','bind','2307767lvdzPy','parent_id','GRID','mutation'];a0_0x4637=function(){return _0x2a08d8;};return a0_0x4637();}import{TermsUtil}from'@things-factory/meta-ui/client/utils/terms-util';import{MetaApi}from'@things-factory/meta-ui/client/utils/meta-api';export const GraphQlConfigTabMixin=_0x1ddb34=>class extends _0x1ddb34{[a0_0x28f6b7(0x1a8)](_0x499549){const _0x56d72f=a0_0x28f6b7;if(_0x499549){var _0x3823f1={'query':_0x499549[_0x56d72f(0x164)]||{},'multiple':_0x499549[_0x56d72f(0x173)]?.['multiple']||{},'delete':_0x499549['mutation']?.[_0x56d72f(0x18c)]||{}};this[_0x56d72f(0x183)]={'query_list':_0x3823f1[_0x56d72f(0x164)][_0x56d72f(0x181)]||'','query_find':_0x3823f1[_0x56d72f(0x164)][_0x56d72f(0x179)]||'','query_parent_id':_0x3823f1[_0x56d72f(0x164)][_0x56d72f(0x171)]||'','after_set_fields_data':_0x3823f1[_0x56d72f(0x164)][_0x56d72f(0x1a6)]||[],'mutation_multiple':_0x3823f1[_0x56d72f(0x17c)]['func']||'','mutation_multiple_type':_0x3823f1[_0x56d72f(0x17c)][_0x56d72f(0x16b)]||'','mutation_multiple_parent_id':_0x3823f1[_0x56d72f(0x17c)][_0x56d72f(0x171)]||'','skip_fields_data':_0x3823f1[_0x56d72f(0x17c)][_0x56d72f(0x17f)]||[],'mutation_delete':_0x3823f1[_0x56d72f(0x18c)][_0x56d72f(0x178)]||''};let _0x38e6e3=0x1;this['viewGraphqlData']['after_set_fields_data']=Object['keys'](this[_0x56d72f(0x183)][_0x56d72f(0x1a1)])[_0x56d72f(0x19d)](_0x442f0c=>({'id':_0x38e6e3++,'set_field':_0x442f0c,'get_field':this[_0x56d72f(0x183)][_0x56d72f(0x1a1)][_0x442f0c]})),this[_0x56d72f(0x183)][_0x56d72f(0x18f)]=this['viewGraphqlData'][_0x56d72f(0x18f)][_0x56d72f(0x19d)](_0x1a8ca8=>({'id':_0x38e6e3++,'except_field':_0x1a8ca8})),this[_0x56d72f(0x184)]?.[_0x56d72f(0x189)](),this['graphqlTabSkipFieldGrist']?.[_0x56d72f(0x189)]();}else this[_0x56d72f(0x166)]();}[a0_0x28f6b7(0x195)](){const _0x1f1f93=a0_0x28f6b7;let _0x4cd04b={},_0x3c3398=this[_0x1f1f93(0x16d)](_0x1f1f93(0x1a4)),_0x469afd=this[_0x1f1f93(0x16d)](_0x1f1f93(0x17b)),_0x441d5f=this[_0x1f1f93(0x16d)](_0x1f1f93(0x1a7)),_0x5342f5=this[_0x1f1f93(0x16d)](_0x1f1f93(0x169)),_0x3af64a=this[_0x1f1f93(0x16d)]('mutation_delete'),_0x363f90=this[_0x1f1f93(0x16d)](_0x1f1f93(0x191)),_0x30ad2e=this[_0x1f1f93(0x16d)]('mutation_multiple_parent_id'),_0x2d25ed=this[_0x1f1f93(0x16d)]('after-set-fields-grist'),_0x4ef57d=this[_0x1f1f93(0x16d)](_0x1f1f93(0x16a));_0x3c3398&&(_0x4cd04b[_0x1f1f93(0x1a4)]=_0x3c3398),_0x469afd&&(_0x4cd04b[_0x1f1f93(0x17b)]=_0x469afd),_0x363f90&&(_0x4cd04b['query_parent_id']=_0x363f90),_0x2d25ed&&(_0x4cd04b['query_after_set_fields_data']=_0x2d25ed),_0x441d5f&&(_0x4cd04b[_0x1f1f93(0x1a7)]=_0x441d5f),_0x5342f5&&(_0x4cd04b[_0x1f1f93(0x169)]=_0x5342f5),_0x30ad2e&&(_0x4cd04b[_0x1f1f93(0x18d)]=_0x30ad2e),_0x4ef57d&&(_0x4cd04b[_0x1f1f93(0x163)]=_0x4ef57d),_0x3af64a&&(_0x4cd04b[_0x1f1f93(0x168)]=_0x3af64a);let _0x83e05a={'gql':{}},_0x3d4fe2=Object[_0x1f1f93(0x17d)](_0x4cd04b);return _0x3d4fe2[_0x1f1f93(0x165)](_0x3a9d44=>_0x3a9d44[_0x1f1f93(0x194)]('query'))&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x164)]={},_0x4cd04b['query_list']&&(_0x83e05a['gql'][_0x1f1f93(0x164)][_0x1f1f93(0x181)]=_0x4cd04b[_0x1f1f93(0x1a4)]),_0x4cd04b[_0x1f1f93(0x17b)]&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x164)]['find_one_func']=_0x4cd04b[_0x1f1f93(0x17b)]),_0x4cd04b[_0x1f1f93(0x191)]&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x164)][_0x1f1f93(0x171)]=_0x4cd04b[_0x1f1f93(0x191)]),_0x4cd04b[_0x1f1f93(0x176)]&&(_0x83e05a[_0x1f1f93(0x18b)]['query'][_0x1f1f93(0x1a6)]={},_0x4cd04b['query_after_set_fields_data']['forEach'](_0x3ce0e0=>{const _0x41b6eb=_0x1f1f93;_0x83e05a[_0x41b6eb(0x18b)]['query'][_0x41b6eb(0x1a6)][_0x3ce0e0[_0x41b6eb(0x177)]]=_0x3ce0e0[_0x41b6eb(0x16c)];}))),_0x3d4fe2[_0x1f1f93(0x165)](_0x125a03=>_0x125a03[_0x1f1f93(0x194)]('mutation'))&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x173)]={},_0x3d4fe2[_0x1f1f93(0x165)](_0x2c5007=>_0x2c5007[_0x1f1f93(0x194)](_0x1f1f93(0x1a7)))&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x173)][_0x1f1f93(0x17c)]={},_0x4cd04b[_0x1f1f93(0x1a7)]&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x173)][_0x1f1f93(0x17c)]['func']=_0x4cd04b[_0x1f1f93(0x1a7)]),_0x4cd04b[_0x1f1f93(0x169)]&&(_0x83e05a['gql'][_0x1f1f93(0x173)][_0x1f1f93(0x17c)][_0x1f1f93(0x16b)]=_0x4cd04b[_0x1f1f93(0x169)]),_0x4cd04b[_0x1f1f93(0x18d)]&&(_0x83e05a[_0x1f1f93(0x18b)][_0x1f1f93(0x173)]['multiple'][_0x1f1f93(0x171)]=_0x4cd04b[_0x1f1f93(0x18d)]),_0x4cd04b[_0x1f1f93(0x163)]&&(_0x83e05a['gql'][_0x1f1f93(0x173)][_0x1f1f93(0x17c)][_0x1f1f93(0x17f)]=_0x4cd04b[_0x1f1f93(0x163)][_0x1f1f93(0x19d)](_0x5a3c7f=>_0x5a3c7f[_0x1f1f93(0x198)]))),_0x3d4fe2[_0x1f1f93(0x165)](_0x4b272c=>_0x4b272c['startsWith']('mutation_delete'))&&(_0x83e05a['gql'][_0x1f1f93(0x173)][_0x1f1f93(0x18c)]={},_0x4cd04b[_0x1f1f93(0x168)]&&(_0x83e05a['gql'][_0x1f1f93(0x173)][_0x1f1f93(0x18c)][_0x1f1f93(0x178)]=_0x4cd04b[_0x1f1f93(0x168)]))),_0x83e05a;}get[a0_0x28f6b7(0x184)](){const _0x39e8d3=a0_0x28f6b7;return this[_0x39e8d3(0x19c)][_0x39e8d3(0x1a5)](_0x39e8d3(0x1a3));}get['graphqlTabSkipFieldGrist'](){const _0x39d35f=a0_0x28f6b7;return this[_0x39d35f(0x19c)]['querySelector'](_0x39d35f(0x188));}['setGraphqlConfigTabConfig'](){const _0x3f0529=a0_0x28f6b7;this['afterSetFieldsConfig']={'rows':MetaApi[_0x3f0529(0x187)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x3f0529(0x180)](!0x1,!0x1),{'type':_0x3f0529(0x18a),'gutterName':_0x3f0529(0x192),'icon':_0x3f0529(0x18c),'handlers':{'click':(_0x559b72,_0x9bf73e,_0x70e701,_0x743036,_0x306652)=>{const _0x173ec7=_0x3f0529;_0x743036['id']&&this[_0x173ec7(0x185)](this['graphqlTabAfterSetFieldGrist'],_0x743036);}}},{'type':_0x3f0529(0x1aa),'name':'id','hidden':!0x0},{'type':_0x3f0529(0x1aa),'name':_0x3f0529(0x177),'header':TermsUtil[_0x3f0529(0x197)]('set_field_name'),'record':{'align':_0x3f0529(0x193),'editable':!0x0,'mandatory':!0x0},'width':0x96},{'type':'string','name':_0x3f0529(0x16c),'header':TermsUtil[_0x3f0529(0x197)](_0x3f0529(0x19e)),'record':{'align':'left','editable':!0x0,'mandatory':!0x0},'width':0x96}]},this[_0x3f0529(0x17e)]={'rows':MetaApi[_0x3f0529(0x187)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x1,!0x1),{'type':_0x3f0529(0x18a),'gutterName':'button','icon':_0x3f0529(0x18c),'handlers':{'click':(_0x4f5ec8,_0x8ce896,_0x488b22,_0x46f6b4,_0xcff1d8)=>{const _0x3f4ed8=_0x3f0529;_0x46f6b4['id']&&this[_0x3f4ed8(0x185)](this[_0x3f4ed8(0x19a)],_0x46f6b4);}}},{'type':_0x3f0529(0x1aa),'name':'id','hidden':!0x0},{'type':'string','name':_0x3f0529(0x198),'header':TermsUtil['tLabel']('field_name'),'record':{'align':_0x3f0529(0x193),'editable':!0x0,'mandatory':!0x0},'width':0xfa}]};}[a0_0x28f6b7(0x166)](){const _0x11b521=a0_0x28f6b7;this[_0x11b521(0x183)]||(this[_0x11b521(0x183)]={'query_list':'','query_find':'','mutation_multiple':'','mutation_multiple_type':'','mutation_delete':'','query_parent_id':'','mutation_multiple_parent_id':'','after_set_fields_data':[],'skip_fields_data':[]});}[a0_0x28f6b7(0x190)](){const _0x4aa775=a0_0x28f6b7;return this[_0x4aa775(0x166)](),html`
|
|
2
2
|
<div field-2column>
|
|
3
3
|
<div field>
|
|
4
4
|
<label>${TermsUtil['tLabel']('query_list_function')}
|
|
5
|
-
<input id="query_list" name="query_list" type="text" value=${this[
|
|
5
|
+
<input id="query_list" name="query_list" type="text" value=${this[_0x4aa775(0x183)]['query_list']} />
|
|
6
6
|
</label>
|
|
7
7
|
</div>
|
|
8
8
|
<div field>
|
|
9
|
-
<label>${TermsUtil[
|
|
10
|
-
<input id="query_find" name="query_find" type="text" value=${this[
|
|
9
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x19b))}
|
|
10
|
+
<input id="query_find" name="query_find" type="text" value=${this['viewGraphqlData'][_0x4aa775(0x17b)]} />
|
|
11
11
|
</label>
|
|
12
12
|
</div>
|
|
13
13
|
<div field>
|
|
14
|
-
<label>${TermsUtil[
|
|
14
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x167))}
|
|
15
15
|
<input id="mutation_multiple" name="mutation_multiple" type="text"
|
|
16
|
-
value=${this[
|
|
16
|
+
value=${this[_0x4aa775(0x183)][_0x4aa775(0x1a7)]} />
|
|
17
17
|
</label>
|
|
18
18
|
</div>
|
|
19
19
|
<div field>
|
|
20
|
-
<label>${TermsUtil['tLabel'](
|
|
20
|
+
<label>${TermsUtil['tLabel'](_0x4aa775(0x16e))}
|
|
21
21
|
<input id="mutation_multiple_type" name="mutation_multiple_type" type="text"
|
|
22
|
-
value=${this['
|
|
22
|
+
value=${this[_0x4aa775(0x183)]['mutation_multiple_type']} />
|
|
23
23
|
</label>
|
|
24
24
|
</div>
|
|
25
25
|
<div field>
|
|
26
|
-
<label>${TermsUtil[
|
|
27
|
-
<input id="mutation_delete" name="mutation_delete" type="text" value=${this[
|
|
26
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x1a2))}
|
|
27
|
+
<input id="mutation_delete" name="mutation_delete" type="text" value=${this[_0x4aa775(0x183)][_0x4aa775(0x168)]} />
|
|
28
28
|
</label>
|
|
29
29
|
</div>
|
|
30
30
|
<div field>
|
|
31
31
|
</div>
|
|
32
32
|
<div field>
|
|
33
33
|
<h2>
|
|
34
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
34
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x17a))}
|
|
35
35
|
</h2>
|
|
36
36
|
<div subfield>
|
|
37
|
-
<label>${TermsUtil[
|
|
38
|
-
<input id="query_parent_id" name="query_parent_id" type="text" value=${this[
|
|
37
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x171))}
|
|
38
|
+
<input id="query_parent_id" name="query_parent_id" type="text" value=${this[_0x4aa775(0x183)][_0x4aa775(0x191)]} />
|
|
39
39
|
</label>
|
|
40
40
|
|
|
41
|
-
<label>${TermsUtil[
|
|
41
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x1a6))}
|
|
42
42
|
<div style="display:flex;height:200px">
|
|
43
|
-
<ox-grist id="after-set-fields-grist" .config=${this[
|
|
44
|
-
.fetchHandler=${this[
|
|
43
|
+
<ox-grist id="after-set-fields-grist" .config=${this['afterSetFieldsConfig']} .mode=${_0x4aa775(0x172)} auto-fetch
|
|
44
|
+
.fetchHandler=${this[_0x4aa775(0x174)]['bind'](this)}></ox-grist>
|
|
45
45
|
</div>
|
|
46
46
|
</label>
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
<div field>
|
|
50
50
|
<h2>
|
|
51
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
51
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x4aa775(0x197)]('multiple_update_option')}
|
|
52
52
|
</h2>
|
|
53
53
|
<div subfield>
|
|
54
|
-
<label>${TermsUtil[
|
|
54
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x171))}
|
|
55
55
|
<input id="mutation_multiple_parent_id" name="mutation_multiple_parent_id" type="text"
|
|
56
|
-
value=${this[
|
|
56
|
+
value=${this[_0x4aa775(0x183)][_0x4aa775(0x18d)]} />
|
|
57
57
|
</label>
|
|
58
58
|
|
|
59
|
-
<label>${TermsUtil[
|
|
59
|
+
<label>${TermsUtil[_0x4aa775(0x197)](_0x4aa775(0x17f))}
|
|
60
60
|
<div style="display:flex;height:200px">
|
|
61
|
-
<ox-grist id="skip-fields-grist" .config=${this['skipFieldsConfig']} .mode=${
|
|
62
|
-
.fetchHandler=${this[
|
|
61
|
+
<ox-grist id="skip-fields-grist" .config=${this['skipFieldsConfig']} .mode=${'GRID'} auto-fetch
|
|
62
|
+
.fetchHandler=${this[_0x4aa775(0x18e)][_0x4aa775(0x16f)](this)}></ox-grist>
|
|
63
63
|
</div>
|
|
64
64
|
</label>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
68
|
|
|
69
|
-
`;}async[
|
|
69
|
+
`;}async[a0_0x28f6b7(0x174)](){const _0x59e824=a0_0x28f6b7;return{'records':this[_0x59e824(0x183)]['after_set_fields_data'],'total':0x0};}async[a0_0x28f6b7(0x18e)](){const _0x5f3296=a0_0x28f6b7;return{'records':this['viewGraphqlData'][_0x5f3296(0x18f)],'total':0x0};}};
|