@things-factory/meta-ui 6.0.76 → 6.0.82
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 +4 -4
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -1
- package/client/pages/activity/meta-activity-writer-element.js +3 -20
- package/client/pages/activity/meta-activiy-mixin.js +18 -0
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +14 -14
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +94 -87
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- 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/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x54aa(_0x316578,_0x4eacc5){const _0x1f7239=a0_0x1f72();return a0_0x54aa=function(_0x54aa40,_0x2cd5a7){_0x54aa40=_0x54aa40-0xce;let _0xd402c2=_0x1f7239[_0x54aa40];return _0xd402c2;},a0_0x54aa(_0x316578,_0x4eacc5);}const a0_0x2a7ca0=a0_0x54aa;(function(_0x53eda5,_0x4f9487){const _0x27c739=a0_0x54aa,_0x1926b3=_0x53eda5();while(!![]){try{const _0x2c4a71=parseInt(_0x27c739(0xe7))/0x1*(-parseInt(_0x27c739(0xd1))/0x2)+parseInt(_0x27c739(0xe5))/0x3*(-parseInt(_0x27c739(0xda))/0x4)+parseInt(_0x27c739(0xd5))/0x5*(parseInt(_0x27c739(0xd9))/0x6)+parseInt(_0x27c739(0xe0))/0x7*(-parseInt(_0x27c739(0xde))/0x8)+parseInt(_0x27c739(0xdf))/0x9+parseInt(_0x27c739(0xd7))/0xa+-parseInt(_0x27c739(0xe1))/0xb;if(_0x2c4a71===_0x4f9487)break;else _0x1926b3['push'](_0x1926b3['shift']());}catch(_0x3be16d){_0x1926b3['push'](_0x1926b3['shift']());}}}(a0_0x1f72,0x6a881));function a0_0x1f72(){const _0x4029da=['34002TVeGkp','31129HDizUj','3436026VdDsxW','render','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_readonly=true\x20is_detail=true></','name','532401VzvbDV','contentElement','2606wVRMhM','output','relationMenu','define','6UvUXUT','isEmpty','meta-activity-viewer-element','\x27\x20route_name=\x27','65585hMFzbi','activityDataSet','7617210oTtlSZ','\x20id=\x27','132gBsTPl','4PjJAjO','htmlToElement','routing','customData','216oMbtFx'];a0_0x1f72=function(){return _0x4029da;};return a0_0x1f72();}import a0_0x1eebd0 from'graphql-tag';import{css,html,LitElement}from'lit';import{client}from'@operato/graphql';import{i18next,localize}from'@operato/i18n';import{ServiceUtil}from'./../../utils/service-util';import{MetaApi}from'./../../utils/meta-api';import{UiUtil}from'./../../utils/ui-util';import{ValueUtil}from'./../../utils/value-util';import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityViewerElement extends MetaActivityMixin(localize(i18next)(LitElement)){[a0_0x2a7ca0(0xe2)](){const _0x11a396=a0_0x2a7ca0;if(this['relationMenu']&&!this['contentElement']){let _0x50d2ca=this[_0x11a396(0xcf)]['tagName'],_0x35492f=this[_0x11a396(0xcf)][_0x11a396(0xdc)],_0x54bf59='<'+_0x50d2ca+_0x11a396(0xd8)+this[_0x11a396(0xcf)][_0x11a396(0xe4)]+_0x11a396(0xd4)+_0x35492f+_0x11a396(0xe3)+_0x50d2ca+'>';this['contentElement']=UiUtil[_0x11a396(0xdb)](_0x54bf59),this[_0x11a396(0xe6)][_0x11a396(0xd6)]=ValueUtil[_0x11a396(0xd2)](this['output'])?void 0x0:this[_0x11a396(0xce)][_0x11a396(0xdd)];}return html`
|
|
2
|
+
${this['contentElement']}
|
|
3
|
+
`;}}customElements[a0_0x2a7ca0(0xd0)](a0_0x2a7ca0(0xd3),MetaActivityViewerElement);
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
overflow-x: auto;
|
|
6
|
-
background-color: var(--main-section-background-color);
|
|
7
|
-
}
|
|
8
|
-
`;}async[a0_0x422a79(0x166)](){const _0x5010f4=a0_0x422a79;await this[_0x5010f4(0x184)](),await super['connectedCallback'](),this[_0x5010f4(0x157)](_0x5010f4(0x15c),this['_onFieldChange']);}[a0_0x422a79(0x17a)](){const _0x306872=a0_0x422a79;this[_0x306872(0x185)](_0x306872(0x15c),this[_0x306872(0x165)]);}[a0_0x422a79(0x165)](_0x2b7456){const _0x1ea821=a0_0x422a79;this['dispatchEvent'](new CustomEvent(_0x1ea821(0x180),{'detail':this['contentElement'][_0x1ea821(0x16c)]()}));}async[a0_0x422a79(0x184)](){const _0x43d356=a0_0x422a79,_0x599c77=await client[_0x43d356(0x17b)]({'query':a0_0x365bcf`
|
|
9
|
-
query activity($id: String!) {
|
|
10
|
-
activity(id: $id) {
|
|
11
|
-
id
|
|
12
|
-
model {
|
|
13
|
-
name
|
|
14
|
-
description
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
`,'variables':{'id':this[_0x43d356(0x172)]}});let _0x4e9fdb;this[_0x43d356(0x181)]=_0x599c77[_0x43d356(0x171)][_0x43d356(0x181)],this['activity']['model']?.[_0x43d356(0x164)](_0x29029b=>{const _0x22d030=_0x43d356;_0x22d030(0x168)==_0x29029b['name']&&(_0x4e9fdb=JSON[_0x22d030(0x15a)](_0x29029b[_0x22d030(0x156)]));}),this['relationMenu']=_0x4e9fdb,await this[_0x43d356(0x170)](this[_0x43d356(0x158)]['id'],this[_0x43d356(0x158)][_0x43d356(0x178)]);}async[a0_0x422a79(0x170)](_0x3e14b9,_0x4ba7fc){const _0xde82f4=a0_0x422a79;let _0x349fa7=[{'name':'id','operator':'eq','value':_0x3e14b9}],_0x224102=await ServiceUtil['searchByPagination']('menus',_0x349fa7,null,0x0,0x0,'id,category,resourceUrl');if(!_0x224102&&0x0==_0x224102['length']){let _0x27edc6=TermsUtil['tText'](_0xde82f4(0x152),{'value':TermsUtil[_0xde82f4(0x155)](_0xde82f4(0x182))+'\x20'+_0x4ba7fc});throw MetaApi[_0xde82f4(0x16d)](_0xde82f4(0x18a),_0x27edc6),new Error(_0x27edc6);}let _0x46cc2c=_0x224102[_0xde82f4(0x177)][0x0];_0x46cc2c[_0xde82f4(0x163)]=_0x46cc2c['category'][_0xde82f4(0x17d)](_0xde82f4(0x15b))?_0x46cc2c[_0xde82f4(0x183)][_0xde82f4(0x169)](_0xde82f4(0x15b),'-element'):_0x46cc2c[_0xde82f4(0x183)],_0x46cc2c[_0xde82f4(0x154)]=_0x46cc2c['resourceUrl']['replace'](_0x46cc2c['category'],_0x46cc2c[_0xde82f4(0x163)]),Object[_0xde82f4(0x162)](this[_0xde82f4(0x158)],_0x46cc2c);}[a0_0x422a79(0x16a)](){const _0x272f00=a0_0x422a79;if(this[_0x272f00(0x158)]&&!this[_0x272f00(0x176)]){let _0x5d3f85=this['relationMenu'][_0x272f00(0x163)],_0x18ce06=this['relationMenu'][_0x272f00(0x178)],_0xbe2f86='<'+_0x5d3f85+_0x272f00(0x160)+this['relationMenu'][_0x272f00(0x17c)]+'\x27\x20route_name=\x27'+_0x18ce06+'\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></'+_0x5d3f85+'>';this[_0x272f00(0x176)]=UiUtil[_0x272f00(0x15e)](_0xbe2f86),this[_0x272f00(0x176)][_0x272f00(0x17e)]=this[_0x272f00(0x16b)];}return html`
|
|
19
|
-
${this[_0x272f00(0x176)]}
|
|
20
|
-
`;}}function a0_0x3397(){const _0x867f2d=['addEventListener','relationMenu','11986RIgsOe','parse','-page','field-change','styles','htmlToElement','360efvutq','\x20id=\x27','3794rSqSgR','assign','tagName','forEach','_onFieldChange','connectedCallback','11090tpkJRY','relation-menu','replace','render','output','getData','showToast','58333qdSYWq','85NxaYHb','getMenuInfo','data','activityId','259515tNUWCO','70bikUAF','54XIEnqN','contentElement','records','routing','properties','disconnectedCallback','query','name','endsWith','activityDataSet','91872brnLex','change-output','activity','menu','category','getActivity','removeEventListener','41GgENDp','396ZClJzp','27016VmJvec','9947PYNEFM','info','value_is_not_exist','meta-activity-writer-element','resourceUrl','tMenu','description'];a0_0x3397=function(){return _0x867f2d;};return a0_0x3397();}customElements['define'](a0_0x422a79(0x153),MetaActivityWriterElement);
|
|
1
|
+
function a0_0x5cf9(_0x3abc2f,_0x410a3b){const _0x573482=a0_0x5734();return a0_0x5cf9=function(_0x5cf90a,_0x4dfd12){_0x5cf90a=_0x5cf90a-0x16f;let _0x13d57a=_0x573482[_0x5cf90a];return _0x13d57a;},a0_0x5cf9(_0x3abc2f,_0x410a3b);}const a0_0x17c843=a0_0x5cf9;(function(_0x7a6b31,_0x1cb6ac){const _0x4dd7fd=a0_0x5cf9,_0x4355ef=_0x7a6b31();while(!![]){try{const _0xac5b84=-parseInt(_0x4dd7fd(0x17b))/0x1*(parseInt(_0x4dd7fd(0x173))/0x2)+parseInt(_0x4dd7fd(0x172))/0x3+-parseInt(_0x4dd7fd(0x187))/0x4+parseInt(_0x4dd7fd(0x17d))/0x5*(-parseInt(_0x4dd7fd(0x188))/0x6)+-parseInt(_0x4dd7fd(0x18d))/0x7*(parseInt(_0x4dd7fd(0x181))/0x8)+-parseInt(_0x4dd7fd(0x171))/0x9*(-parseInt(_0x4dd7fd(0x189))/0xa)+parseInt(_0x4dd7fd(0x170))/0xb*(parseInt(_0x4dd7fd(0x174))/0xc);if(_0xac5b84===_0x1cb6ac)break;else _0x4355ef['push'](_0x4355ef['shift']());}catch(_0xe5ff62){_0x4355ef['push'](_0x4355ef['shift']());}}}(a0_0x5734,0xd8aed));import{html,LitElement}from'lit';function a0_0x5734(){const _0x488f26=['\x20id=\x27','connectedCallback','meta-activity-writer-element','contentElement','define','510856rRNzYs','_onFieldChange','60tNRmCM','removeEventListener','addEventListener','output','91192pxpVSX','customData','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></','field-change','isEmpty','\x27\x20route_name=\x27','801792OxJfed','522732IPFDSm','69410EtfNTy','relationMenu','name','htmlToElement','931ikLYqB','disconnectedCallback','22ngQqov','1233upGaWf','2911941vPnADd','2CjGyMo','13432824gsqDXZ','routing'];a0_0x5734=function(){return _0x488f26;};return a0_0x5734();}import{i18next,localize}from'@operato/i18n';import{UiUtil}from'./../../utils/ui-util';import{ValueUtil}from'./../../utils/value-util';import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityWriterElement extends MetaActivityMixin(localize(i18next)(LitElement)){async[a0_0x17c843(0x177)](){const _0x2f0055=a0_0x17c843;await super[_0x2f0055(0x177)](),this[_0x2f0055(0x17f)](_0x2f0055(0x184),this[_0x2f0055(0x17c)]);}[a0_0x17c843(0x16f)](){const _0x2641b7=a0_0x17c843;this[_0x2641b7(0x17e)](_0x2641b7(0x184),this[_0x2641b7(0x17c)]);}['_onFieldChange'](_0x36eed9){const _0x4d6991=a0_0x17c843;let _0x71df37=this[_0x4d6991(0x179)]['getData']();this['dispatchEvent'](new CustomEvent('change',{'detail':{'customData':_0x71df37}}));}['render'](){const _0x588322=a0_0x17c843;if(this['relationMenu']&&!this['contentElement']){let _0x311dd5=this[_0x588322(0x18a)]['tagName'],_0x2558c5=this[_0x588322(0x18a)][_0x588322(0x175)],_0x14eff1='<'+_0x311dd5+_0x588322(0x176)+this[_0x588322(0x18a)][_0x588322(0x18b)]+_0x588322(0x186)+_0x2558c5+_0x588322(0x183)+_0x311dd5+'>';this[_0x588322(0x179)]=UiUtil[_0x588322(0x18c)](_0x14eff1),this[_0x588322(0x179)]['activityDataSet']=ValueUtil[_0x588322(0x185)](this[_0x588322(0x180)])?void 0x0:this['output'][_0x588322(0x182)];}return html`
|
|
2
|
+
${this[_0x588322(0x179)]}
|
|
3
|
+
`;}}customElements[a0_0x17c843(0x17a)](a0_0x17c843(0x178),MetaActivityWriterElement);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function a0_0x461e(){const _0x18ad37=['147KSqSve','336CHIEvb','50729JbQfXN','5GnyvnW','1206PgbakC','endsWith','getActivity','description','category','relation-menu','resourceUrl','8hGNWpo','getMenuInfo','replace','properties','10415780KHFtwU','-page','showToast','name','11vTVuHZ','tMenu','activityId','searchByPagination','connectedCallback','length','forEach','info','relationMenu','id,category,resourceUrl','tText','3680868hJgIWN','1699911hVrVqF','assign','2940844zCyKba','model','908768yZrodX','117ugPQXQ','records','-element'];a0_0x461e=function(){return _0x18ad37;};return a0_0x461e();}const a0_0x2a9f4d=a0_0x1440;(function(_0x9c6d5f,_0xe411fe){const _0x48c336=a0_0x1440,_0x5e401d=_0x9c6d5f();while(!![]){try{const _0x16137b=parseInt(_0x48c336(0x158))/0x1+parseInt(_0x48c336(0x160))/0x2*(parseInt(_0x48c336(0x15c))/0x3)+parseInt(_0x48c336(0x17d))/0x4*(parseInt(_0x48c336(0x15f))/0x5)+parseInt(_0x48c336(0x15d))/0x6*(parseInt(_0x48c336(0x15e))/0x7)+-parseInt(_0x48c336(0x167))/0x8*(-parseInt(_0x48c336(0x17b))/0x9)+-parseInt(_0x48c336(0x16b))/0xa*(-parseInt(_0x48c336(0x16f))/0xb)+parseInt(_0x48c336(0x17a))/0xc*(-parseInt(_0x48c336(0x159))/0xd);if(_0x16137b===_0xe411fe)break;else _0x5e401d['push'](_0x5e401d['shift']());}catch(_0x3eeaf0){_0x5e401d['push'](_0x5e401d['shift']());}}}(a0_0x461e,0x8612c));import a0_0xca6d83 from'graphql-tag';import{css}from'lit';function a0_0x1440(_0x2f969b,_0x24156d){const _0x461ea6=a0_0x461e();return a0_0x1440=function(_0x144004,_0x4782b4){_0x144004=_0x144004-0x158;let _0x349f38=_0x461ea6[_0x144004];return _0x349f38;},a0_0x1440(_0x2f969b,_0x24156d);}import{client}from'@operato/graphql';import{ServiceUtil}from'./../../utils/service-util';import{MetaApi}from'./../../utils/meta-api';export const MetaActivityMixin=_0x11a4b1=>class extends _0x11a4b1{static get[a0_0x2a9f4d(0x16a)](){return{'activityId':String,'input':Object,'output':Object};}static get['styles'](){return css`
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
background-color: var(--main-section-background-color);
|
|
7
|
+
}
|
|
8
|
+
`;}async[a0_0x2a9f4d(0x173)](){const _0x59f716=a0_0x2a9f4d;await this[_0x59f716(0x162)](),await super[_0x59f716(0x173)]();}async[a0_0x2a9f4d(0x162)](){const _0x1eb45c=a0_0x2a9f4d,_0x40cec5=await client['query']({'query':a0_0xca6d83`
|
|
9
|
+
query activity($id: String!) {
|
|
10
|
+
activity(id: $id) {
|
|
11
|
+
id
|
|
12
|
+
model {
|
|
13
|
+
name
|
|
14
|
+
description
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
`,'variables':{'id':this[_0x1eb45c(0x171)]}});let _0x6014a;this['activity']=_0x40cec5['data']['activity'],this['activity'][_0x1eb45c(0x17e)]?.[_0x1eb45c(0x175)](_0x46566d=>{const _0x1cc684=_0x1eb45c;_0x1cc684(0x165)==_0x46566d[_0x1cc684(0x16e)]&&(_0x6014a=JSON['parse'](_0x46566d[_0x1cc684(0x163)]));}),this[_0x1eb45c(0x177)]=_0x6014a,await this[_0x1eb45c(0x168)](this[_0x1eb45c(0x177)]['id'],this[_0x1eb45c(0x177)]['routing']);}async['getMenuInfo'](_0x12690,_0x7aee49){const _0x18a2a2=a0_0x2a9f4d;let _0xcbaa16=[{'name':'id','operator':'eq','value':_0x12690}],_0x38a5e4=await ServiceUtil[_0x18a2a2(0x172)]('menus',_0xcbaa16,null,0x0,0x0,_0x18a2a2(0x178));if(!_0x38a5e4&&0x0==_0x38a5e4[_0x18a2a2(0x174)]){let _0xbaf040=TermsUtil[_0x18a2a2(0x179)]('value_is_not_exist',{'value':TermsUtil[_0x18a2a2(0x170)]('menu')+'\x20'+_0x7aee49});throw MetaApi[_0x18a2a2(0x16d)](_0x18a2a2(0x176),_0xbaf040),new Error(_0xbaf040);}let _0x169f73=_0x38a5e4[_0x18a2a2(0x15a)][0x0];_0x169f73['tagName']=_0x169f73[_0x18a2a2(0x164)][_0x18a2a2(0x161)](_0x18a2a2(0x16c))?_0x169f73[_0x18a2a2(0x164)][_0x18a2a2(0x169)](_0x18a2a2(0x16c),_0x18a2a2(0x15b)):_0x169f73['category'],_0x169f73[_0x18a2a2(0x166)]=_0x169f73[_0x18a2a2(0x166)][_0x18a2a2(0x169)](_0x169f73['category'],_0x169f73['tagName']),Object[_0x18a2a2(0x17c)](this[_0x18a2a2(0x177)],_0x169f73);}};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2ff63c=a0_0x14db;(function(_0xd99305,_0x3929ec){const _0x318e01=a0_0x14db,_0x4246da=_0xd99305();while(!![]){try{const _0x150bd9=parseInt(_0x318e01(0x115))/0x1*(parseInt(_0x318e01(0x182))/0x2)+-parseInt(_0x318e01(0x12f))/0x3+parseInt(_0x318e01(0x144))/0x4+-parseInt(_0x318e01(0xfe))/0x5*(parseInt(_0x318e01(0x17e))/0x6)+-parseInt(_0x318e01(0x168))/0x7+-parseInt(_0x318e01(0x158))/0x8*(-parseInt(_0x318e01(0x15e))/0x9)+parseInt(_0x318e01(0x104))/0xa;if(_0x150bd9===_0x3929ec)break;else _0x4246da['push'](_0x4246da['shift']());}catch(_0xa92538){_0x4246da['push'](_0x4246da['shift']());}}}(a0_0x2200,0x69477));import{html}from'lit-element';import a0_0x3784c7 from'graphql-tag';import{client,gqlContext}from'@operato/graphql';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{store}from'@operato/shell';import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/grist-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x14db(_0x1ddb08,_0x55f8f5){const _0x2200bc=a0_0x2200();return a0_0x14db=function(_0x14dbb2,_0x3994a0){_0x14dbb2=_0x14dbb2-0xc1;let _0x59b160=_0x2200bc[_0x14dbb2];return _0x59b160;},a0_0x14db(_0x1ddb08,_0x55f8f5);}import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';function a0_0x2200(){const _0x5c0be6=['entityId','searchEntityColumns','refName','_config','entityColumns','currentTarget','timestamp','undefined','body','result','176312yHQXJA','created_at','target','creator','left','getGristColumnConfig','279MUrkuW','openMainMenuSelectorPopup','confirm','getGristCodeSelectorColumnConfig','fetchEntityColumns','search_oper','LIST','bundle','save','filter','5440043zFuxcJ','split','exportEntityColumns','domain_id','searchRank','getQueryFilters','findIndex','getGristSelectableConfig','createService','value','columns','detailConfig','button.create-service','isNotEmpty','text.are_you_sure','right','getGristSearchColumnConfig','main-menu-selector','refType','gutter','config-entity','records','3902136EOIFAb','masterGrist','string','updated_at','12wjletS','showToast','patchesForUpdateMultiple','getBasicMasterDetailGristStyle','files','tableName','openPopupByElement','info','sequence','createUnregisteredTerms','create-menu','#master-grist','text.no_data','accept','entity','masterConfig','left-right','styles','ENTITY_HIST_TYPE','#detail-grist','dispatch','message','grid_rank','center','change','deleteEntities','gridEditor','shadowRoot','cancel','pageInitialized','error','back','rank','saveMasters','onload','boolean','updateMultipleEntityColumn','create-service','success\x20to\x20register\x20terms','push','imex','createCustomElement','key','name','FILTER_OPERATORS','querySelector','reduce','__selected__','createMenuTo','importEntityColumns','BUNDLE','description','ENTITY_GRIST_COLUMN_TYPES','ENTITY_COLUMN_TYPES','selectedEntity','colType','appendChild','size','GRID','grid_editor','type','export','xlsx','COLUMN_REF_TYPE','input','button','selectCallback','ref_type','search_rank','deleteListByGristSelected','5MefULr','fetch','nullable','select','detailGrist','importXlsxFile','1829910YpCmSe','pop','errors','searchFields','showAlertPopup','length','delete','grid_width','deleteEntityColumns','gridWidth','toInteger','edit','dataProp','uniq_rank','toBoolean','tButton','creator_id','139806VESJKB','table_name','isMobileEnv','createMenu','text.nothing_selected','colSize','ref_name','data','addEventListener','success\x20to\x20process','updateMultiple','updater','toolCreateMenu','GRIST_COLUMN_TYPES','importHandler','searchOper','query','getGristColumnConfig2','uniqRank','click','record','label.','context','register-terms','getGristGuttersConfig','deleteMasters','507687mEYuZx','term','ox-filters-form-base','file','question','tText','toolCreateService','map','updater_id','hidden','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20dataProp\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','import','tLabel','button.create-menu','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20','searchForm','check-columns','integer','setAttribute','fetchEntities','getGristSearchCodeColumnConfig','1291684YsNORr','medium','forEach','bind','col_type','tTitle','checkEntityColumns','gridRank','properties','entity-column'];a0_0x2200=function(){return _0x5c0be6;};return a0_0x2200();}class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x2ff63c(0x14c)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x2ff63c(0xc9)](){const _0x2609c3=a0_0x2ff63c;return MetaApi[_0x2609c3(0x185)](_0x2609c3(0xc8));}get[a0_0x2ff63c(0x12b)](){const _0x3f1c2c=a0_0x2ff63c;return{'title':TermsUtil[_0x3f1c2c(0x149)](_0x3f1c2c(0xc6))};}get[a0_0x2ff63c(0x13e)](){const _0x4e0ffa=a0_0x2ff63c;return this[_0x4e0ffa(0xd3)]['querySelector'](_0x4e0ffa(0x131));}get[a0_0x2ff63c(0x17f)](){const _0x440ac1=a0_0x2ff63c;return this[_0x440ac1(0xd3)]['querySelector'](_0x440ac1(0xc3));}get['detailGrist'](){const _0x10b1ee=a0_0x2ff63c;return this[_0x10b1ee(0xd3)][_0x10b1ee(0xe5)](_0x10b1ee(0xcb));}async[a0_0x2ff63c(0x142)]({page:_0x3bf918,limit:_0x5d26c9,sorters:_0x37f03d=[{'name':'bundle'},{'name':'name'}]}){const _0x273e1b=a0_0x2ff63c;this[_0x273e1b(0x14e)]=null,this['selectedEntity']=null,this[_0x273e1b(0x102)]&&this[_0x273e1b(0x102)]['data']&&(this[_0x273e1b(0x102)]['data']={});let _0x3050d9=[...await this['searchForm'][_0x273e1b(0x16d)]()];return await MetaApi['searchByPagination']('entities',_0x3050d9,_0x37f03d,_0x3bf918,_0x5d26c9,_0x273e1b(0x139));}async['fetchEntityColumns']({page:_0x180854,limit:_0x3ea10e,sorters:_0x3a372c=[{'name':a0_0x2ff63c(0xd8)}]}){const _0x2cbd23=a0_0x2ff63c;if(this[_0x2cbd23(0x14e)]){let _0x2dbbc2=[{'name':_0x2cbd23(0x14e),'operator':'eq','value':this[_0x2cbd23(0x14e)]}],_0xf03f4=_0x2cbd23(0x13d);return await MetaApi['searchByPagination'](_0x2cbd23(0x152),_0x2dbbc2,_0x3a372c,_0x180854,_0x3ea10e,_0xf03f4);}}async[a0_0x2ff63c(0x14f)](_0x47e871){const _0xc4b0f1=a0_0x2ff63c;this[_0xc4b0f1(0x14e)]=_0x47e871['id'],this['selectedEntity']=_0x47e871,await this[_0xc4b0f1(0x102)][_0xc4b0f1(0xff)]();}async[a0_0x2ff63c(0x15f)](){const _0x10c6e8=a0_0x2ff63c;let _0x35584a=MetaApi[_0x10c6e8(0xe1)](_0x10c6e8(0x179),_0x10c6e8(0x179));_0x35584a[_0x10c6e8(0xfa)]=this['createMenuTo'][_0x10c6e8(0x147)](this),await MetaApi[_0x10c6e8(0x188)](TermsUtil[_0x10c6e8(0x113)]('create-menu'),_0x10c6e8(0x145),_0x35584a,!0x0);}async[a0_0x2ff63c(0xd9)](){const _0x148f55=a0_0x2ff63c;let _0x31e41b=MetaApi[_0x148f55(0x184)](this['masterGrist']);ValueUtil[_0x148f55(0x175)](_0x31e41b)&&(_0x31e41b[_0x148f55(0x146)](_0x149e9a=>{const _0x535278=_0x148f55;_0x149e9a[_0x535278(0x187)]&&0x0!=_0x149e9a[_0x535278(0x187)]['length']||(_0x149e9a[_0x535278(0x187)]=_0x149e9a['name']);}),await MetaApi[_0x148f55(0x11f)]('updateMultipleEntity',_0x31e41b)&&this[_0x148f55(0x17f)][_0x148f55(0xff)]());}async[a0_0x2ff63c(0x12e)](){const _0x42c69f=a0_0x2ff63c;await MetaApi[_0x42c69f(0xfd)](this[_0x42c69f(0x17f)],_0x42c69f(0xd1));}async['saveEntityColumns'](){const _0x555498=a0_0x2ff63c;if(this['entityId']){let _0x1b1b29=MetaApi[_0x555498(0x184)](this[_0x555498(0x102)]);if(ValueUtil[_0x555498(0x175)](_0x1b1b29)){let _0x5761ad=0x0;_0x1b1b29[_0x555498(0x146)](_0x43313b=>{const _0x4db53d=_0x555498;_0x5761ad+=0xa,_0x43313b[_0x4db53d(0xc6)]={'id':this['entityId']},_0x43313b[_0x4db53d(0x100)]=void 0x0!==_0x43313b[_0x4db53d(0x100)]&&null!=_0x43313b[_0x4db53d(0x100)]&&_0x43313b[_0x4db53d(0x100)],_0x43313b['rank']=_0x43313b[_0x4db53d(0xd8)]&&0x0!=_0x43313b[_0x4db53d(0xd8)]?_0x43313b[_0x4db53d(0xd8)]:_0x5761ad,_0x43313b['gridRank']=_0x43313b[_0x4db53d(0x14b)]?_0x43313b['gridRank']:0x0,_0x43313b['term']=_0x43313b[_0x4db53d(0x130)]?_0x43313b[_0x4db53d(0x130)]:_0x43313b['name'],_0x43313b[_0x4db53d(0xef)]=_0x43313b[_0x4db53d(0xef)]?_0x43313b[_0x4db53d(0xef)]:_0x4db53d(0x180),_0x43313b[_0x4db53d(0x11a)]=_0x4db53d(0x180)!=_0x43313b[_0x4db53d(0xef)]||_0x43313b[_0x4db53d(0x11a)]?_0x43313b['colSize']:0x32;}),await MetaApi[_0x555498(0x11f)](_0x555498(0xdc),_0x1b1b29)&&this[_0x555498(0x102)][_0x555498(0xff)]();}}}async[a0_0x2ff63c(0x10c)](){const _0x1bcb83=a0_0x2ff63c;await MetaApi[_0x1bcb83(0xfd)](this[_0x1bcb83(0x102)],_0x1bcb83(0x10c));}async[a0_0x2ff63c(0x170)](){const _0x5091c6=a0_0x2ff63c;if((await MetaApi['showAlertPopup'](_0x5091c6(0x174),_0x5091c6(0x176),_0x5091c6(0x133),'confirm',_0x5091c6(0xd4)))[_0x5091c6(0x171)]){let _0x429981=MetaApi['getSelectedIdList'](this[_0x5091c6(0x17f)],!0x0);if(_0x429981){let _0x2bf90f=_0x429981[0x0];const _0x2986e7=await client[_0x5091c6(0x125)]({'query':a0_0x3784c7`
|
|
2
2
|
query ($id: String!) {
|
|
3
3
|
toolCreateService(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':
|
|
5
|
+
`,'variables':{'id':_0x2bf90f},'context':gqlContext()});_0x2986e7&&_0x2986e7['data']&&_0x2986e7[_0x5091c6(0x11c)][_0x5091c6(0x135)]&&MetaApi[_0x5091c6(0x183)](_0x5091c6(0x189),TermsUtil['tText'](_0x5091c6(0x11e)));}}}async['createMenu'](){const _0x3b8cba=a0_0x2ff63c;if(this[_0x3b8cba(0x14e)])(await MetaApi[_0x3b8cba(0x108)](_0x3b8cba(0x13c),_0x3b8cba(0x176),'question',_0x3b8cba(0x160),_0x3b8cba(0xd4)))[_0x3b8cba(0x171)]&&MetaApi['getSelectedIdList'](this[_0x3b8cba(0x17f)],!0x0)&&await this[_0x3b8cba(0x15f)]();else MetaApi[_0x3b8cba(0x108)](_0x3b8cba(0x119),_0x3b8cba(0x119),_0x3b8cba(0x189),_0x3b8cba(0x160));}async[a0_0x2ff63c(0xe8)](_0x555ff0){const _0x428977=a0_0x2ff63c,_0x4ecc28=await client[_0x428977(0x125)]({'query':a0_0x3784c7`
|
|
6
6
|
mutation($id: String!, $parent_menu_id: String!) {
|
|
7
7
|
toolCreateMenu(id: $id, parent_menu_id: $parent_menu_id)
|
|
8
8
|
}
|
|
9
|
-
`,'variables':{'id':this[
|
|
9
|
+
`,'variables':{'id':this[_0x428977(0x14e)],'parent_menu_id':_0x555ff0},'context':gqlContext()});return _0x4ecc28&&_0x4ecc28[_0x428977(0x11c)]&&_0x4ecc28[_0x428977(0x11c)][_0x428977(0x121)]?(MetaApi[_0x428977(0x183)](_0x428977(0x189),TermsUtil['tText']('success\x20to\x20process')),{'success':!0x0}):{'success':!0x1};}async[a0_0x2ff63c(0xc1)](){const _0x23de87=a0_0x2ff63c;try{if(this['entityId']){const _0x3d4094=this[_0x23de87(0x102)][_0x23de87(0x11c)]['records'][_0x23de87(0x167)](_0x3071b2=>TermsUtil[_0x23de87(0x13b)](_0x3071b2[_0x23de87(0x130)])===_0x3071b2[_0x23de87(0x130)])[_0x23de87(0x136)](_0x1ea054=>_0x23de87(0x12a)+_0x1ea054[_0x23de87(0x130)]),_0x41b246=this[_0x23de87(0xee)]['bundle'];_0x3d4094[_0x23de87(0x109)]&&((await client['query']({'query':a0_0x3784c7`
|
|
10
10
|
query setTranslations($bundle: String!, $terms: [String!]!) {
|
|
11
11
|
setTranslations(bundle: $bundle, terms: $terms)
|
|
12
12
|
}
|
|
13
|
-
`,'variables':{'bundle':
|
|
13
|
+
`,'variables':{'bundle':_0x41b246,'terms':_0x3d4094}}))[_0x23de87(0x106)]||MetaApi[_0x23de87(0x183)](_0x23de87(0x189),TermsUtil[_0x23de87(0x134)](_0x23de87(0xde))));}}catch(_0x1ec1a7){MetaApi[_0x23de87(0x183)](_0x23de87(0xd6),_0x1ec1a7[_0x23de87(0xcd)]);}}async[a0_0x2ff63c(0x16a)](){const _0x44286b=a0_0x2ff63c;let _0x289e53=this[_0x44286b(0x102)][_0x44286b(0x151)][_0x44286b(0x172)][_0x44286b(0x167)](_0x185279=>_0x44286b(0x17b)!==_0x185279['type']&&void 0x0!==_0x185279[_0x44286b(0x129)]&&void 0x0!==_0x185279['imex'])[_0x44286b(0x136)](_0x52dc43=>_0x52dc43[_0x44286b(0xe0)]),_0x154a99=this[_0x44286b(0x102)]['data'][_0x44286b(0x17d)][_0x44286b(0x136)](_0x4dbb70=>({'id':_0x4dbb70['id'],...this[_0x44286b(0x102)][_0x44286b(0x151)][_0x44286b(0x172)][_0x44286b(0x167)](_0x335dee=>'gutter'!==_0x335dee[_0x44286b(0xf4)]&&void 0x0!==_0x335dee['record']&&void 0x0!==_0x335dee[_0x44286b(0xe0)])[_0x44286b(0xe6)]((_0x15f4dd,_0x23c1a6)=>(_0x15f4dd[_0x23c1a6[_0x44286b(0xe0)][_0x44286b(0xe2)]]=_0x23c1a6[_0x44286b(0xe0)][_0x44286b(0xe2)][_0x44286b(0x169)]('.')[_0x44286b(0xe6)]((_0x2580a6,_0x5bfe93)=>_0x2580a6&&_0x44286b(0x155)!==_0x2580a6[_0x5bfe93]?_0x2580a6[_0x5bfe93]:void 0x0,_0x4dbb70),_0x15f4dd),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':_0x44286b(0xf6),'name':TermsUtil[_0x44286b(0x149)](_0x44286b(0x14d))+'-'+this[_0x44286b(0xee)][_0x44286b(0xe3)],'data':{'header':_0x289e53,'data':_0x154a99}}});}async[a0_0x2ff63c(0x103)](){const _0x2b3a45=a0_0x2ff63c;let _0x55cf69=this;const _0x1e0e44=document['createElement'](_0x2b3a45(0xf8));_0x1e0e44['setAttribute'](_0x2b3a45(0xf4),_0x2b3a45(0x132)),_0x1e0e44[_0x2b3a45(0x141)](_0x2b3a45(0xc5),[_0x2b3a45(0xf6)]),_0x1e0e44[_0x2b3a45(0x138)]=!0x0,_0x1e0e44[_0x2b3a45(0x11d)](_0x2b3a45(0xd0),_0x1aa5d5=>{const _0x47fea8=_0x2b3a45,_0x318f25=_0x1aa5d5[_0x47fea8(0x153)][_0x47fea8(0x186)][0x0],_0x85e851=_0x318f25[_0x47fea8(0xe3)][_0x47fea8(0x169)]('.')[_0x47fea8(0x105)](),_0x5c3918=new FileReader();_0x5c3918[_0x47fea8(0xda)]=function(_0x18dd32){const _0x2b42b7=_0x47fea8,_0x2d0123=_0x18dd32[_0x2b42b7(0x15a)][_0x2b42b7(0x157)];store[_0x2b42b7(0xcc)]({'type':IMPORT,'importable':{'extension':_0x85e851,'handler':_0x55cf69[_0x2b42b7(0xe9)]['bind'](_0x55cf69)},'data':_0x2d0123});},_0x5c3918['readAsArrayBuffer'](_0x318f25);}),document[_0x2b3a45(0x156)][_0x2b3a45(0xf0)](_0x1e0e44),_0x1e0e44[_0x2b3a45(0x128)]();}[a0_0x2ff63c(0xe9)](_0x466cb0){const _0x14bbd3=a0_0x2ff63c;let _0x3f7738=_0x466cb0['header']?_0x466cb0[_0x14bbd3(0x11c)]:_0x466cb0;if(_0x3f7738&&_0x3f7738[_0x14bbd3(0x109)]>0x0){_0x3f7738[_0x14bbd3(0x146)](_0x50844c=>{const _0x2b6f00=_0x14bbd3;_0x50844c[_0x2b6f00(0xe7)]=!0x0;});let _0x1b7e95=this['importConfig']['columns'][_0x14bbd3(0x167)](_0x3054c9=>!!_0x3054c9[_0x14bbd3(0xe0)]);setTimeout(()=>{const _0x4cd778=_0x14bbd3;MetaApi[_0x4cd778(0x188)](TermsUtil[_0x4cd778(0x149)](_0x4cd778(0x13a)),'large',html`
|
|
14
14
|
<import-pop-up
|
|
15
|
-
.records=${
|
|
16
|
-
.config=${{'rows':
|
|
17
|
-
.importHandler="${this[
|
|
18
|
-
</import-pop-up>`);},0x1f4);}}async[
|
|
15
|
+
.records=${_0x3f7738}
|
|
16
|
+
.config=${{'rows':_0x3f7738,'columns':[{'type':_0x4cd778(0x17b),'gutterName':_0x4cd778(0x18a)},..._0x1b7e95]}}
|
|
17
|
+
.importHandler="${this[_0x4cd778(0x123)]['bind'](this)}">
|
|
18
|
+
</import-pop-up>`);},0x1f4);}}async[a0_0x2ff63c(0x123)](_0x45ed8b){const _0xd741c7=a0_0x2ff63c;if(_0x45ed8b&&0x0!=_0x45ed8b[_0xd741c7(0x109)]){let _0x2f8bd4=0x0;_0x45ed8b[_0xd741c7(0x146)](_0x1e0afd=>{const _0x6b5ac2=_0xd741c7;_0x2f8bd4+=0xa,_0x1e0afd['colSize']=ValueUtil['isNotEmpty'](_0x1e0afd[_0x6b5ac2(0x11a)])?ValueUtil[_0x6b5ac2(0x10e)](_0x1e0afd[_0x6b5ac2(0x11a)]):_0x6b5ac2(0x180)==_0x1e0afd['colType']?0x32:0x0,_0x1e0afd[_0x6b5ac2(0xd8)]=ValueUtil[_0x6b5ac2(0x10e)](_0x1e0afd[_0x6b5ac2(0xd8)],0x0),_0x1e0afd[_0x6b5ac2(0x127)]=ValueUtil[_0x6b5ac2(0x10e)](_0x1e0afd[_0x6b5ac2(0x127)],0x0),_0x1e0afd[_0x6b5ac2(0x16c)]=ValueUtil[_0x6b5ac2(0x10e)](_0x1e0afd[_0x6b5ac2(0x16c)],0x0),_0x1e0afd[_0x6b5ac2(0x14b)]=ValueUtil[_0x6b5ac2(0x10e)](_0x1e0afd[_0x6b5ac2(0x14b)],0x0),_0x1e0afd[_0x6b5ac2(0x10d)]=ValueUtil[_0x6b5ac2(0x10e)](_0x1e0afd[_0x6b5ac2(0x10d)],0x0),_0x1e0afd[_0x6b5ac2(0xc6)]={'id':this[_0x6b5ac2(0x14e)]},_0x1e0afd['nullable']=ValueUtil[_0x6b5ac2(0x112)](_0x1e0afd[_0x6b5ac2(0x100)]),_0x1e0afd[_0x6b5ac2(0x130)]=_0x1e0afd[_0x6b5ac2(0x130)]?_0x1e0afd[_0x6b5ac2(0x130)]:_0x1e0afd[_0x6b5ac2(0xe3)],_0x1e0afd[_0x6b5ac2(0xef)]=_0x1e0afd[_0x6b5ac2(0xef)]?_0x1e0afd['colType']:_0x6b5ac2(0x180),delete _0x1e0afd[_0x6b5ac2(0x180)];}),await MetaApi[_0xd741c7(0x11f)](_0xd741c7(0xdc),_0x45ed8b)&&(this[_0xd741c7(0x102)][_0xd741c7(0xff)](),history[_0xd741c7(0xd7)]());}else MetaApi[_0xd741c7(0x183)](_0xd741c7(0x189),_0xd741c7(0xc4)),history['back']();}async[a0_0x2ff63c(0x14a)](){const _0x4cec72=a0_0x2ff63c;if(this[_0x4cec72(0x14e)]){let _0x4f8751=this[_0x4cec72(0x102)][_0x4cec72(0x11c)][_0x4cec72(0x17d)],_0x59ec14=_0x4f8751&&_0x4f8751['length']?0xa*_0x4f8751[_0x4cec72(0x109)]:0x0,_0x1ec2c4=!0x1,_0x4845ab=!0x1,_0x59c966=!0x1,_0x1c023f=!0x1,_0x26174d=!0x1,_0x2b81bb=!0x1;_0x4f8751&&_0x4f8751[_0x4cec72(0x109)]>0x0&&(_0x1ec2c4=_0x4f8751[_0x4cec72(0x16e)](_0x3826e5=>'id'==_0x3826e5[_0x4cec72(0xe3)])>=0x0,_0x4845ab=_0x4f8751[_0x4cec72(0x16e)](_0x13b788=>_0x4cec72(0x16b)==_0x13b788[_0x4cec72(0xe3)])>=0x0,_0x59c966=_0x4f8751['findIndex'](_0x56dc78=>'created_at'==_0x56dc78[_0x4cec72(0xe3)])>=0x0,_0x1c023f=_0x4f8751[_0x4cec72(0x16e)](_0x442d79=>_0x4cec72(0x181)==_0x442d79[_0x4cec72(0xe3)])>=0x0,_0x26174d=_0x4f8751['findIndex'](_0x12c6ca=>'creator_id'==_0x12c6ca[_0x4cec72(0xe3)])>=0x0,_0x2b81bb=_0x4f8751[_0x4cec72(0x16e)](_0x54bcd7=>_0x4cec72(0x137)==_0x54bcd7[_0x4cec72(0xe3)])>=0x0);let _0xd4f635=[];_0x1ec2c4||(_0x59ec14+=0xa,_0xd4f635[_0x4cec72(0xdf)]({'entity':{'id':this['entityId']},'name':'id','colType':_0x4cec72(0x180),'colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x59ec14,'cuFlag':'+'})),_0x4845ab||(_0x59ec14+=0xa,_0xd4f635['push']({'entity':{'id':this[_0x4cec72(0x14e)]},'name':_0x4cec72(0x16b),'colType':_0x4cec72(0x180),'colSize':0x0,'nullable':!0x1,'term':'domain','rank':_0x59ec14,'cuFlag':'+'})),_0x59c966||(_0x59ec14+=0xa,_0xd4f635[_0x4cec72(0xdf)]({'entity':{'id':this[_0x4cec72(0x14e)]},'name':'created_at','colType':_0x4cec72(0x154),'colSize':0x0,'nullable':!0x0,'term':_0x4cec72(0x159),'rank':_0x59ec14,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x1c023f||(_0x59ec14+=0xa,_0xd4f635[_0x4cec72(0xdf)]({'entity':{'id':this[_0x4cec72(0x14e)]},'name':_0x4cec72(0x181),'colType':_0x4cec72(0x154),'colSize':0x0,'nullable':!0x0,'term':_0x4cec72(0x181),'rank':_0x59ec14,'gridRank':_0x59ec14,'gridWidth':0x8c,'cuFlag':'+'})),_0x26174d||(_0x59ec14+=0xa,_0xd4f635[_0x4cec72(0xdf)]({'entity':{'id':this[_0x4cec72(0x14e)]},'name':_0x4cec72(0x114),'colType':_0x4cec72(0x180),'colSize':0x28,'nullable':!0x0,'term':_0x4cec72(0x15b),'rank':_0x59ec14,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x2b81bb||(_0x59ec14+=0xa,_0xd4f635[_0x4cec72(0xdf)]({'entity':{'id':this['entityId']},'name':_0x4cec72(0x137),'colType':_0x4cec72(0x180),'colSize':0x28,'nullable':!0x0,'term':_0x4cec72(0x120),'rank':_0x59ec14,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi['updateMultiple'](_0x4cec72(0xdc),_0xd4f635)&&this[_0x4cec72(0x102)][_0x4cec72(0xff)]();}}async[a0_0x2ff63c(0xd5)](){const _0x28c843=a0_0x2ff63c;this[_0x28c843(0x107)]=[MetaApi['getGristSearchColumnConfig'](_0x28c843(0xe3),_0x28c843(0x180),_0x28c843(0xe3),'i_like'),MetaApi[_0x28c843(0x178)](_0x28c843(0x116),_0x28c843(0x180),_0x28c843(0x116),'i_like'),await MetaApi[_0x28c843(0x143)](_0x28c843(0x165),_0x28c843(0x101),'bundle','eq','BUNDLE')],this[_0x28c843(0xc7)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x28c843(0x12d)](!0x0,!0x1),{'type':_0x28c843(0x17b),'gutterName':_0x28c843(0xf9),'icon':_0x28c843(0x10f),'handlers':{'click':(_0x758ac,_0x208240,_0x2105eb,_0x26e557,_0x5323f2)=>{const _0x26a079=_0x28c843;_0x26e557['id']&&this[_0x26a079(0x14f)](_0x26e557);}}},await MetaApi[_0x28c843(0x161)](_0x28c843(0x165),'bundle',_0x28c843(0x15c),!0x1,0x73,!0x0,_0x28c843(0xea)),MetaApi['getGristColumnConfig'](_0x28c843(0x180),_0x28c843(0xe3),_0x28c843(0x15c),!0x0,!0x1,0x7d),MetaApi['getGristColumnConfig2']('string',_0x28c843(0x187),_0x28c843(0x116),'left',!0x0,!0x1,0x7d),await MetaApi[_0x28c843(0x161)](_0x28c843(0x110),'entity_manage_hist',_0x28c843(0xcf),!0x1,0x73,!0x0,_0x28c843(0xca)),MetaApi[_0x28c843(0x15d)](_0x28c843(0x180),_0x28c843(0xeb),_0x28c843(0x15c),!0x0,!0x1,0x96)]},this[_0x28c843(0x173)]={'rows':MetaApi[_0x28c843(0x16f)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x28c843(0x12d)](!0x0,!0x0),MetaApi[_0x28c843(0x15d)](_0x28c843(0x140),_0x28c843(0xd8),_0x28c843(0xcf),!0x0,!0x1,0x32),MetaApi[_0x28c843(0x15d)]('string',_0x28c843(0xe3),'left',!0x0,!0x1,0x73),{'type':_0x28c843(0x180),'name':_0x28c843(0x130),'header':TermsUtil[_0x28c843(0x13b)](_0x28c843(0x130)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x28c843(0x15c),'renderer':(_0x4724af,_0x5351c2,_0x550242,_0x5bce30,_0x2844d9)=>_0x550242['term']?TermsUtil[_0x28c843(0x13b)](_0x550242[_0x28c843(0x130)],null,_0x550242[_0x28c843(0x130)]):''}},await MetaApi[_0x28c843(0x161)](_0x28c843(0xef),_0x28c843(0x148),_0x28c843(0x15c),!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi['getGristColumnConfig2'](_0x28c843(0x140),'colSize',_0x28c843(0xf1),_0x28c843(0x177),!0x0,!0x1,0x3c),MetaApi[_0x28c843(0x126)](_0x28c843(0xdb),_0x28c843(0x100),'nullable',_0x28c843(0xcf),!0x0,!0x1,0x46),MetaApi[_0x28c843(0x126)](_0x28c843(0x140),_0x28c843(0x127),_0x28c843(0x111),'right',!0x0,!0x1,0x46),MetaApi[_0x28c843(0x126)](_0x28c843(0x180),_0x28c843(0xeb),_0x28c843(0xeb),_0x28c843(0x15c),!0x0,!0x1,0x87),MetaApi[_0x28c843(0x126)](_0x28c843(0x140),_0x28c843(0x16c),_0x28c843(0xfc),_0x28c843(0x177),!0x0,!0x1,0x46),await MetaApi['getGristCodeSelectorColumnConfig'](_0x28c843(0x124),'search_oper',_0x28c843(0x15c),!0x1,0x55,!0x0,'FILTER_OPERATORS'),MetaApi[_0x28c843(0x126)]('integer',_0x28c843(0x14b),'grid_rank',_0x28c843(0x177),!0x0,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x28c843(0x140),_0x28c843(0x10d),_0x28c843(0x10b),'right',!0x0,!0x1,0x4b),await MetaApi['getGristCodeSelectorColumnConfig'](_0x28c843(0xd2),_0x28c843(0xf3),_0x28c843(0x15c),!0x1,0x5a,!0x0,_0x28c843(0xec)),await MetaApi['getGristCodeSelectorColumnConfig'](_0x28c843(0x17a),'ref_type','left',!0x1,0x55,!0x0,_0x28c843(0xf7)),MetaApi[_0x28c843(0x126)](_0x28c843(0x180),_0x28c843(0x150),'ref_name',_0x28c843(0x15c),!0x0,!0x1,0x64)]},this['importConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x28c843(0x12d)](!0x0,!0x0),MetaApi[_0x28c843(0x15d)](_0x28c843(0x140),_0x28c843(0xd8),'center',!0x0,!0x1,0x32),MetaApi[_0x28c843(0x15d)]('string','name',_0x28c843(0x15c),!0x0,!0x1,0x73),{'type':_0x28c843(0x180),'name':_0x28c843(0x130),'header':TermsUtil[_0x28c843(0x13b)](_0x28c843(0x130)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x28c843(0x15c),'renderer':(_0x391f09,_0x262739,_0x2d21db,_0x32e82f,_0x12c6fa)=>_0x2d21db[_0x28c843(0x130)]?TermsUtil[_0x28c843(0x13b)](_0x2d21db[_0x28c843(0x130)],null,_0x2d21db[_0x28c843(0x130)]):''}},await MetaApi['getGristCodeSelectorColumnConfig'](_0x28c843(0xef),_0x28c843(0x148),_0x28c843(0x15c),!0x1,0x4b,!0x0,_0x28c843(0xed)),MetaApi[_0x28c843(0x126)](_0x28c843(0x140),_0x28c843(0x11a),_0x28c843(0xf1),_0x28c843(0x177),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig2'](_0x28c843(0xdb),_0x28c843(0x100),_0x28c843(0x100),_0x28c843(0xcf),!0x0,!0x1,0x46),MetaApi[_0x28c843(0x126)](_0x28c843(0x140),'uniqRank','uniq_rank',_0x28c843(0x177),!0x0,!0x1,0x46),MetaApi[_0x28c843(0x126)](_0x28c843(0x180),'description','description',_0x28c843(0x15c),!0x0,!0x1,0x87),MetaApi[_0x28c843(0x126)](_0x28c843(0x140),_0x28c843(0x16c),_0x28c843(0xfc),'right',!0x0,!0x1,0x46),await MetaApi[_0x28c843(0x161)](_0x28c843(0x180),_0x28c843(0x163),_0x28c843(0x15c),!0x1,0x55,!0x0,_0x28c843(0xe4)),MetaApi[_0x28c843(0x126)](_0x28c843(0x140),'gridRank',_0x28c843(0xce),_0x28c843(0x177),!0x0,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x28c843(0x140),_0x28c843(0x10d),_0x28c843(0x10b),_0x28c843(0x177),!0x0,!0x1,0x4b),await MetaApi[_0x28c843(0x161)]('gridEditor',_0x28c843(0xf3),'left',!0x1,0x5a,!0x0,_0x28c843(0x122)),await MetaApi['getGristCodeSelectorColumnConfig'](_0x28c843(0x17a),_0x28c843(0xfb),_0x28c843(0x15c),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x28c843(0x126)](_0x28c843(0x180),_0x28c843(0x150),_0x28c843(0x11b),_0x28c843(0x15c),!0x0,!0x1,0x64)]};}['render'](){const _0x2e1243=a0_0x2ff63c;return html`
|
|
19
19
|
<div slot="headroom">
|
|
20
20
|
<div id="filters">
|
|
21
21
|
<ox-filters-form-base
|
|
22
|
-
.filters=${this[
|
|
23
|
-
@filters-change=${
|
|
22
|
+
.filters=${this[_0x2e1243(0x107)]||[]}
|
|
23
|
+
@filters-change=${_0x3bf2f7=>{const _0x5b2005=_0x2e1243;this[_0x5b2005(0x17f)]?.[_0x5b2005(0xff)]();}}
|
|
24
24
|
></ox-filters-form-base>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
@@ -28,42 +28,42 @@ const a0_0x4d703a=a0_0x3c55;(function(_0x418492,_0x390a7d){const _0x1b5be4=a0_0x
|
|
|
28
28
|
<div class='container' style='grid-template-columns: 37% 63%'>
|
|
29
29
|
<div class="container_detail">
|
|
30
30
|
<h2>
|
|
31
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
31
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](_0x2e1243(0xc6))}
|
|
32
32
|
</h2>
|
|
33
33
|
<ox-grist
|
|
34
34
|
id="master-grist"
|
|
35
|
-
.config=${this[
|
|
36
|
-
.mode=${MetaApi[
|
|
35
|
+
.config=${this[_0x2e1243(0xc7)]}
|
|
36
|
+
.mode=${MetaApi[_0x2e1243(0x117)]()?_0x2e1243(0x164):_0x2e1243(0xf2)}
|
|
37
37
|
auto-fetch
|
|
38
|
-
.fetchHandler=${this['
|
|
38
|
+
.fetchHandler=${this[_0x2e1243(0x142)]['bind'](this)}>
|
|
39
39
|
</ox-grist>
|
|
40
40
|
<div id="button-container" class="button-container">
|
|
41
|
-
<mwc-button raised label="${TermsUtil['tButton'](
|
|
42
|
-
<mwc-button raised label="${TermsUtil[
|
|
43
|
-
<mwc-button raised label="${TermsUtil[
|
|
44
|
-
<mwc-button raised label="${TermsUtil[
|
|
41
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x2e1243(0xdd))}" @click=${_0x15ff51=>this[_0x2e1243(0x170)]()}></mwc-button>
|
|
42
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0xc2))}" @click=${_0x554e06=>this[_0x2e1243(0x118)]()}></mwc-button>
|
|
43
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0x166))}" @click=${_0x4f5534=>this[_0x2e1243(0xd9)]()}></mwc-button>
|
|
44
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x2e1243(0x10a))}" @click=${_0x2aca66=>this[_0x2e1243(0x12e)]()}></mwc-button>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
|
|
48
48
|
<div class="container_detail">
|
|
49
49
|
<h2>
|
|
50
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
50
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x2e1243(0x149)](_0x2e1243(0x14d))}
|
|
51
51
|
</h2>
|
|
52
52
|
<ox-grist
|
|
53
53
|
id="detail-grist"
|
|
54
|
-
.config=${this[
|
|
55
|
-
.mode=${MetaApi[
|
|
54
|
+
.config=${this['detailConfig']}
|
|
55
|
+
.mode=${MetaApi[_0x2e1243(0x117)]()?'LIST':_0x2e1243(0xf2)}
|
|
56
56
|
explcit-fetch
|
|
57
|
-
.fetchHandler=${this[
|
|
57
|
+
.fetchHandler=${this[_0x2e1243(0x162)][_0x2e1243(0x147)](this)}>
|
|
58
58
|
</ox-grist>
|
|
59
59
|
<div id="button-container" class="button-container">
|
|
60
|
-
<mwc-button raised label="${TermsUtil[
|
|
61
|
-
<mwc-button raised label="${TermsUtil['
|
|
62
|
-
<mwc-button raised label="${TermsUtil[
|
|
63
|
-
<mwc-button raised label="${TermsUtil[
|
|
64
|
-
<mwc-button raised label="${TermsUtil[
|
|
65
|
-
<mwc-button raised label="${TermsUtil[
|
|
60
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0xf5))}" @click=${_0x519676=>this[_0x2e1243(0x16a)]()}></mwc-button>
|
|
61
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)]('import')}" @click=${_0x520922=>this['importXlsxFile']()}></mwc-button>
|
|
62
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0x13f))}" @click=${_0x31a470=>this[_0x2e1243(0x14a)]()}></mwc-button>
|
|
63
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0x12c))}" @click=${_0x22bbae=>this['createUnregisteredTerms']()}></mwc-button>
|
|
64
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0x166))}" @click=${_0x1b303a=>this['saveEntityColumns']()}></mwc-button>
|
|
65
|
+
<mwc-button raised label="${TermsUtil[_0x2e1243(0x113)](_0x2e1243(0x10a))}" @click=${_0x218a25=>this['deleteEntityColumns']()}></mwc-button>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
68
|
</div>
|
|
69
|
-
`;}}customElements['define'](
|
|
69
|
+
`;}}customElements['define'](a0_0x2ff63c(0x17c),ConfigEntity);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x349405=a0_0x4a97;(function(_0x1cbeed,_0x4daced){const _0x2e2e83=a0_0x4a97,_0xe7f610=_0x1cbeed();while(!![]){try{const _0x9ea76f=-parseInt(_0x2e2e83(0x1fb))/0x1+-parseInt(_0x2e2e83(0x20e))/0x2*(parseInt(_0x2e2e83(0x1ed))/0x3)+parseInt(_0x2e2e83(0x20b))/0x4*(parseInt(_0x2e2e83(0x21d))/0x5)+parseInt(_0x2e2e83(0x1f4))/0x6+-parseInt(_0x2e2e83(0x204))/0x7+parseInt(_0x2e2e83(0x1eb))/0x8+parseInt(_0x2e2e83(0x1ea))/0x9;if(_0x9ea76f===_0x4daced)break;else _0xe7f610['push'](_0xe7f610['shift']());}catch(_0x6293ec){_0xe7f610['push'](_0xe7f610['shift']());}}}(a0_0x4b2b,0xa2fe4));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';function a0_0x4a97(_0xf8f421,_0x347cd4){const _0x4b2be9=a0_0x4b2b();return a0_0x4a97=function(_0x4a9734,_0x25ad86){_0x4a9734=_0x4a9734-0x1ea;let _0x154c2d=_0x4b2be9[_0x4a9734];return _0x154c2d;},a0_0x4a97(_0xf8f421,_0x347cd4);}import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';function a0_0x4b2b(){const _0x1f83b0=['5124006ZSRNKD','10600352ibcOtp','getGristSelectableConfig','9xTThIu','center','fetchMainMenus','render','properties','styles','searchByPagination','661500vDGFLv','create-menu','tMenu','selected','integer','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20','left','1243796bonacH','title','menuType','gridConfig','total','title.info','back','showCustomAlert','tButton','3302278IKUAfx','bind','menu_type','is_null','MENU_TYPE','tLabel','items','3076832GTWHht','GRID','success','260444TNxvRi','string','menus','querySelector','parentId','selectCallback','records','grist','shadowRoot','name','button.confirm','connectedCallback','getGristCodeSelectorColumnConfig','selectMainMenu','define','5SDAsqZ','length','getGristColumnConfig','getGristGuttersConfig'];a0_0x4b2b=function(){return _0x1f83b0;};return a0_0x4b2b();}export class MainMenuSelector extends localize(i18next)(LitElement){static get[a0_0x349405(0x1f2)](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -57,19 +57,19 @@ const a0_0x50d5b0=a0_0xa056;function a0_0xa056(_0xe1ab06,_0x453161){const _0x257
|
|
|
57
57
|
height: var(--button-container-height);
|
|
58
58
|
text-align: right;
|
|
59
59
|
padding-right: 12px;
|
|
60
|
-
}`];}static get[
|
|
60
|
+
}`];}static get[a0_0x349405(0x1f1)](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async[a0_0x349405(0x219)](){const _0x1c667f=a0_0x349405;this[_0x1c667f(0x1fe)]={'rows':MetaApi[_0x1c667f(0x1ec)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x1c667f(0x220)](!0x0,!0x1),MetaApi[_0x1c667f(0x21f)](_0x1c667f(0x1f8),'rank',_0x1c667f(0x1ee),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig'](_0x1c667f(0x20f),_0x1c667f(0x217),_0x1c667f(0x1fa),!0x0,!0x1,0xb9),{'type':_0x1c667f(0x20f),'name':'title','header':TermsUtil[_0x1c667f(0x209)](_0x1c667f(0x1fc)),'record':{'editable':!0x1,'align':_0x1c667f(0x1fa),'renderer':(_0x1b9549,_0x393fa8,_0xcb4701,_0x208211,_0x201207)=>_0xcb4701[_0x1c667f(0x217)]?TermsUtil[_0x1c667f(0x1f6)](_0xcb4701[_0x1c667f(0x217)]):''},'sortable':!0x1,'width':0x113},await MetaApi[_0x1c667f(0x21a)](_0x1c667f(0x1fd),_0x1c667f(0x206),'left',!0x1,0x64,!0x0,_0x1c667f(0x208))]},super['connectedCallback']&&await super[_0x1c667f(0x219)]();}[a0_0x349405(0x1f0)](){const _0x26214c=a0_0x349405;return html`
|
|
61
61
|
<div id="container" class="container">
|
|
62
62
|
<div class="container_detail">
|
|
63
63
|
<ox-grist
|
|
64
64
|
id="ox-grist"
|
|
65
|
-
.config=${this[
|
|
66
|
-
.mode=${
|
|
67
|
-
.fetchHandler=${this[
|
|
65
|
+
.config=${this[_0x26214c(0x1fe)]}
|
|
66
|
+
.mode=${_0x26214c(0x20c)} auto-fetch
|
|
67
|
+
.fetchHandler=${this['fetchMainMenus'][_0x26214c(0x205)](this)}>
|
|
68
68
|
</ox-grist>
|
|
69
69
|
<div id="button-container" class="button-container">
|
|
70
|
-
<mwc-button raised hidden id="receive" label="${TermsUtil[
|
|
71
|
-
style="margin-left:7px;margin-top:7px;" @click=${this[
|
|
70
|
+
<mwc-button raised hidden id="receive" label="${TermsUtil[_0x26214c(0x203)](_0x26214c(0x1f5))}"
|
|
71
|
+
style="margin-left:7px;margin-top:7px;" @click=${this[_0x26214c(0x21b)][_0x26214c(0x205)](this)}>
|
|
72
72
|
</mwc-button>
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
75
|
-
</div>`;}get[
|
|
75
|
+
</div>`;}get[a0_0x349405(0x215)](){const _0x5aa88e=a0_0x349405;return this[_0x5aa88e(0x216)][_0x5aa88e(0x211)]('#ox-grist');}async[a0_0x349405(0x1ef)](){const _0x5bc571=a0_0x349405;let _0x49fb66=await MetaApi[_0x5bc571(0x1f3)](_0x5bc571(0x210),[{'name':_0x5bc571(0x212),'operator':_0x5bc571(0x207),'value':''}],[{'name':'rank'}],0x0,0x0,_0x5bc571(0x1f9));return this[_0x5bc571(0x20a)]=_0x49fb66[_0x5bc571(0x214)],this[_0x5bc571(0x1ff)]=_0x49fb66[_0x5bc571(0x1ff)],{'total':this[_0x5bc571(0x1ff)],'records':this['items']};}async[a0_0x349405(0x21b)](_0x546d4c){const _0x407ef0=a0_0x349405,_0x325c4a=this[_0x407ef0(0x215)][_0x407ef0(0x1f7)];if(_0x325c4a&&0x0!=_0x325c4a[_0x407ef0(0x21e)])this[_0x407ef0(0x213)]&&((await this[_0x407ef0(0x213)](_0x325c4a[0x0]['id']))[_0x407ef0(0x20d)]&&history[_0x407ef0(0x201)]());else UiUtil[_0x407ef0(0x202)](_0x407ef0(0x200),'text.NOTHING_SELECTED','info',_0x407ef0(0x218));}}customElements[a0_0x349405(0x21c)]('main-menu-selector',MainMenuSelector);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xb309c1=a0_0x1451;(function(_0x334f5b,_0xa739e8){const _0x53f220=a0_0x1451,_0x4d0257=_0x334f5b();while(!![]){try{const _0x39c9da=parseInt(_0x53f220(0x106))/0x1*(parseInt(_0x53f220(0x120))/0x2)+parseInt(_0x53f220(0x103))/0x3*(parseInt(_0x53f220(0x10b))/0x4)+parseInt(_0x53f220(0x107))/0x5*(-parseInt(_0x53f220(0x11e))/0x6)+-parseInt(_0x53f220(0x119))/0x7+parseInt(_0x53f220(0x102))/0x8+parseInt(_0x53f220(0x125))/0x9*(parseInt(_0x53f220(0x110))/0xa)+-parseInt(_0x53f220(0x129))/0xb;if(_0x39c9da===_0xa739e8)break;else _0x4d0257['push'](_0x4d0257['shift']());}catch(_0x3e084b){_0x4d0257['push'](_0x4d0257['shift']());}}}(a0_0x2389,0x29b3a));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x2389(){const _0x1f1cad=['connectedCallback','filter','743024xOEHWD','originalId','Histories','history-copy-list-popup','dataRevisionAction','4880InNrUe','render','dataRevisionNo','gutter','sortable','rows','gristConfig','gqlFunc','columns','2162489EwwuxB','integer','list','shadowRoot','properties','18ZPRMbX','center','340906chcMJp','type','open_param','forEach','sorters','3987GMFCpz','GRID','dirty','data_revision_no','2370654tBvzfG','bind','gridConfig','fetchHandler','2140744LVjATS','3xLvfuQ','parent_id','styles','1PygrRi','241225pcMYKm','getGristColumnConfig2'];a0_0x2389=function(){return _0x1f1cad;};return a0_0x2389();}import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get[a0_0xb309c1(0x105)](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -8,11 +8,11 @@ const a0_0x428300=a0_0x3f89;(function(_0x336a78,_0x2b8f6d){const _0x13e712=a0_0x
|
|
|
8
8
|
overflow-y: auto;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
`];}static get[
|
|
11
|
+
`];}static get[a0_0xb309c1(0x11d)](){return{'parent_id':String};}async[a0_0xb309c1(0x109)](){const _0x3c1e4e=a0_0xb309c1;let _0x49109f=this[_0x3c1e4e(0x122)][_0x3c1e4e(0x116)];this[_0x3c1e4e(0x117)]=this[_0x3c1e4e(0x122)][_0x3c1e4e(0x117)],delete _0x49109f[_0x3c1e4e(0x11b)],delete _0x49109f['rows'],_0x49109f[_0x3c1e4e(0x115)]={'appendable':!0x1,'selectable':!0x1},_0x49109f[_0x3c1e4e(0x124)]=[{'name':_0x3c1e4e(0x112),'desc':!0x0}];let _0xe9a301=_0x49109f[_0x3c1e4e(0x118)]['filter'](_0x74d4=>_0x3c1e4e(0x113)!=_0x74d4[_0x3c1e4e(0x121)]);_0xe9a301[_0x3c1e4e(0x123)](_0x108f45=>{const _0x468db4=_0x3c1e4e;_0x108f45[_0x468db4(0x10a)]&&delete _0x108f45[_0x468db4(0x10a)],_0x108f45['record']||(_0x108f45['record']={}),_0x108f45[_0x468db4(0x114)]=!0x1,_0x108f45['record']['editable']=!0x1;}),_0x49109f[_0x3c1e4e(0x118)]=[{'type':'gutter','gutterName':_0x3c1e4e(0x127)},MetaApi[_0x3c1e4e(0x108)](_0x3c1e4e(0x11a),_0x3c1e4e(0x112),_0x3c1e4e(0x128),_0x3c1e4e(0x11f),!0x1,!0x0,0x5a),MetaApi[_0x3c1e4e(0x108)]('string',_0x3c1e4e(0x10f),'data_revision_action',_0x3c1e4e(0x11f),!0x1,!0x1,0x5a),..._0xe9a301],this[_0x3c1e4e(0x12b)]=_0x49109f,super[_0x3c1e4e(0x109)]&&await super[_0x3c1e4e(0x109)]();}[a0_0xb309c1(0x111)](){const _0x6c77d=a0_0xb309c1;return html`
|
|
12
12
|
<ox-grist
|
|
13
13
|
id="ox-grist"
|
|
14
14
|
.config=${this['gridConfig']}
|
|
15
|
-
.mode=${
|
|
16
|
-
.fetchHandler=${this[
|
|
15
|
+
.mode=${_0x6c77d(0x126)} auto-fetch
|
|
16
|
+
.fetchHandler=${this['fetchHandler'][_0x6c77d(0x12a)](this)}>
|
|
17
17
|
</ox-grist>
|
|
18
|
-
`;}get[
|
|
18
|
+
`;}get['grist'](){const _0x352919=a0_0xb309c1;return this[_0x352919(0x11c)]['querySelector']('#ox-grist');}async[a0_0xb309c1(0x101)]({page:_0x1f4509=0x0,limit:_0x1332f8=0x0,sortings:_0x39a2ef=[],filters:_0x3101e9=[]}){const _0xb61a2a=a0_0xb309c1;let _0x395c45=[{'name':_0xb61a2a(0x10c),'operator':'eq','value':this[_0xb61a2a(0x104)]},..._0x3101e9],_0xdac3cf=MetaApi['getSelectColumns'](this[_0xb61a2a(0x12b)][_0xb61a2a(0x118)]);return await MetaApi['searchByPagination'](this['gqlFunc']+_0xb61a2a(0x10d),_0x395c45,_0x39a2ef,_0x1f4509,_0x1332f8,_0xdac3cf);}}function a0_0x1451(_0x480138,_0x298a5c){const _0x238932=a0_0x2389();return a0_0x1451=function(_0x14510f,_0x2644d1){_0x14510f=_0x14510f-0x101;let _0x353f6b=_0x238932[_0x14510f];return _0x353f6b;},a0_0x1451(_0x480138,_0x298a5c);}customElements['define'](a0_0xb309c1(0x10e),HistoryCopyListPopup);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5a0a97=a0_0x3788;function a0_0x1016(){const _0x503931=['2700384KYwvIZ','getGristColumnConfig2','parse','gristConfig','historyJson','95tyTtsf','define','gutter','data_revision_action','85302ZfrcIX','list','columns','91lSKlRh','#ox-grist','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20originalId\x0a\x20\x20\x20\x20\x20\x20dataRevisionNo\x0a\x20\x20\x20\x20\x20\x20dataRevisionAction\x0a\x20\x20\x20\x20\x20\x20historyJson\x0a\x20\x20\x20\x20','4964Nkoigf','fetchHandler','664731yYhhqD','searchByPagination','history-json-list-popup','dataRevisionNo','record','96JrCaqc','201mSZqvQ','data_revision_no','type','connectedCallback','Histories','string','dirty','grist','392928jAiYUH','bind','render','9116CKAmRS','forEach','rows','4843487JDGSoU','gridConfig','open_param','parent_id','40wJuNhy','center','dataRevisionAction','gqlFunc','querySelector','originalId','GRID','shadowRoot','filter'];a0_0x1016=function(){return _0x503931;};return a0_0x1016();}(function(_0x3b7fc9,_0x103d01){const _0x4aef99=a0_0x3788,_0x269313=_0x3b7fc9();while(!![]){try{const _0x23517d=-parseInt(_0x4aef99(0xf5))/0x1*(-parseInt(_0x4aef99(0x101))/0x2)+parseInt(_0x4aef99(0xf6))/0x3*(parseInt(_0x4aef99(0xee))/0x4)+-parseInt(_0x4aef99(0xe4))/0x5*(parseInt(_0x4aef99(0xe8))/0x6)+parseInt(_0x4aef99(0xeb))/0x7*(parseInt(_0x4aef99(0xfe))/0x8)+-parseInt(_0x4aef99(0xf0))/0x9*(parseInt(_0x4aef99(0xd6))/0xa)+-parseInt(_0x4aef99(0xd2))/0xb+parseInt(_0x4aef99(0xdf))/0xc;if(_0x23517d===_0x103d01)break;else _0x269313['push'](_0x269313['shift']());}catch(_0x380b75){_0x269313['push'](_0x269313['shift']());}}}(a0_0x1016,0x5c60b));function a0_0x3788(_0x53a847,_0x142662){const _0x1016a4=a0_0x1016();return a0_0x3788=function(_0x378808,_0x533d60){_0x378808=_0x378808-0xd2;let _0x4e2f63=_0x1016a4[_0x378808];return _0x4e2f63;},a0_0x3788(_0x53a847,_0x142662);}import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get['styles'](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -8,11 +8,11 @@ const a0_0x486fb4=a0_0x5ef2;(function(_0x25a6d8,_0x342454){const _0x354d88=a0_0x
|
|
|
8
8
|
overflow-y: auto;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
`];}static get['properties'](){return{'parent_id':String};}async[
|
|
11
|
+
`];}static get['properties'](){return{'parent_id':String};}async[a0_0x5a0a97(0xf9)](){const _0x430af6=a0_0x5a0a97;let _0x1961fb=this[_0x430af6(0xd4)][_0x430af6(0xe2)];this[_0x430af6(0xd9)]=this['open_param'][_0x430af6(0xd9)],delete _0x1961fb[_0x430af6(0xe9)],delete _0x1961fb[_0x430af6(0x103)],_0x1961fb[_0x430af6(0x103)]={'appendable':!0x1,'selectable':!0x1},_0x1961fb['sorters']=[{'name':_0x430af6(0xf3),'desc':!0x0}];let _0x3a650e=_0x1961fb[_0x430af6(0xea)][_0x430af6(0xde)](_0x39fda3=>_0x430af6(0xe6)!=_0x39fda3[_0x430af6(0xf8)]);_0x3a650e[_0x430af6(0x102)](_0x4f4ac1=>{const _0x532755=_0x430af6;_0x4f4ac1[_0x532755(0xde)]&&delete _0x4f4ac1['filter'],_0x4f4ac1['record']||(_0x4f4ac1[_0x532755(0xf4)]={}),_0x4f4ac1['sortable']=!0x1,_0x4f4ac1[_0x532755(0xf4)]['editable']=!0x1;}),_0x1961fb['columns']=[{'type':_0x430af6(0xe6),'gutterName':_0x430af6(0xfc)},MetaApi[_0x430af6(0xe0)]('integer',_0x430af6(0xf3),_0x430af6(0xf7),'center',!0x1,!0x0,0x5a),MetaApi['getGristColumnConfig2'](_0x430af6(0xfb),_0x430af6(0xd8),_0x430af6(0xe7),_0x430af6(0xd7),!0x1,!0x1,0x5a),..._0x3a650e],this[_0x430af6(0xd3)]=_0x1961fb,super[_0x430af6(0xf9)]&&await super[_0x430af6(0xf9)]();}[a0_0x5a0a97(0x100)](){const _0x3de37a=a0_0x5a0a97;return html`
|
|
12
12
|
<ox-grist
|
|
13
13
|
id="ox-grist"
|
|
14
|
-
.config=${this[
|
|
15
|
-
.mode=${
|
|
16
|
-
.fetchHandler=${this[
|
|
14
|
+
.config=${this[_0x3de37a(0xd3)]}
|
|
15
|
+
.mode=${_0x3de37a(0xdc)} auto-fetch
|
|
16
|
+
.fetchHandler=${this[_0x3de37a(0xef)][_0x3de37a(0xff)](this)}>
|
|
17
17
|
</ox-grist>
|
|
18
|
-
`;}get[
|
|
18
|
+
`;}get[a0_0x5a0a97(0xfd)](){const _0x3e2995=a0_0x5a0a97;return this[_0x3e2995(0xdd)][_0x3e2995(0xda)](_0x3e2995(0xec));}async[a0_0x5a0a97(0xef)]({page:_0x368f3e=0x0,limit:_0x3e9cda=0x0,sortings:_0x310cc0=[],filters:_0xac680f=[]}){const _0x5e6c27=a0_0x5a0a97;let _0x1c34bb=[{'name':_0x5e6c27(0xdb),'operator':'eq','value':this[_0x5e6c27(0xd5)]},..._0xac680f],_0x1fce00=await MetaApi[_0x5e6c27(0xf1)](this[_0x5e6c27(0xd9)]+_0x5e6c27(0xfa),_0x1c34bb,_0x310cc0,_0x368f3e,_0x3e9cda,_0x5e6c27(0xed));return _0x1fce00['records']=_0x1fce00['records']['map'](_0x27ade6=>({...JSON[_0x5e6c27(0xe1)](_0x27ade6[_0x5e6c27(0xe3)]),..._0x27ade6})),_0x1fce00;}}customElements[a0_0x5a0a97(0xe5)](a0_0x5a0a97(0xf2),HistoryJsonListPopup);
|