@things-factory/meta-ui 6.2.54 → 6.2.56
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 +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +8 -8
- 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/file-upload-popup.js +11 -11
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/component/popup/record-based-code-editor-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-define-page.js +11 -11
- 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/button-role/button-role-detail.js +1 -1
- package/client/pages/button-role/button-role-page.js +1 -1
- package/client/pages/doc-number/doc-number-page.js +1 -1
- package/client/pages/doc-number/next-doc-number-popup.js +1 -1
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-setting-let.js +6 -6
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/menu/export-menu-popup.js +7 -7
- 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/printer-device/printer-device-page.js +1 -1
- package/client/pages/template/doc-template-page.js +1 -1
- package/client/pages/template/template-file-page.js +1 -1
- package/client/pages/terms/config-terminology.js +5 -5
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +107 -107
- package/client/utils/service-util.js +35 -35
- 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 +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x7c9f9=a0_0x247a;(function(_0x23c540,_0x3d45e4){const _0x5d1144=a0_0x247a,_0x1f94ea=_0x23c540();while(!![]){try{const _0x4660c8=-parseInt(_0x5d1144(0xb1))/0x1+parseInt(_0x5d1144(0x95))/0x2*(-parseInt(_0x5d1144(0xa7))/0x3)+-parseInt(_0x5d1144(0xa9))/0x4+-parseInt(_0x5d1144(0xa3))/0x5+parseInt(_0x5d1144(0xa8))/0x6*(parseInt(_0x5d1144(0xa0))/0x7)+-parseInt(_0x5d1144(0xb3))/0x8*(parseInt(_0x5d1144(0x8d))/0x9)+parseInt(_0x5d1144(0xa1))/0xa;if(_0x4660c8===_0x3d45e4)break;else _0x1f94ea['push'](_0x1f94ea['shift']());}catch(_0x2be3dc){_0x1f94ea['push'](_0x1f94ea['shift']());}}}(a0_0x5b43,0xa239e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x5b43(){const _0x2c3a19=['styles','gridConfig','filter','operator','gridEmphasized','getBasicMainTabStyles','useFilterForm','parseGristConfigs','5019EpbOQz','23932680lVEgmL','getAndParseMenuMeta','3984815fsqwru','header','parseBasicGridConfigs','context','3IlkBCt','10482cwVVJj','2969632VdLeRn','isElement','useButtonImport','filterFormId','connectedCallback','options','map','isPage','968763GYjodT','getMainGrist','16fNInBO','exportable','render','ox-grist','main','type','ox-filters-form-base','clear','getMainTabHtml','firstUpdated','pageInitialized','searchConfig','1411893okqxHI','useButtonExport','getData','grist','search','name','gristConfigSet','record','319002GnfVxn','importable','masterElement'];a0_0x5b43=function(){return _0x2c3a19;};return a0_0x5b43();}function a0_0x247a(_0x8d6061,_0xefb5c2){const _0x5b43c9=a0_0x5b43();return a0_0x247a=function(_0x247a92,_0x5ee278){_0x247a92=_0x247a92-0x8c;let _0x248548=_0x5b43c9[_0x247a92];return _0x248548;},a0_0x247a(_0x8d6061,_0xefb5c2);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0xd98960=>class extends MetaButtonMixin(_0xd98960){static get[a0_0x7c9f9(0x98)](){const _0x22c26b=a0_0x7c9f9;return MetaApi[_0x22c26b(0x9d)]();}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_0x7c9f9(0x90)](){const _0x484708=a0_0x7c9f9;return this[_0x484708(0x97)][_0x484708(0xb2)]();}get['filterForm'](){const _0x269ecc=a0_0x7c9f9;return this['shadowRoot']?.['querySelector'](this[_0x269ecc(0xac)]);}get[a0_0x7c9f9(0xa6)](){const _0xaaa071=a0_0x7c9f9;let _0xbfc98b=MetaUiUtil['getContextObject'](this);return _0xbfc98b['actions']&&delete _0xbfc98b['actions'],_0xbfc98b[_0xaaa071(0xb4)]&&delete _0xbfc98b[_0xaaa071(0xb4)],_0xbfc98b[_0xaaa071(0x96)]&&delete _0xbfc98b[_0xaaa071(0x96)],_0xbfc98b;}async[a0_0x7c9f9(0xad)](){const _0x402764=a0_0x7c9f9;this['gristId']=_0x402764(0xb6),this[_0x402764(0xac)]=_0x402764(0xb9),await this[_0x402764(0xa2)](),this[_0x402764(0xaa)]&&await this[_0x402764(0x9f)](),this['activityDataSet']&&(this['dataSet']=(this['activityDataSet']||{})[_0x402764(0xb7)]),super[_0x402764(0xad)]&&await super['connectedCallback']();}async[a0_0x7c9f9(0xbc)](){const _0x150c2f=a0_0x7c9f9;super[_0x150c2f(0xbc)]&&await super[_0x150c2f(0xbc)]();}async[a0_0x7c9f9(0xbd)](){const _0x40e962=a0_0x7c9f9;this[_0x40e962(0xb0)]&&await this[_0x40e962(0x9f)](),super[_0x40e962(0xbd)]&&await super[_0x40e962(0xbd)]();}[a0_0x7c9f9(0xb5)](){const _0x479bcc=a0_0x7c9f9;return MetaApi[_0x479bcc(0xbb)](this);}[a0_0x7c9f9(0xa5)](_0x3e5b5d){const _0xb926cb=a0_0x7c9f9;this[_0xb926cb(0x99)]=_0x3e5b5d['grid'],this['gridColumnConfig']=_0x3e5b5d['grid_column'],this[_0xb926cb(0x8c)]=_0x3e5b5d[_0xb926cb(0x91)],this[_0xb926cb(0x9c)]=_0x3e5b5d[_0xb926cb(0x9c)];}async['parseGristConfigs'](){const _0x2d930c=a0_0x7c9f9;this[_0x2d930c(0x93)]=await MetaApi['parseGridConfigSet'](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this[_0x2d930c(0x9e)]=!0x1,this['buttonConfig']=void 0x0,this[_0x2d930c(0x8e)]=!0x1,this[_0x2d930c(0xab)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this['gristConfigSet']['columns'][_0x2d930c(0x9a)](_0x283ae2=>_0x283ae2[_0x2d930c(0x9a)])[_0x2d930c(0xaf)](_0x313590=>{const _0x25537a=_0x2d930c;let _0x2d5375={'name':_0x313590['name'],'type':_0x25537a(0x91)===_0x313590[_0x25537a(0x9a)][_0x25537a(0x9b)]?'search':_0x313590[_0x25537a(0xb8)],'label':_0x313590[_0x25537a(0xa4)],'operator':_0x313590[_0x25537a(0x9a)][_0x25537a(0x9b)]?_0x313590[_0x25537a(0x9a)][_0x25537a(0x9b)]:'eq'};return _0x313590['filter'][_0x25537a(0xae)]&&(_0x2d5375[_0x25537a(0xae)]=_0x313590[_0x25537a(0x9a)][_0x25537a(0xae)]),_0x313590[_0x25537a(0x94)][_0x25537a(0xae)]&&(_0x2d5375[_0x25537a(0xae)]=_0x313590['record'][_0x25537a(0xae)]),_0x313590[_0x25537a(0x9a)]['value']&&this['searchFieldValues']['push']({'name':_0x2d5375[_0x25537a(0x92)],'operator':_0x2d5375[_0x25537a(0x9b)],'value':_0x313590[_0x25537a(0x9a)]['value']}),delete _0x313590[_0x25537a(0x9a)],_0x2d5375;});}async['fetch'](){const _0x48993f=a0_0x7c9f9;await this[_0x48993f(0x90)]['fetch']();}async['beforeFetch']({page:_0x16537b=0x0,limit:_0x3bcd53=0x0,sortings:_0x2634ec=[],filters:_0x5da7f0=[]}){const _0x116a60=a0_0x7c9f9;return this['masterElement']&&this['masterElement'][_0x116a60(0xba)]&&await this[_0x116a60(0x97)][_0x116a60(0xba)](),!0x0;}[a0_0x7c9f9(0x8f)](){const _0x229427=a0_0x7c9f9;return{'master':this[_0x229427(0x97)][_0x229427(0x8f)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x139dc3=a0_0x2ed4;(function(_0x100033,_0x3d1d57){const _0x446ce3=a0_0x2ed4,_0x2ac334=_0x100033();while(!![]){try{const _0xa0e9c1=parseInt(_0x446ce3(0xb7))/0x1+-parseInt(_0x446ce3(0x7e))/0x2*(parseInt(_0x446ce3(0xb6))/0x3)+parseInt(_0x446ce3(0x96))/0x4*(-parseInt(_0x446ce3(0xbb))/0x5)+-parseInt(_0x446ce3(0x9d))/0x6*(-parseInt(_0x446ce3(0xaf))/0x7)+-parseInt(_0x446ce3(0xc0))/0x8*(-parseInt(_0x446ce3(0x79))/0x9)+parseInt(_0x446ce3(0xc9))/0xa+parseInt(_0x446ce3(0x7a))/0xb;if(_0xa0e9c1===_0x3d1d57)break;else _0x2ac334['push'](_0x2ac334['shift']());}catch(_0x41d471){_0x2ac334['push'](_0x2ac334['shift']());}}}(a0_0x313b,0x9725d));import{html}from'lit';function a0_0x313b(){const _0xb5d675=['search','find','patchesForUpdateMultiple','beforeFetch','isNotEmpty','getParams','connectedCallback','context','import','type','exportableData','renderRoot','masterGridFocusEventHandler','value','clear','findOne','actions','options','gristId','master_option','getSelectedIdList','rows','3123100zKqOEu','ox-filters-form-base','gridColumnConfig','focus','firstUpdated','ox-grist','gridConfig','47274QPmjpY','deleteByIds','filterForm','keys','main','grist','render','setParentId','etcConfig','parse','getBasicMasterDetailStyles','grid_column','grid','getAndParseMenuMeta','parseGridConfigSet','importable','forEach','bind','322jEdofh','detailElement','pageInitialized','parseBasicGridConfigs','querySelector','gridEmphasized','masterOption','1059879fhaQLE','48568SNVQIJ','menuInfo','getData','operator','5ODKKJs','filter','gristConfigSet','delete','getContextObject','520HScPZn','filterFormId','searchFields','exportable','header','activityDataSet','columns','push','save','6096010hQdElQ','styles','parseGristConfigs','fetch','56385TmzWJQ','3578751SpLwjM','title','handlers','searchConfig','2ZKpTeB','record'];a0_0x313b=function(){return _0xb5d675;};return a0_0x313b();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x2ed4(_0x38773a,_0x5740a5){const _0x313bad=a0_0x313b();return a0_0x2ed4=function(_0x2ed424,_0x33e832){_0x2ed424=_0x2ed424-0x77;let _0x52fa7a=_0x313bad[_0x2ed424];return _0x52fa7a;},a0_0x2ed4(_0x38773a,_0x5740a5);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x113dbf=>class extends MetaButtonMixin(_0x113dbf){static get[a0_0x139dc3(0xca)](){const _0x3eff96=a0_0x139dc3;return MetaApi[_0x3eff96(0xa7)]();}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,'detailElement':Object};}get[a0_0x139dc3(0xa2)](){const _0x5cb199=a0_0x139dc3;return this[_0x5cb199(0x8b)][_0x5cb199(0xb3)](this[_0x5cb199(0x92)]);}get[a0_0x139dc3(0x9f)](){const _0x295116=a0_0x139dc3;return this['shadowRoot']?.[_0x295116(0xb3)](this[_0x295116(0xc1)]);}get[a0_0x139dc3(0x87)](){const _0x3668fa=a0_0x139dc3;let _0x336d05=MetaUiUtil[_0x3668fa(0xbf)](this);return _0x336d05[_0x3668fa(0x90)]&&delete _0x336d05['actions'],_0x336d05[_0x3668fa(0xc3)]&&delete _0x336d05[_0x3668fa(0xc3)],_0x336d05[_0x3668fa(0xac)]&&delete _0x336d05[_0x3668fa(0xac)],_0x336d05;}async['connectedCallback'](){const _0x1fc9aa=a0_0x139dc3;this['gristId']=_0x1fc9aa(0x9b),this[_0x1fc9aa(0xc1)]=_0x1fc9aa(0x97),await this[_0x1fc9aa(0xaa)](),this['isElement']&&await this[_0x1fc9aa(0x77)](),this[_0x1fc9aa(0xc5)]&&(this['dataSet']=(this['activityDataSet']||{})[_0x1fc9aa(0xa1)]),super['connectedCallback']&&await super[_0x1fc9aa(0x86)]();}async[a0_0x139dc3(0x9a)](){const _0x571354=a0_0x139dc3;super[_0x571354(0x9a)]&&await super[_0x571354(0x9a)]();}async['pageInitialized'](){const _0x3a32f3=a0_0x139dc3;this['isPage']&&await this[_0x3a32f3(0x77)](),super['pageInitialized']&&await super[_0x3a32f3(0xb1)]();}[a0_0x139dc3(0xa3)](){return MetaApi['getMasterDetailHtml'](this);}[a0_0x139dc3(0xb2)](_0x4f08b8){const _0x32f8f1=a0_0x139dc3;this[_0x32f8f1(0x9c)]=_0x4f08b8[_0x32f8f1(0xa9)],this[_0x32f8f1(0x98)]=_0x4f08b8[_0x32f8f1(0xa8)],this[_0x32f8f1(0x7d)]=_0x4f08b8[_0x32f8f1(0x80)],this[_0x32f8f1(0xb4)]=_0x4f08b8[_0x32f8f1(0xb4)];}async[a0_0x139dc3(0x77)](){const _0x22e619=a0_0x139dc3;this[_0x22e619(0xbd)]=await MetaApi[_0x22e619(0xab)](this),this['gristConfigSet'][_0x22e619(0x95)][_0x22e619(0x7c)]=this['gristConfigSet']['rows'][_0x22e619(0x7c)]||{},this[_0x22e619(0xbd)][_0x22e619(0x95)][_0x22e619(0x7c)][_0x22e619(0x99)]=this[_0x22e619(0x8c)][_0x22e619(0xae)](this),this['masterOption']=JSON[_0x22e619(0xa6)](this[_0x22e619(0xa5)][_0x22e619(0x93)]||'{}');let {split_filter:_0x21a4d8=!0x1}=this[_0x22e619(0xb5)];this['useMasterFilterForm']=!0x0===this['useFilterForm']&&!0x1===_0x21a4d8,this['useFilterForm']=!0x0===_0x21a4d8,0x0==this['useFilterForm']&&(this['searchFieldValues']=[],this[_0x22e619(0xc2)]=this[_0x22e619(0xbd)][_0x22e619(0xc6)][_0x22e619(0xbc)](_0x4fb10f=>_0x4fb10f['filter'])['map'](_0x2690c7=>{const _0x2072ae=_0x22e619;let _0x42b7dc={'name':_0x2690c7['name'],'type':'search'===_0x2690c7[_0x2072ae(0xbc)][_0x2072ae(0xba)]?'search':_0x2690c7[_0x2072ae(0x89)],'label':_0x2690c7[_0x2072ae(0xc4)],'operator':_0x2690c7[_0x2072ae(0xbc)][_0x2072ae(0xba)]?_0x2690c7[_0x2072ae(0xbc)][_0x2072ae(0xba)]:'eq'};return _0x2690c7['filter']['options']&&(_0x42b7dc[_0x2072ae(0x91)]=_0x2690c7[_0x2072ae(0xbc)][_0x2072ae(0x91)]),_0x2690c7[_0x2072ae(0x7f)][_0x2072ae(0x91)]&&(_0x42b7dc['options']=_0x2690c7['record'][_0x2072ae(0x91)]),_0x2690c7[_0x2072ae(0xbc)][_0x2072ae(0x8d)]&&this['searchFieldValues'][_0x2072ae(0xc7)]({'name':_0x42b7dc['name'],'operator':_0x42b7dc['operator'],'value':_0x2690c7[_0x2072ae(0xbc)]['value']}),delete _0x2690c7[_0x2072ae(0xbc)],_0x42b7dc;}));}[a0_0x139dc3(0x8c)](_0xfeecb2,_0x206f65,_0x505098,_0x1b1e53,_0x5219be){const _0xd87185=a0_0x139dc3;_0x1b1e53['id']&&this[_0xd87185(0xb0)]&&this[_0xd87185(0xb0)][_0xd87185(0xa4)](_0x1b1e53['id']);}async[a0_0x139dc3(0x78)](){const _0x2266cc=a0_0x139dc3;await this[_0x2266cc(0xa2)][_0x2266cc(0x78)]();}async[a0_0x139dc3(0x83)]({page:_0x2bf0ff=0x0,limit:_0x2f8865=0x0,sortings:_0x43d1f4=[],filters:_0x3d7a41=[]}){const _0x406789=a0_0x139dc3;return this['detailElement']&&this[_0x406789(0xb0)][_0x406789(0x8e)]&&await this[_0x406789(0xb0)][_0x406789(0x8e)](),!0x0;}async[a0_0x139dc3(0xc8)](){const _0x58f09e=a0_0x139dc3;let _0x12aee3=MetaApi[_0x58f09e(0x82)](this['grist']);!!ValueUtil[_0x58f09e(0x84)](_0x12aee3)&&await this['updateMultiple'](_0x12aee3)&&this['fetch']();}async[a0_0x139dc3(0x81)](){const _0x5d6544=a0_0x139dc3;let _0x44c8d2=MetaApi[_0x5d6544(0x94)](this[_0x5d6544(0xa2)],!0x0);return ValueUtil[_0x5d6544(0x84)](_0x44c8d2)?await this[_0x5d6544(0x8f)](_0x44c8d2[0x0]):{};}async[a0_0x139dc3(0xbe)](){const _0x3c1b0f=a0_0x139dc3;let _0x385961=MetaApi['getSelectedIdList'](this[_0x3c1b0f(0xa2)],!0x0);!!ValueUtil[_0x3c1b0f(0x84)](_0x385961)&&await this[_0x3c1b0f(0x9e)](_0x385961)&&this[_0x3c1b0f(0x78)]();}async['export'](){const _0x225025=a0_0x139dc3;let _0xcf531f=TermsUtil['tTitle'](ValueUtil[_0x225025(0x85)](this[_0x225025(0xb8)],_0x225025(0x7b)));return await MetaApi[_0x225025(0x8a)](this['isElement'],_0xcf531f,this[_0x225025(0xa2)]);}async[a0_0x139dc3(0x88)](){}[a0_0x139dc3(0xb9)](){const _0x3e0810=a0_0x139dc3;let _0x311b10=this[_0x3e0810(0xa2)]['___data']['records'];return _0x311b10=JSON['parse'](JSON['stringify'](_0x311b10)),_0x311b10[_0x3e0810(0xad)](_0x177b00=>{const _0x49b915=_0x3e0810;Object[_0x49b915(0xa0)](_0x177b00)[_0x49b915(0xad)](_0x4dd496=>{_0x4dd496['startsWith']('__')&&delete _0x177b00[_0x4dd496];});}),{'main':_0x311b10,'detail':this[_0x3e0810(0xb0)][_0x3e0810(0xb9)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4fa170=a0_0x8270;(function(_0x2ff395,_0xb94adf){const _0x103d78=a0_0x8270,_0x970b4a=_0x2ff395();while(!![]){try{const _0x1d6967=-parseInt(_0x103d78(0x1b1))/0x1+-parseInt(_0x103d78(0x1ab))/0x2+parseInt(_0x103d78(0x1a4))/0x3+parseInt(_0x103d78(0x1a3))/0x4+-parseInt(_0x103d78(0x199))/0x5*(-parseInt(_0x103d78(0x1a7))/0x6)+parseInt(_0x103d78(0x180))/0x7+-parseInt(_0x103d78(0x1b2))/0x8;if(_0x1d6967===_0xb94adf)break;else _0x970b4a['push'](_0x970b4a['shift']());}catch(_0x477dd7){_0x970b4a['push'](_0x970b4a['shift']());}}}(a0_0x19c1,0xa60dd));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x8270(_0x1f7341,_0x5aebf8){const _0x19c149=a0_0x19c1();return a0_0x8270=function(_0x8270c6,_0x34db9e){_0x8270c6=_0x8270c6-0x17a;let _0x2d8c7e=_0x19c149[_0x8270c6];return _0x2d8c7e;},a0_0x8270(_0x1f7341,_0x5aebf8);}import{MetaApi}from'./../utils/meta-api';function a0_0x19c1(){const _0x367c28=['forEach','infinityPage','dataSet','ScalarObject','name','beforeFetch','getQueryFilters','5CgaoSB','includes','keys','records','getPageNavigateParams','func','after_set_fields','parent_id','parseBasicServiceConfigs','push','5378844OqFtww','3760146mGiASR','gql','multiple','5065734flTeLl','split','getParams','params','2204746vdNpId','is_activity','formConfigSet','getSelectColumns','result','value','387940hXbyvU','14517376TxhDnZ','query','lifecycle','callScenario','isElement','isArray','runScenario','data','3799320eLIqcd','updateMultiple','length','mutation','pass','gqlInfo','gristConfigSet','columns','mainFilterForm','findOne','filterForm','searchByPagination','filters','deleteListByIds','find_one_func','map','filter','isNotEmpty'];a0_0x19c1=function(){return _0x367c28;};return a0_0x19c1();}import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x218d0c=>class extends MetaBaseMixin(_0x218d0c){static get['properties'](){return{'gqlInfo':Object};}[a0_0x4fa170(0x1a1)](_0x3253c4){const _0x5ef7ab=a0_0x4fa170;this[_0x5ef7ab(0x185)]=_0x3253c4[_0x5ef7ab(0x1a5)];}async['fetchHandler']({page:_0x459cef=0x0,limit:_0x3f2722=0x0,sortings:_0x427086=[],filters:_0x21bb8d=[]}){const _0xa87738=a0_0x4fa170;if(this[_0xa87738(0x1ac)])return{'total':0x0,'records':this[_0xa87738(0x194)]||[]};if(!0x0===this[_0xa87738(0x193)]&&(_0x459cef=0x0,_0x3f2722=0x0),this[_0xa87738(0x197)]&&0x0==await this['beforeFetch']({'page':_0x459cef,'limit':_0x3f2722,'sortings':_0x427086,'filters':_0x21bb8d}))return;if(!this[_0xa87738(0x186)])return{'total':0x0,'records':[]};let _0x2f5c31=ValueUtil['isEmpty'](_0x21bb8d)?this[_0xa87738(0x188)]?await this['mainFilterForm'][_0xa87738(0x198)]()||[]:await this[_0xa87738(0x18a)]?.[_0xa87738(0x198)]()||[]:_0x21bb8d,_0x5d70ee=ValueUtil['getParams'](this[_0xa87738(0x185)],_0xa87738(0x1b3),'list_func'),_0x5ce85d=ValueUtil[_0xa87738(0x1a9)](this[_0xa87738(0x185)],_0xa87738(0x1b3),_0xa87738(0x18c)),_0x112bd4=ValueUtil[_0xa87738(0x1a9)](this[_0xa87738(0x185)],_0xa87738(0x1b3),_0xa87738(0x19f));if(ValueUtil[_0xa87738(0x191)](_0x5ce85d)&&(_0x2f5c31=adjustFilters(_0x2f5c31,_0x5ce85d)),_0x2f5c31[_0xa87738(0x1a2)](...this[_0xa87738(0x19d)]()),this[_0xa87738(0x17c)]&&!this[_0xa87738(0x188)]){let _0x305b9f=ValueUtil[_0xa87738(0x1a9)](this[_0xa87738(0x185)],_0xa87738(0x1b3),_0xa87738(0x1a0));if(!ValueUtil[_0xa87738(0x191)](_0x305b9f)||!ValueUtil[_0xa87738(0x191)](this[_0xa87738(0x1a0)]))return{'total':0x0,'records':[]};_0x2f5c31=adjustFilters(_0x2f5c31,[{'name':_0x305b9f,'operator':'eq','value':this[_0xa87738(0x1a0)]}]);}let _0x14ee6b=Object[_0xa87738(0x19b)](_0x112bd4||{}),_0x5039bf=MetaApi[_0xa87738(0x1ae)](this[_0xa87738(0x186)][_0xa87738(0x187)][_0xa87738(0x190)](_0x12edf0=>!_0x14ee6b['includes'](_0x12edf0[_0xa87738(0x196)]))),_0x2e400d={};if(_0x5d70ee[_0xa87738(0x19a)]('$')){let _0x51dee8=_0x5d70ee['replace']('$','');_0x2e400d=(await MetaApi['callScenario'](void 0x0,_0x51dee8,{'filters':_0x2f5c31,'pagination':{'page':_0x459cef,'limit':_0x3f2722},'sortings':_0x427086},!0x1))[_0xa87738(0x17f)]['runScenario']['result'][_0xa87738(0x1af)];}else _0x2e400d=await MetaApi[_0xa87738(0x18b)](_0x5d70ee,_0x2f5c31,_0x427086,_0x459cef,_0x3f2722,_0x5039bf);if(ValueUtil['isNotEmpty'](_0x112bd4)&&ValueUtil[_0xa87738(0x191)](_0x2e400d)&&ValueUtil['isNotEmpty'](_0x2e400d[_0xa87738(0x19c)])&&_0x2e400d['records'][_0xa87738(0x18f)](_0xc09b8f=>(_0x14ee6b['forEach'](_0xb56893=>{const _0x4fcda2=_0xa87738;_0xc09b8f[_0xb56893]=ValueUtil[_0x4fcda2(0x1a9)](_0xc09b8f,..._0x112bd4[_0xb56893][_0x4fcda2(0x1a8)]('.'));}),_0xc09b8f)),this['afterFetch']){let _0x1829e8=await this['afterFetch']({'page':_0x459cef,'limit':_0x3f2722,'sortings':_0x427086,'filters':_0x21bb8d},_0x2e400d);if(_0x1829e8)return _0x1829e8;}return _0x2e400d;}[a0_0x4fa170(0x19d)](){const _0xcee24c=a0_0x4fa170;if(0x0==this['isPage'])return[];let _0xfdf18b=this['lifecycle']?.['params']?this[_0xcee24c(0x17a)][_0xcee24c(0x1aa)]:{};if(!_0xfdf18b[_0xcee24c(0x184)])return[];let _0x55ac52=_0xfdf18b[_0xcee24c(0x184)],_0x4eda62=JSON['parse'](_0x55ac52),_0x146126=0x1==_0x4eda62[_0xcee24c(0x182)]?'eq':'in',_0x5b59d2={},_0x6037ef=[];return Object[_0xcee24c(0x19b)](_0x4eda62[0x0])[_0xcee24c(0x192)](_0x4c4115=>{_0x5b59d2[_0x4c4115]={'name':_0x4c4115,'operator':_0x146126,'value':'eq'===_0x146126?_0x4eda62[0x0][_0x4c4115]:[]};}),_0x4eda62[_0xcee24c(0x182)]>0x1&&_0x4eda62[_0xcee24c(0x192)](_0x21201d=>{const _0x26541b=_0xcee24c;Object[_0x26541b(0x19b)](_0x21201d)[_0x26541b(0x192)](_0x3f6c6a=>{const _0x165b12=_0x26541b;_0x5b59d2[_0x3f6c6a][_0x165b12(0x1b0)][_0x165b12(0x1a2)](_0x21201d[_0x3f6c6a]);});}),Object[_0xcee24c(0x19b)](_0x5b59d2)[_0xcee24c(0x192)](_0x8ffb62=>{_0x6037ef['push'](_0x5b59d2[_0x8ffb62]);}),_0x6037ef;}async['findOne'](_0x4c55d3){const _0x265b28=a0_0x4fa170;if(this['is_activity'])return this[_0x265b28(0x194)]||{};let _0x3bc000=ValueUtil['getParams'](this[_0x265b28(0x185)],'query',_0x265b28(0x18e)),_0x286d31=ValueUtil[_0x265b28(0x1a9)](this['gqlInfo'],'query',_0x265b28(0x19f)),_0x398baf=Object[_0x265b28(0x19b)](_0x286d31||{}),_0x51fa35=MetaApi[_0x265b28(0x1ae)]((this['gristConfigSet']?this[_0x265b28(0x186)]:{'columns':this[_0x265b28(0x1ad)]})[_0x265b28(0x187)][_0x265b28(0x190)](_0x66efbf=>!_0x398baf['includes'](_0x66efbf[_0x265b28(0x196)]))),_0x42d480={};if(_0x3bc000['includes']('$')){let _0x27eb82=_0x3bc000['replace']('$',''),_0x34754d=await MetaApi[_0x265b28(0x17b)](void 0x0,_0x27eb82,{'id':_0x4c55d3},!0x1);_0x42d480=_0x34754d[_0x265b28(0x17f)][_0x265b28(0x17e)][_0x265b28(0x1af)][_0x265b28(0x1af)];}else _0x42d480=await MetaApi[_0x265b28(0x189)](_0x3bc000,_0x4c55d3,_0x51fa35);return ValueUtil[_0x265b28(0x191)](_0x286d31)&&ValueUtil[_0x265b28(0x191)](_0x42d480)&&_0x398baf[_0x265b28(0x192)](_0x9ddcb6=>{const _0x14909d=_0x265b28;_0x42d480[_0x9ddcb6]=ValueUtil[_0x14909d(0x1a9)](_0x42d480,..._0x286d31[_0x9ddcb6][_0x14909d(0x1a8)]('.'));}),_0x42d480;}async['deleteByIds'](_0x5bc8dd){const _0x4ddf70=a0_0x4fa170;let _0xc54c5e=ValueUtil[_0x4ddf70(0x1a9)](this[_0x4ddf70(0x185)],'mutation','delete',_0x4ddf70(0x19e));return await MetaApi[_0x4ddf70(0x18d)](_0x5bc8dd,_0xc54c5e);}async[a0_0x4fa170(0x181)](_0x262c35){const _0x2fa434=a0_0x4fa170;let _0x439938=ValueUtil['getParams'](this[_0x2fa434(0x185)],_0x2fa434(0x183),_0x2fa434(0x1a6),_0x2fa434(0x19e)),_0x2f60ec=ValueUtil['getParams'](this[_0x2fa434(0x185)],_0x2fa434(0x183),_0x2fa434(0x1a6),'skip_fields'),_0x2c5c8d=_0x2fa434(0x195)==ValueUtil[_0x2fa434(0x1a9)](this['gqlInfo'],_0x2fa434(0x183),_0x2fa434(0x1a6),'type')?_0x262c35['patches']:_0x262c35;if(ValueUtil[_0x2fa434(0x191)](_0x2f60ec)&&(_0x2f60ec=_0x2f60ec['map'](_0x4f0b50=>_0x4f0b50[_0x2fa434(0x19a)]('.')?_0x4f0b50[_0x2fa434(0x1a8)]('.'):_0x4f0b50),_0x2c5c8d=_0x2c5c8d[_0x2fa434(0x18f)](_0x58f511=>(_0x2f60ec['forEach'](_0x30a71f=>{const _0x4a441e=_0x2fa434;Array[_0x4a441e(0x17d)](_0x30a71f)?delete _0x58f511[_0x30a71f[0x0]][_0x30a71f[0x1]]:delete _0x58f511[_0x30a71f];}),_0x58f511))),this[_0x2fa434(0x17c)]&&ValueUtil[_0x2fa434(0x191)](this[_0x2fa434(0x1a0)])){let _0x4d9327=ValueUtil[_0x2fa434(0x1a9)](this[_0x2fa434(0x185)],_0x2fa434(0x183),'multiple',_0x2fa434(0x1a0));ValueUtil[_0x2fa434(0x191)](_0x4d9327)&&_0x2c5c8d[_0x2fa434(0x192)](_0x241694=>{const _0x439e14=_0x2fa434;if(_0x4d9327[_0x439e14(0x19a)]('.')){let _0x26fe7e=_0x4d9327['split']('.');_0x241694[_0x26fe7e[0x0]]={},_0x241694[_0x26fe7e[0x0]][_0x26fe7e[0x1]]=this[_0x439e14(0x1a0)];}else _0x241694[_0x4d9327]=this[_0x439e14(0x1a0)];});}return await MetaApi[_0x2fa434(0x181)](_0x439938,_0x262c35);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3e9105=a0_0x35ee;function a0_0x2717(){const _0x229ce0=['178671nOwKVe','render','isPage','gridConfig','main','columns','clear','name','getData','useFilterForm','2600008dzWaQw','5836050hacKvC','pageInitialized','useButtonExport','searchConfig','properties','styles','5086475psskmM','parseBasicGridConfigs','filterFormId','record','fetch','grid','searchFields','parseGridConfigSet','context','searchFieldValues','options','detailElement','masterElement','getContextObject','gristConfigSet','2PDWGRW','parseGristConfigs','3755927xReZpC','activityDataSet','exportable','6MvlVIu','grid_column','filter','shadowRoot','ox-filters-form-base','importable','map','647299ukXGrb','useButtonImport','8gGJwfg','connectedCallback','buttonConfig','gridEmphasized','firstUpdated','filterForm','operator','push','actions','4340350sjKIVt','grist','beforeFetch'];a0_0x2717=function(){return _0x229ce0;};return a0_0x2717();}(function(_0x5688b6,_0x11fb24){const _0x13add7=a0_0x35ee,_0x1c52d3=_0x5688b6();while(!![]){try{const _0x1786ee=parseInt(_0x13add7(0xed))/0x1+parseInt(_0x13add7(0xe1))/0x2*(parseInt(_0x13add7(0xfb))/0x3)+-parseInt(_0x13add7(0x105))/0x4+parseInt(_0x13add7(0x10c))/0x5*(-parseInt(_0x13add7(0xe6))/0x6)+parseInt(_0x13add7(0xe3))/0x7+parseInt(_0x13add7(0xef))/0x8*(parseInt(_0x13add7(0x106))/0x9)+parseInt(_0x13add7(0xf8))/0xa;if(_0x1786ee===_0x11fb24)break;else _0x1c52d3['push'](_0x1c52d3['shift']());}catch(_0x3501f6){_0x1c52d3['push'](_0x1c52d3['shift']());}}}(a0_0x2717,0xa0cad));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x35ee(_0x229428,_0x44a7d3){const _0x27173c=a0_0x2717();return a0_0x35ee=function(_0x35ee37,_0x408f6a){_0x35ee37=_0x35ee37-0xdc;let _0x180e3e=_0x27173c[_0x35ee37];return _0x180e3e;},a0_0x35ee(_0x229428,_0x44a7d3);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabDetailMixin=_0x3da1ed=>class extends MetaButtonMixin(_0x3da1ed){static get[a0_0x3e9105(0x10b)](){return MetaApi['getBasicTabDetailStyles']();}static get[a0_0x3e9105(0x10a)](){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['grist'](){const _0x4bd7d5=a0_0x3e9105;return this[_0x4bd7d5(0xde)]['getMainGrist']();}get[a0_0x3e9105(0xf4)](){const _0xb05492=a0_0x3e9105;return this[_0xb05492(0xe9)]?.['querySelector'](this['filterFormId']);}get[a0_0x3e9105(0x114)](){const _0x39557a=a0_0x3e9105;let _0x3252b8=MetaUiUtil[_0x39557a(0xdf)](this);return _0x3252b8[_0x39557a(0xf7)]&&delete _0x3252b8[_0x39557a(0xf7)],_0x3252b8['exportable']&&delete _0x3252b8[_0x39557a(0xe5)],_0x3252b8[_0x39557a(0xeb)]&&delete _0x3252b8[_0x39557a(0xeb)],_0x3252b8;}async['connectedCallback'](){const _0x58e5ad=a0_0x3e9105;this['gristId']='ox-grist',this[_0x58e5ad(0x10e)]=_0x58e5ad(0xea),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x58e5ad(0xe2)](),this[_0x58e5ad(0xe4)]&&(this['dataSet']=(this[_0x58e5ad(0xe4)]||{})[_0x58e5ad(0xff)]),super[_0x58e5ad(0xf0)]&&await super[_0x58e5ad(0xf0)]();}async[a0_0x3e9105(0xf3)](){const _0x4fa8e5=a0_0x3e9105;super[_0x4fa8e5(0xf3)]&&await super[_0x4fa8e5(0xf3)]();}async[a0_0x3e9105(0x107)](){const _0x5dd44d=a0_0x3e9105;this[_0x5dd44d(0xfd)]&&await this[_0x5dd44d(0xe2)](),super[_0x5dd44d(0x107)]&&await super['pageInitialized']();}[a0_0x3e9105(0xfc)](){return MetaApi['getTabDetailHtml'](this);}[a0_0x3e9105(0x10d)](_0x22a809){const _0x3aa5e4=a0_0x3e9105;this[_0x3aa5e4(0xfe)]=_0x22a809[_0x3aa5e4(0x111)],this['gridColumnConfig']=_0x22a809[_0x3aa5e4(0xe7)],this[_0x3aa5e4(0x109)]=_0x22a809['search'],this[_0x3aa5e4(0xf2)]=_0x22a809[_0x3aa5e4(0xf2)];}async[a0_0x3e9105(0xe2)](){const _0x3ce0bd=a0_0x3e9105;this[_0x3ce0bd(0xe0)]=await MetaApi[_0x3ce0bd(0x113)](this),this['useMasterFilterForm']=!0x0===this[_0x3ce0bd(0x104)],this[_0x3ce0bd(0x104)]=!0x1,this[_0x3ce0bd(0xf1)]=void 0x0,this[_0x3ce0bd(0x108)]=!0x1,this[_0x3ce0bd(0xee)]=!0x1,this[_0x3ce0bd(0x115)]=[],this[_0x3ce0bd(0x112)]=this[_0x3ce0bd(0xe0)][_0x3ce0bd(0x100)]['filter'](_0x26feb8=>_0x26feb8['filter'])[_0x3ce0bd(0xec)](_0x1d9965=>{const _0x3df2cc=_0x3ce0bd;let _0x1fb6bf={'name':_0x1d9965['name'],'type':'search'===_0x1d9965[_0x3df2cc(0xe8)][_0x3df2cc(0xf5)]?'search':_0x1d9965['type'],'label':_0x1d9965['header'],'operator':_0x1d9965[_0x3df2cc(0xe8)]['operator']?_0x1d9965['filter'][_0x3df2cc(0xf5)]:'eq'};return _0x1d9965[_0x3df2cc(0xe8)][_0x3df2cc(0xdc)]&&(_0x1fb6bf['options']=_0x1d9965['filter'][_0x3df2cc(0xdc)]),_0x1d9965['record'][_0x3df2cc(0xdc)]&&(_0x1fb6bf[_0x3df2cc(0xdc)]=_0x1d9965[_0x3df2cc(0x10f)]['options']),_0x1d9965[_0x3df2cc(0xe8)]['value']&&this[_0x3df2cc(0x115)][_0x3df2cc(0xf6)]({'name':_0x1fb6bf[_0x3df2cc(0x102)],'operator':_0x1fb6bf[_0x3df2cc(0xf5)],'value':_0x1d9965[_0x3df2cc(0xe8)]['value']}),delete _0x1d9965[_0x3df2cc(0xe8)],_0x1fb6bf;});}async[a0_0x3e9105(0x110)](){const _0x2fe6b6=a0_0x3e9105;await this[_0x2fe6b6(0xf9)]['fetch']();}async[a0_0x3e9105(0xfa)]({page:_0x553c8c=0x0,limit:_0x49fd99=0x0,sortings:_0x12bf16=[],filters:_0x34eacc=[]}){const _0x4c7ca1=a0_0x3e9105;return this[_0x4c7ca1(0xde)]&&this[_0x4c7ca1(0xde)][_0x4c7ca1(0x101)]&&await this['masterElement'][_0x4c7ca1(0x101)](),this[_0x4c7ca1(0xdd)]&&this[_0x4c7ca1(0xdd)][_0x4c7ca1(0x101)]&&await this[_0x4c7ca1(0xdd)][_0x4c7ca1(0x101)](),!0x0;}[a0_0x3e9105(0x103)](){const _0xec83f1=a0_0x3e9105;return{'master':this[_0xec83f1(0xde)]['getData'](),'detail':this[_0xec83f1(0xdd)]['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3db0ae=a0_0x24c5;function a0_0x4339(){const _0x298718=['length','getAndParseMenuMeta','context','currentTabKey','{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22,\x20\x22index\x22:0\x20}','11644FmCxiV','710538WqynbQ','getBasicTabStyles','grist','name','display','button','keys','18bKfYGm','clear','91216FOMQII','forEach','81434TThqVO','pageInitialized','activityDataSet','splice','tab','tabRenderConfig','mainFilterForm','getContextObject','56ISPRFm','12076780CPDtww','parseBasicTabConfigs','dataSet','connectedCallback','737FxRvdq','648fygJye','621480noWqEb','etcConfig','styles','firstUpdated','tabElements','35820ZoSYHk','645jVsNSf','index','getMainGrist','render'];a0_0x4339=function(){return _0x298718;};return a0_0x4339();}(function(_0x1af4ec,_0x3740ac){const _0xd58309=a0_0x24c5,_0x5327bc=_0x1af4ec();while(!![]){try{const _0xc89559=-parseInt(_0xd58309(0x162))/0x1*(parseInt(_0xd58309(0x15e))/0x2)+-parseInt(_0xd58309(0x171))/0x3+parseInt(_0xd58309(0x156))/0x4*(parseInt(_0xd58309(0x14d))/0x5)+parseInt(_0xd58309(0x157))/0x6*(-parseInt(_0xd58309(0x16a))/0x7)+-parseInt(_0xd58309(0x160))/0x8*(-parseInt(_0xd58309(0x170))/0x9)+parseInt(_0xd58309(0x16b))/0xa+-parseInt(_0xd58309(0x16f))/0xb*(-parseInt(_0xd58309(0x14c))/0xc);if(_0xc89559===_0x3740ac)break;else _0x5327bc['push'](_0x5327bc['shift']());}catch(_0x598ee9){_0x5327bc['push'](_0x5327bc['shift']());}}}(a0_0x4339,0xaef8e));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x24c5(_0x5818f3,_0x4d67af){const _0x433925=a0_0x4339();return a0_0x24c5=function(_0x24c5c3,_0x843a21){_0x24c5c3=_0x24c5c3-0x14c;let _0x33673a=_0x433925[_0x24c5c3];return _0x33673a;},a0_0x24c5(_0x5818f3,_0x4d67af);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x439b2e=>class extends MetaButtonMixin(_0x439b2e){static get[a0_0x3db0ae(0x173)](){const _0x852459=a0_0x3db0ae;return MetaApi[_0x852459(0x158)]();}static get['properties'](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x3db0ae(0x153)](){const _0x17dae6=a0_0x3db0ae;return MetaUiUtil[_0x17dae6(0x169)](this);}async[a0_0x3db0ae(0x16e)](){const _0x1340e2=a0_0x3db0ae;this[_0x1340e2(0x154)]=void 0x0,await this[_0x1340e2(0x152)](),this[_0x1340e2(0x164)]&&(this[_0x1340e2(0x16d)]=this['activityDataSet']),super[_0x1340e2(0x16e)]&&await super[_0x1340e2(0x16e)]();}async['firstUpdated'](){const _0x2302fc=a0_0x3db0ae;super['firstUpdated']&&await super[_0x2302fc(0x174)]();}async[a0_0x3db0ae(0x163)](){const _0x393a3f=a0_0x3db0ae;super[_0x393a3f(0x163)]&&await super[_0x393a3f(0x163)]();}[a0_0x3db0ae(0x150)](){return MetaApi['getBasicTabHtml'](this);}[a0_0x3db0ae(0x16c)](_0x5f26cc){const _0x3ab348=a0_0x3db0ae;if(!0x0===this['includeMainList']){let _0x5302ad=this[_0x3ab348(0x172)]['main_tab_info'],_0x306e2e=JSON['parse'](_0x5302ad||_0x3ab348(0x155));_0x306e2e[_0x3ab348(0x14e)]>_0x5f26cc[_0x3ab348(0x166)][_0x3ab348(0x151)]&&(_0x306e2e['index']=_0x5f26cc[_0x3ab348(0x166)][_0x3ab348(0x151)]),_0x5f26cc[_0x3ab348(0x166)][_0x3ab348(0x165)](_0x306e2e['index'],0x0,{'name':_0x306e2e[_0x3ab348(0x15a)],'display':_0x306e2e[_0x3ab348(0x15b)],'tagname':'meta-grist-element','location':'@things-factory/meta-ui/client/pages/meta-grist-element','parent_field':'id','param_field':'param_field','menu':this['route_name'],'icon':_0x306e2e['icon'],'filter_from':!0x1,'main_filter_form':this[_0x3ab348(0x168)]});}this[_0x3ab348(0x167)]=_0x5f26cc[_0x3ab348(0x166)],_0x5f26cc[_0x3ab348(0x15c)]=[];}async[a0_0x3db0ae(0x15f)](){const _0x30e159=a0_0x3db0ae;if(this[_0x30e159(0x175)]){let _0x577984=Object['keys'](this[_0x30e159(0x175)]);for(var _0x59b0a8=0x0;_0x59b0a8<_0x577984[_0x30e159(0x151)];_0x59b0a8++)await this[_0x30e159(0x175)][_0x577984[_0x59b0a8]][_0x30e159(0x15f)]();}}['getData'](){const _0x247414=a0_0x3db0ae;let _0x478891={};return this[_0x247414(0x175)]&&Object[_0x247414(0x15d)](this[_0x247414(0x175)])[_0x247414(0x161)](_0x500639=>{const _0xaef3fc=_0x247414;_0x478891[_0x500639]=this[_0xaef3fc(0x175)][_0x500639]['getData']();}),_0x478891;}[a0_0x3db0ae(0x14f)](){const _0x396e20=a0_0x3db0ae;if(this['tabElements']){let _0x2296e6=Object['keys'](this[_0x396e20(0x175)]);return this['tabElements'][_0x2296e6[0x0]][_0x396e20(0x159)];}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x168315=a0_0x5cb8;function a0_0x6064(){const _0xb32811=['1091834onXVSj','fetchHandler','716436kWTdBj','2328390SXPNMj','data','after','field.approval-line','approvalLine','grist','save','select','map','approval-line','gutter','button','released','worklist/activity','label.filter-deprecated','shadowRoot','total','1369340KFDxMy','mode','value','deprecated','button.save','meta-activity-define-page','select-row-toggle','styles','define','search','activity-search-keys','gristConfig','length','includes','large','GRID','querySelector','field.supervisory-role','responses','datetime','label.status','thumbnail','reorder','field.search-keys','updateActivity','sequence','customElements','field.updated_at','field.updater','getGristPagination100Config','center','2048478kMySam','currentTarget','field.description','pageInitialized','dirtyRecords','6992NoBslh','bind','title.lookup\x20role','resource-object','cuFlag','row-selector','4fIOHgM','5103196GNIgCs','context','title.activity\x20list','searchText','state','__dirtyfields__','900eGGVLq','CARD','string','connectedCallback','updatedAt','5KdXEaW','supervisoryRole','filters','label.filter-draft','ox-grist','fetch','errors','description','filter','name','draft'];a0_0x6064=function(){return _0xb32811;};return a0_0x6064();}(function(_0x1ed13b,_0x2abf32){const _0x3d47c0=a0_0x5cb8,_0x12f9a3=_0x1ed13b();while(!![]){try{const _0x4d69ca=parseInt(_0x3d47c0(0x145))/0x1+parseInt(_0x3d47c0(0x131))/0x2+parseInt(_0x3d47c0(0x133))/0x3*(parseInt(_0x3d47c0(0x16f))/0x4)+parseInt(_0x3d47c0(0x126))/0x5*(-parseInt(_0x3d47c0(0x164))/0x6)+-parseInt(_0x3d47c0(0x170))/0x7+parseInt(_0x3d47c0(0x169))/0x8*(parseInt(_0x3d47c0(0x121))/0x9)+-parseInt(_0x3d47c0(0x134))/0xa;if(_0x4d69ca===_0x2abf32)break;else _0x12f9a3['push'](_0x12f9a3['shift']());}catch(_0x43f479){_0x12f9a3['push'](_0x12f9a3['shift']());}}}(a0_0x6064,0xe50cd));import'@operato/data-grist';import'@things-factory/worklist/dist-client/pages/activity/activity-model-item-list.js';import{ActivityStatus}from'@things-factory/worklist/dist-client/types/types.js';import a0_0x4aecb1 from'graphql-tag';import{css,html}from'lit';function a0_0x5cb8(_0x4b416a,_0x5e0aa7){const _0x6064c5=a0_0x6064();return a0_0x5cb8=function(_0x5cb859,_0x3951ec){_0x5cb859=_0x5cb859-0x121;let _0x57860e=_0x6064c5[_0x5cb859];return _0x57860e;},a0_0x5cb8(_0x4b416a,_0x5e0aa7);}import{client}from'@operato/graphql';import{i18next,localize}from'@operato/i18n';import{notify,openPopup}from'@operato/layout';import{PageView}from'@operato/shell';import{CommonButtonStyles,CommonGristStyles,ScrollbarStyles}from'@operato/styles';import{adjustFilters,isMobileDevice}from'@operato/utils';import{MetaApi}from'./../../utils/meta-api';class MetaActivityDefinePage extends localize(i18next)(PageView){static get[a0_0x168315(0x14c)](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
|
|
@@ -7,24 +7,24 @@ function a0_0x19fa(_0x52c609,_0x264b70){const _0x2265c1=a0_0x2265();return a0_0x
|
|
|
7
7
|
--grid-record-emphasized-background-color: red;
|
|
8
8
|
--grid-record-emphasized-color: yellow;
|
|
9
9
|
}
|
|
10
|
-
`];}static get['properties'](){return{'gristConfig':Object,'mode':String,'grist':Object,'filters':[]};}get[
|
|
11
|
-
<ox-grist .mode=${
|
|
10
|
+
`];}static get['properties'](){return{'gristConfig':Object,'mode':String,'grist':Object,'filters':[]};}get[a0_0x168315(0x139)](){const _0x1e4cd8=a0_0x168315;return this[_0x1e4cd8(0x143)][_0x1e4cd8(0x155)](_0x1e4cd8(0x12a));}async[a0_0x168315(0x124)](){const _0x49c3e7=a0_0x168315;this[_0x49c3e7(0x146)]=isMobileDevice()?_0x49c3e7(0x122):_0x49c3e7(0x154),this[_0x49c3e7(0x128)]=[_0x49c3e7(0x140)],super[_0x49c3e7(0x124)]&&await super['connectedCallback']();}get[a0_0x168315(0x171)](){const _0x3af41c=a0_0x168315;return{'title':i18next['t'](_0x3af41c(0x172)),'search':{'handler':_0x231e28=>{const _0x173d9b=_0x3af41c;this['grist'][_0x173d9b(0x173)]=_0x231e28;},'value':this[_0x3af41c(0x139)]?.[_0x3af41c(0x173)]||''},'filter':{'handler':()=>{const _0x4986ee=_0x3af41c;this[_0x4986ee(0x139)]['toggleHeadroom']();}},'help':_0x3af41c(0x141),'actions':[{'title':i18next['t'](_0x3af41c(0x149)),'action':this[_0x3af41c(0x15d)]['bind'](this),...CommonButtonStyles[_0x3af41c(0x13a)]}]};}['render'](){const _0x30313d=a0_0x168315,_0x29299d=this[_0x30313d(0x146)];return html`
|
|
11
|
+
<ox-grist .mode=${_0x29299d} .config=${this['gristConfig']} .fetchHandler=${this[_0x30313d(0x132)][_0x30313d(0x16a)](this)}>
|
|
12
12
|
<div slot="headroom">
|
|
13
13
|
<div id="filters">
|
|
14
14
|
<ox-input-select-buttons
|
|
15
|
-
.value=${this[
|
|
16
|
-
.options=${[{'display':i18next['t'](
|
|
17
|
-
@change=${
|
|
15
|
+
.value=${this[_0x30313d(0x128)]}
|
|
16
|
+
.options=${[{'display':i18next['t'](_0x30313d(0x129)),'value':_0x30313d(0x130)},{'display':i18next['t']('label.filter-released'),'value':_0x30313d(0x140)},{'display':i18next['t'](_0x30313d(0x142)),'value':_0x30313d(0x148)}]}
|
|
17
|
+
@change=${_0x4adc17=>{const _0xbb7685=_0x30313d;_0x4adc17[_0xbb7685(0x165)]&&(this[_0xbb7685(0x128)]=_0x4adc17['currentTarget'][_0xbb7685(0x147)]),this[_0xbb7685(0x139)][_0xbb7685(0x12b)]();}}
|
|
18
18
|
></ox-input-select-buttons>
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
21
|
<div id="modes">
|
|
22
|
-
<mwc-icon @click=${()=>this[
|
|
23
|
-
<mwc-icon @click=${()=>this[
|
|
22
|
+
<mwc-icon @click=${()=>this[_0x30313d(0x146)]=_0x30313d(0x154)} ?active=${_0x30313d(0x154)==_0x29299d}>grid_on</mwc-icon>
|
|
23
|
+
<mwc-icon @click=${()=>this[_0x30313d(0x146)]='CARD'} ?active=${_0x30313d(0x122)==_0x29299d}>apps</mwc-icon>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
</ox-grist>
|
|
27
|
-
`;}async[
|
|
27
|
+
`;}async[a0_0x168315(0x167)](_0x306802){const _0x4dbf0b=a0_0x168315;this[_0x4dbf0b(0x150)]={'pagination':MetaApi[_0x4dbf0b(0x162)](),'list':{'thumbnail':_0x4dbf0b(0x15a),'fields':[_0x4dbf0b(0x12f),_0x4dbf0b(0x12d)],'details':[_0x4dbf0b(0x125)]},'columns':[{'type':_0x4dbf0b(0x13e),'gutterName':_0x4dbf0b(0x15e)},{'type':_0x4dbf0b(0x13e),'gutterName':_0x4dbf0b(0x16e),'multiple':!0x0},{'type':'gutter','gutterName':_0x4dbf0b(0x13f),'title':i18next['t']('title.activity\x20model\x20item\x20list'),'icon':_0x4dbf0b(0x15b),'handlers':{'click':(_0x1dae2a,_0x40c6ef,_0x5bcd2a,_0x6fcf8a,_0x15fcf7)=>{const _0x14cbb3=_0x4dbf0b;if(!_0x6fcf8a['id'])return;openPopup(html` <activity-model-item-list .activity=${_0x6fcf8a}></activity-model-item-list> `,{'backdrop':!0x0,'help':'worklist/activity/activity-model-item-list','size':_0x14cbb3(0x153),'title':i18next['t']('title.activity\x20model\x20item\x20list')})['onclosed']=()=>{const _0x552476=_0x14cbb3;this[_0x552476(0x139)]?.[_0x552476(0x12b)]();};}}},{'type':_0x4dbf0b(0x123),'name':'name','header':i18next['t']('field.name'),'record':{'editable':!0x0},'filter':_0x4dbf0b(0x14e),'sortable':!0x0,'width':0x122},{'type':_0x4dbf0b(0x123),'name':_0x4dbf0b(0x12d),'header':i18next['t'](_0x4dbf0b(0x166)),'record':{'editable':!0x0},'filter':'search','width':0x122},{'type':_0x4dbf0b(0x13d),'name':_0x4dbf0b(0x138),'header':i18next['t'](_0x4dbf0b(0x137)),'record':{'editable':!0x0,'align':_0x4dbf0b(0x163)},'width':0x3c},{'type':_0x4dbf0b(0x13b),'name':_0x4dbf0b(0x174),'header':i18next['t'](_0x4dbf0b(0x159)),'record':{'editable':!0x0,'options':ActivityStatus},'filter':!0x0,'width':0x50},{'type':_0x4dbf0b(0x14f),'name':'searchKeys','label':!0x0,'header':i18next['t'](_0x4dbf0b(0x15c)),'record':{'editable':!0x0},'width':0x78},{'type':_0x4dbf0b(0x16c),'name':_0x4dbf0b(0x127),'header':i18next['t'](_0x4dbf0b(0x156)),'record':{'editable':!0x0,'options':{'title':i18next['t'](_0x4dbf0b(0x16b)),'queryName':'roles'}},'filter':'search','width':0x5a},{'type':'resource-object','name':'updater','header':i18next['t'](_0x4dbf0b(0x161)),'record':{'editable':!0x1},'sortable':!0x0,'width':0x5a},{'type':_0x4dbf0b(0x158),'name':'updatedAt','header':i18next['t'](_0x4dbf0b(0x160)),'record':{'editable':!0x1},'sortable':!0x0,'width':0xb4}],'rows':{'selectable':{'multiple':!0x0},'handlers':{'click':_0x4dbf0b(0x14b)}},'sorters':[{'name':_0x4dbf0b(0x12f)}]};}async['fetchHandler']({page:_0x11ab22,limit:_0x222fcc,sortings:_0x1b255c=[],filters:_0x115f24=[]}){const _0x1a8d47=a0_0x168315,_0x62f828=[_0x1a8d47(0x130),_0x1a8d47(0x140),_0x1a8d47(0x148)][_0x1a8d47(0x12e)](_0x5c8490=>this[_0x1a8d47(0x128)]?.[_0x1a8d47(0x152)](_0x5c8490));_0x62f828[_0x1a8d47(0x151)]>0x0&&(_0x115f24=adjustFilters(_0x115f24,[{'name':'state','operator':'in','value':_0x62f828}]));const _0x305b90=await client['query']({'query':a0_0x4aecb1`
|
|
28
28
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
29
29
|
responses: activities(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
30
30
|
items {
|
|
@@ -106,10 +106,10 @@ function a0_0x19fa(_0x52c609,_0x264b70){const _0x2265c1=a0_0x2265();return a0_0x
|
|
|
106
106
|
total
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
`,'variables':{'filters':
|
|
109
|
+
`,'variables':{'filters':_0x115f24,'pagination':{'page':_0x11ab22,'limit':_0x222fcc},'sortings':_0x1b255c}});return{'total':_0x305b90[_0x1a8d47(0x135)][_0x1a8d47(0x157)][_0x1a8d47(0x144)]||0x0,'records':_0x305b90[_0x1a8d47(0x135)][_0x1a8d47(0x157)]['items']||[]};}async[a0_0x168315(0x15d)](){const _0x25ad24=a0_0x168315;let _0x50369c=this['grist']?.[_0x25ad24(0x168)];_0x50369c&&_0x50369c['length']&&(_0x50369c=_0x50369c[_0x25ad24(0x13c)](_0x5f0c97=>{const _0x45e729=_0x25ad24;let _0x4330e5=_0x5f0c97['id']?{'id':_0x5f0c97['id']}:{};const _0x2b9eec=_0x5f0c97[_0x45e729(0x175)];for(let _0x428555 in _0x2b9eec)_0x4330e5[_0x428555]=_0x2b9eec[_0x428555][_0x45e729(0x136)];return _0x4330e5[_0x45e729(0x16d)]=_0x5f0c97['__dirty__'],_0x4330e5;}),(await client['mutate']({'mutation':a0_0x4aecb1`
|
|
110
110
|
mutation ($patches: [ActivityPatch!]!) {
|
|
111
111
|
updateMultipleActivity(patches: $patches) {
|
|
112
112
|
name
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
`,'variables':{'patches':
|
|
115
|
+
`,'variables':{'patches':_0x50369c},'context':{'hasUpload':!0x0}}))[_0x25ad24(0x12c)]||this[_0x25ad24(0x139)]?.[_0x25ad24(0x12b)]());}}window[a0_0x168315(0x15f)][a0_0x168315(0x14d)](a0_0x168315(0x14a),MetaActivityDefinePage);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5b1798=a0_0x5051;(function(_0x37a187,_0x389ee6){const _0x5d42b4=a0_0x5051,_0xb741ea=_0x37a187();while(!![]){try{const _0x317d75=-parseInt(_0x5d42b4(0xd4))/0x1*(-parseInt(_0x5d42b4(0xe0))/0x2)+-parseInt(_0x5d42b4(0x112))/0x3+parseInt(_0x5d42b4(0xf6))/0x4*(parseInt(_0x5d42b4(0x115))/0x5)+-parseInt(_0x5d42b4(0xcc))/0x6*(parseInt(_0x5d42b4(0xf7))/0x7)+parseInt(_0x5d42b4(0x108))/0x8*(parseInt(_0x5d42b4(0x123))/0x9)+-parseInt(_0x5d42b4(0xd1))/0xa*(parseInt(_0x5d42b4(0xf9))/0xb)+parseInt(_0x5d42b4(0xd3))/0xc*(-parseInt(_0x5d42b4(0x11e))/0xd);if(_0x317d75===_0x389ee6)break;else _0xb741ea['push'](_0xb741ea['shift']());}catch(_0x194d6f){_0xb741ea['push'](_0xb741ea['shift']());}}}(a0_0x5087,0xb2b6e));import a0_0xc9c8 from'graphql-tag';import{html}from'lit';import{CommonButtonStyles}from'@operato/styles';import{client}from'@operato/graphql';function a0_0x5087(){const _0x124166=['showToast','columns','multiple','menu_type','fetch','delete','connectedCallback','getGristSelectorColumnConfig','533bMTdcG','deploy','CARD','getBasicGristStyles','resource-object','4118031cfDDQh','install_activity','updateMultiple','render','save','string','routing','getGristGuttersConfig','state','querySelector','getSelectColumns','POPUP','forEach','filter','info','meta-activity-viewer-element','1884kiVpGv','context','\x22relation-menu\x22','deleteListByGristSelected','assign','8513270Dxsaku','startingType','225912HiByGw','332467tCidUf','getGristPagination100Config','tButton','status','ox-grist','isMobileEnv','post','updater','relation-menu','gridConfig','description','GRID','8NnTNOg','query','records','updatedAt','activityType','styles','metaActivities','tText','meta_activity_list','getGristColumnConfig2','datetime','grid_view_options','bind','searchByPagination','gridMode','like','\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','updateMultipleMetaActivity','custom-element','showGraphqlErrorResponse','search','customElements','175688YklbJJ','3801iJYXdr','template','11RrTYXY','errors','meta-activity-list-page','menu','MENU_PAGE_TYPE','getGristSelectableConfig','fetchHandler','SCREEN','name','object','menuType','menus','parse','is_not_null','grist','24eUqvYR','model','tLabel','deleteMetaActivities','single','getGristCodeSelectorColumnConfig','install_activity_success','left','LIST','length','662274UrvUPU','tMenu','shadowRoot','5YLDqNA'];a0_0x5087=function(){return _0x124166;};return a0_0x5087();}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';function a0_0x5051(_0x176a3a,_0x13acfa){const _0x50878c=a0_0x5087();return a0_0x5051=function(_0x505168,_0x230716){_0x505168=_0x505168-0xc6;let _0x1bd3f7=_0x50878c[_0x505168];return _0x1bd3f7;},a0_0x5051(_0x176a3a,_0x13acfa);}import{ActivityStatus}from'@things-factory/worklist/dist-client/types/types.js';import{MetaApi}from'./../../utils/meta-api';import{MetaUiUtil}from'./../../utils/meta-ui-util';import{ValueUtil}from'./../../utils/value-util';import{TermsUtil}from'./../../utils/terms-util';import{ServiceUtil}from'../../utils/service-util';import{UiUtil}from'../../utils/ui-util';class MetaActivityListPage extends localize(i18next)(PageView){static get[a0_0x5b1798(0xe5)](){const _0x59b6cd=a0_0x5b1798;return MetaApi[_0x59b6cd(0x121)]();}get[a0_0x5b1798(0xcd)](){const _0x243c4f=a0_0x5b1798;return{'title':TermsUtil['tTitle'](_0x243c4f(0xe8)),'actions':[{'title':TermsUtil[_0x243c4f(0xd6)]('save'),'action':this[_0x243c4f(0x127)][_0x243c4f(0xec)](this),...CommonButtonStyles[_0x243c4f(0x127)]},{'title':TermsUtil[_0x243c4f(0xd6)](_0x243c4f(0x11b)),'action':this[_0x243c4f(0x11b)]['bind'](this),...CommonButtonStyles['delete']},{'title':TermsUtil['tButton'](_0x243c4f(0x124)),'action':this['deploy'][_0x243c4f(0xec)](this),'icon':'system_update','emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}]};}get[a0_0x5b1798(0x107)](){const _0x57f2e5=a0_0x5b1798;return this[_0x57f2e5(0x114)][_0x57f2e5(0x12c)](_0x57f2e5(0xd8));}async['connectedCallback'](){const _0x2de742=a0_0x5b1798;this[_0x2de742(0xeb)]=[_0x2de742(0x110),_0x2de742(0xdf),_0x2de742(0x120)],this[_0x2de742(0xee)]=MetaApi[_0x2de742(0xd9)]()?'LIST':'GRID',this[_0x2de742(0xdd)]={'option':{'view_mode':this[_0x2de742(0xeb)]},'rows':MetaApi[_0x2de742(0xfe)](!0x0),'pagination':MetaApi[_0x2de742(0xd5)](),'sorters':[{'name':_0x2de742(0x101),'desc':!0x1}],'appendable':!0x0,'columns':[...MetaApi[_0x2de742(0x12a)](!0x0,!0x1),{'type':_0x2de742(0x128),'name':'id','sortable':!0x1,'hidden':!0x0},MetaUiUtil['getGristColumnConfig2'](_0x2de742(0x128),_0x2de742(0x101),_0x2de742(0x101),_0x2de742(0x10f),!0x0,!0x0,0x12c),MetaUiUtil[_0x2de742(0xe9)](_0x2de742(0x128),_0x2de742(0xde),'description',_0x2de742(0x10f),!0x0,!0x0,0x15e),MetaUiUtil[_0x2de742(0x11d)](_0x2de742(0x12b),_0x2de742(0xd7),'left',!0x0,0x55,!0x1,ActivityStatus),{'type':_0x2de742(0x122),'name':'menu','header':TermsUtil['tLabel'](_0x2de742(0xfc)),'record':{'editable':!0x0,'options':{'queryName':_0x2de742(0x104),'pagination':{'pages':[0x3e8]},'basicArgs':{'filters':[{'name':_0x2de742(0x103),'operator':'in','value':[_0x2de742(0x100),_0x2de742(0xc7)]},{'name':'routing','operator':'is_not_null','value':''},{'name':_0x2de742(0xf8),'operator':_0x2de742(0x106),'value':''}]},'columns':[{'name':'id','hidden':!0x0},{'name':_0x2de742(0x101),'header':TermsUtil[_0x2de742(0x10a)](_0x2de742(0x101)),'width':0x1f4,'filter':_0x2de742(0xf4),'record':{'editable':!0x0,'align':_0x2de742(0x10f),'renderer':function(_0x35389c,_0x1dcd92,_0x5e9d48,_0x5d0e0a,_0x30c540){const _0x3a1e08=_0x2de742;let _0x168558=TermsUtil[_0x3a1e08(0x113)](_0x35389c);return _0x35389c==_0x168558?_0x35389c:_0x35389c+'\x20('+_0x168558+')';}}},await MetaApi[_0x2de742(0x10d)](_0x2de742(0x103),_0x2de742(0x119),_0x2de742(0x10f),!0x1,0x6e,!0x1,_0x2de742(0xfd)),MetaUiUtil[_0x2de742(0xe9)](_0x2de742(0x128),_0x2de742(0x129),_0x2de742(0x129),_0x2de742(0x10f),!0x1,!0x1,0xfa)],'list':{'fields':[_0x2de742(0x101),_0x2de742(0x129)]},'nameField':'routing'}},'width':0xbe},MetaUiUtil[_0x2de742(0xe9)](_0x2de742(0x102),_0x2de742(0xdb),'updater',_0x2de742(0x10f),!0x1,!0x1,0x5a),MetaUiUtil[_0x2de742(0xe9)](_0x2de742(0xea),_0x2de742(0xe3),'updated_at',_0x2de742(0x10f),!0x1,!0x0,0xb4),{'name':_0x2de742(0xe4),'hidden':!0x0},{'name':'multiple','hidden':!0x0},{'name':'startingType','hidden':!0x0}],'sorters':[{'name':_0x2de742(0x101),'desc':!0x1}]};let _0xfa2d72={'name':_0x2de742(0xef)};this['gridConfig'][_0x2de742(0x117)][_0x2de742(0xc9)](_0xf2ffe4=>_0xfa2d72[_0xf2ffe4['name']])[_0x2de742(0xc8)](_0x232a08=>{const _0x7f084=_0x2de742;_0x232a08[_0x7f084(0xc9)]=_0xfa2d72[_0x232a08[_0x7f084(0x101)]];}),this[_0x2de742(0x11c)]&&await super[_0x2de742(0x11c)]();}async[a0_0x5b1798(0xff)]({page:_0x218119,limit:_0x30822d,sorters:_0xc520c3=[],filters:_0x36d7d2=[]}){const _0x36b978=a0_0x5b1798;_0x36d7d2['push']({'name':_0x36b978(0x109),'operator':_0x36b978(0xef),'value':_0x36b978(0xce)});let _0x357e88=MetaApi[_0x36b978(0xc6)](this[_0x36b978(0xdd)]['columns'][_0x36b978(0xc9)](_0x3ea5e3=>_0x36b978(0xfc)!=_0x3ea5e3['name']));_0x357e88+=_0x36b978(0xf0);let _0x5a7803=await MetaApi[_0x36b978(0xed)](_0x36b978(0xe6),_0x36d7d2,_0xc520c3,_0x218119,_0x30822d,_0x357e88);return _0x5a7803[_0x36b978(0xe2)]['forEach'](_0x1ef896=>{const _0x418e3a=_0x36b978;let _0x5d2f7c=_0x1ef896['model']['filter'](_0x5a0dde=>_0x418e3a(0xdc)==_0x5a0dde[_0x418e3a(0x101)]);_0x5d2f7c&&_0x5d2f7c[_0x418e3a(0x111)]>0x0&&(_0x1ef896[_0x418e3a(0xfc)]=JSON[_0x418e3a(0x105)](_0x5d2f7c[0x0][_0x418e3a(0xde)])),delete _0x1ef896[_0x418e3a(0x109)];}),_0x5a7803;}async[a0_0x5b1798(0x11f)](){const _0x25e49a=a0_0x5b1798;try{var _0x3c618b=await client[_0x25e49a(0xe1)]({'query':a0_0xc9c8`
|
|
2
2
|
mutation {
|
|
3
3
|
installActivityTemplate
|
|
4
4
|
}
|
|
5
|
-
`});if(!
|
|
5
|
+
`});if(!_0x3c618b[_0x25e49a(0xfa)])return UiUtil[_0x25e49a(0x116)](_0x25e49a(0xca),TermsUtil[_0x25e49a(0xe7)](_0x25e49a(0x10e))),!0x0;ServiceUtil[_0x25e49a(0xf3)](_0x3c618b);}catch(_0x11051c){ServiceUtil['showGraphqlException'](_0x11051c);}}async[a0_0x5b1798(0x127)](){const _0x27504e=a0_0x5b1798;let _0x5e3695=ServiceUtil['patchesForUpdateMultiple'](this[_0x27504e(0x107)]);if(ValueUtil['isNotEmpty'](_0x5e3695)){_0x5e3695[_0x27504e(0xc8)](_0x480753=>{const _0x53be0a=_0x27504e;Object[_0x53be0a(0xd0)](_0x480753,{'uiSource':'meta-activity-writer-element','uiType':_0x53be0a(0xf2),'viewSource':_0x53be0a(0xcb),'viewType':_0x53be0a(0xf2)}),_0x480753[_0x53be0a(0x118)]||(_0x480753['multiple']=_0x53be0a(0x10c)),_0x480753[_0x53be0a(0xe4)]||(_0x480753[_0x53be0a(0xe4)]='task'),_0x480753['startingType']||(_0x480753[_0x53be0a(0xd2)]=_0x53be0a(0xda));});let _0x782145=await ServiceUtil[_0x27504e(0x125)](_0x27504e(0xf1),_0x5e3695);if(_0x782145)return this['grist'][_0x27504e(0x11a)](),_0x782145;}}async[a0_0x5b1798(0x11b)](){const _0x241fb7=a0_0x5b1798;await MetaApi[_0x241fb7(0xcf)](this[_0x241fb7(0x107)],_0x241fb7(0x10b));}async['pageInitialized'](){}[a0_0x5b1798(0x126)](){const _0x479cef=a0_0x5b1798;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[_0x479cef(0xdd)]}
|
|
10
|
+
.mode=${this[_0x479cef(0xee)]}
|
|
11
|
+
.fetchHandler=${this[_0x479cef(0xff)][_0x479cef(0xec)](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_0x5b1798(0xf5)]['define'](a0_0x5b1798(0xfb),MetaActivityListPage);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}customElements[
|
|
1
|
+
const a0_0x17b38f=a0_0x5c8d;(function(_0x2ac25e,_0x4b7c01){const _0x522d77=a0_0x5c8d,_0x52ec07=_0x2ac25e();while(!![]){try{const _0x4fa7c2=parseInt(_0x522d77(0x8f))/0x1*(parseInt(_0x522d77(0x8d))/0x2)+-parseInt(_0x522d77(0x94))/0x3+parseInt(_0x522d77(0x8c))/0x4*(parseInt(_0x522d77(0x99))/0x5)+-parseInt(_0x522d77(0x8a))/0x6*(-parseInt(_0x522d77(0x88))/0x7)+parseInt(_0x522d77(0x9e))/0x8+-parseInt(_0x522d77(0x8b))/0x9+-parseInt(_0x522d77(0x8e))/0xa*(-parseInt(_0x522d77(0x9b))/0xb);if(_0x4fa7c2===_0x4b7c01)break;else _0x52ec07['push'](_0x52ec07['shift']());}catch(_0x5b6c3e){_0x52ec07['push'](_0x52ec07['shift']());}}}(a0_0x2c44,0x6ebd1));import a0_0x93afa2 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_0x5c8d(_0x48af3a,_0x30382f){const _0x2c449e=a0_0x2c44();return a0_0x5c8d=function(_0x5c8d1,_0x194b6e){_0x5c8d1=_0x5c8d1-0x86;let _0x1a8de8=_0x2c449e[_0x5c8d1];return _0x1a8de8;},a0_0x5c8d(_0x48af3a,_0x30382f);}function a0_0x2c44(){const _0x50e55a=['tagName','contentElement','2331288NjBmyf','define','\x20id=\x27','2736251KusATA','activityDataSet','6EvdKWb','6560361LbMDCQ','4fBlwap','31546TqnGhD','30ubbcoJ','49LJndQB','htmlToElement','customData','output','isEmpty','2451921cRVMMW','routing','name','render','relationMenu','2214115UJatGo','\x27\x20route_name=\x27','373329zAetvJ'];a0_0x2c44=function(){return _0x50e55a;};return a0_0x2c44();}import{MetaActivityMixin}from'./meta-activiy-mixin.js';export class MetaActivityViewerElement extends MetaActivityMixin(localize(i18next)(LitElement)){[a0_0x17b38f(0x97)](){const _0x45c920=a0_0x17b38f;if(this[_0x45c920(0x98)]&&!this['contentElement']){let _0x389def=this[_0x45c920(0x98)][_0x45c920(0x9c)],_0x39f1d3=this['relationMenu'][_0x45c920(0x95)],_0x5e30ea='<'+_0x389def+_0x45c920(0x87)+this[_0x45c920(0x98)][_0x45c920(0x96)]+_0x45c920(0x9a)+_0x39f1d3+'\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_readonly=true\x20is_detail=true></'+_0x389def+'>';this[_0x45c920(0x9d)]=UiUtil[_0x45c920(0x90)](_0x5e30ea),this['contentElement'][_0x45c920(0x89)]=ValueUtil[_0x45c920(0x93)](this[_0x45c920(0x92)])?void 0x0:this[_0x45c920(0x92)][_0x45c920(0x91)];}return html`
|
|
2
|
+
${this[_0x45c920(0x9d)]}
|
|
3
|
+
`;}}customElements[a0_0x17b38f(0x86)]('meta-activity-viewer-element',MetaActivityViewerElement);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}}
|
|
1
|
+
const a0_0x127454=a0_0x3807;(function(_0x238821,_0x3e3402){const _0x43f2c3=a0_0x3807,_0x374c0a=_0x238821();while(!![]){try{const _0x52cebc=parseInt(_0x43f2c3(0x74))/0x1+-parseInt(_0x43f2c3(0x7f))/0x2+-parseInt(_0x43f2c3(0x86))/0x3*(parseInt(_0x43f2c3(0x75))/0x4)+-parseInt(_0x43f2c3(0x88))/0x5+parseInt(_0x43f2c3(0x80))/0x6+-parseInt(_0x43f2c3(0x87))/0x7*(parseInt(_0x43f2c3(0x81))/0x8)+parseInt(_0x43f2c3(0x76))/0x9;if(_0x52cebc===_0x3e3402)break;else _0x374c0a['push'](_0x374c0a['shift']());}catch(_0x2ece7a){_0x374c0a['push'](_0x374c0a['shift']());}}}(a0_0x251c,0x4c01d));function a0_0x3807(_0x449a05,_0x19e4d0){const _0x251c90=a0_0x251c();return a0_0x3807=function(_0x380787,_0x2531cf){_0x380787=_0x380787-0x6e;let _0x3f13e8=_0x251c90[_0x380787];return _0x3f13e8;},a0_0x3807(_0x449a05,_0x19e4d0);}import{html,LitElement}from'lit';function a0_0x251c(){const _0x4837af=['7024383PMZvhB','htmlToElement','output','\x20id=\x27','tagName','meta-activity-writer-element','relationMenu','change','name','718218gAqrAg','3147468GeRGcZ','56dxYzVh','data-changed','contentElement','addEventListener','disconnectedCallback','6CwnPnp','177401UswgVW','2400840xbIZmu','customData','dispatchEvent','\x27\x20style=\x22flex:1;\x22\x20is_activity=true\x20is_detail=true></','routing','isEmpty','_onDataChanged','define','487244GZnHmO','928612cASDOv'];a0_0x251c=function(){return _0x4837af;};return a0_0x251c();}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['connectedCallback'](){const _0xfebe24=a0_0x3807;await super['connectedCallback'](),this[_0xfebe24(0x84)](_0xfebe24(0x82),this[_0xfebe24(0x72)]);}[a0_0x127454(0x85)](){const _0x3c2893=a0_0x127454;this['removeEventListener'](_0x3c2893(0x82),this[_0x3c2893(0x72)]);}[a0_0x127454(0x72)](_0x323f06){const _0x37239e=a0_0x127454;let _0x14a1d0=this[_0x37239e(0x83)]['getData']();this[_0x37239e(0x6e)](new CustomEvent(_0x37239e(0x7d),{'detail':{'customData':_0x14a1d0}}));}['render'](){const _0x26d25d=a0_0x127454;if(this['relationMenu']&&!this[_0x26d25d(0x83)]){let _0x1f28f3=this[_0x26d25d(0x7c)][_0x26d25d(0x7a)],_0x1a5e3d=this[_0x26d25d(0x7c)][_0x26d25d(0x70)],_0x50c768='<'+_0x1f28f3+_0x26d25d(0x79)+this['relationMenu'][_0x26d25d(0x7e)]+'\x27\x20route_name=\x27'+_0x1a5e3d+_0x26d25d(0x6f)+_0x1f28f3+'>';this[_0x26d25d(0x83)]=UiUtil[_0x26d25d(0x77)](_0x50c768),this[_0x26d25d(0x83)]['activityDataSet']=ValueUtil[_0x26d25d(0x71)](this[_0x26d25d(0x78)])?void 0x0:this[_0x26d25d(0x78)][_0x26d25d(0x89)];}return html`
|
|
2
|
+
${this[_0x26d25d(0x83)]}
|
|
3
|
+
`;}}customElements[a0_0x127454(0x73)](a0_0x127454(0x7b),MetaActivityWriterElement);
|