@things-factory/meta-ui 6.1.42 → 6.1.43
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/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +6 -6
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- 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-main-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-detail-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 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- 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 +6 -6
- 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 +16 -16
- package/client/pages/menu/export-menu-popup.js +18 -0
- 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-main-tab-element.js +1 -1
- package/client/pages/meta-main-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-detail-element.js +1 -1
- package/client/pages/meta-tab-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/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.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 +103 -103
- package/client/utils/service-util.js +13 -13
- 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 +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- 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 +2 -2
- 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/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.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
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x20eb8b=a0_0x320b;(function(_0x128b5a,_0x38fb4a){const _0x245481=a0_0x320b,_0x395615=_0x128b5a();while(!![]){try{const _0x2b12ff=-parseInt(_0x245481(0x175))/0x1*(parseInt(_0x245481(0x1ae))/0x2)+-parseInt(_0x245481(0x18a))/0x3+-parseInt(_0x245481(0x170))/0x4+parseInt(_0x245481(0x19b))/0x5*(-parseInt(_0x245481(0x199))/0x6)+parseInt(_0x245481(0x17a))/0x7+parseInt(_0x245481(0x184))/0x8*(-parseInt(_0x245481(0x182))/0x9)+parseInt(_0x245481(0x1a5))/0xa*(parseInt(_0x245481(0x1ab))/0xb);if(_0x2b12ff===_0x38fb4a)break;else _0x395615['push'](_0x395615['shift']());}catch(_0x5dbe4b){_0x395615['push'](_0x395615['shift']());}}}(a0_0x1aca,0x4e871));import{adjustFilters}from'@operato/utils';function a0_0x320b(_0x370cf9,_0x3804d8){const _0x1aca16=a0_0x1aca();return a0_0x320b=function(_0x320b7e,_0x5c2159){_0x320b7e=_0x320b7e-0x170;let _0x515e58=_0x1aca16[_0x320b7e];return _0x515e58;},a0_0x320b(_0x370cf9,_0x3804d8);}import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x53c34f=>class extends MetaBaseMixin(_0x53c34f){static get[a0_0x20eb8b(0x186)](){return{'gqlInfo':Object};}[a0_0x20eb8b(0x180)](_0x313031){const _0x22f121=a0_0x20eb8b;this[_0x22f121(0x1aa)]=_0x313031[_0x22f121(0x1a2)];}async[a0_0x20eb8b(0x17d)]({page:_0x40ed47=0x0,limit:_0x12dfb0=0x0,sortings:_0x42a145=[],filters:_0x1a43e7=[]}){const _0x48c66a=a0_0x20eb8b;if(this[_0x48c66a(0x196)])return{'total':0x0,'records':this[_0x48c66a(0x19f)]||[]};if(!0x0===this[_0x48c66a(0x1a0)]&&(_0x40ed47=0x0,_0x12dfb0=0x0),this['beforeFetch']&&0x0==await this['beforeFetch']({'page':_0x40ed47,'limit':_0x12dfb0,'sortings':_0x42a145,'filters':_0x1a43e7}))return;if(!this[_0x48c66a(0x185)])return{'total':0x0,'records':[]};let _0x4be813=ValueUtil[_0x48c66a(0x195)](_0x1a43e7)?this['mainFilterForm']?await this[_0x48c66a(0x172)]['getQueryFilters']()||[]:await this[_0x48c66a(0x1a9)]?.[_0x48c66a(0x1a3)]()||[]:_0x1a43e7,_0x107fae=ValueUtil[_0x48c66a(0x18e)](this[_0x48c66a(0x1aa)],'query',_0x48c66a(0x1a7)),_0x2e3b6e=ValueUtil[_0x48c66a(0x18e)](this[_0x48c66a(0x1aa)],'query',_0x48c66a(0x179)),_0x49ca04=ValueUtil[_0x48c66a(0x18e)](this['gqlInfo'],_0x48c66a(0x1a6),_0x48c66a(0x1af));if(ValueUtil[_0x48c66a(0x194)](_0x2e3b6e)&&(_0x4be813=adjustFilters(_0x4be813,_0x2e3b6e)),_0x4be813[_0x48c66a(0x191)](...this['getPageNavigateParams']()),this[_0x48c66a(0x174)]&&!this[_0x48c66a(0x172)]){let _0x1c0ecc=ValueUtil['getParams'](this[_0x48c66a(0x1aa)],_0x48c66a(0x1a6),'parent_id');if(!ValueUtil[_0x48c66a(0x194)](_0x1c0ecc)||!ValueUtil['isNotEmpty'](this[_0x48c66a(0x17c)]))return{'total':0x0,'records':[]};_0x4be813=adjustFilters(_0x4be813,[{'name':_0x1c0ecc,'operator':'eq','value':this[_0x48c66a(0x17c)]}]);}let _0x41beba=Object[_0x48c66a(0x192)](_0x49ca04||{}),_0x5c0e8c=MetaApi['getSelectColumns'](this[_0x48c66a(0x185)][_0x48c66a(0x18b)]['filter'](_0x4ed236=>!_0x41beba[_0x48c66a(0x1a1)](_0x4ed236[_0x48c66a(0x187)]))),_0x25f335={};if(_0x107fae[_0x48c66a(0x1a1)]('$')){let _0x390962=_0x107fae[_0x48c66a(0x177)]('$','');_0x25f335=(await MetaApi[_0x48c66a(0x17f)](void 0x0,_0x390962,{'filters':_0x4be813,'pagination':{'page':_0x40ed47,'limit':_0x12dfb0},'sortings':_0x42a145},!0x1))['data'][_0x48c66a(0x18c)]['data'][_0x48c66a(0x171)];}else _0x25f335=await MetaApi[_0x48c66a(0x197)](_0x107fae,_0x4be813,_0x42a145,_0x40ed47,_0x12dfb0,_0x5c0e8c);if(this[_0x48c66a(0x178)]){let _0x26d0f6=await this[_0x48c66a(0x178)]({'page':_0x40ed47,'limit':_0x12dfb0,'sortings':_0x42a145,'filters':_0x1a43e7},_0x25f335);if(_0x26d0f6)return _0x26d0f6;}return ValueUtil['isNotEmpty'](_0x49ca04)&&ValueUtil[_0x48c66a(0x194)](_0x25f335)&&ValueUtil[_0x48c66a(0x194)](_0x25f335[_0x48c66a(0x19e)])&&_0x25f335[_0x48c66a(0x19e)][_0x48c66a(0x18d)](_0x561cf6=>(_0x41beba['forEach'](_0x1c9d23=>{const _0xbd9d9=_0x48c66a;_0x561cf6[_0x1c9d23]=ValueUtil[_0xbd9d9(0x18e)](_0x561cf6,..._0x49ca04[_0x1c9d23][_0xbd9d9(0x198)]('.'));}),_0x561cf6)),_0x25f335;}['getPageNavigateParams'](){const _0x468e05=a0_0x20eb8b;if(0x0==this['isPage'])return[];let _0x8c6768=this[_0x468e05(0x1ad)]?.[_0x468e05(0x181)]?this[_0x468e05(0x1ad)][_0x468e05(0x181)]:{};if(!_0x8c6768['pass'])return[];let _0x550763=_0x8c6768[_0x468e05(0x1a4)],_0x2a93ad=JSON[_0x468e05(0x1ac)](_0x550763),_0x4acb23=0x1==_0x2a93ad[_0x468e05(0x189)]?'eq':'in',_0x3e42d4={},_0x4d9e22=[];return Object[_0x468e05(0x192)](_0x2a93ad[0x0])[_0x468e05(0x17e)](_0x14e285=>{_0x3e42d4[_0x14e285]={'name':_0x14e285,'operator':_0x4acb23,'value':'eq'===_0x4acb23?_0x2a93ad[0x0][_0x14e285]:[]};}),_0x2a93ad[_0x468e05(0x189)]>0x1&&_0x2a93ad[_0x468e05(0x17e)](_0x2a27fa=>{const _0x5e05ae=_0x468e05;Object[_0x5e05ae(0x192)](_0x2a27fa)[_0x5e05ae(0x17e)](_0x3d9ea3=>{const _0x7e7c25=_0x5e05ae;_0x3e42d4[_0x3d9ea3]['value'][_0x7e7c25(0x191)](_0x2a27fa[_0x3d9ea3]);});}),Object[_0x468e05(0x192)](_0x3e42d4)['forEach'](_0x33dee0=>{const _0x3f9b87=_0x468e05;_0x4d9e22[_0x3f9b87(0x191)](_0x3e42d4[_0x33dee0]);}),_0x4d9e22;}async[a0_0x20eb8b(0x190)](_0x9246b2){const _0x4a379f=a0_0x20eb8b;if(this['is_activity'])return this[_0x4a379f(0x19f)]||{};let _0x1decef=ValueUtil['getParams'](this[_0x4a379f(0x1aa)],_0x4a379f(0x1a6),_0x4a379f(0x183)),_0x4a4fe9=ValueUtil[_0x4a379f(0x18e)](this['gqlInfo'],_0x4a379f(0x1a6),_0x4a379f(0x1af)),_0x2db53c=Object[_0x4a379f(0x192)](_0x4a4fe9||{}),_0x349a10=MetaApi['getSelectColumns']((this[_0x4a379f(0x185)]?this[_0x4a379f(0x185)]:{'columns':this[_0x4a379f(0x193)]})[_0x4a379f(0x18b)][_0x4a379f(0x173)](_0xaaec15=>!_0x2db53c[_0x4a379f(0x1a1)](_0xaaec15[_0x4a379f(0x187)]))),_0x2d89df={};if(_0x1decef[_0x4a379f(0x1a1)]('$')){let _0x5d4e2b=_0x1decef[_0x4a379f(0x177)]('$',''),_0x302549=await MetaApi[_0x4a379f(0x17f)](void 0x0,_0x5d4e2b,{'id':_0x9246b2},!0x1);_0x2d89df=_0x302549[_0x4a379f(0x1a8)][_0x4a379f(0x18c)][_0x4a379f(0x1a8)]['result'];}else _0x2d89df=await MetaApi[_0x4a379f(0x190)](_0x1decef,_0x9246b2,_0x349a10);return ValueUtil[_0x4a379f(0x194)](_0x4a4fe9)&&ValueUtil[_0x4a379f(0x194)](_0x2d89df)&&_0x2db53c[_0x4a379f(0x17e)](_0x754afb=>{const _0x358ec8=_0x4a379f;_0x2d89df[_0x754afb]=ValueUtil[_0x358ec8(0x18e)](_0x2d89df,..._0x4a4fe9[_0x754afb][_0x358ec8(0x198)]('.'));}),_0x2d89df;}async[a0_0x20eb8b(0x19c)](_0x43eef1){const _0x23d084=a0_0x20eb8b;let _0x937bdc=ValueUtil[_0x23d084(0x18e)](this[_0x23d084(0x1aa)],_0x23d084(0x19a),_0x23d084(0x176),_0x23d084(0x18f));return await MetaApi['deleteListByIds'](_0x43eef1,_0x937bdc);}async['updateMultiple'](_0x15bb50){const _0x34c813=a0_0x20eb8b;let _0x39c96f=ValueUtil['getParams'](this[_0x34c813(0x1aa)],_0x34c813(0x19a),_0x34c813(0x19d),_0x34c813(0x18f)),_0xec8bf1=ValueUtil[_0x34c813(0x18e)](this[_0x34c813(0x1aa)],_0x34c813(0x19a),'multiple','skip_fields');if(ValueUtil['isNotEmpty'](_0xec8bf1)&&(_0xec8bf1=_0xec8bf1['map'](_0x38bca6=>_0x38bca6[_0x34c813(0x1a1)]('.')?_0x38bca6[_0x34c813(0x198)]('.'):_0x38bca6),_0x15bb50=_0x15bb50[_0x34c813(0x18d)](_0x238ba3=>(_0xec8bf1['forEach'](_0x5d92f4=>{const _0xd78901=_0x34c813;Array[_0xd78901(0x17b)](_0x5d92f4)?delete _0x238ba3[_0x5d92f4[0x0]][_0x5d92f4[0x1]]:delete _0x238ba3[_0x5d92f4];}),_0x238ba3))),this[_0x34c813(0x174)]&&ValueUtil[_0x34c813(0x194)](this[_0x34c813(0x17c)])){let _0x2c10a8=ValueUtil['getParams'](this[_0x34c813(0x1aa)],_0x34c813(0x19a),_0x34c813(0x19d),'parent_id');ValueUtil[_0x34c813(0x194)](_0x2c10a8)&&_0x15bb50[_0x34c813(0x17e)](_0x31a89d=>{const _0x286231=_0x34c813;if(_0x2c10a8[_0x286231(0x1a1)]('.')){let _0x385ee3=_0x2c10a8[_0x286231(0x198)]('.');_0x31a89d[_0x385ee3[0x0]]={},_0x31a89d[_0x385ee3[0x0]][_0x385ee3[0x1]]=this[_0x286231(0x17c)];}else _0x31a89d[_0x2c10a8]=this[_0x286231(0x17c)];});}return await MetaApi[_0x34c813(0x188)](_0x39c96f,_0x15bb50);}};function a0_0x1aca(){const _0x4c323f=['infinityPage','includes','gql','getQueryFilters','pass','700GsyfNe','query','list_func','data','filterForm','gqlInfo','289311pLovpN','parse','lifecycle','2XAGznN','after_set_fields','1381428eAlKYx','result','mainFilterForm','filter','isElement','119585TaStnT','delete','replace','afterFetch','filters','657132wbaclh','isArray','parent_id','fetchHandler','forEach','callScenario','parseBasicServiceConfigs','params','1120617ZYcOXY','find_one_func','40kjeOoN','gristConfigSet','properties','name','updateMultiple','length','1432581hDJpTL','columns','runScenario','map','getParams','func','findOne','push','keys','formConfigSet','isNotEmpty','isEmpty','is_activity','searchByPagination','split','1002Vcgzpm','mutation','1445ylobMy','deleteByIds','multiple','records','dataSet'];a0_0x1aca=function(){return _0x4c323f;};return a0_0x1aca();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5669d7=a0_0x3f21;(function(_0x36d0fc,_0x763e75){const _0x270f70=a0_0x3f21,_0x315d9a=_0x36d0fc();while(!![]){try{const _0x4086fc=-parseInt(_0x270f70(0x175))/0x1*(parseInt(_0x270f70(0x1ac))/0x2)+parseInt(_0x270f70(0x178))/0x3*(-parseInt(_0x270f70(0x183))/0x4)+parseInt(_0x270f70(0x181))/0x5*(-parseInt(_0x270f70(0x1a4))/0x6)+parseInt(_0x270f70(0x17a))/0x7*(-parseInt(_0x270f70(0x188))/0x8)+parseInt(_0x270f70(0x179))/0x9+parseInt(_0x270f70(0x17b))/0xa*(-parseInt(_0x270f70(0x18a))/0xb)+parseInt(_0x270f70(0x174))/0xc;if(_0x4086fc===_0x763e75)break;else _0x315d9a['push'](_0x315d9a['shift']());}catch(_0x1c2e93){_0x315d9a['push'](_0x315d9a['shift']());}}}(a0_0x245a,0xd8ef1));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x245a(){const _0x41da24=['context','filterForm','search','ox-grist','clear','styles','grist','connectedCallback','searchConfig','useButtonExport','searchFields','235614zhjbwQ','firstUpdated','pageInitialized','map','gridEmphasized','parseGristConfigs','push','importable','270qgWqzc','filterFormId','useFilterForm','record','gridColumnConfig','header','gristConfigSet','querySelector','parseGridConfigSet','53863524zPykYj','8032xuXjbV','type','columns','30UocvHv','5447358OVPRSR','14SjTDeT','40870FmHHvl','exportable','masterElement','gristId','grid','options','65uJJcGQ','activityDataSet','197608FlubWu','parseBasicGridConfigs','gridConfig','getContextObject','useButtonImport','4035656XldUWV','getData','2981yQeWdT','dataSet','fetch','ox-filters-form-base','useMasterFilterForm','name','operator','detailElement','isElement','actions','filter','beforeFetch','properties','searchFieldValues','value'];a0_0x245a=function(){return _0x41da24;};return a0_0x245a();}import{TermsUtil}from'../utils/terms-util';function a0_0x3f21(_0x120de7,_0x4c470d){const _0x245a36=a0_0x245a();return a0_0x3f21=function(_0x3f216d,_0x4e0061){_0x3f216d=_0x3f216d-0x16f;let _0x4df495=_0x245a36[_0x3f216d];return _0x4df495;},a0_0x3f21(_0x120de7,_0x4c470d);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabDetailMixin=_0x135963=>class extends MetaButtonMixin(_0x135963){static get[a0_0x5669d7(0x19e)](){return MetaApi['getBasicTabDetailStyles']();}static get[a0_0x5669d7(0x196)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x5669d7(0x19f)](){return this['masterElement']['getMainGrist']();}get[a0_0x5669d7(0x19a)](){const _0x47a434=a0_0x5669d7;return this['shadowRoot']?.[_0x47a434(0x172)](this[_0x47a434(0x1ad)]);}get[a0_0x5669d7(0x199)](){const _0x16a398=a0_0x5669d7;let _0x7dff8d=MetaUiUtil[_0x16a398(0x186)](this);return _0x7dff8d['actions']&&delete _0x7dff8d[_0x16a398(0x193)],_0x7dff8d[_0x16a398(0x17c)]&&delete _0x7dff8d[_0x16a398(0x17c)],_0x7dff8d[_0x16a398(0x1ab)]&&delete _0x7dff8d[_0x16a398(0x1ab)],_0x7dff8d;}async[a0_0x5669d7(0x1a0)](){const _0x3a672f=a0_0x5669d7;this[_0x3a672f(0x17e)]=_0x3a672f(0x19c),this['filterFormId']=_0x3a672f(0x18d),await this['getAndParseMenuMeta'](),this[_0x3a672f(0x192)]&&await this[_0x3a672f(0x1a9)](),this[_0x3a672f(0x182)]&&(this[_0x3a672f(0x18b)]=(this['activityDataSet']||{})['main']),super['connectedCallback']&&await super[_0x3a672f(0x1a0)]();}async['firstUpdated'](){const _0x248108=a0_0x5669d7;super['firstUpdated']&&await super[_0x248108(0x1a5)]();}async['pageInitialized'](){const _0xc4f36a=a0_0x5669d7;this['isPage']&&await this[_0xc4f36a(0x1a9)](),super[_0xc4f36a(0x1a6)]&&await super[_0xc4f36a(0x1a6)]();}['render'](){return MetaApi['getTabDetailHtml'](this);}[a0_0x5669d7(0x184)](_0x287ee6){const _0x1e6ce6=a0_0x5669d7;this[_0x1e6ce6(0x185)]=_0x287ee6[_0x1e6ce6(0x17f)],this[_0x1e6ce6(0x16f)]=_0x287ee6['grid_column'],this[_0x1e6ce6(0x1a1)]=_0x287ee6['search'],this[_0x1e6ce6(0x1a8)]=_0x287ee6['gridEmphasized'];}async[a0_0x5669d7(0x1a9)](){const _0x17efa5=a0_0x5669d7;this[_0x17efa5(0x171)]=await MetaApi[_0x17efa5(0x173)](this),this[_0x17efa5(0x18e)]=!0x0===this[_0x17efa5(0x1ae)],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x17efa5(0x1a2)]=!0x1,this[_0x17efa5(0x187)]=!0x1,this['searchFieldValues']=[],this[_0x17efa5(0x1a3)]=this['gristConfigSet'][_0x17efa5(0x177)][_0x17efa5(0x194)](_0x2ea205=>_0x2ea205['filter'])[_0x17efa5(0x1a7)](_0x143da7=>{const _0x7c60bc=_0x17efa5;let _0x25dde2={'name':_0x143da7[_0x7c60bc(0x18f)],'type':_0x7c60bc(0x19b)===_0x143da7[_0x7c60bc(0x194)]['operator']?_0x7c60bc(0x19b):_0x143da7[_0x7c60bc(0x176)],'label':_0x143da7[_0x7c60bc(0x170)],'operator':_0x143da7[_0x7c60bc(0x194)]['operator']?_0x143da7[_0x7c60bc(0x194)][_0x7c60bc(0x190)]:'eq'};return _0x143da7[_0x7c60bc(0x194)]['options']&&(_0x25dde2['options']=_0x143da7['filter']['options']),_0x143da7[_0x7c60bc(0x1af)][_0x7c60bc(0x180)]&&(_0x25dde2[_0x7c60bc(0x180)]=_0x143da7[_0x7c60bc(0x1af)][_0x7c60bc(0x180)]),_0x143da7[_0x7c60bc(0x194)][_0x7c60bc(0x198)]&&this[_0x7c60bc(0x197)][_0x7c60bc(0x1aa)]({'name':_0x25dde2['name'],'operator':_0x25dde2[_0x7c60bc(0x190)],'value':_0x143da7[_0x7c60bc(0x194)][_0x7c60bc(0x198)]}),delete _0x143da7['filter'],_0x25dde2;});}async[a0_0x5669d7(0x18c)](){const _0x59fd70=a0_0x5669d7;await this['grist'][_0x59fd70(0x18c)]();}async[a0_0x5669d7(0x195)]({page:_0x316af8=0x0,limit:_0x18c6e4=0x0,sortings:_0x1cdc90=[],filters:_0x3994b5=[]}){const _0x591f57=a0_0x5669d7;return this['masterElement']&&this[_0x591f57(0x17d)][_0x591f57(0x19d)]&&await this[_0x591f57(0x17d)]['clear'](),this[_0x591f57(0x191)]&&this[_0x591f57(0x191)][_0x591f57(0x19d)]&&await this['detailElement'][_0x591f57(0x19d)](),!0x0;}['getData'](){const _0x340ee5=a0_0x5669d7;return{'master':this['masterElement'][_0x340ee5(0x189)](),'detail':this['detailElement']['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x464999=a0_0x39e1;function a0_0xb175(){const _0x35c184=['activityDataSet','styles','5vikslE','7NAVFBM','tab','splice','route_name','36641XFZZxh','context','6111522OZykya','1244256cscjRU','3yhdbBP','firstUpdated','parse','meta-grist-element','getAndParseMenuMeta','5912604nNhQCo','icon','etcConfig','pageInitialized','connectedCallback','button','grist','104554rJAekE','index','length','dataSet','getData','name','getContextObject','2710bVoFxk','3415380PrJZMB','4055212HjrXYo','main_tab_info','getBasicTabStyles','keys','1DmrKwo','clear','tabRenderConfig','getBasicTabHtml','display','tabElements','mainFilterForm'];a0_0xb175=function(){return _0x35c184;};return a0_0xb175();}(function(_0x1eb161,_0x27f6ec){const _0x3c1b98=a0_0x39e1,_0x3b2aa8=_0x1eb161();while(!![]){try{const _0x54a29d=parseInt(_0x3c1b98(0xca))/0x1*(-parseInt(_0x3c1b98(0xbd))/0x2)+-parseInt(_0x3c1b98(0xb1))/0x3*(parseInt(_0x3c1b98(0xc6))/0x4)+-parseInt(_0x3c1b98(0xa8))/0x5*(parseInt(_0x3c1b98(0xc5))/0x6)+parseInt(_0x3c1b98(0xa9))/0x7*(parseInt(_0x3c1b98(0xb0))/0x8)+parseInt(_0x3c1b98(0xaf))/0x9+parseInt(_0x3c1b98(0xc4))/0xa*(parseInt(_0x3c1b98(0xad))/0xb)+parseInt(_0x3c1b98(0xb6))/0xc;if(_0x54a29d===_0x27f6ec)break;else _0x3b2aa8['push'](_0x3b2aa8['shift']());}catch(_0x288e42){_0x3b2aa8['push'](_0x3b2aa8['shift']());}}}(a0_0xb175,0x9130a));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x39e1(_0x38e40b,_0x31f0a6){const _0xb17594=a0_0xb175();return a0_0x39e1=function(_0x39e1b1,_0x49aeaa){_0x39e1b1=_0x39e1b1-0xa0;let _0x564f53=_0xb17594[_0x39e1b1];return _0x564f53;},a0_0x39e1(_0x38e40b,_0x31f0a6);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x2a9d36=>class extends MetaButtonMixin(_0x2a9d36){static get[a0_0x464999(0xa7)](){const _0x4117c1=a0_0x464999;return MetaApi[_0x4117c1(0xc8)]();}static get['properties'](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x464999(0xae)](){const _0x384c8c=a0_0x464999;return MetaUiUtil[_0x384c8c(0xc3)](this);}async[a0_0x464999(0xba)](){const _0x44fe1b=a0_0x464999;this['currentTabKey']=void 0x0,await this[_0x44fe1b(0xb5)](),this[_0x44fe1b(0xa6)]&&(this[_0x44fe1b(0xc0)]=this[_0x44fe1b(0xa6)]),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x464999(0xb2)](){const _0xc1be9a=a0_0x464999;super[_0xc1be9a(0xb2)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0xa30ad0=a0_0x464999;super[_0xa30ad0(0xb9)]&&await super[_0xa30ad0(0xb9)]();}['render'](){const _0xb925f6=a0_0x464999;return MetaApi[_0xb925f6(0xa2)](this);}['parseBasicTabConfigs'](_0x2ac6a7){const _0x114f56=a0_0x464999;if(!0x0===this['includeMainList']){let _0x516a7c=this[_0x114f56(0xb8)][_0x114f56(0xc7)],_0x3b2379=JSON[_0x114f56(0xb3)](_0x516a7c||'{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22,\x20\x22index\x22:0\x20}');_0x3b2379[_0x114f56(0xbe)]>_0x2ac6a7['tab'][_0x114f56(0xbf)]&&(_0x3b2379[_0x114f56(0xbe)]=_0x2ac6a7[_0x114f56(0xaa)][_0x114f56(0xbf)]),_0x2ac6a7['tab'][_0x114f56(0xab)](_0x3b2379[_0x114f56(0xbe)],0x0,{'name':_0x3b2379[_0x114f56(0xc2)],'display':_0x3b2379[_0x114f56(0xa3)],'tagname':_0x114f56(0xb4),'location':'@things-factory/meta-ui/client/pages/meta-grist-element','parent_field':'id','param_field':'param_field','menu':this[_0x114f56(0xac)],'icon':_0x3b2379[_0x114f56(0xb7)],'filter_from':!0x1,'main_filter_form':this[_0x114f56(0xa5)]});}this[_0x114f56(0xa1)]=_0x2ac6a7[_0x114f56(0xaa)],_0x2ac6a7[_0x114f56(0xbb)]=[];}async[a0_0x464999(0xa0)](){const _0xb61059=a0_0x464999;if(this[_0xb61059(0xa4)]){let _0x5021b3=Object[_0xb61059(0xc9)](this[_0xb61059(0xa4)]);for(var _0x314dec=0x0;_0x314dec<_0x5021b3['length'];_0x314dec++)await this[_0xb61059(0xa4)][_0x5021b3[_0x314dec]][_0xb61059(0xa0)]();}}[a0_0x464999(0xc1)](){const _0x4420ee=a0_0x464999;let _0x2436f3={};return this[_0x4420ee(0xa4)]&&Object['keys'](this['tabElements'])['forEach'](_0x1d1e97=>{const _0x2afbaa=_0x4420ee;_0x2436f3[_0x1d1e97]=this[_0x2afbaa(0xa4)][_0x1d1e97][_0x2afbaa(0xc1)]();}),_0x2436f3;}['getMainGrist'](){const _0x24fbeb=a0_0x464999;if(this['tabElements']){let _0x3570b5=Object[_0x24fbeb(0xc9)](this[_0x24fbeb(0xa4)]);return this['tabElements'][_0x3570b5[0x0]][_0x24fbeb(0xbc)];}}};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x508bdb=a0_0x38b1;(function(_0x30e310,_0x447362){const _0x29dcf4=a0_0x38b1,_0x52f193=_0x30e310();while(!![]){try{const _0x24522f=-parseInt(_0x29dcf4(0x155))/0x1*(parseInt(_0x29dcf4(0x17c))/0x2)+-parseInt(_0x29dcf4(0x16d))/0x3*(parseInt(_0x29dcf4(0x169))/0x4)+-parseInt(_0x29dcf4(0x184))/0x5*(-parseInt(_0x29dcf4(0x151))/0x6)+parseInt(_0x29dcf4(0x146))/0x7+parseInt(_0x29dcf4(0x15d))/0x8*(parseInt(_0x29dcf4(0x190))/0x9)+-parseInt(_0x29dcf4(0x167))/0xa*(parseInt(_0x29dcf4(0x196))/0xb)+parseInt(_0x29dcf4(0x15b))/0xc;if(_0x24522f===_0x447362)break;else _0x52f193['push'](_0x52f193['shift']());}catch(_0x3d2d02){_0x52f193['push'](_0x52f193['shift']());}}}(a0_0x4f44,0x84d5f));import a0_0x5c4e13 from'graphql-tag';import{html}from'lit';import{CommonButtonStyles}from'@operato/styles';import{client}from'@operato/graphql';function a0_0x4f44(){const _0x3cdbad=['tLabel','activity-state-draft','draft','center','isMobileEnv','1108668BVZVFh','styles','57352syjrAJ','searchByPagination','menus','activity-state-deprecated','filter','errors','meta-activity-list-page','single','getGristSelectableConfig','model','32750ClNDtc','grist','292EACBBS','parse','activityType','resource-object','2076iCqvIO','fetch','install_activity_success','meta-activity-viewer-element','startingType','GRID','updatedAt','fetchHandler','meta-activity-writer-element','updater','name','getGristColumnConfig2','columns','tButton','description','650dTbeCr','getGristSelectorColumnConfig','routing','relation-menu','getBasicGristStyles','isNotEmpty','LIST','delete','10865NVfKqa','activity-state-released','system_update','deleteListByGristSelected','updateMultiple','custom-element','grid_view_options','define','CARD','menuType','pageInitialized','gridMode','1251IOOGXg','multiple','datetime','MENU_PAGE_TYPE','left','status','1793IVUyTB','connectedCallback','deprecated','like','task','customElements','deploy','gridConfig','SCREEN','showToast','updated_at','length','deleteMetaActivities','getSelectColumns','save','metaActivities','3901492MZbYCT','string','forEach','HIDDEN-PAGE','showGraphqlErrorResponse','menu','bind','post','meta_activity_list','\x0a\x20\x20\x20\x20\x20\x20model\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','records','750Shcgeh','querySelector','search','getGristGuttersConfig','2429byTnQb'];a0_0x4f44=function(){return _0x3cdbad;};return a0_0x4f44();}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{MetaApi}from'./../../utils/meta-api';import{MetaUiUtil}from'./../../utils/meta-ui-util';import{ValueUtil}from'./../../utils/value-util';import{TermsUtil}from'./../../utils/terms-util';import{ServiceUtil}from'../../utils/service-util';function a0_0x38b1(_0x3e9859,_0x40f1fc){const _0x4f4493=a0_0x4f44();return a0_0x38b1=function(_0x38b18a,_0x6b71f5){_0x38b18a=_0x38b18a-0x13a;let _0x36179=_0x4f4493[_0x38b18a];return _0x36179;},a0_0x38b1(_0x3e9859,_0x40f1fc);}import{UiUtil}from'../../utils/ui-util';class MetaActivityListPage extends localize(i18next)(PageView){static get[a0_0x508bdb(0x15c)](){const _0x11fa75=a0_0x508bdb;return MetaApi[_0x11fa75(0x180)]();}get['context'](){const _0x19a61c=a0_0x508bdb;return{'title':TermsUtil['tTitle'](_0x19a61c(0x14e)),'actions':[{'title':TermsUtil[_0x19a61c(0x17a)](_0x19a61c(0x144)),'action':this['save']['bind'](this),...CommonButtonStyles[_0x19a61c(0x144)]},{'title':TermsUtil['tButton'](_0x19a61c(0x183)),'action':this[_0x19a61c(0x183)][_0x19a61c(0x14c)](this),...CommonButtonStyles[_0x19a61c(0x183)]},{'title':TermsUtil[_0x19a61c(0x17a)]('install_activity'),'action':this[_0x19a61c(0x13c)][_0x19a61c(0x14c)](this),'icon':_0x19a61c(0x186),'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}]};}get[a0_0x508bdb(0x168)](){const _0x3a474d=a0_0x508bdb;return this['shadowRoot'][_0x3a474d(0x152)]('ox-grist');}async[a0_0x508bdb(0x197)](){const _0xaafe8f=a0_0x508bdb,_0x288213=[{'display':'','value':''},{'display':TermsUtil['tLabel'](_0xaafe8f(0x157)),'value':_0xaafe8f(0x158)},{'display':TermsUtil['tLabel'](_0xaafe8f(0x185)),'value':'released'},{'display':TermsUtil[_0xaafe8f(0x156)](_0xaafe8f(0x160)),'value':_0xaafe8f(0x198)}];this[_0xaafe8f(0x18a)]=['LIST',_0xaafe8f(0x172),_0xaafe8f(0x18c)],this[_0xaafe8f(0x18f)]=MetaApi[_0xaafe8f(0x15a)]()?_0xaafe8f(0x182):_0xaafe8f(0x172),this['gridConfig']={'option':{'view_mode':this[_0xaafe8f(0x18a)]},'rows':MetaApi[_0xaafe8f(0x165)](!0x0),'pagination':MetaApi['getGristPagination50Config'](),'sorters':[{'name':_0xaafe8f(0x177),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0xaafe8f(0x154)](!0x0,!0x1),{'type':'string','name':'id','sortable':!0x1,'hidden':!0x0},MetaUiUtil[_0xaafe8f(0x178)](_0xaafe8f(0x147),_0xaafe8f(0x177),'name',_0xaafe8f(0x194),!0x0,!0x0,0xc8),MetaUiUtil['getGristColumnConfig2'](_0xaafe8f(0x147),_0xaafe8f(0x17b),_0xaafe8f(0x17b),'left',!0x0,!0x0,0x12c),MetaUiUtil[_0xaafe8f(0x17d)]('state',_0xaafe8f(0x195),_0xaafe8f(0x159),!0x0,0x64,!0x1,_0x288213),{'type':_0xaafe8f(0x16c),'name':_0xaafe8f(0x14b),'header':TermsUtil[_0xaafe8f(0x156)](_0xaafe8f(0x14b)),'record':{'editable':!0x0,'options':{'queryName':_0xaafe8f(0x15f),'basicArgs':{'filters':[{'name':_0xaafe8f(0x18d),'operator':'in','value':[_0xaafe8f(0x13e),'POPUP',_0xaafe8f(0x149)]},{'name':_0xaafe8f(0x17e),'operator':'is_not_null','value':''},{'name':'template','operator':'is_not_null','value':''}]},'columns':[{'name':'id','hidden':!0x0},{'name':'name','header':TermsUtil[_0xaafe8f(0x156)](_0xaafe8f(0x177)),'width':0xfa,'filter':_0xaafe8f(0x153)},await MetaApi['getGristCodeSelectorColumnConfig'](_0xaafe8f(0x18d),'menu_type',_0xaafe8f(0x194),!0x1,0x6e,!0x1,_0xaafe8f(0x193)),MetaUiUtil[_0xaafe8f(0x178)](_0xaafe8f(0x147),_0xaafe8f(0x17e),_0xaafe8f(0x17e),_0xaafe8f(0x194),!0x1,!0x1,0xfa)],'list':{'fields':[_0xaafe8f(0x177),'routing']},'nameField':_0xaafe8f(0x17e)}},'width':0xeb},MetaUiUtil[_0xaafe8f(0x178)]('object',_0xaafe8f(0x176),_0xaafe8f(0x176),_0xaafe8f(0x159),!0x1,!0x1,0x78),MetaUiUtil[_0xaafe8f(0x178)](_0xaafe8f(0x192),_0xaafe8f(0x173),_0xaafe8f(0x140),_0xaafe8f(0x159),!0x1,!0x0,0xb4),{'name':_0xaafe8f(0x16b),'hidden':!0x0},{'name':_0xaafe8f(0x191),'hidden':!0x0},{'name':_0xaafe8f(0x171),'hidden':!0x0}],'sorters':[{'name':_0xaafe8f(0x177),'desc':!0x1}]};let _0x820f05={'name':_0xaafe8f(0x199)};this[_0xaafe8f(0x13d)]['columns'][_0xaafe8f(0x161)](_0x2583ca=>_0x820f05[_0x2583ca[_0xaafe8f(0x177)]])[_0xaafe8f(0x148)](_0x3b3f17=>{const _0x2471e5=_0xaafe8f;_0x3b3f17['filter']=_0x820f05[_0x3b3f17[_0x2471e5(0x177)]];}),this['connectedCallback']&&await super[_0xaafe8f(0x197)]();}async['fetchHandler']({page:_0x2b2d07,limit:_0x1ff9f9,sorters:_0x282f8f=[],filters:_0x5a4a76=[]}){const _0x285374=a0_0x508bdb;_0x5a4a76['push']({'name':'model','operator':'like','value':'\x22relation-menu\x22'});let _0x1deee1=MetaApi[_0x285374(0x143)](this[_0x285374(0x13d)][_0x285374(0x179)]['filter'](_0x385c7b=>_0x285374(0x14b)!=_0x385c7b[_0x285374(0x177)]));_0x1deee1+=_0x285374(0x14f);let _0x2c68ac=await MetaApi[_0x285374(0x15e)](_0x285374(0x145),_0x5a4a76,_0x282f8f,_0x2b2d07,_0x1ff9f9,_0x1deee1);return _0x2c68ac[_0x285374(0x150)][_0x285374(0x148)](_0x326b1c=>{const _0x543cf5=_0x285374;let _0x771aa6=_0x326b1c[_0x543cf5(0x166)][_0x543cf5(0x161)](_0x53f747=>_0x543cf5(0x17f)==_0x53f747[_0x543cf5(0x177)]);_0x771aa6&&_0x771aa6[_0x543cf5(0x141)]>0x0&&(_0x326b1c['menu']=JSON[_0x543cf5(0x16a)](_0x771aa6[0x0][_0x543cf5(0x17b)])),delete _0x326b1c[_0x543cf5(0x166)];}),_0x2c68ac;}async[a0_0x508bdb(0x13c)](){const _0x47b77c=a0_0x508bdb;try{var _0x2b7435=await client['query']({'query':a0_0x5c4e13`
|
|
2
2
|
mutation {
|
|
3
3
|
installActivityTemplate
|
|
4
4
|
}
|
|
5
|
-
`});if(!
|
|
5
|
+
`});if(!_0x2b7435[_0x47b77c(0x162)])return UiUtil[_0x47b77c(0x13f)]('info',TermsUtil['tText'](_0x47b77c(0x16f))),!0x0;ServiceUtil[_0x47b77c(0x14a)](_0x2b7435);}catch(_0x345d81){ServiceUtil['showGraphqlException'](_0x345d81);}}async['save'](){const _0x2e5a7c=a0_0x508bdb;let _0x2f4ec5=ServiceUtil['patchesForUpdateMultiple'](this[_0x2e5a7c(0x168)]);if(ValueUtil[_0x2e5a7c(0x181)](_0x2f4ec5)){_0x2f4ec5[_0x2e5a7c(0x148)](_0xe381b5=>{const _0xe68eb5=_0x2e5a7c;Object['assign'](_0xe381b5,{'uiSource':_0xe68eb5(0x175),'uiType':'custom-element','viewSource':_0xe68eb5(0x170),'viewType':_0xe68eb5(0x189)}),_0xe381b5[_0xe68eb5(0x191)]||(_0xe381b5[_0xe68eb5(0x191)]=_0xe68eb5(0x164)),_0xe381b5[_0xe68eb5(0x16b)]||(_0xe381b5['activityType']=_0xe68eb5(0x13a)),_0xe381b5[_0xe68eb5(0x171)]||(_0xe381b5[_0xe68eb5(0x171)]=_0xe68eb5(0x14d));});let _0x4fa209=await ServiceUtil[_0x2e5a7c(0x188)]('updateMultipleMetaActivity',_0x2f4ec5);if(_0x4fa209)return this[_0x2e5a7c(0x168)][_0x2e5a7c(0x16e)](),_0x4fa209;}}async['delete'](){const _0x2a669d=a0_0x508bdb;await MetaApi[_0x2a669d(0x187)](this['grist'],_0x2a669d(0x142));}async[a0_0x508bdb(0x18e)](){}['render'](){const _0x3b2cf5=a0_0x508bdb;return html`
|
|
6
6
|
<ox-grist
|
|
7
7
|
auto-fetch
|
|
8
8
|
id="ox-grist"
|
|
9
|
-
.config=${this[
|
|
10
|
-
.mode=${this[
|
|
11
|
-
.fetchHandler=${this[
|
|
9
|
+
.config=${this[_0x3b2cf5(0x13d)]}
|
|
10
|
+
.mode=${this[_0x3b2cf5(0x18f)]}
|
|
11
|
+
.fetchHandler=${this[_0x3b2cf5(0x174)][_0x3b2cf5(0x14c)](this)}>
|
|
12
12
|
<div slot="headroom">
|
|
13
13
|
<div id="filters">
|
|
14
14
|
<ox-filters-form ></ox-filters-form>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
</ox-grist>
|
|
18
|
-
`;}}
|
|
18
|
+
`;}}window[a0_0x508bdb(0x13b)][a0_0x508bdb(0x18b)](a0_0x508bdb(0x163),MetaActivityListPage);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements[
|
|
1
|
+
const a0_0x27cee3=a0_0x3969;(function(_0x17b58d,_0xdbec1f){const _0x363e25=a0_0x3969,_0x1cbc38=_0x17b58d();while(!![]){try{const _0x442926=-parseInt(_0x363e25(0x72))/0x1*(-parseInt(_0x363e25(0x80))/0x2)+parseInt(_0x363e25(0x7e))/0x3+-parseInt(_0x363e25(0x70))/0x4+-parseInt(_0x363e25(0x7b))/0x5+-parseInt(_0x363e25(0x77))/0x6+-parseInt(_0x363e25(0x73))/0x7*(-parseInt(_0x363e25(0x81))/0x8)+parseInt(_0x363e25(0x7d))/0x9;if(_0x442926===_0xdbec1f)break;else _0x1cbc38['push'](_0x1cbc38['shift']());}catch(_0x4a1ab7){_0x1cbc38['push'](_0x1cbc38['shift']());}}}(a0_0x38e1,0xd76f8));import a0_0x1d1ae1 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';function a0_0x38e1(){const _0x238c89=['1138734wRxNPN','tagName','output','meta-activity-viewer-element','5044215YfTCVV','render','4815045ZMUdJT','897297aCeAQA','relationMenu','64bvNDQj','24WUuiDg','1737220FZYvvU','customData','37803BMNyXc','1100309XvFKep','contentElement','\x27\x20route_name=\x27','name'];a0_0x38e1=function(){return _0x238c89;};return a0_0x38e1();}function a0_0x3969(_0x42ff8f,_0x4891ff){const _0x38e1d7=a0_0x38e1();return a0_0x3969=function(_0x39692b,_0x33e43b){_0x39692b=_0x39692b-0x70;let _0x27a98d=_0x38e1d7[_0x39692b];return _0x27a98d;},a0_0x3969(_0x42ff8f,_0x4891ff);}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_0x27cee3(0x7c)](){const _0x528ea7=a0_0x27cee3;if(this[_0x528ea7(0x7f)]&&!this[_0x528ea7(0x74)]){let _0x3d9649=this[_0x528ea7(0x7f)][_0x528ea7(0x78)],_0x3c8ef7=this['relationMenu']['routing'],_0x2ad66a='<'+_0x3d9649+'\x20id=\x27'+this[_0x528ea7(0x7f)][_0x528ea7(0x76)]+_0x528ea7(0x75)+_0x3c8ef7+'\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_readonly=true\x20is_detail=true></'+_0x3d9649+'>';this[_0x528ea7(0x74)]=UiUtil['htmlToElement'](_0x2ad66a),this[_0x528ea7(0x74)]['activityDataSet']=ValueUtil['isEmpty'](this['output'])?void 0x0:this[_0x528ea7(0x79)][_0x528ea7(0x71)];}return html`
|
|
2
|
+
${this[_0x528ea7(0x74)]}
|
|
3
|
+
`;}}customElements['define'](a0_0x27cee3(0x7a),MetaActivityViewerElement);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements[
|
|
1
|
+
const a0_0x1414e3=a0_0x2e2f;(function(_0x473a91,_0x4d8e11){const _0x45ba02=a0_0x2e2f,_0x56e9cd=_0x473a91();while(!![]){try{const _0x48f891=parseInt(_0x45ba02(0x138))/0x1+parseInt(_0x45ba02(0x13e))/0x2+parseInt(_0x45ba02(0x135))/0x3+parseInt(_0x45ba02(0x12f))/0x4+parseInt(_0x45ba02(0x148))/0x5+-parseInt(_0x45ba02(0x141))/0x6+parseInt(_0x45ba02(0x137))/0x7*(-parseInt(_0x45ba02(0x130))/0x8);if(_0x48f891===_0x4d8e11)break;else _0x56e9cd['push'](_0x56e9cd['shift']());}catch(_0x3961a9){_0x56e9cd['push'](_0x56e9cd['shift']());}}}(a0_0x31b5,0xb38f7));import{html,LitElement}from'lit';import{i18next,localize}from'@operato/i18n';import{UiUtil}from'./../../utils/ui-util';import{ValueUtil}from'./../../utils/value-util';function a0_0x2e2f(_0x455201,_0x14d86e){const _0x31b596=a0_0x31b5();return a0_0x2e2f=function(_0x2e2ff5,_0x16d000){_0x2e2ff5=_0x2e2ff5-0x12e;let _0x73822b=_0x31b596[_0x2e2ff5];return _0x73822b;},a0_0x2e2f(_0x455201,_0x14d86e);}import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityWriterElement extends MetaActivityMixin(localize(i18next)(LitElement)){async[a0_0x1414e3(0x12e)](){const _0x10f3d3=a0_0x1414e3;await super[_0x10f3d3(0x12e)](),this[_0x10f3d3(0x140)]('data-changed',this['_onDataChanged']);}[a0_0x1414e3(0x147)](){const _0x5dfd86=a0_0x1414e3;this[_0x5dfd86(0x145)]('data-changed',this['_onDataChanged']);}[a0_0x1414e3(0x134)](_0x281d25){const _0x1b25b0=a0_0x1414e3;let _0x4d787b=this[_0x1b25b0(0x149)]['getData']();this[_0x1b25b0(0x146)](new CustomEvent(_0x1b25b0(0x13b),{'detail':{'customData':_0x4d787b}}));}[a0_0x1414e3(0x13c)](){const _0x2716e6=a0_0x1414e3;if(this[_0x2716e6(0x14b)]&&!this[_0x2716e6(0x149)]){let _0x2a9782=this[_0x2716e6(0x14b)][_0x2716e6(0x132)],_0x1b9cde=this[_0x2716e6(0x14b)][_0x2716e6(0x13d)],_0x3bba0d='<'+_0x2a9782+_0x2716e6(0x144)+this[_0x2716e6(0x14b)][_0x2716e6(0x131)]+_0x2716e6(0x139)+_0x1b9cde+_0x2716e6(0x13a)+_0x2a9782+'>';this[_0x2716e6(0x149)]=UiUtil['htmlToElement'](_0x3bba0d),this[_0x2716e6(0x149)][_0x2716e6(0x133)]=ValueUtil[_0x2716e6(0x143)](this['output'])?void 0x0:this[_0x2716e6(0x136)][_0x2716e6(0x13f)];}return html`
|
|
2
|
+
${this[_0x2716e6(0x149)]}
|
|
3
|
+
`;}}customElements[a0_0x1414e3(0x142)](a0_0x1414e3(0x14a),MetaActivityWriterElement);function a0_0x31b5(){const _0x4bee35=['define','isEmpty','\x20id=\x27','removeEventListener','dispatchEvent','disconnectedCallback','1620745ypPhkC','contentElement','meta-activity-writer-element','relationMenu','connectedCallback','573240rfpGUk','88wFzzms','name','tagName','activityDataSet','_onDataChanged','2865624WaMlpv','output','445599uoJifi','505235jxZnnv','\x27\x20route_name=\x27','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></','change','render','routing','1777956nQWjje','customData','addEventListener','8287044fDmSFq'];a0_0x31b5=function(){return _0x4bee35;};return a0_0x31b5();}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5483b4=a0_0x25cb;(function(_0x218f78,_0xcb5a90){const _0xcbfc0a=a0_0x25cb,_0x2be775=_0x218f78();while(!![]){try{const _0x4cb0ac=parseInt(_0xcbfc0a(0x175))/0x1*(parseInt(_0xcbfc0a(0x193))/0x2)+-parseInt(_0xcbfc0a(0x176))/0x3+-parseInt(_0xcbfc0a(0x186))/0x4+-parseInt(_0xcbfc0a(0x17c))/0x5+-parseInt(_0xcbfc0a(0x18b))/0x6+-parseInt(_0xcbfc0a(0x194))/0x7+-parseInt(_0xcbfc0a(0x189))/0x8*(-parseInt(_0xcbfc0a(0x16f))/0x9);if(_0x4cb0ac===_0xcb5a90)break;else _0x2be775['push'](_0x2be775['shift']());}catch(_0x315738){_0x2be775['push'](_0x2be775['shift']());}}}(a0_0x5bb8,0xde658));function a0_0x25cb(_0x2b4266,_0x2fd2eb){const _0x5bb8d8=a0_0x5bb8();return a0_0x25cb=function(_0x25cbaf,_0x3d4c2e){_0x25cbaf=_0x25cbaf-0x16d;let _0x2cabff=_0x5bb8d8[_0x25cbaf];return _0x2cabff;},a0_0x25cb(_0x2b4266,_0x2fd2eb);}import a0_0x4f5686 from'graphql-tag';import{css}from'lit';import{client}from'@operato/graphql';import{ServiceUtil}from'./../../utils/service-util';import{MetaApi}from'./../../utils/meta-api';function a0_0x5bb8(){const _0x301ef4=['replace','3709344dtsVlH','getActivity','-page','info','assign','length','endsWith','data','10uQAFOs','11868696QIssES','query','activity','styles','activityId','9UcIkYS','records','showToast','description','-element','getMenuInfo','189323yuHXcE','1634781avmmzv','tMenu','connectedCallback','forEach','value_is_not_exist','searchByPagination','8264445qcWSwx','tText','name','properties','routing','relationMenu','id,category,resourceUrl','menus','resourceUrl','model','5368052XYEEvH','category','relation-menu','46543216nZPuHu'];a0_0x5bb8=function(){return _0x301ef4;};return a0_0x5bb8();}export const MetaActivityMixin=_0x355fde=>class extends _0x355fde{static get[a0_0x5483b4(0x17f)](){return{'activityId':String,'input':Object,'output':Object};}static get[a0_0x5483b4(0x16d)](){return css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
overflow-x: auto;
|
|
6
6
|
background-color: var(--main-section-background-color);
|
|
7
7
|
}
|
|
8
|
-
`;}async[
|
|
8
|
+
`;}async[a0_0x5483b4(0x178)](){const _0x41e349=a0_0x5483b4;await this[_0x41e349(0x18c)](),await super[_0x41e349(0x178)]();}async[a0_0x5483b4(0x18c)](){const _0x4fef90=a0_0x5483b4,_0x31689f=await client[_0x4fef90(0x195)]({'query':a0_0x4f5686`
|
|
9
9
|
query activity($id: String!) {
|
|
10
10
|
activity(id: $id) {
|
|
11
11
|
id
|
|
@@ -15,4 +15,4 @@ const a0_0x461c26=a0_0x3cc0;(function(_0x1e694f,_0xa030e4){const _0x29193f=a0_0x
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`,'variables':{'id':this[
|
|
18
|
+
`,'variables':{'id':this[_0x4fef90(0x16e)]}});let _0x410919;this[_0x4fef90(0x196)]=_0x31689f[_0x4fef90(0x192)][_0x4fef90(0x196)],this['activity'][_0x4fef90(0x185)]?.[_0x4fef90(0x179)](_0x17b84c=>{const _0xcda6ff=_0x4fef90;_0xcda6ff(0x188)==_0x17b84c[_0xcda6ff(0x17e)]&&(_0x410919=JSON['parse'](_0x17b84c[_0xcda6ff(0x172)]));}),this['relationMenu']=_0x410919,await this[_0x4fef90(0x174)](this[_0x4fef90(0x181)]['id'],this[_0x4fef90(0x181)][_0x4fef90(0x180)]);}async['getMenuInfo'](_0x496cd7,_0x2c5e7e){const _0xd48451=a0_0x5483b4;let _0x530a16=[{'name':'id','operator':'eq','value':_0x496cd7}],_0x4a2fe0=await ServiceUtil[_0xd48451(0x17b)](_0xd48451(0x183),_0x530a16,null,0x0,0x0,_0xd48451(0x182));if(!_0x4a2fe0&&0x0==_0x4a2fe0[_0xd48451(0x190)]){let _0x52acf9=TermsUtil[_0xd48451(0x17d)](_0xd48451(0x17a),{'value':TermsUtil[_0xd48451(0x177)]('menu')+'\x20'+_0x2c5e7e});throw MetaApi[_0xd48451(0x171)](_0xd48451(0x18e),_0x52acf9),new Error(_0x52acf9);}let _0x5b8388=_0x4a2fe0[_0xd48451(0x170)][0x0];_0x5b8388['tagName']=_0x5b8388[_0xd48451(0x187)][_0xd48451(0x191)](_0xd48451(0x18d))?_0x5b8388[_0xd48451(0x187)][_0xd48451(0x18a)](_0xd48451(0x18d),_0xd48451(0x173)):_0x5b8388[_0xd48451(0x187)],_0x5b8388['resourceUrl']=_0x5b8388[_0xd48451(0x184)][_0xd48451(0x18a)](_0x5b8388['category'],_0x5b8388['tagName']),Object[_0xd48451(0x18f)](this[_0xd48451(0x181)],_0x5b8388);}};
|