@things-factory/meta-ui 6.0.99 → 6.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/index.js +3 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -0
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -0
- package/client/pages/meta-tab-detail-page.js +1 -0
- 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 +152 -84
- 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 +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x248fcf=a0_0x3dbf;(function(_0x238996,_0x2fa541){const _0x5c3827=a0_0x3dbf,_0x318480=_0x238996();while(!![]){try{const _0x2006ef=-parseInt(_0x5c3827(0xca))/0x1*(-parseInt(_0x5c3827(0xc2))/0x2)+-parseInt(_0x5c3827(0xd4))/0x3*(-parseInt(_0x5c3827(0xc5))/0x4)+parseInt(_0x5c3827(0xc8))/0x5*(parseInt(_0x5c3827(0xb9))/0x6)+parseInt(_0x5c3827(0xd1))/0x7*(parseInt(_0x5c3827(0xc4))/0x8)+parseInt(_0x5c3827(0xbd))/0x9*(parseInt(_0x5c3827(0xc7))/0xa)+parseInt(_0x5c3827(0xb7))/0xb*(parseInt(_0x5c3827(0xce))/0xc)+-parseInt(_0x5c3827(0xbf))/0xd;if(_0x2006ef===_0x2fa541)break;else _0x318480['push'](_0x318480['shift']());}catch(_0x5487ef){_0x318480['push'](_0x318480['shift']());}}}(a0_0x3f0a,0x2ffb4));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x2fca94 from'graphql-tag';import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';function a0_0x3dbf(_0x57112c,_0x188020){const _0x3f0ab1=a0_0x3f0a();return a0_0x3dbf=function(_0x3dbfbe,_0x4057db){_0x3dbfbe=_0x3dbfbe-0xb7;let _0xf081c1=_0x3f0ab1[_0x3dbfbe];return _0xf081c1;},a0_0x3dbf(_0x57112c,_0x188020);}import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x248fcf(0xc1);export const UPDATE_META_MENU_TEMPLATE='UPDATE_META_MENU_TEMPLATE';var HAMBURGER;function a0_0x3f0a(){const _0x9cdf21=['11268rKwVkC','FRONT_END','content','7oOnnNM','data','hamburger','6dfUdIo','appName','dynamic-menu-part','2772qGjOQM','lite-menu-part','402GLwdTq','active','portrait','rank','48609mtOFOl','meta[name=\x22application-name\x22]','16649581uhEBLf','filter','UPDATE_META_UI','40hmzyqw','query','1451048kKyJRo','57836rKjhvj','liteMenus','710ejInON','20665bokuAj','querySelector','18498xXSeHe','HEADERBAR','dispatch','landscape'];a0_0x3f0a=function(){return _0x9cdf21;};return a0_0x3f0a();}export async function setupMenuPart(_0x2834a0){const _0x14fb13=a0_0x248fcf;var {hovering:_0x715f2e=!!isMobileDevice(),slotTemplate:_0x23a7cb,portraitSlotTemplate:_0x4f91dd,landscapeSlotTemplate:_0x3d2a3e,position:_0x4b680e=VIEWPART_POSITION['NAVBAR']}=_0x2834a0||{};const {hovering:_0x37f50f}=(await clientSettingStore['get']('dynamic-menu'))?.['value']||{};void 0x0!==_0x37f50f&&(_0x715f2e=_0x37f50f);const _0x3517a8=_0x4b680e==VIEWPART_POSITION[_0x14fb13(0xcb)]?_0x14fb13(0xcd):_0x14fb13(0xbb),_0x46ed78=('landscape'==_0x3517a8?_0x3d2a3e:_0x4f91dd)||_0x23a7cb||html``;appendViewpart({'name':_0x14fb13(0xb8),'viewpart':{'show':!_0x715f2e,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x715f2e,'template':html`<dynamic-menu-part .orientation=${_0x3517a8}>${_0x46ed78}</dynamic-menu-part>`},'position':_0x4b680e}),_0x715f2e&&_0x14fb13(0xbb)==_0x3517a8?HAMBURGER||(HAMBURGER={'name':'hamburger','template':html`
|
|
2
|
+
<mwc-icon @click=${_0x4d869e=>toggleOverlay(_0x14fb13(0xd6),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x14fb13(0xcf)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x14fb13(0xcc)]({'type':REMOVE_APP_TOOL,'name':_0x14fb13(0xd3)}),HAMBURGER=null);}export async function updateMenuTemplate(_0xb4fc37){const _0x23b867=a0_0x248fcf;var _0x2c1787=document[_0x23b867(0xc9)](_0x23b867(0xbe))?.[_0x23b867(0xd0)],_0x77b000=(await client[_0x23b867(0xc3)]({'query':a0_0x2fca94`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ function a0_0x3179(){const _0x1c91a7=['rank','dynamic-menu-part','liteMenus','3v
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x23b867(0xba),'operator':'eq','value':!0x0},{'name':_0x23b867(0xd5),'operator':'in','value':['',_0x2c1787]}],'sortings':[{'name':_0x23b867(0xbc),'desc':!0x1}]}}))[_0x23b867(0xd2)][_0x23b867(0xc6)]['items'];store['dispatch']({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x77b000[_0x23b867(0xc0)](_0x4eaad5=>!_0x4eaad5['appName']||_0x4eaad5[_0x23b867(0xd5)]===_0x2c1787),'template':_0xb4fc37});}
|
package/client/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export * from './mixin/meta-basic-grist-mixin'
|
|
|
18
18
|
export * from './mixin/meta-form-mixin'
|
|
19
19
|
export * from './mixin/meta-tab-mixin'
|
|
20
20
|
export * from './mixin/meta-grist-tab-mixin'
|
|
21
|
+
export * from './mixin/meta-tab-detail-mixin'
|
|
21
22
|
|
|
22
23
|
/** Page **/
|
|
23
24
|
export * from './pages/meta-form-element'
|
|
@@ -28,3 +29,5 @@ export * from './pages/meta-grist-tab-page'
|
|
|
28
29
|
export * from './pages/meta-master-detail-element'
|
|
29
30
|
export * from './pages/meta-master-detail-page'
|
|
30
31
|
export * from './pages/meta-tab-element'
|
|
32
|
+
export * from './pages/meta-tab-detail-element'
|
|
33
|
+
export * from './pages/meta-tab-detail-page'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x143e4d=a0_0x57a2;function a0_0x57a2(_0x1083cc,_0x25c38d){const _0x146e00=a0_0x146e();return a0_0x57a2=function(_0x57a256,_0x49dd2d){_0x57a256=_0x57a256-0x184;let _0x3b4229=_0x146e00[_0x57a256];return _0x3b4229;},a0_0x57a2(_0x1083cc,_0x25c38d);}(function(_0xc659bb,_0x507f7e){const _0x55eb6c=a0_0x57a2,_0x297c02=_0xc659bb();while(!![]){try{const _0x5958d9=parseInt(_0x55eb6c(0x196))/0x1+parseInt(_0x55eb6c(0x1aa))/0x2*(parseInt(_0x55eb6c(0x1a9))/0x3)+parseInt(_0x55eb6c(0x188))/0x4+parseInt(_0x55eb6c(0x1ac))/0x5*(-parseInt(_0x55eb6c(0x1a4))/0x6)+parseInt(_0x55eb6c(0x184))/0x7+parseInt(_0x55eb6c(0x187))/0x8+-parseInt(_0x55eb6c(0x19a))/0x9*(parseInt(_0x55eb6c(0x19d))/0xa);if(_0x5958d9===_0x507f7e)break;else _0x297c02['push'](_0x297c02['shift']());}catch(_0x514b7c){_0x297c02['push'](_0x297c02['shift']());}}}(a0_0x146e,0xb52e7));import{MetaApi}from'./../utils/meta-api';function a0_0x146e(){const _0x10bf20=['14959053OIHdZp','params','getAndParseMenuMeta','10kDLTJx','title','is_popup','getParams','isPage','isPopup','parseBasicButtonConfigs','255498dSQEBR','after','parseBasicFormConfigs','title_detail','pageUpdated','12GEREZp','680462lHXSFo','setParentId','125pTlwOI','parseBasicServiceConfigs','6274002apQenV','callScenario','isEmpty','9167904kReVTk','81844INxPNy','excuteOpenPopupButtonClick','parseBasicTabConfigs','fetchHandler','is_detail','name','active','menuInfo','split','grist','filterForm','isDetail','isNotEmpty','lifecycle','45152KSERcc','properties','parent_id','etcConfig'];a0_0x146e=function(){return _0x10bf20;};return a0_0x146e();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x271f73=>class extends _0x271f73{static get[a0_0x143e4d(0x197)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x176464=>Boolean(_0x176464)},'is_popup':{'type':Boolean,'converter':_0x4b54c4=>Boolean(_0x4b54c4)},'is_activity':{'type':Boolean,'converter':_0x3ae3af=>Boolean(_0x3ae3af)},'is_readonly':{'type':Boolean,'converter':_0x3f60d4=>Boolean(_0x3f60d4)}};}get['isElement'](){const _0x8f9655=a0_0x143e4d;return!0x0===this['is_detail']||!0x0===this[_0x8f9655(0x19f)];}get[a0_0x143e4d(0x193)](){const _0x2454a0=a0_0x143e4d;return!ValueUtil[_0x2454a0(0x186)](this[_0x2454a0(0x18c)])&&this[_0x2454a0(0x18c)];}async[a0_0x143e4d(0x1a8)](_0x25397e,_0x3b7b3c,_0x5cd9b1){const _0x414db8=a0_0x143e4d;let _0x23c7c5=this[_0x414db8(0x195)]?.[_0x414db8(0x19b)]?this[_0x414db8(0x195)]['params']:{};this['isPage']&&this['active']&&0x0==_0x5cd9b1[_0x414db8(0x18e)]&&ValueUtil[_0x414db8(0x194)](_0x23c7c5)&&this['fetch']();}get[a0_0x143e4d(0x1a2)](){const _0x33d45f=a0_0x143e4d;return!ValueUtil[_0x33d45f(0x186)](this['is_popup'])&&this[_0x33d45f(0x19f)];}get[a0_0x143e4d(0x1a1)](){const _0x49eee9=a0_0x143e4d;return!this[_0x49eee9(0x18c)]&&!this[_0x49eee9(0x19f)];}async[a0_0x143e4d(0x19c)](){const _0x40d2ed=a0_0x143e4d;let _0x26bc43=await MetaApi['getMenuMeta'](this);_0x26bc43&&(this[_0x40d2ed(0x18f)]=_0x26bc43['menu'],this[_0x40d2ed(0x199)]=_0x26bc43['etc'],this['parseBasicGridConfigs']&&this['parseBasicGridConfigs'](_0x26bc43),this['parseBasicServiceConfigs']&&this[_0x40d2ed(0x1ad)](_0x26bc43),this[_0x40d2ed(0x1a6)]&&this['parseBasicFormConfigs'](_0x26bc43),this[_0x40d2ed(0x18a)]&&this[_0x40d2ed(0x18a)](_0x26bc43),this[_0x40d2ed(0x1a3)]&&this[_0x40d2ed(0x1a3)](_0x26bc43));}async['fetch'](){const _0x2b3256=a0_0x143e4d;ValueUtil[_0x2b3256(0x194)](this[_0x2b3256(0x191)])?this[_0x2b3256(0x191)]['fetch']():(ValueUtil[_0x2b3256(0x194)](this[_0x2b3256(0x192)])||this[_0x2b3256(0x18b)])&&await this[_0x2b3256(0x18b)]();}async[a0_0x143e4d(0x189)](_0x1e6e99,_0x15d7ed,_0x4a25b5){const _0x44ccf8=a0_0x143e4d;let _0x478ebe=TermsUtil['tTitle'](_0x1e6e99[_0x44ccf8(0x19e)]);ValueUtil[_0x44ccf8(0x194)](_0x1e6e99[_0x44ccf8(0x1a7)])&&(_0x478ebe=_0x478ebe+'-'+ValueUtil[_0x44ccf8(0x1a0)](_0x15d7ed,..._0x1e6e99[_0x44ccf8(0x1a7)][_0x44ccf8(0x190)]('.'))),MetaApi['openDynamicPopup'](_0x478ebe,_0x1e6e99,_0x15d7ed,_0x4a25b5);}async['executeCallScenarioButtonClick'](_0x4ebeca,_0x1e0bbb,_0x519df3){const _0x27bd7e=a0_0x143e4d;let _0x4b1c8f=await MetaApi[_0x27bd7e(0x185)](_0x4ebeca[_0x27bd7e(0x18d)],_0x4ebeca[_0x27bd7e(0x18d)],_0x1e0bbb);!0x1!==_0x4b1c8f&&!_0x4b1c8f['errors']&&ValueUtil[_0x27bd7e(0x194)](_0x4ebeca[_0x27bd7e(0x1a5)])&&_0x519df3();}[a0_0x143e4d(0x1ab)](_0x1a3f99){const _0x37852c=a0_0x143e4d;this[_0x37852c(0x198)]=_0x1a3f99,this['fetch']();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x5b3ab9=a0_0x43d3;(function(_0x569674,_0x3f65c2){const _0x53f797=a0_0x43d3,_0x4b1d35=_0x569674();while(!![]){try{const _0xbb584c=-parseInt(_0x53f797(0x11e))/0x1+-parseInt(_0x53f797(0x119))/0x2*(parseInt(_0x53f797(0x125))/0x3)+parseInt(_0x53f797(0x141))/0x4*(-parseInt(_0x53f797(0x146))/0x5)+-parseInt(_0x53f797(0x151))/0x6+-parseInt(_0x53f797(0x136))/0x7*(parseInt(_0x53f797(0x150))/0x8)+-parseInt(_0x53f797(0x11b))/0x9+parseInt(_0x53f797(0x148))/0xa*(parseInt(_0x53f797(0x142))/0xb);if(_0xbb584c===_0x3f65c2)break;else _0x4b1d35['push'](_0x4b1d35['shift']());}catch(_0x371705){_0x4b1d35['push'](_0x4b1d35['shift']());}}}(a0_0x815e,0x8a10d));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x43d3(_0x510701,_0xf91666){const _0x815ec6=a0_0x815e();return a0_0x43d3=function(_0x43d321,_0x24ab1d){_0x43d321=_0x43d321-0x116;let _0x4fb0bb=_0x815ec6[_0x43d321];return _0x4fb0bb;},a0_0x43d3(_0x510701,_0xf91666);}function a0_0x815e(){const _0x241660=['menuInfo','updateMultiple','168535tKhoWC','render','forEach','getContextObject','import','getButtonContainer','find','704703aFRwWU','patchesForUpdateMultiple','fetch','getParams','firstUpdated','connectedCallback','___data','gristId','parseBasicGridConfigs','styles','gridColumnConfig','isNotEmpty','filterFormId','renderRoot','isPage','startsWith','parse','109858jSxzbg','parseGridConfigSet','context','keys','clear','search','querySelector','getData','properties','dataSet','findOne','24FUDuym','385wpSXIN','filterForm','title','exportableData','725225boGkYX','ox-grist','1007330YciwAM','isElement','getBasicGristStyles','stringify','getAndParseMenuMeta','pageInitialized','parseGristConfigs','grist','328EFNoCS','2437224iYLprf','grid_column','activityDataSet','searchConfig','6GyMhQY','getSelectedIdList','1502748IGSGsb'];a0_0x815e=function(){return _0x241660;};return a0_0x815e();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x5bfd2b=>class extends MetaButtonMixin(_0x5bfd2b){static get[a0_0x5b3ab9(0x12e)](){const _0x181ca5=a0_0x5b3ab9;return MetaApi[_0x181ca5(0x14a)]();}static get[a0_0x5b3ab9(0x13e)](){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_0x5b3ab9(0x14f)](){const _0x4d90c1=a0_0x5b3ab9;return this[_0x4d90c1(0x132)]?.[_0x4d90c1(0x13c)](this[_0x4d90c1(0x12c)]);}get[a0_0x5b3ab9(0x143)](){const _0x4fb98f=a0_0x5b3ab9;return this['shadowRoot']?.[_0x4fb98f(0x13c)](this[_0x4fb98f(0x131)]);}get[a0_0x5b3ab9(0x138)](){const _0x539e1a=a0_0x5b3ab9;return MetaUiUtil[_0x539e1a(0x121)](this);}async[a0_0x5b3ab9(0x12a)](){const _0x254b3f=a0_0x5b3ab9;this['gristId']=_0x254b3f(0x147),this[_0x254b3f(0x131)]='ox-filters-form',await this[_0x254b3f(0x14c)](),this['isElement']&&await this[_0x254b3f(0x14e)](),this[_0x254b3f(0x117)]&&(this[_0x254b3f(0x13f)]=this['activityDataSet']),super['connectedCallback']&&await super[_0x254b3f(0x12a)]();}async[a0_0x5b3ab9(0x129)](){const _0x28b2ec=a0_0x5b3ab9;super[_0x28b2ec(0x129)]&&await super[_0x28b2ec(0x129)]();}async['pageInitialized'](){const _0x415c7b=a0_0x5b3ab9;this[_0x415c7b(0x133)]&&await this['parseGristConfigs'](),super[_0x415c7b(0x14d)]&&await super[_0x415c7b(0x14d)]();}[a0_0x5b3ab9(0x11f)](){const _0x4eae36=a0_0x5b3ab9;return html`
|
|
2
|
+
${MetaApi['getBasicGristHtml'](this)}
|
|
3
|
+
${this[_0x4eae36(0x133)]?html``:MetaUiUtil[_0x4eae36(0x123)](this)}
|
|
4
|
+
`;}[a0_0x5b3ab9(0x12d)](_0x6552f4){const _0xeac584=a0_0x5b3ab9;this['gridConfig']=_0x6552f4['grid'],this[_0xeac584(0x12f)]=_0x6552f4[_0xeac584(0x116)],this[_0xeac584(0x118)]=_0x6552f4[_0xeac584(0x13b)];}async[a0_0x5b3ab9(0x14e)](){const _0x1be76d=a0_0x5b3ab9;this['gristConfigSet']=await MetaApi[_0x1be76d(0x137)](this);}async[a0_0x5b3ab9(0x127)](){const _0x49130c=a0_0x5b3ab9;await this['grist'][_0x49130c(0x127)]();}async['save'](){const _0x5232d2=a0_0x5b3ab9;let _0x3febe1=MetaApi[_0x5232d2(0x126)](this[_0x5232d2(0x14f)]);!!ValueUtil[_0x5232d2(0x130)](_0x3febe1)&&await this[_0x5232d2(0x11d)](_0x3febe1)&&this[_0x5232d2(0x127)]();}async[a0_0x5b3ab9(0x124)](){const _0x1cd9d5=a0_0x5b3ab9;let _0x2b0f64=MetaApi['getSelectedIdList'](this[_0x1cd9d5(0x14f)],!0x0);return ValueUtil[_0x1cd9d5(0x130)](_0x2b0f64)?await this[_0x1cd9d5(0x140)](_0x2b0f64[0x0]):{};}async['delete'](){const _0x4c56e7=a0_0x5b3ab9;let _0x422513=MetaApi[_0x4c56e7(0x11a)](this[_0x4c56e7(0x14f)],!0x0);!!ValueUtil[_0x4c56e7(0x130)](_0x422513)&&await this['deleteByIds'](_0x422513)&&this[_0x4c56e7(0x127)]();}async['export'](){const _0x23da26=a0_0x5b3ab9;let _0x3b56f3=TermsUtil['tTitle'](ValueUtil[_0x23da26(0x128)](this[_0x23da26(0x11c)],_0x23da26(0x144)));return await MetaApi[_0x23da26(0x145)](this[_0x23da26(0x149)],_0x3b56f3,this[_0x23da26(0x14f)]);}async[a0_0x5b3ab9(0x122)](){}async[a0_0x5b3ab9(0x13a)](){const _0x3cb228=a0_0x5b3ab9;this[_0x3cb228(0x14f)]&&(this['grist']['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x5b3ab9(0x13d)](){const _0x36e8f2=a0_0x5b3ab9;let _0x295522=this['grist'][_0x36e8f2(0x12b)]['records'];return _0x295522=JSON[_0x36e8f2(0x135)](JSON[_0x36e8f2(0x14b)](_0x295522)),_0x295522[_0x36e8f2(0x120)](_0x488228=>{const _0x4aacab=_0x36e8f2;Object[_0x4aacab(0x139)](_0x488228)[_0x4aacab(0x120)](_0x52b0b2=>{const _0x5f4101=_0x4aacab;_0x52b0b2[_0x5f4101(0x134)]('__')&&delete _0x488228[_0x52b0b2];});}),_0x295522;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xe70b90=a0_0x2705;(function(_0x3064a9,_0x102b93){const _0x12ce96=a0_0x2705,_0x3f43f6=_0x3064a9();while(!![]){try{const _0x39f27a=-parseInt(_0x12ce96(0x203))/0x1+parseInt(_0x12ce96(0x1f4))/0x2+-parseInt(_0x12ce96(0x1ff))/0x3*(parseInt(_0x12ce96(0x1fe))/0x4)+-parseInt(_0x12ce96(0x206))/0x5+parseInt(_0x12ce96(0x1f8))/0x6*(-parseInt(_0x12ce96(0x201))/0x7)+-parseInt(_0x12ce96(0x1f7))/0x8*(parseInt(_0x12ce96(0x1eb))/0x9)+parseInt(_0x12ce96(0x1f0))/0xa*(parseInt(_0x12ce96(0x1fd))/0xb);if(_0x39f27a===_0x102b93)break;else _0x3f43f6['push'](_0x3f43f6['shift']());}catch(_0x3b5a2d){_0x3f43f6['push'](_0x3f43f6['shift']());}}}(a0_0x12a6,0x48443));function a0_0x2705(_0x3f16dc,_0x3cd228){const _0x12a60f=a0_0x12a6();return a0_0x2705=function(_0x270543,_0x4c4c31){_0x270543=_0x270543-0x1eb;let _0x50764f=_0x12a60f[_0x270543];return _0x50764f;},a0_0x2705(_0x3f16dc,_0x3cd228);}import{html}from'lit';function a0_0x12a6(){const _0x5bfa46=['33KCcnKr','useButtonExport','116137ZHXjKG','isPage','230257JSYVlX','getCustomButtonContainerStyle','getBasicButtonHandler','1182965icITjb','add','35001rSGfeR','gristButtonHandler','customButtonHandler','useButtonImport','getButtonContainer','10GQlypk','properties','buttonConfig','getContextButtons','982380KARdpA','import','export','976CWOyWB','156TDJNBT','parseBasicButtonConfigs','getCustomButtonContainerStyles','isButtonExist','useButtonAdd','15305323MlFjiD','77784QQJFjX'];a0_0x12a6=function(){return _0x5bfa46;};return a0_0x12a6();}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2d7129=>class extends MetaServiceMixin(_0x2d7129){static get[a0_0xe70b90(0x1f1)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0xe70b90(0x204)](){const _0x2ae20d=a0_0xe70b90;return MetaUiUtil[_0x2ae20d(0x1fa)]();}[a0_0xe70b90(0x1f3)](){return MetaUiUtil['getContextButtons'](this);}[a0_0xe70b90(0x1ef)](){const _0xdfd20b=a0_0xe70b90;return this[_0xdfd20b(0x202)]?html``:MetaUiUtil[_0xdfd20b(0x1ef)](this);}async[a0_0xe70b90(0x205)](_0x276c5c,_0x2bae0e,_0x41e4a6){return await MetaUiUtil['getButtonActionHandler'](this,_0x276c5c,_0x2bae0e,_0x41e4a6);}async['customButtonHandler'](_0x3a59c1){const _0x175f99=a0_0xe70b90;await MetaUiUtil[_0x175f99(0x1ed)](this,_0x3a59c1);}async['gristButtonHandler'](_0x5525c5,_0x3e0313){const _0x58f5c7=a0_0xe70b90;await MetaUiUtil[_0x58f5c7(0x1ec)](this,_0x5525c5,_0x3e0313);}[a0_0xe70b90(0x1f9)](_0x9eaf92){const _0x51fac0=a0_0xe70b90;this['buttonConfig']=_0x9eaf92['button'],this[_0x51fac0(0x1ee)]=MetaUiUtil[_0x51fac0(0x1fb)](this['buttonConfig'],_0x51fac0(0x1f5)),this[_0x51fac0(0x200)]=MetaUiUtil[_0x51fac0(0x1fb)](this[_0x51fac0(0x1f2)],_0x51fac0(0x1f6)),this[_0x51fac0(0x1fc)]=MetaUiUtil[_0x51fac0(0x1fb)](this[_0x51fac0(0x1f2)],_0x51fac0(0x207));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5196c3=a0_0x3cbc;(function(_0x32a76e,_0x3fd99e){const _0x43d0ac=a0_0x3cbc,_0x18c448=_0x32a76e();while(!![]){try{const _0x3a2833=parseInt(_0x43d0ac(0x1fb))/0x1+-parseInt(_0x43d0ac(0x1d7))/0x2*(-parseInt(_0x43d0ac(0x1ed))/0x3)+-parseInt(_0x43d0ac(0x1d6))/0x4+parseInt(_0x43d0ac(0x1d3))/0x5*(-parseInt(_0x43d0ac(0x1eb))/0x6)+parseInt(_0x43d0ac(0x1ce))/0x7*(parseInt(_0x43d0ac(0x1cc))/0x8)+-parseInt(_0x43d0ac(0x1bf))/0x9*(parseInt(_0x43d0ac(0x1e8))/0xa)+-parseInt(_0x43d0ac(0x1e3))/0xb*(-parseInt(_0x43d0ac(0x1bc))/0xc);if(_0x3a2833===_0x3fd99e)break;else _0x18c448['push'](_0x18c448['shift']());}catch(_0x404360){_0x18c448['push'](_0x18c448['shift']());}}}(a0_0x5f37,0xcf554));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5f37(){const _0x20b268=['fetch','396066hrLqbG','formConfigSet','entries','setAttribute','text.NOTHING_CHANGED','10kvIyLa','getContextObject','grid_column','12828OckKrY','Esc','99GIogyS','dataSet','formColumnConfig','properties','context','styles','after','showAlertPopup','Escape','focus','getBasicFormStyles','column','renderRoot','forEach','1077750TyQLxh','stopPropagation','target','startsWith','cuFlag','call','isPage','__origin__','dirtyData','firstUpdated','filter','true','before','keydown','patchData','clear','__dirty__','isEmpty','isNotEmpty','removeAttribute','currentTarget','444zrlYGR','addEventListener','pageInitialized','7866423BlhMIp','click','editable','__seq__','editing','assign','getBasicFormHtml','parent_id','__dirtyfields__','currentData','title.info','validation','parseFormConfigs','104xgWXvY','form','487270AzAcKg','parseBasicFormConfigs','button','activity','isElement','3005XChpDj','map','isEquals','1699416snRNUO','7162IMjRgO','OX-GRID-FIELD','record','render','activityDataSet','removeGarbageData','connectedCallback','function','name','formRenderConfig','is_activity'];a0_0x5f37=function(){return _0x20b268;};return a0_0x5f37();}function a0_0x3cbc(_0x20a59a,_0x25315e){const _0x5f377c=a0_0x5f37();return a0_0x3cbc=function(_0x3cbcf5,_0x1decd3){_0x3cbcf5=_0x3cbcf5-0x1b6;let _0x28847f=_0x5f377c[_0x3cbcf5];return _0x28847f;},a0_0x3cbc(_0x20a59a,_0x25315e);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2fcd79=>class extends MetaButtonMixin(_0x2fcd79){static get[a0_0x5196c3(0x1f2)](){const _0x51fdc5=a0_0x5196c3;return MetaApi[_0x51fdc5(0x1f7)]();}static get[a0_0x5196c3(0x1f0)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x5196c3(0x1f1)](){const _0x506d51=a0_0x5196c3;return MetaUiUtil[_0x506d51(0x1e9)](this);}async[a0_0x5196c3(0x1dd)](){const _0x1d6f63=a0_0x5196c3;if(this['config']){let {column:_0x46ca81=0x1}=this['config'];this[_0x1d6f63(0x1f8)]=_0x46ca81;}await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x1d6f63(0x1cb)](),this[_0x1d6f63(0x1db)]&&(this[_0x1d6f63(0x1ee)]=this[_0x1d6f63(0x1db)]),!0x0!==this[_0x1d6f63(0x1e1)]||this['parent_id']||(this[_0x1d6f63(0x1c6)]=_0x1d6f63(0x1d1)),super[_0x1d6f63(0x1dd)]&&await super[_0x1d6f63(0x1dd)](),this[_0x1d6f63(0x1d2)]&&await this[_0x1d6f63(0x1e2)](),this[_0x1d6f63(0x1f9)]['addEventListener'](_0x1d6f63(0x208),_0x398a70=>{const _0x58147e=_0x1d6f63;switch(_0x398a70['key']){case _0x58147e(0x1ec):case _0x58147e(0x1f5):case'Enter':this[_0x58147e(0x1f6)](),this[_0x58147e(0x1bb)]&&this[_0x58147e(0x1bb)]['removeAttribute']('editing'),this[_0x58147e(0x1bb)]=null;}}),this[_0x1d6f63(0x1f9)][_0x1d6f63(0x1bd)](_0x1d6f63(0x1c0),_0x252d96=>{const _0x298668=_0x1d6f63;_0x252d96[_0x298668(0x1fc)]();let _0x5161c9=_0x252d96[_0x298668(0x1fd)];if(this[_0x298668(0x1bb)]&&(this['focus'](),this[_0x298668(0x1bb)][_0x298668(0x1ba)]('editing')),_0x298668(0x1d8)!==_0x5161c9['tagName']||!_0x5161c9['column'][_0x298668(0x1d9)][_0x298668(0x1c1)])return this['focus'](),void(this[_0x298668(0x1bb)]=null);this[_0x298668(0x1bb)]=_0x5161c9,_0x5161c9[_0x298668(0x1e6)](_0x298668(0x1c3),_0x298668(0x206));}),this[_0x1d6f63(0x1bd)]('field-change',_0x11bd0b=>{const _0x55db66=_0x1d6f63;var {after:_0x44eec9,before:_0x4af953,column:_0x8cdb60,record:_0x31c676,row:_0x71c429}=_0x11bd0b['detail'];if(ValueUtil[_0x55db66(0x1d5)](_0x44eec9,_0x4af953))return;var _0x327e7e=_0x8cdb60[_0x55db66(0x1ca)];if(_0x327e7e&&_0x55db66(0x1de)==typeof _0x327e7e&&!_0x327e7e[_0x55db66(0x200)](this,_0x44eec9,_0x4af953,_0x31c676,_0x8cdb60))return;let _0x387f3d=_0x8cdb60[_0x55db66(0x1df)];_0x31c676[_0x387f3d]=_0x44eec9,_0x31c676[_0x55db66(0x1c7)]=_0x31c676[_0x55db66(0x1c7)]||{},_0x31c676['__origin__']=_0x31c676[_0x55db66(0x202)]||{},_0x31c676[_0x55db66(0x1c7)][_0x387f3d]={'before':_0x31c676[_0x55db66(0x202)][_0x387f3d],'after':_0x31c676[_0x387f3d]},ValueUtil[_0x55db66(0x1d5)](_0x31c676['__dirtyfields__'][_0x387f3d][_0x55db66(0x207)],_0x31c676[_0x55db66(0x1c7)][_0x387f3d][_0x55db66(0x1f3)])&&delete _0x31c676['__dirtyfields__'][_0x387f3d],ValueUtil[_0x55db66(0x1b9)](_0x31c676[_0x55db66(0x1c7)])?_0x31c676[_0x55db66(0x1b7)]='M':_0x31c676[_0x55db66(0x1b7)]='',this[_0x55db66(0x1d9)]={..._0x31c676};});}async[a0_0x5196c3(0x204)](){const _0x4b70ea=a0_0x5196c3;super[_0x4b70ea(0x204)]&&await super[_0x4b70ea(0x204)]();}async[a0_0x5196c3(0x1be)](){const _0x2daab6=a0_0x5196c3;this[_0x2daab6(0x201)]&&await this['parseFormConfigs'](),super[_0x2daab6(0x1be)]&&await super['pageInitialized'](),this[_0x2daab6(0x201)]&&await this['fetch']();}[a0_0x5196c3(0x1da)](){const _0x34fa58=a0_0x5196c3;return MetaApi[_0x34fa58(0x1c5)](this);}[a0_0x5196c3(0x1cf)](_0x368725){const _0xa6648b=a0_0x5196c3;this[_0xa6648b(0x1ef)]=_0x368725[_0xa6648b(0x1ea)],this[_0xa6648b(0x1e0)]=_0x368725[_0xa6648b(0x1cd)],_0x368725[_0xa6648b(0x1d0)]=_0x368725[_0xa6648b(0x1d0)][_0xa6648b(0x205)](_0x15887a=>'save'==_0x15887a[_0xa6648b(0x1df)]);}async[a0_0x5196c3(0x1cb)](){const _0x10ccbd=a0_0x5196c3;this[_0x10ccbd(0x1e4)]=await MetaApi['parseFormConfigSet'](this);}get['orgData'](){const _0x1a2684=a0_0x5196c3;return this[_0x1a2684(0x1dc)](this[_0x1a2684(0x1d9)][_0x1a2684(0x202)]);}get['dirtyData'](){const _0xee6c57=a0_0x5196c3;if(ValueUtil[_0xee6c57(0x1b8)](this[_0xee6c57(0x1d9)][_0xee6c57(0x1c7)]))return{};let _0x5adad4={};return Object[_0xee6c57(0x1e5)](this['record']['__dirtyfields__'])[_0xee6c57(0x1d4)](([_0x45046e,_0x59a499])=>{const _0xd9c3b8=_0xee6c57;0x0==_0x45046e[_0xd9c3b8(0x1fe)]('__')&&(_0x5adad4[_0x45046e]=_0x59a499[_0xd9c3b8(0x1f3)]);}),_0x5adad4;}get[a0_0x5196c3(0x1c8)](){const _0x352eb6=a0_0x5196c3;return this['removeGarbageData'](this[_0x352eb6(0x1d9)]);}[a0_0x5196c3(0x1dc)](_0x501b24){const _0x12f32d=a0_0x5196c3;let _0x281552={};if(_0x501b24)return Object[_0x12f32d(0x1e5)](_0x501b24)['map'](([_0x4ac9fc,_0x229798])=>{0x0==_0x4ac9fc['startsWith']('__')&&(_0x281552[_0x4ac9fc]=_0x229798);}),_0x281552;}get[a0_0x5196c3(0x209)](){const _0x3712e6=a0_0x5196c3;let _0x4c588d=this[_0x3712e6(0x203)],_0x5c847c=this[_0x3712e6(0x1d9)];return ValueUtil[_0x3712e6(0x1b8)](_0x4c588d)?[]:(ValueUtil['isNotEmpty'](_0x5c847c['id'])?(_0x4c588d['id']=_0x5c847c['id'],_0x4c588d['cuFlag']='M'):_0x4c588d[_0x3712e6(0x1ff)]='+',Object['keys'](_0x4c588d)[_0x3712e6(0x1fa)](_0x573b0f=>{'object'==typeof _0x4c588d[_0x573b0f]&&(_0x4c588d[_0x573b0f]={'id':_0x4c588d[_0x573b0f]['id']});}),[_0x4c588d]);}async[a0_0x5196c3(0x1e2)](){const _0x3aa1a0=a0_0x5196c3;if(ValueUtil[_0x3aa1a0(0x1b8)](this[_0x3aa1a0(0x1c6)]))return;let _0x1d5e01=await this['findOne'](this[_0x3aa1a0(0x1c6)]);_0x1d5e01[_0x3aa1a0(0x1c2)]=0x1;let _0x2905ad={};Object[_0x3aa1a0(0x1c4)](_0x2905ad,_0x1d5e01),_0x1d5e01[_0x3aa1a0(0x202)]=_0x2905ad,this['record']={..._0x1d5e01};}async['save'](){const _0x5b8da2=a0_0x5196c3;let _0x73d5cd=this[_0x5b8da2(0x209)];if(ValueUtil[_0x5b8da2(0x1b8)](_0x73d5cd))return void MetaApi[_0x5b8da2(0x1f4)](_0x5b8da2(0x1c9),_0x5b8da2(0x1e7));let _0x14a7b2=await this['updateMultiple'](_0x73d5cd);return _0x14a7b2&&await this['fetch'](),_0x14a7b2;}async[a0_0x5196c3(0x1b6)](){const _0x1cf449=a0_0x5196c3;this[_0x1cf449(0x1d9)]&&(this[_0x1cf449(0x1d9)]={});}['getData'](){const _0x437314=a0_0x5196c3;return this[_0x437314(0x1c8)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5c3ddd=a0_0x5853;(function(_0x522c89,_0xb7ddeb){const _0x4f8831=a0_0x5853,_0x476877=_0x522c89();while(!![]){try{const _0x26f72f=-parseInt(_0x4f8831(0xb1))/0x1*(-parseInt(_0x4f8831(0xd4))/0x2)+-parseInt(_0x4f8831(0xaf))/0x3+parseInt(_0x4f8831(0x9a))/0x4+parseInt(_0x4f8831(0xa5))/0x5+parseInt(_0x4f8831(0xb2))/0x6*(-parseInt(_0x4f8831(0x9f))/0x7)+parseInt(_0x4f8831(0x9d))/0x8*(parseInt(_0x4f8831(0xd0))/0x9)+parseInt(_0x4f8831(0xe0))/0xa*(parseInt(_0x4f8831(0xd3))/0xb);if(_0x26f72f===_0xb7ddeb)break;else _0x476877['push'](_0x476877['shift']());}catch(_0x413710){_0x476877['push'](_0x476877['shift']());}}}(a0_0x5b28,0xc8aa3));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x5b28(){const _0xcb9855=['getAndParseMenuMeta','forEach','useMasterFilterForm','keys','actions','operator','filterForm','getSelectedIdList','import','3323484GofdAY','getParams','20773TYldET','24VufgYg','gridConfig','getBasicGristTabStyles','startsWith','___data','parseBasicGridConfigs','properties','stringify','ox-filters-form-base','export','updateMultiple','filterFormId','beforeFetch','records','pageInitialized','shadowRoot','render','parseGristConfigs','options','record','menuInfo','isElement','isNotEmpty','#detail','deleteByIds','dataSet','importable','gristConfigSet','fetch','getData','35703GMVPcf','ox-grist','parse','209rsbZLX','58iaLmJr','columns','save','delete','exportableData','firstUpdated','filter','type','activityDataSet','useFilterForm','detailElement','gristId','541770PvuuLx','parseGridConfigSet','name','getGristTabHtml','title','main','context','map','header','exportable','meta-tab-element','1705188zdlOrY','searchFields','searchConfig','2000PBvaZW','grist','2097242KLKWSr','findOne','renderRoot','grid_column','patchesForUpdateMultiple','querySelector','391740rcaEFq'];a0_0x5b28=function(){return _0xcb9855;};return a0_0x5b28();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x5853(_0x216695,_0x2ad77b){const _0x5b281c=a0_0x5b28();return a0_0x5853=function(_0x5853d8,_0x498a67){_0x5853d8=_0x5853d8-0x95;let _0x49a739=_0x5b281c[_0x5853d8];return _0x49a739;},a0_0x5853(_0x216695,_0x2ad77b);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x3ce4cc=>class extends MetaButtonMixin(_0x3ce4cc){static get['styles'](){const _0x2c6aa=a0_0x5853;return MetaApi[_0x2c6aa(0xb4)]();}static get[a0_0x5c3ddd(0xb8)](){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_0x5c3ddd(0x9e)](){const _0x4a0523=a0_0x5c3ddd;return this[_0x4a0523(0xa1)][_0x4a0523(0xa4)](this['gristId']);}get[a0_0x5c3ddd(0xac)](){const _0x593276=a0_0x5c3ddd;return this[_0x593276(0xc1)]?.[_0x593276(0xa4)](this[_0x593276(0xbd)]);}get[a0_0x5c3ddd(0xde)](){const _0xe36a07=a0_0x5c3ddd;return this[_0xe36a07(0xc1)][_0xe36a07(0xa4)](_0xe36a07(0xc9));}get[a0_0x5c3ddd(0x95)](){const _0x43200c=a0_0x5c3ddd;let _0x18bdad=MetaUiUtil['getContextObject'](this);return _0x18bdad[_0x43200c(0xaa)]&&delete _0x18bdad['actions'],_0x18bdad[_0x43200c(0x98)]&&delete _0x18bdad['exportable'],_0x18bdad[_0x43200c(0xcc)]&&delete _0x18bdad[_0x43200c(0xcc)],_0x18bdad;}async['connectedCallback'](){const _0x353294=a0_0x5c3ddd;this[_0x353294(0xdf)]=_0x353294(0xd1),this['filterFormId']=_0x353294(0xba),await this[_0x353294(0xa6)](),this[_0x353294(0xc7)]&&await this['parseGristConfigs'](),this[_0x353294(0xdc)]&&(this[_0x353294(0xcb)]=(this[_0x353294(0xdc)]||{})[_0x353294(0xe5)]),super['connectedCallback']&&await super['connectedCallback']();}async['firstUpdated'](){const _0x2313cf=a0_0x5c3ddd;super[_0x2313cf(0xd9)]&&await super['firstUpdated']();}async[a0_0x5c3ddd(0xc0)](){const _0x3f8f39=a0_0x5c3ddd;this['isPage']&&await this[_0x3f8f39(0xc3)](),super['pageInitialized']&&await super[_0x3f8f39(0xc0)]();}[a0_0x5c3ddd(0xc2)](){const _0xdc7a82=a0_0x5c3ddd;return MetaApi[_0xdc7a82(0xe3)](this);}[a0_0x5c3ddd(0xb7)](_0x2f197c){const _0x4956df=a0_0x5c3ddd;this[_0x4956df(0xb3)]=_0x2f197c['grid'],this['gridColumnConfig']=_0x2f197c[_0x4956df(0xa2)],this[_0x4956df(0x9c)]=_0x2f197c['search'];}async[a0_0x5c3ddd(0xc3)](){const _0x1e8cd9=a0_0x5c3ddd;this[_0x1e8cd9(0xcd)]=await MetaApi[_0x1e8cd9(0xe1)](this),this[_0x1e8cd9(0xa8)]=!0x0===this[_0x1e8cd9(0xdd)],this[_0x1e8cd9(0xdd)]=!0x1,this[_0x1e8cd9(0x9b)]=this['gristConfigSet'][_0x1e8cd9(0xd5)][_0x1e8cd9(0xda)](_0x489af9=>_0x489af9['filter'])[_0x1e8cd9(0x96)](_0x21429b=>{const _0xf9cc05=_0x1e8cd9;let _0xb822e9={'name':_0x21429b[_0xf9cc05(0xe2)],'type':_0x21429b[_0xf9cc05(0xdb)],'label':_0x21429b[_0xf9cc05(0x97)],'operator':_0x21429b[_0xf9cc05(0xda)][_0xf9cc05(0xab)]?_0x21429b[_0xf9cc05(0xda)][_0xf9cc05(0xab)]:'eq'};return _0x21429b['record'][_0xf9cc05(0xc4)]&&(_0xb822e9['options']=_0x21429b[_0xf9cc05(0xc5)]['options']),_0xb822e9;});}async[a0_0x5c3ddd(0xce)](){const _0x185ac6=a0_0x5c3ddd;await this[_0x185ac6(0x9e)][_0x185ac6(0xce)]();}async[a0_0x5c3ddd(0xbe)]({page:_0x4105b1=0x0,limit:_0x5a7114=0x0,sortings:_0x317625=[],filters:_0x51a693=[]}){const _0xbf37aa=a0_0x5c3ddd;let _0x105145=this[_0xbf37aa(0xa1)][_0xbf37aa(0xa4)](_0xbf37aa(0x99));return await _0x105145['clear'](),!0x0;}async[a0_0x5c3ddd(0xd6)](){const _0x3502f4=a0_0x5c3ddd;let _0x4c5dbd=MetaApi[_0x3502f4(0xa3)](this[_0x3502f4(0x9e)]);!!ValueUtil[_0x3502f4(0xc8)](_0x4c5dbd)&&await this[_0x3502f4(0xbc)](_0x4c5dbd)&&this[_0x3502f4(0xce)]();}async['find'](){const _0x4ce774=a0_0x5c3ddd;let _0x3d2d69=MetaApi[_0x4ce774(0xad)](this[_0x4ce774(0x9e)],!0x0);return ValueUtil[_0x4ce774(0xc8)](_0x3d2d69)?await this[_0x4ce774(0xa0)](_0x3d2d69[0x0]):{};}async[a0_0x5c3ddd(0xd7)](){const _0x2b2158=a0_0x5c3ddd;let _0x394b54=MetaApi[_0x2b2158(0xad)](this['grist'],!0x0);!!ValueUtil[_0x2b2158(0xc8)](_0x394b54)&&await this[_0x2b2158(0xca)](_0x394b54)&&this[_0x2b2158(0xce)]();}async[a0_0x5c3ddd(0xbb)](){const _0x2d5b27=a0_0x5c3ddd;let _0x6ff02b=TermsUtil['tTitle'](ValueUtil[_0x2d5b27(0xb0)](this[_0x2d5b27(0xc6)],_0x2d5b27(0xe4)));return await MetaApi[_0x2d5b27(0xd8)](this[_0x2d5b27(0xc7)],_0x6ff02b,this[_0x2d5b27(0x9e)]);}async[a0_0x5c3ddd(0xae)](){}[a0_0x5c3ddd(0xcf)](){const _0x5d002b=a0_0x5c3ddd;let _0x124fc8=this[_0x5d002b(0x9e)][_0x5d002b(0xb6)][_0x5d002b(0xbf)];return _0x124fc8=JSON[_0x5d002b(0xd2)](JSON[_0x5d002b(0xb9)](_0x124fc8)),_0x124fc8[_0x5d002b(0xa7)](_0x7f8278=>{const _0x1961c8=_0x5d002b;Object[_0x1961c8(0xa9)](_0x7f8278)[_0x1961c8(0xa7)](_0x55d204=>{const _0x1e5f6e=_0x1961c8;_0x55d204[_0x1e5f6e(0xb5)]('__')&&delete _0x7f8278[_0x55d204];});}),{'main':_0x124fc8,'detail':this['renderRoot'][_0x5d002b(0xa4)](_0x5d002b(0x99))[_0x5d002b(0xcf)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x57df7f=a0_0x3eb0;(function(_0xd2911a,_0x167db9){const _0x5baa48=a0_0x3eb0,_0x519396=_0xd2911a();while(!![]){try{const _0x117034=-parseInt(_0x5baa48(0x1b0))/0x1+-parseInt(_0x5baa48(0x18f))/0x2*(parseInt(_0x5baa48(0x190))/0x3)+-parseInt(_0x5baa48(0x1a4))/0x4+-parseInt(_0x5baa48(0x189))/0x5*(-parseInt(_0x5baa48(0x18b))/0x6)+-parseInt(_0x5baa48(0x195))/0x7+parseInt(_0x5baa48(0x1ae))/0x8*(-parseInt(_0x5baa48(0x1c1))/0x9)+parseInt(_0x5baa48(0x1b9))/0xa;if(_0x117034===_0x167db9)break;else _0x519396['push'](_0x519396['shift']());}catch(_0x51985a){_0x519396['push'](_0x519396['shift']());}}}(a0_0x4ee5,0x9f52c));function a0_0x3eb0(_0x255184,_0x3d14a3){const _0x4ee56d=a0_0x4ee5();return a0_0x3eb0=function(_0x3eb064,_0x1abe79){_0x3eb064=_0x3eb064-0x185;let _0x454aca=_0x4ee56d[_0x3eb064];return _0x454aca;},a0_0x3eb0(_0x255184,_0x3d14a3);}function a0_0x4ee5(){const _0x59a9b2=['record','useMasterFilterForm','operator','updateMultiple','parseGristConfigs','clear','626545TySeBn','filterFormId','30CoKvWD','title','querySelector','getBasicMasterDetailStyles','31708MinrPM','3uairrO','getAndParseMenuMeta','firstUpdated','stringify','activityDataSet','1674442hqBMla','renderRoot','getSelectedIdList','options','dataSet','ox-grist','export','delete','detailElement','type','render','context','searchFields','findOne','parseBasicGridConfigs','4796460FfTAcr','useFilterForm','forEach','beforeFetch','parseGridConfigSet','find','filter','connectedCallback','deleteByIds','parse','16OqskEN','isNotEmpty','993649DxSFup','getData','gridColumnConfig','records','map','importable','getContextObject','grist','filterForm','25294270UmYzIl','exportable','main','gristId','fetch','gristConfigSet','header','keys','250020TyoDgJ','searchConfig','pageInitialized','tTitle','styles','actions','properties','isElement','save','search','grid_column'];a0_0x4ee5=function(){return _0x59a9b2;};return a0_0x4ee5();}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';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x5734b4=>class extends MetaButtonMixin(_0x5734b4){static get[a0_0x57df7f(0x1c5)](){const _0x4c861d=a0_0x57df7f;return MetaApi[_0x4c861d(0x18e)]();}static get[a0_0x57df7f(0x1c7)](){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_0x57df7f(0x1b7)](){const _0x44e0d0=a0_0x57df7f;return this[_0x44e0d0(0x196)][_0x44e0d0(0x18d)](this[_0x44e0d0(0x1bc)]);}get[a0_0x57df7f(0x1b8)](){const _0x1655d9=a0_0x57df7f;return this['shadowRoot']?.[_0x1655d9(0x18d)](this[_0x1655d9(0x18a)]);}get[a0_0x57df7f(0x1a0)](){const _0x16eb9f=a0_0x57df7f;let _0x75dbe5=MetaUiUtil[_0x16eb9f(0x1b6)](this);return _0x75dbe5[_0x16eb9f(0x1c6)]&&delete _0x75dbe5['actions'],_0x75dbe5[_0x16eb9f(0x1ba)]&&delete _0x75dbe5[_0x16eb9f(0x1ba)],_0x75dbe5[_0x16eb9f(0x1b5)]&&delete _0x75dbe5['importable'],_0x75dbe5;}async[a0_0x57df7f(0x1ab)](){const _0x77cd8c=a0_0x57df7f;this['gristId']=_0x77cd8c(0x19a),this['filterFormId']='ox-filters-form-base',await this[_0x77cd8c(0x191)](),this[_0x77cd8c(0x1c8)]&&await this[_0x77cd8c(0x187)](),this[_0x77cd8c(0x194)]&&(this[_0x77cd8c(0x199)]=(this['activityDataSet']||{})[_0x77cd8c(0x1bb)]),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x57df7f(0x192)](){const _0x2361fc=a0_0x57df7f;super['firstUpdated']&&await super[_0x2361fc(0x192)]();}async[a0_0x57df7f(0x1c3)](){const _0x5a4afa=a0_0x57df7f;this['isPage']&&await this['parseGristConfigs'](),super[_0x5a4afa(0x1c3)]&&await super[_0x5a4afa(0x1c3)]();}[a0_0x57df7f(0x19f)](){return MetaApi['getMasterDetailHtml'](this);}[a0_0x57df7f(0x1a3)](_0x1be195){const _0x42f882=a0_0x57df7f;this['gridConfig']=_0x1be195['grid'],this[_0x42f882(0x1b2)]=_0x1be195[_0x42f882(0x1cb)],this[_0x42f882(0x1c2)]=_0x1be195[_0x42f882(0x1ca)];}async[a0_0x57df7f(0x187)](){const _0x35ca13=a0_0x57df7f;this[_0x35ca13(0x1be)]=await MetaApi[_0x35ca13(0x1a8)](this),this[_0x35ca13(0x1cd)]=!0x0===this[_0x35ca13(0x1a5)],this[_0x35ca13(0x1a5)]=!0x1,this[_0x35ca13(0x1a1)]=this['gristConfigSet']['columns'][_0x35ca13(0x1aa)](_0x150829=>_0x150829[_0x35ca13(0x1aa)])[_0x35ca13(0x1b4)](_0x88253f=>{const _0x26af48=_0x35ca13;let _0x53f12b={'name':_0x88253f['name'],'type':_0x88253f[_0x26af48(0x19e)],'label':_0x88253f[_0x26af48(0x1bf)],'operator':_0x88253f[_0x26af48(0x1aa)][_0x26af48(0x185)]?_0x88253f[_0x26af48(0x1aa)][_0x26af48(0x185)]:'eq'};return _0x88253f['record'][_0x26af48(0x198)]&&(_0x53f12b[_0x26af48(0x198)]=_0x88253f[_0x26af48(0x1cc)][_0x26af48(0x198)]),_0x53f12b;});}async[a0_0x57df7f(0x1bd)](){const _0x26cbfd=a0_0x57df7f;await this[_0x26cbfd(0x1b7)]['fetch']();}async[a0_0x57df7f(0x1a7)]({page:_0x28951c=0x0,limit:_0x441b59=0x0,sortings:_0xfe904d=[],filters:_0x47060d=[]}){const _0x116eef=a0_0x57df7f;return this[_0x116eef(0x19d)]&&this[_0x116eef(0x19d)][_0x116eef(0x188)]&&await this[_0x116eef(0x19d)][_0x116eef(0x188)](),!0x0;}async[a0_0x57df7f(0x1c9)](){const _0x4758aa=a0_0x57df7f;let _0x3c2336=MetaApi['patchesForUpdateMultiple'](this[_0x4758aa(0x1b7)]);!!ValueUtil['isNotEmpty'](_0x3c2336)&&await this[_0x4758aa(0x186)](_0x3c2336)&&this[_0x4758aa(0x1bd)]();}async[a0_0x57df7f(0x1a9)](){const _0x28c10b=a0_0x57df7f;let _0x4d5c61=MetaApi[_0x28c10b(0x197)](this[_0x28c10b(0x1b7)],!0x0);return ValueUtil[_0x28c10b(0x1af)](_0x4d5c61)?await this[_0x28c10b(0x1a2)](_0x4d5c61[0x0]):{};}async[a0_0x57df7f(0x19c)](){const _0x420773=a0_0x57df7f;let _0x1296a5=MetaApi[_0x420773(0x197)](this['grist'],!0x0);!!ValueUtil[_0x420773(0x1af)](_0x1296a5)&&await this[_0x420773(0x1ac)](_0x1296a5)&&this[_0x420773(0x1bd)]();}async[a0_0x57df7f(0x19b)](){const _0x4d281f=a0_0x57df7f;let _0x405ea5=TermsUtil[_0x4d281f(0x1c4)](ValueUtil['getParams'](this['menuInfo'],_0x4d281f(0x18c)));return await MetaApi['exportableData'](this['isElement'],_0x405ea5,this['grist']);}async['import'](){}[a0_0x57df7f(0x1b1)](){const _0x333e77=a0_0x57df7f;let _0x499ff1=this[_0x333e77(0x1b7)]['___data'][_0x333e77(0x1b3)];return _0x499ff1=JSON[_0x333e77(0x1ad)](JSON[_0x333e77(0x193)](_0x499ff1)),_0x499ff1[_0x333e77(0x1a6)](_0x1eb2d5=>{const _0x42c63f=_0x333e77;Object[_0x42c63f(0x1c0)](_0x1eb2d5)['forEach'](_0x20ad7b=>{_0x20ad7b['startsWith']('__')&&delete _0x1eb2d5[_0x20ad7b];});}),{'main':_0x499ff1,'detail':this['detailElement'][_0x333e77(0x1b1)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x5d60(_0x173296,_0x3f9367){const _0x2cbfbc=a0_0x2cbf();return a0_0x5d60=function(_0x5d6079,_0x1dc371){_0x5d6079=_0x5d6079-0x132;let _0x563330=_0x2cbfbc[_0x5d6079];return _0x563330;},a0_0x5d60(_0x173296,_0x3f9367);}const a0_0x2afd44=a0_0x5d60;(function(_0xd990e9,_0x4b84d2){const _0x301269=a0_0x5d60,_0x593c26=_0xd990e9();while(!![]){try{const _0x4840fa=parseInt(_0x301269(0x165))/0x1*(-parseInt(_0x301269(0x136))/0x2)+-parseInt(_0x301269(0x135))/0x3*(-parseInt(_0x301269(0x16d))/0x4)+parseInt(_0x301269(0x151))/0x5+parseInt(_0x301269(0x14f))/0x6*(-parseInt(_0x301269(0x138))/0x7)+-parseInt(_0x301269(0x144))/0x8*(-parseInt(_0x301269(0x161))/0x9)+-parseInt(_0x301269(0x154))/0xa*(-parseInt(_0x301269(0x158))/0xb)+parseInt(_0x301269(0x160))/0xc*(-parseInt(_0x301269(0x14b))/0xd);if(_0x4840fa===_0x4b84d2)break;else _0x593c26['push'](_0x593c26['shift']());}catch(_0xb1d997){_0x593c26['push'](_0x593c26['shift']());}}}(a0_0x2cbf,0xd71bc));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=_0x4f5217=>class extends MetaBaseMixin(_0x4f5217){static get[a0_0x2afd44(0x145)](){return{'gqlInfo':Object};}[a0_0x2afd44(0x15d)](_0xc70259){const _0x1789ed=a0_0x2afd44;this['gqlInfo']=_0xc70259[_0x1789ed(0x13f)];}async['fetchHandler']({page:_0x2c5661=0x0,limit:_0x3fea09=0x0,sortings:_0x503df2=[],filters:_0x1433df=[]}){const _0x4eade9=a0_0x2afd44;if(this[_0x4eade9(0x157)])return{'total':0x0,'records':this[_0x4eade9(0x14d)]||[]};if(!0x0===this['infinityPage']&&(_0x2c5661=0x0,_0x3fea09=0x0),this[_0x4eade9(0x15c)]&&0x0==await this['beforeFetch']({'page':_0x2c5661,'limit':_0x3fea09,'sortings':_0x503df2,'filters':_0x1433df}))return;if(!this[_0x4eade9(0x13e)])return{'total':0x0,'records':[]};let _0x511793=ValueUtil['isEmpty'](_0x1433df)?this['mainFilterForm']?await this[_0x4eade9(0x146)][_0x4eade9(0x167)]()||[]:await this['filterForm']?.[_0x4eade9(0x167)]()||[]:_0x1433df,_0x501971=ValueUtil[_0x4eade9(0x164)](this[_0x4eade9(0x170)],_0x4eade9(0x142),_0x4eade9(0x13a)),_0x5e536d=ValueUtil['getParams'](this[_0x4eade9(0x170)],_0x4eade9(0x142),_0x4eade9(0x169)),_0x20bd9a=ValueUtil[_0x4eade9(0x164)](this['gqlInfo'],_0x4eade9(0x142),_0x4eade9(0x133));if(ValueUtil[_0x4eade9(0x137)](_0x5e536d)&&(_0x511793=adjustFilters(_0x511793,_0x5e536d)),_0x511793[_0x4eade9(0x140)](...this['getPageNavigateParams']()),this[_0x4eade9(0x15e)]&&!this['mainFilterForm']){let _0x2cdade=ValueUtil['getParams'](this[_0x4eade9(0x170)],'query',_0x4eade9(0x15b));if(!ValueUtil[_0x4eade9(0x137)](_0x2cdade)||!ValueUtil[_0x4eade9(0x137)](this[_0x4eade9(0x15b)]))return{'total':0x0,'records':[]};_0x511793=adjustFilters(_0x511793,[{'name':_0x2cdade,'operator':'eq','value':this[_0x4eade9(0x15b)]}]);}let _0xf14429=Object[_0x4eade9(0x156)](_0x20bd9a||{}),_0x2d78a3=MetaApi[_0x4eade9(0x14a)](this[_0x4eade9(0x13e)][_0x4eade9(0x166)][_0x4eade9(0x139)](_0xef52d3=>!_0xf14429[_0x4eade9(0x13b)](_0xef52d3['name']))),_0xee010e=await MetaApi[_0x4eade9(0x168)](_0x501971,_0x511793,_0x503df2,_0x2c5661,_0x3fea09,_0x2d78a3);if(this[_0x4eade9(0x163)]){let _0x4529c0=await this['afterFetch']({'page':_0x2c5661,'limit':_0x3fea09,'sortings':_0x503df2,'filters':_0x1433df},_0xee010e);if(_0x4529c0)return _0x4529c0;}return ValueUtil['isNotEmpty'](_0x20bd9a)&&ValueUtil['isNotEmpty'](_0xee010e)&&ValueUtil['isNotEmpty'](_0xee010e[_0x4eade9(0x148)])&&_0xee010e[_0x4eade9(0x148)]['map'](_0x288e3b=>(_0xf14429['forEach'](_0xb286f6=>{const _0xae3331=_0x4eade9;_0x288e3b[_0xb286f6]=ValueUtil[_0xae3331(0x164)](_0x288e3b,..._0x20bd9a[_0xb286f6][_0xae3331(0x14c)]('.'));}),_0x288e3b)),_0xee010e;}['getPageNavigateParams'](){const _0x7bbe5c=a0_0x2afd44;if(0x0==this[_0x7bbe5c(0x13d)])return[];let _0x183090=this[_0x7bbe5c(0x15f)]?.[_0x7bbe5c(0x15a)]?this['lifecycle']['params']:{};if(!_0x183090[_0x7bbe5c(0x162)])return[];let _0x59b69a=_0x183090[_0x7bbe5c(0x162)],_0x1ec9cc=JSON[_0x7bbe5c(0x132)](_0x59b69a),_0x5a67bc=0x1==_0x1ec9cc[_0x7bbe5c(0x141)]?'eq':'in',_0x2ff3be={},_0x4479de=[];return Object[_0x7bbe5c(0x156)](_0x1ec9cc[0x0])[_0x7bbe5c(0x152)](_0x110edd=>{_0x2ff3be[_0x110edd]={'name':_0x110edd,'operator':_0x5a67bc,'value':'eq'===_0x5a67bc?_0x1ec9cc[0x0][_0x110edd]:[]};}),_0x1ec9cc[_0x7bbe5c(0x141)]>0x1&&_0x1ec9cc[_0x7bbe5c(0x152)](_0xcf2788=>{const _0x2badff=_0x7bbe5c;Object[_0x2badff(0x156)](_0xcf2788)['forEach'](_0x3f4c75=>{const _0x1e7151=_0x2badff;_0x2ff3be[_0x3f4c75][_0x1e7151(0x147)][_0x1e7151(0x140)](_0xcf2788[_0x3f4c75]);});}),Object[_0x7bbe5c(0x156)](_0x2ff3be)[_0x7bbe5c(0x152)](_0x2cc572=>{_0x4479de['push'](_0x2ff3be[_0x2cc572]);}),_0x4479de;}async[a0_0x2afd44(0x16c)](_0x3de1a3){const _0x591360=a0_0x2afd44;if(this['is_activity'])return this[_0x591360(0x14d)]||{};let _0xeff1c6=ValueUtil[_0x591360(0x164)](this[_0x591360(0x170)],_0x591360(0x142),_0x591360(0x16a)),_0x536df1=ValueUtil[_0x591360(0x164)](this[_0x591360(0x170)],_0x591360(0x142),'after_set_fields'),_0x15371c=Object[_0x591360(0x156)](_0x536df1||{}),_0x528725=MetaApi[_0x591360(0x14a)]((this['gristConfigSet']?this[_0x591360(0x13e)]:{'columns':this[_0x591360(0x155)]})['columns'][_0x591360(0x139)](_0x4d9fe9=>!_0x15371c[_0x591360(0x13b)](_0x4d9fe9[_0x591360(0x143)]))),_0x279949=await MetaApi[_0x591360(0x16c)](_0xeff1c6,_0x3de1a3,_0x528725);return ValueUtil[_0x591360(0x137)](_0x536df1)&&ValueUtil[_0x591360(0x137)](_0x279949)&&_0x15371c[_0x591360(0x152)](_0x154a3d=>{const _0x5cdd7b=_0x591360;_0x279949[_0x154a3d]=ValueUtil['getParams'](_0x279949,..._0x536df1[_0x154a3d][_0x5cdd7b(0x14c)]('.'));}),_0x279949;}async[a0_0x2afd44(0x14e)](_0x379a9f){const _0x41245c=a0_0x2afd44;let _0x2ab23b=ValueUtil[_0x41245c(0x164)](this[_0x41245c(0x170)],_0x41245c(0x134),_0x41245c(0x13c),'func');return await MetaApi[_0x41245c(0x153)](_0x379a9f,_0x2ab23b);}async[a0_0x2afd44(0x16e)](_0x1c096b){const _0x595b80=a0_0x2afd44;let _0x4ad8dc=ValueUtil[_0x595b80(0x164)](this[_0x595b80(0x170)],'mutation',_0x595b80(0x149),_0x595b80(0x16b)),_0x187fcc=ValueUtil[_0x595b80(0x164)](this[_0x595b80(0x170)],'mutation','multiple',_0x595b80(0x150));if(ValueUtil[_0x595b80(0x137)](_0x187fcc)&&(_0x187fcc=_0x187fcc[_0x595b80(0x16f)](_0x62136a=>_0x62136a['includes']('.')?_0x62136a['split']('.'):_0x62136a),_0x1c096b=_0x1c096b[_0x595b80(0x16f)](_0x4b8943=>(_0x187fcc[_0x595b80(0x152)](_0x8b10ef=>{const _0x705f4c=_0x595b80;Array[_0x705f4c(0x159)](_0x8b10ef)?delete _0x4b8943[_0x8b10ef[0x0]][_0x8b10ef[0x1]]:delete _0x4b8943[_0x8b10ef];}),_0x4b8943))),this[_0x595b80(0x15e)]&&ValueUtil[_0x595b80(0x137)](this[_0x595b80(0x15b)])){let _0x21400b=ValueUtil[_0x595b80(0x164)](this[_0x595b80(0x170)],'mutation',_0x595b80(0x149),_0x595b80(0x15b));ValueUtil['isNotEmpty'](_0x21400b)&&_0x1c096b[_0x595b80(0x152)](_0x31ca93=>{const _0x483478=_0x595b80;if(_0x21400b[_0x483478(0x13b)]('.')){let _0x21e1b7=_0x21400b[_0x483478(0x14c)]('.');_0x31ca93[_0x21e1b7[0x0]]={},_0x31ca93[_0x21e1b7[0x0]][_0x21e1b7[0x1]]=this[_0x483478(0x15b)];}else _0x31ca93[_0x21400b]=this[_0x483478(0x15b)];});}return await MetaApi[_0x595b80(0x16e)](_0x4ad8dc,_0x1c096b);}};function a0_0x2cbf(){const _0x2e29c3=['push','length','query','name','521320dbvgiF','properties','mainFilterForm','value','records','multiple','getSelectColumns','23917049FbanwX','split','dataSet','deleteByIds','120966jAptFK','skip_fields','7320765vanDhX','forEach','deleteListByIds','21230xHJVwS','formConfigSet','keys','is_activity','3663HLiRvl','isArray','params','parent_id','beforeFetch','parseBasicServiceConfigs','isElement','lifecycle','12tnSngm','153WTbbxu','pass','afterFetch','getParams','131159SRsGmj','columns','getQueryFilters','searchByPagination','filters','find_one_func','func','findOne','3720Ddmmtc','updateMultiple','map','gqlInfo','parse','after_set_fields','mutation','639PuvrnH','2FNSgHx','isNotEmpty','217FLEFpA','filter','list_func','includes','delete','isPage','gristConfigSet','gql'];a0_0x2cbf=function(){return _0x2e29c3;};return a0_0x2cbf();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a0_0x5e93(_0x59ec91,_0x11f298){const _0x3713d6=a0_0x3713();return a0_0x5e93=function(_0x5e937c,_0xce36c1){_0x5e937c=_0x5e937c-0x18c;let _0x5c2c86=_0x3713d6[_0x5e937c];return _0x5c2c86;},a0_0x5e93(_0x59ec91,_0x11f298);}const a0_0xb82ec=a0_0x5e93;function a0_0x3713(){const _0x9a77e0=['1233276ytbNsO','1585262Ilqesh','1261428EjOkzP','isElement','operator','getMainGrist','connectedCallback','clear','grid','isPage','getAndParseMenuMeta','grist','querySelector','columns','filterFormId','filterForm','activityDataSet','properties','parseBasicGridConfigs','actions','ox-filters-form-base','96GPKXsI','options','search','gristId','beforeFetch','2981160esqbxZ','styles','9agKjre','filter','useFilterForm','pageInitialized','context','gristConfigSet','masterElement','importable','gridConfig','record','getTabDetailHtml','map','getData','gridColumnConfig','346843QdgXPg','parseGristConfigs','searchFields','firstUpdated','detailElement','render','ox-grist','50084IyYLcT','12961896skXiim','searchConfig','type','useButtonExport'];a0_0x3713=function(){return _0x9a77e0;};return a0_0x3713();}(function(_0x222474,_0x1dc22){const _0x2ba391=a0_0x5e93,_0x5f5b33=_0x222474();while(!![]){try{const _0x122dd8=parseInt(_0x2ba391(0x1ab))/0x1+parseInt(_0x2ba391(0x1b9))/0x2+-parseInt(_0x2ba391(0x196))/0x3*(-parseInt(_0x2ba391(0x1b2))/0x4)+parseInt(_0x2ba391(0x19b))/0x5+-parseInt(_0x2ba391(0x1b7))/0x6+parseInt(_0x2ba391(0x1b8))/0x7+parseInt(_0x2ba391(0x1b3))/0x8*(-parseInt(_0x2ba391(0x19d))/0x9);if(_0x122dd8===_0x1dc22)break;else _0x5f5b33['push'](_0x5f5b33['shift']());}catch(_0x4afe97){_0x5f5b33['push'](_0x5f5b33['shift']());}}}(a0_0x3713,0x5b968));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';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabDetailMixin=_0x4605e1=>class extends MetaButtonMixin(_0x4605e1){static get[a0_0xb82ec(0x19c)](){return MetaApi['getBasicTabDetailStyles']();}static get[a0_0xb82ec(0x192)](){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_0xb82ec(0x18c)](){const _0x64a29a=a0_0xb82ec;return this[_0x64a29a(0x1a3)][_0x64a29a(0x1bc)]();}get[a0_0xb82ec(0x190)](){const _0x592860=a0_0xb82ec;return this['shadowRoot']?.[_0x592860(0x18d)](this[_0x592860(0x18f)]);}get[a0_0xb82ec(0x1a1)](){const _0x37184d=a0_0xb82ec;let _0x3e1d16=MetaUiUtil['getContextObject'](this);return _0x3e1d16[_0x37184d(0x194)]&&delete _0x3e1d16[_0x37184d(0x194)],_0x3e1d16['exportable']&&delete _0x3e1d16['exportable'],_0x3e1d16[_0x37184d(0x1a4)]&&delete _0x3e1d16[_0x37184d(0x1a4)],_0x3e1d16;}async[a0_0xb82ec(0x1bd)](){const _0x2dd690=a0_0xb82ec;this[_0x2dd690(0x199)]=_0x2dd690(0x1b1),this[_0x2dd690(0x18f)]=_0x2dd690(0x195),await this[_0x2dd690(0x1c1)](),this[_0x2dd690(0x1ba)]&&await this[_0x2dd690(0x1ac)](),this[_0x2dd690(0x191)]&&(this['dataSet']=(this['activityDataSet']||{})['main']),super[_0x2dd690(0x1bd)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x1b5b79=a0_0xb82ec;super[_0x1b5b79(0x1ae)]&&await super[_0x1b5b79(0x1ae)]();}async[a0_0xb82ec(0x1a0)](){const _0x27172a=a0_0xb82ec;this[_0x27172a(0x1c0)]&&await this[_0x27172a(0x1ac)](),super[_0x27172a(0x1a0)]&&await super[_0x27172a(0x1a0)]();}[a0_0xb82ec(0x1b0)](){const _0x3486bb=a0_0xb82ec;return MetaApi[_0x3486bb(0x1a7)](this);}[a0_0xb82ec(0x193)](_0x170bf8){const _0x41184e=a0_0xb82ec;this[_0x41184e(0x1a5)]=_0x170bf8[_0x41184e(0x1bf)],this[_0x41184e(0x1aa)]=_0x170bf8['grid_column'],this[_0x41184e(0x1b4)]=_0x170bf8[_0x41184e(0x198)];}async[a0_0xb82ec(0x1ac)](){const _0x229549=a0_0xb82ec;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this['useMasterFilterForm']=!0x0===this[_0x229549(0x19f)],this[_0x229549(0x19f)]=!0x1,this['buttonConfig']=void 0x0,this[_0x229549(0x1b6)]=!0x1,this['useButtonImport']=!0x1,this[_0x229549(0x1ad)]=this[_0x229549(0x1a2)][_0x229549(0x18e)]['filter'](_0x4bc8a5=>_0x4bc8a5[_0x229549(0x19e)])[_0x229549(0x1a8)](_0x45edb4=>{const _0x523bee=_0x229549;let _0x92e16c={'name':_0x45edb4['name'],'type':_0x45edb4[_0x523bee(0x1b5)],'label':_0x45edb4['header'],'operator':_0x45edb4['filter'][_0x523bee(0x1bb)]?_0x45edb4[_0x523bee(0x19e)][_0x523bee(0x1bb)]:'eq'};return _0x45edb4[_0x523bee(0x1a6)][_0x523bee(0x197)]&&(_0x92e16c[_0x523bee(0x197)]=_0x45edb4[_0x523bee(0x1a6)][_0x523bee(0x197)]),_0x92e16c;});}async['fetch'](){await this['grist']['fetch']();}async[a0_0xb82ec(0x19a)]({page:_0x556bc0=0x0,limit:_0x13d12d=0x0,sortings:_0x2262f1=[],filters:_0x42b335=[]}){const _0x1d81c8=a0_0xb82ec;return this[_0x1d81c8(0x1a3)]&&this[_0x1d81c8(0x1a3)][_0x1d81c8(0x1be)]&&await this[_0x1d81c8(0x1a3)]['clear'](),this['detailElement']&&this[_0x1d81c8(0x1af)][_0x1d81c8(0x1be)]&&await this['detailElement'][_0x1d81c8(0x1be)](),!0x0;}[a0_0xb82ec(0x1a9)](){const _0x35838f=a0_0xb82ec;return{'master':this[_0x35838f(0x1a3)][_0x35838f(0x1a9)](),'detail':this[_0x35838f(0x1af)]['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5ec6db=a0_0x4b22;function a0_0x4b22(_0x4abc44,_0x378fa6){const _0x5ca0e1=a0_0x5ca0();return a0_0x4b22=function(_0x4b22c9,_0x29014d){_0x4b22c9=_0x4b22c9-0x1d5;let _0x11b379=_0x5ca0e1[_0x4b22c9];return _0x11b379;},a0_0x4b22(_0x4abc44,_0x378fa6);}(function(_0x385a2d,_0x256c01){const _0x577a7f=a0_0x4b22,_0x1ac0ec=_0x385a2d();while(!![]){try{const _0xe8896d=-parseInt(_0x577a7f(0x1ea))/0x1+-parseInt(_0x577a7f(0x1dc))/0x2+parseInt(_0x577a7f(0x1d7))/0x3*(parseInt(_0x577a7f(0x1f2))/0x4)+parseInt(_0x577a7f(0x1e6))/0x5+-parseInt(_0x577a7f(0x1f6))/0x6+-parseInt(_0x577a7f(0x1e3))/0x7+parseInt(_0x577a7f(0x1f9))/0x8;if(_0xe8896d===_0x256c01)break;else _0x1ac0ec['push'](_0x1ac0ec['shift']());}catch(_0x14fb12){_0x1ac0ec['push'](_0x1ac0ec['shift']());}}}(a0_0x5ca0,0xdb624));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x5ca0(){const _0x10b9d1=['getBasicTabStyles','10127940TOclaC','connectedCallback','route_name','13787504SYyXlU','getData','tab','@things-factory/meta-ui/client/pages/meta-grist-element','tabElements','3PElYvT','firstUpdated','keys','currentTabKey','tabRenderConfig','2059098ExnKUX','parse','length','display','context','styles','clear','6860217TmMvWy','getMainGrist','activityDataSet','8920905NvBvik','getAndParseMenuMeta','pageInitialized','grist','347318TtOLVn','main_tab_info','properties','etcConfig','param_field','{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22\x20}','name','dataSet','5743460yKZfOq','getBasicTabHtml','unshift'];a0_0x5ca0=function(){return _0x10b9d1;};return a0_0x5ca0();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0xb01cb4=>class extends MetaButtonMixin(_0xb01cb4){static get[a0_0x5ec6db(0x1e1)](){const _0x34e108=a0_0x5ec6db;return MetaApi[_0x34e108(0x1f5)]();}static get[a0_0x5ec6db(0x1ec)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x5ec6db(0x1e0)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x5ec6db(0x1f7)](){const _0x40aa63=a0_0x5ec6db;this[_0x40aa63(0x1da)]=void 0x0,await this[_0x40aa63(0x1e7)](),this[_0x40aa63(0x1e5)]&&(this[_0x40aa63(0x1f1)]=this[_0x40aa63(0x1e5)]),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x5ec6db(0x1d8)](){const _0x12c31a=a0_0x5ec6db;super['firstUpdated']&&await super[_0x12c31a(0x1d8)]();}async[a0_0x5ec6db(0x1e8)](){const _0x273d92=a0_0x5ec6db;super['pageInitialized']&&await super[_0x273d92(0x1e8)]();}['render'](){const _0x3bf062=a0_0x5ec6db;return MetaApi[_0x3bf062(0x1f3)](this);}['parseBasicTabConfigs'](_0x1c5ac1){const _0xdd43f9=a0_0x5ec6db;if(!0x0===this['includeMainList']){let _0x2653c7=this[_0xdd43f9(0x1ed)][_0xdd43f9(0x1eb)],_0x237a95=JSON[_0xdd43f9(0x1dd)](_0x2653c7||_0xdd43f9(0x1ef));_0x1c5ac1[_0xdd43f9(0x1fb)][_0xdd43f9(0x1f4)]({'name':_0x237a95[_0xdd43f9(0x1f0)],'display':_0x237a95[_0xdd43f9(0x1df)],'tagname':'meta-grist-element','location':_0xdd43f9(0x1d5),'parent_field':'id','param_field':_0xdd43f9(0x1ee),'menu':this[_0xdd43f9(0x1f8)],'icon':_0x237a95['icon'],'filter_from':!0x1,'main_filter_form':this['mainFilterForm']});}this[_0xdd43f9(0x1db)]=_0x1c5ac1['tab'],_0x1c5ac1['button']=[];}async[a0_0x5ec6db(0x1e2)](){const _0x446c21=a0_0x5ec6db;if(this['tabElements']){let _0x2a286f=Object['keys'](this[_0x446c21(0x1d6)]);for(var _0x2aecb3=0x0;_0x2aecb3<_0x2a286f[_0x446c21(0x1de)];_0x2aecb3++)await this[_0x446c21(0x1d6)][_0x2a286f[_0x2aecb3]][_0x446c21(0x1e2)]();}}[a0_0x5ec6db(0x1fa)](){const _0x43c3ae=a0_0x5ec6db;let _0xabc645={};return this['tabElements']&&Object[_0x43c3ae(0x1d9)](this[_0x43c3ae(0x1d6)])['forEach'](_0x56f675=>{_0xabc645[_0x56f675]=this['tabElements'][_0x56f675]['getData']();}),_0xabc645;}[a0_0x5ec6db(0x1e4)](){const _0x4bd9fa=a0_0x5ec6db;if(this[_0x4bd9fa(0x1d6)]){let _0x3a3a0b=Object['keys'](this[_0x4bd9fa(0x1d6)]);return this[_0x4bd9fa(0x1d6)][_0x3a3a0b[0x0]][_0x4bd9fa(0x1e9)];}}};
|