@things-factory/meta-ui 6.0.129 → 6.0.130
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/bootstrap.js +4 -21
- package/client/component/filter/filter-form-resource-code-select.js +9 -9
- package/client/component/filter/filter-grist-resource-code-select.js +9 -9
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -9
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -1
- package/client/component/grist/selector/ox-resource-code-selector-popup.js +11 -11
- package/client/index.js +4 -0
- 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 -0
- 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 +7 -7
- 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 +15 -15
- 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 -0
- package/client/pages/meta-main-tab-page.js +1 -0
- 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 +127 -96
- 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 +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +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/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_0x11d83e=a0_0x23e6;(function(_0x592a0e,_0x16a529){const _0x11115b=a0_0x23e6,_0x99ffc2=_0x592a0e();while(!![]){try{const _0x43f576=-parseInt(_0x11115b(0x78))/0x1+-parseInt(_0x11115b(0x9b))/0x2*(parseInt(_0x11115b(0x9a))/0x3)+-parseInt(_0x11115b(0x9d))/0x4+parseInt(_0x11115b(0xbb))/0x5*(-parseInt(_0x11115b(0x88))/0x6)+-parseInt(_0x11115b(0x7f))/0x7*(parseInt(_0x11115b(0x9f))/0x8)+-parseInt(_0x11115b(0x81))/0x9+parseInt(_0x11115b(0xaf))/0xa*(parseInt(_0x11115b(0xa7))/0xb);if(_0x43f576===_0x16a529)break;else _0x99ffc2['push'](_0x99ffc2['shift']());}catch(_0x65b694){_0x99ffc2['push'](_0x99ffc2['shift']());}}}(a0_0x53d5,0xa304b));function a0_0x53d5(){const _0x44bb6b=['shadowRoot','deleteByIds','filter','tTitle','grist','styles','connectedCallback','meta-tab-element','search','279ufizQF','17746hkHQmY','parseGristConfigs','4800868gMBzDm','isElement','1275048WyTuWd','menuInfo','clear','import','parseBasicGridConfigs','gristConfigSet','save','type','4048ySynkc','startsWith','value','exportable','___data','importable','actions','firstUpdated','134990GDXdeG','operator','getData','ox-filters-form-base','useMasterFilterForm','getBasicGristTabStyles','context','querySelector','forEach','updateMultiple','options','getSelectedIdList','4090QZeOHw','parse','getAndParseMenuMeta','isPage','filterFormId','exportableData','fetch','#detail','name','export','1069774zdwKhG','title','useFilterForm','getContextObject','find','gristId','main','7YkUipi','render','6470694adNtZK','delete','renderRoot','ox-grist','pageInitialized','push','isNotEmpty','2394KkeEXk','searchConfig','map','records','columns','getParams','searchFieldValues','activityDataSet','parseGridConfigSet'];a0_0x53d5=function(){return _0x44bb6b;};return a0_0x53d5();}import{html}from'lit';function a0_0x23e6(_0x4822ed,_0x147fa4){const _0x53d5e4=a0_0x53d5();return a0_0x23e6=function(_0x23e6e5,_0x497094){_0x23e6e5=_0x23e6e5-0x73;let _0x1d18f5=_0x53d5e4[_0x23e6e5];return _0x1d18f5;},a0_0x23e6(_0x4822ed,_0x147fa4);}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';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x51bbc0=>class extends MetaButtonMixin(_0x51bbc0){static get[a0_0x11d83e(0x96)](){const _0x4c1e84=a0_0x11d83e;return MetaApi[_0x4c1e84(0xb4)]();}static get['properties'](){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};}get[a0_0x11d83e(0x95)](){const _0x42fd40=a0_0x11d83e;return this[_0x42fd40(0x83)][_0x42fd40(0xb6)](this[_0x42fd40(0x7d)]);}get['filterForm'](){const _0x478735=a0_0x11d83e;return this[_0x478735(0x91)]?.[_0x478735(0xb6)](this[_0x478735(0xbf)]);}get['detailElement'](){const _0x5642b4=a0_0x11d83e;return this[_0x5642b4(0x91)]['querySelector'](_0x5642b4(0x75));}get[a0_0x11d83e(0xb5)](){const _0x3f2d9b=a0_0x11d83e;let _0x437cad=MetaUiUtil[_0x3f2d9b(0x7b)](this);return _0x437cad[_0x3f2d9b(0xad)]&&delete _0x437cad['actions'],_0x437cad[_0x3f2d9b(0xaa)]&&delete _0x437cad[_0x3f2d9b(0xaa)],_0x437cad[_0x3f2d9b(0xac)]&&delete _0x437cad[_0x3f2d9b(0xac)],_0x437cad;}async[a0_0x11d83e(0x97)](){const _0x24f19d=a0_0x11d83e;this['gristId']=_0x24f19d(0x84),this['filterFormId']=_0x24f19d(0xb2),await this[_0x24f19d(0xbd)](),this[_0x24f19d(0x9e)]&&await this['parseGristConfigs'](),this[_0x24f19d(0x8f)]&&(this['dataSet']=(this[_0x24f19d(0x8f)]||{})[_0x24f19d(0x7e)]),super[_0x24f19d(0x97)]&&await super[_0x24f19d(0x97)]();}async['firstUpdated'](){const _0x8d1e87=a0_0x11d83e;super[_0x8d1e87(0xae)]&&await super[_0x8d1e87(0xae)]();}async['pageInitialized'](){const _0x1d444e=a0_0x11d83e;this[_0x1d444e(0xbe)]&&await this[_0x1d444e(0x9c)](),super[_0x1d444e(0x85)]&&await super[_0x1d444e(0x85)]();}[a0_0x11d83e(0x80)](){return MetaApi['getGristTabHtml'](this);}[a0_0x11d83e(0xa3)](_0x248737){const _0x30c248=a0_0x11d83e;this['gridConfig']=_0x248737['grid'],this['gridColumnConfig']=_0x248737['grid_column'],this[_0x30c248(0x89)]=_0x248737[_0x30c248(0x99)];}async[a0_0x11d83e(0x9c)](){const _0x2f6c85=a0_0x11d83e;this[_0x2f6c85(0xa4)]=await MetaApi[_0x2f6c85(0x90)](this),this[_0x2f6c85(0xb3)]=!0x0===this[_0x2f6c85(0x7a)],this[_0x2f6c85(0x7a)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this[_0x2f6c85(0xa4)][_0x2f6c85(0x8c)][_0x2f6c85(0x93)](_0x92b3ce=>_0x92b3ce[_0x2f6c85(0x93)])[_0x2f6c85(0x8a)](_0x272282=>{const _0x15c8d8=_0x2f6c85;let _0x548b53={'name':_0x272282[_0x15c8d8(0x76)],'type':_0x15c8d8(0x99)===_0x272282[_0x15c8d8(0x93)][_0x15c8d8(0xb0)]?_0x15c8d8(0x99):_0x272282[_0x15c8d8(0xa6)],'label':_0x272282['header'],'operator':_0x272282[_0x15c8d8(0x93)][_0x15c8d8(0xb0)]?_0x272282[_0x15c8d8(0x93)][_0x15c8d8(0xb0)]:'eq'};return _0x272282['record'][_0x15c8d8(0xb9)]&&(_0x548b53[_0x15c8d8(0xb9)]=_0x272282['record'][_0x15c8d8(0xb9)]),_0x272282['filter'][_0x15c8d8(0xa9)]&&this[_0x15c8d8(0x8e)][_0x15c8d8(0x86)]({'name':_0x548b53[_0x15c8d8(0x76)],'operator':_0x548b53['operator'],'value':_0x272282[_0x15c8d8(0x93)]['value']}),_0x548b53;});}async[a0_0x11d83e(0x74)](){const _0x3c3ab3=a0_0x11d83e;await this[_0x3c3ab3(0x95)]['fetch']();}async['beforeFetch']({page:_0x388f17=0x0,limit:_0x50d527=0x0,sortings:_0x68517b=[],filters:_0x48f241=[]}){const _0x592364=a0_0x11d83e;let _0xdd76d2=this[_0x592364(0x83)]['querySelector'](_0x592364(0x98));return await _0xdd76d2[_0x592364(0xa1)](),!0x0;}async[a0_0x11d83e(0xa5)](){const _0x9c366b=a0_0x11d83e;let _0x2c829e=MetaApi['patchesForUpdateMultiple'](this[_0x9c366b(0x95)]);!!ValueUtil[_0x9c366b(0x87)](_0x2c829e)&&await this[_0x9c366b(0xb8)](_0x2c829e)&&this[_0x9c366b(0x74)]();}async[a0_0x11d83e(0x7c)](){const _0x288cf8=a0_0x11d83e;let _0x56d572=MetaApi[_0x288cf8(0xba)](this[_0x288cf8(0x95)],!0x0);return ValueUtil[_0x288cf8(0x87)](_0x56d572)?await this['findOne'](_0x56d572[0x0]):{};}async[a0_0x11d83e(0x82)](){const _0x113b1f=a0_0x11d83e;let _0xf4c737=MetaApi[_0x113b1f(0xba)](this[_0x113b1f(0x95)],!0x0);!!ValueUtil['isNotEmpty'](_0xf4c737)&&await this[_0x113b1f(0x92)](_0xf4c737)&&this[_0x113b1f(0x74)]();}async[a0_0x11d83e(0x77)](){const _0x362e4a=a0_0x11d83e;let _0x2cfd43=TermsUtil[_0x362e4a(0x94)](ValueUtil[_0x362e4a(0x8d)](this[_0x362e4a(0xa0)],_0x362e4a(0x79)));return await MetaApi[_0x362e4a(0x73)](this[_0x362e4a(0x9e)],_0x2cfd43,this['grist']);}async[a0_0x11d83e(0xa2)](){}['getData'](){const _0x560adf=a0_0x11d83e;let _0x25240b=this['grist'][_0x560adf(0xab)][_0x560adf(0x8b)];return _0x25240b=JSON[_0x560adf(0xbc)](JSON['stringify'](_0x25240b)),_0x25240b[_0x560adf(0xb7)](_0x49c55f=>{const _0x407b10=_0x560adf;Object['keys'](_0x49c55f)[_0x407b10(0xb7)](_0x17e186=>{const _0x54793e=_0x407b10;_0x17e186[_0x54793e(0xa8)]('__')&&delete _0x49c55f[_0x17e186];});}),{'main':_0x25240b,'detail':this[_0x560adf(0x83)][_0x560adf(0xb6)](_0x560adf(0x98))[_0x560adf(0xb1)]()};}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x417bdc=a0_0x4a74;(function(_0x195057,_0x1081b3){const _0x229806=a0_0x4a74,_0x52e2cb=_0x195057();while(!![]){try{const _0x4e3559=-parseInt(_0x229806(0x206))/0x1+parseInt(_0x229806(0x1e0))/0x2+parseInt(_0x229806(0x1de))/0x3+parseInt(_0x229806(0x1e9))/0x4*(parseInt(_0x229806(0x203))/0x5)+parseInt(_0x229806(0x202))/0x6+parseInt(_0x229806(0x20a))/0x7+-parseInt(_0x229806(0x1d6))/0x8;if(_0x4e3559===_0x1081b3)break;else _0x52e2cb['push'](_0x52e2cb['shift']());}catch(_0x4919d6){_0x52e2cb['push'](_0x52e2cb['shift']());}}}(a0_0x3a2c,0x2d989));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3a2c(){const _0xa0da2b=['getBasicMainTabStyles','search','getData','fetch','369891eFrKEL','querySelector','485138xrPJyY','pageInitialized','filterFormId','gridConfig','masterElement','push','searchConfig','ox-grist','header','516148imjSxA','main','type','activityDataSet','filter','grist','operator','parseBasicGridConfigs','parseGristConfigs','parseGridConfigSet','firstUpdated','useFilterForm','exportable','useButtonExport','getContextObject','useButtonImport','importable','getMainTabHtml','options','record','name','value','clear','grid_column','filterForm','1016586ISDIaW','5clsjTG','actions','map','318880HVfklP','getAndParseMenuMeta','gridColumnConfig','connectedCallback','33712okMIxC','context','searchFieldValues','1308072pjfiWR','styles','beforeFetch','shadowRoot'];a0_0x3a2c=function(){return _0xa0da2b;};return a0_0x3a2c();}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x4a74(_0x5cd27a,_0xea64c9){const _0x3a2ca9=a0_0x3a2c();return a0_0x4a74=function(_0x4a749e,_0x21f3d3){_0x4a749e=_0x4a749e-0x1d5;let _0x4dacab=_0x3a2ca9[_0x4a749e];return _0x4dacab;},a0_0x4a74(_0x5cd27a,_0xea64c9);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x4c710e=>class extends MetaButtonMixin(_0x4c710e){static get[a0_0x417bdc(0x1d7)](){const _0x552ef1=a0_0x417bdc;return MetaApi[_0x552ef1(0x1da)]();}static get['properties'](){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};}get[a0_0x417bdc(0x1ee)](){const _0x2c1371=a0_0x417bdc;return this[_0x2c1371(0x1e4)]['getMainGrist']();}get[a0_0x417bdc(0x201)](){const _0xdf5fd3=a0_0x417bdc;return this[_0xdf5fd3(0x1d9)]?.[_0xdf5fd3(0x1df)](this[_0xdf5fd3(0x1e2)]);}get[a0_0x417bdc(0x20b)](){const _0xb553de=a0_0x417bdc;let _0x53606f=MetaUiUtil[_0xb553de(0x1f7)](this);return _0x53606f[_0xb553de(0x204)]&&delete _0x53606f['actions'],_0x53606f[_0xb553de(0x1f5)]&&delete _0x53606f[_0xb553de(0x1f5)],_0x53606f[_0xb553de(0x1f9)]&&delete _0x53606f[_0xb553de(0x1f9)],_0x53606f;}async['connectedCallback'](){const _0x5c042d=a0_0x417bdc;this['gristId']=_0x5c042d(0x1e7),this[_0x5c042d(0x1e2)]='ox-filters-form-base',await this[_0x5c042d(0x207)](),this['isElement']&&await this[_0x5c042d(0x1f1)](),this[_0x5c042d(0x1ec)]&&(this['dataSet']=(this[_0x5c042d(0x1ec)]||{})[_0x5c042d(0x1ea)]),super[_0x5c042d(0x209)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x1a4e3c=a0_0x417bdc;super[_0x1a4e3c(0x1f3)]&&await super[_0x1a4e3c(0x1f3)]();}async[a0_0x417bdc(0x1e1)](){const _0x436682=a0_0x417bdc;this['isPage']&&await this[_0x436682(0x1f1)](),super['pageInitialized']&&await super[_0x436682(0x1e1)]();}['render'](){const _0x707693=a0_0x417bdc;return MetaApi[_0x707693(0x1fa)](this);}[a0_0x417bdc(0x1f0)](_0x4b2c01){const _0x26a79e=a0_0x417bdc;this[_0x26a79e(0x1e3)]=_0x4b2c01['grid'],this[_0x26a79e(0x208)]=_0x4b2c01[_0x26a79e(0x200)],this[_0x26a79e(0x1e6)]=_0x4b2c01[_0x26a79e(0x1db)];}async[a0_0x417bdc(0x1f1)](){const _0x1adf1d=a0_0x417bdc;this['gristConfigSet']=await MetaApi[_0x1adf1d(0x1f2)](this),this['useMasterFilterForm']=!0x0===this[_0x1adf1d(0x1f4)],this[_0x1adf1d(0x1f4)]=!0x1,this['buttonConfig']=void 0x0,this[_0x1adf1d(0x1f6)]=!0x1,this[_0x1adf1d(0x1f8)]=!0x1,this[_0x1adf1d(0x1d5)]=[],this['searchFields']=this['gristConfigSet']['columns'][_0x1adf1d(0x1ed)](_0x5ecc59=>_0x5ecc59['filter'])[_0x1adf1d(0x205)](_0x1d7668=>{const _0x1a5efd=_0x1adf1d;let _0x5780f2={'name':_0x1d7668[_0x1a5efd(0x1fd)],'type':'search'===_0x1d7668[_0x1a5efd(0x1ed)][_0x1a5efd(0x1ef)]?'search':_0x1d7668[_0x1a5efd(0x1eb)],'label':_0x1d7668[_0x1a5efd(0x1e8)],'operator':_0x1d7668[_0x1a5efd(0x1ed)]['operator']?_0x1d7668[_0x1a5efd(0x1ed)][_0x1a5efd(0x1ef)]:'eq'};return _0x1d7668['record'][_0x1a5efd(0x1fb)]&&(_0x5780f2[_0x1a5efd(0x1fb)]=_0x1d7668[_0x1a5efd(0x1fc)]['options']),_0x1d7668['filter']['value']&&this[_0x1a5efd(0x1d5)][_0x1a5efd(0x1e5)]({'name':_0x5780f2[_0x1a5efd(0x1fd)],'operator':_0x5780f2['operator'],'value':_0x1d7668[_0x1a5efd(0x1ed)][_0x1a5efd(0x1fe)]}),_0x5780f2;});}async[a0_0x417bdc(0x1dd)](){const _0x2f52d5=a0_0x417bdc;await this[_0x2f52d5(0x1ee)]['fetch']();}async[a0_0x417bdc(0x1d8)]({page:_0x3f6d84=0x0,limit:_0x2251f4=0x0,sortings:_0x5a75b3=[],filters:_0x41223c=[]}){const _0x1f46e6=a0_0x417bdc;return this[_0x1f46e6(0x1e4)]&&this[_0x1f46e6(0x1e4)][_0x1f46e6(0x1ff)]&&await this['masterElement'][_0x1f46e6(0x1ff)](),!0x0;}[a0_0x417bdc(0x1dc)](){const _0x2e2399=a0_0x417bdc;return{'master':this[_0x2e2399(0x1e4)][_0x2e2399(0x1dc)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x3de0d0=a0_0xd20b;(function(_0x2ca2f3,_0x2c7685){const _0x40a28b=a0_0xd20b,_0x12c2e1=_0x2ca2f3();while(!![]){try{const _0x44bb3c=parseInt(_0x40a28b(0x13f))/0x1*(parseInt(_0x40a28b(0x125))/0x2)+-parseInt(_0x40a28b(0x135))/0x3*(parseInt(_0x40a28b(0x134))/0x4)+parseInt(_0x40a28b(0x124))/0x5+parseInt(_0x40a28b(0x143))/0x6+parseInt(_0x40a28b(0x15d))/0x7+-parseInt(_0x40a28b(0x14b))/0x8+parseInt(_0x40a28b(0x121))/0x9*(-parseInt(_0x40a28b(0x15b))/0xa);if(_0x44bb3c===_0x2c7685)break;else _0x12c2e1['push'](_0x12c2e1['shift']());}catch(_0x469d78){_0x12c2e1['push'](_0x12c2e1['shift']());}}}(a0_0x58cf,0x2ae03));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0xd20b(_0x23dfb1,_0x451113){const _0x58cfa3=a0_0x58cf();return a0_0xd20b=function(_0xd20b4d,_0x2c69c6){_0xd20b4d=_0xd20b4d-0x114;let _0x408342=_0x58cfa3[_0xd20b4d];return _0x408342;},a0_0xd20b(_0x23dfb1,_0x451113);}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';function a0_0x58cf(){const _0x45af5b=['findOne','startsWith','getMasterDetailHtml','grid_column','record','deleteByIds','querySelector','gridConfig','exportable','1732yCkGhA','1287AlniFs','gristId','___data','records','push','activityDataSet','delete','menuInfo','parseGridConfigSet','getData','173069McjVOU','parse','exportableData','getContextObject','1651350wGeBiu','grid','isPage','getSelectedIdList','gristConfigSet','header','parseGristConfigs','main','662680WQqxZp','searchConfig','useMasterFilterForm','styles','search','actions','value','keys','title','find','filterFormId','name','getBasicMasterDetailStyles','stringify','type','detailElement','50iMjZsg','connectedCallback','190512gMsXCm','searchFields','filterForm','filter','ox-filters-form-base','firstUpdated','isNotEmpty','forEach','operator','options','properties','isElement','grist','getAndParseMenuMeta','getParams','clear','importable','render','531027qeDdoB','beforeFetch','fetch','1318580ifXiTD','2HHHMvK','pageInitialized','useFilterForm','dataSet','import','searchFieldValues'];a0_0x58cf=function(){return _0x45af5b;};return a0_0x58cf();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x526c47=>class extends MetaButtonMixin(_0x526c47){static get[a0_0x3de0d0(0x14e)](){const _0x4a5b19=a0_0x3de0d0;return MetaApi[_0x4a5b19(0x157)]();}static get[a0_0x3de0d0(0x119)](){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_0x3de0d0(0x11b)](){const _0x283dc7=a0_0x3de0d0;return this['renderRoot'][_0x283dc7(0x131)](this[_0x283dc7(0x136)]);}get[a0_0x3de0d0(0x15f)](){const _0x33b9aa=a0_0x3de0d0;return this['shadowRoot']?.[_0x33b9aa(0x131)](this[_0x33b9aa(0x155)]);}get['context'](){const _0x26affb=a0_0x3de0d0;let _0x3ba7e5=MetaUiUtil[_0x26affb(0x142)](this);return _0x3ba7e5[_0x26affb(0x150)]&&delete _0x3ba7e5[_0x26affb(0x150)],_0x3ba7e5[_0x26affb(0x133)]&&delete _0x3ba7e5[_0x26affb(0x133)],_0x3ba7e5[_0x26affb(0x11f)]&&delete _0x3ba7e5[_0x26affb(0x11f)],_0x3ba7e5;}async[a0_0x3de0d0(0x15c)](){const _0x572ced=a0_0x3de0d0;this[_0x572ced(0x136)]='ox-grist',this[_0x572ced(0x155)]=_0x572ced(0x161),await this[_0x572ced(0x11c)](),this[_0x572ced(0x11a)]&&await this[_0x572ced(0x149)](),this[_0x572ced(0x13a)]&&(this[_0x572ced(0x128)]=(this[_0x572ced(0x13a)]||{})[_0x572ced(0x14a)]),super[_0x572ced(0x15c)]&&await super['connectedCallback']();}async[a0_0x3de0d0(0x114)](){const _0x243eef=a0_0x3de0d0;super[_0x243eef(0x114)]&&await super['firstUpdated']();}async[a0_0x3de0d0(0x126)](){const _0xddb5f3=a0_0x3de0d0;this[_0xddb5f3(0x145)]&&await this[_0xddb5f3(0x149)](),super[_0xddb5f3(0x126)]&&await super[_0xddb5f3(0x126)]();}[a0_0x3de0d0(0x120)](){const _0x193518=a0_0x3de0d0;return MetaApi[_0x193518(0x12d)](this);}['parseBasicGridConfigs'](_0x24d663){const _0x1ef4b8=a0_0x3de0d0;this[_0x1ef4b8(0x132)]=_0x24d663[_0x1ef4b8(0x144)],this['gridColumnConfig']=_0x24d663[_0x1ef4b8(0x12e)],this[_0x1ef4b8(0x14c)]=_0x24d663[_0x1ef4b8(0x14f)];}async[a0_0x3de0d0(0x149)](){const _0x116396=a0_0x3de0d0;this['gristConfigSet']=await MetaApi[_0x116396(0x13d)](this),this[_0x116396(0x14d)]=!0x0===this[_0x116396(0x127)],this[_0x116396(0x127)]=!0x1,this['searchFieldValues']=[],this[_0x116396(0x15e)]=this[_0x116396(0x147)]['columns'][_0x116396(0x160)](_0x36d6b1=>_0x36d6b1['filter'])['map'](_0x197227=>{const _0x31bd9d=_0x116396;let _0x1a9afc={'name':_0x197227[_0x31bd9d(0x156)],'type':_0x31bd9d(0x14f)===_0x197227[_0x31bd9d(0x160)][_0x31bd9d(0x117)]?_0x31bd9d(0x14f):_0x197227[_0x31bd9d(0x159)],'label':_0x197227[_0x31bd9d(0x148)],'operator':_0x197227[_0x31bd9d(0x160)]['operator']?_0x197227['filter'][_0x31bd9d(0x117)]:'eq'};return _0x197227[_0x31bd9d(0x12f)][_0x31bd9d(0x118)]&&(_0x1a9afc['options']=_0x197227[_0x31bd9d(0x12f)]['options']),_0x197227[_0x31bd9d(0x160)][_0x31bd9d(0x151)]&&this[_0x31bd9d(0x12a)][_0x31bd9d(0x139)]({'name':_0x1a9afc[_0x31bd9d(0x156)],'operator':_0x1a9afc[_0x31bd9d(0x117)],'value':_0x197227['filter'][_0x31bd9d(0x151)]}),_0x1a9afc;});}async[a0_0x3de0d0(0x123)](){const _0x2cd59a=a0_0x3de0d0;await this[_0x2cd59a(0x11b)]['fetch']();}async[a0_0x3de0d0(0x122)]({page:_0xfdcac3=0x0,limit:_0x146be1=0x0,sortings:_0x28a027=[],filters:_0xe90351=[]}){const _0x5e61ea=a0_0x3de0d0;return this[_0x5e61ea(0x15a)]&&this['detailElement'][_0x5e61ea(0x11e)]&&await this['detailElement'][_0x5e61ea(0x11e)](),!0x0;}async['save'](){const _0x57c9cb=a0_0x3de0d0;let _0x1cc5a4=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x57c9cb(0x115)](_0x1cc5a4)&&await this['updateMultiple'](_0x1cc5a4)&&this[_0x57c9cb(0x123)]();}async[a0_0x3de0d0(0x154)](){const _0x4fa5cb=a0_0x3de0d0;let _0x26129d=MetaApi[_0x4fa5cb(0x146)](this[_0x4fa5cb(0x11b)],!0x0);return ValueUtil[_0x4fa5cb(0x115)](_0x26129d)?await this[_0x4fa5cb(0x12b)](_0x26129d[0x0]):{};}async[a0_0x3de0d0(0x13b)](){const _0x479878=a0_0x3de0d0;let _0x3708db=MetaApi[_0x479878(0x146)](this[_0x479878(0x11b)],!0x0);!!ValueUtil[_0x479878(0x115)](_0x3708db)&&await this[_0x479878(0x130)](_0x3708db)&&this['fetch']();}async['export'](){const _0x46f7e9=a0_0x3de0d0;let _0x6053=TermsUtil['tTitle'](ValueUtil[_0x46f7e9(0x11d)](this[_0x46f7e9(0x13c)],_0x46f7e9(0x153)));return await MetaApi[_0x46f7e9(0x141)](this[_0x46f7e9(0x11a)],_0x6053,this[_0x46f7e9(0x11b)]);}async[a0_0x3de0d0(0x129)](){}[a0_0x3de0d0(0x13e)](){const _0x5f5549=a0_0x3de0d0;let _0x43df71=this[_0x5f5549(0x11b)][_0x5f5549(0x137)][_0x5f5549(0x138)];return _0x43df71=JSON[_0x5f5549(0x140)](JSON[_0x5f5549(0x158)](_0x43df71)),_0x43df71[_0x5f5549(0x116)](_0x1b890f=>{const _0x5d23a=_0x5f5549;Object[_0x5d23a(0x152)](_0x1b890f)['forEach'](_0x5ed858=>{const _0x414cce=_0x5d23a;_0x5ed858[_0x414cce(0x12c)]('__')&&delete _0x1b890f[_0x5ed858];});}),{'main':_0x43df71,'detail':this[_0x5f5549(0x15a)][_0x5f5549(0x13e)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x129a0f=a0_0x38d6;function a0_0x38d6(_0x510cc7,_0x5a4811){const _0x1baa36=a0_0x1baa();return a0_0x38d6=function(_0x38d601,_0x52cd6f){_0x38d601=_0x38d601-0x68;let _0x36401b=_0x1baa36[_0x38d601];return _0x36401b;},a0_0x38d6(_0x510cc7,_0x5a4811);}(function(_0x8aefa2,_0x167571){const _0x233dd3=a0_0x38d6,_0x323cee=_0x8aefa2();while(!![]){try{const _0x3e5414=parseInt(_0x233dd3(0x9b))/0x1+-parseInt(_0x233dd3(0x8c))/0x2+parseInt(_0x233dd3(0x76))/0x3*(-parseInt(_0x233dd3(0x89))/0x4)+-parseInt(_0x233dd3(0x86))/0x5*(parseInt(_0x233dd3(0x82))/0x6)+-parseInt(_0x233dd3(0x68))/0x7+-parseInt(_0x233dd3(0x8b))/0x8+parseInt(_0x233dd3(0x97))/0x9*(parseInt(_0x233dd3(0x79))/0xa);if(_0x3e5414===_0x167571)break;else _0x323cee['push'](_0x323cee['shift']());}catch(_0xc2482c){_0x323cee['push'](_0x323cee['shift']());}}}(a0_0x1baa,0x831d7));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';function a0_0x1baa(){const _0x46f2c6=['gristConfigSet','beforeFetch','getQueryFilters','fetchHandler','lifecycle','searchByPagination','99lkkcLh','split','forEach','50zYOTBa','updateMultiple','afterFetch','isElement','getSelectColumns','after_set_fields','map','pass','deleteByIds','614574rZSltT','infinityPage','records','isPage','45mxVrwV','params','findOne','75844pcSPjf','find_one_func','8111344CWuwDe','1209266lFLozj','isEmpty','length','delete','mainFilterForm','push','skip_fields','multiple','parse','includes','keys','6510132iRQVRC','formConfigSet','is_activity','deleteListByIds','229208YhuEBp','filter','isNotEmpty','getPageNavigateParams','columns','func','getParams','gqlInfo','999432shBVZP','parent_id','query','value','list_func','parseBasicServiceConfigs','mutation','dataSet'];a0_0x1baa=function(){return _0x46f2c6;};return a0_0x1baa();}import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x26fe55=>class extends MetaBaseMixin(_0x26fe55){static get['properties'](){return{'gqlInfo':Object};}[a0_0x129a0f(0x6d)](_0x3ece29){const _0x2a19c7=a0_0x129a0f;this[_0x2a19c7(0xa2)]=_0x3ece29['gql'];}async[a0_0x129a0f(0x73)]({page:_0xff28bf=0x0,limit:_0x1ec7f3=0x0,sortings:_0x438201=[],filters:_0x4bd006=[]}){const _0x43fd68=a0_0x129a0f;if(this['is_activity'])return{'total':0x0,'records':this[_0x43fd68(0x6f)]||[]};if(!0x0===this[_0x43fd68(0x83)]&&(_0xff28bf=0x0,_0x1ec7f3=0x0),this[_0x43fd68(0x71)]&&0x0==await this['beforeFetch']({'page':_0xff28bf,'limit':_0x1ec7f3,'sortings':_0x438201,'filters':_0x4bd006}))return;if(!this[_0x43fd68(0x70)])return{'total':0x0,'records':[]};let _0x1bc6fd=ValueUtil[_0x43fd68(0x8d)](_0x4bd006)?this['mainFilterForm']?await this[_0x43fd68(0x90)]['getQueryFilters']()||[]:await this['filterForm']?.[_0x43fd68(0x72)]()||[]:_0x4bd006,_0x18fe79=ValueUtil['getParams'](this[_0x43fd68(0xa2)],'query',_0x43fd68(0x6c)),_0x1998f3=ValueUtil[_0x43fd68(0xa1)](this[_0x43fd68(0xa2)],_0x43fd68(0x6a),'filters'),_0x9d50cc=ValueUtil[_0x43fd68(0xa1)](this[_0x43fd68(0xa2)],'query',_0x43fd68(0x7e));if(ValueUtil[_0x43fd68(0x9d)](_0x1998f3)&&(_0x1bc6fd=adjustFilters(_0x1bc6fd,_0x1998f3)),_0x1bc6fd[_0x43fd68(0x91)](...this[_0x43fd68(0x9e)]()),this[_0x43fd68(0x7c)]&&!this[_0x43fd68(0x90)]){let _0x3439e1=ValueUtil[_0x43fd68(0xa1)](this[_0x43fd68(0xa2)],'query',_0x43fd68(0x69));if(!ValueUtil[_0x43fd68(0x9d)](_0x3439e1)||!ValueUtil[_0x43fd68(0x9d)](this[_0x43fd68(0x69)]))return{'total':0x0,'records':[]};_0x1bc6fd=adjustFilters(_0x1bc6fd,[{'name':_0x3439e1,'operator':'eq','value':this['parent_id']}]);}let _0x5b1348=Object[_0x43fd68(0x96)](_0x9d50cc||{}),_0x22179c=MetaApi[_0x43fd68(0x7d)](this[_0x43fd68(0x70)][_0x43fd68(0x9f)]['filter'](_0x519523=>!_0x5b1348[_0x43fd68(0x95)](_0x519523['name']))),_0x48df95=await MetaApi[_0x43fd68(0x75)](_0x18fe79,_0x1bc6fd,_0x438201,_0xff28bf,_0x1ec7f3,_0x22179c);if(this[_0x43fd68(0x7b)]){let _0x162aad=await this[_0x43fd68(0x7b)]({'page':_0xff28bf,'limit':_0x1ec7f3,'sortings':_0x438201,'filters':_0x4bd006},_0x48df95);if(_0x162aad)return _0x162aad;}return ValueUtil['isNotEmpty'](_0x9d50cc)&&ValueUtil[_0x43fd68(0x9d)](_0x48df95)&&ValueUtil[_0x43fd68(0x9d)](_0x48df95[_0x43fd68(0x84)])&&_0x48df95[_0x43fd68(0x84)][_0x43fd68(0x7f)](_0x63214c=>(_0x5b1348[_0x43fd68(0x78)](_0xa16428=>{const _0x403219=_0x43fd68;_0x63214c[_0xa16428]=ValueUtil[_0x403219(0xa1)](_0x63214c,..._0x9d50cc[_0xa16428]['split']('.'));}),_0x63214c)),_0x48df95;}[a0_0x129a0f(0x9e)](){const _0x33c6c0=a0_0x129a0f;if(0x0==this[_0x33c6c0(0x85)])return[];let _0x4baebc=this[_0x33c6c0(0x74)]?.['params']?this['lifecycle'][_0x33c6c0(0x87)]:{};if(!_0x4baebc[_0x33c6c0(0x80)])return[];let _0x488f2f=_0x4baebc[_0x33c6c0(0x80)],_0x5d0394=JSON[_0x33c6c0(0x94)](_0x488f2f),_0x12cb0f=0x1==_0x5d0394[_0x33c6c0(0x8e)]?'eq':'in',_0xc257d6={},_0x15505e=[];return Object['keys'](_0x5d0394[0x0])[_0x33c6c0(0x78)](_0x424d20=>{_0xc257d6[_0x424d20]={'name':_0x424d20,'operator':_0x12cb0f,'value':'eq'===_0x12cb0f?_0x5d0394[0x0][_0x424d20]:[]};}),_0x5d0394['length']>0x1&&_0x5d0394[_0x33c6c0(0x78)](_0x586133=>{const _0x3c4aef=_0x33c6c0;Object[_0x3c4aef(0x96)](_0x586133)[_0x3c4aef(0x78)](_0x20f7d6=>{const _0x44763c=_0x3c4aef;_0xc257d6[_0x20f7d6][_0x44763c(0x6b)][_0x44763c(0x91)](_0x586133[_0x20f7d6]);});}),Object[_0x33c6c0(0x96)](_0xc257d6)[_0x33c6c0(0x78)](_0x212ee4=>{const _0x358c0c=_0x33c6c0;_0x15505e[_0x358c0c(0x91)](_0xc257d6[_0x212ee4]);}),_0x15505e;}async['findOne'](_0x44c728){const _0x106ee9=a0_0x129a0f;if(this[_0x106ee9(0x99)])return this['dataSet']||{};let _0x2474e8=ValueUtil[_0x106ee9(0xa1)](this[_0x106ee9(0xa2)],_0x106ee9(0x6a),_0x106ee9(0x8a)),_0x4eb5c5=ValueUtil[_0x106ee9(0xa1)](this['gqlInfo'],'query',_0x106ee9(0x7e)),_0xa9a2c1=Object[_0x106ee9(0x96)](_0x4eb5c5||{}),_0x20faf0=MetaApi['getSelectColumns']((this[_0x106ee9(0x70)]?this['gristConfigSet']:{'columns':this[_0x106ee9(0x98)]})[_0x106ee9(0x9f)][_0x106ee9(0x9c)](_0x31a2a5=>!_0xa9a2c1[_0x106ee9(0x95)](_0x31a2a5['name']))),_0x9d319b=await MetaApi[_0x106ee9(0x88)](_0x2474e8,_0x44c728,_0x20faf0);return ValueUtil[_0x106ee9(0x9d)](_0x4eb5c5)&&ValueUtil[_0x106ee9(0x9d)](_0x9d319b)&&_0xa9a2c1['forEach'](_0x274cb4=>{const _0x2a1cdf=_0x106ee9;_0x9d319b[_0x274cb4]=ValueUtil['getParams'](_0x9d319b,..._0x4eb5c5[_0x274cb4][_0x2a1cdf(0x77)]('.'));}),_0x9d319b;}async[a0_0x129a0f(0x81)](_0x567241){const _0x2da951=a0_0x129a0f;let _0x5832c4=ValueUtil[_0x2da951(0xa1)](this['gqlInfo'],_0x2da951(0x6e),_0x2da951(0x8f),_0x2da951(0xa0));return await MetaApi[_0x2da951(0x9a)](_0x567241,_0x5832c4);}async[a0_0x129a0f(0x7a)](_0x23cfe5){const _0x514394=a0_0x129a0f;let _0x8a278f=ValueUtil[_0x514394(0xa1)](this[_0x514394(0xa2)],_0x514394(0x6e),_0x514394(0x93),_0x514394(0xa0)),_0x286ec0=ValueUtil[_0x514394(0xa1)](this[_0x514394(0xa2)],'mutation',_0x514394(0x93),_0x514394(0x92));if(ValueUtil[_0x514394(0x9d)](_0x286ec0)&&(_0x286ec0=_0x286ec0['map'](_0xc4899b=>_0xc4899b[_0x514394(0x95)]('.')?_0xc4899b[_0x514394(0x77)]('.'):_0xc4899b),_0x23cfe5=_0x23cfe5['map'](_0x1b8f94=>(_0x286ec0[_0x514394(0x78)](_0x1ed8d7=>{Array['isArray'](_0x1ed8d7)?delete _0x1b8f94[_0x1ed8d7[0x0]][_0x1ed8d7[0x1]]:delete _0x1b8f94[_0x1ed8d7];}),_0x1b8f94))),this['isElement']&&ValueUtil[_0x514394(0x9d)](this[_0x514394(0x69)])){let _0x47d9b3=ValueUtil[_0x514394(0xa1)](this[_0x514394(0xa2)],_0x514394(0x6e),_0x514394(0x93),'parent_id');ValueUtil['isNotEmpty'](_0x47d9b3)&&_0x23cfe5['forEach'](_0x1c27c8=>{const _0xc44132=_0x514394;if(_0x47d9b3['includes']('.')){let _0x2a49c4=_0x47d9b3[_0xc44132(0x77)]('.');_0x1c27c8[_0x2a49c4[0x0]]={},_0x1c27c8[_0x2a49c4[0x0]][_0x2a49c4[0x1]]=this[_0xc44132(0x69)];}else _0x1c27c8[_0x47d9b3]=this[_0xc44132(0x69)];});}return await MetaApi[_0x514394(0x7a)](_0x8a278f,_0x23cfe5);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1f44df=a0_0x2ade;(function(_0xa0665,_0x2a66a5){const _0x4f3597=a0_0x2ade,_0x81d4ad=_0xa0665();while(!![]){try{const _0x8055a=parseInt(_0x4f3597(0x119))/0x1+parseInt(_0x4f3597(0x131))/0x2+-parseInt(_0x4f3597(0x11f))/0x3*(parseInt(_0x4f3597(0x11b))/0x4)+-parseInt(_0x4f3597(0x11c))/0x5*(parseInt(_0x4f3597(0x13b))/0x6)+-parseInt(_0x4f3597(0x11e))/0x7+-parseInt(_0x4f3597(0x143))/0x8+parseInt(_0x4f3597(0x128))/0x9;if(_0x8055a===_0x2a66a5)break;else _0x81d4ad['push'](_0x81d4ad['shift']());}catch(_0x37a3e7){_0x81d4ad['push'](_0x81d4ad['shift']());}}}(a0_0x38eb,0xe7624));import{html}from'lit';function a0_0x2ade(_0x2c997b,_0x5c5ec0){const _0x38eba=a0_0x38eb();return a0_0x2ade=function(_0x2ade08,_0x129689){_0x2ade08=_0x2ade08-0x10c;let _0xe77b7f=_0x38eba[_0x2ade08];return _0xe77b7f;},a0_0x2ade(_0x2c997b,_0x5c5ec0);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x38eb(){const _0x69bd95=['getMainGrist','grid_column','searchFieldValues','clear','properties','1031068efeXFB','getBasicTabDetailStyles','5284UUBfpQ','108305OZUKWV','beforeFetch','6931750ldDrCQ','1983LBEAnT','value','dataSet','fetch','searchFields','useButtonExport','header','useMasterFilterForm','masterElement','29486349gTlCDZ','render','gristId','exportable','filter','activityDataSet','record','getData','detailElement','1615458CphbUf','ox-grist','shadowRoot','main','pageInitialized','connectedCallback','parseGristConfigs','filterForm','columns','useButtonImport','426mtwYmM','gristConfigSet','parseGridConfigSet','name','isPage','searchConfig','getAndParseMenuMeta','getTabDetailHtml','6127584YxEjmd','actions','operator','firstUpdated','grist','options','grid','gridConfig','importable','ox-filters-form-base','search','filterFormId','type','getContextObject','querySelector','buttonConfig','parseBasicGridConfigs','useFilterForm'];a0_0x38eb=function(){return _0x69bd95;};return a0_0x38eb();}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=_0x324fa0=>class extends MetaButtonMixin(_0x324fa0){static get['styles'](){const _0x2a55cc=a0_0x2ade;return MetaApi[_0x2a55cc(0x11a)]();}static get[a0_0x1f44df(0x118)](){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_0x1f44df(0x147)](){const _0x50ea0c=a0_0x1f44df;return this['masterElement'][_0x50ea0c(0x114)]();}get[a0_0x1f44df(0x138)](){const _0x554810=a0_0x1f44df;return this[_0x554810(0x133)]?.[_0x554810(0x110)](this[_0x554810(0x10d)]);}get['context'](){const _0x169122=a0_0x1f44df;let _0x190aa7=MetaUiUtil[_0x169122(0x10f)](this);return _0x190aa7['actions']&&delete _0x190aa7[_0x169122(0x144)],_0x190aa7[_0x169122(0x12b)]&&delete _0x190aa7['exportable'],_0x190aa7[_0x169122(0x14b)]&&delete _0x190aa7[_0x169122(0x14b)],_0x190aa7;}async[a0_0x1f44df(0x136)](){const _0xf2cb68=a0_0x1f44df;this[_0xf2cb68(0x12a)]=_0xf2cb68(0x132),this[_0xf2cb68(0x10d)]=_0xf2cb68(0x14c),await this[_0xf2cb68(0x141)](),this['isElement']&&await this[_0xf2cb68(0x137)](),this[_0xf2cb68(0x12d)]&&(this[_0xf2cb68(0x121)]=(this['activityDataSet']||{})[_0xf2cb68(0x134)]),super[_0xf2cb68(0x136)]&&await super[_0xf2cb68(0x136)]();}async['firstUpdated'](){const _0x95655d=a0_0x1f44df;super[_0x95655d(0x146)]&&await super[_0x95655d(0x146)]();}async[a0_0x1f44df(0x135)](){const _0x4378d4=a0_0x1f44df;this[_0x4378d4(0x13f)]&&await this[_0x4378d4(0x137)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x1f44df(0x129)](){const _0x431936=a0_0x1f44df;return MetaApi[_0x431936(0x142)](this);}[a0_0x1f44df(0x112)](_0x15ca4b){const _0x1ab1cf=a0_0x1f44df;this[_0x1ab1cf(0x14a)]=_0x15ca4b[_0x1ab1cf(0x149)],this['gridColumnConfig']=_0x15ca4b[_0x1ab1cf(0x115)],this[_0x1ab1cf(0x140)]=_0x15ca4b[_0x1ab1cf(0x10c)];}async[a0_0x1f44df(0x137)](){const _0x1cf2d3=a0_0x1f44df;this[_0x1cf2d3(0x13c)]=await MetaApi[_0x1cf2d3(0x13d)](this),this[_0x1cf2d3(0x126)]=!0x0===this[_0x1cf2d3(0x113)],this[_0x1cf2d3(0x113)]=!0x1,this[_0x1cf2d3(0x111)]=void 0x0,this[_0x1cf2d3(0x124)]=!0x1,this[_0x1cf2d3(0x13a)]=!0x1,this[_0x1cf2d3(0x116)]=[],this[_0x1cf2d3(0x123)]=this[_0x1cf2d3(0x13c)][_0x1cf2d3(0x139)][_0x1cf2d3(0x12c)](_0x4eca91=>_0x4eca91[_0x1cf2d3(0x12c)])['map'](_0xcb54b3=>{const _0x4441fc=_0x1cf2d3;let _0x46776e={'name':_0xcb54b3[_0x4441fc(0x13e)],'type':'search'===_0xcb54b3[_0x4441fc(0x12c)]['operator']?_0x4441fc(0x10c):_0xcb54b3[_0x4441fc(0x10e)],'label':_0xcb54b3[_0x4441fc(0x125)],'operator':_0xcb54b3[_0x4441fc(0x12c)][_0x4441fc(0x145)]?_0xcb54b3[_0x4441fc(0x12c)]['operator']:'eq'};return _0xcb54b3[_0x4441fc(0x12e)][_0x4441fc(0x148)]&&(_0x46776e[_0x4441fc(0x148)]=_0xcb54b3['record']['options']),_0xcb54b3[_0x4441fc(0x12c)][_0x4441fc(0x120)]&&this[_0x4441fc(0x116)]['push']({'name':_0x46776e[_0x4441fc(0x13e)],'operator':_0x46776e[_0x4441fc(0x145)],'value':_0xcb54b3['filter'][_0x4441fc(0x120)]}),_0x46776e;});}async['fetch'](){const _0xdb1edb=a0_0x1f44df;await this['grist'][_0xdb1edb(0x122)]();}async[a0_0x1f44df(0x11d)]({page:_0x20cd17=0x0,limit:_0x252775=0x0,sortings:_0x1f77a5=[],filters:_0x2f3664=[]}){const _0x61cae8=a0_0x1f44df;return this[_0x61cae8(0x127)]&&this[_0x61cae8(0x127)]['clear']&&await this['masterElement'][_0x61cae8(0x117)](),this[_0x61cae8(0x130)]&&this['detailElement']['clear']&&await this['detailElement'][_0x61cae8(0x117)](),!0x0;}[a0_0x1f44df(0x12f)](){const _0x5604b8=a0_0x1f44df;return{'master':this[_0x5604b8(0x127)][_0x5604b8(0x12f)](),'detail':this[_0x5604b8(0x130)][_0x5604b8(0x12f)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4aafb8=a0_0x3b53;(function(_0x299243,_0x34e831){const _0x180b54=a0_0x3b53,_0x5d80d2=_0x299243();while(!![]){try{const _0x300e54=parseInt(_0x180b54(0x88))/0x1*(-parseInt(_0x180b54(0x8c))/0x2)+-parseInt(_0x180b54(0x99))/0x3*(-parseInt(_0x180b54(0x95))/0x4)+-parseInt(_0x180b54(0x96))/0x5*(-parseInt(_0x180b54(0x81))/0x6)+-parseInt(_0x180b54(0x7d))/0x7*(-parseInt(_0x180b54(0x82))/0x8)+parseInt(_0x180b54(0x83))/0x9*(-parseInt(_0x180b54(0x8a))/0xa)+-parseInt(_0x180b54(0x87))/0xb+parseInt(_0x180b54(0x80))/0xc;if(_0x300e54===_0x34e831)break;else _0x5d80d2['push'](_0x5d80d2['shift']());}catch(_0x5a8916){_0x5d80d2['push'](_0x5d80d2['shift']());}}}(a0_0x63cd,0x954af));function a0_0x63cd(){const _0x420bc9=['activityDataSet','getBasicTabHtml','6826883sJCliu','name','parseBasicTabConfigs','474204hKZwXR','427494gsKIua','8NeuJek','27WCDqeU','route_name','tab','getMainGrist','7863130DFvfXL','1DTbXyy','getAndParseMenuMeta','2969550zWBVFy','getBasicTabStyles','1848526VCsWzr','@things-factory/meta-ui/client/pages/meta-grist-element','display','getContextObject','context','pageInitialized','tabElements','grist','connectedCallback','412ywVZxR','70bCQniu','tabRenderConfig','includeMainList','32889dbHCyf','clear','mainFilterForm','keys','firstUpdated','unshift','forEach','getData','meta-grist-element','param_field','etcConfig','button','render','styles','length'];a0_0x63cd=function(){return _0x420bc9;};return a0_0x63cd();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3b53(_0x544138,_0x399cba){const _0x63cd98=a0_0x63cd();return a0_0x3b53=function(_0x3b537e,_0x2a93fc){_0x3b537e=_0x3b537e-0x73;let _0x33b1db=_0x63cd98[_0x3b537e];return _0x33b1db;},a0_0x3b53(_0x544138,_0x399cba);}export const MetaTabMixin=_0x14b2a3=>class extends MetaButtonMixin(_0x14b2a3){static get[a0_0x4aafb8(0x79)](){const _0x3be990=a0_0x4aafb8;return MetaApi[_0x3be990(0x8b)]();}static get['properties'](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x4aafb8(0x90)](){const _0x82431f=a0_0x4aafb8;return MetaUiUtil[_0x82431f(0x8f)](this);}async['connectedCallback'](){const _0x10fab0=a0_0x4aafb8;this['currentTabKey']=void 0x0,await this[_0x10fab0(0x89)](),this[_0x10fab0(0x7b)]&&(this['dataSet']=this['activityDataSet']),super[_0x10fab0(0x94)]&&await super[_0x10fab0(0x94)]();}async[a0_0x4aafb8(0x9d)](){const _0x486e35=a0_0x4aafb8;super[_0x486e35(0x9d)]&&await super[_0x486e35(0x9d)]();}async[a0_0x4aafb8(0x91)](){const _0x14d566=a0_0x4aafb8;super[_0x14d566(0x91)]&&await super[_0x14d566(0x91)]();}[a0_0x4aafb8(0x78)](){const _0x594c13=a0_0x4aafb8;return MetaApi[_0x594c13(0x7c)](this);}[a0_0x4aafb8(0x7f)](_0x14b577){const _0x25db79=a0_0x4aafb8;if(!0x0===this[_0x25db79(0x98)]){let _0x360246=this[_0x25db79(0x76)]['main_tab_info'],_0x276cd1=JSON['parse'](_0x360246||'{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22\x20}');_0x14b577[_0x25db79(0x85)][_0x25db79(0x9e)]({'name':_0x276cd1[_0x25db79(0x7e)],'display':_0x276cd1[_0x25db79(0x8e)],'tagname':_0x25db79(0x74),'location':_0x25db79(0x8d),'parent_field':'id','param_field':_0x25db79(0x75),'menu':this[_0x25db79(0x84)],'icon':_0x276cd1['icon'],'filter_from':!0x1,'main_filter_form':this[_0x25db79(0x9b)]});}this[_0x25db79(0x97)]=_0x14b577[_0x25db79(0x85)],_0x14b577[_0x25db79(0x77)]=[];}async['clear'](){const _0x4d493b=a0_0x4aafb8;if(this[_0x4d493b(0x92)]){let _0x2f17c5=Object[_0x4d493b(0x9c)](this[_0x4d493b(0x92)]);for(var _0x3899dd=0x0;_0x3899dd<_0x2f17c5[_0x4d493b(0x7a)];_0x3899dd++)await this[_0x4d493b(0x92)][_0x2f17c5[_0x3899dd]][_0x4d493b(0x9a)]();}}[a0_0x4aafb8(0x73)](){const _0x4e3308=a0_0x4aafb8;let _0xb8aec5={};return this['tabElements']&&Object['keys'](this[_0x4e3308(0x92)])[_0x4e3308(0x9f)](_0xac7806=>{const _0x13450e=_0x4e3308;_0xb8aec5[_0xac7806]=this[_0x13450e(0x92)][_0xac7806][_0x13450e(0x73)]();}),_0xb8aec5;}[a0_0x4aafb8(0x86)](){const _0x3e34c5=a0_0x4aafb8;if(this[_0x3e34c5(0x92)]){let _0x297a6d=Object[_0x3e34c5(0x9c)](this[_0x3e34c5(0x92)]);return this[_0x3e34c5(0x92)][_0x297a6d[0x0]][_0x3e34c5(0x93)];}}};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x37b8fc=a0_0x5bb8;(function(_0x2a61d0,_0x2f0e68){const _0x17174f=a0_0x5bb8,_0x210074=_0x2a61d0();while(!![]){try{const _0x7b17b4=-parseInt(_0x17174f(0x205))/0x1*(parseInt(_0x17174f(0x229))/0x2)+-parseInt(_0x17174f(0x20c))/0x3*(parseInt(_0x17174f(0x204))/0x4)+-parseInt(_0x17174f(0x214))/0x5*(-parseInt(_0x17174f(0x242))/0x6)+-parseInt(_0x17174f(0x234))/0x7+parseInt(_0x17174f(0x22a))/0x8+parseInt(_0x17174f(0x222))/0x9*(-parseInt(_0x17174f(0x226))/0xa)+parseInt(_0x17174f(0x223))/0xb;if(_0x7b17b4===_0x2f0e68)break;else _0x210074['push'](_0x210074['shift']());}catch(_0x21fee4){_0x210074['push'](_0x210074['shift']());}}}(a0_0x31b0,0x25149));import a0_0x53a178 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';function a0_0x5bb8(_0x55b7f2,_0x2f5e13){const _0x31b0f0=a0_0x31b0();return a0_0x5bb8=function(_0x5bb822,_0x224f1d){_0x5bb822=_0x5bb822-0x1e4;let _0x392f9e=_0x31b0f0[_0x5bb822];return _0x392f9e;},a0_0x5bb8(_0x55b7f2,_0x2f5e13);}import{MetaApi}from'./../../utils/meta-api';import{MetaUiUtil}from'./../../utils/meta-ui-util';import{ValueUtil}from'./../../utils/value-util';function a0_0x31b0(){const _0x1e1380=['tButton','grid_view_options','showGraphqlErrorResponse','updated_at','description','name','POPUP','searchByPagination','errors','menu','parse','assign','install_activity_success','menu_type','gridConfig','startingType','LIST','tLabel','updatedAt','metaActivities','render','getBasicGristStyles','model','deploy','tTitle','getGristGuttersConfig','deprecated','grist','24aVEQnu','2273GulqTt','single','meta-activity-writer-element','isNotEmpty','meta-activity-viewer-element','filter','system_update','16887SdJYNx','context','meta_activity_list','columns','left','bind','MENU_PAGE_TYPE','CARD','5385BUUpWX','meta-activity-list-page','routing','object','define','install_activity','\x22relation-menu\x22','save','activityType','showToast','delete','deleteListByGristSelected','search','fetch','216882XKLjwc','3444507syFJIL','state','records','20KZSKWH','querySelector','updateMultipleMetaActivity','166MgTzQv','713256zliTtR','connectedCallback','getGristPagination50Config','center','menus','isMobileEnv','updater','activity-state-draft','activity-state-deprecated','getSelectColumns','1878940XwHjHU','push','styles','query','relation-menu','SCREEN','datetime','getGristColumnConfig2','pageInitialized','draft','string','updateMultiple','menuType','tText','1608NgPkzw','task','deleteMetaActivities','GRID','custom-element','getGristSelectableConfig','multiple','forEach','gridMode','\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','like','showGraphqlException'];a0_0x31b0=function(){return _0x1e1380;};return a0_0x31b0();}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_0x37b8fc(0x236)](){const _0x2d1bd4=a0_0x37b8fc;return MetaApi[_0x2d1bd4(0x1fd)]();}get[a0_0x37b8fc(0x20d)](){const _0x1bd97b=a0_0x37b8fc;return{'title':TermsUtil[_0x1bd97b(0x200)](_0x1bd97b(0x20e)),'actions':[{'title':TermsUtil[_0x1bd97b(0x1e8)](_0x1bd97b(0x21b)),'action':this[_0x1bd97b(0x21b)]['bind'](this),...CommonButtonStyles[_0x1bd97b(0x21b)]},{'title':TermsUtil[_0x1bd97b(0x1e8)]('delete'),'action':this['delete']['bind'](this),...CommonButtonStyles[_0x1bd97b(0x21e)]},{'title':TermsUtil[_0x1bd97b(0x1e8)](_0x1bd97b(0x219)),'action':this[_0x1bd97b(0x1ff)][_0x1bd97b(0x211)](this),'icon':_0x1bd97b(0x20b),'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}]};}get[a0_0x37b8fc(0x203)](){const _0x20b123=a0_0x37b8fc;return this['shadowRoot'][_0x20b123(0x227)]('ox-grist');}async[a0_0x37b8fc(0x22b)](){const _0x5f28a4=a0_0x37b8fc,_0x587c96=[{'display':'','value':''},{'display':TermsUtil[_0x5f28a4(0x1f9)](_0x5f28a4(0x231)),'value':_0x5f28a4(0x23d)},{'display':TermsUtil[_0x5f28a4(0x1f9)]('activity-state-released'),'value':'released'},{'display':TermsUtil[_0x5f28a4(0x1f9)](_0x5f28a4(0x232)),'value':_0x5f28a4(0x202)}];this['grid_view_options']=[_0x5f28a4(0x1f8),_0x5f28a4(0x245),_0x5f28a4(0x213)],this[_0x5f28a4(0x1e4)]=MetaApi[_0x5f28a4(0x22f)]()?'LIST':_0x5f28a4(0x245),this[_0x5f28a4(0x1f6)]={'option':{'view_mode':this[_0x5f28a4(0x1e9)]},'rows':MetaApi[_0x5f28a4(0x247)](!0x0),'pagination':MetaApi[_0x5f28a4(0x22c)](),'sorters':[{'name':_0x5f28a4(0x1ed),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x5f28a4(0x201)](!0x0,!0x1),{'type':_0x5f28a4(0x23e),'name':'id','sortable':!0x1,'hidden':!0x0},MetaUiUtil[_0x5f28a4(0x23b)](_0x5f28a4(0x23e),'name','name',_0x5f28a4(0x210),!0x0,!0x0,0xc8),MetaUiUtil[_0x5f28a4(0x23b)](_0x5f28a4(0x23e),_0x5f28a4(0x1ec),_0x5f28a4(0x1ec),_0x5f28a4(0x210),!0x0,!0x0,0x12c),MetaUiUtil['getGristSelectorColumnConfig'](_0x5f28a4(0x224),'status',_0x5f28a4(0x22d),!0x0,0x64,!0x1,_0x587c96),{'type':'resource-object','name':_0x5f28a4(0x1f1),'header':TermsUtil[_0x5f28a4(0x1f9)](_0x5f28a4(0x1f1)),'record':{'editable':!0x0,'options':{'queryName':_0x5f28a4(0x22e),'basicArgs':{'filters':[{'name':_0x5f28a4(0x240),'operator':'in','value':[_0x5f28a4(0x239),_0x5f28a4(0x1ee),'HIDDEN-PAGE']},{'name':_0x5f28a4(0x216),'operator':'is_not_null','value':''},{'name':'template','operator':'is_not_null','value':''}]},'columns':[{'name':'id','hidden':!0x0},{'name':_0x5f28a4(0x1ed),'header':TermsUtil[_0x5f28a4(0x1f9)]('name'),'width':0xfa,'filter':_0x5f28a4(0x220)},await MetaApi['getGristCodeSelectorColumnConfig'](_0x5f28a4(0x240),_0x5f28a4(0x1f5),_0x5f28a4(0x210),!0x1,0x6e,!0x1,_0x5f28a4(0x212)),MetaUiUtil[_0x5f28a4(0x23b)](_0x5f28a4(0x23e),'routing','routing',_0x5f28a4(0x210),!0x1,!0x1,0xfa)],'list':{'fields':[_0x5f28a4(0x1ed),'routing']},'nameField':_0x5f28a4(0x216)}},'width':0xeb},MetaUiUtil[_0x5f28a4(0x23b)](_0x5f28a4(0x217),'updater',_0x5f28a4(0x230),_0x5f28a4(0x22d),!0x1,!0x1,0x78),MetaUiUtil[_0x5f28a4(0x23b)](_0x5f28a4(0x23a),_0x5f28a4(0x1fa),_0x5f28a4(0x1eb),_0x5f28a4(0x22d),!0x1,!0x0,0xb4),{'name':'activityType','hidden':!0x0},{'name':_0x5f28a4(0x248),'hidden':!0x0},{'name':'startingType','hidden':!0x0}],'sorters':[{'name':_0x5f28a4(0x1ed),'desc':!0x1}]};let _0x2b5ffc={'name':_0x5f28a4(0x1e6)};this[_0x5f28a4(0x1f6)][_0x5f28a4(0x20f)][_0x5f28a4(0x20a)](_0x5a8ca9=>_0x2b5ffc[_0x5a8ca9[_0x5f28a4(0x1ed)]])[_0x5f28a4(0x249)](_0x491687=>{_0x491687['filter']=_0x2b5ffc[_0x491687['name']];}),this[_0x5f28a4(0x22b)]&&await super[_0x5f28a4(0x22b)]();}async['fetchHandler']({page:_0x360d92,limit:_0x10a7a6,sorters:_0x10aa14=[],filters:_0x369975=[]}){const _0x5e667f=a0_0x37b8fc;_0x369975[_0x5e667f(0x235)]({'name':_0x5e667f(0x1fe),'operator':_0x5e667f(0x1e6),'value':_0x5e667f(0x21a)});let _0x34c83c=MetaApi[_0x5e667f(0x233)](this[_0x5e667f(0x1f6)][_0x5e667f(0x20f)][_0x5e667f(0x20a)](_0x4f1c58=>_0x5e667f(0x1f1)!=_0x4f1c58[_0x5e667f(0x1ed)]));_0x34c83c+=_0x5e667f(0x1e5);let _0x4113e3=await MetaApi[_0x5e667f(0x1ef)](_0x5e667f(0x1fb),_0x369975,_0x10aa14,_0x360d92,_0x10a7a6,_0x34c83c);return _0x4113e3[_0x5e667f(0x225)][_0x5e667f(0x249)](_0x126007=>{const _0x19d48b=_0x5e667f;let _0x682b04=_0x126007[_0x19d48b(0x1fe)][_0x19d48b(0x20a)](_0x2bfa6a=>_0x19d48b(0x238)==_0x2bfa6a[_0x19d48b(0x1ed)]);_0x682b04&&_0x682b04['length']>0x0&&(_0x126007[_0x19d48b(0x1f1)]=JSON[_0x19d48b(0x1f2)](_0x682b04[0x0][_0x19d48b(0x1ec)])),delete _0x126007[_0x19d48b(0x1fe)];}),_0x4113e3;}async[a0_0x37b8fc(0x1ff)](){const _0x32e66b=a0_0x37b8fc;try{var _0x33a4bd=await client[_0x32e66b(0x237)]({'query':a0_0x53a178`
|
|
2
2
|
mutation {
|
|
3
3
|
installActivityTemplate
|
|
4
4
|
}
|
|
5
|
-
`});if(!
|
|
5
|
+
`});if(!_0x33a4bd[_0x32e66b(0x1f0)])return UiUtil[_0x32e66b(0x21d)]('info',TermsUtil[_0x32e66b(0x241)](_0x32e66b(0x1f4))),!0x0;ServiceUtil[_0x32e66b(0x1ea)](_0x33a4bd);}catch(_0x449f0e){ServiceUtil[_0x32e66b(0x1e7)](_0x449f0e);}}async['save'](){const _0x29512f=a0_0x37b8fc;let _0x3a293d=ServiceUtil['patchesForUpdateMultiple'](this['grist']);if(ValueUtil[_0x29512f(0x208)](_0x3a293d)){_0x3a293d[_0x29512f(0x249)](_0x9a1987=>{const _0x376356=_0x29512f;Object[_0x376356(0x1f3)](_0x9a1987,{'uiSource':_0x376356(0x207),'uiType':_0x376356(0x246),'viewSource':_0x376356(0x209),'viewType':'custom-element'}),_0x9a1987[_0x376356(0x248)]||(_0x9a1987[_0x376356(0x248)]=_0x376356(0x206)),_0x9a1987[_0x376356(0x21c)]||(_0x9a1987[_0x376356(0x21c)]=_0x376356(0x243)),_0x9a1987[_0x376356(0x1f7)]||(_0x9a1987[_0x376356(0x1f7)]='post');});let _0x2611d2=await ServiceUtil[_0x29512f(0x23f)](_0x29512f(0x228),_0x3a293d);if(_0x2611d2)return this[_0x29512f(0x203)][_0x29512f(0x221)](),_0x2611d2;}}async[a0_0x37b8fc(0x21e)](){const _0xca8c1a=a0_0x37b8fc;await MetaApi[_0xca8c1a(0x21f)](this['grist'],_0xca8c1a(0x244));}async[a0_0x37b8fc(0x23c)](){}[a0_0x37b8fc(0x1fc)](){const _0x445fcb=a0_0x37b8fc;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[_0x445fcb(0x1f6)]}
|
|
10
|
+
.mode=${this[_0x445fcb(0x1e4)]}
|
|
11
|
+
.fetchHandler=${this['fetchHandler'][_0x445fcb(0x211)](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['customElements'][a0_0x37b8fc(0x218)](a0_0x37b8fc(0x215),MetaActivityListPage);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}
|
|
1
|
+
const a0_0xd305c1=a0_0x291c;(function(_0x162184,_0x1d7271){const _0x47c1b7=a0_0x291c,_0x47df59=_0x162184();while(!![]){try{const _0x2213ae=parseInt(_0x47c1b7(0xd3))/0x1*(-parseInt(_0x47c1b7(0xd9))/0x2)+parseInt(_0x47c1b7(0xda))/0x3+-parseInt(_0x47c1b7(0xdb))/0x4+parseInt(_0x47c1b7(0xd5))/0x5*(parseInt(_0x47c1b7(0xdd))/0x6)+parseInt(_0x47c1b7(0xe3))/0x7+parseInt(_0x47c1b7(0xe4))/0x8+-parseInt(_0x47c1b7(0xe6))/0x9;if(_0x2213ae===_0x1d7271)break;else _0x47df59['push'](_0x47df59['shift']());}catch(_0x29e1cb){_0x47df59['push'](_0x47df59['shift']());}}}(a0_0x34b8,0x5270f));import a0_0x47ff20 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';function a0_0x34b8(){const _0x526e84=['define','15711SfdaHc','routing','21610emHiHk','htmlToElement','contentElement','activityDataSet','10XSDRKd','887037kNpTDp','2380312ptAyIm','tagName','864kQpTzp','isEmpty','\x27\x20route_name=\x27','customData','\x20id=\x27','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_readonly=true\x20is_detail=true></','492401irtLqy','5166016tOyStO','output','5605470iPOuuZ','relationMenu'];a0_0x34b8=function(){return _0x526e84;};return a0_0x34b8();}import{ValueUtil}from'./../../utils/value-util';import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityViewerElement extends MetaActivityMixin(localize(i18next)(LitElement)){['render'](){const _0x4f9514=a0_0x291c;if(this['relationMenu']&&!this[_0x4f9514(0xd7)]){let _0x5137a0=this[_0x4f9514(0xe7)][_0x4f9514(0xdc)],_0x52b5f1=this[_0x4f9514(0xe7)][_0x4f9514(0xd4)],_0x372cbe='<'+_0x5137a0+_0x4f9514(0xe1)+this['relationMenu']['name']+_0x4f9514(0xdf)+_0x52b5f1+_0x4f9514(0xe2)+_0x5137a0+'>';this[_0x4f9514(0xd7)]=UiUtil[_0x4f9514(0xd6)](_0x372cbe),this['contentElement'][_0x4f9514(0xd8)]=ValueUtil[_0x4f9514(0xde)](this[_0x4f9514(0xe5)])?void 0x0:this[_0x4f9514(0xe5)][_0x4f9514(0xe0)];}return html`
|
|
2
|
+
${this['contentElement']}
|
|
3
|
+
`;}}function a0_0x291c(_0x97b0f7,_0x9041f1){const _0x34b8de=a0_0x34b8();return a0_0x291c=function(_0x291cea,_0x3db37d){_0x291cea=_0x291cea-0xd3;let _0x576b45=_0x34b8de[_0x291cea];return _0x576b45;},a0_0x291c(_0x97b0f7,_0x9041f1);}customElements[a0_0xd305c1(0xe8)]('meta-activity-viewer-element',MetaActivityViewerElement);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements['
|
|
1
|
+
const a0_0x10625d=a0_0x39ff;(function(_0x191c29,_0x2ec259){const _0x4cc234=a0_0x39ff,_0x7d1c3a=_0x191c29();while(!![]){try{const _0x336d51=-parseInt(_0x4cc234(0x9b))/0x1+-parseInt(_0x4cc234(0x8e))/0x2+-parseInt(_0x4cc234(0x88))/0x3*(parseInt(_0x4cc234(0x97))/0x4)+parseInt(_0x4cc234(0x8c))/0x5*(parseInt(_0x4cc234(0x94))/0x6)+parseInt(_0x4cc234(0x8b))/0x7+parseInt(_0x4cc234(0x9d))/0x8*(parseInt(_0x4cc234(0x8d))/0x9)+parseInt(_0x4cc234(0x96))/0xa;if(_0x336d51===_0x2ec259)break;else _0x7d1c3a['push'](_0x7d1c3a['shift']());}catch(_0x459e9b){_0x7d1c3a['push'](_0x7d1c3a['shift']());}}}(a0_0x17fc,0x7b493));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_0x17fc(){const _0x1b887a=['\x20id=\x27','tagName','\x27\x20route_name=\x27','output','render','removeEventListener','3WiDWIo','activityDataSet','dispatchEvent','5269068WtSIaQ','1445975HqkGxO','9YHOHtm','640250rwkKAY','htmlToElement','change','define','field-change','getData','6cZkihc','connectedCallback','2426990zMeyJn','2278804Cwjtsm','customData','routing','relationMenu','424082ceXeHd','_onFieldChange','4274152fiCNkc','isEmpty','contentElement'];a0_0x17fc=function(){return _0x1b887a;};return a0_0x17fc();}function a0_0x39ff(_0x592177,_0x4a01df){const _0x17fc37=a0_0x17fc();return a0_0x39ff=function(_0x39ff2f,_0x4f015d){_0x39ff2f=_0x39ff2f-0x85;let _0x522185=_0x17fc37[_0x39ff2f];return _0x522185;},a0_0x39ff(_0x592177,_0x4a01df);}import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityWriterElement extends MetaActivityMixin(localize(i18next)(LitElement)){async['connectedCallback'](){const _0x4dab53=a0_0x39ff;await super[_0x4dab53(0x95)](),this['addEventListener'](_0x4dab53(0x92),this[_0x4dab53(0x9c)]);}['disconnectedCallback'](){const _0x28d77a=a0_0x39ff;this[_0x28d77a(0x87)](_0x28d77a(0x92),this[_0x28d77a(0x9c)]);}[a0_0x10625d(0x9c)](_0x301997){const _0x32e5a4=a0_0x10625d;let _0x12bae6=this['contentElement'][_0x32e5a4(0x93)]();this[_0x32e5a4(0x8a)](new CustomEvent(_0x32e5a4(0x90),{'detail':{'customData':_0x12bae6}}));}[a0_0x10625d(0x86)](){const _0x55e4ef=a0_0x10625d;if(this['relationMenu']&&!this[_0x55e4ef(0x9f)]){let _0x2d2f97=this[_0x55e4ef(0x9a)][_0x55e4ef(0xa1)],_0xd1415=this['relationMenu'][_0x55e4ef(0x99)],_0x29156a='<'+_0x2d2f97+_0x55e4ef(0xa0)+this[_0x55e4ef(0x9a)]['name']+_0x55e4ef(0xa2)+_0xd1415+'\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></'+_0x2d2f97+'>';this['contentElement']=UiUtil[_0x55e4ef(0x8f)](_0x29156a),this[_0x55e4ef(0x9f)][_0x55e4ef(0x89)]=ValueUtil[_0x55e4ef(0x9e)](this['output'])?void 0x0:this[_0x55e4ef(0x85)][_0x55e4ef(0x98)];}return html`
|
|
2
|
+
${this['contentElement']}
|
|
3
|
+
`;}}customElements[a0_0x10625d(0x91)]('meta-activity-writer-element',MetaActivityWriterElement);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x7cf41=a0_0x5777;(function(_0x146739,_0x2fcf9d){const _0x2d17c2=a0_0x5777,_0x4736aa=_0x146739();while(!![]){try{const _0x5111ab=-parseInt(_0x2d17c2(0xe5))/0x1*(-parseInt(_0x2d17c2(0x100))/0x2)+-parseInt(_0x2d17c2(0x10b))/0x3+parseInt(_0x2d17c2(0xed))/0x4+-parseInt(_0x2d17c2(0x106))/0x5*(-parseInt(_0x2d17c2(0xfd))/0x6)+parseInt(_0x2d17c2(0x103))/0x7*(parseInt(_0x2d17c2(0x108))/0x8)+parseInt(_0x2d17c2(0xe2))/0x9*(parseInt(_0x2d17c2(0xef))/0xa)+-parseInt(_0x2d17c2(0x101))/0xb;if(_0x5111ab===_0x2fcf9d)break;else _0x4736aa['push'](_0x4736aa['shift']());}catch(_0x14bd6a){_0x4736aa['push'](_0x4736aa['shift']());}}}(a0_0x336f,0xa2c42));function a0_0x5777(_0x35d2ae,_0x3b1e1c){const _0x336fd1=a0_0x336f();return a0_0x5777=function(_0x577711,_0x44fdea){_0x577711=_0x577711-0xe2;let _0x1a3325=_0x336fd1[_0x577711];return _0x1a3325;},a0_0x5777(_0x35d2ae,_0x3b1e1c);}import a0_0x48aa69 from'graphql-tag';function a0_0x336f(){const _0x14e50d=['relationMenu','4bWFYXT','22486937mJObdq','relation-menu','28xrhAFd','id,category,resourceUrl','routing','730dEaecr','-element','2165992OLgcqx','styles','menu','1884837pncRkl','1547757mxVyoT','-page','activityId','351139LVnZLU','endsWith','length','forEach','connectedCallback','tMenu','assign','getMenuInfo','263256kjNmuF','records','20wNkbqp','category','parse','query','activity','properties','tagName','replace','name','resourceUrl','data','value_is_not_exist','getActivity','showToast','47022bVrgFJ','searchByPagination'];a0_0x336f=function(){return _0x14e50d;};return a0_0x336f();}import{css}from'lit';import{client}from'@operato/graphql';import{ServiceUtil}from'./../../utils/service-util';import{MetaApi}from'./../../utils/meta-api';export const MetaActivityMixin=_0x4fb4b1=>class extends _0x4fb4b1{static get[a0_0x7cf41(0xf4)](){return{'activityId':String,'input':Object,'output':Object};}static get[a0_0x7cf41(0x109)](){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['connectedCallback'](){const _0x3bcbce=a0_0x7cf41;await this[_0x3bcbce(0xfb)](),await super[_0x3bcbce(0xe9)]();}async[a0_0x7cf41(0xfb)](){const _0xb0c11c=a0_0x7cf41,_0x56fa43=await client[_0xb0c11c(0xf2)]({'query':a0_0x48aa69`
|
|
9
9
|
query activity($id: String!) {
|
|
10
10
|
activity(id: $id) {
|
|
11
11
|
id
|
|
@@ -15,4 +15,4 @@ const a0_0x24c455=a0_0x1da9;function a0_0x14c0(){const _0x229ebb=['endsWith','4q
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`,'variables':{'id':this[
|
|
18
|
+
`,'variables':{'id':this[_0xb0c11c(0xe4)]}});let _0x17366b;this[_0xb0c11c(0xf3)]=_0x56fa43[_0xb0c11c(0xf9)][_0xb0c11c(0xf3)],this['activity']['model']?.[_0xb0c11c(0xe8)](_0x1cfe35=>{const _0x5399fe=_0xb0c11c;_0x5399fe(0x102)==_0x1cfe35[_0x5399fe(0xf7)]&&(_0x17366b=JSON[_0x5399fe(0xf1)](_0x1cfe35['description']));}),this['relationMenu']=_0x17366b,await this[_0xb0c11c(0xec)](this[_0xb0c11c(0xff)]['id'],this[_0xb0c11c(0xff)][_0xb0c11c(0x105)]);}async[a0_0x7cf41(0xec)](_0x353d41,_0x2264a6){const _0x3ccddb=a0_0x7cf41;let _0x429fd2=[{'name':'id','operator':'eq','value':_0x353d41}],_0x34bfb9=await ServiceUtil[_0x3ccddb(0xfe)]('menus',_0x429fd2,null,0x0,0x0,_0x3ccddb(0x104));if(!_0x34bfb9&&0x0==_0x34bfb9[_0x3ccddb(0xe7)]){let _0x4fc41c=TermsUtil['tText'](_0x3ccddb(0xfa),{'value':TermsUtil[_0x3ccddb(0xea)](_0x3ccddb(0x10a))+'\x20'+_0x2264a6});throw MetaApi[_0x3ccddb(0xfc)]('info',_0x4fc41c),new Error(_0x4fc41c);}let _0x2b8b62=_0x34bfb9[_0x3ccddb(0xee)][0x0];_0x2b8b62[_0x3ccddb(0xf5)]=_0x2b8b62[_0x3ccddb(0xf0)][_0x3ccddb(0xe6)](_0x3ccddb(0xe3))?_0x2b8b62[_0x3ccddb(0xf0)]['replace']('-page',_0x3ccddb(0x107)):_0x2b8b62[_0x3ccddb(0xf0)],_0x2b8b62[_0x3ccddb(0xf8)]=_0x2b8b62['resourceUrl'][_0x3ccddb(0xf6)](_0x2b8b62[_0x3ccddb(0xf0)],_0x2b8b62[_0x3ccddb(0xf5)]),Object[_0x3ccddb(0xeb)](this[_0x3ccddb(0xff)],_0x2b8b62);}};
|