@things-factory/meta-ui 6.0.108 → 6.0.109
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/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 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +28 -28
- 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 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/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 +93 -93
- 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 +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x220a3a=a0_0x5805;(function(_0x2858dd,_0x4d901b){const _0x9decf1=a0_0x5805,_0x571fe3=_0x2858dd();while(!![]){try{const _0x2d6017=-parseInt(_0x9decf1(0x188))/0x1*(-parseInt(_0x9decf1(0x189))/0x2)+parseInt(_0x9decf1(0x17c))/0x3*(parseInt(_0x9decf1(0x183))/0x4)+-parseInt(_0x9decf1(0x17e))/0x5+-parseInt(_0x9decf1(0x182))/0x6+parseInt(_0x9decf1(0x194))/0x7*(parseInt(_0x9decf1(0x18a))/0x8)+parseInt(_0x9decf1(0x180))/0x9+parseInt(_0x9decf1(0x192))/0xa*(-parseInt(_0x9decf1(0x195))/0xb);if(_0x2d6017===_0x4d901b)break;else _0x571fe3['push'](_0x571fe3['shift']());}catch(_0x1eba30){_0x571fe3['push'](_0x571fe3['shift']());}}}(a0_0x238e,0xc6275));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x521567 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';import{isMobileDevice}from'@operato/utils';function a0_0x238e(){const _0x3dc87a=['HEADERBAR','dynamic-menu','items','dispatch','1GzxxWp','2302660faGKkq','376IxQEhr','query','filter','dynamic-menu-part','portrait','active','lite-menu-part','get','413430XimIHi','querySelector','41979OkoigY','297bwiGsY','appName','NAVBAR','UPDATE_META_UI','content','landscape','meta[name=\x22application-name\x22]','2390865OIruJH','rank','5233500uAkKYd','FRONT_END','6308775DaeTIM','liteMenus','4520856wIhHjJ','8eoqhDT'];a0_0x238e=function(){return _0x3dc87a;};return a0_0x238e();}import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x220a3a(0x198);function a0_0x5805(_0x1dad49,_0x2657bd){const _0x238ec9=a0_0x238e();return a0_0x5805=function(_0x5805aa,_0x2de736){_0x5805aa=_0x5805aa-0x17c;let _0x577bb7=_0x238ec9[_0x5805aa];return _0x577bb7;},a0_0x5805(_0x1dad49,_0x2657bd);}export const UPDATE_META_MENU_TEMPLATE='UPDATE_META_MENU_TEMPLATE';var HAMBURGER;export async function setupMenuPart(_0x5a13f7){const _0x575a27=a0_0x220a3a;var {hovering:_0x49f283=!!isMobileDevice(),slotTemplate:_0x403da6,portraitSlotTemplate:_0x26d83e,landscapeSlotTemplate:_0x45f1f5,position:_0x1f47a2=VIEWPART_POSITION[_0x575a27(0x197)]}=_0x5a13f7||{};const {hovering:_0x45c93b}=(await clientSettingStore[_0x575a27(0x191)](_0x575a27(0x185)))?.['value']||{};void 0x0!==_0x45c93b&&(_0x49f283=_0x45c93b);const _0x355390=_0x1f47a2==VIEWPART_POSITION[_0x575a27(0x184)]?_0x575a27(0x19a):_0x575a27(0x18e),_0x49623c=(_0x575a27(0x19a)==_0x355390?_0x45f1f5:_0x26d83e)||_0x403da6||html``;appendViewpart({'name':_0x575a27(0x190),'viewpart':{'show':!_0x49f283,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x49f283,'template':html`<dynamic-menu-part .orientation=${_0x355390}>${_0x49623c}</dynamic-menu-part>`},'position':_0x1f47a2}),_0x49f283&&_0x575a27(0x18e)==_0x355390?HAMBURGER||(HAMBURGER={'name':'hamburger','template':html`
|
|
2
|
+
<mwc-icon @click=${_0x152215=>toggleOverlay(_0x575a27(0x18d),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x575a27(0x17f)]},store[_0x575a27(0x187)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x3a11e5){const _0x36df7b=a0_0x220a3a;var _0x305100=document[_0x36df7b(0x193)](_0x36df7b(0x19b))?.[_0x36df7b(0x199)],_0x2e9914=(await client[_0x36df7b(0x18b)]({'query':a0_0x521567`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x5e2870=a0_0x3a5d;(function(_0x337c29,_0x11414a){const _0x150c89=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x36df7b(0x18f),'operator':'eq','value':!0x0},{'name':'appName','operator':'in','value':['',_0x305100]}],'sortings':[{'name':_0x36df7b(0x17d),'desc':!0x1}]}}))['data'][_0x36df7b(0x181)][_0x36df7b(0x186)];store[_0x36df7b(0x187)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2e9914[_0x36df7b(0x18c)](_0x19a6ce=>!_0x19a6ce[_0x36df7b(0x196)]||_0x19a6ce[_0x36df7b(0x196)]===_0x305100),'template':_0x3a11e5});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x55c7b=a0_0x4b41;(function(_0x17bf6e,_0x4a1891){const _0x495ffe=a0_0x4b41,_0xf94b0a=_0x17bf6e();while(!![]){try{const _0x3c72c4=-parseInt(_0x495ffe(0x1f0))/0x1+parseInt(_0x495ffe(0x1dd))/0x2*(parseInt(_0x495ffe(0x1e1))/0x3)+-parseInt(_0x495ffe(0x1e0))/0x4+-parseInt(_0x495ffe(0x1d8))/0x5+parseInt(_0x495ffe(0x1d4))/0x6*(parseInt(_0x495ffe(0x1e8))/0x7)+parseInt(_0x495ffe(0x1d2))/0x8+parseInt(_0x495ffe(0x1e5))/0x9*(parseInt(_0x495ffe(0x1df))/0xa);if(_0x3c72c4===_0x4a1891)break;else _0xf94b0a['push'](_0xf94b0a['shift']());}catch(_0x160ff1){_0xf94b0a['push'](_0xf94b0a['shift']());}}}(a0_0x5454,0x66646));import{MetaApi}from'./../utils/meta-api';function a0_0x5454(){const _0xff72fe=['is_detail','fetchHandler','openDynamicPopup','6343504ISJpar','errors','41214UvKcFi','properties','lifecycle','excuteOpenPopupButtonClick','569915HMNIDp','title','menuInfo','grist','isEmpty','2NJHzUn','tTitle','230BxhoDy','3102724mZrwem','311862pWbQrQ','is_popup','pageUpdated','after','150723SDPEgu','isNotEmpty','parseBasicButtonConfigs','301UqXNSy','etcConfig','etc','parseBasicFormConfigs','filterForm','parseBasicTabConfigs','active','parseBasicServiceConfigs','268378DsYNTk','params','parent_id','isPage','fetch','getMenuMeta','split','getAndParseMenuMeta','parseBasicGridConfigs','isElement','name'];a0_0x5454=function(){return _0xff72fe;};return a0_0x5454();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x4b41(_0x106de7,_0x9d2a69){const _0x5454ab=a0_0x5454();return a0_0x4b41=function(_0x4b41ef,_0x1d6abd){_0x4b41ef=_0x4b41ef-0x1cf;let _0x42046a=_0x5454ab[_0x4b41ef];return _0x42046a;},a0_0x4b41(_0x106de7,_0x9d2a69);}export const MetaBaseMixin=_0x48d51d=>class extends _0x48d51d{static get[a0_0x55c7b(0x1d5)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x3b858f=>Boolean(_0x3b858f)},'is_popup':{'type':Boolean,'converter':_0x167725=>Boolean(_0x167725)},'is_activity':{'type':Boolean,'converter':_0x21012a=>Boolean(_0x21012a)},'is_readonly':{'type':Boolean,'converter':_0x492b4f=>Boolean(_0x492b4f)}};}get[a0_0x55c7b(0x1f9)](){const _0xc4358b=a0_0x55c7b;return!0x0===this[_0xc4358b(0x1cf)]||!0x0===this[_0xc4358b(0x1e2)];}get['isDetail'](){const _0x480b43=a0_0x55c7b;return!ValueUtil[_0x480b43(0x1dc)](this['is_detail'])&&this[_0x480b43(0x1cf)];}async[a0_0x55c7b(0x1e3)](_0x106f50,_0x293170,_0x249be0){const _0x5de506=a0_0x55c7b;let _0x24352b=this[_0x5de506(0x1d6)]?.[_0x5de506(0x1f1)]?this['lifecycle'][_0x5de506(0x1f1)]:{};this['isPage']&&this[_0x5de506(0x1ee)]&&0x0==_0x249be0[_0x5de506(0x1ee)]&&ValueUtil[_0x5de506(0x1e6)](_0x24352b)&&this[_0x5de506(0x1f4)]();}get['isPopup'](){const _0xa6d13a=a0_0x55c7b;return!ValueUtil[_0xa6d13a(0x1dc)](this[_0xa6d13a(0x1e2)])&&this[_0xa6d13a(0x1e2)];}get[a0_0x55c7b(0x1f3)](){const _0x200b5e=a0_0x55c7b;return!this[_0x200b5e(0x1cf)]&&!this[_0x200b5e(0x1e2)];}async[a0_0x55c7b(0x1f7)](){const _0x3dccce=a0_0x55c7b;let _0x48b22a=await MetaApi[_0x3dccce(0x1f5)](this);_0x48b22a&&(this[_0x3dccce(0x1da)]=_0x48b22a['menu'],this[_0x3dccce(0x1e9)]=_0x48b22a[_0x3dccce(0x1ea)],this['parseBasicGridConfigs']&&this[_0x3dccce(0x1f8)](_0x48b22a),this[_0x3dccce(0x1ef)]&&this[_0x3dccce(0x1ef)](_0x48b22a),this[_0x3dccce(0x1eb)]&&this['parseBasicFormConfigs'](_0x48b22a),this[_0x3dccce(0x1ed)]&&this[_0x3dccce(0x1ed)](_0x48b22a),this['parseBasicButtonConfigs']&&this[_0x3dccce(0x1e7)](_0x48b22a));}async[a0_0x55c7b(0x1f4)](){const _0x5392ea=a0_0x55c7b;ValueUtil[_0x5392ea(0x1e6)](this['grist'])?this[_0x5392ea(0x1db)][_0x5392ea(0x1f4)]():(ValueUtil['isNotEmpty'](this[_0x5392ea(0x1ec)])||this[_0x5392ea(0x1d0)])&&await this[_0x5392ea(0x1d0)]();}async[a0_0x55c7b(0x1d7)](_0x27babc,_0x5ab343,_0x1e880f){const _0x469df7=a0_0x55c7b;let _0x3061fb=TermsUtil[_0x469df7(0x1de)](_0x27babc[_0x469df7(0x1d9)]);ValueUtil[_0x469df7(0x1e6)](_0x27babc['title_detail'])&&(_0x3061fb=_0x3061fb+'-'+ValueUtil['getParams'](_0x5ab343,..._0x27babc['title_detail'][_0x469df7(0x1f6)]('.'))),MetaApi[_0x469df7(0x1d1)](_0x3061fb,_0x27babc,_0x5ab343,_0x1e880f);}async['executeCallScenarioButtonClick'](_0x480e00,_0xa31c9c,_0x204110){const _0x47ca4a=a0_0x55c7b;let _0x50c463=await MetaApi['callScenario'](_0x480e00[_0x47ca4a(0x1fa)],_0x480e00[_0x47ca4a(0x1fa)],_0xa31c9c);!0x1!==_0x50c463&&!_0x50c463[_0x47ca4a(0x1d3)]&&ValueUtil[_0x47ca4a(0x1e6)](_0x480e00[_0x47ca4a(0x1e4)])&&_0x204110();}['setParentId'](_0x2a0e19){const _0x4e89ad=a0_0x55c7b;this[_0x4e89ad(0x1f2)]=_0x2a0e19,this[_0x4e89ad(0x1f4)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0xa07af4=a0_0x2b06;(function(_0x35153e,_0x29ec07){const _0x4d13fb=a0_0x2b06,_0xc9e829=_0x35153e();while(!![]){try{const _0x4fa501=-parseInt(_0x4d13fb(0x1e5))/0x1+parseInt(_0x4d13fb(0x1e8))/0x2*(-parseInt(_0x4d13fb(0x1ee))/0x3)+-parseInt(_0x4d13fb(0x1d8))/0x4+parseInt(_0x4d13fb(0x1f9))/0x5+parseInt(_0x4d13fb(0x1d1))/0x6*(-parseInt(_0x4d13fb(0x1dd))/0x7)+-parseInt(_0x4d13fb(0x1f8))/0x8*(parseInt(_0x4d13fb(0x1eb))/0x9)+parseInt(_0x4d13fb(0x1e3))/0xa;if(_0x4fa501===_0x29ec07)break;else _0xc9e829['push'](_0xc9e829['shift']());}catch(_0x528ef9){_0xc9e829['push'](_0xc9e829['shift']());}}}(a0_0x4f8c,0x8d9a7));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2b06(_0x5c8bbc,_0x102687){const _0x4f8c8c=a0_0x4f8c();return a0_0x2b06=function(_0x2b06d3,_0x2ca2b7){_0x2b06d3=_0x2b06d3-0x1c8;let _0x23106c=_0x4f8c8c[_0x2b06d3];return _0x23106c;},a0_0x2b06(_0x5c8bbc,_0x102687);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x150f8e=>class extends MetaButtonMixin(_0x150f8e){static get['styles'](){return MetaApi['getBasicGristStyles']();}static get[a0_0xa07af4(0x1cf)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x3df16d=a0_0xa07af4;return this[_0x3df16d(0x1f0)]?.[_0x3df16d(0x1ca)](this['gristId']);}get['filterForm'](){const _0x3a3702=a0_0xa07af4;return this[_0x3a3702(0x1de)]?.[_0x3a3702(0x1ca)](this['filterFormId']);}get['context'](){const _0x38c7ba=a0_0xa07af4;return MetaUiUtil[_0x38c7ba(0x1ce)](this);}async[a0_0xa07af4(0x1f7)](){const _0x3eba5c=a0_0xa07af4;this[_0x3eba5c(0x1cb)]=_0x3eba5c(0x1fa),this['filterFormId']='ox-filters-form',await this[_0x3eba5c(0x1f6)](),this[_0x3eba5c(0x1d7)]&&await this[_0x3eba5c(0x1e4)](),this[_0x3eba5c(0x1c9)]&&(this['dataSet']=this[_0x3eba5c(0x1c9)]),super[_0x3eba5c(0x1f7)]&&await super[_0x3eba5c(0x1f7)]();}async[a0_0xa07af4(0x1da)](){const _0x568843=a0_0xa07af4;super[_0x568843(0x1da)]&&await super[_0x568843(0x1da)]();}async[a0_0xa07af4(0x1d3)](){const _0x1bc86c=a0_0xa07af4;this[_0x1bc86c(0x1df)]&&await this[_0x1bc86c(0x1e4)](),super[_0x1bc86c(0x1d3)]&&await super['pageInitialized']();}['render'](){const _0x3754b7=a0_0xa07af4;return html`
|
|
2
|
+
${MetaApi['getBasicGristHtml'](this)}
|
|
3
|
+
${this[_0x3754b7(0x1df)]?html``:MetaUiUtil[_0x3754b7(0x1f4)](this)}
|
|
4
|
+
`;}[a0_0xa07af4(0x1ea)](_0xf7f068){const _0x523d1e=a0_0xa07af4;this[_0x523d1e(0x1d2)]=_0xf7f068['grid'],this['gridColumnConfig']=_0xf7f068[_0x523d1e(0x1e9)],this[_0x523d1e(0x1e6)]=_0xf7f068['search'];}async[a0_0xa07af4(0x1e4)](){const _0x48f7dd=a0_0xa07af4;this[_0x48f7dd(0x1ed)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0xa07af4(0x1f5)](){await this['grist']['fetch']();}async[a0_0xa07af4(0x1cc)](){const _0x322795=a0_0xa07af4;let _0x558fbc=MetaApi['patchesForUpdateMultiple'](this[_0x322795(0x1d5)]);!!ValueUtil[_0x322795(0x1dc)](_0x558fbc)&&await this['updateMultiple'](_0x558fbc)&&this['fetch']();}async[a0_0xa07af4(0x1e1)](){const _0x16495e=a0_0xa07af4;let _0x15f92c=MetaApi[_0x16495e(0x1d4)](this[_0x16495e(0x1d5)],!0x0);return ValueUtil[_0x16495e(0x1dc)](_0x15f92c)?await this[_0x16495e(0x1e7)](_0x15f92c[0x0]):{};}async['delete'](){const _0x192ff6=a0_0xa07af4;let _0x1a2eed=MetaApi[_0x192ff6(0x1d4)](this[_0x192ff6(0x1d5)],!0x0);!!ValueUtil[_0x192ff6(0x1dc)](_0x1a2eed)&&await this[_0x192ff6(0x1ec)](_0x1a2eed)&&this['fetch']();}async[a0_0xa07af4(0x1d9)](){const _0xc4d104=a0_0xa07af4;let _0x3f0625=TermsUtil['tTitle'](ValueUtil[_0xc4d104(0x1e2)](this['menuInfo'],_0xc4d104(0x1f3)));return await MetaApi[_0xc4d104(0x1f1)](this['isElement'],_0x3f0625,this[_0xc4d104(0x1d5)]);}async['import'](){}async[a0_0xa07af4(0x1db)](){const _0xa33030=a0_0xa07af4;this[_0xa33030(0x1d5)]&&(this[_0xa33030(0x1d5)][_0xa33030(0x1c8)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0xa07af4(0x1fb)](){const _0x53a789=a0_0xa07af4;let _0x14560d=this[_0x53a789(0x1d5)][_0x53a789(0x1d0)][_0x53a789(0x1f2)];return _0x14560d=JSON[_0x53a789(0x1cd)](JSON[_0x53a789(0x1d6)](_0x14560d)),_0x14560d['forEach'](_0x1d2a50=>{const _0x10a6a7=_0x53a789;Object['keys'](_0x1d2a50)[_0x10a6a7(0x1e0)](_0x5e9cef=>{const _0x1613a5=_0x10a6a7;_0x5e9cef[_0x1613a5(0x1ef)]('__')&&delete _0x1d2a50[_0x5e9cef];});}),_0x14560d;}};function a0_0x4f8c(){const _0x189ba2=['clear','isNotEmpty','2353953YYKJwR','shadowRoot','isPage','forEach','find','getParams','37626830mjgDJs','parseGristConfigs','167938RSJxfN','searchConfig','findOne','16vEbubb','grid_column','parseBasicGridConfigs','2511297usnUxT','deleteByIds','gristConfigSet','389121PrjeXw','startsWith','renderRoot','exportableData','records','title','getButtonContainer','fetch','getAndParseMenuMeta','connectedCallback','24AJkClq','201905fsVPrM','ox-grist','getData','data','activityDataSet','querySelector','gristId','save','parse','getContextObject','properties','___data','6eDPlGK','gridConfig','pageInitialized','getSelectedIdList','grist','stringify','isElement','3376340pppsdV','export','firstUpdated'];a0_0x4f8c=function(){return _0x189ba2;};return a0_0x4f8c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x528fb9=a0_0x528a;(function(_0x7bfdad,_0x870067){const _0x514d5b=a0_0x528a,_0x40d8f3=_0x7bfdad();while(!![]){try{const _0x336f76=-parseInt(_0x514d5b(0x1b5))/0x1+-parseInt(_0x514d5b(0x1b7))/0x2+parseInt(_0x514d5b(0x1a3))/0x3+-parseInt(_0x514d5b(0x1b4))/0x4*(-parseInt(_0x514d5b(0x1b2))/0x5)+-parseInt(_0x514d5b(0x1a9))/0x6*(-parseInt(_0x514d5b(0x1aa))/0x7)+parseInt(_0x514d5b(0x1b8))/0x8+-parseInt(_0x514d5b(0x1a6))/0x9;if(_0x336f76===_0x870067)break;else _0x40d8f3['push'](_0x40d8f3['shift']());}catch(_0x9e3112){_0x40d8f3['push'](_0x40d8f3['shift']());}}}(a0_0xf90a,0x2410f));function a0_0xf90a(){const _0x4a64c0=['add','parseBasicButtonConfigs','getButtonContainer','1281665JxTQta','isButtonExist','4qDQGLY','96176QICkeY','buttonConfig','321278PyLEFZ','1251160dygeXQ','751371MRkCJg','import','properties','3716064BVOaiM','getCustomButtonContainerStyles','button','25014gXQmSY','259uUIiep','isPage','useButtonExport','customButtonHandler','gristButtonHandler'];a0_0xf90a=function(){return _0x4a64c0;};return a0_0xf90a();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x528a(_0x1e496c,_0x217f03){const _0xf90a58=a0_0xf90a();return a0_0x528a=function(_0x528a2a,_0x519be8){_0x528a2a=_0x528a2a-0x1a3;let _0x5936fb=_0xf90a58[_0x528a2a];return _0x5936fb;},a0_0x528a(_0x1e496c,_0x217f03);}export const MetaButtonMixin=_0xfbf7ff=>class extends MetaServiceMixin(_0xfbf7ff){static get[a0_0x528fb9(0x1a5)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0x251a38=a0_0x528fb9;return MetaUiUtil[_0x251a38(0x1a7)]();}['getContextButtons'](){return MetaUiUtil['getContextButtons'](this);}[a0_0x528fb9(0x1b1)](){const _0x12f1bf=a0_0x528fb9;return this[_0x12f1bf(0x1ab)]?html``:MetaUiUtil[_0x12f1bf(0x1b1)](this);}async['getBasicButtonHandler'](_0x5a676d,_0x16a605,_0x32ff31){return await MetaUiUtil['getButtonActionHandler'](this,_0x5a676d,_0x16a605,_0x32ff31);}async['customButtonHandler'](_0xf6cb88){const _0x2e49b6=a0_0x528fb9;await MetaUiUtil[_0x2e49b6(0x1ad)](this,_0xf6cb88);}async['gristButtonHandler'](_0x291e0e,_0x244a7c){const _0x27037c=a0_0x528fb9;await MetaUiUtil[_0x27037c(0x1ae)](this,_0x291e0e,_0x244a7c);}[a0_0x528fb9(0x1b0)](_0x50a975){const _0x1eec6a=a0_0x528fb9;this[_0x1eec6a(0x1b6)]=_0x50a975[_0x1eec6a(0x1a8)],this['useButtonImport']=MetaUiUtil[_0x1eec6a(0x1b3)](this[_0x1eec6a(0x1b6)],_0x1eec6a(0x1a4)),this[_0x1eec6a(0x1ac)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],'export'),this['useButtonAdd']=MetaUiUtil[_0x1eec6a(0x1b3)](this['buttonConfig'],_0x1eec6a(0x1af));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x475f(){const _0x139a66=['patchData','keys','assign','entries','is_activity','key','activityDataSet','button','isEquals','text.NOTHING_CHANGED','removeGarbageData','save','editing','parent_id','Esc','35sKjTLZ','form','pageInitialized','filter','parseFormConfigs','333020pHjwVp','formRenderConfig','tagName','removeAttribute','__dirty__','map','getContextObject','properties','Enter','isNotEmpty','currentTarget','clear','getBasicFormHtml','__seq__','104MvSWsS','7876386oSVizH','parseFormConfigSet','5986428CzBoqH','title.info','field-change','286573UPHQJY','34396670vDeVgQ','isElement','2klUwBG','connectedCallback','findOne','focus','click','OX-GRID-FIELD','getData','grid_column','formColumnConfig','updateMultiple','addEventListener','currentData','isPage','52227SFxMmt','after','name','function','firstUpdated','startsWith','orgData','target','cuFlag','setAttribute','record','renderRoot','true','isEmpty','2978868xOFIVa','dataSet','__origin__','editable','column','fetch','__dirtyfields__','config','styles','dirtyData','object'];a0_0x475f=function(){return _0x139a66;};return a0_0x475f();}const a0_0x234107=a0_0x54ee;(function(_0x217a39,_0x476853){const _0x512b3f=a0_0x54ee,_0x436050=_0x217a39();while(!![]){try{const _0x562f9b=parseInt(_0x512b3f(0x1ac))/0x1*(-parseInt(_0x512b3f(0x19f))/0x2)+-parseInt(_0x512b3f(0x1ba))/0x3+parseInt(_0x512b3f(0x1d9))/0x4*(parseInt(_0x512b3f(0x1d4))/0x5)+-parseInt(_0x512b3f(0x199))/0x6+-parseInt(_0x512b3f(0x19c))/0x7*(parseInt(_0x512b3f(0x196))/0x8)+-parseInt(_0x512b3f(0x197))/0x9+parseInt(_0x512b3f(0x19d))/0xa;if(_0x562f9b===_0x476853)break;else _0x436050['push'](_0x436050['shift']());}catch(_0x528dbb){_0x436050['push'](_0x436050['shift']());}}}(a0_0x475f,0x8bb0a));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x54ee(_0xe8e23d,_0x422080){const _0x475f9c=a0_0x475f();return a0_0x54ee=function(_0x54ee1c,_0xab96f){_0x54ee1c=_0x54ee1c-0x18a;let _0x41b7e2=_0x475f9c[_0x54ee1c];return _0x41b7e2;},a0_0x54ee(_0xe8e23d,_0x422080);}export const MetaFormMixin=_0x33bc8a=>class extends MetaButtonMixin(_0x33bc8a){static get[a0_0x234107(0x1c2)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x234107(0x18f)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x13df86=a0_0x234107;return MetaUiUtil[_0x13df86(0x18e)](this);}async[a0_0x234107(0x1a0)](){const _0x2dafd6=a0_0x234107;if(this['config']){let {column:_0x44812f=0x1}=this[_0x2dafd6(0x1c1)];this[_0x2dafd6(0x1be)]=_0x44812f;}await this['getAndParseMenuMeta'](),this[_0x2dafd6(0x19e)]&&await this[_0x2dafd6(0x1d8)](),this[_0x2dafd6(0x1cb)]&&(this[_0x2dafd6(0x1bb)]=this[_0x2dafd6(0x1cb)]),!0x0!==this[_0x2dafd6(0x1c9)]||this['parent_id']||(this[_0x2dafd6(0x1d2)]='activity'),super[_0x2dafd6(0x1a0)]&&await super[_0x2dafd6(0x1a0)](),this[_0x2dafd6(0x19e)]&&await this['fetch'](),this[_0x2dafd6(0x1b7)][_0x2dafd6(0x1a9)]('keydown',_0x302711=>{const _0x141855=_0x2dafd6;switch(_0x302711[_0x141855(0x1ca)]){case _0x141855(0x1d3):case'Escape':case _0x141855(0x190):this['focus'](),this[_0x141855(0x192)]&&this[_0x141855(0x192)][_0x141855(0x18b)](_0x141855(0x1d1)),this[_0x141855(0x192)]=null;}}),this['renderRoot'][_0x2dafd6(0x1a9)](_0x2dafd6(0x1a3),_0x38cc5d=>{const _0x17b3d7=_0x2dafd6;_0x38cc5d['stopPropagation']();let _0x173424=_0x38cc5d[_0x17b3d7(0x1b3)];if(this[_0x17b3d7(0x192)]&&(this['focus'](),this['currentTarget'][_0x17b3d7(0x18b)](_0x17b3d7(0x1d1))),_0x17b3d7(0x1a4)!==_0x173424[_0x17b3d7(0x18a)]||!_0x173424[_0x17b3d7(0x1be)][_0x17b3d7(0x1b6)][_0x17b3d7(0x1bd)])return this[_0x17b3d7(0x1a2)](),void(this['currentTarget']=null);this[_0x17b3d7(0x192)]=_0x173424,_0x173424[_0x17b3d7(0x1b5)](_0x17b3d7(0x1d1),_0x17b3d7(0x1b8));}),this[_0x2dafd6(0x1a9)](_0x2dafd6(0x19b),_0x159bc6=>{const _0x108e51=_0x2dafd6;var {after:_0xc1e629,before:_0x405a77,column:_0x2aeb75,record:_0x8a721b,row:_0x6b12ce}=_0x159bc6['detail'];if(ValueUtil[_0x108e51(0x1cd)](_0xc1e629,_0x405a77))return;var _0x43475a=_0x2aeb75['validation'];if(_0x43475a&&_0x108e51(0x1af)==typeof _0x43475a&&!_0x43475a['call'](this,_0xc1e629,_0x405a77,_0x8a721b,_0x2aeb75))return;let _0x518b48=_0x2aeb75[_0x108e51(0x1ae)];_0x8a721b[_0x518b48]=_0xc1e629,_0x8a721b['__dirtyfields__']=_0x8a721b[_0x108e51(0x1c0)]||{},_0x8a721b[_0x108e51(0x1bc)]=_0x8a721b[_0x108e51(0x1bc)]||{},_0x8a721b['__dirtyfields__'][_0x518b48]={'before':_0x8a721b['__origin__'][_0x518b48],'after':_0x8a721b[_0x518b48]},ValueUtil[_0x108e51(0x1cd)](_0x8a721b[_0x108e51(0x1c0)][_0x518b48]['before'],_0x8a721b['__dirtyfields__'][_0x518b48][_0x108e51(0x1ad)])&&delete _0x8a721b['__dirtyfields__'][_0x518b48],ValueUtil[_0x108e51(0x191)](_0x8a721b[_0x108e51(0x1c0)])?_0x8a721b['__dirty__']='M':_0x8a721b[_0x108e51(0x18c)]='',this['record']={..._0x8a721b};});}async[a0_0x234107(0x1b0)](){const _0x17d4a4=a0_0x234107;super[_0x17d4a4(0x1b0)]&&await super[_0x17d4a4(0x1b0)]();}async[a0_0x234107(0x1d6)](){const _0x42f0db=a0_0x234107;this[_0x42f0db(0x1ab)]&&await this[_0x42f0db(0x1d8)](),super['pageInitialized']&&await super['pageInitialized'](),this[_0x42f0db(0x1ab)]&&await this['fetch']();}['render'](){const _0x38bc48=a0_0x234107;return MetaApi[_0x38bc48(0x194)](this);}['parseBasicFormConfigs'](_0x10988d){const _0x5ead64=a0_0x234107;this[_0x5ead64(0x1a7)]=_0x10988d[_0x5ead64(0x1a6)],this[_0x5ead64(0x1da)]=_0x10988d[_0x5ead64(0x1d5)],_0x10988d[_0x5ead64(0x1cc)]=_0x10988d['button'][_0x5ead64(0x1d7)](_0x15a0bf=>_0x5ead64(0x1d0)==_0x15a0bf[_0x5ead64(0x1ae)]);}async[a0_0x234107(0x1d8)](){const _0x338d26=a0_0x234107;this['formConfigSet']=await MetaApi[_0x338d26(0x198)](this);}get[a0_0x234107(0x1b2)](){const _0x58d9f7=a0_0x234107;return this[_0x58d9f7(0x1cf)](this[_0x58d9f7(0x1b6)][_0x58d9f7(0x1bc)]);}get['dirtyData'](){const _0x5dde65=a0_0x234107;if(ValueUtil['isEmpty'](this[_0x5dde65(0x1b6)][_0x5dde65(0x1c0)]))return{};let _0xa8ec10={};return Object[_0x5dde65(0x1c8)](this[_0x5dde65(0x1b6)][_0x5dde65(0x1c0)])[_0x5dde65(0x18d)](([_0x3ee7be,_0x300274])=>{const _0x108b3e=_0x5dde65;0x0==_0x3ee7be[_0x108b3e(0x1b1)]('__')&&(_0xa8ec10[_0x3ee7be]=_0x300274['after']);}),_0xa8ec10;}get['currentData'](){const _0x4ec3e7=a0_0x234107;return this['removeGarbageData'](this[_0x4ec3e7(0x1b6)]);}['removeGarbageData'](_0x276242){const _0x51db4a=a0_0x234107;let _0x3535fd={};if(_0x276242)return Object[_0x51db4a(0x1c8)](_0x276242)['map'](([_0x7fd98f,_0x2e15c6])=>{const _0x367a32=_0x51db4a;0x0==_0x7fd98f[_0x367a32(0x1b1)]('__')&&(_0x3535fd[_0x7fd98f]=_0x2e15c6);}),_0x3535fd;}get[a0_0x234107(0x1c5)](){const _0x44367e=a0_0x234107;let _0x5aafae=this[_0x44367e(0x1c3)],_0x5dfcd0=this[_0x44367e(0x1b6)];return ValueUtil[_0x44367e(0x1b9)](_0x5aafae)?[]:(ValueUtil['isNotEmpty'](_0x5dfcd0['id'])?(_0x5aafae['id']=_0x5dfcd0['id'],_0x5aafae[_0x44367e(0x1b4)]='M'):_0x5aafae[_0x44367e(0x1b4)]='+',Object[_0x44367e(0x1c6)](_0x5aafae)['forEach'](_0x474b5d=>{const _0x3800a7=_0x44367e;_0x3800a7(0x1c4)==typeof _0x5aafae[_0x474b5d]&&(_0x5aafae[_0x474b5d]={'id':_0x5aafae[_0x474b5d]['id']});}),[_0x5aafae]);}async['fetch'](){const _0x178649=a0_0x234107;if(ValueUtil[_0x178649(0x1b9)](this[_0x178649(0x1d2)]))return;let _0x4681dd=await this[_0x178649(0x1a1)](this['parent_id']);_0x4681dd[_0x178649(0x195)]=0x1;let _0xaf90cd={};Object[_0x178649(0x1c7)](_0xaf90cd,_0x4681dd),_0x4681dd[_0x178649(0x1bc)]=_0xaf90cd,this['record']={..._0x4681dd};}async['save'](){const _0x14a6d7=a0_0x234107;let _0x550819=this[_0x14a6d7(0x1c5)];if(ValueUtil[_0x14a6d7(0x1b9)](_0x550819))return void MetaApi['showAlertPopup'](_0x14a6d7(0x19a),_0x14a6d7(0x1ce));let _0x165f28=await this[_0x14a6d7(0x1a8)](_0x550819);return _0x165f28&&await this[_0x14a6d7(0x1bf)](),_0x165f28;}async[a0_0x234107(0x193)](){const _0x49d8d0=a0_0x234107;this[_0x49d8d0(0x1b6)]&&(this[_0x49d8d0(0x1b6)]={});}[a0_0x234107(0x1a5)](){const _0x4fba5c=a0_0x234107;return this[_0x4fba5c(0x1aa)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x57e74e=a0_0x5813;(function(_0x30e503,_0x2b3f1f){const _0x1cf01c=a0_0x5813,_0x24c57e=_0x30e503();while(!![]){try{const _0x2e5f95=parseInt(_0x1cf01c(0xf3))/0x1*(-parseInt(_0x1cf01c(0xcc))/0x2)+parseInt(_0x1cf01c(0x103))/0x3+parseInt(_0x1cf01c(0xea))/0x4*(-parseInt(_0x1cf01c(0xeb))/0x5)+-parseInt(_0x1cf01c(0xd4))/0x6+parseInt(_0x1cf01c(0xc5))/0x7+parseInt(_0x1cf01c(0xfd))/0x8*(parseInt(_0x1cf01c(0xc4))/0x9)+parseInt(_0x1cf01c(0xf0))/0xa*(parseInt(_0x1cf01c(0xdc))/0xb);if(_0x2e5f95===_0x2b3f1f)break;else _0x24c57e['push'](_0x24c57e['shift']());}catch(_0x2c28ed){_0x24c57e['push'](_0x24c57e['shift']());}}}(a0_0x2bec,0x67d6f));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x2bec(){const _0x3be5f5=['grid','importable','169496oBUsHH','exportable','keys','record','shadowRoot','filter','427977evDopa','export','operator','search','#detail','value','filterFormId','gristConfigSet','clear','243TqMkRb','2616481CTCQyf','findOne','grist','meta-tab-element','actions','getParams','context','4SkxjYq','main','map','gridColumnConfig','useMasterFilterForm','isNotEmpty','ox-grist','save','4210062IHCkKv','getAndParseMenuMeta','pageInitialized','___data','firstUpdated','gridConfig','ox-filters-form-base','querySelector','22FHhzPa','options','startsWith','isElement','parseGristConfigs','name','gristId','filterForm','properties','dataSet','renderRoot','grid_column','connectedCallback','tTitle','889388qblXia','5wPkwac','getBasicGristTabStyles','columns','title','useFilterForm','4048430pttDuw','fetch','getGristTabHtml','274413Nledyt','updateMultiple','activityDataSet','forEach','find','getSelectedIdList','patchesForUpdateMultiple','beforeFetch'];a0_0x2bec=function(){return _0x3be5f5;};return a0_0x2bec();}function a0_0x5813(_0x29edd1,_0x431f84){const _0x2becda=a0_0x2bec();return a0_0x5813=function(_0x581326,_0x20cc31){_0x581326=_0x581326-0xbc;let _0x5778e4=_0x2becda[_0x581326];return _0x5778e4;},a0_0x5813(_0x29edd1,_0x431f84);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x476a94=>class extends MetaButtonMixin(_0x476a94){static get['styles'](){const _0x5e1d76=a0_0x5813;return MetaApi[_0x5e1d76(0xec)]();}static get[a0_0x57e74e(0xe4)](){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_0x57e74e(0xc7)](){const _0x3f399f=a0_0x57e74e;return this['renderRoot'][_0x3f399f(0xdb)](this[_0x3f399f(0xe2)]);}get[a0_0x57e74e(0xe3)](){const _0xf66c29=a0_0x57e74e;return this[_0xf66c29(0x101)]?.[_0xf66c29(0xdb)](this[_0xf66c29(0xc1)]);}get['detailElement'](){const _0x324e22=a0_0x57e74e;return this[_0x324e22(0x101)]['querySelector'](_0x324e22(0xbf));}get[a0_0x57e74e(0xcb)](){const _0x3dbb0d=a0_0x57e74e;let _0x4077f6=MetaUiUtil['getContextObject'](this);return _0x4077f6[_0x3dbb0d(0xc9)]&&delete _0x4077f6['actions'],_0x4077f6[_0x3dbb0d(0xfe)]&&delete _0x4077f6[_0x3dbb0d(0xfe)],_0x4077f6['importable']&&delete _0x4077f6[_0x3dbb0d(0xfc)],_0x4077f6;}async[a0_0x57e74e(0xe8)](){const _0x25f5fe=a0_0x57e74e;this[_0x25f5fe(0xe2)]=_0x25f5fe(0xd2),this[_0x25f5fe(0xc1)]=_0x25f5fe(0xda),await this[_0x25f5fe(0xd5)](),this['isElement']&&await this[_0x25f5fe(0xe0)](),this['activityDataSet']&&(this[_0x25f5fe(0xe5)]=(this[_0x25f5fe(0xf5)]||{})[_0x25f5fe(0xcd)]),super[_0x25f5fe(0xe8)]&&await super[_0x25f5fe(0xe8)]();}async[a0_0x57e74e(0xd8)](){const _0x3bc92a=a0_0x57e74e;super[_0x3bc92a(0xd8)]&&await super[_0x3bc92a(0xd8)]();}async[a0_0x57e74e(0xd6)](){const _0x4d90e3=a0_0x57e74e;this['isPage']&&await this[_0x4d90e3(0xe0)](),super[_0x4d90e3(0xd6)]&&await super['pageInitialized']();}['render'](){const _0x5a15b0=a0_0x57e74e;return MetaApi[_0x5a15b0(0xf2)](this);}['parseBasicGridConfigs'](_0x4338f8){const _0x2089e0=a0_0x57e74e;this[_0x2089e0(0xd9)]=_0x4338f8[_0x2089e0(0xfb)],this[_0x2089e0(0xcf)]=_0x4338f8[_0x2089e0(0xe7)],this['searchConfig']=_0x4338f8[_0x2089e0(0xbe)];}async[a0_0x57e74e(0xe0)](){const _0x3ae1bf=a0_0x57e74e;this[_0x3ae1bf(0xc2)]=await MetaApi['parseGridConfigSet'](this),this[_0x3ae1bf(0xd0)]=!0x0===this[_0x3ae1bf(0xef)],this[_0x3ae1bf(0xef)]=!0x1,this['searchFields']=this[_0x3ae1bf(0xc2)][_0x3ae1bf(0xed)][_0x3ae1bf(0x102)](_0x306303=>_0x306303[_0x3ae1bf(0x102)])[_0x3ae1bf(0xce)](_0x5c7124=>{const _0x296152=_0x3ae1bf;let _0x8c2240={'name':_0x5c7124[_0x296152(0xe1)],'type':_0x5c7124['type'],'label':_0x5c7124['header'],'operator':_0x5c7124[_0x296152(0x102)]['operator']?_0x5c7124[_0x296152(0x102)][_0x296152(0xbd)]:'eq'};return _0x5c7124[_0x296152(0x100)]['options']&&(_0x8c2240['options']=_0x5c7124[_0x296152(0x100)][_0x296152(0xdd)]),_0x5c7124['filter']['value']&&(searchFields[_0x296152(0xc0)]=_0x5c7124[_0x296152(0x102)]['value']),_0x8c2240;});}async[a0_0x57e74e(0xf1)](){const _0x5e9a03=a0_0x57e74e;await this[_0x5e9a03(0xc7)][_0x5e9a03(0xf1)]();}async[a0_0x57e74e(0xfa)]({page:_0x5e33c2=0x0,limit:_0x5132f6=0x0,sortings:_0x4f2432=[],filters:_0x5bc9da=[]}){const _0x459977=a0_0x57e74e;let _0xa7abaa=this[_0x459977(0xe6)][_0x459977(0xdb)](_0x459977(0xc8));return await _0xa7abaa[_0x459977(0xc3)](),!0x0;}async[a0_0x57e74e(0xd3)](){const _0x2e3c8b=a0_0x57e74e;let _0x114155=MetaApi[_0x2e3c8b(0xf9)](this[_0x2e3c8b(0xc7)]);!!ValueUtil[_0x2e3c8b(0xd1)](_0x114155)&&await this[_0x2e3c8b(0xf4)](_0x114155)&&this[_0x2e3c8b(0xf1)]();}async[a0_0x57e74e(0xf7)](){const _0x23c9de=a0_0x57e74e;let _0xd4a628=MetaApi[_0x23c9de(0xf8)](this[_0x23c9de(0xc7)],!0x0);return ValueUtil[_0x23c9de(0xd1)](_0xd4a628)?await this[_0x23c9de(0xc6)](_0xd4a628[0x0]):{};}async['delete'](){const _0x47dfb8=a0_0x57e74e;let _0x127ad4=MetaApi[_0x47dfb8(0xf8)](this[_0x47dfb8(0xc7)],!0x0);!!ValueUtil[_0x47dfb8(0xd1)](_0x127ad4)&&await this['deleteByIds'](_0x127ad4)&&this[_0x47dfb8(0xf1)]();}async[a0_0x57e74e(0xbc)](){const _0x568183=a0_0x57e74e;let _0x2be906=TermsUtil[_0x568183(0xe9)](ValueUtil[_0x568183(0xca)](this['menuInfo'],_0x568183(0xee)));return await MetaApi['exportableData'](this[_0x568183(0xdf)],_0x2be906,this['grist']);}async['import'](){}['getData'](){const _0x230e6d=a0_0x57e74e;let _0x560099=this[_0x230e6d(0xc7)][_0x230e6d(0xd7)]['records'];return _0x560099=JSON['parse'](JSON['stringify'](_0x560099)),_0x560099[_0x230e6d(0xf6)](_0x500aff=>{const _0x2dc2d2=_0x230e6d;Object[_0x2dc2d2(0xff)](_0x500aff)[_0x2dc2d2(0xf6)](_0x37b921=>{const _0xb2f28c=_0x2dc2d2;_0x37b921[_0xb2f28c(0xde)]('__')&&delete _0x500aff[_0x37b921];});}),{'main':_0x560099,'detail':this['renderRoot'][_0x230e6d(0xdb)]('meta-tab-element')['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x586f1d=a0_0x4341;(function(_0x334b83,_0x2315a4){const _0x4f1a39=a0_0x4341,_0x216316=_0x334b83();while(!![]){try{const _0x5abe44=-parseInt(_0x4f1a39(0x11b))/0x1+-parseInt(_0x4f1a39(0x113))/0x2*(parseInt(_0x4f1a39(0x13a))/0x3)+parseInt(_0x4f1a39(0x14b))/0x4+parseInt(_0x4f1a39(0x149))/0x5*(-parseInt(_0x4f1a39(0x116))/0x6)+-parseInt(_0x4f1a39(0x134))/0x7*(-parseInt(_0x4f1a39(0x146))/0x8)+-parseInt(_0x4f1a39(0x10e))/0x9*(parseInt(_0x4f1a39(0x114))/0xa)+parseInt(_0x4f1a39(0x128))/0xb;if(_0x5abe44===_0x2315a4)break;else _0x216316['push'](_0x216316['shift']());}catch(_0x177067){_0x216316['push'](_0x216316['shift']());}}}(a0_0x20b1,0xc2dee));function a0_0x4341(_0x30758a,_0x3be2f9){const _0x20b112=a0_0x20b1();return a0_0x4341=function(_0x434192,_0x24e570){_0x434192=_0x434192-0x107;let _0x51b9c4=_0x20b112[_0x434192];return _0x51b9c4;},a0_0x4341(_0x30758a,_0x3be2f9);}function a0_0x20b1(){const _0xb288b9=['deleteByIds','dataSet','findOne','export','2264841yjSplg','searchFields','ox-filters-form-base','filter','activityDataSet','474646SEZsyH','40FYxoRM','record','2578272dvLjwN','filterFormId','querySelector','stringify','tTitle','821440huluQg','isElement','parseGridConfigSet','keys','import','parseGristConfigs','parse','firstUpdated','gridConfig','searchConfig','useFilterForm','connectedCallback','options','42339198SLjtLv','parseBasicGridConfigs','renderRoot','getMasterDetailHtml','forEach','map','beforeFetch','clear','header','actions','detailElement','gristId','3612azfuwi','grid_column','isPage','importable','pageInitialized','shadowRoot','18GhtqSh','patchesForUpdateMultiple','grist','getContextObject','gristConfigSet','name','menuInfo','exportableData','properties','exportable','isNotEmpty','search','3408bjfgps','value','type','15qlwPzl','fetch','5081864urhAwK','getAndParseMenuMeta','title','getSelectedIdList','ox-grist','context'];a0_0x20b1=function(){return _0xb288b9;};return a0_0x20b1();}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=_0x4542f1=>class extends MetaButtonMixin(_0x4542f1){static get['styles'](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x586f1d(0x142)](){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_0x586f1d(0x13c)](){const _0x50abac=a0_0x586f1d;return this[_0x50abac(0x12a)][_0x50abac(0x118)](this[_0x50abac(0x133)]);}get['filterForm'](){const _0x39e3d2=a0_0x586f1d;return this[_0x39e3d2(0x139)]?.[_0x39e3d2(0x118)](this[_0x39e3d2(0x117)]);}get[a0_0x586f1d(0x109)](){const _0x4a6999=a0_0x586f1d;let _0x81d00f=MetaUiUtil[_0x4a6999(0x13d)](this);return _0x81d00f[_0x4a6999(0x131)]&&delete _0x81d00f[_0x4a6999(0x131)],_0x81d00f[_0x4a6999(0x143)]&&delete _0x81d00f[_0x4a6999(0x143)],_0x81d00f[_0x4a6999(0x137)]&&delete _0x81d00f['importable'],_0x81d00f;}async['connectedCallback'](){const _0x2da686=a0_0x586f1d;this[_0x2da686(0x133)]=_0x2da686(0x108),this[_0x2da686(0x117)]=_0x2da686(0x110),await this[_0x2da686(0x14c)](),this[_0x2da686(0x11c)]&&await this[_0x2da686(0x120)](),this[_0x2da686(0x112)]&&(this[_0x2da686(0x10b)]=(this[_0x2da686(0x112)]||{})['main']),super[_0x2da686(0x126)]&&await super[_0x2da686(0x126)]();}async[a0_0x586f1d(0x122)](){super['firstUpdated']&&await super['firstUpdated']();}async['pageInitialized'](){const _0x5a317d=a0_0x586f1d;this[_0x5a317d(0x136)]&&await this[_0x5a317d(0x120)](),super[_0x5a317d(0x138)]&&await super[_0x5a317d(0x138)]();}['render'](){const _0x10000a=a0_0x586f1d;return MetaApi[_0x10000a(0x12b)](this);}[a0_0x586f1d(0x129)](_0x45e866){const _0x554401=a0_0x586f1d;this[_0x554401(0x123)]=_0x45e866['grid'],this['gridColumnConfig']=_0x45e866[_0x554401(0x135)],this[_0x554401(0x124)]=_0x45e866[_0x554401(0x145)];}async[a0_0x586f1d(0x120)](){const _0x1e7cce=a0_0x586f1d;this[_0x1e7cce(0x13e)]=await MetaApi[_0x1e7cce(0x11d)](this),this['useMasterFilterForm']=!0x0===this[_0x1e7cce(0x125)],this[_0x1e7cce(0x125)]=!0x1,this[_0x1e7cce(0x10f)]=this['gristConfigSet']['columns']['filter'](_0x227ae3=>_0x227ae3[_0x1e7cce(0x111)])[_0x1e7cce(0x12d)](_0x53b76b=>{const _0x39e30e=_0x1e7cce;let _0x4d2570={'name':_0x53b76b[_0x39e30e(0x13f)],'type':_0x53b76b[_0x39e30e(0x148)],'label':_0x53b76b[_0x39e30e(0x130)],'operator':_0x53b76b[_0x39e30e(0x111)]['operator']?_0x53b76b[_0x39e30e(0x111)]['operator']:'eq'};return _0x53b76b['record'][_0x39e30e(0x127)]&&(_0x4d2570['options']=_0x53b76b[_0x39e30e(0x115)][_0x39e30e(0x127)]),_0x53b76b[_0x39e30e(0x111)][_0x39e30e(0x147)]&&(searchFields[_0x39e30e(0x147)]=_0x53b76b[_0x39e30e(0x111)][_0x39e30e(0x147)]),_0x4d2570;});}async[a0_0x586f1d(0x14a)](){await this['grist']['fetch']();}async[a0_0x586f1d(0x12e)]({page:_0x3779ce=0x0,limit:_0x4a9134=0x0,sortings:_0x11b11d=[],filters:_0x5bac8f=[]}){const _0x194e2a=a0_0x586f1d;return this[_0x194e2a(0x132)]&&this[_0x194e2a(0x132)][_0x194e2a(0x12f)]&&await this['detailElement'][_0x194e2a(0x12f)](),!0x0;}async['save'](){const _0x417048=a0_0x586f1d;let _0x40b556=MetaApi[_0x417048(0x13b)](this[_0x417048(0x13c)]);!!ValueUtil[_0x417048(0x144)](_0x40b556)&&await this['updateMultiple'](_0x40b556)&&this[_0x417048(0x14a)]();}async['find'](){const _0x40db3f=a0_0x586f1d;let _0x56f84e=MetaApi[_0x40db3f(0x107)](this[_0x40db3f(0x13c)],!0x0);return ValueUtil[_0x40db3f(0x144)](_0x56f84e)?await this[_0x40db3f(0x10c)](_0x56f84e[0x0]):{};}async['delete'](){const _0x113614=a0_0x586f1d;let _0x6bb8c3=MetaApi[_0x113614(0x107)](this['grist'],!0x0);!!ValueUtil[_0x113614(0x144)](_0x6bb8c3)&&await this[_0x113614(0x10a)](_0x6bb8c3)&&this[_0x113614(0x14a)]();}async[a0_0x586f1d(0x10d)](){const _0x355133=a0_0x586f1d;let _0x55a71d=TermsUtil[_0x355133(0x11a)](ValueUtil['getParams'](this[_0x355133(0x140)],_0x355133(0x14d)));return await MetaApi[_0x355133(0x141)](this[_0x355133(0x11c)],_0x55a71d,this[_0x355133(0x13c)]);}async[a0_0x586f1d(0x11f)](){}['getData'](){const _0x4cc8da=a0_0x586f1d;let _0x4a6d20=this[_0x4cc8da(0x13c)]['___data']['records'];return _0x4a6d20=JSON[_0x4cc8da(0x121)](JSON[_0x4cc8da(0x119)](_0x4a6d20)),_0x4a6d20[_0x4cc8da(0x12c)](_0x20c372=>{const _0xb943c5=_0x4cc8da;Object[_0xb943c5(0x11e)](_0x20c372)[_0xb943c5(0x12c)](_0x30b116=>{_0x30b116['startsWith']('__')&&delete _0x20c372[_0x30b116];});}),{'main':_0x4a6d20,'detail':this['detailElement']['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x55a6e4=a0_0x2526;function a0_0xf243(){const _0x4ba259=['4494322BFHNZC','4neJxKX','list_func','getPageNavigateParams','2kSlqYO','isEmpty','getParams','infinityPage','232206dmfRps','47155INagFA','lifecycle','formConfigSet','15250040xrQYHC','parent_id','updateMultiple','deleteListByIds','push','func','value','length','mutation','1036016zjCwNP','fetchHandler','dataSet','includes','name','294kfTigc','mainFilterForm','isPage','after_set_fields','gql','756fCDFYR','pass','filters','deleteByIds','beforeFetch','query','parseBasicServiceConfigs','isElement','filter','findOne','records','gqlInfo','skip_fields','getQueryFilters','map','is_activity','searchByPagination','118848QqUFTB','params','isArray','gristConfigSet','filterForm','columns','keys','isNotEmpty','multiple','afterFetch','parse','split','delete','forEach','44849827dHAjjl'];a0_0xf243=function(){return _0x4ba259;};return a0_0xf243();}(function(_0x466b0b,_0x408365){const _0x4252a9=a0_0x2526,_0x40230a=_0x466b0b();while(!![]){try{const _0x58163f=parseInt(_0x4252a9(0x1a6))/0x1*(parseInt(_0x4252a9(0x195))/0x2)+-parseInt(_0x4252a9(0x199))/0x3*(-parseInt(_0x4252a9(0x192))/0x4)+-parseInt(_0x4252a9(0x19a))/0x5*(-parseInt(_0x4252a9(0x1ab))/0x6)+parseInt(_0x4252a9(0x191))/0x7+-parseInt(_0x4252a9(0x1c1))/0x8*(-parseInt(_0x4252a9(0x1b0))/0x9)+parseInt(_0x4252a9(0x19d))/0xa+-parseInt(_0x4252a9(0x190))/0xb;if(_0x58163f===_0x408365)break;else _0x40230a['push'](_0x40230a['shift']());}catch(_0x1a7355){_0x40230a['push'](_0x40230a['shift']());}}}(a0_0xf243,0xdef52));import{adjustFilters}from'@operato/utils';function a0_0x2526(_0x3a375f,_0x1110ae){const _0xf2433=a0_0xf243();return a0_0x2526=function(_0x2526da,_0x88455a){_0x2526da=_0x2526da-0x185;let _0x2866db=_0xf2433[_0x2526da];return _0x2866db;},a0_0x2526(_0x3a375f,_0x1110ae);}import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x5c770e=>class extends MetaBaseMixin(_0x5c770e){static get['properties'](){return{'gqlInfo':Object};}[a0_0x55a6e4(0x1b6)](_0xbde9e9){const _0x534522=a0_0x55a6e4;this[_0x534522(0x1bb)]=_0xbde9e9[_0x534522(0x1af)];}async[a0_0x55a6e4(0x1a7)]({page:_0x31017a=0x0,limit:_0xf9b9be=0x0,sortings:_0x545c96=[],filters:_0x5b3645=[]}){const _0x283652=a0_0x55a6e4;if(this[_0x283652(0x1bf)])return{'total':0x0,'records':this['dataSet']||[]};if(!0x0===this[_0x283652(0x198)]&&(_0x31017a=0x0,_0xf9b9be=0x0),this['beforeFetch']&&0x0==await this[_0x283652(0x1b4)]({'page':_0x31017a,'limit':_0xf9b9be,'sortings':_0x545c96,'filters':_0x5b3645}))return;if(!this[_0x283652(0x185)])return{'total':0x0,'records':[]};let _0x590f0e=ValueUtil[_0x283652(0x196)](_0x5b3645)?this['mainFilterForm']?await this[_0x283652(0x1ac)][_0x283652(0x1bd)]()||[]:await this[_0x283652(0x186)]?.[_0x283652(0x1bd)]()||[]:_0x5b3645,_0x4a3421=ValueUtil[_0x283652(0x197)](this[_0x283652(0x1bb)],_0x283652(0x1b5),_0x283652(0x193)),_0x31f09d=ValueUtil[_0x283652(0x197)](this['gqlInfo'],'query',_0x283652(0x1b2)),_0x2d4708=ValueUtil[_0x283652(0x197)](this[_0x283652(0x1bb)],_0x283652(0x1b5),_0x283652(0x1ae));if(ValueUtil['isNotEmpty'](_0x31f09d)&&(_0x590f0e=adjustFilters(_0x590f0e,_0x31f09d)),_0x590f0e['push'](...this['getPageNavigateParams']()),this[_0x283652(0x1b7)]&&!this['mainFilterForm']){let _0x5afb9e=ValueUtil[_0x283652(0x197)](this[_0x283652(0x1bb)],_0x283652(0x1b5),'parent_id');if(!ValueUtil[_0x283652(0x189)](_0x5afb9e)||!ValueUtil['isNotEmpty'](this[_0x283652(0x19e)]))return{'total':0x0,'records':[]};_0x590f0e=adjustFilters(_0x590f0e,[{'name':_0x5afb9e,'operator':'eq','value':this['parent_id']}]);}let _0x54f9f4=Object[_0x283652(0x188)](_0x2d4708||{}),_0x1b4568=MetaApi['getSelectColumns'](this[_0x283652(0x185)][_0x283652(0x187)][_0x283652(0x1b8)](_0x3d7d21=>!_0x54f9f4[_0x283652(0x1a9)](_0x3d7d21[_0x283652(0x1aa)]))),_0x183c23=await MetaApi[_0x283652(0x1c0)](_0x4a3421,_0x590f0e,_0x545c96,_0x31017a,_0xf9b9be,_0x1b4568);if(this[_0x283652(0x18b)]){let _0x1a7b0b=await this[_0x283652(0x18b)]({'page':_0x31017a,'limit':_0xf9b9be,'sortings':_0x545c96,'filters':_0x5b3645},_0x183c23);if(_0x1a7b0b)return _0x1a7b0b;}return ValueUtil[_0x283652(0x189)](_0x2d4708)&&ValueUtil[_0x283652(0x189)](_0x183c23)&&ValueUtil['isNotEmpty'](_0x183c23[_0x283652(0x1ba)])&&_0x183c23[_0x283652(0x1ba)][_0x283652(0x1be)](_0xd5c2de=>(_0x54f9f4[_0x283652(0x18f)](_0x515b09=>{const _0x48eeb3=_0x283652;_0xd5c2de[_0x515b09]=ValueUtil[_0x48eeb3(0x197)](_0xd5c2de,..._0x2d4708[_0x515b09]['split']('.'));}),_0xd5c2de)),_0x183c23;}[a0_0x55a6e4(0x194)](){const _0x10fc59=a0_0x55a6e4;if(0x0==this[_0x10fc59(0x1ad)])return[];let _0x3113da=this[_0x10fc59(0x19b)]?.[_0x10fc59(0x1c2)]?this[_0x10fc59(0x19b)][_0x10fc59(0x1c2)]:{};if(!_0x3113da[_0x10fc59(0x1b1)])return[];let _0x548eb1=_0x3113da[_0x10fc59(0x1b1)],_0x3c4cde=JSON[_0x10fc59(0x18c)](_0x548eb1),_0xb0feb=0x1==_0x3c4cde[_0x10fc59(0x1a4)]?'eq':'in',_0x4b3b4a={},_0x422317=[];return Object[_0x10fc59(0x188)](_0x3c4cde[0x0])[_0x10fc59(0x18f)](_0x3ef8bb=>{_0x4b3b4a[_0x3ef8bb]={'name':_0x3ef8bb,'operator':_0xb0feb,'value':'eq'===_0xb0feb?_0x3c4cde[0x0][_0x3ef8bb]:[]};}),_0x3c4cde['length']>0x1&&_0x3c4cde[_0x10fc59(0x18f)](_0x303ef2=>{const _0x5d242f=_0x10fc59;Object[_0x5d242f(0x188)](_0x303ef2)[_0x5d242f(0x18f)](_0x49146b=>{const _0x10ea9c=_0x5d242f;_0x4b3b4a[_0x49146b][_0x10ea9c(0x1a3)][_0x10ea9c(0x1a1)](_0x303ef2[_0x49146b]);});}),Object['keys'](_0x4b3b4a)[_0x10fc59(0x18f)](_0x45d6a1=>{const _0x22ff27=_0x10fc59;_0x422317[_0x22ff27(0x1a1)](_0x4b3b4a[_0x45d6a1]);}),_0x422317;}async[a0_0x55a6e4(0x1b9)](_0x53e551){const _0x31c90d=a0_0x55a6e4;if(this[_0x31c90d(0x1bf)])return this[_0x31c90d(0x1a8)]||{};let _0x3f578c=ValueUtil['getParams'](this['gqlInfo'],_0x31c90d(0x1b5),'find_one_func'),_0x59097d=ValueUtil[_0x31c90d(0x197)](this[_0x31c90d(0x1bb)],'query',_0x31c90d(0x1ae)),_0x1722dc=Object[_0x31c90d(0x188)](_0x59097d||{}),_0x4c0b54=MetaApi['getSelectColumns']((this[_0x31c90d(0x185)]?this[_0x31c90d(0x185)]:{'columns':this[_0x31c90d(0x19c)]})[_0x31c90d(0x187)][_0x31c90d(0x1b8)](_0x322f63=>!_0x1722dc[_0x31c90d(0x1a9)](_0x322f63[_0x31c90d(0x1aa)]))),_0x3672fe=await MetaApi[_0x31c90d(0x1b9)](_0x3f578c,_0x53e551,_0x4c0b54);return ValueUtil[_0x31c90d(0x189)](_0x59097d)&&ValueUtil[_0x31c90d(0x189)](_0x3672fe)&&_0x1722dc[_0x31c90d(0x18f)](_0x29f6f0=>{const _0x2885fe=_0x31c90d;_0x3672fe[_0x29f6f0]=ValueUtil['getParams'](_0x3672fe,..._0x59097d[_0x29f6f0][_0x2885fe(0x18d)]('.'));}),_0x3672fe;}async[a0_0x55a6e4(0x1b3)](_0x5d63df){const _0x34632c=a0_0x55a6e4;let _0x588b4f=ValueUtil[_0x34632c(0x197)](this[_0x34632c(0x1bb)],_0x34632c(0x1a5),_0x34632c(0x18e),_0x34632c(0x1a2));return await MetaApi[_0x34632c(0x1a0)](_0x5d63df,_0x588b4f);}async[a0_0x55a6e4(0x19f)](_0x85e452){const _0x1905a4=a0_0x55a6e4;let _0x5029fa=ValueUtil[_0x1905a4(0x197)](this['gqlInfo'],_0x1905a4(0x1a5),_0x1905a4(0x18a),_0x1905a4(0x1a2)),_0x2d5163=ValueUtil[_0x1905a4(0x197)](this[_0x1905a4(0x1bb)],'mutation',_0x1905a4(0x18a),_0x1905a4(0x1bc));if(ValueUtil[_0x1905a4(0x189)](_0x2d5163)&&(_0x2d5163=_0x2d5163[_0x1905a4(0x1be)](_0x569224=>_0x569224['includes']('.')?_0x569224['split']('.'):_0x569224),_0x85e452=_0x85e452[_0x1905a4(0x1be)](_0x5b0a72=>(_0x2d5163[_0x1905a4(0x18f)](_0x531552=>{const _0x4ee616=_0x1905a4;Array[_0x4ee616(0x1c3)](_0x531552)?delete _0x5b0a72[_0x531552[0x0]][_0x531552[0x1]]:delete _0x5b0a72[_0x531552];}),_0x5b0a72))),this[_0x1905a4(0x1b7)]&&ValueUtil[_0x1905a4(0x189)](this['parent_id'])){let _0x2dd7fb=ValueUtil[_0x1905a4(0x197)](this[_0x1905a4(0x1bb)],'mutation',_0x1905a4(0x18a),'parent_id');ValueUtil[_0x1905a4(0x189)](_0x2dd7fb)&&_0x85e452['forEach'](_0x539702=>{const _0x49767e=_0x1905a4;if(_0x2dd7fb[_0x49767e(0x1a9)]('.')){let _0x2111d1=_0x2dd7fb[_0x49767e(0x18d)]('.');_0x539702[_0x2111d1[0x0]]={},_0x539702[_0x2111d1[0x0]][_0x2111d1[0x1]]=this[_0x49767e(0x19e)];}else _0x539702[_0x2dd7fb]=this['parent_id'];});}return await MetaApi[_0x1905a4(0x19f)](_0x5029fa,_0x85e452);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x161333=a0_0x883e;(function(_0x5d9938,_0x5378a5){const _0x3e9e6a=a0_0x883e,_0x17cc04=_0x5d9938();while(!![]){try{const _0x49e841=-parseInt(_0x3e9e6a(0xa9))/0x1*(parseInt(_0x3e9e6a(0xcc))/0x2)+-parseInt(_0x3e9e6a(0xc9))/0x3*(parseInt(_0x3e9e6a(0xbc))/0x4)+-parseInt(_0x3e9e6a(0xac))/0x5+-parseInt(_0x3e9e6a(0xbd))/0x6+parseInt(_0x3e9e6a(0xad))/0x7*(-parseInt(_0x3e9e6a(0xcd))/0x8)+parseInt(_0x3e9e6a(0x9b))/0x9*(parseInt(_0x3e9e6a(0x99))/0xa)+-parseInt(_0x3e9e6a(0xb0))/0xb*(-parseInt(_0x3e9e6a(0xb3))/0xc);if(_0x49e841===_0x5378a5)break;else _0x17cc04['push'](_0x17cc04['shift']());}catch(_0x1124d1){_0x17cc04['push'](_0x17cc04['shift']());}}}(a0_0x30ac,0x8053a));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_0x883e(_0x2b586c,_0x1b135b){const _0x30ac94=a0_0x30ac();return a0_0x883e=function(_0x883ef6,_0x54aec0){_0x883ef6=_0x883ef6-0x98;let _0x183a7d=_0x30ac94[_0x883ef6];return _0x183a7d;},a0_0x883e(_0x2b586c,_0x1b135b);}function a0_0x30ac(){const _0x33d227=['clear','header','firstUpdated','operator','options','beforeFetch','name','60OdTnlI','filter','384435YPavmd','grist','context','useFilterForm','querySelector','exportable','detailElement','value','masterElement','pageInitialized','search','importable','map','parseBasicGridConfigs','278vZKSft','record','getMainGrist','4239310seymVc','5472593PcpYQz','grid_column','parseGristConfigs','11hbinIF','actions','getContextObject','44585868EbzcQk','isPage','gristId','isElement','fetch','gristConfigSet','getTabDetailHtml','gridConfig','filterFormId','3340wNwtJh','1801116zvCTLd','grid','activityDataSet','ox-filters-form-base','getBasicTabDetailStyles','searchConfig','styles','connectedCallback','buttonConfig','columns','getData','dataSet','1950VoqdZg','useMasterFilterForm','ox-grist','7004CFSiki','8yAsJDp'];a0_0x30ac=function(){return _0x33d227;};return a0_0x30ac();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabDetailMixin=_0x19475c=>class extends MetaButtonMixin(_0x19475c){static get[a0_0x161333(0xc3)](){const _0xee37bb=a0_0x161333;return MetaApi[_0xee37bb(0xc1)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x161333(0x9c)](){const _0x1b2ed9=a0_0x161333;return this[_0x1b2ed9(0xa3)][_0x1b2ed9(0xab)]();}get['filterForm'](){const _0x397f95=a0_0x161333;return this['shadowRoot']?.[_0x397f95(0x9f)](this['filterFormId']);}get[a0_0x161333(0x9d)](){const _0x3d2e28=a0_0x161333;let _0x3b112c=MetaUiUtil[_0x3d2e28(0xb2)](this);return _0x3b112c[_0x3d2e28(0xb1)]&&delete _0x3b112c['actions'],_0x3b112c['exportable']&&delete _0x3b112c[_0x3d2e28(0xa0)],_0x3b112c[_0x3d2e28(0xa6)]&&delete _0x3b112c[_0x3d2e28(0xa6)],_0x3b112c;}async[a0_0x161333(0xc4)](){const _0x3eeb9f=a0_0x161333;this[_0x3eeb9f(0xb5)]=_0x3eeb9f(0xcb),this[_0x3eeb9f(0xbb)]=_0x3eeb9f(0xc0),await this['getAndParseMenuMeta'](),this[_0x3eeb9f(0xb6)]&&await this[_0x3eeb9f(0xaf)](),this[_0x3eeb9f(0xbf)]&&(this[_0x3eeb9f(0xc8)]=(this[_0x3eeb9f(0xbf)]||{})['main']),super[_0x3eeb9f(0xc4)]&&await super[_0x3eeb9f(0xc4)]();}async['firstUpdated'](){const _0x4827ac=a0_0x161333;super[_0x4827ac(0xd0)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x433c79=a0_0x161333;this[_0x433c79(0xb4)]&&await this['parseGristConfigs'](),super[_0x433c79(0xa4)]&&await super[_0x433c79(0xa4)]();}['render'](){const _0x33588a=a0_0x161333;return MetaApi[_0x33588a(0xb9)](this);}[a0_0x161333(0xa8)](_0x50e0e0){const _0x6e118b=a0_0x161333;this[_0x6e118b(0xba)]=_0x50e0e0[_0x6e118b(0xbe)],this['gridColumnConfig']=_0x50e0e0[_0x6e118b(0xae)],this[_0x6e118b(0xc2)]=_0x50e0e0[_0x6e118b(0xa5)];}async[a0_0x161333(0xaf)](){const _0x4f02ba=a0_0x161333;this[_0x4f02ba(0xb8)]=await MetaApi['parseGridConfigSet'](this),this[_0x4f02ba(0xca)]=!0x0===this[_0x4f02ba(0x9e)],this[_0x4f02ba(0x9e)]=!0x1,this[_0x4f02ba(0xc5)]=void 0x0,this['useButtonExport']=!0x1,this['useButtonImport']=!0x1,this['searchFields']=this[_0x4f02ba(0xb8)][_0x4f02ba(0xc6)][_0x4f02ba(0x9a)](_0x223a7d=>_0x223a7d[_0x4f02ba(0x9a)])[_0x4f02ba(0xa7)](_0x2fce7e=>{const _0x2071c6=_0x4f02ba;let _0x2c618f={'name':_0x2fce7e[_0x2071c6(0x98)],'type':_0x2fce7e['type'],'label':_0x2fce7e[_0x2071c6(0xcf)],'operator':_0x2fce7e[_0x2071c6(0x9a)][_0x2071c6(0xd1)]?_0x2fce7e[_0x2071c6(0x9a)][_0x2071c6(0xd1)]:'eq'};return _0x2fce7e[_0x2071c6(0xaa)][_0x2071c6(0xd2)]&&(_0x2c618f[_0x2071c6(0xd2)]=_0x2fce7e[_0x2071c6(0xaa)]['options']),_0x2fce7e[_0x2071c6(0x9a)][_0x2071c6(0xa2)]&&(searchFields[_0x2071c6(0xa2)]=_0x2fce7e['filter'][_0x2071c6(0xa2)]),_0x2c618f;});}async[a0_0x161333(0xb7)](){const _0x1ce5fa=a0_0x161333;await this[_0x1ce5fa(0x9c)][_0x1ce5fa(0xb7)]();}async[a0_0x161333(0xd3)]({page:_0x2c935b=0x0,limit:_0x8dfc0f=0x0,sortings:_0x5a7425=[],filters:_0x44b70e=[]}){const _0x28122e=a0_0x161333;return this[_0x28122e(0xa3)]&&this[_0x28122e(0xa3)][_0x28122e(0xce)]&&await this[_0x28122e(0xa3)][_0x28122e(0xce)](),this[_0x28122e(0xa1)]&&this['detailElement'][_0x28122e(0xce)]&&await this[_0x28122e(0xa1)][_0x28122e(0xce)](),!0x0;}[a0_0x161333(0xc7)](){const _0x20acde=a0_0x161333;return{'master':this[_0x20acde(0xa3)][_0x20acde(0xc7)](),'detail':this[_0x20acde(0xa1)][_0x20acde(0xc7)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2ccc1d=a0_0x3af8;(function(_0x5a441d,_0x134da5){const _0x53ddfc=a0_0x3af8,_0x4cb419=_0x5a441d();while(!![]){try{const _0x4090be=parseInt(_0x53ddfc(0xb7))/0x1*(-parseInt(_0x53ddfc(0xb8))/0x2)+-parseInt(_0x53ddfc(0xc3))/0x3+parseInt(_0x53ddfc(0xbc))/0x4*(-parseInt(_0x53ddfc(0xcd))/0x5)+parseInt(_0x53ddfc(0xc1))/0x6+-parseInt(_0x53ddfc(0xc9))/0x7*(-parseInt(_0x53ddfc(0xa8))/0x8)+parseInt(_0x53ddfc(0xd2))/0x9*(-parseInt(_0x53ddfc(0xc2))/0xa)+parseInt(_0x53ddfc(0xb6))/0xb;if(_0x4090be===_0x134da5)break;else _0x4cb419['push'](_0x4cb419['shift']());}catch(_0x212b58){_0x4cb419['push'](_0x4cb419['shift']());}}}(a0_0x3185,0xd700d));function a0_0x3185(){const _0x479f04=['parseBasicTabConfigs','render','234fxCZmA','name','unshift','pageInitialized','96ybqdvo','grist','icon','getBasicTabHtml','mainFilterForm','param_field','tabRenderConfig','{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22\x20}','main_tab_info','parse','meta-grist-element','tabElements','etcConfig','getMainGrist','2493502mspWlk','273883ZpZGCp','2WtPCpx','getAndParseMenuMeta','getContextObject','includeMainList','20CjRVbi','@things-factory/meta-ui/client/pages/meta-grist-element','forEach','connectedCallback','button','6180438qrarOm','164080tsxzbS','43398MTOGup','clear','tab','firstUpdated','route_name','keys','991410YKFUTw','context','dataSet','currentTabKey','1360705lOkegZ','properties','activityDataSet'];a0_0x3185=function(){return _0x479f04;};return a0_0x3185();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x3af8(_0x5a8ebf,_0x4becfe){const _0x3185f6=a0_0x3185();return a0_0x3af8=function(_0x3af8e0,_0x524186){_0x3af8e0=_0x3af8e0-0xa8;let _0x416ad1=_0x3185f6[_0x3af8e0];return _0x416ad1;},a0_0x3af8(_0x5a8ebf,_0x4becfe);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x5e5637=>class extends MetaButtonMixin(_0x5e5637){static get['styles'](){return MetaApi['getBasicTabStyles']();}static get[a0_0x2ccc1d(0xce)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x2ccc1d(0xca)](){const _0x364080=a0_0x2ccc1d;return MetaUiUtil[_0x364080(0xba)](this);}async[a0_0x2ccc1d(0xbf)](){const _0x28887=a0_0x2ccc1d;this[_0x28887(0xcc)]=void 0x0,await this[_0x28887(0xb9)](),this[_0x28887(0xcf)]&&(this[_0x28887(0xcb)]=this['activityDataSet']),super[_0x28887(0xbf)]&&await super[_0x28887(0xbf)]();}async['firstUpdated'](){const _0x870ce0=a0_0x2ccc1d;super[_0x870ce0(0xc6)]&&await super[_0x870ce0(0xc6)]();}async['pageInitialized'](){const _0x530249=a0_0x2ccc1d;super[_0x530249(0xd5)]&&await super['pageInitialized']();}[a0_0x2ccc1d(0xd1)](){const _0x1a2ace=a0_0x2ccc1d;return MetaApi[_0x1a2ace(0xab)](this);}[a0_0x2ccc1d(0xd0)](_0x3338cf){const _0xa04d38=a0_0x2ccc1d;if(!0x0===this[_0xa04d38(0xbb)]){let _0x2e67ac=this[_0xa04d38(0xb4)][_0xa04d38(0xb0)],_0xd29d81=JSON[_0xa04d38(0xb1)](_0x2e67ac||_0xa04d38(0xaf));_0x3338cf[_0xa04d38(0xc5)][_0xa04d38(0xd4)]({'name':_0xd29d81[_0xa04d38(0xd3)],'display':_0xd29d81['display'],'tagname':_0xa04d38(0xb2),'location':_0xa04d38(0xbd),'parent_field':'id','param_field':_0xa04d38(0xad),'menu':this[_0xa04d38(0xc7)],'icon':_0xd29d81[_0xa04d38(0xaa)],'filter_from':!0x1,'main_filter_form':this[_0xa04d38(0xac)]});}this[_0xa04d38(0xae)]=_0x3338cf[_0xa04d38(0xc5)],_0x3338cf[_0xa04d38(0xc0)]=[];}async[a0_0x2ccc1d(0xc4)](){const _0xabc984=a0_0x2ccc1d;if(this[_0xabc984(0xb3)]){let _0xcd0718=Object[_0xabc984(0xc8)](this[_0xabc984(0xb3)]);for(var _0x4816bd=0x0;_0x4816bd<_0xcd0718['length'];_0x4816bd++)await this[_0xabc984(0xb3)][_0xcd0718[_0x4816bd]][_0xabc984(0xc4)]();}}['getData'](){const _0x576abb=a0_0x2ccc1d;let _0x39c279={};return this['tabElements']&&Object['keys'](this['tabElements'])[_0x576abb(0xbe)](_0x555ec5=>{const _0x532c06=_0x576abb;_0x39c279[_0x555ec5]=this[_0x532c06(0xb3)][_0x555ec5]['getData']();}),_0x39c279;}[a0_0x2ccc1d(0xb5)](){const _0x2dcd12=a0_0x2ccc1d;if(this[_0x2dcd12(0xb3)]){let _0x169330=Object['keys'](this['tabElements']);return this[_0x2dcd12(0xb3)][_0x169330[0x0]][_0x2dcd12(0xa9)];}}};
|