@things-factory/meta-ui 6.1.31 → 6.1.33
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 +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +10 -10
- 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 +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 +28 -28
- 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/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +102 -102
- 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 +10 -10
- 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/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
- package/translations/en.json +2 -0
- package/translations/ko.json +2 -0
- package/translations/ms.json +2 -0
- package/translations/zh.json +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5690b9=a0_0x3a73;(function(_0x370a64,_0x5d05a6){const _0x4e4654=a0_0x3a73,_0x5bd702=_0x370a64();while(!![]){try{const _0x45ef91=parseInt(_0x4e4654(0x1dc))/0x1+parseInt(_0x4e4654(0x1e6))/0x2*(parseInt(_0x4e4654(0x1f5))/0x3)+parseInt(_0x4e4654(0x1fc))/0x4+-parseInt(_0x4e4654(0x1e4))/0x5+parseInt(_0x4e4654(0x1dd))/0x6*(-parseInt(_0x4e4654(0x1e8))/0x7)+-parseInt(_0x4e4654(0x1de))/0x8*(parseInt(_0x4e4654(0x1e3))/0x9)+parseInt(_0x4e4654(0x208))/0xa*(parseInt(_0x4e4654(0x1e9))/0xb);if(_0x45ef91===_0x5d05a6)break;else _0x5bd702['push'](_0x5bd702['shift']());}catch(_0x2d6f86){_0x5bd702['push'](_0x5bd702['shift']());}}}(a0_0x5574,0x21ee9));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x3a73(_0x317e4e,_0x4324c4){const _0x55745d=a0_0x5574();return a0_0x3a73=function(_0x3a738b,_0x5596c2){_0x3a738b=_0x3a738b-0x1c9;let _0x3559ab=_0x55745d[_0x3a738b];return _0x3559ab;},a0_0x3a73(_0x317e4e,_0x4324c4);}function a0_0x5574(){const _0x4af1cc=['gristConfigSet','dataSet','mainFilterForm','list_func','result','isArray','value','220Fbqaqo','records','parent_id','fetchHandler','map','forEach','runScenario','params','isElement','replace','is_activity','getPageNavigateParams','properties','filterForm','split','deleteByIds','keys','isEmpty','query','name','updateMultiple','searchByPagination','267378OuwTJi','48suJUDv','8nbZadq','filter','infinityPage','afterFetch','pass','625437diMAHF','879560Bodudc','mutation','11314WanxnL','includes','181615NVQUOA','134189JGrAFK','after_set_fields','getParams','delete','isPage','data','gql','skip_fields','func','multiple','columns','getQueryFilters','3amgRPH','findOne','getSelectColumns','length','lifecycle','push','beforeFetch','202148XNjaQe','callScenario','gqlInfo','formConfigSet','isNotEmpty'];a0_0x5574=function(){return _0x4af1cc;};return a0_0x5574();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x434ed2=>class extends MetaBaseMixin(_0x434ed2){static get[a0_0x5690b9(0x1d2)](){return{'gqlInfo':Object};}['parseBasicServiceConfigs'](_0x27fc3b){const _0x58dc78=a0_0x5690b9;this['gqlInfo']=_0x27fc3b[_0x58dc78(0x1ef)];}async[a0_0x5690b9(0x1c9)]({page:_0x346374=0x0,limit:_0x219ae1=0x0,sortings:_0x34ebe1=[],filters:_0x5b5b70=[]}){const _0x5c9a83=a0_0x5690b9;if(this['is_activity'])return{'total':0x0,'records':this[_0x5c9a83(0x202)]||[]};if(!0x0===this[_0x5c9a83(0x1e0)]&&(_0x346374=0x0,_0x219ae1=0x0),this[_0x5c9a83(0x1fb)]&&0x0==await this[_0x5c9a83(0x1fb)]({'page':_0x346374,'limit':_0x219ae1,'sortings':_0x34ebe1,'filters':_0x5b5b70}))return;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0xc0d845=ValueUtil[_0x5c9a83(0x1d7)](_0x5b5b70)?this[_0x5c9a83(0x203)]?await this['mainFilterForm'][_0x5c9a83(0x1f4)]()||[]:await this[_0x5c9a83(0x1d3)]?.[_0x5c9a83(0x1f4)]()||[]:_0x5b5b70,_0x50e7b3=ValueUtil[_0x5c9a83(0x1eb)](this[_0x5c9a83(0x1fe)],_0x5c9a83(0x1d8),_0x5c9a83(0x204)),_0x31a9b9=ValueUtil[_0x5c9a83(0x1eb)](this['gqlInfo'],'query','filters'),_0x4423e4=ValueUtil['getParams'](this[_0x5c9a83(0x1fe)],_0x5c9a83(0x1d8),_0x5c9a83(0x1ea));if(ValueUtil[_0x5c9a83(0x200)](_0x31a9b9)&&(_0xc0d845=adjustFilters(_0xc0d845,_0x31a9b9)),_0xc0d845[_0x5c9a83(0x1fa)](...this['getPageNavigateParams']()),this[_0x5c9a83(0x1ce)]&&!this[_0x5c9a83(0x203)]){let _0x525908=ValueUtil[_0x5c9a83(0x1eb)](this['gqlInfo'],_0x5c9a83(0x1d8),_0x5c9a83(0x20a));if(!ValueUtil['isNotEmpty'](_0x525908)||!ValueUtil[_0x5c9a83(0x200)](this[_0x5c9a83(0x20a)]))return{'total':0x0,'records':[]};_0xc0d845=adjustFilters(_0xc0d845,[{'name':_0x525908,'operator':'eq','value':this[_0x5c9a83(0x20a)]}]);}let _0x649024=Object[_0x5c9a83(0x1d6)](_0x4423e4||{}),_0x3f1ba4=MetaApi[_0x5c9a83(0x1f7)](this[_0x5c9a83(0x201)][_0x5c9a83(0x1f3)][_0x5c9a83(0x1df)](_0x173f5f=>!_0x649024[_0x5c9a83(0x1e7)](_0x173f5f['name']))),_0x4e79f8={};if(_0x50e7b3[_0x5c9a83(0x1e7)]('$')){let _0x168890=_0x50e7b3[_0x5c9a83(0x1cf)]('$','');_0x4e79f8=(await MetaApi['callScenario'](void 0x0,_0x168890,{'filters':_0xc0d845,'pagination':{'page':_0x346374,'limit':_0x219ae1},'sortings':_0x34ebe1},!0x1))[_0x5c9a83(0x1ee)][_0x5c9a83(0x1cc)][_0x5c9a83(0x1ee)][_0x5c9a83(0x205)];}else _0x4e79f8=await MetaApi[_0x5c9a83(0x1db)](_0x50e7b3,_0xc0d845,_0x34ebe1,_0x346374,_0x219ae1,_0x3f1ba4);if(this['afterFetch']){let _0x3e2c8f=await this[_0x5c9a83(0x1e1)]({'page':_0x346374,'limit':_0x219ae1,'sortings':_0x34ebe1,'filters':_0x5b5b70},_0x4e79f8);if(_0x3e2c8f)return _0x3e2c8f;}return ValueUtil[_0x5c9a83(0x200)](_0x4423e4)&&ValueUtil[_0x5c9a83(0x200)](_0x4e79f8)&&ValueUtil['isNotEmpty'](_0x4e79f8[_0x5c9a83(0x209)])&&_0x4e79f8[_0x5c9a83(0x209)][_0x5c9a83(0x1ca)](_0x55c641=>(_0x649024[_0x5c9a83(0x1cb)](_0x4b6c45=>{const _0x2d225d=_0x5c9a83;_0x55c641[_0x4b6c45]=ValueUtil['getParams'](_0x55c641,..._0x4423e4[_0x4b6c45][_0x2d225d(0x1d4)]('.'));}),_0x55c641)),_0x4e79f8;}[a0_0x5690b9(0x1d1)](){const _0x3e48c0=a0_0x5690b9;if(0x0==this[_0x3e48c0(0x1ed)])return[];let _0x316dcd=this[_0x3e48c0(0x1f9)]?.[_0x3e48c0(0x1cd)]?this[_0x3e48c0(0x1f9)]['params']:{};if(!_0x316dcd[_0x3e48c0(0x1e2)])return[];let _0x24e242=_0x316dcd['pass'],_0x29429d=JSON['parse'](_0x24e242),_0x283153=0x1==_0x29429d[_0x3e48c0(0x1f8)]?'eq':'in',_0x1b7366={},_0x20cfc1=[];return Object[_0x3e48c0(0x1d6)](_0x29429d[0x0])[_0x3e48c0(0x1cb)](_0x170956=>{_0x1b7366[_0x170956]={'name':_0x170956,'operator':_0x283153,'value':'eq'===_0x283153?_0x29429d[0x0][_0x170956]:[]};}),_0x29429d['length']>0x1&&_0x29429d[_0x3e48c0(0x1cb)](_0x389fff=>{const _0x3327a0=_0x3e48c0;Object[_0x3327a0(0x1d6)](_0x389fff)['forEach'](_0x19e5eb=>{const _0x569182=_0x3327a0;_0x1b7366[_0x19e5eb][_0x569182(0x207)][_0x569182(0x1fa)](_0x389fff[_0x19e5eb]);});}),Object[_0x3e48c0(0x1d6)](_0x1b7366)[_0x3e48c0(0x1cb)](_0x55866e=>{const _0x308dde=_0x3e48c0;_0x20cfc1[_0x308dde(0x1fa)](_0x1b7366[_0x55866e]);}),_0x20cfc1;}async['findOne'](_0x38d2cf){const _0x3918c2=a0_0x5690b9;if(this[_0x3918c2(0x1d0)])return this['dataSet']||{};let _0x8fae58=ValueUtil[_0x3918c2(0x1eb)](this['gqlInfo'],_0x3918c2(0x1d8),'find_one_func'),_0x10c49f=ValueUtil[_0x3918c2(0x1eb)](this[_0x3918c2(0x1fe)],_0x3918c2(0x1d8),'after_set_fields'),_0x37d07a=Object['keys'](_0x10c49f||{}),_0x2f7ab1=MetaApi[_0x3918c2(0x1f7)]((this[_0x3918c2(0x201)]?this['gristConfigSet']:{'columns':this[_0x3918c2(0x1ff)]})[_0x3918c2(0x1f3)][_0x3918c2(0x1df)](_0x18cab0=>!_0x37d07a[_0x3918c2(0x1e7)](_0x18cab0[_0x3918c2(0x1d9)]))),_0x10e882={};if(_0x8fae58[_0x3918c2(0x1e7)]('$')){let _0x384fd0=_0x8fae58[_0x3918c2(0x1cf)]('$',''),_0x2c721d=await MetaApi[_0x3918c2(0x1fd)](void 0x0,_0x384fd0,{'id':_0x38d2cf},!0x1);_0x10e882=_0x2c721d['data'][_0x3918c2(0x1cc)][_0x3918c2(0x1ee)][_0x3918c2(0x205)];}else _0x10e882=await MetaApi[_0x3918c2(0x1f6)](_0x8fae58,_0x38d2cf,_0x2f7ab1);return ValueUtil[_0x3918c2(0x200)](_0x10c49f)&&ValueUtil[_0x3918c2(0x200)](_0x10e882)&&_0x37d07a[_0x3918c2(0x1cb)](_0x594cb7=>{const _0x5b5126=_0x3918c2;_0x10e882[_0x594cb7]=ValueUtil[_0x5b5126(0x1eb)](_0x10e882,..._0x10c49f[_0x594cb7][_0x5b5126(0x1d4)]('.'));}),_0x10e882;}async[a0_0x5690b9(0x1d5)](_0x4f77cb){const _0x28250c=a0_0x5690b9;let _0x2cb780=ValueUtil[_0x28250c(0x1eb)](this[_0x28250c(0x1fe)],'mutation',_0x28250c(0x1ec),'func');return await MetaApi['deleteListByIds'](_0x4f77cb,_0x2cb780);}async[a0_0x5690b9(0x1da)](_0x3c92c4){const _0x2302bd=a0_0x5690b9;let _0x5c80d9=ValueUtil[_0x2302bd(0x1eb)](this[_0x2302bd(0x1fe)],_0x2302bd(0x1e5),'multiple',_0x2302bd(0x1f1)),_0x572972=ValueUtil['getParams'](this[_0x2302bd(0x1fe)],_0x2302bd(0x1e5),_0x2302bd(0x1f2),_0x2302bd(0x1f0));if(ValueUtil[_0x2302bd(0x200)](_0x572972)&&(_0x572972=_0x572972[_0x2302bd(0x1ca)](_0x5ebc05=>_0x5ebc05[_0x2302bd(0x1e7)]('.')?_0x5ebc05[_0x2302bd(0x1d4)]('.'):_0x5ebc05),_0x3c92c4=_0x3c92c4[_0x2302bd(0x1ca)](_0x159088=>(_0x572972[_0x2302bd(0x1cb)](_0xe7caf1=>{const _0x18124d=_0x2302bd;Array[_0x18124d(0x206)](_0xe7caf1)?delete _0x159088[_0xe7caf1[0x0]][_0xe7caf1[0x1]]:delete _0x159088[_0xe7caf1];}),_0x159088))),this[_0x2302bd(0x1ce)]&&ValueUtil[_0x2302bd(0x200)](this['parent_id'])){let _0x367993=ValueUtil['getParams'](this[_0x2302bd(0x1fe)],_0x2302bd(0x1e5),_0x2302bd(0x1f2),_0x2302bd(0x20a));ValueUtil[_0x2302bd(0x200)](_0x367993)&&_0x3c92c4[_0x2302bd(0x1cb)](_0xe53d4e=>{const _0x1cf8b1=_0x2302bd;if(_0x367993[_0x1cf8b1(0x1e7)]('.')){let _0xda348a=_0x367993['split']('.');_0xe53d4e[_0xda348a[0x0]]={},_0xe53d4e[_0xda348a[0x0]][_0xda348a[0x1]]=this['parent_id'];}else _0xe53d4e[_0x367993]=this['parent_id'];});}return await MetaApi['updateMultiple'](_0x5c80d9,_0x3c92c4);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x183181=a0_0x43ad;(function(_0x2bc93e,_0x15984d){const _0x2210ab=a0_0x43ad,_0xe6bcb7=_0x2bc93e();while(!![]){try{const _0x415320=parseInt(_0x2210ab(0x169))/0x1+parseInt(_0x2210ab(0x15e))/0x2+parseInt(_0x2210ab(0x146))/0x3*(-parseInt(_0x2210ab(0x178))/0x4)+parseInt(_0x2210ab(0x14f))/0x5+parseInt(_0x2210ab(0x16a))/0x6+-parseInt(_0x2210ab(0x141))/0x7*(parseInt(_0x2210ab(0x16b))/0x8)+-parseInt(_0x2210ab(0x173))/0x9*(parseInt(_0x2210ab(0x17c))/0xa);if(_0x415320===_0x15984d)break;else _0xe6bcb7['push'](_0xe6bcb7['shift']());}catch(_0x1b8470){_0xe6bcb7['push'](_0xe6bcb7['shift']());}}}(a0_0x5d7f,0x2d2ee));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x43ad(_0x2aade6,_0x2fc74b){const _0x5d7fc9=a0_0x5d7f();return a0_0x43ad=function(_0x43ad2e,_0x4c82bb){_0x43ad2e=_0x43ad2e-0x141;let _0x1d536b=_0x5d7fc9[_0x43ad2e];return _0x1d536b;},a0_0x43ad(_0x2aade6,_0x2fc74b);}import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5d7f(){const _0x463b11=['getTabDetailHtml','getMainGrist','record','dataSet','options','operator','gridColumnConfig','shadowRoot','push','header','properties','activityDataSet','384786nHrQYz','columns','fetch','value','type','useButtonExport','exportable','grid_column','useMasterFilterForm','ox-grist','parseBasicGridConfigs','33546OVytwL','1172670IZpPyI','614360bOeAPg','grist','filterFormId','gridEmphasized','context','parseGristConfigs','pageInitialized','searchFields','207lAMxYn','render','getAndParseMenuMeta','filter','actions','6892GzTmfd','gridConfig','getData','beforeFetch','95990XOUJhs','isPage','importable','getBasicTabDetailStyles','14gCehKF','name','buttonConfig','masterElement','searchConfig','225gaFzsm','searchFieldValues','clear','connectedCallback','useFilterForm','getContextObject','detailElement','styles','main','1336390RHHCaa','gristConfigSet','firstUpdated'];a0_0x5d7f=function(){return _0x463b11;};return a0_0x5d7f();}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=_0x5aada2=>class extends MetaButtonMixin(_0x5aada2){static get[a0_0x183181(0x14d)](){const _0x2e35a1=a0_0x183181;return MetaApi[_0x2e35a1(0x17f)]();}static get[a0_0x183181(0x15c)](){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_0x183181(0x16c)](){const _0x10c90d=a0_0x183181;return this[_0x10c90d(0x144)][_0x10c90d(0x153)]();}get['filterForm'](){const _0xcd1d0c=a0_0x183181;return this[_0xcd1d0c(0x159)]?.['querySelector'](this[_0xcd1d0c(0x16d)]);}get[a0_0x183181(0x16f)](){const _0xfa14aa=a0_0x183181;let _0x5a1a46=MetaUiUtil[_0xfa14aa(0x14b)](this);return _0x5a1a46[_0xfa14aa(0x177)]&&delete _0x5a1a46[_0xfa14aa(0x177)],_0x5a1a46['exportable']&&delete _0x5a1a46[_0xfa14aa(0x164)],_0x5a1a46[_0xfa14aa(0x17e)]&&delete _0x5a1a46[_0xfa14aa(0x17e)],_0x5a1a46;}async['connectedCallback'](){const _0xebc6ae=a0_0x183181;this['gristId']=_0xebc6ae(0x167),this[_0xebc6ae(0x16d)]='ox-filters-form-base',await this[_0xebc6ae(0x175)](),this['isElement']&&await this[_0xebc6ae(0x170)](),this[_0xebc6ae(0x15d)]&&(this[_0xebc6ae(0x155)]=(this[_0xebc6ae(0x15d)]||{})[_0xebc6ae(0x14e)]),super['connectedCallback']&&await super[_0xebc6ae(0x149)]();}async['firstUpdated'](){const _0x560ff0=a0_0x183181;super[_0x560ff0(0x151)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x1535d4=a0_0x183181;this[_0x1535d4(0x17d)]&&await this[_0x1535d4(0x170)](),super[_0x1535d4(0x171)]&&await super[_0x1535d4(0x171)]();}[a0_0x183181(0x174)](){const _0x4134a0=a0_0x183181;return MetaApi[_0x4134a0(0x152)](this);}[a0_0x183181(0x168)](_0x2322fb){const _0x47ea7b=a0_0x183181;this[_0x47ea7b(0x179)]=_0x2322fb['grid'],this[_0x47ea7b(0x158)]=_0x2322fb[_0x47ea7b(0x165)],this[_0x47ea7b(0x145)]=_0x2322fb['search'],this[_0x47ea7b(0x16e)]=_0x2322fb[_0x47ea7b(0x16e)];}async[a0_0x183181(0x170)](){const _0x575b74=a0_0x183181;this[_0x575b74(0x150)]=await MetaApi['parseGridConfigSet'](this),this[_0x575b74(0x166)]=!0x0===this[_0x575b74(0x14a)],this[_0x575b74(0x14a)]=!0x1,this[_0x575b74(0x143)]=void 0x0,this[_0x575b74(0x163)]=!0x1,this['useButtonImport']=!0x1,this[_0x575b74(0x147)]=[],this[_0x575b74(0x172)]=this[_0x575b74(0x150)][_0x575b74(0x15f)][_0x575b74(0x176)](_0x576282=>_0x576282['filter'])['map'](_0x3a83df=>{const _0x46bb38=_0x575b74;let _0x36b550={'name':_0x3a83df[_0x46bb38(0x142)],'type':'search'===_0x3a83df['filter'][_0x46bb38(0x157)]?'search':_0x3a83df[_0x46bb38(0x162)],'label':_0x3a83df[_0x46bb38(0x15b)],'operator':_0x3a83df['filter'][_0x46bb38(0x157)]?_0x3a83df['filter'][_0x46bb38(0x157)]:'eq'};return _0x3a83df[_0x46bb38(0x176)][_0x46bb38(0x156)]&&(_0x36b550[_0x46bb38(0x156)]=_0x3a83df[_0x46bb38(0x176)][_0x46bb38(0x156)]),_0x3a83df[_0x46bb38(0x154)]['options']&&(_0x36b550[_0x46bb38(0x156)]=_0x3a83df[_0x46bb38(0x154)][_0x46bb38(0x156)]),_0x3a83df[_0x46bb38(0x176)][_0x46bb38(0x161)]&&this['searchFieldValues'][_0x46bb38(0x15a)]({'name':_0x36b550[_0x46bb38(0x142)],'operator':_0x36b550[_0x46bb38(0x157)],'value':_0x3a83df['filter']['value']}),delete _0x3a83df[_0x46bb38(0x176)],_0x36b550;});}async[a0_0x183181(0x160)](){const _0x4528af=a0_0x183181;await this[_0x4528af(0x16c)][_0x4528af(0x160)]();}async[a0_0x183181(0x17b)]({page:_0x429e38=0x0,limit:_0x24611a=0x0,sortings:_0x4e5c9c=[],filters:_0x58a6d6=[]}){const _0x417ce5=a0_0x183181;return this[_0x417ce5(0x144)]&&this[_0x417ce5(0x144)][_0x417ce5(0x148)]&&await this[_0x417ce5(0x144)]['clear'](),this[_0x417ce5(0x14c)]&&this['detailElement'][_0x417ce5(0x148)]&&await this[_0x417ce5(0x14c)][_0x417ce5(0x148)](),!0x0;}['getData'](){const _0x441763=a0_0x183181;return{'master':this['masterElement'][_0x441763(0x17a)](),'detail':this[_0x441763(0x14c)][_0x441763(0x17a)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x17f471=a0_0x386b;(function(_0x460e2c,_0x2fe28a){const _0xccf26b=a0_0x386b,_0x5c0c65=_0x460e2c();while(!![]){try{const _0x25532d=parseInt(_0xccf26b(0x191))/0x1+parseInt(_0xccf26b(0x17f))/0x2+parseInt(_0xccf26b(0x18f))/0x3+parseInt(_0xccf26b(0x186))/0x4+-parseInt(_0xccf26b(0x175))/0x5*(parseInt(_0xccf26b(0x178))/0x6)+parseInt(_0xccf26b(0x196))/0x7+-parseInt(_0xccf26b(0x18e))/0x8;if(_0x25532d===_0x2fe28a)break;else _0x5c0c65['push'](_0x5c0c65['shift']());}catch(_0x428707){_0x5c0c65['push'](_0x5c0c65['shift']());}}}(a0_0x4bef,0x4138f));function a0_0x4bef(){const _0x75b8f8=['keys','firstUpdated','472052TZNKOU','context','grist','connectedCallback','tab','meta-grist-element','param_field','mainFilterForm','849705eBDyOm','index','getAndParseMenuMeta','18EKPcUa','getBasicTabHtml','tabElements','render','getBasicTabStyles','dataSet','etcConfig','68062nRmNHR','activityDataSet','currentTabKey','{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22,\x20\x22index\x22:0\x20}','getData','parse','getContextObject','1872692ZPozJk','splice','styles','pageInitialized','clear','button','@things-factory/meta-ui/client/pages/meta-grist-element','tabRenderConfig','4420016zLtqaB','896346gENmgx','parseBasicTabConfigs','461054lXbdIt','route_name','length'];a0_0x4bef=function(){return _0x75b8f8;};return a0_0x4bef();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x386b(_0x229e9d,_0x25fa20){const _0x4bef44=a0_0x4bef();return a0_0x386b=function(_0x386ba2,_0x21015c){_0x386ba2=_0x386ba2-0x173;let _0x136535=_0x4bef44[_0x386ba2];return _0x136535;},a0_0x386b(_0x229e9d,_0x25fa20);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x504f62=>class extends MetaButtonMixin(_0x504f62){static get[a0_0x17f471(0x188)](){const _0x23e261=a0_0x17f471;return MetaApi[_0x23e261(0x17c)]();}static get['properties'](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x17f471(0x197)](){const _0x61086d=a0_0x17f471;return MetaUiUtil[_0x61086d(0x185)](this);}async[a0_0x17f471(0x199)](){const _0x1be4cc=a0_0x17f471;this[_0x1be4cc(0x181)]=void 0x0,await this[_0x1be4cc(0x177)](),this[_0x1be4cc(0x180)]&&(this[_0x1be4cc(0x17d)]=this['activityDataSet']),super[_0x1be4cc(0x199)]&&await super[_0x1be4cc(0x199)]();}async[a0_0x17f471(0x195)](){const _0x13270d=a0_0x17f471;super[_0x13270d(0x195)]&&await super[_0x13270d(0x195)]();}async[a0_0x17f471(0x189)](){const _0x39f176=a0_0x17f471;super['pageInitialized']&&await super[_0x39f176(0x189)]();}[a0_0x17f471(0x17b)](){const _0x2bfa23=a0_0x17f471;return MetaApi[_0x2bfa23(0x179)](this);}[a0_0x17f471(0x190)](_0x4d5412){const _0x1ec4e8=a0_0x17f471;if(!0x0===this['includeMainList']){let _0xe1c337=this[_0x1ec4e8(0x17e)]['main_tab_info'],_0x5edc15=JSON[_0x1ec4e8(0x184)](_0xe1c337||_0x1ec4e8(0x182));_0x5edc15[_0x1ec4e8(0x176)]>_0x4d5412[_0x1ec4e8(0x19a)][_0x1ec4e8(0x193)]&&(_0x5edc15[_0x1ec4e8(0x176)]=_0x4d5412[_0x1ec4e8(0x19a)]['length']),_0x4d5412['tab'][_0x1ec4e8(0x187)](_0x5edc15['index'],0x0,{'name':_0x5edc15['name'],'display':_0x5edc15['display'],'tagname':_0x1ec4e8(0x19b),'location':_0x1ec4e8(0x18c),'parent_field':'id','param_field':_0x1ec4e8(0x173),'menu':this[_0x1ec4e8(0x192)],'icon':_0x5edc15['icon'],'filter_from':!0x1,'main_filter_form':this[_0x1ec4e8(0x174)]});}this[_0x1ec4e8(0x18d)]=_0x4d5412[_0x1ec4e8(0x19a)],_0x4d5412[_0x1ec4e8(0x18b)]=[];}async['clear'](){const _0x4dc657=a0_0x17f471;if(this[_0x4dc657(0x17a)]){let _0x486257=Object[_0x4dc657(0x194)](this[_0x4dc657(0x17a)]);for(var _0x315151=0x0;_0x315151<_0x486257['length'];_0x315151++)await this[_0x4dc657(0x17a)][_0x486257[_0x315151]][_0x4dc657(0x18a)]();}}[a0_0x17f471(0x183)](){const _0x3d9df1=a0_0x17f471;let _0x206352={};return this[_0x3d9df1(0x17a)]&&Object['keys'](this['tabElements'])['forEach'](_0x3e2a71=>{const _0x4d92cf=_0x3d9df1;_0x206352[_0x3e2a71]=this[_0x4d92cf(0x17a)][_0x3e2a71][_0x4d92cf(0x183)]();}),_0x206352;}['getMainGrist'](){const _0x48682f=a0_0x17f471;if(this[_0x48682f(0x17a)]){let _0xf36c42=Object[_0x48682f(0x194)](this[_0x48682f(0x17a)]);return this[_0x48682f(0x17a)][_0xf36c42[0x0]][_0x48682f(0x198)];}}};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x309d4d=a0_0x27fe;(function(_0x461362,_0x1c288f){const _0xa03919=a0_0x27fe,_0x3f2981=_0x461362();while(!![]){try{const _0x1f0334=parseInt(_0xa03919(0xe4))/0x1*(-parseInt(_0xa03919(0x134))/0x2)+-parseInt(_0xa03919(0x12d))/0x3*(-parseInt(_0xa03919(0xee))/0x4)+parseInt(_0xa03919(0x101))/0x5*(-parseInt(_0xa03919(0x110))/0x6)+parseInt(_0xa03919(0x139))/0x7+-parseInt(_0xa03919(0x10b))/0x8*(parseInt(_0xa03919(0x133))/0x9)+parseInt(_0xa03919(0x10a))/0xa*(parseInt(_0xa03919(0x11b))/0xb)+parseInt(_0xa03919(0x10e))/0xc*(-parseInt(_0xa03919(0xdd))/0xd);if(_0x1f0334===_0x1c288f)break;else _0x3f2981['push'](_0x3f2981['shift']());}catch(_0x5a46bd){_0x3f2981['push'](_0x3f2981['shift']());}}}(a0_0x18cc,0x37198));import a0_0x3bd2fc from'graphql-tag';import{html}from'lit';import{CommonButtonStyles}from'@operato/styles';import{client}from'@operato/graphql';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';function a0_0x18cc(){const _0x3c13a1=['shadowRoot','push','fetch','tText','query','POPUP','search','length','draft','updateMultipleMetaActivity','object','getBasicGristStyles','9445fkZlAC','is_not_null','status','searchByPagination','menu','getGristSelectableConfig','MENU_PAGE_TYPE','activity-state-released','datetime','378610FqULNH','192648xbaSNi','save','routing','456ZhgWli','parse','384qHxPOK','GRID','define','activity-state-draft','custom-element','querySelector','CARD','SCREEN','showGraphqlErrorResponse','relation-menu','tTitle','121PqmszB','patchesForUpdateMultiple','startingType','name','bind','post','updater','delete','connectedCallback','meta_activity_list','deleteMetaActivities','activityType','left','gridMode','menus','menu_type','model','menuType','3NFzFuW','updatedAt','tButton','task','released','columns','9qBVmua','62goeoRC','pageInitialized','isNotEmpty','getGristColumnConfig2','description','878311KhBXhL','records','multiple','errors','tLabel','109824qGxVtD','fetchHandler','meta-activity-writer-element','install_activity','deprecated','filter','customElements','1168LzGwMz','deploy','string','activity-state-deprecated','like','getGristSelectorColumnConfig','meta-activity-list-page','\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','grid_view_options','forEach','743812DdSueo','center','styles','LIST','grist','getGristGuttersConfig','gridConfig'];a0_0x18cc=function(){return _0x3c13a1;};return a0_0x18cc();}function a0_0x27fe(_0x473307,_0xf9cc6f){const _0x18cc54=a0_0x18cc();return a0_0x27fe=function(_0x27fe72,_0x14fc85){_0x27fe72=_0x27fe72-0xdc;let _0x3d18f7=_0x18cc54[_0x27fe72];return _0x3d18f7;},a0_0x27fe(_0x473307,_0xf9cc6f);}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_0x309d4d(0xf0)](){const _0x193155=a0_0x309d4d;return MetaApi[_0x193155(0x100)]();}get['context'](){const _0x1d477f=a0_0x309d4d;return{'title':TermsUtil[_0x1d477f(0x11a)](_0x1d477f(0x124)),'actions':[{'title':TermsUtil[_0x1d477f(0x12f)](_0x1d477f(0x10c)),'action':this['save']['bind'](this),...CommonButtonStyles[_0x1d477f(0x10c)]},{'title':TermsUtil['tButton'](_0x1d477f(0x122)),'action':this[_0x1d477f(0x122)]['bind'](this),...CommonButtonStyles['delete']},{'title':TermsUtil[_0x1d477f(0x12f)](_0x1d477f(0xe0)),'action':this[_0x1d477f(0xe5)][_0x1d477f(0x11f)](this),'icon':'system_update','emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}]};}get[a0_0x309d4d(0xf2)](){const _0x549c72=a0_0x309d4d;return this[_0x549c72(0xf5)][_0x549c72(0x115)]('ox-grist');}async[a0_0x309d4d(0x123)](){const _0x3cb8c9=a0_0x309d4d,_0x1f391c=[{'display':'','value':''},{'display':TermsUtil[_0x3cb8c9(0xdc)](_0x3cb8c9(0x113)),'value':_0x3cb8c9(0xfd)},{'display':TermsUtil[_0x3cb8c9(0xdc)](_0x3cb8c9(0x108)),'value':_0x3cb8c9(0x131)},{'display':TermsUtil[_0x3cb8c9(0xdc)](_0x3cb8c9(0xe7)),'value':_0x3cb8c9(0xe1)}];this[_0x3cb8c9(0xec)]=[_0x3cb8c9(0xf1),_0x3cb8c9(0x111),_0x3cb8c9(0x116)],this[_0x3cb8c9(0x128)]=MetaApi['isMobileEnv']()?'LIST':_0x3cb8c9(0x111),this[_0x3cb8c9(0xf4)]={'option':{'view_mode':this['grid_view_options']},'rows':MetaApi[_0x3cb8c9(0x106)](!0x0),'pagination':MetaApi['getGristPagination50Config'](),'sorters':[{'name':'name','desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x3cb8c9(0xf3)](!0x0,!0x1),{'type':'string','name':'id','sortable':!0x1,'hidden':!0x0},MetaUiUtil['getGristColumnConfig2'](_0x3cb8c9(0xe6),_0x3cb8c9(0x11e),_0x3cb8c9(0x11e),'left',!0x0,!0x0,0xc8),MetaUiUtil[_0x3cb8c9(0x137)](_0x3cb8c9(0xe6),_0x3cb8c9(0x138),'description',_0x3cb8c9(0x127),!0x0,!0x0,0x12c),MetaUiUtil[_0x3cb8c9(0xe9)]('state',_0x3cb8c9(0x103),_0x3cb8c9(0xef),!0x0,0x64,!0x1,_0x1f391c),{'type':'resource-object','name':_0x3cb8c9(0x105),'header':TermsUtil[_0x3cb8c9(0xdc)](_0x3cb8c9(0x105)),'record':{'editable':!0x0,'options':{'queryName':_0x3cb8c9(0x129),'basicArgs':{'filters':[{'name':_0x3cb8c9(0x12c),'operator':'in','value':[_0x3cb8c9(0x117),_0x3cb8c9(0xfa),'HIDDEN-PAGE']},{'name':_0x3cb8c9(0x10d),'operator':'is_not_null','value':''},{'name':'template','operator':_0x3cb8c9(0x102),'value':''}]},'columns':[{'name':'id','hidden':!0x0},{'name':_0x3cb8c9(0x11e),'header':TermsUtil['tLabel']('name'),'width':0xfa,'filter':_0x3cb8c9(0xfb)},await MetaApi['getGristCodeSelectorColumnConfig'](_0x3cb8c9(0x12c),_0x3cb8c9(0x12a),_0x3cb8c9(0x127),!0x1,0x6e,!0x1,_0x3cb8c9(0x107)),MetaUiUtil[_0x3cb8c9(0x137)](_0x3cb8c9(0xe6),_0x3cb8c9(0x10d),_0x3cb8c9(0x10d),_0x3cb8c9(0x127),!0x1,!0x1,0xfa)],'list':{'fields':['name',_0x3cb8c9(0x10d)]},'nameField':_0x3cb8c9(0x10d)}},'width':0xeb},MetaUiUtil['getGristColumnConfig2'](_0x3cb8c9(0xff),_0x3cb8c9(0x121),_0x3cb8c9(0x121),_0x3cb8c9(0xef),!0x1,!0x1,0x78),MetaUiUtil['getGristColumnConfig2'](_0x3cb8c9(0x109),_0x3cb8c9(0x12e),'updated_at',_0x3cb8c9(0xef),!0x1,!0x0,0xb4),{'name':_0x3cb8c9(0x126),'hidden':!0x0},{'name':_0x3cb8c9(0x13b),'hidden':!0x0},{'name':_0x3cb8c9(0x11d),'hidden':!0x0}],'sorters':[{'name':'name','desc':!0x1}]};let _0x879327={'name':'like'};this[_0x3cb8c9(0xf4)][_0x3cb8c9(0x132)][_0x3cb8c9(0xe2)](_0x4c7c0e=>_0x879327[_0x4c7c0e[_0x3cb8c9(0x11e)]])[_0x3cb8c9(0xed)](_0x5b274c=>{const _0x447611=_0x3cb8c9;_0x5b274c['filter']=_0x879327[_0x5b274c[_0x447611(0x11e)]];}),this[_0x3cb8c9(0x123)]&&await super['connectedCallback']();}async[a0_0x309d4d(0xde)]({page:_0x16b2d2,limit:_0x195e0f,sorters:_0x189481=[],filters:_0x2acf99=[]}){const _0xb2c290=a0_0x309d4d;_0x2acf99[_0xb2c290(0xf6)]({'name':_0xb2c290(0x12b),'operator':_0xb2c290(0xe8),'value':'\x22relation-menu\x22'});let _0x5dfedf=MetaApi['getSelectColumns'](this[_0xb2c290(0xf4)][_0xb2c290(0x132)]['filter'](_0x5ab6fc=>_0xb2c290(0x105)!=_0x5ab6fc[_0xb2c290(0x11e)]));_0x5dfedf+=_0xb2c290(0xeb);let _0x5d0316=await MetaApi[_0xb2c290(0x104)]('metaActivities',_0x2acf99,_0x189481,_0x16b2d2,_0x195e0f,_0x5dfedf);return _0x5d0316[_0xb2c290(0x13a)][_0xb2c290(0xed)](_0x14d5ab=>{const _0x532bd6=_0xb2c290;let _0x2a3d36=_0x14d5ab['model'][_0x532bd6(0xe2)](_0x4b89d2=>_0x532bd6(0x119)==_0x4b89d2[_0x532bd6(0x11e)]);_0x2a3d36&&_0x2a3d36[_0x532bd6(0xfc)]>0x0&&(_0x14d5ab[_0x532bd6(0x105)]=JSON[_0x532bd6(0x10f)](_0x2a3d36[0x0]['description'])),delete _0x14d5ab[_0x532bd6(0x12b)];}),_0x5d0316;}async[a0_0x309d4d(0xe5)](){const _0xf8b82=a0_0x309d4d;try{var _0x55c667=await client[_0xf8b82(0xf9)]({'query':a0_0x3bd2fc`
|
|
2
2
|
mutation {
|
|
3
3
|
installActivityTemplate
|
|
4
4
|
}
|
|
5
|
-
`});if(!
|
|
5
|
+
`});if(!_0x55c667[_0xf8b82(0x13c)])return UiUtil['showToast']('info',TermsUtil[_0xf8b82(0xf8)]('install_activity_success')),!0x0;ServiceUtil[_0xf8b82(0x118)](_0x55c667);}catch(_0x18819b){ServiceUtil['showGraphqlException'](_0x18819b);}}async[a0_0x309d4d(0x10c)](){const _0xd1bc9b=a0_0x309d4d;let _0x4d993a=ServiceUtil[_0xd1bc9b(0x11c)](this[_0xd1bc9b(0xf2)]);if(ValueUtil[_0xd1bc9b(0x136)](_0x4d993a)){_0x4d993a[_0xd1bc9b(0xed)](_0x25ffde=>{const _0x44f77f=_0xd1bc9b;Object['assign'](_0x25ffde,{'uiSource':_0x44f77f(0xdf),'uiType':_0x44f77f(0x114),'viewSource':'meta-activity-viewer-element','viewType':'custom-element'}),_0x25ffde['multiple']||(_0x25ffde[_0x44f77f(0x13b)]='single'),_0x25ffde['activityType']||(_0x25ffde['activityType']=_0x44f77f(0x130)),_0x25ffde['startingType']||(_0x25ffde['startingType']=_0x44f77f(0x120));});let _0x2c87c2=await ServiceUtil['updateMultiple'](_0xd1bc9b(0xfe),_0x4d993a);if(_0x2c87c2)return this[_0xd1bc9b(0xf2)][_0xd1bc9b(0xf7)](),_0x2c87c2;}}async[a0_0x309d4d(0x122)](){const _0x2d77cc=a0_0x309d4d;await MetaApi['deleteListByGristSelected'](this[_0x2d77cc(0xf2)],_0x2d77cc(0x125));}async[a0_0x309d4d(0x135)](){}['render'](){const _0x26d306=a0_0x309d4d;return html`
|
|
6
6
|
<ox-grist
|
|
7
7
|
auto-fetch
|
|
8
8
|
id="ox-grist"
|
|
9
|
-
.config=${this[
|
|
10
|
-
.mode=${this[
|
|
11
|
-
.fetchHandler=${this['fetchHandler'][
|
|
9
|
+
.config=${this['gridConfig']}
|
|
10
|
+
.mode=${this[_0x26d306(0x128)]}
|
|
11
|
+
.fetchHandler=${this['fetchHandler']['bind'](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_0x309d4d(0xe3)][a0_0x309d4d(0x112)](a0_0x309d4d(0xea),MetaActivityListPage);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements[
|
|
1
|
+
const a0_0x3c9ea6=a0_0x2bd8;(function(_0x27ec15,_0x483d79){const _0x460481=a0_0x2bd8,_0x16dd34=_0x27ec15();while(!![]){try{const _0x42b846=-parseInt(_0x460481(0x1d3))/0x1+parseInt(_0x460481(0x1db))/0x2*(parseInt(_0x460481(0x1d4))/0x3)+parseInt(_0x460481(0x1d5))/0x4+-parseInt(_0x460481(0x1d9))/0x5*(-parseInt(_0x460481(0x1e3))/0x6)+parseInt(_0x460481(0x1e2))/0x7+parseInt(_0x460481(0x1e7))/0x8*(-parseInt(_0x460481(0x1da))/0x9)+-parseInt(_0x460481(0x1d2))/0xa;if(_0x42b846===_0x483d79)break;else _0x16dd34['push'](_0x16dd34['shift']());}catch(_0xa0b61e){_0x16dd34['push'](_0x16dd34['shift']());}}}(a0_0x596d,0x6e287));import a0_0x181ae2 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';function a0_0x2bd8(_0x54704f,_0x5ec82f){const _0x596d25=a0_0x596d();return a0_0x2bd8=function(_0x2bd807,_0x5bdabb){_0x2bd807=_0x2bd807-0x1d1;let _0x56d6e0=_0x596d25[_0x2bd807];return _0x56d6e0;},a0_0x2bd8(_0x54704f,_0x5ec82f);}import{MetaActivityMixin}from'./meta-activiy-mixin.js';function a0_0x596d(){const _0x2fcd81=['name','output','render','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_readonly=true\x20is_detail=true></','\x20id=\x27','4583663RIpKwr','98376hwxdXV','tagName','contentElement','relationMenu','1802104fYGPCR','htmlToElement','2182560WOpIlm','171440dFOjZW','102819qhYPBq','1630020RDAmlH','customData','isEmpty','define','155ylrwAH','36XrGaVy','10paVbvQ','activityDataSet'];a0_0x596d=function(){return _0x2fcd81;};return a0_0x596d();}export class MetaActivityViewerElement extends MetaActivityMixin(localize(i18next)(LitElement)){[a0_0x3c9ea6(0x1df)](){const _0x4c8ae6=a0_0x3c9ea6;if(this['relationMenu']&&!this[_0x4c8ae6(0x1e5)]){let _0x45e8b9=this[_0x4c8ae6(0x1e6)][_0x4c8ae6(0x1e4)],_0x1b9702=this[_0x4c8ae6(0x1e6)]['routing'],_0x3d9513='<'+_0x45e8b9+_0x4c8ae6(0x1e1)+this[_0x4c8ae6(0x1e6)][_0x4c8ae6(0x1dd)]+'\x27\x20route_name=\x27'+_0x1b9702+_0x4c8ae6(0x1e0)+_0x45e8b9+'>';this[_0x4c8ae6(0x1e5)]=UiUtil[_0x4c8ae6(0x1d1)](_0x3d9513),this['contentElement'][_0x4c8ae6(0x1dc)]=ValueUtil[_0x4c8ae6(0x1d7)](this[_0x4c8ae6(0x1de)])?void 0x0:this['output'][_0x4c8ae6(0x1d6)];}return html`
|
|
2
|
+
${this[_0x4c8ae6(0x1e5)]}
|
|
3
|
+
`;}}customElements[a0_0x3c9ea6(0x1d8)]('meta-activity-viewer-element',MetaActivityViewerElement);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements[
|
|
1
|
+
const a0_0x1c650a=a0_0xcca4;(function(_0x1007c7,_0x2424e3){const _0x77ee4f=a0_0xcca4,_0x476dc0=_0x1007c7();while(!![]){try{const _0x1bcc01=-parseInt(_0x77ee4f(0xf5))/0x1+parseInt(_0x77ee4f(0xf1))/0x2*(-parseInt(_0x77ee4f(0xf7))/0x3)+-parseInt(_0x77ee4f(0xf3))/0x4+-parseInt(_0x77ee4f(0xfd))/0x5*(parseInt(_0x77ee4f(0x107))/0x6)+-parseInt(_0x77ee4f(0xff))/0x7+-parseInt(_0x77ee4f(0xec))/0x8*(-parseInt(_0x77ee4f(0xf4))/0x9)+parseInt(_0x77ee4f(0x102))/0xa;if(_0x1bcc01===_0x2424e3)break;else _0x476dc0['push'](_0x476dc0['shift']());}catch(_0x1bbd45){_0x476dc0['push'](_0x476dc0['shift']());}}}(a0_0x2a72,0x4a83d));import{html,LitElement}from'lit';function a0_0x2a72(){const _0x3bec9e=['isEmpty','\x27\x20route_name=\x27','activityDataSet','56474nSaSFT','name','1280296BHBFeK','9fzxhse','252811XzILTW','connectedCallback','15xhYFLG','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></','render','removeEventListener','getData','\x20id=\x27','90KVbtLm','contentElement','412370HudZcl','_onDataChanged','meta-activity-writer-element','13926680jzczVO','relationMenu','customData','tagName','output','159228EVHgpV','dispatchEvent','routing','1305672jxiFQY','data-changed'];a0_0x2a72=function(){return _0x3bec9e;};return a0_0x2a72();}function a0_0xcca4(_0x29fc22,_0x167981){const _0x2a727a=a0_0x2a72();return a0_0xcca4=function(_0xcca4e1,_0x3105a1){_0xcca4e1=_0xcca4e1-0xeb;let _0x1bb962=_0x2a727a[_0xcca4e1];return _0x1bb962;},a0_0xcca4(_0x29fc22,_0x167981);}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_0x1c650a(0xf6)](){const _0x48b121=a0_0x1c650a;await super['connectedCallback'](),this['addEventListener'](_0x48b121(0xed),this[_0x48b121(0x100)]);}['disconnectedCallback'](){const _0x3e4b5e=a0_0x1c650a;this[_0x3e4b5e(0xfa)](_0x3e4b5e(0xed),this[_0x3e4b5e(0x100)]);}['_onDataChanged'](_0x1e7dcc){const _0x4de988=a0_0x1c650a;let _0x4d6df7=this[_0x4de988(0xfe)][_0x4de988(0xfb)]();this[_0x4de988(0x108)](new CustomEvent('change',{'detail':{'customData':_0x4d6df7}}));}[a0_0x1c650a(0xf9)](){const _0x513820=a0_0x1c650a;if(this[_0x513820(0x103)]&&!this['contentElement']){let _0x262c9e=this['relationMenu'][_0x513820(0x105)],_0x54c590=this[_0x513820(0x103)][_0x513820(0xeb)],_0x4e3762='<'+_0x262c9e+_0x513820(0xfc)+this[_0x513820(0x103)][_0x513820(0xf2)]+_0x513820(0xef)+_0x54c590+_0x513820(0xf8)+_0x262c9e+'>';this[_0x513820(0xfe)]=UiUtil['htmlToElement'](_0x4e3762),this[_0x513820(0xfe)][_0x513820(0xf0)]=ValueUtil[_0x513820(0xee)](this[_0x513820(0x106)])?void 0x0:this['output'][_0x513820(0x104)];}return html`
|
|
2
|
+
${this[_0x513820(0xfe)]}
|
|
3
|
+
`;}}customElements['define'](a0_0x1c650a(0x101),MetaActivityWriterElement);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x385348=a0_0x14eb;(function(_0x418069,_0x272ef2){const _0x5e6f4e=a0_0x14eb,_0x325df5=_0x418069();while(!![]){try{const _0x37ce78=parseInt(_0x5e6f4e(0x20e))/0x1*(parseInt(_0x5e6f4e(0x20a))/0x2)+parseInt(_0x5e6f4e(0x208))/0x3+parseInt(_0x5e6f4e(0x205))/0x4+parseInt(_0x5e6f4e(0x204))/0x5+-parseInt(_0x5e6f4e(0x1fe))/0x6*(-parseInt(_0x5e6f4e(0x200))/0x7)+-parseInt(_0x5e6f4e(0x1f3))/0x8+-parseInt(_0x5e6f4e(0x203))/0x9*(parseInt(_0x5e6f4e(0x1fc))/0xa);if(_0x37ce78===_0x272ef2)break;else _0x325df5['push'](_0x325df5['shift']());}catch(_0x12a7f7){_0x325df5['push'](_0x325df5['shift']());}}}(a0_0x357f,0x7047c));function a0_0x357f(){const _0x4fde37=['1063268cGqYmT','model','properties','1376793fvjwCX','relation-menu','2MVwdCh','category','value_is_not_exist','showToast','187855GUQFBB','getActivity','replace','info','resourceUrl','-element','query','activityId','connectedCallback','menu','getMenuInfo','6155248kyKUYV','relationMenu','id,category,resourceUrl','data','tagName','records','length','styles','-page','10ANhrlx','routing','95280QoEMJB','activity','245eXoJWT','menus','name','7244568wFfybd','2829275FukkUS'];a0_0x357f=function(){return _0x4fde37;};return a0_0x357f();}import a0_0x5ca40c from'graphql-tag';import{css}from'lit';import{client}from'@operato/graphql';import{ServiceUtil}from'./../../utils/service-util';function a0_0x14eb(_0x97fb47,_0x1e0bb0){const _0x357f85=a0_0x357f();return a0_0x14eb=function(_0x14eb63,_0x145424){_0x14eb63=_0x14eb63-0x1ee;let _0x3da037=_0x357f85[_0x14eb63];return _0x3da037;},a0_0x14eb(_0x97fb47,_0x1e0bb0);}import{MetaApi}from'./../../utils/meta-api';export const MetaActivityMixin=_0x5d9489=>class extends _0x5d9489{static get[a0_0x385348(0x207)](){return{'activityId':String,'input':Object,'output':Object};}static get[a0_0x385348(0x1fa)](){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_0x385348(0x1f0)](){const _0x550a30=a0_0x385348;await this['getActivity'](),await super[_0x550a30(0x1f0)]();}async[a0_0x385348(0x20f)](){const _0x454e09=a0_0x385348,_0x223911=await client[_0x454e09(0x1ee)]({'query':a0_0x5ca40c`
|
|
9
9
|
query activity($id: String!) {
|
|
10
10
|
activity(id: $id) {
|
|
11
11
|
id
|
|
@@ -15,4 +15,4 @@ const a0_0x2b97a0=a0_0x117d;(function(_0x337ea1,_0x819248){const _0x3cc8ea=a0_0x
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`,'variables':{'id':this[
|
|
18
|
+
`,'variables':{'id':this[_0x454e09(0x1ef)]}});let _0x29e0ac;this['activity']=_0x223911[_0x454e09(0x1f6)][_0x454e09(0x1ff)],this['activity'][_0x454e09(0x206)]?.['forEach'](_0x3bd2b2=>{const _0x69d9d1=_0x454e09;_0x69d9d1(0x209)==_0x3bd2b2[_0x69d9d1(0x202)]&&(_0x29e0ac=JSON['parse'](_0x3bd2b2['description']));}),this['relationMenu']=_0x29e0ac,await this[_0x454e09(0x1f2)](this[_0x454e09(0x1f4)]['id'],this[_0x454e09(0x1f4)][_0x454e09(0x1fd)]);}async[a0_0x385348(0x1f2)](_0x48bee3,_0x3a45e3){const _0x12a6ef=a0_0x385348;let _0x5bfb17=[{'name':'id','operator':'eq','value':_0x48bee3}],_0x59ef9c=await ServiceUtil['searchByPagination'](_0x12a6ef(0x201),_0x5bfb17,null,0x0,0x0,_0x12a6ef(0x1f5));if(!_0x59ef9c&&0x0==_0x59ef9c[_0x12a6ef(0x1f9)]){let _0x33dbb1=TermsUtil['tText'](_0x12a6ef(0x20c),{'value':TermsUtil['tMenu'](_0x12a6ef(0x1f1))+'\x20'+_0x3a45e3});throw MetaApi[_0x12a6ef(0x20d)](_0x12a6ef(0x211),_0x33dbb1),new Error(_0x33dbb1);}let _0x25de3b=_0x59ef9c[_0x12a6ef(0x1f8)][0x0];_0x25de3b[_0x12a6ef(0x1f7)]=_0x25de3b[_0x12a6ef(0x20b)]['endsWith'](_0x12a6ef(0x1fb))?_0x25de3b[_0x12a6ef(0x20b)][_0x12a6ef(0x210)]('-page',_0x12a6ef(0x213)):_0x25de3b[_0x12a6ef(0x20b)],_0x25de3b[_0x12a6ef(0x212)]=_0x25de3b['resourceUrl'][_0x12a6ef(0x210)](_0x25de3b[_0x12a6ef(0x20b)],_0x25de3b[_0x12a6ef(0x1f7)]),Object['assign'](this[_0x12a6ef(0x1f4)],_0x25de3b);}};
|