@things-factory/meta-ui 6.0.5 → 6.0.6
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 +3 -3
- 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 +8 -8
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.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/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-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/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 +60 -60
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +6 -6
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +10 -10
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/dist-server/constants/error-code.js +1 -1
- package/dist-server/errors/license-error.js +1 -1
- package/dist-server/middlewares/index.js +8 -2
- package/dist-server/routes.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize.js +1 -1
- package/dist-server/service/meta-secret/meta-resolver.js +1 -1
- package/dist-server/service/set-translations/set-translation-resolver.js +1 -1
- package/package.json +3 -2
package/client/actions/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x14bbe2=a0_0x39fd;(function(_0x47f1e1,_0x15779a){const _0x34b716=a0_0x39fd,_0x4cae84=_0x47f1e1();while(!![]){try{const _0x22535c=-parseInt(_0x34b716(0x12c))/0x1+parseInt(_0x34b716(0x12b))/0x2+parseInt(_0x34b716(0x127))/0x3+-parseInt(_0x34b716(0x132))/0x4+parseInt(_0x34b716(0x130))/0x5*(-parseInt(_0x34b716(0x129))/0x6)+-parseInt(_0x34b716(0x12e))/0x7+parseInt(_0x34b716(0x12a))/0x8*(parseInt(_0x34b716(0x137))/0x9);if(_0x22535c===_0x15779a)break;else _0x4cae84['push'](_0x4cae84['shift']());}catch(_0x28c9af){_0x4cae84['push'](_0x4cae84['shift']());}}}(a0_0x271c,0xd82c7));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import{html}from'lit';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';function a0_0x271c(){const _0x3438a3=['114GHpZRt','26024wWoRaQ','442014pOPAuY','672346ejyPKr','FRONT_END','6084176nvqbwn','hamburger','418725wWyOAa','get','5615896QfPFKP','UPDATE_META_MENU_TEMPLATE','dynamic-menu','portrait','UPDATE_META_UI','12510joSGLV','dispatch','landscape','value','dynamic-menu-part','2038239XSJUSA','lite-menu-part'];a0_0x271c=function(){return _0x3438a3;};return a0_0x271c();}import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';function a0_0x39fd(_0x538eea,_0x209366){const _0x271c97=a0_0x271c();return a0_0x39fd=function(_0x39fd51,_0x5d6e17){_0x39fd51=_0x39fd51-0x124;let _0x5bb60f=_0x271c97[_0x39fd51];return _0x5bb60f;},a0_0x39fd(_0x538eea,_0x209366);}import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';import{updateMenuTemplate as a0_0x34cd75}from'@things-factory/lite-menu';export const UPDATE_META_UI=a0_0x14bbe2(0x136);export const UPDATE_META_MENU_TEMPLATE=a0_0x14bbe2(0x133);var HAMBURGER;export async function setupMenuPart(_0x4ce553){const _0xf96f26=a0_0x14bbe2;var {hovering:_0x41a33a=!!isMobileDevice(),slotTemplate:_0x3870e2,portraitSlotTemplate:_0x433f88,landscapeSlotTemplate:_0x18c1a2,position:_0x4123fe=VIEWPART_POSITION['NAVBAR']}=_0x4ce553||{};const {hovering:_0x14739e}=(await clientSettingStore[_0xf96f26(0x131)](_0xf96f26(0x134)))?.[_0xf96f26(0x125)]||{};void 0x0!==_0x14739e&&(_0x41a33a=_0x14739e);const _0x288ccf=_0x4123fe==VIEWPART_POSITION['HEADERBAR']?_0xf96f26(0x124):_0xf96f26(0x135),_0x3dc6e0=(_0xf96f26(0x124)==_0x288ccf?_0x18c1a2:_0x433f88)||_0x3870e2||html``;appendViewpart({'name':_0xf96f26(0x128),'viewpart':{'show':!_0x41a33a,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x41a33a,'template':html`<dynamic-menu-part .orientation=${_0x288ccf}>${_0x3dc6e0}</dynamic-menu-part>`},'position':_0x4123fe}),_0x41a33a&&_0xf96f26(0x135)==_0x288ccf?HAMBURGER||(HAMBURGER={'name':_0xf96f26(0x12f),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x2acb76=>toggleOverlay(_0xf96f26(0x126),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0xf96f26(0x12d)]},store[_0xf96f26(0x138)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':_0xf96f26(0x12f)}),HAMBURGER=null);}export async function updateMenuTemplate(_0xec37ee){a0_0x34cd75(_0xec37ee),store['dispatch']({'type':UPDATE_META_MENU_TEMPLATE,'template':_0xec37ee});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x629fb4=a0_0x35b0;(function(_0x41d664,_0x1fedbf){const _0x29a60e=a0_0x35b0,_0x3c1c39=_0x41d664();while(!![]){try{const _0x117795=-parseInt(_0x29a60e(0x183))/0x1*(-parseInt(_0x29a60e(0x17f))/0x2)+parseInt(_0x29a60e(0x197))/0x3*(-parseInt(_0x29a60e(0x181))/0x4)+-parseInt(_0x29a60e(0x176))/0x5*(parseInt(_0x29a60e(0x195))/0x6)+-parseInt(_0x29a60e(0x178))/0x7+parseInt(_0x29a60e(0x173))/0x8+-parseInt(_0x29a60e(0x18c))/0x9+parseInt(_0x29a60e(0x199))/0xa;if(_0x117795===_0x1fedbf)break;else _0x3c1c39['push'](_0x3c1c39['shift']());}catch(_0x50e4a9){_0x3c1c39['push'](_0x3c1c39['shift']());}}}(a0_0x25ae,0xb8bbe));import{MetaApi}from'./../utils/meta-api';function a0_0x35b0(_0x27cd69,_0x17e5c3){const _0x25aec6=a0_0x25ae();return a0_0x35b0=function(_0x35b028,_0x3f6cec){_0x35b028=_0x35b028-0x16f;let _0x36f2a2=_0x25aec6[_0x35b028];return _0x36f2a2;},a0_0x35b0(_0x27cd69,_0x17e5c3);}import{ValueUtil}from'./../utils/value-util';function a0_0x25ae(){const _0x3a77cf=['2DHMCED','openDynamicPopup','tTitle','isDetail','isElement','errors','getMenuMeta','isEmpty','setParentId','1432953CLwCJM','parent_id','isNotEmpty','menu','parseBasicGridConfigs','fetch','properties','is_detail','parseBasicFormConfigs','9050892MvifMB','getAndParseMenuMeta','32529rsDgAl','title_detail','18801560rOIuSX','callScenario','name','grist','filterForm','excuteOpenPopupButtonClick','lifecycle','4202968Ymhxul','parseBasicButtonConfigs','isPage','5wsQPHK','params','562457xPZWUX','title','getParams','is_popup','after','parseBasicTabConfigs','menuInfo','131722JvNwoK','parseBasicServiceConfigs','12tEyHqr','executeCallScenarioButtonClick'];a0_0x25ae=function(){return _0x3a77cf;};return a0_0x25ae();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x37ea92=>class extends _0x37ea92{static get[a0_0x629fb4(0x192)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x457734=>Boolean(_0x457734)},'is_popup':{'type':Boolean,'converter':_0x16a1f9=>Boolean(_0x16a1f9)}};}get[a0_0x629fb4(0x187)](){const _0xe981a9=a0_0x629fb4;return!0x0===this[_0xe981a9(0x193)]||!0x0===this[_0xe981a9(0x17b)];}get[a0_0x629fb4(0x186)](){const _0xfc415d=a0_0x629fb4;return!ValueUtil[_0xfc415d(0x18a)](this[_0xfc415d(0x193)])&&this[_0xfc415d(0x193)];}async['pageUpdated'](_0x4ec339,_0x21a574,_0x48887d){const _0x305e72=a0_0x629fb4;let _0x1c7c46=this[_0x305e72(0x172)]?.[_0x305e72(0x177)]?this[_0x305e72(0x172)][_0x305e72(0x177)]:{};this['isPage']&&this['active']&&0x0==_0x48887d['active']&&ValueUtil[_0x305e72(0x18e)](_0x1c7c46)&&this['fetch']();}get['isPopup'](){const _0x5232ab=a0_0x629fb4;return!ValueUtil[_0x5232ab(0x18a)](this[_0x5232ab(0x17b)])&&this[_0x5232ab(0x17b)];}get[a0_0x629fb4(0x175)](){const _0x5a5e18=a0_0x629fb4;return!this[_0x5a5e18(0x193)]&&!this['is_popup'];}async[a0_0x629fb4(0x196)](){const _0x312266=a0_0x629fb4;let _0x57a854=await MetaApi[_0x312266(0x189)](this);_0x57a854&&(this[_0x312266(0x17e)]=_0x57a854[_0x312266(0x18f)],this['parseBasicGridConfigs']&&this[_0x312266(0x190)](_0x57a854),this['parseBasicServiceConfigs']&&this[_0x312266(0x180)](_0x57a854),this[_0x312266(0x194)]&&this[_0x312266(0x194)](_0x57a854),this[_0x312266(0x17d)]&&this[_0x312266(0x17d)](_0x57a854),this[_0x312266(0x174)]&&this['parseBasicButtonConfigs'](_0x57a854));}async[a0_0x629fb4(0x191)](){const _0x5a5376=a0_0x629fb4;ValueUtil['isNotEmpty'](this[_0x5a5376(0x16f)])?this[_0x5a5376(0x16f)]['fetch']():(ValueUtil[_0x5a5376(0x18e)](this[_0x5a5376(0x170)])||this['fetchHandler'])&&await this['fetchHandler']();}async[a0_0x629fb4(0x171)](_0x3ea923,_0x2f43c5,_0x16991b){const _0x4b17f2=a0_0x629fb4;let _0x1e41c7=TermsUtil[_0x4b17f2(0x185)](_0x3ea923[_0x4b17f2(0x179)]);ValueUtil[_0x4b17f2(0x18e)](_0x3ea923['title_detail'])&&(_0x1e41c7=_0x1e41c7+'-'+ValueUtil[_0x4b17f2(0x17a)](_0x2f43c5,..._0x3ea923[_0x4b17f2(0x198)]['split']('.'))),MetaApi[_0x4b17f2(0x184)](_0x1e41c7,_0x3ea923,_0x2f43c5,_0x16991b);}async[a0_0x629fb4(0x182)](_0x4e5deb,_0x4d283d,_0x37d341){const _0xeb2e32=a0_0x629fb4;let _0x213b14=await MetaApi[_0xeb2e32(0x19a)](_0x4e5deb[_0xeb2e32(0x19b)],_0x4e5deb[_0xeb2e32(0x19b)],_0x4d283d);!0x1!==_0x213b14&&!_0x213b14[_0xeb2e32(0x188)]&&ValueUtil['isNotEmpty'](_0x4e5deb[_0xeb2e32(0x17c)])&&_0x37d341();}[a0_0x629fb4(0x18b)](_0x39e01d){const _0x4227e1=a0_0x629fb4;this[_0x4227e1(0x18d)]=_0x39e01d,this['fetch']();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
function a0_0x48e8(_0x4c57ae,_0x115241){const _0x45f492=a0_0x45f4();return a0_0x48e8=function(_0x48e830,_0x565697){_0x48e830=_0x48e830-0x127;let _0x20b2b9=_0x45f492[_0x48e830];return _0x20b2b9;},a0_0x48e8(_0x4c57ae,_0x115241);}const a0_0x240c02=a0_0x48e8;function a0_0x45f4(){const _0x4cef5c=['title','getBasicGristHtml','searchConfig','delete','getParams','findOne','gridConfig','filterFormId','grid_column','isPage','updateMultiple','export','ox-filters-form','menuInfo','deleteByIds','search','5734813tMjZuV','connectedCallback','grid','properties','render','patchesForUpdateMultiple','4127372mXfJuq','parseGristConfigs','pageInitialized','exportableData','grist','context','firstUpdated','ox-grist','save','shadowRoot','3507835OahXkX','2830356FDsLTO','fetch','isElement','6421044GpJjCi','import','gridColumnConfig','find','styles','getContextObject','getBasicGristStyles','isNotEmpty','11114oRsbPX','gristConfigSet','getAndParseMenuMeta','10798872UYYmGx','querySelector','74fLgrHn','renderRoot','gristId','getSelectedIdList'];a0_0x45f4=function(){return _0x4cef5c;};return a0_0x45f4();}(function(_0x5afab8,_0x12bc63){const _0x33e36e=a0_0x48e8,_0x57c709=_0x5afab8();while(!![]){try{const _0x418802=-parseInt(_0x33e36e(0x14f))/0x1*(-parseInt(_0x33e36e(0x154))/0x2)+parseInt(_0x33e36e(0x144))/0x3+-parseInt(_0x33e36e(0x139))/0x4+-parseInt(_0x33e36e(0x143))/0x5+-parseInt(_0x33e36e(0x147))/0x6+parseInt(_0x33e36e(0x133))/0x7+parseInt(_0x33e36e(0x152))/0x8;if(_0x418802===_0x12bc63)break;else _0x57c709['push'](_0x57c709['shift']());}catch(_0x221285){_0x57c709['push'](_0x57c709['shift']());}}}(a0_0x45f4,0xafd4c));import{html}from'lit';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{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x3f4822=>class extends MetaButtonMixin(_0x3f4822){static get[a0_0x240c02(0x14b)](){const _0x1591b5=a0_0x240c02;return MetaApi[_0x1591b5(0x14d)]();}static get[a0_0x240c02(0x136)](){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_0x240c02(0x13d)](){const _0x39cf7f=a0_0x240c02;return this[_0x39cf7f(0x155)][_0x39cf7f(0x153)](this['gristId']);}get['filterForm'](){const _0x1a66d=a0_0x240c02;return this[_0x1a66d(0x142)]?.[_0x1a66d(0x153)](this[_0x1a66d(0x12a)]);}get[a0_0x240c02(0x13e)](){const _0x29da9c=a0_0x240c02;return MetaUiUtil[_0x29da9c(0x14c)](this);}async[a0_0x240c02(0x134)](){const _0x3bfe43=a0_0x240c02;this[_0x3bfe43(0x156)]=_0x3bfe43(0x140),this['filterFormId']=_0x3bfe43(0x12f),await this[_0x3bfe43(0x151)](),this[_0x3bfe43(0x146)]&&await this[_0x3bfe43(0x13a)](),super[_0x3bfe43(0x134)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x2e78fe=a0_0x240c02;super['firstUpdated']&&await super[_0x2e78fe(0x13f)]();}async[a0_0x240c02(0x13b)](){const _0x5771eb=a0_0x240c02;this[_0x5771eb(0x12c)]&&await this[_0x5771eb(0x13a)](),super[_0x5771eb(0x13b)]&&await super[_0x5771eb(0x13b)]();}[a0_0x240c02(0x137)](){const _0x9d1a6d=a0_0x240c02;return html`
|
|
2
|
+
${MetaApi[_0x9d1a6d(0x159)](this)}
|
|
3
|
+
${this[_0x9d1a6d(0x12c)]?html``:MetaUiUtil['getButtonContainer'](this)}
|
|
4
|
+
`;}['parseBasicGridConfigs'](_0x1dc026){const _0xe9a07e=a0_0x240c02;this[_0xe9a07e(0x129)]=_0x1dc026[_0xe9a07e(0x135)],this[_0xe9a07e(0x149)]=_0x1dc026[_0xe9a07e(0x12b)],this[_0xe9a07e(0x15a)]=_0x1dc026[_0xe9a07e(0x132)];}async[a0_0x240c02(0x13a)](){const _0x1fa105=a0_0x240c02;this[_0x1fa105(0x150)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x240c02(0x145)](){const _0x598dd5=a0_0x240c02;await this[_0x598dd5(0x13d)][_0x598dd5(0x145)]();}async[a0_0x240c02(0x141)](){const _0x203cd4=a0_0x240c02;let _0x353aa3=MetaApi[_0x203cd4(0x138)](this['grist']);!!ValueUtil[_0x203cd4(0x14e)](_0x353aa3)&&await this[_0x203cd4(0x12d)](_0x353aa3)&&this[_0x203cd4(0x145)]();}async[a0_0x240c02(0x14a)](){const _0x5328a6=a0_0x240c02;let _0x1047c3=MetaApi[_0x5328a6(0x157)](this[_0x5328a6(0x13d)],!0x0);return ValueUtil[_0x5328a6(0x14e)](_0x1047c3)?await this[_0x5328a6(0x128)](_0x1047c3[0x0]):{};}async[a0_0x240c02(0x15b)](){const _0x22a5e3=a0_0x240c02;let _0x36f01f=MetaApi[_0x22a5e3(0x157)](this[_0x22a5e3(0x13d)],!0x0);!!ValueUtil[_0x22a5e3(0x14e)](_0x36f01f)&&await this[_0x22a5e3(0x131)](_0x36f01f)&&this[_0x22a5e3(0x145)]();}async[a0_0x240c02(0x12e)](){const _0x5b25e3=a0_0x240c02;let _0xd045fc=TermsUtil['tTitle'](ValueUtil[_0x5b25e3(0x127)](this[_0x5b25e3(0x130)],_0x5b25e3(0x158)));return await MetaApi[_0x5b25e3(0x13c)](this[_0x5b25e3(0x146)],_0xd045fc,this['grist']);}async[a0_0x240c02(0x148)](){}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x55e8(){const _0x129e50=['69397nNtdsO','2797134IRzQcG','8904860upeRyp','buttonConfig','18eMquaB','1916128mNlKVF','10648449jBRurC','parseBasicButtonConfigs','useButtonImport','20uIxrDT','import','isButtonExist','gristButtonHandler','export','getButtonActionHandler','3gtKiNY','useButtonExport','getButtonContainer','button','3557048FqByIs','getCustomButtonContainerStyle','isPage','properties','2358018PqVAkT','getBasicButtonHandler','customButtonHandler','add'];a0_0x55e8=function(){return _0x129e50;};return a0_0x55e8();}const a0_0x293862=a0_0xe136;(function(_0x211fb2,_0x1113b3){const _0x4f0f70=a0_0xe136,_0x1e3748=_0x211fb2();while(!![]){try{const _0x333b43=-parseInt(_0x4f0f70(0xa8))/0x1*(parseInt(_0x4f0f70(0xac))/0x2)+parseInt(_0x4f0f70(0x9c))/0x3*(-parseInt(_0x4f0f70(0xa0))/0x4)+-parseInt(_0x4f0f70(0x96))/0x5*(-parseInt(_0x4f0f70(0xa9))/0x6)+parseInt(_0x4f0f70(0x93))/0x7+parseInt(_0x4f0f70(0x92))/0x8+-parseInt(_0x4f0f70(0xa4))/0x9+-parseInt(_0x4f0f70(0xaa))/0xa;if(_0x333b43===_0x1113b3)break;else _0x1e3748['push'](_0x1e3748['shift']());}catch(_0x373a4e){_0x1e3748['push'](_0x1e3748['shift']());}}}(a0_0x55e8,0xea2b4));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xe136(_0x1cf493,_0x1fcdc7){const _0x55e872=a0_0x55e8();return a0_0xe136=function(_0xe13630,_0x51166e){_0xe13630=_0xe13630-0x92;let _0x157835=_0x55e872[_0xe13630];return _0x157835;},a0_0xe136(_0x1cf493,_0x1fcdc7);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x4ac314=>class extends MetaServiceMixin(_0x4ac314){static get[a0_0x293862(0xa3)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x293862(0xa1)](){return MetaUiUtil['getCustomButtonContainerStyles']();}['getContextButtons'](){return MetaUiUtil['getContextButtons'](this);}[a0_0x293862(0x9e)](){const _0xecf19f=a0_0x293862;return this[_0xecf19f(0xa2)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x293862(0xa5)](_0x4f1832,_0x1e7eeb,_0x2bc0e6){const _0xbe608c=a0_0x293862;return await MetaUiUtil[_0xbe608c(0x9b)](this,_0x4f1832,_0x1e7eeb,_0x2bc0e6);}async[a0_0x293862(0xa6)](_0x2eb271){const _0x4953e2=a0_0x293862;await MetaUiUtil[_0x4953e2(0xa6)](this,_0x2eb271);}async[a0_0x293862(0x99)](_0x583d85,_0x547e46){const _0x4ef244=a0_0x293862;await MetaUiUtil[_0x4ef244(0x99)](this,_0x583d85,_0x547e46);}[a0_0x293862(0x94)](_0x5a977f){const _0x565026=a0_0x293862;this[_0x565026(0xab)]=_0x5a977f[_0x565026(0x9f)],this[_0x565026(0x95)]=MetaUiUtil[_0x565026(0x98)](this[_0x565026(0xab)],_0x565026(0x97)),this[_0x565026(0x9d)]=MetaUiUtil[_0x565026(0x98)](this[_0x565026(0xab)],_0x565026(0x9a)),this['useButtonAdd']=MetaUiUtil[_0x565026(0x98)](this[_0x565026(0xab)],_0x565026(0xa7));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5c2806=a0_0x5646;(function(_0x5a2300,_0x56426e){const _0x5918c0=a0_0x5646,_0x1031c2=_0x5a2300();while(!![]){try{const _0x3df3b2=-parseInt(_0x5918c0(0x106))/0x1+-parseInt(_0x5918c0(0xfb))/0x2*(parseInt(_0x5918c0(0x131))/0x3)+-parseInt(_0x5918c0(0xfa))/0x4*(-parseInt(_0x5918c0(0xff))/0x5)+parseInt(_0x5918c0(0xf4))/0x6+parseInt(_0x5918c0(0x130))/0x7*(parseInt(_0x5918c0(0x117))/0x8)+parseInt(_0x5918c0(0x10e))/0x9*(parseInt(_0x5918c0(0x133))/0xa)+parseInt(_0x5918c0(0x118))/0xb*(-parseInt(_0x5918c0(0x111))/0xc);if(_0x3df3b2===_0x56426e)break;else _0x1031c2['push'](_0x1031c2['shift']());}catch(_0x42ccd6){_0x1031c2['push'](_0x1031c2['shift']());}}}(a0_0x23f5,0x2e448));import{MetaApi}from'../utils/meta-api';function a0_0x23f5(){const _0x21d95d=['findOne','button','properties','keydown','true','text.NOTHING_CHANGED','record','__seq__','fetch','removeAttribute','entries','config','stopPropagation','name','renderRoot','call','firstUpdated','validation','15190cWqNIJ','3SifCTS','after','2650vJrXYQ','editing','Esc','editable','parseFormConfigs','currentTarget','isPage','grid_column','isEmpty','dirtyData','formRenderConfig','119280rUADjB','Escape','setAttribute','cuFlag','addEventListener','column','4gthcZQ','244604cZvTPE','function','focus','field-change','478045mlbYUr','formColumnConfig','pageInitialized','form','patchData','click','target','122201rHAaze','orgData','__origin__','styles','updateMultiple','OX-GRID-FIELD','connectedCallback','getAndParseMenuMeta','7956yMcEBB','save','title.info','30384jdlJrh','filter','isElement','__dirty__','isNotEmpty','__dirtyfields__','376ZOkbLt','77KnAQnI','parseBasicFormConfigs','formConfigSet','removeGarbageData','render','parent_id'];a0_0x23f5=function(){return _0x21d95d;};return a0_0x23f5();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x5646(_0x4c84f5,_0x44f8c3){const _0x23f50c=a0_0x23f5();return a0_0x5646=function(_0x56461c,_0x4e6d67){_0x56461c=_0x56461c-0xec;let _0x597214=_0x23f50c[_0x56461c];return _0x597214;},a0_0x5646(_0x4c84f5,_0x44f8c3);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x28f5c3=>class extends MetaButtonMixin(_0x28f5c3){static get[a0_0x5c2806(0x109)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x5c2806(0x120)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){return MetaUiUtil['getContextObject'](this);}async[a0_0x5c2806(0x10c)](){const _0x5cf393=a0_0x5c2806;if(this[_0x5cf393(0x129)]){let {column:_0x420da8=0x1}=this[_0x5cf393(0x129)];this['column']=_0x420da8;}await this[_0x5cf393(0x10d)](),this[_0x5cf393(0x113)]&&await this[_0x5cf393(0xed)](),super[_0x5cf393(0x10c)]&&await super['connectedCallback'](),this[_0x5cf393(0x113)]&&await this[_0x5cf393(0x126)](),this[_0x5cf393(0x12c)]['addEventListener'](_0x5cf393(0x121),_0x57cd46=>{const _0x27e117=_0x5cf393;switch(_0x57cd46['key']){case _0x27e117(0x135):case _0x27e117(0xf5):case'Enter':this[_0x27e117(0xfd)](),this['currentTarget']&&this['currentTarget'][_0x27e117(0x127)](_0x27e117(0x134)),this['currentTarget']=null;}}),this[_0x5cf393(0x12c)][_0x5cf393(0xf8)](_0x5cf393(0x104),_0x49f898=>{const _0x5dc5e8=_0x5cf393;_0x49f898[_0x5dc5e8(0x12a)]();let _0x39358a=_0x49f898[_0x5dc5e8(0x105)];if(this[_0x5dc5e8(0xee)]&&(this[_0x5dc5e8(0xfd)](),this[_0x5dc5e8(0xee)][_0x5dc5e8(0x127)](_0x5dc5e8(0x134))),_0x5dc5e8(0x10b)!==_0x39358a['tagName']||!_0x39358a[_0x5dc5e8(0xf9)]['record'][_0x5dc5e8(0xec)])return this[_0x5dc5e8(0xfd)](),void(this['currentTarget']=null);this[_0x5dc5e8(0xee)]=_0x39358a,_0x39358a[_0x5dc5e8(0xf6)](_0x5dc5e8(0x134),_0x5dc5e8(0x122));}),this['addEventListener'](_0x5cf393(0xfe),_0x3bf4ea=>{const _0x57c8ba=_0x5cf393;var {after:_0x141b6c,before:_0x27cdcf,column:_0x709cd1,record:_0x327fba,row:_0x124727}=_0x3bf4ea['detail'];if(ValueUtil['isEquals'](_0x141b6c,_0x27cdcf))return;var _0x1043e7=_0x709cd1[_0x57c8ba(0x12f)];if(_0x1043e7&&_0x57c8ba(0xfc)==typeof _0x1043e7&&!_0x1043e7[_0x57c8ba(0x12d)](this,_0x141b6c,_0x27cdcf,_0x327fba,_0x709cd1))return;let _0x5250f6=_0x709cd1[_0x57c8ba(0x12b)];_0x327fba[_0x5250f6]=_0x141b6c,_0x327fba[_0x57c8ba(0x116)]=_0x327fba[_0x57c8ba(0x116)]||{},_0x327fba[_0x57c8ba(0x116)][_0x5250f6]={'before':_0x327fba[_0x57c8ba(0x108)][_0x5250f6],'after':_0x327fba[_0x5250f6]},ValueUtil['isEquals'](_0x327fba[_0x57c8ba(0x116)][_0x5250f6]['before'],_0x327fba[_0x57c8ba(0x116)][_0x5250f6][_0x57c8ba(0x132)])&&delete _0x327fba[_0x57c8ba(0x116)][_0x5250f6],ValueUtil[_0x57c8ba(0x115)](_0x327fba[_0x57c8ba(0x116)])?_0x327fba[_0x57c8ba(0x114)]='M':_0x327fba['__dirty__']='',this[_0x57c8ba(0x124)]={..._0x327fba};});}async[a0_0x5c2806(0x12e)](){const _0x2b4375=a0_0x5c2806;super[_0x2b4375(0x12e)]&&await super[_0x2b4375(0x12e)]();}async['pageInitialized'](){const _0x3142c=a0_0x5c2806;this[_0x3142c(0xef)]&&await this['parseFormConfigs'](),super[_0x3142c(0x101)]&&await super[_0x3142c(0x101)](),this[_0x3142c(0xef)]&&await this['fetch']();}[a0_0x5c2806(0x11c)](){return MetaApi['getBasicFormHtml'](this);}[a0_0x5c2806(0x119)](_0x3cefe2){const _0x40e60d=a0_0x5c2806;this[_0x40e60d(0x100)]=_0x3cefe2[_0x40e60d(0xf0)],this[_0x40e60d(0xf3)]=_0x3cefe2[_0x40e60d(0x102)],_0x3cefe2['button']=_0x3cefe2[_0x40e60d(0x11f)][_0x40e60d(0x112)](_0x1f4440=>'save'==_0x1f4440[_0x40e60d(0x12b)]);}async[a0_0x5c2806(0xed)](){const _0x35b4dd=a0_0x5c2806;this[_0x35b4dd(0x11a)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x5c2806(0x107)](){const _0xa16c13=a0_0x5c2806;return this[_0xa16c13(0x11b)](this[_0xa16c13(0x124)]['__origin__']);}get[a0_0x5c2806(0xf2)](){const _0x432f9c=a0_0x5c2806;if(ValueUtil[_0x432f9c(0xf1)](this[_0x432f9c(0x124)][_0x432f9c(0x116)]))return{};let _0x325cb7={};return Object[_0x432f9c(0x128)](this[_0x432f9c(0x124)][_0x432f9c(0x116)])['map'](([_0x833b5f,_0x3fd946])=>{const _0x39c74c=_0x432f9c;0x0==_0x833b5f['startsWith']('__')&&(_0x325cb7[_0x833b5f]=_0x3fd946[_0x39c74c(0x132)]);}),_0x325cb7;}get['currentData'](){const _0x398ae7=a0_0x5c2806;return this[_0x398ae7(0x11b)](this['record']);}['removeGarbageData'](_0x29856c){const _0xdda5f1=a0_0x5c2806;let _0x3aeac3={};return Object[_0xdda5f1(0x128)](_0x29856c)['map'](([_0xd34329,_0x5d5ef9])=>{0x0==_0xd34329['startsWith']('__')&&(_0x3aeac3[_0xd34329]=_0x5d5ef9);}),_0x3aeac3;}get[a0_0x5c2806(0x103)](){const _0x529476=a0_0x5c2806;let _0x3e9ba1=this['dirtyData'],_0x23cbd6=this[_0x529476(0x124)];return ValueUtil[_0x529476(0xf1)](_0x3e9ba1)?{}:(ValueUtil[_0x529476(0x115)](_0x23cbd6['id'])?(_0x3e9ba1['id']=_0x23cbd6['id'],_0x3e9ba1[_0x529476(0xf7)]='M'):_0x3e9ba1['cuFlag']='+',[_0x3e9ba1]);}async[a0_0x5c2806(0x126)](){const _0xb32d4f=a0_0x5c2806;if(ValueUtil[_0xb32d4f(0xf1)](this[_0xb32d4f(0x11d)]))return;let _0x2534c9=await this[_0xb32d4f(0x11e)](this[_0xb32d4f(0x11d)]);_0x2534c9[_0xb32d4f(0x125)]=0x1;let _0xb570f4={};Object['assign'](_0xb570f4,_0x2534c9),_0x2534c9['__origin__']=_0xb570f4,this['record']={..._0x2534c9};}async[a0_0x5c2806(0x10f)](){const _0x52ef54=a0_0x5c2806;let _0x2026b0=this[_0x52ef54(0x103)];if(ValueUtil[_0x52ef54(0xf1)](_0x2026b0))return void MetaApi['showAlertPopup'](_0x52ef54(0x110),_0x52ef54(0x123));let _0x129fe0=await this[_0x52ef54(0x10a)](_0x2026b0);return _0x129fe0&&await this[_0x52ef54(0x126)](),_0x129fe0;}};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const
|
|
2
|
-
${0x0==this[
|
|
1
|
+
const a0_0x4d372c=a0_0xa1fb;(function(_0x21c4bc,_0x3e3145){const _0x641a48=a0_0xa1fb,_0x14b84f=_0x21c4bc();while(!![]){try{const _0x3cd0c4=-parseInt(_0x641a48(0xbd))/0x1+parseInt(_0x641a48(0x89))/0x2+parseInt(_0x641a48(0x94))/0x3+parseInt(_0x641a48(0xbb))/0x4*(-parseInt(_0x641a48(0xbf))/0x5)+-parseInt(_0x641a48(0xad))/0x6+-parseInt(_0x641a48(0xb9))/0x7+parseInt(_0x641a48(0x99))/0x8;if(_0x3cd0c4===_0x3e3145)break;else _0x14b84f['push'](_0x14b84f['shift']());}catch(_0x163c16){_0x14b84f['push'](_0x14b84f['shift']());}}}(a0_0xfb4a,0x43bd0));function a0_0xa1fb(_0x183691,_0x2510f8){const _0xfb4a0e=a0_0xfb4a();return a0_0xa1fb=function(_0xa1fb93,_0xaa2782){_0xa1fb93=_0xa1fb93-0x88;let _0x8a9d36=_0xfb4a0e[_0xa1fb93];return _0x8a9d36;},a0_0xa1fb(_0x183691,_0x2510f8);}import{html}from'lit';function a0_0xfb4a(){const _0x1e44ed=['getBasicGristTabStyles','delete','title','fetch','7786240cTAJwa','properties','grid-template-rows:','parseGridConfigSet','useMasterFilterForm','gristId','findOne','grist','grid_column','menuInfo','parseGristConfigs','getParams','options','gridConfig','useFilterForm','querySelector','actions','master_detail_type','pageInitialized','export','2087058GVVlMR','getAndParseMenuMeta','shadowRoot','columns','search','gridColumnConfig','header','find','filter','etc','getButtonContainer','left_right','3300843zTImdr','styles','20ObXtGb','record','256054IeIqxi','tTitle','466065ByultV','operator','context','etcConfig','isPage','updateMultiple','grid-template-columns:','exportableData','getSelectedIdList','importable','isNotEmpty','route_name','patchesForUpdateMultiple','map','filterFormId','searchFields','save','590422QtBHeu','ox-grist','isElement','name','exportable','connectedCallback','gristConfigSet','50%\x2050%','import','searchConfig','firstUpdated','1651428GEYXHa'];a0_0xfb4a=function(){return _0x1e44ed;};return a0_0xfb4a();}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=_0x170d03=>class extends MetaButtonMixin(_0x170d03){static get[a0_0x4d372c(0xba)](){const _0x2cae42=a0_0x4d372c;return MetaApi[_0x2cae42(0x95)]();}static get[a0_0x4d372c(0x9a)](){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['grist'](){const _0x3e04ff=a0_0x4d372c;return this['renderRoot'][_0x3e04ff(0xa8)](this[_0x3e04ff(0x9e)]);}get['filterForm'](){const _0x215f27=a0_0x4d372c;return this[_0x215f27(0xaf)]?.[_0x215f27(0xa8)](this[_0x215f27(0xcd)]);}get[a0_0x4d372c(0xc1)](){const _0x1b63f9=a0_0x4d372c;let _0x226181=MetaUiUtil['getContextObject'](this);return _0x226181[_0x1b63f9(0xa9)]&&delete _0x226181['actions'],_0x226181[_0x1b63f9(0x8d)]&&delete _0x226181[_0x1b63f9(0x8d)],_0x226181[_0x1b63f9(0xc8)]&&delete _0x226181[_0x1b63f9(0xc8)],_0x226181;}async[a0_0x4d372c(0x8e)](){const _0x14c1ae=a0_0x4d372c;this[_0x14c1ae(0x9e)]=_0x14c1ae(0x8a),this[_0x14c1ae(0xcd)]='ox-filters-form-base',await this[_0x14c1ae(0xae)](),this[_0x14c1ae(0x8b)]&&await this[_0x14c1ae(0xa3)](),super[_0x14c1ae(0x8e)]&&await super[_0x14c1ae(0x8e)]();}async[a0_0x4d372c(0x93)](){const _0x599b73=a0_0x4d372c;super['firstUpdated']&&await super[_0x599b73(0x93)]();}async[a0_0x4d372c(0xab)](){const _0x1d7cef=a0_0x4d372c;this[_0x1d7cef(0xc3)]&&await this[_0x1d7cef(0xa3)](),super[_0x1d7cef(0xab)]&&await super[_0x1d7cef(0xab)]();}['render'](){const _0x5e3248=a0_0x4d372c;let _0x33396a=this[_0x5e3248(0xc2)][_0x5e3248(0xaa)]||'top_bottom',_0x42cc0e=this[_0x5e3248(0xc2)]['master_detail_size']||_0x5e3248(0x90),_0x158185=_0x5e3248(0xb8)==_0x33396a?_0x5e3248(0xc5)+_0x42cc0e+';':_0x5e3248(0x9b)+_0x42cc0e+';',_0xf74894=this[_0x5e3248(0xc3)]?UiUtil['currentRouting']():this[_0x5e3248(0xca)];return html`
|
|
2
|
+
${0x0==this[_0x5e3248(0x9d)]?html``:html`
|
|
3
3
|
<div slot="headroom">
|
|
4
4
|
<div id="filters">
|
|
5
5
|
<ox-filters-form-base
|
|
6
6
|
id='ox-filters-form'
|
|
7
7
|
.filters=${this['searchFields']||[]}
|
|
8
|
-
@filters-change=${
|
|
8
|
+
@filters-change=${_0x427db2=>{const _0x5c32ec=_0x5e3248;this[_0x5c32ec(0xa0)]?.[_0x5c32ec(0x98)]();}}
|
|
9
9
|
></ox-filters-form-base>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
12
|
`}
|
|
13
|
-
<div id="container" class="container" style="${
|
|
13
|
+
<div id="container" class="container" style="${_0x158185}">
|
|
14
14
|
<div class="container_detail">
|
|
15
|
-
${MetaApi[
|
|
16
|
-
${MetaUiUtil[
|
|
15
|
+
${MetaApi['getBasicGristHtml'](this)}
|
|
16
|
+
${MetaUiUtil[_0x5e3248(0xb7)](this)}
|
|
17
17
|
</div>
|
|
18
18
|
<div class="container_detail">
|
|
19
|
-
<meta-tab-element id="detail" route_name="${
|
|
19
|
+
<meta-tab-element id="detail" route_name="${_0xf74894}" is_detail=true></meta-tab-element>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
|
-
`;}[
|
|
22
|
+
`;}['parseBasicGridConfigs'](_0x4dcc70){const _0x4fe8e7=a0_0x4d372c;this[_0x4fe8e7(0xa6)]=_0x4dcc70['grid'],this[_0x4fe8e7(0xb2)]=_0x4dcc70[_0x4fe8e7(0xa1)],this[_0x4fe8e7(0x92)]=_0x4dcc70[_0x4fe8e7(0xb1)],this[_0x4fe8e7(0xc2)]=_0x4dcc70[_0x4fe8e7(0xb6)];}async[a0_0x4d372c(0xa3)](){const _0xaa6909=a0_0x4d372c;this[_0xaa6909(0x8f)]=await MetaApi[_0xaa6909(0x9c)](this),this[_0xaa6909(0x9d)]=this['useFilterForm'],this[_0xaa6909(0xa7)]=!0x1,this[_0xaa6909(0xce)]=this[_0xaa6909(0x8f)][_0xaa6909(0xb0)][_0xaa6909(0xb5)](_0x2d41ff=>_0x2d41ff[_0xaa6909(0xb5)])[_0xaa6909(0xcc)](_0x187baa=>{const _0x1363b2=_0xaa6909;let _0x27e08d={'name':_0x187baa[_0x1363b2(0x8c)],'type':_0x187baa['type'],'label':_0x187baa[_0x1363b2(0xb3)],'operator':_0x187baa['operator']?_0x187baa[_0x1363b2(0xc0)]:'eq'};return _0x187baa[_0x1363b2(0xbc)][_0x1363b2(0xa5)]&&(_0x27e08d[_0x1363b2(0xa5)]=_0x187baa[_0x1363b2(0xbc)][_0x1363b2(0xa5)]),_0x27e08d;});}async[a0_0x4d372c(0x98)](){const _0x2e10ee=a0_0x4d372c;await this[_0x2e10ee(0xa0)][_0x2e10ee(0x98)]();}async[a0_0x4d372c(0x88)](){const _0x332e36=a0_0x4d372c;let _0x48dad5=MetaApi[_0x332e36(0xcb)](this[_0x332e36(0xa0)]);!!ValueUtil[_0x332e36(0xc9)](_0x48dad5)&&await this[_0x332e36(0xc4)](_0x48dad5)&&this[_0x332e36(0x98)]();}async[a0_0x4d372c(0xb4)](){const _0x203912=a0_0x4d372c;let _0x5cc20d=MetaApi[_0x203912(0xc7)](this[_0x203912(0xa0)],!0x0);return ValueUtil[_0x203912(0xc9)](_0x5cc20d)?await this[_0x203912(0x9f)](_0x5cc20d[0x0]):{};}async[a0_0x4d372c(0x96)](){const _0xd330bf=a0_0x4d372c;let _0xf5e68a=MetaApi[_0xd330bf(0xc7)](this[_0xd330bf(0xa0)],!0x0);!!ValueUtil[_0xd330bf(0xc9)](_0xf5e68a)&&await this['deleteByIds'](_0xf5e68a)&&this[_0xd330bf(0x98)]();}async[a0_0x4d372c(0xac)](){const _0x55b454=a0_0x4d372c;let _0x4f0646=TermsUtil[_0x55b454(0xbe)](ValueUtil[_0x55b454(0xa4)](this[_0x55b454(0xa2)],_0x55b454(0x97)));return await MetaApi[_0x55b454(0xc6)](this[_0x55b454(0x8b)],_0x4f0646,this[_0x55b454(0xa0)]);}async[a0_0x4d372c(0x91)](){}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x1ad6(){const _0x3f9a71=['deleteByIds','1398vDhERO','keys','191940LkSVEh','100oHMnqC','1948590CLgywJ','func','2107645etQRcx','lifecycle','formConfigSet','columns','14njpIrF','multiple','fetchHandler','push','4YLedCD','split','list_func','1062162fzRUul','parseBasicServiceConfigs','getQueryFilters','parse','isEmpty','isArray','updateMultiple','pass','properties','query','name','length','isNotEmpty','map','forEach','filterForm','params','records','1805984ecSNdD','value','getPageNavigateParams','gql','getParams','includes','mutation','3006pyaGuG','gqlInfo','992618rsVyOO','getSelectColumns','isPage','filters','after_set_fields','gristConfigSet','parent_id','filter','findOne'];a0_0x1ad6=function(){return _0x3f9a71;};return a0_0x1ad6();}function a0_0x5c59(_0x31fb86,_0x6f529c){const _0x1ad6c2=a0_0x1ad6();return a0_0x5c59=function(_0x5c593e,_0x31eb7a){_0x5c593e=_0x5c593e-0x1b1;let _0x32cedf=_0x1ad6c2[_0x5c593e];return _0x32cedf;},a0_0x5c59(_0x31fb86,_0x6f529c);}const a0_0x34514d=a0_0x5c59;(function(_0x44f4f8,_0x50e214){const _0x1a6178=a0_0x5c59,_0x18b59d=_0x44f4f8();while(!![]){try{const _0x3ccad3=-parseInt(_0x1a6178(0x1ca))/0x1+parseInt(_0x1a6178(0x1c8))/0x2*(-parseInt(_0x1a6178(0x1bc))/0x3)+parseInt(_0x1a6178(0x1d6))/0x4*(parseInt(_0x1a6178(0x1ce))/0x5)+parseInt(_0x1a6178(0x1d9))/0x6+parseInt(_0x1a6178(0x1d2))/0x7*(-parseInt(_0x1a6178(0x1b5))/0x8)+parseInt(_0x1a6178(0x1cc))/0x9+parseInt(_0x1a6178(0x1cb))/0xa*(parseInt(_0x1a6178(0x1be))/0xb);if(_0x3ccad3===_0x50e214)break;else _0x18b59d['push'](_0x18b59d['shift']());}catch(_0x2dfea4){_0x18b59d['push'](_0x18b59d['shift']());}}}(a0_0x1ad6,0x5b36c));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x38068a=>class extends MetaBaseMixin(_0x38068a){static get[a0_0x34514d(0x1e1)](){return{'gqlInfo':Object};}[a0_0x34514d(0x1da)](_0x1ca453){const _0x1dd950=a0_0x34514d;this[_0x1dd950(0x1bd)]=_0x1ca453[_0x1dd950(0x1b8)];}async[a0_0x34514d(0x1d4)]({page:_0x32d2d2=0x0,limit:_0x12361a=0x0,sortings:_0x588a86=[],filters:_0xf71237=[]}){const _0x17a673=a0_0x34514d;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0x237433=ValueUtil[_0x17a673(0x1dd)](_0xf71237)?await this[_0x17a673(0x1b2)]?.[_0x17a673(0x1db)]()||[]:_0xf71237,_0x5f3a43=ValueUtil['getParams'](this[_0x17a673(0x1bd)],_0x17a673(0x1e2),_0x17a673(0x1d8)),_0x18c65c=ValueUtil[_0x17a673(0x1b9)](this['gqlInfo'],_0x17a673(0x1e2),_0x17a673(0x1c1)),_0x2c86c3=ValueUtil[_0x17a673(0x1b9)](this[_0x17a673(0x1bd)],_0x17a673(0x1e2),_0x17a673(0x1c2));if(ValueUtil[_0x17a673(0x1e5)](_0x18c65c)&&(_0x237433=adjustFilters(_0x237433,_0x18c65c)),_0x237433['push'](...this[_0x17a673(0x1b7)]()),this['isElement']){let _0x379535=ValueUtil[_0x17a673(0x1b9)](this['gqlInfo'],_0x17a673(0x1e2),_0x17a673(0x1c4));ValueUtil[_0x17a673(0x1e5)](_0x379535)&&ValueUtil[_0x17a673(0x1e5)](this[_0x17a673(0x1c4)])&&(_0x237433=adjustFilters(_0x237433,[{'name':_0x379535,'operator':'eq','value':this[_0x17a673(0x1c4)]}]));}let _0x1848ba=Object[_0x17a673(0x1c9)](_0x2c86c3||{}),_0x42d872=MetaApi[_0x17a673(0x1bf)](this[_0x17a673(0x1c3)]['columns']['filter'](_0x4fe31b=>!_0x1848ba['includes'](_0x4fe31b[_0x17a673(0x1e3)]))),_0x54f34d=await MetaApi['searchByPagination'](_0x5f3a43,_0x237433,_0x588a86,_0x32d2d2,_0x12361a,_0x42d872);return ValueUtil['isNotEmpty'](_0x2c86c3)&&ValueUtil[_0x17a673(0x1e5)](_0x54f34d)&&ValueUtil[_0x17a673(0x1e5)](_0x54f34d[_0x17a673(0x1b4)])&&_0x54f34d[_0x17a673(0x1b4)][_0x17a673(0x1e6)](_0x5730ed=>(_0x1848ba[_0x17a673(0x1b1)](_0x4eb909=>{const _0x50ebd7=_0x17a673;_0x5730ed[_0x4eb909]=ValueUtil[_0x50ebd7(0x1b9)](_0x5730ed,..._0x2c86c3[_0x4eb909][_0x50ebd7(0x1d7)]('.'));}),_0x5730ed)),_0x54f34d;}[a0_0x34514d(0x1b7)](){const _0x29a66b=a0_0x34514d;if(0x0==this[_0x29a66b(0x1c0)])return[];let _0x5e2473=this[_0x29a66b(0x1cf)]?.[_0x29a66b(0x1b3)]?this[_0x29a66b(0x1cf)][_0x29a66b(0x1b3)]:{};if(!_0x5e2473[_0x29a66b(0x1e0)])return[];let _0x43feef=_0x5e2473[_0x29a66b(0x1e0)],_0xb8540=JSON[_0x29a66b(0x1dc)](_0x43feef),_0x30ac9d=0x1==_0xb8540[_0x29a66b(0x1e4)]?'eq':'in',_0x315789={},_0x389e06=[];return Object[_0x29a66b(0x1c9)](_0xb8540[0x0])['forEach'](_0x3fb3b3=>{_0x315789[_0x3fb3b3]={'name':_0x3fb3b3,'operator':_0x30ac9d,'value':'eq'===_0x30ac9d?_0xb8540[0x0][_0x3fb3b3]:[]};}),_0xb8540['length']>0x1&&_0xb8540[_0x29a66b(0x1b1)](_0xbcf80b=>{const _0x282841=_0x29a66b;Object[_0x282841(0x1c9)](_0xbcf80b)['forEach'](_0x44e9c8=>{const _0x225056=_0x282841;_0x315789[_0x44e9c8][_0x225056(0x1b6)]['push'](_0xbcf80b[_0x44e9c8]);});}),Object[_0x29a66b(0x1c9)](_0x315789)[_0x29a66b(0x1b1)](_0x47f0c0=>{const _0x1e9d02=_0x29a66b;_0x389e06[_0x1e9d02(0x1d5)](_0x315789[_0x47f0c0]);}),_0x389e06;}async[a0_0x34514d(0x1c6)](_0x5489f5){const _0x49afda=a0_0x34514d;let _0x9b16f5=ValueUtil['getParams'](this['gqlInfo'],_0x49afda(0x1e2),'find_one_func'),_0x476272=ValueUtil['getParams'](this[_0x49afda(0x1bd)],_0x49afda(0x1e2),_0x49afda(0x1c2)),_0x9fa800=Object[_0x49afda(0x1c9)](_0x476272||{}),_0x12e496=MetaApi[_0x49afda(0x1bf)]((this[_0x49afda(0x1c3)]?this[_0x49afda(0x1c3)]:{'columns':this[_0x49afda(0x1d0)]})[_0x49afda(0x1d1)][_0x49afda(0x1c5)](_0x4f31c5=>!_0x9fa800[_0x49afda(0x1ba)](_0x4f31c5[_0x49afda(0x1e3)]))),_0x65ff00=await MetaApi[_0x49afda(0x1c6)](_0x9b16f5,_0x5489f5,_0x12e496);return ValueUtil[_0x49afda(0x1e5)](_0x476272)&&ValueUtil[_0x49afda(0x1e5)](_0x65ff00)&&_0x9fa800[_0x49afda(0x1b1)](_0x279b82=>{const _0xd218a6=_0x49afda;_0x65ff00[_0x279b82]=ValueUtil[_0xd218a6(0x1b9)](_0x65ff00,..._0x476272[_0x279b82][_0xd218a6(0x1d7)]('.'));}),_0x65ff00;}async[a0_0x34514d(0x1c7)](_0xb8ae5){const _0x3943c7=a0_0x34514d;let _0x3bc3f7=ValueUtil[_0x3943c7(0x1b9)](this[_0x3943c7(0x1bd)],_0x3943c7(0x1bb),'delete','func');return await MetaApi['deleteListByIds'](_0xb8ae5,_0x3bc3f7);}async[a0_0x34514d(0x1df)](_0x15fb12){const _0x525d6f=a0_0x34514d;let _0x1c9621=ValueUtil[_0x525d6f(0x1b9)](this['gqlInfo'],_0x525d6f(0x1bb),_0x525d6f(0x1d3),_0x525d6f(0x1cd)),_0x8533f8=ValueUtil[_0x525d6f(0x1b9)](this[_0x525d6f(0x1bd)],_0x525d6f(0x1bb),_0x525d6f(0x1d3),'skip_fields');if(ValueUtil[_0x525d6f(0x1e5)](_0x8533f8)&&(_0x8533f8=_0x8533f8[_0x525d6f(0x1e6)](_0x5ad3af=>_0x5ad3af[_0x525d6f(0x1ba)]('.')?_0x5ad3af[_0x525d6f(0x1d7)]('.'):_0x5ad3af),_0x15fb12=_0x15fb12[_0x525d6f(0x1e6)](_0x14c32e=>(_0x8533f8['forEach'](_0x1a11ad=>{const _0x50b01a=_0x525d6f;Array[_0x50b01a(0x1de)](_0x1a11ad)?delete _0x14c32e[_0x1a11ad[0x0]][_0x1a11ad[0x1]]:delete _0x14c32e[_0x1a11ad];}),_0x14c32e))),this['isElement']&&ValueUtil['isNotEmpty'](this[_0x525d6f(0x1c4)])){let _0x230308=ValueUtil[_0x525d6f(0x1b9)](this['gqlInfo'],_0x525d6f(0x1bb),_0x525d6f(0x1d3),_0x525d6f(0x1c4));ValueUtil[_0x525d6f(0x1e5)](_0x230308)&&_0x15fb12['forEach'](_0x16e2b1=>{const _0x36347c=_0x525d6f;if(_0x230308[_0x36347c(0x1ba)]('.')){let _0x2abb9c=_0x230308['split']('.');_0x16e2b1[_0x2abb9c[0x0]]={},_0x16e2b1[_0x2abb9c[0x0]][_0x2abb9c[0x1]]=this['parent_id'];}else _0x16e2b1[_0x230308]=this[_0x36347c(0x1c4)];});}return await MetaApi[_0x525d6f(0x1df)](_0x1c9621,_0x15fb12);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5b2b5a=a0_0xde79;(function(_0x10979a,_0x31fa5f){const _0x552368=a0_0xde79,_0x27aa24=_0x10979a();while(!![]){try{const _0x1069ca=-parseInt(_0x552368(0x1ae))/0x1*(parseInt(_0x552368(0x1b0))/0x2)+parseInt(_0x552368(0x1b1))/0x3*(parseInt(_0x552368(0x1a1))/0x4)+-parseInt(_0x552368(0x1a7))/0x5*(parseInt(_0x552368(0x1a9))/0x6)+-parseInt(_0x552368(0x1b4))/0x7*(parseInt(_0x552368(0x1b5))/0x8)+-parseInt(_0x552368(0x1a8))/0x9+-parseInt(_0x552368(0x1a4))/0xa+parseInt(_0x552368(0x1b3))/0xb;if(_0x1069ca===_0x31fa5f)break;else _0x27aa24['push'](_0x27aa24['shift']());}catch(_0x2706d2){_0x27aa24['push'](_0x27aa24['shift']());}}}(a0_0x2b57,0x426ff));import{MetaApi}from'../utils/meta-api';function a0_0x2b57(){const _0x142d3b=['getBasicTabHtml','render','tabRenderConfig','9580naxmyM','parseBasicTabConfigs','pageInitialized','4514370prRThi','firstUpdated','properties','2005265IDOZBa','71010SutLKx','6xbhUCa','tab','styles','button','getBasicTabStyles','17359PtuugL','connectedCallback','58QwScvN','519BJuvzO','context','14045702zRsnAG','21OxxfAB','147464yuubGw'];a0_0x2b57=function(){return _0x142d3b;};return a0_0x2b57();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0xde79(_0x46dbfd,_0x54bdf8){const _0x2b57a1=a0_0x2b57();return a0_0xde79=function(_0xde793c,_0x13772e){_0xde793c=_0xde793c-0x19e;let _0x20855a=_0x2b57a1[_0xde793c];return _0x20855a;},a0_0xde79(_0x46dbfd,_0x54bdf8);}export const MetaTabMixin=_0xf43ce6=>class extends MetaButtonMixin(_0xf43ce6){static get[a0_0x5b2b5a(0x1ab)](){const _0x5653a8=a0_0x5b2b5a;return MetaApi[_0x5653a8(0x1ad)]();}static get[a0_0x5b2b5a(0x1a6)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x5b2b5a(0x1b2)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x5b2b5a(0x1af)](){const _0x5443e9=a0_0x5b2b5a;this['currentTabKey']=void 0x0,await this['getAndParseMenuMeta'](),super[_0x5443e9(0x1af)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x417ec1=a0_0x5b2b5a;super[_0x417ec1(0x1a5)]&&await super[_0x417ec1(0x1a5)]();}async['pageInitialized'](){const _0x540e01=a0_0x5b2b5a;super[_0x540e01(0x1a3)]&&await super[_0x540e01(0x1a3)]();}[a0_0x5b2b5a(0x19f)](){const _0x575067=a0_0x5b2b5a;return MetaApi[_0x575067(0x19e)](this);}[a0_0x5b2b5a(0x1a2)](_0x43270f){const _0x2347cf=a0_0x5b2b5a;this[_0x2347cf(0x1a0)]=_0x43270f[_0x2347cf(0x1aa)],_0x43270f[_0x2347cf(0x1ac)]=[];}};
|