@things-factory/meta-ui 6.0.32 → 6.0.36
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/index.js +4 -2
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +3 -3
- 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 -22
- package/client/mixin/meta-master-detail-mixin.js +1 -23
- 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 +7 -7
- 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-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +14 -14
- 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-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +5 -5
- 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 +105 -62
- 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 +1 -1
- 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/package.json +5 -5
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
package/client/actions/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
function a0_0xf0e3(){const _0x7a70c4=['6cODVAj','6669666qEXJJz','846737mubROi','5640590jzaAtm','UPDATE_META_UI','dynamic-menu','4403lKLsMV','2555455pAftDQ','portrait','8QkTlnQ','18RPMCmt','FRONT_END','lite-menu-part','91978qvLmwI','NAVBAR','hamburger','dynamic-menu-part','22384XCVNZe','1122IgooBS','get','UPDATE_META_MENU_TEMPLATE','dispatch','landscape','value','344088VItXgR'];a0_0xf0e3=function(){return _0x7a70c4;};return a0_0xf0e3();}const a0_0x35b1a8=a0_0x2a99;(function(_0x47181c,_0x57e39c){const _0x15f1b4=a0_0x2a99,_0x15871e=_0x47181c();while(!![]){try{const _0xa54e8f=parseInt(_0x15f1b4(0x17f))/0x1+parseInt(_0x15f1b4(0x18a))/0x2*(-parseInt(_0x15f1b4(0x196))/0x3)+-parseInt(_0x15f1b4(0x186))/0x4*(parseInt(_0x15f1b4(0x184))/0x5)+-parseInt(_0x15f1b4(0x17e))/0x6+parseInt(_0x15f1b4(0x183))/0x7*(-parseInt(_0x15f1b4(0x18e))/0x8)+-parseInt(_0x15f1b4(0x187))/0x9*(-parseInt(_0x15f1b4(0x180))/0xa)+-parseInt(_0x15f1b4(0x18f))/0xb*(-parseInt(_0x15f1b4(0x195))/0xc);if(_0xa54e8f===_0x57e39c)break;else _0x15871e['push'](_0x15871e['shift']());}catch(_0x269dd0){_0x15871e['push'](_0x15871e['shift']());}}}(a0_0xf0e3,0xdf1e2));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_0x2a99(_0x1ad923,_0x1a0400){const _0xf0e353=a0_0xf0e3();return a0_0x2a99=function(_0x2a99bf,_0x106331){_0x2a99bf=_0x2a99bf-0x17e;let _0x1939ca=_0xf0e353[_0x2a99bf];return _0x1939ca;},a0_0x2a99(_0x1ad923,_0x1a0400);}import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';import{updateMenuTemplate as a0_0x453d35}from'@things-factory/lite-menu';export const UPDATE_META_UI=a0_0x35b1a8(0x181);export const UPDATE_META_MENU_TEMPLATE=a0_0x35b1a8(0x191);var HAMBURGER;export async function setupMenuPart(_0x521e29){const _0x377b4c=a0_0x35b1a8;var {hovering:_0x897656=!!isMobileDevice(),slotTemplate:_0x35884b,portraitSlotTemplate:_0x4ed09f,landscapeSlotTemplate:_0x6ff4c,position:_0x91fe2b=VIEWPART_POSITION[_0x377b4c(0x18b)]}=_0x521e29||{};const {hovering:_0x14fac7}=(await clientSettingStore[_0x377b4c(0x190)](_0x377b4c(0x182)))?.[_0x377b4c(0x194)]||{};void 0x0!==_0x14fac7&&(_0x897656=_0x14fac7);const _0x537fcc=_0x91fe2b==VIEWPART_POSITION['HEADERBAR']?_0x377b4c(0x193):_0x377b4c(0x185),_0x12b23b=(_0x377b4c(0x193)==_0x537fcc?_0x6ff4c:_0x4ed09f)||_0x35884b||html``;appendViewpart({'name':_0x377b4c(0x189),'viewpart':{'show':!_0x897656,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x897656,'template':html`<dynamic-menu-part .orientation=${_0x537fcc}>${_0x12b23b}</dynamic-menu-part>`},'position':_0x91fe2b}),_0x897656&&_0x377b4c(0x185)==_0x537fcc?HAMBURGER||(HAMBURGER={'name':_0x377b4c(0x18c),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x474573=>toggleOverlay(_0x377b4c(0x18d),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x377b4c(0x188)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x377b4c(0x192)]({'type':REMOVE_APP_TOOL,'name':_0x377b4c(0x18c)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x22ff38){const _0x466847=a0_0x35b1a8;a0_0x453d35(_0x22ff38),store[_0x466847(0x192)]({'type':UPDATE_META_MENU_TEMPLATE,'template':_0x22ff38});}
|
package/client/index.js
CHANGED
|
@@ -20,8 +20,10 @@ export * from './mixin/meta-tab-mixin'
|
|
|
20
20
|
export * from './mixin/meta-grist-tab-mixin'
|
|
21
21
|
|
|
22
22
|
/** Page **/
|
|
23
|
-
export * from './pages/meta-grist-page'
|
|
24
|
-
export * from './pages/meta-grist-element'
|
|
25
23
|
export * from './pages/meta-form-element'
|
|
24
|
+
export * from './pages/meta-grist-element'
|
|
25
|
+
export * from './pages/meta-grist-page'
|
|
26
26
|
export * from './pages/meta-grist-tab-page'
|
|
27
|
+
export * from './pages/meta-master-detail-element'
|
|
28
|
+
export * from './pages/meta-master-detail-page'
|
|
27
29
|
export * from './pages/meta-tab-element'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x5f17(_0x37bac0,_0x220109){const _0x2396d8=a0_0x2396();return a0_0x5f17=function(_0x5f1767,_0x1c7a54){_0x5f1767=_0x5f1767-0x81;let _0x254d3f=_0x2396d8[_0x5f1767];return _0x254d3f;},a0_0x5f17(_0x37bac0,_0x220109);}const a0_0x440785=a0_0x5f17;(function(_0x25ca61,_0x5d9f0b){const _0x5f1287=a0_0x5f17,_0x49ce55=_0x25ca61();while(!![]){try{const _0x48694=parseInt(_0x5f1287(0x9d))/0x1*(-parseInt(_0x5f1287(0x9e))/0x2)+parseInt(_0x5f1287(0x84))/0x3*(-parseInt(_0x5f1287(0x88))/0x4)+-parseInt(_0x5f1287(0x86))/0x5+-parseInt(_0x5f1287(0x9f))/0x6*(parseInt(_0x5f1287(0xab))/0x7)+-parseInt(_0x5f1287(0x93))/0x8+parseInt(_0x5f1287(0x8e))/0x9*(-parseInt(_0x5f1287(0x87))/0xa)+parseInt(_0x5f1287(0x95))/0xb;if(_0x48694===_0x5d9f0b)break;else _0x49ce55['push'](_0x49ce55['shift']());}catch(_0x4113e4){_0x49ce55['push'](_0x49ce55['shift']());}}}(a0_0x2396,0xadbf2));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x2396(){const _0x193332=['isEmpty','name','errors','title_detail','9208717kBotuF','tTitle','is_popup','filterForm','getMenuMeta','title','parseBasicButtonConfigs','3XsZfce','etcConfig','6280830aspJNt','10qybpgY','190732KiXVXy','parseBasicTabConfigs','excuteOpenPopupButtonClick','is_detail','lifecycle','openDynamicPopup','3752901gNQYqj','parseBasicGridConfigs','isPage','fetchHandler','parseBasicServiceConfigs','7007672XioTwT','after','63030946WJQdmQ','params','parent_id','getAndParseMenuMeta','menu','setParentId','menuInfo','callScenario','178vcSGbd','12428vbpBqY','6FmqxAg','parseBasicFormConfigs','fetch','isPopup','split','etc','grist','isNotEmpty'];a0_0x2396=function(){return _0x193332;};return a0_0x2396();}export const MetaBaseMixin=_0x28b8a6=>class extends _0x28b8a6{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x5b6634=>Boolean(_0x5b6634)},'is_popup':{'type':Boolean,'converter':_0x2b8fa9=>Boolean(_0x2b8fa9)}};}get['isElement'](){const _0x25d683=a0_0x5f17;return!0x0===this['is_detail']||!0x0===this[_0x25d683(0xad)];}get['isDetail'](){const _0x1a691f=a0_0x5f17;return!ValueUtil[_0x1a691f(0xa7)](this[_0x1a691f(0x8b)])&&this['is_detail'];}async['pageUpdated'](_0x402da3,_0x4fa780,_0x1ff528){const _0x17393e=a0_0x5f17;let _0x16db47=this[_0x17393e(0x8c)]?.[_0x17393e(0x96)]?this[_0x17393e(0x8c)]['params']:{};this[_0x17393e(0x90)]&&this['active']&&0x0==_0x1ff528['active']&&ValueUtil['isNotEmpty'](_0x16db47)&&this[_0x17393e(0xa1)]();}get[a0_0x440785(0xa2)](){const _0x48a6ab=a0_0x440785;return!ValueUtil[_0x48a6ab(0xa7)](this[_0x48a6ab(0xad)])&&this['is_popup'];}get[a0_0x440785(0x90)](){const _0x11a321=a0_0x440785;return!this['is_detail']&&!this[_0x11a321(0xad)];}async[a0_0x440785(0x98)](){const _0xb880e5=a0_0x440785;let _0x463129=await MetaApi[_0xb880e5(0x81)](this);_0x463129&&(this[_0xb880e5(0x9b)]=_0x463129[_0xb880e5(0x99)],this[_0xb880e5(0x8f)]&&this['parseBasicGridConfigs'](_0x463129),this[_0xb880e5(0x92)]&&this[_0xb880e5(0x92)](_0x463129),this[_0xb880e5(0xa0)]&&this[_0xb880e5(0xa0)](_0x463129),this[_0xb880e5(0x89)]&&this[_0xb880e5(0x89)](_0x463129),this[_0xb880e5(0x83)]&&this[_0xb880e5(0x83)](_0x463129),this[_0xb880e5(0x85)]=_0x463129[_0xb880e5(0xa4)]);}async[a0_0x440785(0xa1)](){const _0xab440d=a0_0x440785;ValueUtil['isNotEmpty'](this['grist'])?this[_0xab440d(0xa5)][_0xab440d(0xa1)]():(ValueUtil[_0xab440d(0xa6)](this[_0xab440d(0xae)])||this['fetchHandler'])&&await this[_0xab440d(0x91)]();}async[a0_0x440785(0x8a)](_0x264d4f,_0x398ec1,_0x1800c2){const _0x533395=a0_0x440785;let _0x25e117=TermsUtil[_0x533395(0xac)](_0x264d4f[_0x533395(0x82)]);ValueUtil['isNotEmpty'](_0x264d4f[_0x533395(0xaa)])&&(_0x25e117=_0x25e117+'-'+ValueUtil['getParams'](_0x398ec1,..._0x264d4f[_0x533395(0xaa)][_0x533395(0xa3)]('.'))),MetaApi[_0x533395(0x8d)](_0x25e117,_0x264d4f,_0x398ec1,_0x1800c2);}async['executeCallScenarioButtonClick'](_0x18fbed,_0x36a7b6,_0x22e218){const _0x5a9b7a=a0_0x440785;let _0x3ca77a=await MetaApi[_0x5a9b7a(0x9c)](_0x18fbed[_0x5a9b7a(0xa8)],_0x18fbed['name'],_0x36a7b6);!0x1!==_0x3ca77a&&!_0x3ca77a[_0x5a9b7a(0xa9)]&&ValueUtil[_0x5a9b7a(0xa6)](_0x18fbed[_0x5a9b7a(0x94)])&&_0x22e218();}[a0_0x440785(0x9a)](_0x47304f){const _0x44f85b=a0_0x440785;this[_0x44f85b(0x97)]=_0x47304f,this[_0x44f85b(0xa1)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x147bac=a0_0x3146;(function(_0x74bd2f,_0x25dff8){const _0x2165e4=a0_0x3146,_0x52da01=_0x74bd2f();while(!![]){try{const _0x2cd2c3=-parseInt(_0x2165e4(0xa0))/0x1+-parseInt(_0x2165e4(0x9f))/0x2+parseInt(_0x2165e4(0xb7))/0x3*(-parseInt(_0x2165e4(0x99))/0x4)+-parseInt(_0x2165e4(0xab))/0x5+-parseInt(_0x2165e4(0xa3))/0x6*(parseInt(_0x2165e4(0x8a))/0x7)+parseInt(_0x2165e4(0x96))/0x8*(-parseInt(_0x2165e4(0xae))/0x9)+-parseInt(_0x2165e4(0x9c))/0xa*(-parseInt(_0x2165e4(0xa8))/0xb);if(_0x2cd2c3===_0x25dff8)break;else _0x52da01['push'](_0x52da01['shift']());}catch(_0x10284c){_0x52da01['push'](_0x52da01['shift']());}}}(a0_0x3fab,0x3dda4));import{html}from'lit';function a0_0x3fab(){const _0x2b2530=['title','24118039GjtZUF','parseBasicGridConfigs','getBasicGristStyles','1027880fOQxjF','parseGridConfigSet','updateMultiple','44037uwhdsh','save','fetch','searchConfig','getContextObject','import','grid_column','gridConfig','export','106287MLmneE','styles','renderRoot','render','menuInfo','exportableData','ox-grist','search','329oLeWCt','parseGristConfigs','filterFormId','tTitle','deleteByIds','gristId','connectedCallback','isNotEmpty','findOne','grid','gridColumnConfig','clear','512FdVQMW','isElement','getSelectedIdList','40ysVbik','context','firstUpdated','10OJKxBv','delete','getParams','908892jQMVbh','360898vHnHou','querySelector','isPage','32022iLauvr','filterForm','grist','find'];a0_0x3fab=function(){return _0x2b2530;};return a0_0x3fab();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x3146(_0x1838f1,_0x1facdb){const _0x3fab9d=a0_0x3fab();return a0_0x3146=function(_0x31460a,_0xb2750e){_0x31460a=_0x31460a-0x85;let _0x6fef9c=_0x3fab9d[_0x31460a];return _0x6fef9c;},a0_0x3146(_0x1838f1,_0x1facdb);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x50b2b9=>class extends MetaButtonMixin(_0x50b2b9){static get[a0_0x147bac(0xb8)](){const _0x37eed1=a0_0x147bac;return MetaApi[_0x37eed1(0xaa)]();}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_0x147bac(0xa5)](){const _0x2b9452=a0_0x147bac;return this[_0x2b9452(0xb9)]?.[_0x2b9452(0xa1)](this[_0x2b9452(0x8f)]);}get[a0_0x147bac(0xa4)](){const _0x40c13d=a0_0x147bac;return this['shadowRoot']?.[_0x40c13d(0xa1)](this[_0x40c13d(0x8c)]);}get[a0_0x147bac(0x9a)](){const _0x516ed5=a0_0x147bac;return MetaUiUtil[_0x516ed5(0xb2)](this);}async['connectedCallback'](){const _0x58ba66=a0_0x147bac;this[_0x58ba66(0x8f)]=_0x58ba66(0x88),this[_0x58ba66(0x8c)]='ox-filters-form',await this['getAndParseMenuMeta'](),this[_0x58ba66(0x97)]&&await this[_0x58ba66(0x8b)](),super[_0x58ba66(0x90)]&&await super[_0x58ba66(0x90)]();}async['firstUpdated'](){const _0x9a1e8e=a0_0x147bac;super[_0x9a1e8e(0x9b)]&&await super[_0x9a1e8e(0x9b)]();}async['pageInitialized'](){const _0x44fde7=a0_0x147bac;this['isPage']&&await this[_0x44fde7(0x8b)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x147bac(0x85)](){const _0x3dfcfb=a0_0x147bac;return html`
|
|
2
2
|
${MetaApi['getBasicGristHtml'](this)}
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
3
|
+
${this[_0x3dfcfb(0xa2)]?html``:MetaUiUtil['getButtonContainer'](this)}
|
|
4
|
+
`;}[a0_0x147bac(0xa9)](_0x2463eb){const _0x18034f=a0_0x147bac;this[_0x18034f(0xb5)]=_0x2463eb[_0x18034f(0x93)],this[_0x18034f(0x94)]=_0x2463eb[_0x18034f(0xb4)],this[_0x18034f(0xb1)]=_0x2463eb[_0x18034f(0x89)];}async['parseGristConfigs'](){const _0x4c3506=a0_0x147bac;this['gristConfigSet']=await MetaApi[_0x4c3506(0xac)](this);}async['fetch'](){const _0x57ddde=a0_0x147bac;await this[_0x57ddde(0xa5)][_0x57ddde(0xb0)]();}async[a0_0x147bac(0xaf)](){const _0x3be3e6=a0_0x147bac;let _0x31958b=MetaApi['patchesForUpdateMultiple'](this[_0x3be3e6(0xa5)]);!!ValueUtil[_0x3be3e6(0x91)](_0x31958b)&&await this[_0x3be3e6(0xad)](_0x31958b)&&this[_0x3be3e6(0xb0)]();}async[a0_0x147bac(0xa6)](){const _0xe50d3c=a0_0x147bac;let _0x273bd4=MetaApi[_0xe50d3c(0x98)](this['grist'],!0x0);return ValueUtil['isNotEmpty'](_0x273bd4)?await this[_0xe50d3c(0x92)](_0x273bd4[0x0]):{};}async[a0_0x147bac(0x9d)](){const _0x440818=a0_0x147bac;let _0x2cdc90=MetaApi[_0x440818(0x98)](this[_0x440818(0xa5)],!0x0);!!ValueUtil['isNotEmpty'](_0x2cdc90)&&await this[_0x440818(0x8e)](_0x2cdc90)&&this[_0x440818(0xb0)]();}async[a0_0x147bac(0xb6)](){const _0x329da5=a0_0x147bac;let _0xa8935b=TermsUtil[_0x329da5(0x8d)](ValueUtil[_0x329da5(0x9e)](this[_0x329da5(0x86)],_0x329da5(0xa7)));return await MetaApi[_0x329da5(0x87)](this[_0x329da5(0x97)],_0xa8935b,this[_0x329da5(0xa5)]);}async[a0_0x147bac(0xb3)](){}async[a0_0x147bac(0x95)](){const _0x19739c=a0_0x147bac;this[_0x19739c(0xa5)]&&(this[_0x19739c(0xa5)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3b825b=a0_0xb764;(function(_0x58baf1,_0x979895){const _0x3e5a1f=a0_0xb764,_0x74c747=_0x58baf1();while(!![]){try{const _0xe317d4=parseInt(_0x3e5a1f(0x1c7))/0x1*(parseInt(_0x3e5a1f(0x1c4))/0x2)+parseInt(_0x3e5a1f(0x1d0))/0x3+parseInt(_0x3e5a1f(0x1c1))/0x4+-parseInt(_0x3e5a1f(0x1cb))/0x5+parseInt(_0x3e5a1f(0x1bc))/0x6+parseInt(_0x3e5a1f(0x1c2))/0x7+parseInt(_0x3e5a1f(0x1c8))/0x8*(-parseInt(_0x3e5a1f(0x1c3))/0x9);if(_0xe317d4===_0x979895)break;else _0x74c747['push'](_0x74c747['shift']());}catch(_0x312587){_0x74c747['push'](_0x74c747['shift']());}}}(a0_0x2969,0xa22f7));function a0_0xb764(_0xebbfef,_0x330cdf){const _0x29695d=a0_0x2969();return a0_0xb764=function(_0xb76474,_0x5e1c6e){_0xb76474=_0xb76474-0x1bb;let _0x262d6e=_0x29695d[_0xb76474];return _0x262d6e;},a0_0xb764(_0xebbfef,_0x330cdf);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2969(){const _0x2ed5bc=['button','getCustomButtonContainerStyle','58890cpSIOD','import','properties','getCustomButtonContainerStyles','useButtonExport','3058095mcoqUh','gristButtonHandler','getContextButtons','useButtonAdd','2681934IQWJmJ','isButtonExist','getButtonContainer','useButtonImport','buttonConfig','3392124aDMOQj','743736zrqrHR','9hXZsPz','50306bEQQqP','add','customButtonHandler','44zBBPMr','22810208aUGvNT'];a0_0x2969=function(){return _0x2ed5bc;};return a0_0x2969();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x4ae2c2=>class extends MetaServiceMixin(_0x4ae2c2){static get[a0_0x3b825b(0x1cd)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x3b825b(0x1ca)](){const _0x27b5f6=a0_0x3b825b;return MetaUiUtil[_0x27b5f6(0x1ce)]();}[a0_0x3b825b(0x1d2)](){const _0x417128=a0_0x3b825b;return MetaUiUtil[_0x417128(0x1d2)](this);}[a0_0x3b825b(0x1be)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async['getBasicButtonHandler'](_0xa570db,_0x25027d,_0x57f9ff){return await MetaUiUtil['getButtonActionHandler'](this,_0xa570db,_0x25027d,_0x57f9ff);}async[a0_0x3b825b(0x1c6)](_0xce43e3){await MetaUiUtil['customButtonHandler'](this,_0xce43e3);}async[a0_0x3b825b(0x1d1)](_0xb7b54d,_0x5427e0){const _0x16337d=a0_0x3b825b;await MetaUiUtil[_0x16337d(0x1d1)](this,_0xb7b54d,_0x5427e0);}['parseBasicButtonConfigs'](_0x2e2f5f){const _0x3627e7=a0_0x3b825b;this[_0x3627e7(0x1c0)]=_0x2e2f5f[_0x3627e7(0x1c9)],this[_0x3627e7(0x1bf)]=MetaUiUtil[_0x3627e7(0x1bd)](this[_0x3627e7(0x1c0)],_0x3627e7(0x1cc)),this[_0x3627e7(0x1cf)]=MetaUiUtil['isButtonExist'](this[_0x3627e7(0x1c0)],'export'),this[_0x3627e7(0x1bb)]=MetaUiUtil[_0x3627e7(0x1bd)](this['buttonConfig'],_0x3627e7(0x1c5));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x135409=a0_0x341a;(function(_0x328b6e,_0x55750c){const _0x65103=a0_0x341a,_0x2744f0=_0x328b6e();while(!![]){try{const _0xc25020=-parseInt(_0x65103(0xcb))/0x1*(parseInt(_0x65103(0xc1))/0x2)+-parseInt(_0x65103(0xc7))/0x3*(-parseInt(_0x65103(0xe4))/0x4)+parseInt(_0x65103(0xa6))/0x5+parseInt(_0x65103(0xeb))/0x6*(-parseInt(_0x65103(0xe7))/0x7)+-parseInt(_0x65103(0xb4))/0x8+parseInt(_0x65103(0xd3))/0x9+parseInt(_0x65103(0xd8))/0xa;if(_0xc25020===_0x55750c)break;else _0x2744f0['push'](_0x2744f0['shift']());}catch(_0x10845c){_0x2744f0['push'](_0x2744f0['shift']());}}}(a0_0x22e6,0x782fe));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x341a(_0x386f6b,_0x9226d3){const _0x22e637=a0_0x22e6();return a0_0x341a=function(_0x341a11,_0x57c244){_0x341a11=_0x341a11-0xa5;let _0x36b4a4=_0x22e637[_0x341a11];return _0x36b4a4;},a0_0x341a(_0x386f6b,_0x9226d3);}function a0_0x22e6(){const _0x2e656a=['properties','target','formRenderConfig','call','record','config','getBasicFormHtml','title.info','startsWith','Escape','5617472qlKkqV','after','render','isEquals','currentTarget','button','patchData','getAndParseMenuMeta','orgData','click','currentData','grid_column','removeGarbageData','1209174HMZkkT','formConfigSet','removeAttribute','showAlertPopup','getContextObject','cuFlag','3CGXoNT','editable','parent_id','__dirty__','1xCQBoh','parseFormConfigs','true','name','save','before','isElement','addEventListener','4991553JpTzcU','getBasicFormStyles','clear','pageInitialized','__origin__','2612250JHntIc','parseBasicFormConfigs','text.NOTHING_CHANGED','firstUpdated','column','context','dirtyData','key','OX-GRID-FIELD','connectedCallback','__dirtyfields__','map','3213436wYTazC','entries','formColumnConfig','28YZlGCT','form','focus','updateMultiple','1154226MdlQuX','Enter','parseFormConfigSet','isEmpty','fetch','isPage','4746700CavAtq','field-change','keydown','editing'];a0_0x22e6=function(){return _0x2e656a;};return a0_0x22e6();}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x430b2d=>class extends MetaButtonMixin(_0x430b2d){static get['styles'](){const _0x227e89=a0_0x341a;return MetaApi[_0x227e89(0xd4)]();}static get[a0_0x135409(0xaa)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x135409(0xdd)](){const _0x26e35f=a0_0x135409;return MetaUiUtil[_0x26e35f(0xc5)](this);}async['connectedCallback'](){const _0x683654=a0_0x135409;if(this['config']){let {column:_0x3a0e0d=0x1}=this[_0x683654(0xaf)];this['column']=_0x3a0e0d;}await this[_0x683654(0xbb)](),this[_0x683654(0xd1)]&&await this['parseFormConfigs'](),super[_0x683654(0xe1)]&&await super[_0x683654(0xe1)](),this[_0x683654(0xd1)]&&await this[_0x683654(0xef)](),this['renderRoot'][_0x683654(0xd2)](_0x683654(0xa8),_0x2ec696=>{const _0x521fbf=_0x683654;switch(_0x2ec696[_0x521fbf(0xdf)]){case'Esc':case _0x521fbf(0xb3):case _0x521fbf(0xec):this[_0x521fbf(0xe9)](),this['currentTarget']&&this[_0x521fbf(0xb8)][_0x521fbf(0xc3)](_0x521fbf(0xa9)),this[_0x521fbf(0xb8)]=null;}}),this['renderRoot']['addEventListener'](_0x683654(0xbd),_0x3d836f=>{const _0x33e93e=_0x683654;_0x3d836f['stopPropagation']();let _0x4bdf05=_0x3d836f[_0x33e93e(0xab)];if(this[_0x33e93e(0xb8)]&&(this['focus'](),this[_0x33e93e(0xb8)]['removeAttribute'](_0x33e93e(0xa9))),_0x33e93e(0xe0)!==_0x4bdf05['tagName']||!_0x4bdf05[_0x33e93e(0xdc)][_0x33e93e(0xae)][_0x33e93e(0xc8)])return this[_0x33e93e(0xe9)](),void(this['currentTarget']=null);this[_0x33e93e(0xb8)]=_0x4bdf05,_0x4bdf05['setAttribute']('editing',_0x33e93e(0xcd));}),this[_0x683654(0xd2)](_0x683654(0xa7),_0x261ed0=>{const _0x5b7602=_0x683654;var {after:_0x28cfc1,before:_0x26970c,column:_0x6b5053,record:_0x2e858,row:_0x36596f}=_0x261ed0['detail'];if(ValueUtil[_0x5b7602(0xb7)](_0x28cfc1,_0x26970c))return;var _0x4cd38a=_0x6b5053['validation'];if(_0x4cd38a&&'function'==typeof _0x4cd38a&&!_0x4cd38a[_0x5b7602(0xad)](this,_0x28cfc1,_0x26970c,_0x2e858,_0x6b5053))return;let _0x379017=_0x6b5053['name'];_0x2e858[_0x379017]=_0x28cfc1,_0x2e858[_0x5b7602(0xe2)]=_0x2e858['__dirtyfields__']||{},_0x2e858['__dirtyfields__'][_0x379017]={'before':_0x2e858[_0x5b7602(0xd7)][_0x379017],'after':_0x2e858[_0x379017]},ValueUtil[_0x5b7602(0xb7)](_0x2e858[_0x5b7602(0xe2)][_0x379017][_0x5b7602(0xd0)],_0x2e858['__dirtyfields__'][_0x379017][_0x5b7602(0xb5)])&&delete _0x2e858[_0x5b7602(0xe2)][_0x379017],ValueUtil['isNotEmpty'](_0x2e858[_0x5b7602(0xe2)])?_0x2e858[_0x5b7602(0xca)]='M':_0x2e858[_0x5b7602(0xca)]='',this[_0x5b7602(0xae)]={..._0x2e858};});}async['firstUpdated'](){const _0x195f90=a0_0x135409;super[_0x195f90(0xdb)]&&await super[_0x195f90(0xdb)]();}async['pageInitialized'](){const _0x3e7870=a0_0x135409;this[_0x3e7870(0xa5)]&&await this[_0x3e7870(0xcc)](),super['pageInitialized']&&await super[_0x3e7870(0xd6)](),this[_0x3e7870(0xa5)]&&await this[_0x3e7870(0xef)]();}[a0_0x135409(0xb6)](){const _0x703623=a0_0x135409;return MetaApi[_0x703623(0xb0)](this);}[a0_0x135409(0xd9)](_0xa9f052){const _0x3d0e49=a0_0x135409;this[_0x3d0e49(0xe6)]=_0xa9f052[_0x3d0e49(0xbf)],this[_0x3d0e49(0xac)]=_0xa9f052[_0x3d0e49(0xe8)],_0xa9f052[_0x3d0e49(0xb9)]=_0xa9f052[_0x3d0e49(0xb9)]['filter'](_0x3afda5=>'save'==_0x3afda5[_0x3d0e49(0xce)]);}async[a0_0x135409(0xcc)](){const _0x153616=a0_0x135409;this[_0x153616(0xc2)]=await MetaApi[_0x153616(0xed)](this);}get[a0_0x135409(0xbc)](){const _0x33ce52=a0_0x135409;return this[_0x33ce52(0xc0)](this[_0x33ce52(0xae)][_0x33ce52(0xd7)]);}get[a0_0x135409(0xde)](){const _0x4a74e8=a0_0x135409;if(ValueUtil['isEmpty'](this[_0x4a74e8(0xae)]['__dirtyfields__']))return{};let _0xd8f6e0={};return Object[_0x4a74e8(0xe5)](this['record'][_0x4a74e8(0xe2)])[_0x4a74e8(0xe3)](([_0x50a29e,_0x5c3b92])=>{const _0x982318=_0x4a74e8;0x0==_0x50a29e[_0x982318(0xb2)]('__')&&(_0xd8f6e0[_0x50a29e]=_0x5c3b92[_0x982318(0xb5)]);}),_0xd8f6e0;}get[a0_0x135409(0xbe)](){const _0x55e361=a0_0x135409;return this[_0x55e361(0xc0)](this[_0x55e361(0xae)]);}['removeGarbageData'](_0x1f9fde){const _0x48202e=a0_0x135409;let _0x39178a={};return Object[_0x48202e(0xe5)](_0x1f9fde)['map'](([_0x10c5ca,_0x3bc54b])=>{const _0x1aa4dd=_0x48202e;0x0==_0x10c5ca[_0x1aa4dd(0xb2)]('__')&&(_0x39178a[_0x10c5ca]=_0x3bc54b);}),_0x39178a;}get[a0_0x135409(0xba)](){const _0x528ef3=a0_0x135409;let _0x4452f4=this['dirtyData'],_0x57da3c=this[_0x528ef3(0xae)];return ValueUtil[_0x528ef3(0xee)](_0x4452f4)?{}:(ValueUtil['isNotEmpty'](_0x57da3c['id'])?(_0x4452f4['id']=_0x57da3c['id'],_0x4452f4[_0x528ef3(0xc6)]='M'):_0x4452f4[_0x528ef3(0xc6)]='+',[_0x4452f4]);}async[a0_0x135409(0xef)](){const _0x2bb074=a0_0x135409;if(ValueUtil[_0x2bb074(0xee)](this[_0x2bb074(0xc9)]))return;let _0x11153d=await this['findOne'](this[_0x2bb074(0xc9)]);_0x11153d['__seq__']=0x1;let _0x175097={};Object['assign'](_0x175097,_0x11153d),_0x11153d[_0x2bb074(0xd7)]=_0x175097,this['record']={..._0x11153d};}async[a0_0x135409(0xcf)](){const _0x11c4a1=a0_0x135409;let _0x58de4d=this[_0x11c4a1(0xba)];if(ValueUtil['isEmpty'](_0x58de4d))return void MetaApi[_0x11c4a1(0xc4)](_0x11c4a1(0xb1),_0x11c4a1(0xda));let _0x141d03=await this[_0x11c4a1(0xea)](_0x58de4d);return _0x141d03&&await this[_0x11c4a1(0xef)](),_0x141d03;}async[a0_0x135409(0xd5)](){const _0x78137e=a0_0x135409;this[_0x78137e(0xae)]&&(this[_0x78137e(0xae)]={});}};
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
${0x0==this[_0x4e2c3c(0xb7)]?html``:html`
|
|
3
|
-
<div slot="headroom">
|
|
4
|
-
<div id="filters">
|
|
5
|
-
<ox-filters-form-base
|
|
6
|
-
id='ox-filters-form'
|
|
7
|
-
.filters=${this[_0x4e2c3c(0x9e)]||[]}
|
|
8
|
-
@filters-change=${_0x1b08a0=>{const _0x562509=_0x4e2c3c;this[_0x562509(0xb4)]?.[_0x562509(0x7e)]();}}
|
|
9
|
-
></ox-filters-form-base>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
`}
|
|
13
|
-
<div id="container" class="container" style="${_0x5117b6}">
|
|
14
|
-
<div class="container_detail">
|
|
15
|
-
${MetaApi[_0x4e2c3c(0x99)](this)}
|
|
16
|
-
${MetaUiUtil[_0x4e2c3c(0x9c)](this)}
|
|
17
|
-
</div>
|
|
18
|
-
<div class="container_detail">
|
|
19
|
-
<meta-tab-element id="detail" route_name="${_0x20049c}" is_detail=true></meta-tab-element>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
`;}[a0_0x130a7b(0x8b)](_0xa313b){const _0x243306=a0_0x130a7b;this[_0x243306(0xa8)]=_0xa313b[_0x243306(0x95)],this['gridColumnConfig']=_0xa313b[_0x243306(0x88)],this['searchConfig']=_0xa313b[_0x243306(0xb1)];}async[a0_0x130a7b(0x93)](){const _0x22cdf4=a0_0x130a7b;this['gristConfigSet']=await MetaApi[_0x22cdf4(0xa6)](this),this['useMasterFilterForm']=this[_0x22cdf4(0x90)],this[_0x22cdf4(0x90)]=!0x1,this[_0x22cdf4(0x9e)]=this[_0x22cdf4(0xb0)][_0x22cdf4(0x84)][_0x22cdf4(0xa0)](_0x222cf0=>_0x222cf0[_0x22cdf4(0xa0)])[_0x22cdf4(0xb6)](_0x52231e=>{const _0x2fb460=_0x22cdf4;let _0x36a662={'name':_0x52231e[_0x2fb460(0xad)],'type':_0x52231e[_0x2fb460(0x86)],'label':_0x52231e[_0x2fb460(0xa5)],'operator':_0x52231e[_0x2fb460(0xa0)][_0x2fb460(0x92)]?_0x52231e[_0x2fb460(0xa0)][_0x2fb460(0x92)]:'eq'};return _0x52231e['record']['options']&&(_0x36a662[_0x2fb460(0x80)]=_0x52231e[_0x2fb460(0xb5)][_0x2fb460(0x80)]),_0x36a662;});}async[a0_0x130a7b(0x7e)](){const _0x2d9d21=a0_0x130a7b;await this[_0x2d9d21(0xb4)][_0x2d9d21(0x7e)]();}async[a0_0x130a7b(0xb3)]({page:_0x433c90=0x0,limit:_0x44f386=0x0,sortings:_0x420a62=[],filters:_0x5cc814=[]}){const _0xb80353=a0_0x130a7b;let _0x6afd7d=this[_0xb80353(0xc7)]['querySelector'](_0xb80353(0x8c));return await _0x6afd7d[_0xb80353(0xba)](),!0x0;}async[a0_0x130a7b(0xaa)](){const _0x5dd2ef=a0_0x130a7b;let _0x4177c3=MetaApi[_0x5dd2ef(0x9f)](this[_0x5dd2ef(0xb4)]);!!ValueUtil[_0x5dd2ef(0x7f)](_0x4177c3)&&await this[_0x5dd2ef(0xc9)](_0x4177c3)&&this[_0x5dd2ef(0x7e)]();}async[a0_0x130a7b(0xac)](){const _0x4b6696=a0_0x130a7b;let _0x3f3c82=MetaApi[_0x4b6696(0xb8)](this['grist'],!0x0);return ValueUtil['isNotEmpty'](_0x3f3c82)?await this[_0x4b6696(0xc3)](_0x3f3c82[0x0]):{};}async['delete'](){const _0x3b8fd4=a0_0x130a7b;let _0x467d4c=MetaApi[_0x3b8fd4(0xb8)](this[_0x3b8fd4(0xb4)],!0x0);!!ValueUtil[_0x3b8fd4(0x7f)](_0x467d4c)&&await this[_0x3b8fd4(0xbe)](_0x467d4c)&&this[_0x3b8fd4(0x7e)]();}async[a0_0x130a7b(0x83)](){const _0x560e30=a0_0x130a7b;let _0x50292f=TermsUtil['tTitle'](ValueUtil[_0x560e30(0xab)](this[_0x560e30(0xb9)],_0x560e30(0xa7)));return await MetaApi[_0x560e30(0xc0)](this[_0x560e30(0x9a)],_0x50292f,this[_0x560e30(0xb4)]);}async['import'](){}};
|
|
1
|
+
const a0_0x4a9969=a0_0x1066;(function(_0x1dcef1,_0x2b0d64){const _0x2e9197=a0_0x1066,_0x45fccb=_0x1dcef1();while(!![]){try{const _0x56e152=parseInt(_0x2e9197(0x1f1))/0x1*(parseInt(_0x2e9197(0x1c1))/0x2)+parseInt(_0x2e9197(0x1d1))/0x3+parseInt(_0x2e9197(0x1cc))/0x4*(parseInt(_0x2e9197(0x1f8))/0x5)+-parseInt(_0x2e9197(0x1d3))/0x6*(-parseInt(_0x2e9197(0x1e5))/0x7)+parseInt(_0x2e9197(0x1ed))/0x8+-parseInt(_0x2e9197(0x1e1))/0x9*(parseInt(_0x2e9197(0x1e7))/0xa)+parseInt(_0x2e9197(0x1bf))/0xb*(-parseInt(_0x2e9197(0x1d2))/0xc);if(_0x56e152===_0x2b0d64)break;else _0x45fccb['push'](_0x45fccb['shift']());}catch(_0x3d6bb9){_0x45fccb['push'](_0x45fccb['shift']());}}}(a0_0x37e3,0x4dd26));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x1066(_0x3fdfb6,_0x401dc0){const _0x37e316=a0_0x37e3();return a0_0x1066=function(_0x106694,_0xbddbc9){_0x106694=_0x106694-0x1bd;let _0x1e9128=_0x37e316[_0x106694];return _0x1e9128;},a0_0x1066(_0x3fdfb6,_0x401dc0);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x37e3(){const _0x4d2336=['useMasterFilterForm','exportable','searchFields','549bZTtRw','parseGristConfigs','header','firstUpdated','7BJTvTv','type','4820CbwEBO','menuInfo','parseGridConfigSet','filterFormId','updateMultiple','connectedCallback','4414608wemcVc','ox-filters-form-base','save','isNotEmpty','538657JrkoKk','getContextObject','getSelectedIdList','beforeFetch','actions','parseBasicGridConfigs','exportableData','8815OIAmck','getParams','useFilterForm','fetch','121KIREyo','record','2ThQgzq','filter','renderRoot','findOne','getAndParseMenuMeta','grid_column','deleteByIds','ox-grist','clear','grist','delete','1196OBMFXc','shadowRoot','export','options','pageInitialized','1090491JhhLNF','1924080RxIOuz','784698xJIbGu','find','gristConfigSet','isElement','querySelector','gridConfig','tTitle','getGristTabHtml','importable','gristId','name'];a0_0x37e3=function(){return _0x4d2336;};return a0_0x37e3();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x162ed5=>class extends MetaButtonMixin(_0x162ed5){static get['styles'](){return MetaApi['getBasicGristTabStyles']();}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_0x4a9969(0x1ca)](){const _0x247dbd=a0_0x4a9969;return this['renderRoot'][_0x247dbd(0x1d7)](this[_0x247dbd(0x1dc)]);}get['filterForm'](){const _0xe7d339=a0_0x4a9969;return this[_0xe7d339(0x1cd)]?.[_0xe7d339(0x1d7)](this[_0xe7d339(0x1ea)]);}get['context'](){const _0x2198a7=a0_0x4a9969;let _0x55f495=MetaUiUtil[_0x2198a7(0x1f2)](this);return _0x55f495[_0x2198a7(0x1f5)]&&delete _0x55f495[_0x2198a7(0x1f5)],_0x55f495[_0x2198a7(0x1df)]&&delete _0x55f495[_0x2198a7(0x1df)],_0x55f495['importable']&&delete _0x55f495[_0x2198a7(0x1db)],_0x55f495;}async[a0_0x4a9969(0x1ec)](){const _0x4ae334=a0_0x4a9969;this[_0x4ae334(0x1dc)]=_0x4ae334(0x1c8),this['filterFormId']=_0x4ae334(0x1ee),await this[_0x4ae334(0x1c5)](),this[_0x4ae334(0x1d6)]&&await this[_0x4ae334(0x1e2)](),super['connectedCallback']&&await super[_0x4ae334(0x1ec)]();}async['firstUpdated'](){const _0x5503ae=a0_0x4a9969;super[_0x5503ae(0x1e4)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x4aee33=a0_0x4a9969;this['isPage']&&await this[_0x4aee33(0x1e2)](),super[_0x4aee33(0x1d0)]&&await super[_0x4aee33(0x1d0)]();}['render'](){const _0x281417=a0_0x4a9969;return MetaApi[_0x281417(0x1da)](this);}[a0_0x4a9969(0x1f6)](_0x572111){const _0x5b0e4d=a0_0x4a9969;this[_0x5b0e4d(0x1d8)]=_0x572111['grid'],this['gridColumnConfig']=_0x572111[_0x5b0e4d(0x1c6)],this['searchConfig']=_0x572111['search'];}async[a0_0x4a9969(0x1e2)](){const _0x1f60c3=a0_0x4a9969;this[_0x1f60c3(0x1d5)]=await MetaApi[_0x1f60c3(0x1e9)](this),this[_0x1f60c3(0x1de)]=this[_0x1f60c3(0x1bd)],this[_0x1f60c3(0x1bd)]=!0x1,this[_0x1f60c3(0x1e0)]=this[_0x1f60c3(0x1d5)]['columns'][_0x1f60c3(0x1c2)](_0x21cde7=>_0x21cde7[_0x1f60c3(0x1c2)])['map'](_0x1f3e12=>{const _0xed72d=_0x1f60c3;let _0x10af3c={'name':_0x1f3e12[_0xed72d(0x1dd)],'type':_0x1f3e12[_0xed72d(0x1e6)],'label':_0x1f3e12[_0xed72d(0x1e3)],'operator':_0x1f3e12['filter']['operator']?_0x1f3e12[_0xed72d(0x1c2)]['operator']:'eq'};return _0x1f3e12[_0xed72d(0x1c0)][_0xed72d(0x1cf)]&&(_0x10af3c[_0xed72d(0x1cf)]=_0x1f3e12[_0xed72d(0x1c0)][_0xed72d(0x1cf)]),_0x10af3c;});}async[a0_0x4a9969(0x1be)](){const _0x1380d5=a0_0x4a9969;await this[_0x1380d5(0x1ca)][_0x1380d5(0x1be)]();}async[a0_0x4a9969(0x1f4)]({page:_0x538b3e=0x0,limit:_0x4ad2a9=0x0,sortings:_0x2c3f20=[],filters:_0x1a152f=[]}){const _0x545786=a0_0x4a9969;let _0x4a6781=this[_0x545786(0x1c3)][_0x545786(0x1d7)]('meta-tab-element');return await _0x4a6781[_0x545786(0x1c9)](),!0x0;}async[a0_0x4a9969(0x1ef)](){const _0x3f4eb2=a0_0x4a9969;let _0x5d1290=MetaApi['patchesForUpdateMultiple'](this[_0x3f4eb2(0x1ca)]);!!ValueUtil[_0x3f4eb2(0x1f0)](_0x5d1290)&&await this[_0x3f4eb2(0x1eb)](_0x5d1290)&&this[_0x3f4eb2(0x1be)]();}async[a0_0x4a9969(0x1d4)](){const _0x122f85=a0_0x4a9969;let _0x38b5b1=MetaApi[_0x122f85(0x1f3)](this['grist'],!0x0);return ValueUtil[_0x122f85(0x1f0)](_0x38b5b1)?await this[_0x122f85(0x1c4)](_0x38b5b1[0x0]):{};}async[a0_0x4a9969(0x1cb)](){const _0x41692f=a0_0x4a9969;let _0x58c7ad=MetaApi[_0x41692f(0x1f3)](this[_0x41692f(0x1ca)],!0x0);!!ValueUtil[_0x41692f(0x1f0)](_0x58c7ad)&&await this[_0x41692f(0x1c7)](_0x58c7ad)&&this['fetch']();}async[a0_0x4a9969(0x1ce)](){const _0x1f3f0c=a0_0x4a9969;let _0x32fc57=TermsUtil[_0x1f3f0c(0x1d9)](ValueUtil[_0x1f3f0c(0x1f9)](this[_0x1f3f0c(0x1e8)],'title'));return await MetaApi[_0x1f3f0c(0x1f7)](this['isElement'],_0x32fc57,this[_0x1f3f0c(0x1ca)]);}async['import'](){}};
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
${0x0==this[_0x3f1414(0x20b)]?html``:html`
|
|
3
|
-
<div slot="headroom">
|
|
4
|
-
<div id="filters">
|
|
5
|
-
<ox-filters-form-base
|
|
6
|
-
id='ox-filters-form'
|
|
7
|
-
.filters=${this[_0x3f1414(0x21c)]||[]}
|
|
8
|
-
@filters-change=${_0xbaf29=>{const _0x37f7f2=_0x3f1414;this[_0x37f7f2(0x211)]?.[_0x37f7f2(0x1d7)]();}}
|
|
9
|
-
></ox-filters-form-base>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
`}
|
|
13
|
-
<div id="container" class="container" style="${_0x5eb2dc}">
|
|
14
|
-
<div class="container_detail">
|
|
15
|
-
${MetaApi[_0x3f1414(0x1cf)](this)}
|
|
16
|
-
${MetaUiUtil[_0x3f1414(0x1f5)](this)}
|
|
17
|
-
</div>
|
|
18
|
-
<div class="container_detail">
|
|
19
|
-
${''==_0x3021fc[_0x3f1414(0x1f4)]||''==_0x3021fc[_0x3f1414(0x1f4)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](''+_0x3021fc[_0x3f1414(0x1d6)])}</h2>`}
|
|
20
|
-
${this[_0x3f1414(0x214)]}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
`;}[a0_0x37d283(0x213)](_0x13a2bc){const _0x286902=a0_0x37d283;if(!this['detailElement']){let _0x4bd90d=_0x13a2bc[_0x286902(0x1ec)]?_0x13a2bc[_0x286902(0x1ec)]:_0x286902(0x1e6),_0x552c34='<'+_0x13a2bc['tagname']+'\x20id=\x22'+_0x4bd90d+_0x286902(0x1e3)+_0x4bd90d+'\x22\x20route_name=\x22'+_0x13a2bc[_0x286902(0x20a)]+'\x22\x20is_detail=true\x20style=\x22flex:1;\x22></'+_0x13a2bc['tagname']+'>';this['detailElement']=UiUtil[_0x286902(0x1d1)](_0x552c34);}}[a0_0x37d283(0x1df)](_0x240a3e){const _0x27e016=a0_0x37d283;this['gridConfig']=_0x240a3e['grid'],this[_0x27e016(0x215)]=_0x240a3e[_0x27e016(0x205)],this[_0x27e016(0x1d4)]=_0x240a3e[_0x27e016(0x1db)];}async['parseGristConfigs'](){const _0x488c1e=a0_0x37d283;this[_0x488c1e(0x1f0)]=await MetaApi[_0x488c1e(0x1fa)](this),this['useMasterFilterForm']=this[_0x488c1e(0x1f2)],this[_0x488c1e(0x1f2)]=!0x1,this[_0x488c1e(0x21c)]=this['gristConfigSet'][_0x488c1e(0x1e8)][_0x488c1e(0x1d2)](_0x576288=>_0x576288['filter'])[_0x488c1e(0x1dc)](_0x5ad66f=>{const _0x28e84c=_0x488c1e;let _0x1d00d9={'name':_0x5ad66f[_0x28e84c(0x1ec)],'type':_0x5ad66f['type'],'label':_0x5ad66f[_0x28e84c(0x20c)],'operator':_0x5ad66f[_0x28e84c(0x1d2)]['operator']?_0x5ad66f[_0x28e84c(0x1d2)][_0x28e84c(0x217)]:'eq'};return _0x5ad66f[_0x28e84c(0x200)]['options']&&(_0x1d00d9[_0x28e84c(0x1eb)]=_0x5ad66f[_0x28e84c(0x200)][_0x28e84c(0x1eb)]),_0x1d00d9;});}async[a0_0x37d283(0x1d7)](){const _0x49c4e7=a0_0x37d283;await this[_0x49c4e7(0x211)][_0x49c4e7(0x1d7)]();}async['beforeFetch']({page:_0x14930e=0x0,limit:_0x5068ba=0x0,sortings:_0x596876=[],filters:_0x46d068=[]}){const _0x58e1cf=a0_0x37d283;return this[_0x58e1cf(0x214)]&&this[_0x58e1cf(0x214)][_0x58e1cf(0x1ef)]&&await this[_0x58e1cf(0x214)][_0x58e1cf(0x1ef)](),!0x0;}async[a0_0x37d283(0x1e7)](){const _0x3ee25e=a0_0x37d283;let _0x33c81f=MetaApi[_0x3ee25e(0x1e2)](this[_0x3ee25e(0x211)]);!!ValueUtil[_0x3ee25e(0x1ee)](_0x33c81f)&&await this['updateMultiple'](_0x33c81f)&&this[_0x3ee25e(0x1d7)]();}async[a0_0x37d283(0x219)](){const _0x2c84fc=a0_0x37d283;let _0x30ad6b=MetaApi[_0x2c84fc(0x1de)](this[_0x2c84fc(0x211)],!0x0);return ValueUtil['isNotEmpty'](_0x30ad6b)?await this[_0x2c84fc(0x1f7)](_0x30ad6b[0x0]):{};}async['delete'](){const _0x54031b=a0_0x37d283;let _0x236c3a=MetaApi[_0x54031b(0x1de)](this[_0x54031b(0x211)],!0x0);!!ValueUtil['isNotEmpty'](_0x236c3a)&&await this[_0x54031b(0x1ea)](_0x236c3a)&&this[_0x54031b(0x1d7)]();}async['export'](){const _0x3dcf7e=a0_0x37d283;let _0x242e5a=TermsUtil[_0x3dcf7e(0x1fe)](ValueUtil['getParams'](this['menuInfo'],_0x3dcf7e(0x1d8)));return await MetaApi[_0x3dcf7e(0x206)](this['isElement'],_0x242e5a,this[_0x3dcf7e(0x211)]);}async[a0_0x37d283(0x1e5)](){}};
|
|
1
|
+
const a0_0x324673=a0_0x2427;function a0_0x499e(){const _0x3edba8=['title','save','393673WdYBwq','properties','find','tTitle','grist','\x22\x20name=\x22','render','138008sLCUZl','firstUpdated','searchFields','480996ZTRisV','getMasterDetailHtml','renderRoot','exportableData','import','\x20id=\x22','exportable','4142jlApVF','parseGristConfigs','name','218895TmwWdq','filter','grid','context','patchesForUpdateMultiple','htmlToElement','getParams','columns','findOne','options','\x22\x20is_detail=true\x20style=\x22flex:1;\x22></','gristId','export','type','306036bjAoob','gridConfig','isNotEmpty','createDetailElement','isElement','searchConfig','routing','deleteByIds','connectedCallback','ox-grist','parseBasicGridConfigs','parseGridConfigSet','818968OtzUEe','filterFormId','gridColumnConfig','getAndParseMenuMeta','detailElement','fetch','useMasterFilterForm','getBasicMasterDetailStyles','useFilterForm','shadowRoot','6FQwQTR','6lwEiMg','actions','getSelectedIdList','record','operator','grid_column','tagname','pageInitialized','querySelector','menuInfo','ox-filters-form-base','header','clear'];a0_0x499e=function(){return _0x3edba8;};return a0_0x499e();}(function(_0x51078d,_0x3d3f5a){const _0x3866f6=a0_0x2427,_0x46ab88=_0x51078d();while(!![]){try{const _0x347823=parseInt(_0x3866f6(0x1a3))/0x1*(parseInt(_0x3866f6(0x1c3))/0x2)+parseInt(_0x3866f6(0x1bc))/0x3+-parseInt(_0x3866f6(0x1b9))/0x4+-parseInt(_0x3866f6(0x1c6))/0x5*(parseInt(_0x3866f6(0x1a2))/0x6)+-parseInt(_0x3866f6(0x1b2))/0x7+parseInt(_0x3866f6(0x198))/0x8+-parseInt(_0x3866f6(0x18c))/0x9;if(_0x347823===_0x3d3f5a)break;else _0x46ab88['push'](_0x46ab88['shift']());}catch(_0x3f4c45){_0x46ab88['push'](_0x46ab88['shift']());}}}(a0_0x499e,0x1a06d));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_0x2427(_0xf08683,_0x36782b){const _0x499ef0=a0_0x499e();return a0_0x2427=function(_0x242786,_0x223431){_0x242786=_0x242786-0x183;let _0x106564=_0x499ef0[_0x242786];return _0x106564;},a0_0x2427(_0xf08683,_0x36782b);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x3f6162=>class extends MetaButtonMixin(_0x3f6162){static get['styles'](){const _0x8bd22e=a0_0x2427;return MetaApi[_0x8bd22e(0x19f)]();}static get[a0_0x324673(0x1b3)](){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_0x324673(0x1b6)](){const _0x51ce8f=a0_0x324673;return this[_0x51ce8f(0x1be)][_0x51ce8f(0x1ab)](this['gristId']);}get['filterForm'](){const _0x324dcf=a0_0x324673;return this[_0x324dcf(0x1a1)]?.[_0x324dcf(0x1ab)](this[_0x324dcf(0x199)]);}get[a0_0x324673(0x1c9)](){const _0x522395=a0_0x324673;let _0x35dfe7=MetaUiUtil['getContextObject'](this);return _0x35dfe7[_0x522395(0x1a4)]&&delete _0x35dfe7[_0x522395(0x1a4)],_0x35dfe7[_0x522395(0x1c2)]&&delete _0x35dfe7[_0x522395(0x1c2)],_0x35dfe7['importable']&&delete _0x35dfe7['importable'],_0x35dfe7;}async[a0_0x324673(0x194)](){const _0x1f0c5c=a0_0x324673;this[_0x1f0c5c(0x189)]=_0x1f0c5c(0x195),this[_0x1f0c5c(0x199)]=_0x1f0c5c(0x1ad),await this[_0x1f0c5c(0x19b)](),this[_0x1f0c5c(0x190)]&&await this[_0x1f0c5c(0x1c4)](),super[_0x1f0c5c(0x194)]&&await super[_0x1f0c5c(0x194)]();}async[a0_0x324673(0x1ba)](){const _0x1e9345=a0_0x324673;super[_0x1e9345(0x1ba)]&&await super[_0x1e9345(0x1ba)]();}async[a0_0x324673(0x1aa)](){const _0x16b94e=a0_0x324673;this['isPage']&&await this[_0x16b94e(0x1c4)](),super[_0x16b94e(0x1aa)]&&await super[_0x16b94e(0x1aa)]();}[a0_0x324673(0x1b8)](){const _0x43eaa6=a0_0x324673;return MetaApi[_0x43eaa6(0x1bd)](this);}[a0_0x324673(0x18f)](_0x10983f){const _0x4ecaeb=a0_0x324673;if(!this['detailElement']){let _0x3f4f97=_0x10983f['name']?_0x10983f[_0x4ecaeb(0x1c5)]:'detail',_0x9ef482='<'+_0x10983f['tagname']+_0x4ecaeb(0x1c1)+_0x3f4f97+_0x4ecaeb(0x1b7)+_0x3f4f97+'\x22\x20route_name=\x22'+_0x10983f[_0x4ecaeb(0x192)]+_0x4ecaeb(0x188)+_0x10983f[_0x4ecaeb(0x1a9)]+'>';this['detailElement']=UiUtil[_0x4ecaeb(0x183)](_0x9ef482);}}[a0_0x324673(0x196)](_0x3ee664){const _0x35bd3a=a0_0x324673;this[_0x35bd3a(0x18d)]=_0x3ee664[_0x35bd3a(0x1c8)],this[_0x35bd3a(0x19a)]=_0x3ee664[_0x35bd3a(0x1a8)],this[_0x35bd3a(0x191)]=_0x3ee664['search'];}async[a0_0x324673(0x1c4)](){const _0x51034c=a0_0x324673;this['gristConfigSet']=await MetaApi[_0x51034c(0x197)](this),this[_0x51034c(0x19e)]=this[_0x51034c(0x1a0)],this[_0x51034c(0x1a0)]=!0x1,this[_0x51034c(0x1bb)]=this['gristConfigSet'][_0x51034c(0x185)]['filter'](_0x45ef43=>_0x45ef43[_0x51034c(0x1c7)])['map'](_0x2de4c6=>{const _0x5dacaf=_0x51034c;let _0x47946e={'name':_0x2de4c6[_0x5dacaf(0x1c5)],'type':_0x2de4c6[_0x5dacaf(0x18b)],'label':_0x2de4c6[_0x5dacaf(0x1ae)],'operator':_0x2de4c6['filter'][_0x5dacaf(0x1a7)]?_0x2de4c6[_0x5dacaf(0x1c7)][_0x5dacaf(0x1a7)]:'eq'};return _0x2de4c6[_0x5dacaf(0x1a6)][_0x5dacaf(0x187)]&&(_0x47946e['options']=_0x2de4c6['record']['options']),_0x47946e;});}async['fetch'](){const _0x580a96=a0_0x324673;await this['grist'][_0x580a96(0x19d)]();}async['beforeFetch']({page:_0x5f43fc=0x0,limit:_0x378c7f=0x0,sortings:_0xf37565=[],filters:_0x9e9a0a=[]}){const _0x510faa=a0_0x324673;return this[_0x510faa(0x19c)]&&this[_0x510faa(0x19c)]['clear']&&await this[_0x510faa(0x19c)][_0x510faa(0x1af)](),!0x0;}async[a0_0x324673(0x1b1)](){const _0x3e76f7=a0_0x324673;let _0x518af0=MetaApi[_0x3e76f7(0x1ca)](this[_0x3e76f7(0x1b6)]);!!ValueUtil[_0x3e76f7(0x18e)](_0x518af0)&&await this['updateMultiple'](_0x518af0)&&this[_0x3e76f7(0x19d)]();}async[a0_0x324673(0x1b4)](){const _0x1f4912=a0_0x324673;let _0x4ef3e3=MetaApi[_0x1f4912(0x1a5)](this[_0x1f4912(0x1b6)],!0x0);return ValueUtil[_0x1f4912(0x18e)](_0x4ef3e3)?await this[_0x1f4912(0x186)](_0x4ef3e3[0x0]):{};}async['delete'](){const _0x3e9435=a0_0x324673;let _0x572ad1=MetaApi[_0x3e9435(0x1a5)](this[_0x3e9435(0x1b6)],!0x0);!!ValueUtil[_0x3e9435(0x18e)](_0x572ad1)&&await this[_0x3e9435(0x193)](_0x572ad1)&&this[_0x3e9435(0x19d)]();}async[a0_0x324673(0x18a)](){const _0x57f171=a0_0x324673;let _0x3c7cdc=TermsUtil[_0x57f171(0x1b5)](ValueUtil[_0x57f171(0x184)](this[_0x57f171(0x1ac)],_0x57f171(0x1b0)));return await MetaApi[_0x57f171(0x1bf)](this[_0x57f171(0x190)],_0x3c7cdc,this[_0x57f171(0x1b6)]);}async[a0_0x324673(0x1c0)](){}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5d0c5d=a0_0x4bb0;function a0_0x4bb0(_0x339304,_0x185f4e){const _0x508be3=a0_0x508b();return a0_0x4bb0=function(_0x4bb0e8,_0x3b8de4){_0x4bb0e8=_0x4bb0e8-0x79;let _0x14ad0a=_0x508be3[_0x4bb0e8];return _0x14ad0a;},a0_0x4bb0(_0x339304,_0x185f4e);}(function(_0x418e78,_0x563378){const _0x330a9f=a0_0x4bb0,_0x34f07b=_0x418e78();while(!![]){try{const _0x336cdc=-parseInt(_0x330a9f(0x8b))/0x1*(-parseInt(_0x330a9f(0x9f))/0x2)+parseInt(_0x330a9f(0x8a))/0x3+parseInt(_0x330a9f(0xaf))/0x4+parseInt(_0x330a9f(0x86))/0x5+-parseInt(_0x330a9f(0x7e))/0x6*(parseInt(_0x330a9f(0xad))/0x7)+parseInt(_0x330a9f(0x8f))/0x8+parseInt(_0x330a9f(0x82))/0x9*(-parseInt(_0x330a9f(0x7c))/0xa);if(_0x336cdc===_0x563378)break;else _0x34f07b['push'](_0x34f07b['shift']());}catch(_0x231a67){_0x34f07b['push'](_0x34f07b['shift']());}}}(a0_0x508b,0x63c9d));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=_0x219feb=>class extends MetaBaseMixin(_0x219feb){static get['properties'](){return{'gqlInfo':Object};}[a0_0x5d0c5d(0xa5)](_0x513beb){const _0x19e51f=a0_0x5d0c5d;this[_0x19e51f(0x9b)]=_0x513beb[_0x19e51f(0x8d)];}async[a0_0x5d0c5d(0xab)]({page:_0xfe8071=0x0,limit:_0x5bae4a=0x0,sortings:_0x2d4723=[],filters:_0x409f2c=[]}){const _0x42551b=a0_0x5d0c5d;if(this[_0x42551b(0xb0)]&&0x0==await this[_0x42551b(0xb0)]({'page':_0xfe8071,'limit':_0x5bae4a,'sortings':_0x2d4723,'filters':_0x409f2c}))return;if(!this[_0x42551b(0xa2)])return{'total':0x0,'records':[]};let _0x5cb284=ValueUtil[_0x42551b(0x8e)](_0x409f2c)?await this[_0x42551b(0x9e)]?.['getQueryFilters']()||[]:_0x409f2c,_0x701825=ValueUtil['getParams'](this['gqlInfo'],_0x42551b(0x9c),_0x42551b(0x7f)),_0x5d3248=ValueUtil[_0x42551b(0x85)](this[_0x42551b(0x9b)],_0x42551b(0x9c),_0x42551b(0xa0)),_0x3f45c6=ValueUtil[_0x42551b(0x85)](this[_0x42551b(0x9b)],'query',_0x42551b(0x7b));if(ValueUtil[_0x42551b(0xaa)](_0x5d3248)&&(_0x5cb284=adjustFilters(_0x5cb284,_0x5d3248)),_0x5cb284[_0x42551b(0x8c)](...this[_0x42551b(0x7d)]()),this[_0x42551b(0xa4)]){let _0x4fd5a0=ValueUtil[_0x42551b(0x85)](this[_0x42551b(0x9b)],_0x42551b(0x9c),_0x42551b(0x92));ValueUtil[_0x42551b(0xaa)](_0x4fd5a0)&&ValueUtil[_0x42551b(0xaa)](this['parent_id'])&&(_0x5cb284=adjustFilters(_0x5cb284,[{'name':_0x4fd5a0,'operator':'eq','value':this[_0x42551b(0x92)]}]));}let _0x3cce8f=Object['keys'](_0x3f45c6||{}),_0x153fbe=MetaApi[_0x42551b(0x7a)](this[_0x42551b(0xa2)][_0x42551b(0xa6)][_0x42551b(0xa1)](_0x3e5e08=>!_0x3cce8f[_0x42551b(0x96)](_0x3e5e08[_0x42551b(0x83)]))),_0x31d423=await MetaApi[_0x42551b(0xae)](_0x701825,_0x5cb284,_0x2d4723,_0xfe8071,_0x5bae4a,_0x153fbe);if(this[_0x42551b(0x88)]){let _0x49b766=await this['afterFetch']({'page':_0xfe8071,'limit':_0x5bae4a,'sortings':_0x2d4723,'filters':_0x409f2c},_0x31d423);if(_0x49b766)return _0x49b766;}return ValueUtil[_0x42551b(0xaa)](_0x3f45c6)&&ValueUtil[_0x42551b(0xaa)](_0x31d423)&&ValueUtil[_0x42551b(0xaa)](_0x31d423[_0x42551b(0x9a)])&&_0x31d423[_0x42551b(0x9a)][_0x42551b(0x81)](_0x397f21=>(_0x3cce8f['forEach'](_0x549b20=>{const _0x28d91f=_0x42551b;_0x397f21[_0x549b20]=ValueUtil[_0x28d91f(0x85)](_0x397f21,..._0x3f45c6[_0x549b20][_0x28d91f(0xa9)]('.'));}),_0x397f21)),_0x31d423;}[a0_0x5d0c5d(0x7d)](){const _0x4918fb=a0_0x5d0c5d;if(0x0==this[_0x4918fb(0x97)])return[];let _0x18aeb0=this['lifecycle']?.[_0x4918fb(0x99)]?this[_0x4918fb(0x94)][_0x4918fb(0x99)]:{};if(!_0x18aeb0[_0x4918fb(0xb1)])return[];let _0xc1c43f=_0x18aeb0[_0x4918fb(0xb1)],_0x76a071=JSON[_0x4918fb(0x9d)](_0xc1c43f),_0x2f67a8=0x1==_0x76a071[_0x4918fb(0x98)]?'eq':'in',_0x74900b={},_0x5177d7=[];return Object[_0x4918fb(0xa8)](_0x76a071[0x0])[_0x4918fb(0xac)](_0x2f83a1=>{_0x74900b[_0x2f83a1]={'name':_0x2f83a1,'operator':_0x2f67a8,'value':'eq'===_0x2f67a8?_0x76a071[0x0][_0x2f83a1]:[]};}),_0x76a071[_0x4918fb(0x98)]>0x1&&_0x76a071[_0x4918fb(0xac)](_0x101655=>{const _0xb31755=_0x4918fb;Object[_0xb31755(0xa8)](_0x101655)['forEach'](_0x5ea029=>{const _0x3ecff4=_0xb31755;_0x74900b[_0x5ea029][_0x3ecff4(0x90)][_0x3ecff4(0x8c)](_0x101655[_0x5ea029]);});}),Object[_0x4918fb(0xa8)](_0x74900b)[_0x4918fb(0xac)](_0x29fb6a=>{const _0x53fb08=_0x4918fb;_0x5177d7[_0x53fb08(0x8c)](_0x74900b[_0x29fb6a]);}),_0x5177d7;}async[a0_0x5d0c5d(0xa7)](_0x483b30){const _0x28fdea=a0_0x5d0c5d;let _0xbdfc2=ValueUtil[_0x28fdea(0x85)](this[_0x28fdea(0x9b)],_0x28fdea(0x9c),_0x28fdea(0x79)),_0x3494f0=ValueUtil[_0x28fdea(0x85)](this[_0x28fdea(0x9b)],_0x28fdea(0x9c),_0x28fdea(0x7b)),_0x23c6d4=Object[_0x28fdea(0xa8)](_0x3494f0||{}),_0x96b9be=MetaApi[_0x28fdea(0x7a)]((this[_0x28fdea(0xa2)]?this[_0x28fdea(0xa2)]:{'columns':this[_0x28fdea(0x91)]})[_0x28fdea(0xa6)]['filter'](_0xa4cffe=>!_0x23c6d4['includes'](_0xa4cffe['name']))),_0x16f152=await MetaApi['findOne'](_0xbdfc2,_0x483b30,_0x96b9be);return ValueUtil[_0x28fdea(0xaa)](_0x3494f0)&&ValueUtil[_0x28fdea(0xaa)](_0x16f152)&&_0x23c6d4['forEach'](_0x1ba7fb=>{const _0x424ecc=_0x28fdea;_0x16f152[_0x1ba7fb]=ValueUtil[_0x424ecc(0x85)](_0x16f152,..._0x3494f0[_0x1ba7fb][_0x424ecc(0xa9)]('.'));}),_0x16f152;}async['deleteByIds'](_0x4b0fcf){const _0x13d1fd=a0_0x5d0c5d;let _0x2bc39e=ValueUtil['getParams'](this[_0x13d1fd(0x9b)],_0x13d1fd(0x89),_0x13d1fd(0x93),_0x13d1fd(0x87));return await MetaApi[_0x13d1fd(0x80)](_0x4b0fcf,_0x2bc39e);}async['updateMultiple'](_0x46232c){const _0x1e60f2=a0_0x5d0c5d;let _0x2960d8=ValueUtil[_0x1e60f2(0x85)](this[_0x1e60f2(0x9b)],_0x1e60f2(0x89),'multiple',_0x1e60f2(0x87)),_0x160551=ValueUtil[_0x1e60f2(0x85)](this[_0x1e60f2(0x9b)],'mutation',_0x1e60f2(0xa3),'skip_fields');if(ValueUtil['isNotEmpty'](_0x160551)&&(_0x160551=_0x160551[_0x1e60f2(0x81)](_0x5d6c5a=>_0x5d6c5a['includes']('.')?_0x5d6c5a[_0x1e60f2(0xa9)]('.'):_0x5d6c5a),_0x46232c=_0x46232c[_0x1e60f2(0x81)](_0x411cc4=>(_0x160551[_0x1e60f2(0xac)](_0x40bd45=>{const _0x5ca614=_0x1e60f2;Array[_0x5ca614(0x95)](_0x40bd45)?delete _0x411cc4[_0x40bd45[0x0]][_0x40bd45[0x1]]:delete _0x411cc4[_0x40bd45];}),_0x411cc4))),this['isElement']&&ValueUtil['isNotEmpty'](this['parent_id'])){let _0x150b00=ValueUtil[_0x1e60f2(0x85)](this[_0x1e60f2(0x9b)],_0x1e60f2(0x89),_0x1e60f2(0xa3),_0x1e60f2(0x92));ValueUtil[_0x1e60f2(0xaa)](_0x150b00)&&_0x46232c[_0x1e60f2(0xac)](_0x9cef9b=>{const _0x3b7b2b=_0x1e60f2;if(_0x150b00[_0x3b7b2b(0x96)]('.')){let _0x24bc70=_0x150b00[_0x3b7b2b(0xa9)]('.');_0x9cef9b[_0x24bc70[0x0]]={},_0x9cef9b[_0x24bc70[0x0]][_0x24bc70[0x1]]=this['parent_id'];}else _0x9cef9b[_0x150b00]=this[_0x3b7b2b(0x92)];});}return await MetaApi[_0x1e60f2(0x84)](_0x2960d8,_0x46232c);}};function a0_0x508b(){const _0x331cb5=['gqlInfo','query','parse','filterForm','4MBwaTs','filters','filter','gristConfigSet','multiple','isElement','parseBasicServiceConfigs','columns','findOne','keys','split','isNotEmpty','fetchHandler','forEach','14BkcUxL','searchByPagination','2032428kYFjxj','beforeFetch','pass','find_one_func','getSelectColumns','after_set_fields','10BQBAbu','getPageNavigateParams','1590558iRzfvr','list_func','deleteListByIds','map','17772390mMoPCh','name','updateMultiple','getParams','3536345QQFAXC','func','afterFetch','mutation','672270BRNpwK','353597pbdaQt','push','gql','isEmpty','6135752XaTArw','value','formConfigSet','parent_id','delete','lifecycle','isArray','includes','isPage','length','params','records'];a0_0x508b=function(){return _0x331cb5;};return a0_0x508b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x445f4f=a0_0x2a29;(function(_0x3742fb,_0x44b462){const _0x5b6851=a0_0x2a29,_0x2b1d01=_0x3742fb();while(!![]){try{const _0x25bf46=parseInt(_0x5b6851(0xe2))/0x1+parseInt(_0x5b6851(0xdf))/0x2*(-parseInt(_0x5b6851(0xcd))/0x3)+parseInt(_0x5b6851(0xcb))/0x4+parseInt(_0x5b6851(0xe1))/0x5*(-parseInt(_0x5b6851(0xd3))/0x6)+-parseInt(_0x5b6851(0xd5))/0x7*(parseInt(_0x5b6851(0xd1))/0x8)+-parseInt(_0x5b6851(0xcc))/0x9+parseInt(_0x5b6851(0xe3))/0xa;if(_0x25bf46===_0x44b462)break;else _0x2b1d01['push'](_0x2b1d01['shift']());}catch(_0x148e05){_0x2b1d01['push'](_0x2b1d01['shift']());}}}(a0_0x5216,0xa0627));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2a29(_0x51feab,_0x4e0d83){const _0x5216ef=a0_0x5216();return a0_0x2a29=function(_0x2a2954,_0xeab610){_0x2a2954=_0x2a2954-0xca;let _0x4e5b80=_0x5216ef[_0x2a2954];return _0x4e5b80;},a0_0x2a29(_0x51feab,_0x4e0d83);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x2068b6=>class extends MetaButtonMixin(_0x2068b6){static get[a0_0x445f4f(0xd0)](){return MetaApi['getBasicTabStyles']();}static get[a0_0x445f4f(0xde)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x445f4f(0xca)](){const _0x55d705=a0_0x445f4f;return MetaUiUtil[_0x55d705(0xe4)](this);}async['connectedCallback'](){const _0x4e701e=a0_0x445f4f;this[_0x4e701e(0xdb)]=void 0x0,await this['getAndParseMenuMeta'](),super['connectedCallback']&&await super[_0x4e701e(0xd4)]();}async['firstUpdated'](){const _0x489878=a0_0x445f4f;super[_0x489878(0xdc)]&&await super['firstUpdated']();}async[a0_0x445f4f(0xd2)](){const _0x267259=a0_0x445f4f;super[_0x267259(0xd2)]&&await super[_0x267259(0xd2)]();}[a0_0x445f4f(0xd8)](){const _0x4e0309=a0_0x445f4f;return MetaApi[_0x4e0309(0xcf)](this);}[a0_0x445f4f(0xdd)](_0x4a13db){const _0x31319c=a0_0x445f4f;this['tabRenderConfig']=_0x4a13db[_0x31319c(0xd6)],_0x4a13db[_0x31319c(0xd9)]=[];}async[a0_0x445f4f(0xe0)](){const _0x1a13b8=a0_0x445f4f;if(this['tabElements']){let _0x118c3c=Object[_0x1a13b8(0xda)](this[_0x1a13b8(0xce)]);for(var _0x36d8cd=0x0;_0x36d8cd<_0x118c3c[_0x1a13b8(0xd7)];_0x36d8cd++)await this['tabElements'][_0x118c3c[_0x36d8cd]][_0x1a13b8(0xe0)]();}}};function a0_0x5216(){const _0x4242cd=['pageInitialized','402eEDaoL','connectedCallback','727328GyAmnK','tab','length','render','button','keys','currentTabKey','firstUpdated','parseBasicTabConfigs','properties','9646IOzDWu','clear','50945aqTULX','74987dAccIj','29263670NQitGl','getContextObject','context','4089404xGXDUg','10267686hIRiZU','249FINMNa','tabElements','getBasicTabHtml','styles','88JUegaY'];a0_0x5216=function(){return _0x4242cd;};return a0_0x5216();}
|