@things-factory/meta-ui 6.1.39 → 6.1.41
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 +7 -7
- 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 +2 -2
- 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/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 +3 -3
- 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 -0
- package/server/service/dynamic-menu/dynamic-menu-type.js +1 -0
- package/server/service/dynamic-menu/index.js +6 -0
- 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/index.js +2 -0
- 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
- package/translations/en.json +3 -1
- package/translations/ko.json +3 -1
- package/translations/ms.json +3 -1
- package/translations/zh.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4e3465=a0_0x272d;(function(_0x5b2240,_0x39462d){const _0x49d0a4=a0_0x272d,_0x533466=_0x5b2240();while(!![]){try{const _0x560c80=-parseInt(_0x49d0a4(0x1c1))/0x1+-parseInt(_0x49d0a4(0x1a9))/0x2*(parseInt(_0x49d0a4(0x1a2))/0x3)+parseInt(_0x49d0a4(0x19c))/0x4*(parseInt(_0x49d0a4(0x1ac))/0x5)+parseInt(_0x49d0a4(0x1b3))/0x6+-parseInt(_0x49d0a4(0x1be))/0x7+-parseInt(_0x49d0a4(0x1b2))/0x8+parseInt(_0x49d0a4(0x1cd))/0x9;if(_0x560c80===_0x39462d)break;else _0x533466['push'](_0x533466['shift']());}catch(_0x22e657){_0x533466['push'](_0x533466['shift']());}}}(a0_0x43e2,0xef3c8));import{adjustFilters}from'@operato/utils';function a0_0x43e2(){const _0x4bace8=['query','filterForm','dataSet','data','push','runScenario','6019587sVFZZJ','delete','forEach','397852URCzCk','getQueryFilters','pass','multiple','isElement','value','columns','beforeFetch','getSelectColumns','getParams','isEmpty','length','20168586VhcOiw','formConfigSet','after_set_fields','callScenario','includes','keys','infinityPage','isPage','gql','list_func','parent_id','replace','mutation','findOne','filter','2421692GXUCtS','updateMultiple','params','func','properties','parseBasicServiceConfigs','93feRrWQ','isArray','map','gqlInfo','is_activity','result','deleteListByIds','70732YxkQbB','records','searchByPagination','5iPeYfV','isNotEmpty','fetchHandler','lifecycle','mainFilterForm','getPageNavigateParams','3783136ZCTxdn','5763396FfvGFo','afterFetch','filters','split','name'];a0_0x43e2=function(){return _0x4bace8;};return a0_0x43e2();}import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x272d(_0x51e27a,_0x5de7e5){const _0x43e25b=a0_0x43e2();return a0_0x272d=function(_0x272df6,_0x511ca7){_0x272df6=_0x272df6-0x196;let _0x575eb4=_0x43e25b[_0x272df6];return _0x575eb4;},a0_0x272d(_0x51e27a,_0x5de7e5);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x2a1a0d=>class extends MetaBaseMixin(_0x2a1a0d){static get[a0_0x4e3465(0x1a0)](){return{'gqlInfo':Object};}[a0_0x4e3465(0x1a1)](_0x111f34){const _0x4f3093=a0_0x4e3465;this[_0x4f3093(0x1a5)]=_0x111f34[_0x4f3093(0x1d5)];}async[a0_0x4e3465(0x1ae)]({page:_0x9855e4=0x0,limit:_0xfafe4b=0x0,sortings:_0x5dfc18=[],filters:_0x301033=[]}){const _0x195844=a0_0x4e3465;if(this['is_activity'])return{'total':0x0,'records':this[_0x195844(0x1ba)]||[]};if(!0x0===this[_0x195844(0x1d3)]&&(_0x9855e4=0x0,_0xfafe4b=0x0),this[_0x195844(0x1c8)]&&0x0==await this['beforeFetch']({'page':_0x9855e4,'limit':_0xfafe4b,'sortings':_0x5dfc18,'filters':_0x301033}))return;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0x4f41c1=ValueUtil[_0x195844(0x1cb)](_0x301033)?this[_0x195844(0x1b0)]?await this[_0x195844(0x1b0)][_0x195844(0x1c2)]()||[]:await this[_0x195844(0x1b9)]?.[_0x195844(0x1c2)]()||[]:_0x301033,_0x3f5afb=ValueUtil[_0x195844(0x1ca)](this[_0x195844(0x1a5)],_0x195844(0x1b8),_0x195844(0x196)),_0x33418c=ValueUtil[_0x195844(0x1ca)](this['gqlInfo'],_0x195844(0x1b8),_0x195844(0x1b5)),_0xec6b95=ValueUtil[_0x195844(0x1ca)](this['gqlInfo'],_0x195844(0x1b8),_0x195844(0x1cf));if(ValueUtil[_0x195844(0x1ad)](_0x33418c)&&(_0x4f41c1=adjustFilters(_0x4f41c1,_0x33418c)),_0x4f41c1[_0x195844(0x1bc)](...this[_0x195844(0x1b1)]()),this[_0x195844(0x1c5)]&&!this[_0x195844(0x1b0)]){let _0x25bfad=ValueUtil['getParams'](this[_0x195844(0x1a5)],_0x195844(0x1b8),'parent_id');if(!ValueUtil[_0x195844(0x1ad)](_0x25bfad)||!ValueUtil[_0x195844(0x1ad)](this[_0x195844(0x197)]))return{'total':0x0,'records':[]};_0x4f41c1=adjustFilters(_0x4f41c1,[{'name':_0x25bfad,'operator':'eq','value':this[_0x195844(0x197)]}]);}let _0x260599=Object['keys'](_0xec6b95||{}),_0x5e7a74=MetaApi[_0x195844(0x1c9)](this['gristConfigSet'][_0x195844(0x1c7)][_0x195844(0x19b)](_0x31c86a=>!_0x260599[_0x195844(0x1d1)](_0x31c86a[_0x195844(0x1b7)]))),_0x4f0d3a={};if(_0x3f5afb[_0x195844(0x1d1)]('$')){let _0x42b12a=_0x3f5afb[_0x195844(0x198)]('$','');_0x4f0d3a=(await MetaApi[_0x195844(0x1d0)](void 0x0,_0x42b12a,{'filters':_0x4f41c1,'pagination':{'page':_0x9855e4,'limit':_0xfafe4b},'sortings':_0x5dfc18},!0x1))[_0x195844(0x1bb)][_0x195844(0x1bd)][_0x195844(0x1bb)][_0x195844(0x1a7)];}else _0x4f0d3a=await MetaApi[_0x195844(0x1ab)](_0x3f5afb,_0x4f41c1,_0x5dfc18,_0x9855e4,_0xfafe4b,_0x5e7a74);if(this[_0x195844(0x1b4)]){let _0x4f157b=await this[_0x195844(0x1b4)]({'page':_0x9855e4,'limit':_0xfafe4b,'sortings':_0x5dfc18,'filters':_0x301033},_0x4f0d3a);if(_0x4f157b)return _0x4f157b;}return ValueUtil['isNotEmpty'](_0xec6b95)&&ValueUtil[_0x195844(0x1ad)](_0x4f0d3a)&&ValueUtil[_0x195844(0x1ad)](_0x4f0d3a['records'])&&_0x4f0d3a[_0x195844(0x1aa)][_0x195844(0x1a4)](_0x5e8f4d=>(_0x260599[_0x195844(0x1c0)](_0x2d9a71=>{const _0xb31d83=_0x195844;_0x5e8f4d[_0x2d9a71]=ValueUtil[_0xb31d83(0x1ca)](_0x5e8f4d,..._0xec6b95[_0x2d9a71][_0xb31d83(0x1b6)]('.'));}),_0x5e8f4d)),_0x4f0d3a;}[a0_0x4e3465(0x1b1)](){const _0x8593be=a0_0x4e3465;if(0x0==this[_0x8593be(0x1d4)])return[];let _0x27c0a3=this['lifecycle']?.[_0x8593be(0x19e)]?this[_0x8593be(0x1af)]['params']:{};if(!_0x27c0a3[_0x8593be(0x1c3)])return[];let _0x3f21b2=_0x27c0a3[_0x8593be(0x1c3)],_0x9ea7f5=JSON['parse'](_0x3f21b2),_0xf41b50=0x1==_0x9ea7f5['length']?'eq':'in',_0x48c508={},_0x483b4d=[];return Object['keys'](_0x9ea7f5[0x0])['forEach'](_0x465932=>{_0x48c508[_0x465932]={'name':_0x465932,'operator':_0xf41b50,'value':'eq'===_0xf41b50?_0x9ea7f5[0x0][_0x465932]:[]};}),_0x9ea7f5[_0x8593be(0x1cc)]>0x1&&_0x9ea7f5[_0x8593be(0x1c0)](_0x1da247=>{const _0xccc8a3=_0x8593be;Object[_0xccc8a3(0x1d2)](_0x1da247)[_0xccc8a3(0x1c0)](_0x1e2ef3=>{const _0x508e76=_0xccc8a3;_0x48c508[_0x1e2ef3][_0x508e76(0x1c6)][_0x508e76(0x1bc)](_0x1da247[_0x1e2ef3]);});}),Object[_0x8593be(0x1d2)](_0x48c508)[_0x8593be(0x1c0)](_0x4ee3a3=>{const _0x4399de=_0x8593be;_0x483b4d[_0x4399de(0x1bc)](_0x48c508[_0x4ee3a3]);}),_0x483b4d;}async[a0_0x4e3465(0x19a)](_0x3718bb){const _0x37caff=a0_0x4e3465;if(this[_0x37caff(0x1a6)])return this[_0x37caff(0x1ba)]||{};let _0x27d997=ValueUtil[_0x37caff(0x1ca)](this[_0x37caff(0x1a5)],_0x37caff(0x1b8),'find_one_func'),_0x4c2246=ValueUtil[_0x37caff(0x1ca)](this['gqlInfo'],'query',_0x37caff(0x1cf)),_0x41734c=Object[_0x37caff(0x1d2)](_0x4c2246||{}),_0x14f631=MetaApi[_0x37caff(0x1c9)]((this['gristConfigSet']?this['gristConfigSet']:{'columns':this[_0x37caff(0x1ce)]})[_0x37caff(0x1c7)][_0x37caff(0x19b)](_0x54f4a4=>!_0x41734c[_0x37caff(0x1d1)](_0x54f4a4[_0x37caff(0x1b7)]))),_0x49dd3f={};if(_0x27d997[_0x37caff(0x1d1)]('$')){let _0x104aec=_0x27d997[_0x37caff(0x198)]('$',''),_0x1c3b6a=await MetaApi['callScenario'](void 0x0,_0x104aec,{'id':_0x3718bb},!0x1);_0x49dd3f=_0x1c3b6a[_0x37caff(0x1bb)][_0x37caff(0x1bd)][_0x37caff(0x1bb)][_0x37caff(0x1a7)];}else _0x49dd3f=await MetaApi[_0x37caff(0x19a)](_0x27d997,_0x3718bb,_0x14f631);return ValueUtil[_0x37caff(0x1ad)](_0x4c2246)&&ValueUtil[_0x37caff(0x1ad)](_0x49dd3f)&&_0x41734c[_0x37caff(0x1c0)](_0x2beab7=>{const _0x1fa7ea=_0x37caff;_0x49dd3f[_0x2beab7]=ValueUtil['getParams'](_0x49dd3f,..._0x4c2246[_0x2beab7][_0x1fa7ea(0x1b6)]('.'));}),_0x49dd3f;}async['deleteByIds'](_0x304f5f){const _0x38c505=a0_0x4e3465;let _0x4badc7=ValueUtil[_0x38c505(0x1ca)](this[_0x38c505(0x1a5)],'mutation',_0x38c505(0x1bf),_0x38c505(0x19f));return await MetaApi[_0x38c505(0x1a8)](_0x304f5f,_0x4badc7);}async[a0_0x4e3465(0x19d)](_0xf5de35){const _0x1572db=a0_0x4e3465;let _0x4b6597=ValueUtil[_0x1572db(0x1ca)](this[_0x1572db(0x1a5)],_0x1572db(0x199),_0x1572db(0x1c4),_0x1572db(0x19f)),_0x28ee42=ValueUtil['getParams'](this[_0x1572db(0x1a5)],_0x1572db(0x199),_0x1572db(0x1c4),'skip_fields');if(ValueUtil[_0x1572db(0x1ad)](_0x28ee42)&&(_0x28ee42=_0x28ee42['map'](_0x22508b=>_0x22508b[_0x1572db(0x1d1)]('.')?_0x22508b[_0x1572db(0x1b6)]('.'):_0x22508b),_0xf5de35=_0xf5de35[_0x1572db(0x1a4)](_0x3ae809=>(_0x28ee42[_0x1572db(0x1c0)](_0x2aa37d=>{const _0x2a2f58=_0x1572db;Array[_0x2a2f58(0x1a3)](_0x2aa37d)?delete _0x3ae809[_0x2aa37d[0x0]][_0x2aa37d[0x1]]:delete _0x3ae809[_0x2aa37d];}),_0x3ae809))),this[_0x1572db(0x1c5)]&&ValueUtil[_0x1572db(0x1ad)](this[_0x1572db(0x197)])){let _0x2bf9a4=ValueUtil['getParams'](this[_0x1572db(0x1a5)],'mutation',_0x1572db(0x1c4),_0x1572db(0x197));ValueUtil[_0x1572db(0x1ad)](_0x2bf9a4)&&_0xf5de35[_0x1572db(0x1c0)](_0x445bd4=>{const _0x4b081e=_0x1572db;if(_0x2bf9a4['includes']('.')){let _0x16ec22=_0x2bf9a4[_0x4b081e(0x1b6)]('.');_0x445bd4[_0x16ec22[0x0]]={},_0x445bd4[_0x16ec22[0x0]][_0x16ec22[0x1]]=this[_0x4b081e(0x197)];}else _0x445bd4[_0x2bf9a4]=this[_0x4b081e(0x197)];});}return await MetaApi[_0x1572db(0x19d)](_0x4b6597,_0xf5de35);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x12ee(){const _0x167a00=['columns','gristId','operator','useButtonImport','4910949yUleIj','options','search','connectedCallback','gridConfig','filterFormId','filter','ox-grist','clear','9mEJChW','getAndParseMenuMeta','properties','name','searchConfig','20994hoQxMX','pageInitialized','exportable','header','8630484QfIuyd','grist','gristConfigSet','useFilterForm','4StMZPq','buttonConfig','push','fetch','grid_column','masterElement','getTabDetailHtml','render','context','14nqwNIS','10247611qMylKE','importable','type','85917clBlcM','styles','filterForm','2128776dtBgND','gridEmphasized','getContextObject','parseGristConfigs','querySelector','ox-filters-form-base','actions','activityDataSet','gridColumnConfig','12142hBcMFC','searchFieldValues','445knihIi','value','getData','beforeFetch','firstUpdated','getMainGrist','10pqFJTs','main','detailElement'];a0_0x12ee=function(){return _0x167a00;};return a0_0x12ee();}const a0_0x22526c=a0_0x1004;(function(_0x519653,_0x5c2fdb){const _0x444dcc=a0_0x1004,_0x3fbe3f=_0x519653();while(!![]){try{const _0x33fa54=parseInt(_0x444dcc(0x115))/0x1*(-parseInt(_0x444dcc(0xfd))/0x2)+-parseInt(_0x444dcc(0xf1))/0x3*(parseInt(_0x444dcc(0x122))/0x4)+parseInt(_0x444dcc(0xff))/0x5*(-parseInt(_0x444dcc(0x11a))/0x6)+-parseInt(_0x444dcc(0x12b))/0x7*(-parseInt(_0x444dcc(0xf4))/0x8)+parseInt(_0x444dcc(0x10c))/0x9+-parseInt(_0x444dcc(0x105))/0xa*(parseInt(_0x444dcc(0x12c))/0xb)+parseInt(_0x444dcc(0x11e))/0xc;if(_0x33fa54===_0x5c2fdb)break;else _0x3fbe3f['push'](_0x3fbe3f['shift']());}catch(_0x5e0b25){_0x3fbe3f['push'](_0x3fbe3f['shift']());}}}(a0_0x12ee,0x72ef4));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x1004(_0x26df3f,_0x35149a){const _0x12eeb9=a0_0x12ee();return a0_0x1004=function(_0x10047f,_0x242b8e){_0x10047f=_0x10047f-0xf1;let _0x8790f6=_0x12eeb9[_0x10047f];return _0x8790f6;},a0_0x1004(_0x26df3f,_0x35149a);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabDetailMixin=_0x379cae=>class extends MetaButtonMixin(_0x379cae){static get[a0_0x22526c(0xf2)](){return MetaApi['getBasicTabDetailStyles']();}static get[a0_0x22526c(0x117)](){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_0x22526c(0x11f)](){const _0x5485d5=a0_0x22526c;return this[_0x5485d5(0x127)][_0x5485d5(0x104)]();}get[a0_0x22526c(0xf3)](){const _0x14ee09=a0_0x22526c;return this['shadowRoot']?.[_0x14ee09(0xf8)](this[_0x14ee09(0x111)]);}get[a0_0x22526c(0x12a)](){const _0x3f0495=a0_0x22526c;let _0x2af355=MetaUiUtil[_0x3f0495(0xf6)](this);return _0x2af355[_0x3f0495(0xfa)]&&delete _0x2af355['actions'],_0x2af355['exportable']&&delete _0x2af355[_0x3f0495(0x11c)],_0x2af355[_0x3f0495(0x12d)]&&delete _0x2af355[_0x3f0495(0x12d)],_0x2af355;}async[a0_0x22526c(0x10f)](){const _0x53ae14=a0_0x22526c;this[_0x53ae14(0x109)]=_0x53ae14(0x113),this[_0x53ae14(0x111)]=_0x53ae14(0xf9),await this[_0x53ae14(0x116)](),this['isElement']&&await this[_0x53ae14(0xf7)](),this['activityDataSet']&&(this['dataSet']=(this[_0x53ae14(0xfb)]||{})[_0x53ae14(0x106)]),super[_0x53ae14(0x10f)]&&await super['connectedCallback']();}async[a0_0x22526c(0x103)](){const _0x2a036f=a0_0x22526c;super[_0x2a036f(0x103)]&&await super[_0x2a036f(0x103)]();}async[a0_0x22526c(0x11b)](){const _0x42b33e=a0_0x22526c;this['isPage']&&await this['parseGristConfigs'](),super[_0x42b33e(0x11b)]&&await super['pageInitialized']();}[a0_0x22526c(0x129)](){const _0x9dc46e=a0_0x22526c;return MetaApi[_0x9dc46e(0x128)](this);}['parseBasicGridConfigs'](_0xf06a8){const _0xd8e9a5=a0_0x22526c;this[_0xd8e9a5(0x110)]=_0xf06a8['grid'],this[_0xd8e9a5(0xfc)]=_0xf06a8[_0xd8e9a5(0x126)],this[_0xd8e9a5(0x119)]=_0xf06a8[_0xd8e9a5(0x10e)],this[_0xd8e9a5(0xf5)]=_0xf06a8['gridEmphasized'];}async[a0_0x22526c(0xf7)](){const _0x341257=a0_0x22526c;this[_0x341257(0x120)]=await MetaApi['parseGridConfigSet'](this),this['useMasterFilterForm']=!0x0===this[_0x341257(0x121)],this[_0x341257(0x121)]=!0x1,this[_0x341257(0x123)]=void 0x0,this['useButtonExport']=!0x1,this[_0x341257(0x10b)]=!0x1,this[_0x341257(0xfe)]=[],this['searchFields']=this[_0x341257(0x120)][_0x341257(0x108)][_0x341257(0x112)](_0x50cf13=>_0x50cf13[_0x341257(0x112)])['map'](_0x3762e6=>{const _0x5a7a55=_0x341257;let _0x216d7f={'name':_0x3762e6['name'],'type':_0x5a7a55(0x10e)===_0x3762e6['filter'][_0x5a7a55(0x10a)]?_0x5a7a55(0x10e):_0x3762e6[_0x5a7a55(0x12e)],'label':_0x3762e6[_0x5a7a55(0x11d)],'operator':_0x3762e6[_0x5a7a55(0x112)][_0x5a7a55(0x10a)]?_0x3762e6[_0x5a7a55(0x112)][_0x5a7a55(0x10a)]:'eq'};return _0x3762e6[_0x5a7a55(0x112)][_0x5a7a55(0x10d)]&&(_0x216d7f[_0x5a7a55(0x10d)]=_0x3762e6['filter'][_0x5a7a55(0x10d)]),_0x3762e6['record']['options']&&(_0x216d7f[_0x5a7a55(0x10d)]=_0x3762e6['record'][_0x5a7a55(0x10d)]),_0x3762e6[_0x5a7a55(0x112)][_0x5a7a55(0x100)]&&this['searchFieldValues'][_0x5a7a55(0x124)]({'name':_0x216d7f[_0x5a7a55(0x118)],'operator':_0x216d7f['operator'],'value':_0x3762e6[_0x5a7a55(0x112)][_0x5a7a55(0x100)]}),delete _0x3762e6['filter'],_0x216d7f;});}async['fetch'](){const _0x185dc4=a0_0x22526c;await this[_0x185dc4(0x11f)][_0x185dc4(0x125)]();}async[a0_0x22526c(0x102)]({page:_0x4e9b12=0x0,limit:_0x2981e3=0x0,sortings:_0x528cb1=[],filters:_0x288090=[]}){const _0x20b293=a0_0x22526c;return this[_0x20b293(0x127)]&&this[_0x20b293(0x127)][_0x20b293(0x114)]&&await this[_0x20b293(0x127)]['clear'](),this[_0x20b293(0x107)]&&this['detailElement'][_0x20b293(0x114)]&&await this[_0x20b293(0x107)][_0x20b293(0x114)](),!0x0;}[a0_0x22526c(0x101)](){const _0x683840=a0_0x22526c;return{'master':this[_0x683840(0x127)]['getData'](),'detail':this[_0x683840(0x107)]['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x541523=a0_0x5179;(function(_0x2823a6,_0x4c4366){const _0x163145=a0_0x5179,_0x3810a5=_0x2823a6();while(!![]){try{const _0x126b1b=-parseInt(_0x163145(0x96))/0x1+parseInt(_0x163145(0x88))/0x2+parseInt(_0x163145(0x7e))/0x3*(parseInt(_0x163145(0x7d))/0x4)+-parseInt(_0x163145(0x83))/0x5+parseInt(_0x163145(0x79))/0x6+-parseInt(_0x163145(0x6e))/0x7*(-parseInt(_0x163145(0x89))/0x8)+-parseInt(_0x163145(0x8a))/0x9*(parseInt(_0x163145(0x70))/0xa);if(_0x126b1b===_0x4c4366)break;else _0x3810a5['push'](_0x3810a5['shift']());}catch(_0xfa672f){_0x3810a5['push'](_0x3810a5['shift']());}}}(a0_0x28a5,0x1e8dc));import{MetaApi}from'../utils/meta-api';function a0_0x28a5(){const _0x4d1cc5=['56WfyQsf','45591hKExSK','getData','forEach','grist','parseBasicTabConfigs','977645LRtNVn','pageInitialized','meta-grist-element','styles','activityDataSet','352824ipsLeJ','64qDWbtf','117UyFtKg','getAndParseMenuMeta','etcConfig','getMainGrist','tabElements','icon','button','includeMainList','firstUpdated','clear','@things-factory/meta-ui/client/pages/meta-grist-element','tab','130465ExnWbr','getContextObject','{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22,\x20\x22index\x22:0\x20}','24031AlhiIb','param_field','94370VTvIdd','getBasicTabHtml','keys','tabRenderConfig','mainFilterForm','length','parse','name','index','943134TplIPd','route_name','dataSet','connectedCallback'];a0_0x28a5=function(){return _0x4d1cc5;};return a0_0x28a5();}function a0_0x5179(_0x2d6eff,_0x5890bd){const _0x28a564=a0_0x28a5();return a0_0x5179=function(_0x5179f7,_0x1a34c9){_0x5179f7=_0x5179f7-0x6e;let _0x454a7f=_0x28a564[_0x5179f7];return _0x454a7f;},a0_0x5179(_0x2d6eff,_0x5890bd);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x141966=>class extends MetaButtonMixin(_0x141966){static get[a0_0x541523(0x86)](){return MetaApi['getBasicTabStyles']();}static get['properties'](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get['context'](){const _0x16db52=a0_0x541523;return MetaUiUtil[_0x16db52(0x97)](this);}async[a0_0x541523(0x7c)](){const _0x5a9b9e=a0_0x541523;this['currentTabKey']=void 0x0,await this[_0x5a9b9e(0x8b)](),this[_0x5a9b9e(0x87)]&&(this[_0x5a9b9e(0x7b)]=this['activityDataSet']),super['connectedCallback']&&await super[_0x5a9b9e(0x7c)]();}async[a0_0x541523(0x92)](){const _0x5d195c=a0_0x541523;super[_0x5d195c(0x92)]&&await super[_0x5d195c(0x92)]();}async[a0_0x541523(0x84)](){const _0x1f6a4e=a0_0x541523;super[_0x1f6a4e(0x84)]&&await super[_0x1f6a4e(0x84)]();}['render'](){const _0x951b9b=a0_0x541523;return MetaApi[_0x951b9b(0x71)](this);}[a0_0x541523(0x82)](_0xc237e9){const _0x3fcf63=a0_0x541523;if(!0x0===this[_0x3fcf63(0x91)]){let _0x58a546=this[_0x3fcf63(0x8c)]['main_tab_info'],_0xdb0b97=JSON[_0x3fcf63(0x76)](_0x58a546||_0x3fcf63(0x98));_0xdb0b97[_0x3fcf63(0x78)]>_0xc237e9[_0x3fcf63(0x95)][_0x3fcf63(0x75)]&&(_0xdb0b97[_0x3fcf63(0x78)]=_0xc237e9[_0x3fcf63(0x95)][_0x3fcf63(0x75)]),_0xc237e9[_0x3fcf63(0x95)]['splice'](_0xdb0b97[_0x3fcf63(0x78)],0x0,{'name':_0xdb0b97[_0x3fcf63(0x77)],'display':_0xdb0b97['display'],'tagname':_0x3fcf63(0x85),'location':_0x3fcf63(0x94),'parent_field':'id','param_field':_0x3fcf63(0x6f),'menu':this[_0x3fcf63(0x7a)],'icon':_0xdb0b97[_0x3fcf63(0x8f)],'filter_from':!0x1,'main_filter_form':this[_0x3fcf63(0x74)]});}this[_0x3fcf63(0x73)]=_0xc237e9[_0x3fcf63(0x95)],_0xc237e9[_0x3fcf63(0x90)]=[];}async[a0_0x541523(0x93)](){const _0x535ba2=a0_0x541523;if(this[_0x535ba2(0x8e)]){let _0x56cd54=Object[_0x535ba2(0x72)](this['tabElements']);for(var _0x5a4b36=0x0;_0x5a4b36<_0x56cd54[_0x535ba2(0x75)];_0x5a4b36++)await this['tabElements'][_0x56cd54[_0x5a4b36]][_0x535ba2(0x93)]();}}['getData'](){const _0x3aedb1=a0_0x541523;let _0x5cf0e3={};return this[_0x3aedb1(0x8e)]&&Object[_0x3aedb1(0x72)](this['tabElements'])[_0x3aedb1(0x80)](_0x554c04=>{const _0x1eda26=_0x3aedb1;_0x5cf0e3[_0x554c04]=this[_0x1eda26(0x8e)][_0x554c04][_0x1eda26(0x7f)]();}),_0x5cf0e3;}[a0_0x541523(0x8d)](){const _0x555d1a=a0_0x541523;if(this['tabElements']){let _0x38fadd=Object[_0x555d1a(0x72)](this[_0x555d1a(0x8e)]);return this[_0x555d1a(0x8e)][_0x38fadd[0x0]][_0x555d1a(0x81)];}}};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x239379=a0_0x1f2d;function a0_0x684d(){const _0x4ebd7c=['description','model','812129DXYivG','gridConfig','4630131pQVrGk','center','menuType','records','is_not_null','columns','push','grid_view_options','deploy','assign','grist','string','searchByPagination','8624gDAGSg','metaActivities','meta-activity-list-page','CARD','getSelectColumns','install_activity','updater','resource-object','styles','12QzhIbv','getGristSelectableConfig','filter','render','\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','draft','tLabel','datetime','getBasicGristStyles','fetch','updateMultiple','isMobileEnv','object','post','connectedCallback','single','3613338beyNzh','parse','getGristSelectorColumnConfig','relation-menu','18sOEUqU','updated_at','showGraphqlException','getGristGuttersConfig','deleteListByGristSelected','showGraphqlErrorResponse','state','define','status','bind','multiple','showToast','updateMultipleMetaActivity','delete','fetchHandler','query','menu','name','search','217AKhNPb','tButton','830YrxUGH','getGristColumnConfig2','HIDDEN-PAGE','activityType','pageInitialized','customElements','like','patchesForUpdateMultiple','startingType','tTitle','deprecated','deleteMetaActivities','save','POPUP','2936315YPxqMC','SCREEN','routing','menu_type','errors','template','ox-grist','task','gridMode','left','98913iuKCWS','LIST','isNotEmpty','info','198011umUlEk','activity-state-deprecated','updatedAt'];a0_0x684d=function(){return _0x4ebd7c;};return a0_0x684d();}(function(_0x10b5f4,_0x286c2f){const _0x56fcd0=a0_0x1f2d,_0x3b3e9f=_0x10b5f4();while(!![]){try{const _0x5469d6=parseInt(_0x56fcd0(0x113))/0x1+-parseInt(_0x56fcd0(0xdd))/0x2*(-parseInt(_0x56fcd0(0x10a))/0x3)+-parseInt(_0x56fcd0(0xc9))/0x4*(parseInt(_0x56fcd0(0x100))/0x5)+parseInt(_0x56fcd0(0xd9))/0x6+parseInt(_0x56fcd0(0xf0))/0x7*(parseInt(_0x56fcd0(0xc0))/0x8)+-parseInt(_0x56fcd0(0x115))/0x9+parseInt(_0x56fcd0(0xf2))/0xa*(parseInt(_0x56fcd0(0x10e))/0xb);if(_0x5469d6===_0x286c2f)break;else _0x3b3e9f['push'](_0x3b3e9f['shift']());}catch(_0x37a3d1){_0x3b3e9f['push'](_0x3b3e9f['shift']());}}}(a0_0x684d,0xeaf28));import a0_0x28a698 from'graphql-tag';import{html}from'lit';import{CommonButtonStyles}from'@operato/styles';import{client}from'@operato/graphql';function a0_0x1f2d(_0x2432b1,_0x55805d){const _0x684df7=a0_0x684d();return a0_0x1f2d=function(_0x1f2d01,_0x256cb4){_0x1f2d01=_0x1f2d01-0xbc;let _0x4be2dc=_0x684df7[_0x1f2d01];return _0x4be2dc;},a0_0x1f2d(_0x2432b1,_0x55805d);}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';import{UiUtil}from'../../utils/ui-util';class MetaActivityListPage extends localize(i18next)(PageView){static get[a0_0x239379(0xc8)](){const _0x472e80=a0_0x239379;return MetaApi[_0x472e80(0xd1)]();}get['context'](){const _0x30d91f=a0_0x239379;return{'title':TermsUtil[_0x30d91f(0xfb)]('meta_activity_list'),'actions':[{'title':TermsUtil[_0x30d91f(0xf1)]('save'),'action':this[_0x30d91f(0xfe)][_0x30d91f(0xe6)](this),...CommonButtonStyles['save']},{'title':TermsUtil[_0x30d91f(0xf1)](_0x30d91f(0xea)),'action':this[_0x30d91f(0xea)]['bind'](this),...CommonButtonStyles[_0x30d91f(0xea)]},{'title':TermsUtil['tButton'](_0x30d91f(0xc5)),'action':this[_0x30d91f(0x11d)][_0x30d91f(0xe6)](this),'icon':'system_update','emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}]};}get['grist'](){const _0x37537e=a0_0x239379;return this['shadowRoot']['querySelector'](_0x37537e(0x106));}async['connectedCallback'](){const _0x36e9ca=a0_0x239379,_0x54a5d3=[{'display':'','value':''},{'display':TermsUtil[_0x36e9ca(0xcf)]('activity-state-draft'),'value':_0x36e9ca(0xce)},{'display':TermsUtil[_0x36e9ca(0xcf)]('activity-state-released'),'value':'released'},{'display':TermsUtil[_0x36e9ca(0xcf)](_0x36e9ca(0x10f)),'value':_0x36e9ca(0xfc)}];this[_0x36e9ca(0x11c)]=[_0x36e9ca(0x10b),'GRID',_0x36e9ca(0xc3)],this[_0x36e9ca(0x108)]=MetaApi[_0x36e9ca(0xd4)]()?'LIST':'GRID',this['gridConfig']={'option':{'view_mode':this[_0x36e9ca(0x11c)]},'rows':MetaApi[_0x36e9ca(0xca)](!0x0),'pagination':MetaApi['getGristPagination50Config'](),'sorters':[{'name':_0x36e9ca(0xee),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x36e9ca(0xe0)](!0x0,!0x1),{'type':_0x36e9ca(0xbe),'name':'id','sortable':!0x1,'hidden':!0x0},MetaUiUtil['getGristColumnConfig2']('string','name',_0x36e9ca(0xee),_0x36e9ca(0x109),!0x0,!0x0,0xc8),MetaUiUtil[_0x36e9ca(0xf3)](_0x36e9ca(0xbe),_0x36e9ca(0x111),'description',_0x36e9ca(0x109),!0x0,!0x0,0x12c),MetaUiUtil[_0x36e9ca(0xdb)](_0x36e9ca(0xe3),_0x36e9ca(0xe5),_0x36e9ca(0x116),!0x0,0x64,!0x1,_0x54a5d3),{'type':_0x36e9ca(0xc7),'name':_0x36e9ca(0xed),'header':TermsUtil['tLabel'](_0x36e9ca(0xed)),'record':{'editable':!0x0,'options':{'queryName':'menus','basicArgs':{'filters':[{'name':_0x36e9ca(0x117),'operator':'in','value':[_0x36e9ca(0x101),_0x36e9ca(0xff),_0x36e9ca(0xf4)]},{'name':'routing','operator':'is_not_null','value':''},{'name':_0x36e9ca(0x105),'operator':_0x36e9ca(0x119),'value':''}]},'columns':[{'name':'id','hidden':!0x0},{'name':_0x36e9ca(0xee),'header':TermsUtil[_0x36e9ca(0xcf)](_0x36e9ca(0xee)),'width':0xfa,'filter':_0x36e9ca(0xef)},await MetaApi['getGristCodeSelectorColumnConfig'](_0x36e9ca(0x117),_0x36e9ca(0x103),'left',!0x1,0x6e,!0x1,'MENU_PAGE_TYPE'),MetaUiUtil[_0x36e9ca(0xf3)](_0x36e9ca(0xbe),_0x36e9ca(0x102),_0x36e9ca(0x102),_0x36e9ca(0x109),!0x1,!0x1,0xfa)],'list':{'fields':['name',_0x36e9ca(0x102)]},'nameField':_0x36e9ca(0x102)}},'width':0xeb},MetaUiUtil[_0x36e9ca(0xf3)](_0x36e9ca(0xd5),_0x36e9ca(0xc6),_0x36e9ca(0xc6),_0x36e9ca(0x116),!0x1,!0x1,0x78),MetaUiUtil['getGristColumnConfig2'](_0x36e9ca(0xd0),_0x36e9ca(0x110),_0x36e9ca(0xde),_0x36e9ca(0x116),!0x1,!0x0,0xb4),{'name':_0x36e9ca(0xf5),'hidden':!0x0},{'name':_0x36e9ca(0xe7),'hidden':!0x0},{'name':_0x36e9ca(0xfa),'hidden':!0x0}],'sorters':[{'name':_0x36e9ca(0xee),'desc':!0x1}]};let _0x1d78f8={'name':_0x36e9ca(0xf8)};this[_0x36e9ca(0x114)][_0x36e9ca(0x11a)][_0x36e9ca(0xcb)](_0x40cbac=>_0x1d78f8[_0x40cbac['name']])['forEach'](_0x56e229=>{const _0x6344ae=_0x36e9ca;_0x56e229[_0x6344ae(0xcb)]=_0x1d78f8[_0x56e229['name']];}),this[_0x36e9ca(0xd7)]&&await super['connectedCallback']();}async[a0_0x239379(0xeb)]({page:_0x3eca1a,limit:_0x3695e7,sorters:_0x72fd33=[],filters:_0x2eafc7=[]}){const _0x538bc1=a0_0x239379;_0x2eafc7[_0x538bc1(0x11b)]({'name':_0x538bc1(0x112),'operator':_0x538bc1(0xf8),'value':'\x22relation-menu\x22'});let _0xf62b9e=MetaApi[_0x538bc1(0xc4)](this[_0x538bc1(0x114)]['columns'][_0x538bc1(0xcb)](_0x5bf3ac=>_0x538bc1(0xed)!=_0x5bf3ac[_0x538bc1(0xee)]));_0xf62b9e+=_0x538bc1(0xcd);let _0x1e0048=await MetaApi[_0x538bc1(0xbf)](_0x538bc1(0xc1),_0x2eafc7,_0x72fd33,_0x3eca1a,_0x3695e7,_0xf62b9e);return _0x1e0048[_0x538bc1(0x118)]['forEach'](_0x215e60=>{const _0x4c033b=_0x538bc1;let _0x364d8e=_0x215e60[_0x4c033b(0x112)][_0x4c033b(0xcb)](_0x2ce25a=>_0x4c033b(0xdc)==_0x2ce25a[_0x4c033b(0xee)]);_0x364d8e&&_0x364d8e['length']>0x0&&(_0x215e60[_0x4c033b(0xed)]=JSON[_0x4c033b(0xda)](_0x364d8e[0x0]['description'])),delete _0x215e60['model'];}),_0x1e0048;}async[a0_0x239379(0x11d)](){const _0x111951=a0_0x239379;try{var _0x209d37=await client[_0x111951(0xec)]({'query':a0_0x28a698`
|
|
2
2
|
mutation {
|
|
3
3
|
installActivityTemplate
|
|
4
4
|
}
|
|
5
|
-
`});if(!
|
|
5
|
+
`});if(!_0x209d37[_0x111951(0x104)])return UiUtil[_0x111951(0xe8)](_0x111951(0x10d),TermsUtil['tText']('install_activity_success')),!0x0;ServiceUtil[_0x111951(0xe2)](_0x209d37);}catch(_0xd9c256){ServiceUtil[_0x111951(0xdf)](_0xd9c256);}}async[a0_0x239379(0xfe)](){const _0x81ebca=a0_0x239379;let _0x5990e6=ServiceUtil[_0x81ebca(0xf9)](this[_0x81ebca(0xbd)]);if(ValueUtil[_0x81ebca(0x10c)](_0x5990e6)){_0x5990e6['forEach'](_0x21c75e=>{const _0x21ce5d=_0x81ebca;Object[_0x21ce5d(0xbc)](_0x21c75e,{'uiSource':'meta-activity-writer-element','uiType':'custom-element','viewSource':'meta-activity-viewer-element','viewType':'custom-element'}),_0x21c75e[_0x21ce5d(0xe7)]||(_0x21c75e[_0x21ce5d(0xe7)]=_0x21ce5d(0xd8)),_0x21c75e[_0x21ce5d(0xf5)]||(_0x21c75e[_0x21ce5d(0xf5)]=_0x21ce5d(0x107)),_0x21c75e[_0x21ce5d(0xfa)]||(_0x21c75e[_0x21ce5d(0xfa)]=_0x21ce5d(0xd6));});let _0x44b38c=await ServiceUtil[_0x81ebca(0xd3)](_0x81ebca(0xe9),_0x5990e6);if(_0x44b38c)return this['grist'][_0x81ebca(0xd2)](),_0x44b38c;}}async[a0_0x239379(0xea)](){const _0x158110=a0_0x239379;await MetaApi[_0x158110(0xe1)](this[_0x158110(0xbd)],_0x158110(0xfd));}async[a0_0x239379(0xf6)](){}[a0_0x239379(0xcc)](){const _0x1c131d=a0_0x239379;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[_0x1c131d(0x114)]}
|
|
10
|
+
.mode=${this[_0x1c131d(0x108)]}
|
|
11
|
+
.fetchHandler=${this[_0x1c131d(0xeb)][_0x1c131d(0xe6)](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
|
-
`;}}window[
|
|
18
|
+
`;}}window[a0_0x239379(0xf7)][a0_0x239379(0xe4)](a0_0x239379(0xc2),MetaActivityListPage);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x262c75=a0_0x5e54;function a0_0x5e54(_0x3152cc,_0x4a9538){const _0x56e743=a0_0x56e7();return a0_0x5e54=function(_0x5e5463,_0x506dfe){_0x5e5463=_0x5e5463-0x18b;let _0x1e6d02=_0x56e743[_0x5e5463];return _0x1e6d02;},a0_0x5e54(_0x3152cc,_0x4a9538);}(function(_0x4cffd4,_0x1dae8c){const _0x210134=a0_0x5e54,_0x350384=_0x4cffd4();while(!![]){try{const _0x15e8fe=parseInt(_0x210134(0x19f))/0x1*(parseInt(_0x210134(0x1a1))/0x2)+parseInt(_0x210134(0x18f))/0x3+parseInt(_0x210134(0x19d))/0x4*(parseInt(_0x210134(0x192))/0x5)+parseInt(_0x210134(0x196))/0x6+-parseInt(_0x210134(0x19c))/0x7*(-parseInt(_0x210134(0x198))/0x8)+parseInt(_0x210134(0x18d))/0x9+-parseInt(_0x210134(0x190))/0xa;if(_0x15e8fe===_0x1dae8c)break;else _0x350384['push'](_0x350384['shift']());}catch(_0x863d5c){_0x350384['push'](_0x350384['shift']());}}}(a0_0x56e7,0x49567));import a0_0x3c7daa 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_0x56e7(){const _0x391c9a=['3641168BMWyso','tagName','\x27\x20route_name=\x27','customData','7YttXwb','20wfIlvY','name','1NQeYOq','relationMenu','59196GYmbtu','isEmpty','activityDataSet','routing','2126493TMOWyH','contentElement','1125876aDzWFl','9908960UtatKT','render','172710EqeqCk','meta-activity-viewer-element','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_readonly=true\x20is_detail=true></','htmlToElement','133584pTMFwG','output'];a0_0x56e7=function(){return _0x391c9a;};return a0_0x56e7();}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_0x262c75(0x191)](){const _0x2b6e29=a0_0x262c75;if(this[_0x2b6e29(0x1a0)]&&!this[_0x2b6e29(0x18e)]){let _0xbfd7c7=this[_0x2b6e29(0x1a0)][_0x2b6e29(0x199)],_0x252b8d=this[_0x2b6e29(0x1a0)][_0x2b6e29(0x18c)],_0x5eacc8='<'+_0xbfd7c7+'\x20id=\x27'+this[_0x2b6e29(0x1a0)][_0x2b6e29(0x19e)]+_0x2b6e29(0x19a)+_0x252b8d+_0x2b6e29(0x194)+_0xbfd7c7+'>';this[_0x2b6e29(0x18e)]=UiUtil[_0x2b6e29(0x195)](_0x5eacc8),this[_0x2b6e29(0x18e)][_0x2b6e29(0x18b)]=ValueUtil[_0x2b6e29(0x1a2)](this[_0x2b6e29(0x197)])?void 0x0:this['output'][_0x2b6e29(0x19b)];}return html`
|
|
2
2
|
${this['contentElement']}
|
|
3
|
-
`;}}customElements[
|
|
3
|
+
`;}}customElements['define'](a0_0x262c75(0x193),MetaActivityViewerElement);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements[
|
|
1
|
+
const a0_0x19bae2=a0_0x3055;(function(_0x25a87b,_0x19896e){const _0x2d67a7=a0_0x3055,_0x5d457f=_0x25a87b();while(!![]){try{const _0x39aa98=parseInt(_0x2d67a7(0x1cb))/0x1*(-parseInt(_0x2d67a7(0x1c1))/0x2)+-parseInt(_0x2d67a7(0x1c8))/0x3*(parseInt(_0x2d67a7(0x1c4))/0x4)+-parseInt(_0x2d67a7(0x1d1))/0x5+parseInt(_0x2d67a7(0x1cc))/0x6+-parseInt(_0x2d67a7(0x1c5))/0x7+-parseInt(_0x2d67a7(0x1b6))/0x8+parseInt(_0x2d67a7(0x1b5))/0x9*(parseInt(_0x2d67a7(0x1bc))/0xa);if(_0x39aa98===_0x19896e)break;else _0x5d457f['push'](_0x5d457f['shift']());}catch(_0x145c07){_0x5d457f['push'](_0x5d457f['shift']());}}}(a0_0x473c,0xa711c));import{html,LitElement}from'lit';import{i18next,localize}from'@operato/i18n';import{UiUtil}from'./../../utils/ui-util';function a0_0x3055(_0x36ecfa,_0x2e329c){const _0x473c62=a0_0x473c();return a0_0x3055=function(_0x305598,_0x46c82d){_0x305598=_0x305598-0x1b5;let _0x100c45=_0x473c62[_0x305598];return _0x100c45;},a0_0x3055(_0x36ecfa,_0x2e329c);}import{ValueUtil}from'./../../utils/value-util';import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityWriterElement extends MetaActivityMixin(localize(i18next)(LitElement)){async[a0_0x19bae2(0x1cf)](){const _0x91a265=a0_0x19bae2;await super[_0x91a265(0x1cf)](),this[_0x91a265(0x1d3)](_0x91a265(0x1ba),this['_onDataChanged']);}['disconnectedCallback'](){const _0x14b2bd=a0_0x19bae2;this['removeEventListener'](_0x14b2bd(0x1ba),this['_onDataChanged']);}[a0_0x19bae2(0x1c7)](_0x4d5b48){const _0x42fee5=a0_0x19bae2;let _0x1be02f=this[_0x42fee5(0x1b9)][_0x42fee5(0x1bb)]();this[_0x42fee5(0x1c2)](new CustomEvent('change',{'detail':{'customData':_0x1be02f}}));}[a0_0x19bae2(0x1ca)](){const _0x3d850d=a0_0x19bae2;if(this['relationMenu']&&!this[_0x3d850d(0x1b9)]){let _0x23706b=this[_0x3d850d(0x1c0)][_0x3d850d(0x1bf)],_0x338e9a=this[_0x3d850d(0x1c0)][_0x3d850d(0x1d2)],_0x5e45b4='<'+_0x23706b+_0x3d850d(0x1c9)+this['relationMenu']['name']+_0x3d850d(0x1b7)+_0x338e9a+_0x3d850d(0x1c3)+_0x23706b+'>';this[_0x3d850d(0x1b9)]=UiUtil[_0x3d850d(0x1be)](_0x5e45b4),this[_0x3d850d(0x1b9)][_0x3d850d(0x1b8)]=ValueUtil[_0x3d850d(0x1bd)](this[_0x3d850d(0x1c6)])?void 0x0:this[_0x3d850d(0x1c6)][_0x3d850d(0x1cd)];}return html`
|
|
2
|
+
${this['contentElement']}
|
|
3
|
+
`;}}customElements[a0_0x19bae2(0x1ce)](a0_0x19bae2(0x1d0),MetaActivityWriterElement);function a0_0x473c(){const _0x5c2cfc=['connectedCallback','meta-activity-writer-element','186835tXGDoJ','routing','addEventListener','9oLzYtd','10127256AOTXae','\x27\x20route_name=\x27','activityDataSet','contentElement','data-changed','getData','34498570jaPMdS','isEmpty','htmlToElement','tagName','relationMenu','10KZeuYo','dispatchEvent','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></','5055636VJYfSV','7677243mjECwO','output','_onDataChanged','3jNFRXg','\x20id=\x27','render','72118EWgjqs','7553886KhjrwM','customData','define'];a0_0x473c=function(){return _0x5c2cfc;};return a0_0x473c();}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x5174(_0x4f5a66,_0x555032){const _0x59438e=a0_0x5943();return a0_0x5174=function(_0x517433,_0x369d22){_0x517433=_0x517433-0x1e2;let _0x8fee84=_0x59438e[_0x517433];return _0x8fee84;},a0_0x5174(_0x4f5a66,_0x555032);}const a0_0x5bd45a=a0_0x5174;(function(_0x999f3e,_0xe67da3){const _0x313524=a0_0x5174,_0x2e5718=_0x999f3e();while(!![]){try{const _0x5d86bc=-parseInt(_0x313524(0x1e5))/0x1*(-parseInt(_0x313524(0x1f0))/0x2)+-parseInt(_0x313524(0x1e4))/0x3+-parseInt(_0x313524(0x1ef))/0x4+-parseInt(_0x313524(0x1f8))/0x5+-parseInt(_0x313524(0x1f7))/0x6*(-parseInt(_0x313524(0x204))/0x7)+-parseInt(_0x313524(0x1f2))/0x8+parseInt(_0x313524(0x1fd))/0x9*(parseInt(_0x313524(0x201))/0xa);if(_0x5d86bc===_0xe67da3)break;else _0x2e5718['push'](_0x2e5718['shift']());}catch(_0x2d7ac0){_0x2e5718['push'](_0x2e5718['shift']());}}}(a0_0x5943,0x4681c));import a0_0xbbf562 from'graphql-tag';import{css}from'lit';import{client}from'@operato/graphql';function a0_0x5943(){const _0x242903=['2fVreBC','category','1475320JBveQg','model','relation-menu','replace','resourceUrl','73812LGLpPp','2221350NqAAkS','styles','tagName','records','getActivity','18eZpPrv','showToast','activityId','parse','2504510kStVUH','value_is_not_exist','properties','287xUQJWC','getMenuInfo','menus','length','connectedCallback','routing','activity','364689ISzNDe','81085jxrfMo','forEach','endsWith','-page','tMenu','description','query','relationMenu','-element','name','189300PFpmEh'];a0_0x5943=function(){return _0x242903;};return a0_0x5943();}import{ServiceUtil}from'./../../utils/service-util';import{MetaApi}from'./../../utils/meta-api';export const MetaActivityMixin=_0x13bf46=>class extends _0x13bf46{static get[a0_0x5bd45a(0x203)](){return{'activityId':String,'input':Object,'output':Object};}static get[a0_0x5bd45a(0x1f9)](){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_0x5bd45a(0x208)](){const _0x61043a=a0_0x5bd45a;await this[_0x61043a(0x1fc)](),await super[_0x61043a(0x208)]();}async[a0_0x5bd45a(0x1fc)](){const _0x16d0f3=a0_0x5bd45a,_0x25353c=await client[_0x16d0f3(0x1eb)]({'query':a0_0xbbf562`
|
|
9
9
|
query activity($id: String!) {
|
|
10
10
|
activity(id: $id) {
|
|
11
11
|
id
|
|
@@ -15,4 +15,4 @@ function a0_0x955a(){const _0x184c29=['3897070aEDJwR','category','getActivity','
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`,'variables':{'id':this[
|
|
18
|
+
`,'variables':{'id':this[_0x16d0f3(0x1ff)]}});let _0x172a98;this['activity']=_0x25353c['data'][_0x16d0f3(0x1e3)],this[_0x16d0f3(0x1e3)][_0x16d0f3(0x1f3)]?.[_0x16d0f3(0x1e6)](_0x22570c=>{const _0x169da5=_0x16d0f3;_0x169da5(0x1f4)==_0x22570c[_0x169da5(0x1ee)]&&(_0x172a98=JSON[_0x169da5(0x200)](_0x22570c[_0x169da5(0x1ea)]));}),this[_0x16d0f3(0x1ec)]=_0x172a98,await this[_0x16d0f3(0x205)](this[_0x16d0f3(0x1ec)]['id'],this[_0x16d0f3(0x1ec)][_0x16d0f3(0x1e2)]);}async[a0_0x5bd45a(0x205)](_0x565f15,_0xe6eabd){const _0x1fd0e7=a0_0x5bd45a;let _0x6cbb08=[{'name':'id','operator':'eq','value':_0x565f15}],_0x450456=await ServiceUtil['searchByPagination'](_0x1fd0e7(0x206),_0x6cbb08,null,0x0,0x0,'id,category,resourceUrl');if(!_0x450456&&0x0==_0x450456[_0x1fd0e7(0x207)]){let _0x15b878=TermsUtil['tText'](_0x1fd0e7(0x202),{'value':TermsUtil[_0x1fd0e7(0x1e9)]('menu')+'\x20'+_0xe6eabd});throw MetaApi[_0x1fd0e7(0x1fe)]('info',_0x15b878),new Error(_0x15b878);}let _0x53e141=_0x450456[_0x1fd0e7(0x1fb)][0x0];_0x53e141[_0x1fd0e7(0x1fa)]=_0x53e141[_0x1fd0e7(0x1f1)][_0x1fd0e7(0x1e7)](_0x1fd0e7(0x1e8))?_0x53e141[_0x1fd0e7(0x1f1)][_0x1fd0e7(0x1f5)]('-page',_0x1fd0e7(0x1ed)):_0x53e141[_0x1fd0e7(0x1f1)],_0x53e141['resourceUrl']=_0x53e141[_0x1fd0e7(0x1f6)][_0x1fd0e7(0x1f5)](_0x53e141[_0x1fd0e7(0x1f1)],_0x53e141['tagName']),Object['assign'](this[_0x1fd0e7(0x1ec)],_0x53e141);}};
|