@things-factory/meta-ui 6.0.107 → 6.0.108
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 +5 -5
- 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 +11 -11
- 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_0x5e2870=a0_0x3a5d;(function(_0x337c29,_0x11414a){const _0x150c89=a0_0x3a5d,_0x2fcad3=_0x337c29();while(!![]){try{const _0x32cf0e=parseInt(_0x150c89(0x1cf))/0x1+parseInt(_0x150c89(0x1dd))/0x2+parseInt(_0x150c89(0x1d2))/0x3*(parseInt(_0x150c89(0x1d9))/0x4)+-parseInt(_0x150c89(0x1d7))/0x5+parseInt(_0x150c89(0x1e2))/0x6+parseInt(_0x150c89(0x1cc))/0x7*(-parseInt(_0x150c89(0x1e5))/0x8)+-parseInt(_0x150c89(0x1e6))/0x9;if(_0x32cf0e===_0x11414a)break;else _0x2fcad3['push'](_0x2fcad3['shift']());}catch(_0x21ca95){_0x2fcad3['push'](_0x2fcad3['shift']());}}}(a0_0x229d,0xe2d0f));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x40b4a1 from'graphql-tag';function a0_0x3a5d(_0x15045b,_0x21889f){const _0x229d6d=a0_0x229d();return a0_0x3a5d=function(_0x3a5dab,_0x2e5222){_0x3a5dab=_0x3a5dab-0x1ca;let _0x1bb897=_0x229d6d[_0x3a5dab];return _0x1bb897;},a0_0x3a5d(_0x15045b,_0x21889f);}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';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';function a0_0x229d(){const _0x2a1893=['25252119QXkeli','hamburger','lite-menu-part','HEADERBAR','8715XzDWmR','get','NAVBAR','773974NZVBtp','FRONT_END','value','14943dHEUBc','appName','dispatch','dynamic-menu-part','dynamic-menu','3058655cOgZQj','landscape','1148JPCSpn','rank','UPDATE_META_UI','content','2854798VglViz','UPDATE_META_MENU_TEMPLATE','portrait','filter','query','5630976AaBWWD','items','meta[name=\x22application-name\x22]','1432tfUyjw'];a0_0x229d=function(){return _0x2a1893;};return a0_0x229d();}export const UPDATE_META_UI=a0_0x5e2870(0x1db);export const UPDATE_META_MENU_TEMPLATE=a0_0x5e2870(0x1de);var HAMBURGER;export async function setupMenuPart(_0xcad6e){const _0x58ba7d=a0_0x5e2870;var {hovering:_0x27c9fe=!!isMobileDevice(),slotTemplate:_0x4ce66d,portraitSlotTemplate:_0x2418bb,landscapeSlotTemplate:_0x5ebc56,position:_0x3dc686=VIEWPART_POSITION[_0x58ba7d(0x1ce)]}=_0xcad6e||{};const {hovering:_0x5d9112}=(await clientSettingStore[_0x58ba7d(0x1cd)](_0x58ba7d(0x1d6)))?.[_0x58ba7d(0x1d1)]||{};void 0x0!==_0x5d9112&&(_0x27c9fe=_0x5d9112);const _0xbba13f=_0x3dc686==VIEWPART_POSITION[_0x58ba7d(0x1cb)]?_0x58ba7d(0x1d8):_0x58ba7d(0x1df),_0x1ac2d2=(_0x58ba7d(0x1d8)==_0xbba13f?_0x5ebc56:_0x2418bb)||_0x4ce66d||html``;appendViewpart({'name':_0x58ba7d(0x1ca),'viewpart':{'show':!_0x27c9fe,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x27c9fe,'template':html`<dynamic-menu-part .orientation=${_0xbba13f}>${_0x1ac2d2}</dynamic-menu-part>`},'position':_0x3dc686}),_0x27c9fe&&_0x58ba7d(0x1df)==_0xbba13f?HAMBURGER||(HAMBURGER={'name':_0x58ba7d(0x1e7),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x50d4ab=>toggleOverlay(_0x58ba7d(0x1d5),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x58ba7d(0x1d0)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x4174bf){const _0x5ea0b=a0_0x5e2870;var _0x433906=document['querySelector'](_0x5ea0b(0x1e4))?.[_0x5ea0b(0x1dc)],_0x19103b=(await client[_0x5ea0b(0x1e1)]({'query':a0_0x40b4a1`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0xd68625=a0_0x4888;(function(_0x586249,_0x1dcc1e){const _0xf349bd=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':'active','operator':'eq','value':!0x0},{'name':_0x5ea0b(0x1d3),'operator':'in','value':['',_0x433906]}],'sortings':[{'name':_0x5ea0b(0x1da),'desc':!0x1}]}}))['data']['liteMenus'][_0x5ea0b(0x1e3)];store[_0x5ea0b(0x1d4)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x19103b[_0x5ea0b(0x1e0)](_0x2759a2=>!_0x2759a2[_0x5ea0b(0x1d3)]||_0x2759a2[_0x5ea0b(0x1d3)]===_0x433906),'template':_0x4174bf});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x45f00e=a0_0x7d27;(function(_0x257a69,_0x121394){const _0x150288=a0_0x7d27,_0x2bf06f=_0x257a69();while(!![]){try{const _0x25370e=-parseInt(_0x150288(0x137))/0x1*(parseInt(_0x150288(0x147))/0x2)+-parseInt(_0x150288(0x13b))/0x3*(parseInt(_0x150288(0x148))/0x4)+parseInt(_0x150288(0x140))/0x5+parseInt(_0x150288(0x120))/0x6*(parseInt(_0x150288(0x128))/0x7)+-parseInt(_0x150288(0x124))/0x8+-parseInt(_0x150288(0x130))/0x9*(-parseInt(_0x150288(0x136))/0xa)+parseInt(_0x150288(0x129))/0xb;if(_0x25370e===_0x121394)break;else _0x2bf06f['push'](_0x2bf06f['shift']());}catch(_0xc5ab30){_0x2bf06f['push'](_0x2bf06f['shift']());}}}(a0_0x5c2b,0x6bd53));import{MetaApi}from'./../utils/meta-api';function a0_0x7d27(_0x1138e5,_0x4fad14){const _0x5c2b6b=a0_0x5c2b();return a0_0x7d27=function(_0x7d27d0,_0x502613){_0x7d27d0=_0x7d27d0-0x11e;let _0x5917c3=_0x5c2b6b[_0x7d27d0];return _0x5917c3;},a0_0x7d27(_0x1138e5,_0x4fad14);}import{ValueUtil}from'./../utils/value-util';function a0_0x5c2b(){const _0xcb181a=['fetchHandler','getAndParseMenuMeta','after','1263830yqiuQg','isElement','parseBasicFormConfigs','lifecycle','parseBasicGridConfigs','parseBasicButtonConfigs','errors','377746yllUYM','876xjENZl','executeCallScenarioButtonClick','isPage','getParams','6zKMCIg','etc','parseBasicServiceConfigs','tTitle','6906960RPJjoX','is_popup','isNotEmpty','properties','4366054mHvcLN','6376513XvpCMu','excuteOpenPopupButtonClick','menu','fetch','openDynamicPopup','title_detail','grist','2643894zYdSRn','active','parent_id','params','isDetail','menuInfo','10uJdFMZ','1CDEGwe','parseBasicTabConfigs','is_detail','setParentId','3507ilHgUY','name'];a0_0x5c2b=function(){return _0xcb181a;};return a0_0x5c2b();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0xc3af96=>class extends _0xc3af96{static get[a0_0x45f00e(0x127)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x138604=>Boolean(_0x138604)},'is_popup':{'type':Boolean,'converter':_0x33f5ad=>Boolean(_0x33f5ad)},'is_activity':{'type':Boolean,'converter':_0x156e12=>Boolean(_0x156e12)},'is_readonly':{'type':Boolean,'converter':_0x3aeff6=>Boolean(_0x3aeff6)}};}get[a0_0x45f00e(0x141)](){const _0x200ea7=a0_0x45f00e;return!0x0===this[_0x200ea7(0x139)]||!0x0===this[_0x200ea7(0x125)];}get[a0_0x45f00e(0x134)](){const _0x5b417f=a0_0x45f00e;return!ValueUtil['isEmpty'](this[_0x5b417f(0x139)])&&this[_0x5b417f(0x139)];}async['pageUpdated'](_0x4de97f,_0x3a920b,_0x205cf7){const _0x2123a0=a0_0x45f00e;let _0x474126=this[_0x2123a0(0x143)]?.['params']?this[_0x2123a0(0x143)][_0x2123a0(0x133)]:{};this['isPage']&&this[_0x2123a0(0x131)]&&0x0==_0x205cf7['active']&&ValueUtil[_0x2123a0(0x126)](_0x474126)&&this[_0x2123a0(0x12c)]();}get['isPopup'](){const _0x83f5c1=a0_0x45f00e;return!ValueUtil['isEmpty'](this[_0x83f5c1(0x125)])&&this[_0x83f5c1(0x125)];}get[a0_0x45f00e(0x11e)](){const _0x30df9a=a0_0x45f00e;return!this[_0x30df9a(0x139)]&&!this['is_popup'];}async[a0_0x45f00e(0x13e)](){const _0xe26dc8=a0_0x45f00e;let _0x20be72=await MetaApi['getMenuMeta'](this);_0x20be72&&(this[_0xe26dc8(0x135)]=_0x20be72[_0xe26dc8(0x12b)],this['etcConfig']=_0x20be72[_0xe26dc8(0x121)],this[_0xe26dc8(0x144)]&&this['parseBasicGridConfigs'](_0x20be72),this[_0xe26dc8(0x122)]&&this[_0xe26dc8(0x122)](_0x20be72),this[_0xe26dc8(0x142)]&&this[_0xe26dc8(0x142)](_0x20be72),this[_0xe26dc8(0x138)]&&this[_0xe26dc8(0x138)](_0x20be72),this[_0xe26dc8(0x145)]&&this['parseBasicButtonConfigs'](_0x20be72));}async['fetch'](){const _0x30745d=a0_0x45f00e;ValueUtil[_0x30745d(0x126)](this[_0x30745d(0x12f)])?this[_0x30745d(0x12f)]['fetch']():(ValueUtil['isNotEmpty'](this['filterForm'])||this[_0x30745d(0x13d)])&&await this[_0x30745d(0x13d)]();}async[a0_0x45f00e(0x12a)](_0x304831,_0x1daac3,_0x4ad295){const _0x118749=a0_0x45f00e;let _0x12684e=TermsUtil[_0x118749(0x123)](_0x304831['title']);ValueUtil[_0x118749(0x126)](_0x304831[_0x118749(0x12e)])&&(_0x12684e=_0x12684e+'-'+ValueUtil[_0x118749(0x11f)](_0x1daac3,..._0x304831['title_detail']['split']('.'))),MetaApi[_0x118749(0x12d)](_0x12684e,_0x304831,_0x1daac3,_0x4ad295);}async[a0_0x45f00e(0x149)](_0x253de7,_0x4728a4,_0x4d5a0e){const _0x3f0ea4=a0_0x45f00e;let _0x3c8727=await MetaApi['callScenario'](_0x253de7[_0x3f0ea4(0x13c)],_0x253de7[_0x3f0ea4(0x13c)],_0x4728a4);!0x1!==_0x3c8727&&!_0x3c8727[_0x3f0ea4(0x146)]&&ValueUtil['isNotEmpty'](_0x253de7[_0x3f0ea4(0x13f)])&&_0x4d5a0e();}[a0_0x45f00e(0x13a)](_0x4e6fd4){const _0x2bb3ee=a0_0x45f00e;this[_0x2bb3ee(0x132)]=_0x4e6fd4,this[_0x2bb3ee(0x12c)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x442ae0=a0_0x9fc7;(function(_0x121a9c,_0x52734c){const _0x13f248=a0_0x9fc7,_0x547765=_0x121a9c();while(!![]){try{const _0x5beae8=-parseInt(_0x13f248(0x117))/0x1+parseInt(_0x13f248(0x141))/0x2*(parseInt(_0x13f248(0x105))/0x3)+parseInt(_0x13f248(0x123))/0x4*(-parseInt(_0x13f248(0x137))/0x5)+parseInt(_0x13f248(0x122))/0x6*(-parseInt(_0x13f248(0x13b))/0x7)+-parseInt(_0x13f248(0x107))/0x8+parseInt(_0x13f248(0x127))/0x9*(-parseInt(_0x13f248(0x11a))/0xa)+-parseInt(_0x13f248(0x133))/0xb*(-parseInt(_0x13f248(0x135))/0xc);if(_0x5beae8===_0x52734c)break;else _0x547765['push'](_0x547765['shift']());}catch(_0x17ed59){_0x547765['push'](_0x547765['shift']());}}}(a0_0x12d6,0x6be5d));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_0x12d6(){const _0x3a1b8c=['records','2146616aKWYKX','querySelector','startsWith','isNotEmpty','activityDataSet','connectedCallback','getContextObject','grid_column','import','filterFormId','tTitle','search','dataSet','___data','clear','export','598238YWXVTw','properties','firstUpdated','10KxHgqs','fetch','filterForm','shadowRoot','save','menuInfo','parseBasicGridConfigs','gridColumnConfig','102NdQDvE','3028jfRSdT','getSelectedIdList','parseGristConfigs','forEach','1693998AgIhfa','getData','render','data','gridConfig','pageInitialized','gristId','getBasicGristHtml','parse','grid','stringify','findOne','11iZEJLw','deleteByIds','18437928NiRzpp','getAndParseMenuMeta','3455niTAiL','getBasicGristStyles','title','isElement','92897GatRRO','isPage','parseGridConfigSet','grist','ox-grist','searchConfig','708936AheNiW','styles','patchesForUpdateMultiple','6ddMMwo'];a0_0x12d6=function(){return _0x3a1b8c;};return a0_0x12d6();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x9fc7(_0x43da17,_0x1d607c){const _0x12d692=a0_0x12d6();return a0_0x9fc7=function(_0x9fc725,_0x3c1c42){_0x9fc725=_0x9fc725-0x104;let _0x1b1956=_0x12d692[_0x9fc725];return _0x1b1956;},a0_0x9fc7(_0x43da17,_0x1d607c);}export const MetaBasicGristMixin=_0x5218a6=>class extends MetaButtonMixin(_0x5218a6){static get[a0_0x442ae0(0x142)](){const _0x485141=a0_0x442ae0;return MetaApi[_0x485141(0x138)]();}static get[a0_0x442ae0(0x118)](){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 _0x382df5=a0_0x442ae0;return this['renderRoot']?.[_0x382df5(0x108)](this[_0x382df5(0x12d)]);}get[a0_0x442ae0(0x11c)](){const _0x4e49c6=a0_0x442ae0;return this[_0x4e49c6(0x11d)]?.[_0x4e49c6(0x108)](this[_0x4e49c6(0x110)]);}get['context'](){const _0x543f97=a0_0x442ae0;return MetaUiUtil[_0x543f97(0x10d)](this);}async[a0_0x442ae0(0x10c)](){const _0x213e04=a0_0x442ae0;this[_0x213e04(0x12d)]=_0x213e04(0x13f),this['filterFormId']='ox-filters-form',await this[_0x213e04(0x136)](),this[_0x213e04(0x13a)]&&await this[_0x213e04(0x125)](),this[_0x213e04(0x10b)]&&(this[_0x213e04(0x113)]=this[_0x213e04(0x10b)]),super[_0x213e04(0x10c)]&&await super[_0x213e04(0x10c)]();}async[a0_0x442ae0(0x119)](){const _0x134a7f=a0_0x442ae0;super[_0x134a7f(0x119)]&&await super[_0x134a7f(0x119)]();}async[a0_0x442ae0(0x12c)](){const _0x38a180=a0_0x442ae0;this[_0x38a180(0x13c)]&&await this[_0x38a180(0x125)](),super[_0x38a180(0x12c)]&&await super[_0x38a180(0x12c)]();}[a0_0x442ae0(0x129)](){const _0x42015c=a0_0x442ae0;return html`
|
|
2
|
+
${MetaApi[_0x42015c(0x12e)](this)}
|
|
3
|
+
${this[_0x42015c(0x13c)]?html``:MetaUiUtil['getButtonContainer'](this)}
|
|
4
|
+
`;}[a0_0x442ae0(0x120)](_0x28b266){const _0x4f9614=a0_0x442ae0;this[_0x4f9614(0x12b)]=_0x28b266[_0x4f9614(0x130)],this[_0x4f9614(0x121)]=_0x28b266[_0x4f9614(0x10e)],this[_0x4f9614(0x140)]=_0x28b266[_0x4f9614(0x112)];}async[a0_0x442ae0(0x125)](){const _0x158ab8=a0_0x442ae0;this['gristConfigSet']=await MetaApi[_0x158ab8(0x13d)](this);}async[a0_0x442ae0(0x11b)](){const _0x858028=a0_0x442ae0;await this[_0x858028(0x13e)][_0x858028(0x11b)]();}async[a0_0x442ae0(0x11e)](){const _0x31a15b=a0_0x442ae0;let _0x577698=MetaApi[_0x31a15b(0x104)](this[_0x31a15b(0x13e)]);!!ValueUtil[_0x31a15b(0x10a)](_0x577698)&&await this['updateMultiple'](_0x577698)&&this[_0x31a15b(0x11b)]();}async['find'](){const _0x322b91=a0_0x442ae0;let _0x53063d=MetaApi['getSelectedIdList'](this['grist'],!0x0);return ValueUtil[_0x322b91(0x10a)](_0x53063d)?await this[_0x322b91(0x132)](_0x53063d[0x0]):{};}async['delete'](){const _0x46aec9=a0_0x442ae0;let _0x57d310=MetaApi[_0x46aec9(0x124)](this[_0x46aec9(0x13e)],!0x0);!!ValueUtil[_0x46aec9(0x10a)](_0x57d310)&&await this[_0x46aec9(0x134)](_0x57d310)&&this[_0x46aec9(0x11b)]();}async[a0_0x442ae0(0x116)](){const _0x5409d9=a0_0x442ae0;let _0x434703=TermsUtil[_0x5409d9(0x111)](ValueUtil['getParams'](this[_0x5409d9(0x11f)],_0x5409d9(0x139)));return await MetaApi['exportableData'](this[_0x5409d9(0x13a)],_0x434703,this[_0x5409d9(0x13e)]);}async[a0_0x442ae0(0x10f)](){}async[a0_0x442ae0(0x115)](){const _0xfee1ed=a0_0x442ae0;this['grist']&&(this[_0xfee1ed(0x13e)][_0xfee1ed(0x12a)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x442ae0(0x128)](){const _0x5a0021=a0_0x442ae0;let _0x277da1=this[_0x5a0021(0x13e)][_0x5a0021(0x114)][_0x5a0021(0x106)];return _0x277da1=JSON[_0x5a0021(0x12f)](JSON[_0x5a0021(0x131)](_0x277da1)),_0x277da1[_0x5a0021(0x126)](_0x1d984f=>{Object['keys'](_0x1d984f)['forEach'](_0x46f629=>{const _0x4b8349=a0_0x9fc7;_0x46f629[_0x4b8349(0x109)]('__')&&delete _0x1d984f[_0x46f629];});}),_0x277da1;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x29b99b=a0_0x5dff;(function(_0x5d4413,_0x1c590b){const _0xfc0bf0=a0_0x5dff,_0x5ba519=_0x5d4413();while(!![]){try{const _0x1c7c5e=-parseInt(_0xfc0bf0(0x1d4))/0x1+parseInt(_0xfc0bf0(0x1df))/0x2*(parseInt(_0xfc0bf0(0x1d6))/0x3)+parseInt(_0xfc0bf0(0x1e4))/0x4+parseInt(_0xfc0bf0(0x1e8))/0x5+parseInt(_0xfc0bf0(0x1e0))/0x6+parseInt(_0xfc0bf0(0x1e6))/0x7+-parseInt(_0xfc0bf0(0x1d7))/0x8;if(_0x1c7c5e===_0x1c590b)break;else _0x5ba519['push'](_0x5ba519['shift']());}catch(_0x45d004){_0x5ba519['push'](_0x5ba519['shift']());}}}(a0_0x5dba,0xd927f));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5dff(_0x9d2731,_0xf2dbd9){const _0x5dbab3=a0_0x5dba();return a0_0x5dff=function(_0x5dff18,_0x56d310){_0x5dff18=_0x5dff18-0x1d3;let _0x4e7fa0=_0x5dbab3[_0x5dff18];return _0x4e7fa0;},a0_0x5dff(_0x9d2731,_0xf2dbd9);}import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x5dba(){const _0x1cef34=['isButtonExist','529014yDvRTn','3876798kIRaaU','useButtonAdd','parseBasicButtonConfigs','useButtonExport','2707080IfkfUA','getBasicButtonHandler','9815925mfUdaZ','button','5099110ewdVqB','customButtonHandler','add','186885hJcfcS','getButtonActionHandler','9YGGPSQ','27697320VwUYlQ','isPage','getContextButtons','buttonConfig','import','getButtonContainer','properties'];a0_0x5dba=function(){return _0x1cef34;};return a0_0x5dba();}export const MetaButtonMixin=_0x38d595=>class extends MetaServiceMixin(_0x38d595){static get[a0_0x29b99b(0x1dd)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x29b99b(0x1d9)](){return MetaUiUtil['getContextButtons'](this);}[a0_0x29b99b(0x1dc)](){const _0x149b0b=a0_0x29b99b;return this[_0x149b0b(0x1d8)]?html``:MetaUiUtil[_0x149b0b(0x1dc)](this);}async[a0_0x29b99b(0x1e5)](_0x51b2dc,_0x1d76a3,_0x2fee5f){const _0x2438c3=a0_0x29b99b;return await MetaUiUtil[_0x2438c3(0x1d5)](this,_0x51b2dc,_0x1d76a3,_0x2fee5f);}async['customButtonHandler'](_0x362080){const _0x5180ef=a0_0x29b99b;await MetaUiUtil[_0x5180ef(0x1e9)](this,_0x362080);}async['gristButtonHandler'](_0x242fc1,_0x22cd80){await MetaUiUtil['gristButtonHandler'](this,_0x242fc1,_0x22cd80);}[a0_0x29b99b(0x1e2)](_0x5b5f5c){const _0x40c306=a0_0x29b99b;this['buttonConfig']=_0x5b5f5c[_0x40c306(0x1e7)],this['useButtonImport']=MetaUiUtil[_0x40c306(0x1de)](this[_0x40c306(0x1da)],_0x40c306(0x1db)),this[_0x40c306(0x1e3)]=MetaUiUtil[_0x40c306(0x1de)](this['buttonConfig'],'export'),this[_0x40c306(0x1e1)]=MetaUiUtil[_0x40c306(0x1de)](this[_0x40c306(0x1da)],_0x40c306(0x1d3));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x492c(){const _0x48dc30=['tagName','after','parseFormConfigs','firstUpdated','showAlertPopup','startsWith','name','682898UcGjBD','true','focus','patchData','form','clear','__origin__','addEventListener','isEmpty','context','assign','before','1367708ifoIMh','Esc','isElement','is_activity','orgData','key','Escape','validation','activityDataSet','7klCpJy','field-change','keydown','cuFlag','dataSet','entries','getContextObject','parseFormConfigSet','3566070WGINeJ','1588008sUeiFj','setAttribute','isNotEmpty','save','record','304HRoBEm','dirtyData','currentData','removeAttribute','parseBasicFormConfigs','forEach','filter','properties','formConfigSet','isPage','__seq__','button','styles','editing','updateMultiple','activity','call','26701344lVPUTF','grid_column','__dirty__','currentTarget','58505FHMfpu','config','findOne','map','text.NOTHING_CHANGED','2594920RSIUdO','fetch','target','object','function','removeGarbageData','OX-GRID-FIELD','__dirtyfields__','parent_id','getData','connectedCallback','keys','Enter','getAndParseMenuMeta','column','pageInitialized','renderRoot'];a0_0x492c=function(){return _0x48dc30;};return a0_0x492c();}function a0_0xd380(_0x101b52,_0xfed1a1){const _0x492c5e=a0_0x492c();return a0_0xd380=function(_0xd38026,_0x4ff586){_0xd38026=_0xd38026-0x169;let _0x1d7290=_0x492c5e[_0xd38026];return _0x1d7290;},a0_0xd380(_0x101b52,_0xfed1a1);}const a0_0x21ae35=a0_0xd380;(function(_0x2699e9,_0x24e5f0){const _0x28cbe8=a0_0xd380,_0x408139=_0x2699e9();while(!![]){try{const _0x4f80ba=-parseInt(_0x28cbe8(0x198))/0x1+-parseInt(_0x28cbe8(0x1a4))/0x2+-parseInt(_0x28cbe8(0x1b6))/0x3+-parseInt(_0x28cbe8(0x1bb))/0x4*(parseInt(_0x28cbe8(0x17b))/0x5)+parseInt(_0x28cbe8(0x1b5))/0x6*(parseInt(_0x28cbe8(0x1ad))/0x7)+-parseInt(_0x28cbe8(0x180))/0x8+parseInt(_0x28cbe8(0x177))/0x9;if(_0x4f80ba===_0x24e5f0)break;else _0x408139['push'](_0x408139['shift']());}catch(_0x26bbc4){_0x408139['push'](_0x408139['shift']());}}}(a0_0x492c,0x6e368));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';export const MetaFormMixin=_0x5397ad=>class extends MetaButtonMixin(_0x5397ad){static get[a0_0x21ae35(0x172)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x21ae35(0x16d)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x21ae35(0x1a1)](){const _0x418096=a0_0x21ae35;return MetaUiUtil[_0x418096(0x1b3)](this);}async[a0_0x21ae35(0x18a)](){const _0x435245=a0_0x21ae35;if(this[_0x435245(0x17c)]){let {column:_0x3fbdfb=0x1}=this[_0x435245(0x17c)];this[_0x435245(0x18e)]=_0x3fbdfb;}await this[_0x435245(0x18d)](),this['isElement']&&await this[_0x435245(0x193)](),this[_0x435245(0x1ac)]&&(this[_0x435245(0x1b1)]=this[_0x435245(0x1ac)]),!0x0!==this[_0x435245(0x1a7)]||this[_0x435245(0x188)]||(this[_0x435245(0x188)]=_0x435245(0x175)),super[_0x435245(0x18a)]&&await super[_0x435245(0x18a)](),this[_0x435245(0x1a6)]&&await this[_0x435245(0x181)](),this[_0x435245(0x190)]['addEventListener'](_0x435245(0x1af),_0x37ba1d=>{const _0x5ed273=_0x435245;switch(_0x37ba1d[_0x5ed273(0x1a9)]){case _0x5ed273(0x1a5):case _0x5ed273(0x1aa):case _0x5ed273(0x18c):this[_0x5ed273(0x19a)](),this[_0x5ed273(0x17a)]&&this[_0x5ed273(0x17a)]['removeAttribute']('editing'),this[_0x5ed273(0x17a)]=null;}}),this[_0x435245(0x190)][_0x435245(0x19f)]('click',_0x1336c3=>{const _0xcacd0=_0x435245;_0x1336c3['stopPropagation']();let _0x59a509=_0x1336c3[_0xcacd0(0x182)];if(this[_0xcacd0(0x17a)]&&(this[_0xcacd0(0x19a)](),this[_0xcacd0(0x17a)][_0xcacd0(0x169)](_0xcacd0(0x173))),_0xcacd0(0x186)!==_0x59a509[_0xcacd0(0x191)]||!_0x59a509[_0xcacd0(0x18e)][_0xcacd0(0x1ba)]['editable'])return this[_0xcacd0(0x19a)](),void(this[_0xcacd0(0x17a)]=null);this['currentTarget']=_0x59a509,_0x59a509[_0xcacd0(0x1b7)]('editing',_0xcacd0(0x199));}),this[_0x435245(0x19f)](_0x435245(0x1ae),_0x1d3aaf=>{const _0x11dd8e=_0x435245;var {after:_0x45088b,before:_0x10cee1,column:_0x4e687a,record:_0x4c66ac,row:_0x885281}=_0x1d3aaf['detail'];if(ValueUtil['isEquals'](_0x45088b,_0x10cee1))return;var _0x11e52a=_0x4e687a[_0x11dd8e(0x1ab)];if(_0x11e52a&&_0x11dd8e(0x184)==typeof _0x11e52a&&!_0x11e52a[_0x11dd8e(0x176)](this,_0x45088b,_0x10cee1,_0x4c66ac,_0x4e687a))return;let _0x12f6a5=_0x4e687a['name'];_0x4c66ac[_0x12f6a5]=_0x45088b,_0x4c66ac[_0x11dd8e(0x187)]=_0x4c66ac['__dirtyfields__']||{},_0x4c66ac[_0x11dd8e(0x19e)]=_0x4c66ac['__origin__']||{},_0x4c66ac[_0x11dd8e(0x187)][_0x12f6a5]={'before':_0x4c66ac[_0x11dd8e(0x19e)][_0x12f6a5],'after':_0x4c66ac[_0x12f6a5]},ValueUtil['isEquals'](_0x4c66ac[_0x11dd8e(0x187)][_0x12f6a5][_0x11dd8e(0x1a3)],_0x4c66ac[_0x11dd8e(0x187)][_0x12f6a5]['after'])&&delete _0x4c66ac['__dirtyfields__'][_0x12f6a5],ValueUtil[_0x11dd8e(0x1b8)](_0x4c66ac[_0x11dd8e(0x187)])?_0x4c66ac[_0x11dd8e(0x179)]='M':_0x4c66ac['__dirty__']='',this[_0x11dd8e(0x1ba)]={..._0x4c66ac};});}async[a0_0x21ae35(0x194)](){const _0x3fc731=a0_0x21ae35;super[_0x3fc731(0x194)]&&await super['firstUpdated']();}async[a0_0x21ae35(0x18f)](){const _0x4fabfb=a0_0x21ae35;this[_0x4fabfb(0x16f)]&&await this[_0x4fabfb(0x193)](),super[_0x4fabfb(0x18f)]&&await super[_0x4fabfb(0x18f)](),this[_0x4fabfb(0x16f)]&&await this[_0x4fabfb(0x181)]();}['render'](){return MetaApi['getBasicFormHtml'](this);}[a0_0x21ae35(0x16a)](_0x1f91dc){const _0x55aaef=a0_0x21ae35;this['formColumnConfig']=_0x1f91dc[_0x55aaef(0x178)],this['formRenderConfig']=_0x1f91dc[_0x55aaef(0x19c)],_0x1f91dc[_0x55aaef(0x171)]=_0x1f91dc[_0x55aaef(0x171)][_0x55aaef(0x16c)](_0x5bc933=>_0x55aaef(0x1b9)==_0x5bc933[_0x55aaef(0x197)]);}async['parseFormConfigs'](){const _0x57f9c9=a0_0x21ae35;this[_0x57f9c9(0x16e)]=await MetaApi[_0x57f9c9(0x1b4)](this);}get[a0_0x21ae35(0x1a8)](){const _0xb44ff8=a0_0x21ae35;return this[_0xb44ff8(0x185)](this[_0xb44ff8(0x1ba)][_0xb44ff8(0x19e)]);}get[a0_0x21ae35(0x1bc)](){const _0x598b02=a0_0x21ae35;if(ValueUtil[_0x598b02(0x1a0)](this['record']['__dirtyfields__']))return{};let _0x7dabc0={};return Object[_0x598b02(0x1b2)](this['record']['__dirtyfields__'])[_0x598b02(0x17e)](([_0xe2a44c,_0x24d067])=>{const _0x3d80e4=_0x598b02;0x0==_0xe2a44c[_0x3d80e4(0x196)]('__')&&(_0x7dabc0[_0xe2a44c]=_0x24d067[_0x3d80e4(0x192)]);}),_0x7dabc0;}get[a0_0x21ae35(0x1bd)](){const _0x159c0e=a0_0x21ae35;return this['removeGarbageData'](this[_0x159c0e(0x1ba)]);}[a0_0x21ae35(0x185)](_0x59b40a){const _0x489098=a0_0x21ae35;let _0x26fbd9={};if(_0x59b40a)return Object[_0x489098(0x1b2)](_0x59b40a)['map'](([_0x49edde,_0x35d5ce])=>{const _0x23d38f=_0x489098;0x0==_0x49edde[_0x23d38f(0x196)]('__')&&(_0x26fbd9[_0x49edde]=_0x35d5ce);}),_0x26fbd9;}get[a0_0x21ae35(0x19b)](){const _0x4ba8ba=a0_0x21ae35;let _0x19c1d1=this[_0x4ba8ba(0x1bc)],_0x470bc2=this[_0x4ba8ba(0x1ba)];return ValueUtil[_0x4ba8ba(0x1a0)](_0x19c1d1)?[]:(ValueUtil['isNotEmpty'](_0x470bc2['id'])?(_0x19c1d1['id']=_0x470bc2['id'],_0x19c1d1[_0x4ba8ba(0x1b0)]='M'):_0x19c1d1['cuFlag']='+',Object[_0x4ba8ba(0x18b)](_0x19c1d1)[_0x4ba8ba(0x16b)](_0xc52ae8=>{const _0xf33ccc=_0x4ba8ba;_0xf33ccc(0x183)==typeof _0x19c1d1[_0xc52ae8]&&(_0x19c1d1[_0xc52ae8]={'id':_0x19c1d1[_0xc52ae8]['id']});}),[_0x19c1d1]);}async[a0_0x21ae35(0x181)](){const _0x43206e=a0_0x21ae35;if(ValueUtil['isEmpty'](this['parent_id']))return;let _0x3fc274=await this[_0x43206e(0x17d)](this['parent_id']);_0x3fc274[_0x43206e(0x170)]=0x1;let _0x23178f={};Object[_0x43206e(0x1a2)](_0x23178f,_0x3fc274),_0x3fc274[_0x43206e(0x19e)]=_0x23178f,this['record']={..._0x3fc274};}async[a0_0x21ae35(0x1b9)](){const _0x2cf545=a0_0x21ae35;let _0x56e490=this['patchData'];if(ValueUtil[_0x2cf545(0x1a0)](_0x56e490))return void MetaApi[_0x2cf545(0x195)]('title.info',_0x2cf545(0x17f));let _0x3993a5=await this[_0x2cf545(0x174)](_0x56e490);return _0x3993a5&&await this[_0x2cf545(0x181)](),_0x3993a5;}async[a0_0x21ae35(0x19d)](){const _0x1d6f70=a0_0x21ae35;this[_0x1d6f70(0x1ba)]&&(this['record']={});}[a0_0x21ae35(0x189)](){return this['currentData']||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xf65052=a0_0x2fc2;(function(_0x19706a,_0x5528db){const _0xb22566=a0_0x2fc2,_0x396a97=_0x19706a();while(!![]){try{const _0x30b788=-parseInt(_0xb22566(0x102))/0x1+-parseInt(_0xb22566(0x14d))/0x2*(-parseInt(_0xb22566(0x10b))/0x3)+-parseInt(_0xb22566(0x10d))/0x4*(-parseInt(_0xb22566(0x105))/0x5)+-parseInt(_0xb22566(0x120))/0x6+parseInt(_0xb22566(0x113))/0x7*(-parseInt(_0xb22566(0x115))/0x8)+parseInt(_0xb22566(0x13e))/0x9*(-parseInt(_0xb22566(0x141))/0xa)+-parseInt(_0xb22566(0x140))/0xb*(-parseInt(_0xb22566(0x100))/0xc);if(_0x30b788===_0x5528db)break;else _0x396a97['push'](_0x396a97['shift']());}catch(_0x50f4cd){_0x396a97['push'](_0x396a97['shift']());}}}(a0_0x10c1,0xa705f));import{html}from'lit';function a0_0x2fc2(_0x5ce9a6,_0x27f435){const _0x10c1fd=a0_0x10c1();return a0_0x2fc2=function(_0x2fc26d,_0x5b25a4){_0x2fc26d=_0x2fc26d-0x100;let _0x42b216=_0x10c1fd[_0x2fc26d];return _0x42b216;},a0_0x2fc2(_0x5ce9a6,_0x27f435);}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_0x10c1(){const _0x4f0a9d=['search','filterForm','renderRoot','getContextObject','24CqMlNz','delete','730726KZONnN','activityDataSet','getAndParseMenuMeta','1025bAoRzs','styles','title','parseGridConfigSet','gridColumnConfig','gridConfig','502215EiEFWa','gristId','20156bJyBtF','grid_column','ox-filters-form-base','save','tTitle','records','603764BGnVaU','startsWith','8HGvGph','header','getData','firstUpdated','type','getSelectedIdList','connectedCallback','import','parseGristConfigs','menuInfo','map','1525632DqTrLJ','shadowRoot','deleteByIds','isPage','beforeFetch','actions','exportableData','record','find','isNotEmpty','findOne','ox-grist','#detail','grist','getGristTabHtml','stringify','properties','keys','forEach','filter','name','operator','parse','detailElement','searchFields','querySelector','options','useFilterForm','meta-tab-element','render','252gBGhxz','gristConfigSet','2966788TYepUT','293380lqhUZu','exportable','isElement','___data','export','filterFormId','grid','context','updateMultiple','columns','fetch','pageInitialized','12uRhmOU'];a0_0x10c1=function(){return _0x4f0a9d;};return a0_0x10c1();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x520cc7=>class extends MetaButtonMixin(_0x520cc7){static get[a0_0xf65052(0x106)](){return MetaApi['getBasicGristTabStyles']();}static get[a0_0xf65052(0x130)](){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_0xf65052(0x12d)](){const _0x3e76b4=a0_0xf65052;return this[_0x3e76b4(0x150)][_0x3e76b4(0x139)](this[_0x3e76b4(0x10c)]);}get[a0_0xf65052(0x14f)](){const _0x5a7cd0=a0_0xf65052;return this[_0x5a7cd0(0x121)]?.['querySelector'](this[_0x5a7cd0(0x146)]);}get[a0_0xf65052(0x137)](){const _0x1f7b6b=a0_0xf65052;return this[_0x1f7b6b(0x121)]['querySelector'](_0x1f7b6b(0x12c));}get[a0_0xf65052(0x148)](){const _0x3793c5=a0_0xf65052;let _0x55c4c8=MetaUiUtil[_0x3793c5(0x151)](this);return _0x55c4c8[_0x3793c5(0x125)]&&delete _0x55c4c8[_0x3793c5(0x125)],_0x55c4c8['exportable']&&delete _0x55c4c8[_0x3793c5(0x142)],_0x55c4c8['importable']&&delete _0x55c4c8['importable'],_0x55c4c8;}async[a0_0xf65052(0x11b)](){const _0x591552=a0_0xf65052;this[_0x591552(0x10c)]=_0x591552(0x12b),this[_0x591552(0x146)]=_0x591552(0x10f),await this[_0x591552(0x104)](),this['isElement']&&await this[_0x591552(0x11d)](),this[_0x591552(0x103)]&&(this['dataSet']=(this['activityDataSet']||{})['main']),super[_0x591552(0x11b)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x93b0a0=a0_0xf65052;super['firstUpdated']&&await super[_0x93b0a0(0x118)]();}async[a0_0xf65052(0x14c)](){const _0x56372e=a0_0xf65052;this[_0x56372e(0x123)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0x56372e(0x14c)]();}[a0_0xf65052(0x13d)](){const _0x427bf4=a0_0xf65052;return MetaApi[_0x427bf4(0x12e)](this);}['parseBasicGridConfigs'](_0x3252e6){const _0x67ad94=a0_0xf65052;this[_0x67ad94(0x10a)]=_0x3252e6[_0x67ad94(0x147)],this[_0x67ad94(0x109)]=_0x3252e6[_0x67ad94(0x10e)],this['searchConfig']=_0x3252e6[_0x67ad94(0x14e)];}async[a0_0xf65052(0x11d)](){const _0x49981f=a0_0xf65052;this[_0x49981f(0x13f)]=await MetaApi[_0x49981f(0x108)](this),this['useMasterFilterForm']=!0x0===this[_0x49981f(0x13b)],this[_0x49981f(0x13b)]=!0x1,this[_0x49981f(0x138)]=this['gristConfigSet'][_0x49981f(0x14a)][_0x49981f(0x133)](_0x5b02ca=>_0x5b02ca[_0x49981f(0x133)])[_0x49981f(0x11f)](_0x457b28=>{const _0x5f4cf1=_0x49981f;let _0x4cd564={'name':_0x457b28[_0x5f4cf1(0x134)],'type':_0x457b28[_0x5f4cf1(0x119)],'label':_0x457b28[_0x5f4cf1(0x116)],'operator':_0x457b28[_0x5f4cf1(0x133)]['operator']?_0x457b28[_0x5f4cf1(0x133)][_0x5f4cf1(0x135)]:'eq'};return _0x457b28['record']['options']&&(_0x4cd564['options']=_0x457b28[_0x5f4cf1(0x127)][_0x5f4cf1(0x13a)]),_0x4cd564;});}async[a0_0xf65052(0x14b)](){const _0x17d22e=a0_0xf65052;await this[_0x17d22e(0x12d)][_0x17d22e(0x14b)]();}async[a0_0xf65052(0x124)]({page:_0x789730=0x0,limit:_0x1b19ef=0x0,sortings:_0x5236ae=[],filters:_0x1506b9=[]}){let _0x504c01=this['renderRoot']['querySelector']('meta-tab-element');return await _0x504c01['clear'](),!0x0;}async[a0_0xf65052(0x110)](){const _0x492fee=a0_0xf65052;let _0x21b2a5=MetaApi['patchesForUpdateMultiple'](this[_0x492fee(0x12d)]);!!ValueUtil[_0x492fee(0x129)](_0x21b2a5)&&await this[_0x492fee(0x149)](_0x21b2a5)&&this[_0x492fee(0x14b)]();}async[a0_0xf65052(0x128)](){const _0x45bfe5=a0_0xf65052;let _0x332f2d=MetaApi[_0x45bfe5(0x11a)](this[_0x45bfe5(0x12d)],!0x0);return ValueUtil[_0x45bfe5(0x129)](_0x332f2d)?await this[_0x45bfe5(0x12a)](_0x332f2d[0x0]):{};}async[a0_0xf65052(0x101)](){const _0x3c2a07=a0_0xf65052;let _0x251ead=MetaApi['getSelectedIdList'](this[_0x3c2a07(0x12d)],!0x0);!!ValueUtil[_0x3c2a07(0x129)](_0x251ead)&&await this[_0x3c2a07(0x122)](_0x251ead)&&this[_0x3c2a07(0x14b)]();}async[a0_0xf65052(0x145)](){const _0x2502cb=a0_0xf65052;let _0x3b383c=TermsUtil[_0x2502cb(0x111)](ValueUtil['getParams'](this[_0x2502cb(0x11e)],_0x2502cb(0x107)));return await MetaApi[_0x2502cb(0x126)](this[_0x2502cb(0x143)],_0x3b383c,this[_0x2502cb(0x12d)]);}async[a0_0xf65052(0x11c)](){}[a0_0xf65052(0x117)](){const _0x155380=a0_0xf65052;let _0x441e2d=this['grist'][_0x155380(0x144)][_0x155380(0x112)];return _0x441e2d=JSON[_0x155380(0x136)](JSON[_0x155380(0x12f)](_0x441e2d)),_0x441e2d[_0x155380(0x132)](_0x3d10f3=>{const _0x1a2696=_0x155380;Object[_0x1a2696(0x131)](_0x3d10f3)[_0x1a2696(0x132)](_0xc0d544=>{const _0x15167e=_0x1a2696;_0xc0d544[_0x15167e(0x114)]('__')&&delete _0x3d10f3[_0xc0d544];});}),{'main':_0x441e2d,'detail':this[_0x155380(0x150)]['querySelector'](_0x155380(0x13c))[_0x155380(0x117)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0xdd5c(){const _0x5259b7=['record','filter','startsWith','render','1504405GCXWrU','forEach','parseBasicGridConfigs','operator','8007770eCNTAx','exportable','map','parseGridConfigSet','deleteByIds','querySelector','parseGristConfigs','exportableData','gristId','updateMultiple','filterForm','findOne','main','grist','805344KUHoCj','keys','importable','properties','18LHMCmm','renderRoot','activityDataSet','14454616QqHONc','getParams','dataSet','parse','beforeFetch','ox-filters-form-base','actions','isNotEmpty','filterFormId','header','options','export','menuInfo','import','context','236936VchBAu','getBasicMasterDetailStyles','getData','getSelectedIdList','fetch','title','1176644jgOAlg','connectedCallback','grid_column','gristConfigSet','grid','useFilterForm','gridConfig','find','clear','detailElement','getMasterDetailHtml','firstUpdated','search','columns','412246ovSOJI','ox-grist','getAndParseMenuMeta','gridColumnConfig','name','stringify','isPage','___data','styles','records','pageInitialized'];a0_0xdd5c=function(){return _0x5259b7;};return a0_0xdd5c();}function a0_0x19ea(_0x2203b5,_0x4e30a6){const _0xdd5c4a=a0_0xdd5c();return a0_0x19ea=function(_0x19ea3d,_0x442f32){_0x19ea3d=_0x19ea3d-0x167;let _0x3a6022=_0xdd5c4a[_0x19ea3d];return _0x3a6022;},a0_0x19ea(_0x2203b5,_0x4e30a6);}const a0_0x49f47a=a0_0x19ea;(function(_0x1b5ced,_0x3dc525){const _0x1f20e8=a0_0x19ea,_0x5e869a=_0x1b5ced();while(!![]){try{const _0x56e9c8=parseInt(_0x1f20e8(0x18a))/0x1+parseInt(_0x1f20e8(0x17b))/0x2*(-parseInt(_0x1f20e8(0x1a0))/0x3)+parseInt(_0x1f20e8(0x16d))/0x4+-parseInt(_0x1f20e8(0x18e))/0x5+parseInt(_0x1f20e8(0x19c))/0x6+-parseInt(_0x1f20e8(0x167))/0x7+parseInt(_0x1f20e8(0x1a3))/0x8;if(_0x56e9c8===_0x3dc525)break;else _0x5e869a['push'](_0x5e869a['shift']());}catch(_0x165b20){_0x5e869a['push'](_0x5e869a['shift']());}}}(a0_0xdd5c,0xd3c95));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=_0x56fc3b=>class extends MetaButtonMixin(_0x56fc3b){static get[a0_0x49f47a(0x183)](){const _0x41eb15=a0_0x49f47a;return MetaApi[_0x41eb15(0x168)]();}static get[a0_0x49f47a(0x19f)](){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_0x49f47a(0x19b)](){const _0x156f52=a0_0x49f47a;return this[_0x156f52(0x1a1)][_0x156f52(0x193)](this[_0x156f52(0x196)]);}get[a0_0x49f47a(0x198)](){const _0x5c4d93=a0_0x49f47a;return this['shadowRoot']?.[_0x5c4d93(0x193)](this['filterFormId']);}get[a0_0x49f47a(0x1b1)](){const _0x591297=a0_0x49f47a;let _0x542a15=MetaUiUtil['getContextObject'](this);return _0x542a15[_0x591297(0x1a9)]&&delete _0x542a15[_0x591297(0x1a9)],_0x542a15[_0x591297(0x18f)]&&delete _0x542a15['exportable'],_0x542a15[_0x591297(0x19e)]&&delete _0x542a15[_0x591297(0x19e)],_0x542a15;}async[a0_0x49f47a(0x16e)](){const _0x340005=a0_0x49f47a;this[_0x340005(0x196)]=_0x340005(0x17c),this[_0x340005(0x1ab)]=_0x340005(0x1a8),await this[_0x340005(0x17d)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x340005(0x1a2)]&&(this[_0x340005(0x1a5)]=(this['activityDataSet']||{})[_0x340005(0x19a)]),super['connectedCallback']&&await super[_0x340005(0x16e)]();}async[a0_0x49f47a(0x178)](){const _0x23c99a=a0_0x49f47a;super['firstUpdated']&&await super[_0x23c99a(0x178)]();}async[a0_0x49f47a(0x185)](){const _0x27f2d6=a0_0x49f47a;this[_0x27f2d6(0x181)]&&await this[_0x27f2d6(0x194)](),super[_0x27f2d6(0x185)]&&await super['pageInitialized']();}[a0_0x49f47a(0x189)](){const _0x2c9a14=a0_0x49f47a;return MetaApi[_0x2c9a14(0x177)](this);}[a0_0x49f47a(0x18c)](_0x96f899){const _0x4e77c0=a0_0x49f47a;this[_0x4e77c0(0x173)]=_0x96f899[_0x4e77c0(0x171)],this[_0x4e77c0(0x17e)]=_0x96f899[_0x4e77c0(0x16f)],this['searchConfig']=_0x96f899[_0x4e77c0(0x179)];}async[a0_0x49f47a(0x194)](){const _0x5dff50=a0_0x49f47a;this[_0x5dff50(0x170)]=await MetaApi[_0x5dff50(0x191)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this[_0x5dff50(0x172)]=!0x1,this['searchFields']=this[_0x5dff50(0x170)][_0x5dff50(0x17a)][_0x5dff50(0x187)](_0x28da91=>_0x28da91[_0x5dff50(0x187)])[_0x5dff50(0x190)](_0x352e37=>{const _0x4a7b11=_0x5dff50;let _0x5403cb={'name':_0x352e37[_0x4a7b11(0x17f)],'type':_0x352e37['type'],'label':_0x352e37[_0x4a7b11(0x1ac)],'operator':_0x352e37['filter']['operator']?_0x352e37['filter'][_0x4a7b11(0x18d)]:'eq'};return _0x352e37[_0x4a7b11(0x186)][_0x4a7b11(0x1ad)]&&(_0x5403cb[_0x4a7b11(0x1ad)]=_0x352e37[_0x4a7b11(0x186)][_0x4a7b11(0x1ad)]),_0x5403cb;});}async['fetch'](){const _0x3f78a8=a0_0x49f47a;await this[_0x3f78a8(0x19b)][_0x3f78a8(0x16b)]();}async[a0_0x49f47a(0x1a7)]({page:_0x250c3f=0x0,limit:_0x574c2e=0x0,sortings:_0x2e768b=[],filters:_0xfaf82b=[]}){const _0x48cf8b=a0_0x49f47a;return this['detailElement']&&this[_0x48cf8b(0x176)][_0x48cf8b(0x175)]&&await this[_0x48cf8b(0x176)][_0x48cf8b(0x175)](),!0x0;}async['save'](){const _0x1bb6d3=a0_0x49f47a;let _0x1795f1=MetaApi['patchesForUpdateMultiple'](this[_0x1bb6d3(0x19b)]);!!ValueUtil[_0x1bb6d3(0x1aa)](_0x1795f1)&&await this[_0x1bb6d3(0x197)](_0x1795f1)&&this[_0x1bb6d3(0x16b)]();}async[a0_0x49f47a(0x174)](){const _0x4e2dea=a0_0x49f47a;let _0x4268c7=MetaApi[_0x4e2dea(0x16a)](this[_0x4e2dea(0x19b)],!0x0);return ValueUtil[_0x4e2dea(0x1aa)](_0x4268c7)?await this[_0x4e2dea(0x199)](_0x4268c7[0x0]):{};}async['delete'](){const _0x2d3589=a0_0x49f47a;let _0x199fc9=MetaApi['getSelectedIdList'](this[_0x2d3589(0x19b)],!0x0);!!ValueUtil['isNotEmpty'](_0x199fc9)&&await this[_0x2d3589(0x192)](_0x199fc9)&&this[_0x2d3589(0x16b)]();}async[a0_0x49f47a(0x1ae)](){const _0xa5eac6=a0_0x49f47a;let _0x198360=TermsUtil['tTitle'](ValueUtil[_0xa5eac6(0x1a4)](this[_0xa5eac6(0x1af)],_0xa5eac6(0x16c)));return await MetaApi[_0xa5eac6(0x195)](this['isElement'],_0x198360,this[_0xa5eac6(0x19b)]);}async[a0_0x49f47a(0x1b0)](){}['getData'](){const _0x460344=a0_0x49f47a;let _0x40c06c=this[_0x460344(0x19b)][_0x460344(0x182)][_0x460344(0x184)];return _0x40c06c=JSON[_0x460344(0x1a6)](JSON[_0x460344(0x180)](_0x40c06c)),_0x40c06c['forEach'](_0x42bdcd=>{const _0x2264a8=_0x460344;Object[_0x2264a8(0x19d)](_0x42bdcd)[_0x2264a8(0x18b)](_0x560233=>{const _0x6a1821=_0x2264a8;_0x560233[_0x6a1821(0x188)]('__')&&delete _0x42bdcd[_0x560233];});}),{'main':_0x40c06c,'detail':this[_0x460344(0x176)][_0x460344(0x169)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3efe4e=a0_0x1c19;(function(_0x260a2d,_0x3fcb84){const _0x3e17f8=a0_0x1c19,_0x27bf78=_0x260a2d();while(!![]){try{const _0x2f8f09=parseInt(_0x3e17f8(0xff))/0x1*(parseInt(_0x3e17f8(0xe6))/0x2)+-parseInt(_0x3e17f8(0xe1))/0x3+-parseInt(_0x3e17f8(0xd3))/0x4+-parseInt(_0x3e17f8(0xf4))/0x5*(parseInt(_0x3e17f8(0xeb))/0x6)+-parseInt(_0x3e17f8(0xe0))/0x7*(parseInt(_0x3e17f8(0xf1))/0x8)+-parseInt(_0x3e17f8(0xd9))/0x9+parseInt(_0x3e17f8(0xf5))/0xa;if(_0x2f8f09===_0x3fcb84)break;else _0x27bf78['push'](_0x27bf78['shift']());}catch(_0x2aa866){_0x27bf78['push'](_0x27bf78['shift']());}}}(a0_0x4c20,0x37d6b));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x1c19(_0x223b4e,_0x364ddf){const _0x4c20f1=a0_0x4c20();return a0_0x1c19=function(_0x1c1926,_0x354520){_0x1c1926=_0x1c1926-0xc8;let _0x510748=_0x4c20f1[_0x1c1926];return _0x510748;},a0_0x1c19(_0x223b4e,_0x364ddf);}import{MetaApi}from'./../utils/meta-api';function a0_0x4c20(){const _0x35b78d=['records','split','getQueryFilters','multiple','3179392GqGmSk','filter','func','20dzKmss','18103810FDlKVo','name','fetchHandler','searchByPagination','columns','isElement','gristConfigSet','query','beforeFetch','deleteListByIds','1rBldta','find_one_func','deleteByIds','mainFilterForm','lifecycle','gql','delete','is_activity','push','length','params','gqlInfo','includes','dataSet','skip_fields','1283244LTXzpG','parent_id','afterFetch','getSelectColumns','infinityPage','pass','691713ZzJDwj','parse','updateMultiple','getPageNavigateParams','parseBasicServiceConfigs','findOne','formConfigSet','7ltBuHh','1324929gcBXGk','forEach','map','getParams','keys','79570SFgYmh','properties','after_set_fields','isNotEmpty','isArray','577074Lyyqyy','mutation'];a0_0x4c20=function(){return _0x35b78d;};return a0_0x4c20();}import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x29a175=>class extends MetaBaseMixin(_0x29a175){static get[a0_0x3efe4e(0xe7)](){return{'gqlInfo':Object};}[a0_0x3efe4e(0xdd)](_0x2d525b){const _0x2c5243=a0_0x3efe4e;this[_0x2c5243(0xcf)]=_0x2d525b[_0x2c5243(0xc9)];}async[a0_0x3efe4e(0xf7)]({page:_0x4398f9=0x0,limit:_0x51ac15=0x0,sortings:_0x2c3561=[],filters:_0x22ddd6=[]}){const _0x4445c8=a0_0x3efe4e;if(this[_0x4445c8(0xcb)])return{'total':0x0,'records':this[_0x4445c8(0xd1)]||[]};if(!0x0===this[_0x4445c8(0xd7)]&&(_0x4398f9=0x0,_0x51ac15=0x0),this['beforeFetch']&&0x0==await this[_0x4445c8(0xfd)]({'page':_0x4398f9,'limit':_0x51ac15,'sortings':_0x2c3561,'filters':_0x22ddd6}))return;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0x2e7b32=ValueUtil['isEmpty'](_0x22ddd6)?this[_0x4445c8(0x102)]?await this[_0x4445c8(0x102)][_0x4445c8(0xef)]()||[]:await this['filterForm']?.[_0x4445c8(0xef)]()||[]:_0x22ddd6,_0xd99dea=ValueUtil[_0x4445c8(0xe4)](this[_0x4445c8(0xcf)],_0x4445c8(0xfc),'list_func'),_0x4deb15=ValueUtil[_0x4445c8(0xe4)](this[_0x4445c8(0xcf)],_0x4445c8(0xfc),'filters'),_0x2010c9=ValueUtil[_0x4445c8(0xe4)](this[_0x4445c8(0xcf)],_0x4445c8(0xfc),_0x4445c8(0xe8));if(ValueUtil[_0x4445c8(0xe9)](_0x4deb15)&&(_0x2e7b32=adjustFilters(_0x2e7b32,_0x4deb15)),_0x2e7b32[_0x4445c8(0xcc)](...this[_0x4445c8(0xdc)]()),this['isElement']&&!this[_0x4445c8(0x102)]){let _0x4e4d73=ValueUtil[_0x4445c8(0xe4)](this[_0x4445c8(0xcf)],_0x4445c8(0xfc),_0x4445c8(0xd4));if(!ValueUtil[_0x4445c8(0xe9)](_0x4e4d73)||!ValueUtil[_0x4445c8(0xe9)](this[_0x4445c8(0xd4)]))return{'total':0x0,'records':[]};_0x2e7b32=adjustFilters(_0x2e7b32,[{'name':_0x4e4d73,'operator':'eq','value':this['parent_id']}]);}let _0x1c4cb8=Object['keys'](_0x2010c9||{}),_0x347e85=MetaApi[_0x4445c8(0xd6)](this[_0x4445c8(0xfb)]['columns'][_0x4445c8(0xf2)](_0x1542d7=>!_0x1c4cb8['includes'](_0x1542d7[_0x4445c8(0xf6)]))),_0x1b0c3b=await MetaApi[_0x4445c8(0xf8)](_0xd99dea,_0x2e7b32,_0x2c3561,_0x4398f9,_0x51ac15,_0x347e85);if(this['afterFetch']){let _0x2dcd6b=await this[_0x4445c8(0xd5)]({'page':_0x4398f9,'limit':_0x51ac15,'sortings':_0x2c3561,'filters':_0x22ddd6},_0x1b0c3b);if(_0x2dcd6b)return _0x2dcd6b;}return ValueUtil[_0x4445c8(0xe9)](_0x2010c9)&&ValueUtil[_0x4445c8(0xe9)](_0x1b0c3b)&&ValueUtil[_0x4445c8(0xe9)](_0x1b0c3b[_0x4445c8(0xed)])&&_0x1b0c3b['records'][_0x4445c8(0xe3)](_0x54fb07=>(_0x1c4cb8[_0x4445c8(0xe2)](_0x404265=>{const _0x2fa48a=_0x4445c8;_0x54fb07[_0x404265]=ValueUtil[_0x2fa48a(0xe4)](_0x54fb07,..._0x2010c9[_0x404265][_0x2fa48a(0xee)]('.'));}),_0x54fb07)),_0x1b0c3b;}[a0_0x3efe4e(0xdc)](){const _0x95928b=a0_0x3efe4e;if(0x0==this['isPage'])return[];let _0x274eea=this[_0x95928b(0xc8)]?.[_0x95928b(0xce)]?this['lifecycle']['params']:{};if(!_0x274eea[_0x95928b(0xd8)])return[];let _0x5e8cdb=_0x274eea[_0x95928b(0xd8)],_0x23bcdd=JSON[_0x95928b(0xda)](_0x5e8cdb),_0x855ab4=0x1==_0x23bcdd[_0x95928b(0xcd)]?'eq':'in',_0x5dca02={},_0x3417dc=[];return Object['keys'](_0x23bcdd[0x0])['forEach'](_0x2071e7=>{_0x5dca02[_0x2071e7]={'name':_0x2071e7,'operator':_0x855ab4,'value':'eq'===_0x855ab4?_0x23bcdd[0x0][_0x2071e7]:[]};}),_0x23bcdd['length']>0x1&&_0x23bcdd['forEach'](_0x48090e=>{const _0x3ad0e8=_0x95928b;Object[_0x3ad0e8(0xe5)](_0x48090e)['forEach'](_0x20a1c8=>{_0x5dca02[_0x20a1c8]['value']['push'](_0x48090e[_0x20a1c8]);});}),Object['keys'](_0x5dca02)[_0x95928b(0xe2)](_0x5daa2d=>{const _0x29bfcc=_0x95928b;_0x3417dc[_0x29bfcc(0xcc)](_0x5dca02[_0x5daa2d]);}),_0x3417dc;}async[a0_0x3efe4e(0xde)](_0x28356b){const _0x5b30f2=a0_0x3efe4e;if(this['is_activity'])return this[_0x5b30f2(0xd1)]||{};let _0xe340b8=ValueUtil['getParams'](this[_0x5b30f2(0xcf)],'query',_0x5b30f2(0x100)),_0x4fa3bb=ValueUtil[_0x5b30f2(0xe4)](this[_0x5b30f2(0xcf)],'query','after_set_fields'),_0x52e7fa=Object[_0x5b30f2(0xe5)](_0x4fa3bb||{}),_0x324c96=MetaApi[_0x5b30f2(0xd6)]((this[_0x5b30f2(0xfb)]?this['gristConfigSet']:{'columns':this[_0x5b30f2(0xdf)]})[_0x5b30f2(0xf9)][_0x5b30f2(0xf2)](_0x1ba80f=>!_0x52e7fa[_0x5b30f2(0xd0)](_0x1ba80f[_0x5b30f2(0xf6)]))),_0x5ef728=await MetaApi[_0x5b30f2(0xde)](_0xe340b8,_0x28356b,_0x324c96);return ValueUtil[_0x5b30f2(0xe9)](_0x4fa3bb)&&ValueUtil['isNotEmpty'](_0x5ef728)&&_0x52e7fa[_0x5b30f2(0xe2)](_0x120d63=>{_0x5ef728[_0x120d63]=ValueUtil['getParams'](_0x5ef728,..._0x4fa3bb[_0x120d63]['split']('.'));}),_0x5ef728;}async[a0_0x3efe4e(0x101)](_0x37dbf5){const _0x31d071=a0_0x3efe4e;let _0x5c72ee=ValueUtil[_0x31d071(0xe4)](this['gqlInfo'],_0x31d071(0xec),_0x31d071(0xca),_0x31d071(0xf3));return await MetaApi[_0x31d071(0xfe)](_0x37dbf5,_0x5c72ee);}async[a0_0x3efe4e(0xdb)](_0x5d766a){const _0x3908aa=a0_0x3efe4e;let _0x83452a=ValueUtil[_0x3908aa(0xe4)](this['gqlInfo'],_0x3908aa(0xec),_0x3908aa(0xf0),_0x3908aa(0xf3)),_0x2aa086=ValueUtil['getParams'](this[_0x3908aa(0xcf)],_0x3908aa(0xec),_0x3908aa(0xf0),_0x3908aa(0xd2));if(ValueUtil[_0x3908aa(0xe9)](_0x2aa086)&&(_0x2aa086=_0x2aa086[_0x3908aa(0xe3)](_0x42db60=>_0x42db60[_0x3908aa(0xd0)]('.')?_0x42db60[_0x3908aa(0xee)]('.'):_0x42db60),_0x5d766a=_0x5d766a[_0x3908aa(0xe3)](_0x1c375c=>(_0x2aa086[_0x3908aa(0xe2)](_0xb32ba9=>{const _0x1467f1=_0x3908aa;Array[_0x1467f1(0xea)](_0xb32ba9)?delete _0x1c375c[_0xb32ba9[0x0]][_0xb32ba9[0x1]]:delete _0x1c375c[_0xb32ba9];}),_0x1c375c))),this[_0x3908aa(0xfa)]&&ValueUtil['isNotEmpty'](this[_0x3908aa(0xd4)])){let _0x3ef8bc=ValueUtil[_0x3908aa(0xe4)](this[_0x3908aa(0xcf)],_0x3908aa(0xec),_0x3908aa(0xf0),'parent_id');ValueUtil[_0x3908aa(0xe9)](_0x3ef8bc)&&_0x5d766a[_0x3908aa(0xe2)](_0x438650=>{const _0x1ed31d=_0x3908aa;if(_0x3ef8bc[_0x1ed31d(0xd0)]('.')){let _0x16fcdc=_0x3ef8bc[_0x1ed31d(0xee)]('.');_0x438650[_0x16fcdc[0x0]]={},_0x438650[_0x16fcdc[0x0]][_0x16fcdc[0x1]]=this[_0x1ed31d(0xd4)];}else _0x438650[_0x3ef8bc]=this[_0x1ed31d(0xd4)];});}return await MetaApi[_0x3908aa(0xdb)](_0x83452a,_0x5d766a);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x530b6b=a0_0x3fad;(function(_0x45c735,_0x55008f){const _0x22228f=a0_0x3fad,_0x1cdddf=_0x45c735();while(!![]){try{const _0x516d3d=parseInt(_0x22228f(0x1e4))/0x1+parseInt(_0x22228f(0x204))/0x2*(-parseInt(_0x22228f(0x1e5))/0x3)+parseInt(_0x22228f(0x1df))/0x4*(-parseInt(_0x22228f(0x1ce))/0x5)+-parseInt(_0x22228f(0x1d8))/0x6+parseInt(_0x22228f(0x1f4))/0x7+parseInt(_0x22228f(0x1dc))/0x8*(parseInt(_0x22228f(0x1dd))/0x9)+-parseInt(_0x22228f(0x203))/0xa*(parseInt(_0x22228f(0x1d3))/0xb);if(_0x516d3d===_0x55008f)break;else _0x1cdddf['push'](_0x1cdddf['shift']());}catch(_0x3101a4){_0x1cdddf['push'](_0x1cdddf['shift']());}}}(a0_0x500a,0x72fc8));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3fad(_0x2dfc21,_0x411ad7){const _0x500ab3=a0_0x500a();return a0_0x3fad=function(_0x3fad67,_0x455263){_0x3fad67=_0x3fad67-0x1ca;let _0x2d7102=_0x500ab3[_0x3fad67];return _0x2d7102;},a0_0x3fad(_0x2dfc21,_0x411ad7);}function a0_0x500a(){const _0x3308af=['getAndParseMenuMeta','exportable','activityDataSet','5453048giGBYs','9XAkbbC','context','158812WOnLpA','getBasicTabDetailStyles','filter','search','pageInitialized','807911eJWPGU','452190fouEWu','type','getTabDetailHtml','filterFormId','header','name','useButtonExport','clear','detailElement','grist','querySelector','useButtonImport','operator','fetch','main','5448016MaajqS','options','record','searchConfig','getData','isElement','gridColumnConfig','filterForm','masterElement','columns','parseGridConfigSet','firstUpdated','parseGristConfigs','useFilterForm','useMasterFilterForm','10068430CWlirJ','8mNKaCK','styles','searchFields','actions','isPage','15gEEIZp','gridConfig','beforeFetch','grid','gristId','11XPWFUZ','ox-grist','connectedCallback','map','importable','407844tGMNOI'];a0_0x500a=function(){return _0x3308af;};return a0_0x500a();}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=_0x108c2e=>class extends MetaButtonMixin(_0x108c2e){static get[a0_0x530b6b(0x1ca)](){const _0x3fabf6=a0_0x530b6b;return MetaApi[_0x3fabf6(0x1e0)]();}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['grist'](){const _0x3cc579=a0_0x530b6b;return this[_0x3cc579(0x1fc)]['getMainGrist']();}get[a0_0x530b6b(0x1fb)](){const _0x3ed5b8=a0_0x530b6b;return this['shadowRoot']?.[_0x3ed5b8(0x1ef)](this['filterFormId']);}get[a0_0x530b6b(0x1de)](){const _0xe68c7c=a0_0x530b6b;let _0x54a35b=MetaUiUtil['getContextObject'](this);return _0x54a35b[_0xe68c7c(0x1cc)]&&delete _0x54a35b[_0xe68c7c(0x1cc)],_0x54a35b[_0xe68c7c(0x1da)]&&delete _0x54a35b[_0xe68c7c(0x1da)],_0x54a35b[_0xe68c7c(0x1d7)]&&delete _0x54a35b[_0xe68c7c(0x1d7)],_0x54a35b;}async[a0_0x530b6b(0x1d5)](){const _0xf15a9b=a0_0x530b6b;this[_0xf15a9b(0x1d2)]=_0xf15a9b(0x1d4),this[_0xf15a9b(0x1e8)]='ox-filters-form-base',await this[_0xf15a9b(0x1d9)](),this[_0xf15a9b(0x1f9)]&&await this[_0xf15a9b(0x200)](),this[_0xf15a9b(0x1db)]&&(this['dataSet']=(this[_0xf15a9b(0x1db)]||{})[_0xf15a9b(0x1f3)]),super[_0xf15a9b(0x1d5)]&&await super['connectedCallback']();}async[a0_0x530b6b(0x1ff)](){const _0x5c5266=a0_0x530b6b;super[_0x5c5266(0x1ff)]&&await super[_0x5c5266(0x1ff)]();}async[a0_0x530b6b(0x1e3)](){const _0x39009c=a0_0x530b6b;this[_0x39009c(0x1cd)]&&await this[_0x39009c(0x200)](),super['pageInitialized']&&await super['pageInitialized']();}['render'](){const _0x80241c=a0_0x530b6b;return MetaApi[_0x80241c(0x1e7)](this);}['parseBasicGridConfigs'](_0x339d16){const _0xde8453=a0_0x530b6b;this[_0xde8453(0x1cf)]=_0x339d16[_0xde8453(0x1d1)],this[_0xde8453(0x1fa)]=_0x339d16['grid_column'],this[_0xde8453(0x1f7)]=_0x339d16[_0xde8453(0x1e2)];}async[a0_0x530b6b(0x200)](){const _0x17fc95=a0_0x530b6b;this['gristConfigSet']=await MetaApi[_0x17fc95(0x1fe)](this),this[_0x17fc95(0x202)]=!0x0===this[_0x17fc95(0x201)],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x17fc95(0x1eb)]=!0x1,this[_0x17fc95(0x1f0)]=!0x1,this[_0x17fc95(0x1cb)]=this['gristConfigSet'][_0x17fc95(0x1fd)]['filter'](_0x239f24=>_0x239f24[_0x17fc95(0x1e1)])[_0x17fc95(0x1d6)](_0x3a3082=>{const _0x6252db=_0x17fc95;let _0x4c9405={'name':_0x3a3082[_0x6252db(0x1ea)],'type':_0x3a3082[_0x6252db(0x1e6)],'label':_0x3a3082[_0x6252db(0x1e9)],'operator':_0x3a3082['filter'][_0x6252db(0x1f1)]?_0x3a3082[_0x6252db(0x1e1)]['operator']:'eq'};return _0x3a3082[_0x6252db(0x1f6)]['options']&&(_0x4c9405[_0x6252db(0x1f5)]=_0x3a3082[_0x6252db(0x1f6)]['options']),_0x4c9405;});}async['fetch'](){const _0x4e2ac0=a0_0x530b6b;await this[_0x4e2ac0(0x1ee)][_0x4e2ac0(0x1f2)]();}async[a0_0x530b6b(0x1d0)]({page:_0x579012=0x0,limit:_0x22d84b=0x0,sortings:_0xba6764=[],filters:_0x4ece68=[]}){const _0x422c52=a0_0x530b6b;return this[_0x422c52(0x1fc)]&&this[_0x422c52(0x1fc)][_0x422c52(0x1ec)]&&await this[_0x422c52(0x1fc)][_0x422c52(0x1ec)](),this[_0x422c52(0x1ed)]&&this[_0x422c52(0x1ed)]['clear']&&await this['detailElement'][_0x422c52(0x1ec)](),!0x0;}[a0_0x530b6b(0x1f8)](){const _0x5d6c64=a0_0x530b6b;return{'master':this[_0x5d6c64(0x1fc)][_0x5d6c64(0x1f8)](),'detail':this['detailElement'][_0x5d6c64(0x1f8)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x3e6ef2=a0_0x3954;(function(_0x2794dc,_0x10b68e){const _0x142d56=a0_0x3954,_0x39f719=_0x2794dc();while(!![]){try{const _0x5a6fb6=-parseInt(_0x142d56(0x148))/0x1*(parseInt(_0x142d56(0x13a))/0x2)+parseInt(_0x142d56(0x12c))/0x3+parseInt(_0x142d56(0x133))/0x4+parseInt(_0x142d56(0x11e))/0x5*(-parseInt(_0x142d56(0x126))/0x6)+parseInt(_0x142d56(0x138))/0x7*(-parseInt(_0x142d56(0x13e))/0x8)+parseInt(_0x142d56(0x132))/0x9*(parseInt(_0x142d56(0x127))/0xa)+-parseInt(_0x142d56(0x11b))/0xb*(parseInt(_0x142d56(0x147))/0xc);if(_0x5a6fb6===_0x10b68e)break;else _0x39f719['push'](_0x39f719['shift']());}catch(_0x18a3a9){_0x39f719['push'](_0x39f719['shift']());}}}(a0_0x2787,0xb201f));function a0_0x2787(){const _0x22bf28=['8084034SpCkXg','1637352taWXrR','properties','getMainGrist','grist','context','7qiOpkP','name','20MRGlBF','@things-factory/meta-ui/client/pages/meta-grist-element','getAndParseMenuMeta','styles','163048HiJpZH','mainFilterForm','display','activityDataSet','length','parseBasicTabConfigs','getContextObject','main_tab_info','forEach','60ovEuEX','82198pgouKP','843403zhRCKo','tabRenderConfig','meta-grist-element','302015KMbTOP','connectedCallback','unshift','includeMainList','param_field','getBasicTabStyles','tabElements','tab','78GeGnEY','10xYOYpL','firstUpdated','dataSet','getData','pageInitialized','4297560mPZgui','render','clear','route_name','keys','currentTabKey'];a0_0x2787=function(){return _0x22bf28;};return a0_0x2787();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3954(_0x967c3c,_0x5b52ad){const _0x2787c6=a0_0x2787();return a0_0x3954=function(_0x395442,_0x3b22f6){_0x395442=_0x395442-0x11b;let _0x15c2cb=_0x2787c6[_0x395442];return _0x15c2cb;},a0_0x3954(_0x967c3c,_0x5b52ad);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x1db8be=>class extends MetaButtonMixin(_0x1db8be){static get[a0_0x3e6ef2(0x13d)](){const _0x2987e3=a0_0x3e6ef2;return MetaApi[_0x2987e3(0x123)]();}static get[a0_0x3e6ef2(0x134)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x3e6ef2(0x137)](){const _0x48b580=a0_0x3e6ef2;return MetaUiUtil[_0x48b580(0x144)](this);}async['connectedCallback'](){const _0x445be4=a0_0x3e6ef2;this[_0x445be4(0x131)]=void 0x0,await this[_0x445be4(0x13c)](),this[_0x445be4(0x141)]&&(this[_0x445be4(0x129)]=this['activityDataSet']),super[_0x445be4(0x11f)]&&await super[_0x445be4(0x11f)]();}async[a0_0x3e6ef2(0x128)](){const _0x3fe99f=a0_0x3e6ef2;super[_0x3fe99f(0x128)]&&await super['firstUpdated']();}async[a0_0x3e6ef2(0x12b)](){super['pageInitialized']&&await super['pageInitialized']();}[a0_0x3e6ef2(0x12d)](){return MetaApi['getBasicTabHtml'](this);}[a0_0x3e6ef2(0x143)](_0x4390a){const _0x2da3dc=a0_0x3e6ef2;if(!0x0===this[_0x2da3dc(0x121)]){let _0x49bf6f=this['etcConfig'][_0x2da3dc(0x145)],_0x4def87=JSON['parse'](_0x49bf6f||'{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22\x20}');_0x4390a[_0x2da3dc(0x125)][_0x2da3dc(0x120)]({'name':_0x4def87[_0x2da3dc(0x139)],'display':_0x4def87[_0x2da3dc(0x140)],'tagname':_0x2da3dc(0x11d),'location':_0x2da3dc(0x13b),'parent_field':'id','param_field':_0x2da3dc(0x122),'menu':this[_0x2da3dc(0x12f)],'icon':_0x4def87['icon'],'filter_from':!0x1,'main_filter_form':this[_0x2da3dc(0x13f)]});}this[_0x2da3dc(0x11c)]=_0x4390a[_0x2da3dc(0x125)],_0x4390a['button']=[];}async[a0_0x3e6ef2(0x12e)](){const _0x1ecb28=a0_0x3e6ef2;if(this[_0x1ecb28(0x124)]){let _0x5df3af=Object['keys'](this[_0x1ecb28(0x124)]);for(var _0x28804e=0x0;_0x28804e<_0x5df3af[_0x1ecb28(0x142)];_0x28804e++)await this[_0x1ecb28(0x124)][_0x5df3af[_0x28804e]][_0x1ecb28(0x12e)]();}}[a0_0x3e6ef2(0x12a)](){const _0x14402d=a0_0x3e6ef2;let _0x28c73e={};return this['tabElements']&&Object['keys'](this[_0x14402d(0x124)])[_0x14402d(0x146)](_0x6c1d09=>{const _0x17dd01=_0x14402d;_0x28c73e[_0x6c1d09]=this[_0x17dd01(0x124)][_0x6c1d09][_0x17dd01(0x12a)]();}),_0x28c73e;}[a0_0x3e6ef2(0x135)](){const _0x111efd=a0_0x3e6ef2;if(this[_0x111efd(0x124)]){let _0x363445=Object[_0x111efd(0x130)](this['tabElements']);return this[_0x111efd(0x124)][_0x363445[0x0]][_0x111efd(0x136)];}}};
|