@things-factory/meta-ui 6.0.110 → 6.0.111
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/bootstrap.js +3 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -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 +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +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/pages/work-code/work-code-detail-popup.js +1 -0
- package/client/pages/work-code/work-code-page.js +1 -0
- package/client/reducers/main.js +1 -1
- package/client/route.js +3 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +96 -96
- package/client/utils/service-util.js +22 -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/index.js +9 -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/server/service/work-code/index.js +9 -0
- package/server/service/work-code/work-code-mutation.js +1 -0
- package/server/service/work-code/work-code-query.js +1 -0
- package/server/service/work-code/work-code-type.js +1 -0
- package/server/service/work-code/work-code.js +1 -0
- package/server/service/work-code-detail/index.js +9 -0
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -0
- package/server/service/work-code-detail/work-code-detail-query.js +1 -0
- package/server/service/work-code-detail/work-code-detail-type.js +1 -0
- package/server/service/work-code-detail/work-code-detail.js +1 -0
- package/things-factory.config.js +4 -0
- package/translations/en.json +6 -1
- package/translations/ko.json +6 -1
- package/translations/ms.json +6 -1
- package/translations/zh.json +6 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x102dd7=a0_0x85eb;(function(_0x4ec3e5,_0x48cb48){const _0x2530f1=a0_0x85eb,_0xc936da=_0x4ec3e5();while(!![]){try{const _0xd2feac=parseInt(_0x2530f1(0x1c0))/0x1+-parseInt(_0x2530f1(0x1ba))/0x2*(-parseInt(_0x2530f1(0x1d6))/0x3)+-parseInt(_0x2530f1(0x1c4))/0x4+-parseInt(_0x2530f1(0x1c9))/0x5*(parseInt(_0x2530f1(0x1c7))/0x6)+-parseInt(_0x2530f1(0x1cf))/0x7*(-parseInt(_0x2530f1(0x1cc))/0x8)+-parseInt(_0x2530f1(0x1b9))/0x9+parseInt(_0x2530f1(0x1d3))/0xa*(parseInt(_0x2530f1(0x1d5))/0xb);if(_0xd2feac===_0x48cb48)break;else _0xc936da['push'](_0xc936da['shift']());}catch(_0x4982d6){_0xc936da['push'](_0xc936da['shift']());}}}(a0_0x3c5b,0xf2960));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x492fc7 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_0x3c5b(){const _0x5522f1=['query','meta[name=\x22application-name\x22]','6esTtat','dynamic-menu','7672150hYrcww','hamburger','portrait','3542416vonLFY','get','UPDATE_META_UI','7EFFqZi','lite-menu-part','dispatch','querySelector','930tyqOld','liteMenus','100408dHipeY','3bhUiVZ','active','landscape','value','dynamic-menu-part','16327008mDUknJ','3416540hGFIpk','FRONT_END','UPDATE_META_MENU_TEMPLATE','appName','data','filter','1606040gbmLCf','NAVBAR','HEADERBAR','rank','1055368dCujqP'];a0_0x3c5b=function(){return _0x5522f1;};return a0_0x3c5b();}import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x102dd7(0x1ce);export const UPDATE_META_MENU_TEMPLATE=a0_0x102dd7(0x1bc);var HAMBURGER;export async function setupMenuPart(_0x53341b){const _0x218a9c=a0_0x102dd7;var {hovering:_0x33754e=!!isMobileDevice(),slotTemplate:_0x1dc9ae,portraitSlotTemplate:_0x169cc3,landscapeSlotTemplate:_0xfc3e2b,position:_0x1f94d7=VIEWPART_POSITION[_0x218a9c(0x1c1)]}=_0x53341b||{};const {hovering:_0x22e9f5}=(await clientSettingStore[_0x218a9c(0x1cd)](_0x218a9c(0x1c8)))?.[_0x218a9c(0x1d9)]||{};void 0x0!==_0x22e9f5&&(_0x33754e=_0x22e9f5);const _0x2e1121=_0x1f94d7==VIEWPART_POSITION[_0x218a9c(0x1c2)]?_0x218a9c(0x1d8):_0x218a9c(0x1cb),_0x50e043=(_0x218a9c(0x1d8)==_0x2e1121?_0xfc3e2b:_0x169cc3)||_0x1dc9ae||html``;appendViewpart({'name':_0x218a9c(0x1d0),'viewpart':{'show':!_0x33754e,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x33754e,'template':html`<dynamic-menu-part .orientation=${_0x2e1121}>${_0x50e043}</dynamic-menu-part>`},'position':_0x1f94d7}),_0x33754e&&_0x218a9c(0x1cb)==_0x2e1121?HAMBURGER||(HAMBURGER={'name':_0x218a9c(0x1ca),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x30b1e2=>toggleOverlay(_0x218a9c(0x1b8),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x218a9c(0x1bb)]},store[_0x218a9c(0x1d1)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x218a9c(0x1d1)]({'type':REMOVE_APP_TOOL,'name':_0x218a9c(0x1ca)}),HAMBURGER=null);}function a0_0x85eb(_0x56f1df,_0x529034){const _0x3c5b3f=a0_0x3c5b();return a0_0x85eb=function(_0x85eb73,_0x58d3a3){_0x85eb73=_0x85eb73-0x1b8;let _0x27d6d7=_0x3c5b3f[_0x85eb73];return _0x27d6d7;},a0_0x85eb(_0x56f1df,_0x529034);}export async function updateMenuTemplate(_0x19043f){const _0x4698d4=a0_0x102dd7;var _0x468ef4=document[_0x4698d4(0x1d2)](_0x4698d4(0x1c6))?.['content'],_0x2813a4=(await client[_0x4698d4(0x1c5)]({'query':a0_0x492fc7`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x195e0c=a0_0x903d;(function(_0x2dad50,_0x257dd8){const _0xdac622=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x4698d4(0x1d7),'operator':'eq','value':!0x0},{'name':_0x4698d4(0x1bd),'operator':'in','value':['',_0x468ef4]}],'sortings':[{'name':_0x4698d4(0x1c3),'desc':!0x1}]}}))[_0x4698d4(0x1be)][_0x4698d4(0x1d4)]['items'];store[_0x4698d4(0x1d1)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2813a4[_0x4698d4(0x1bf)](_0x31af25=>!_0x31af25['appName']||_0x31af25[_0x4698d4(0x1bd)]===_0x468ef4),'template':_0x19043f});}
|
package/client/bootstrap.js
CHANGED
|
@@ -184,6 +184,9 @@ function metaUiRoute(page) {
|
|
|
184
184
|
} else if (page == 'config-entity') {
|
|
185
185
|
import('./pages/entity/config-entity')
|
|
186
186
|
return page
|
|
187
|
+
} else if (page == 'work-code-page') {
|
|
188
|
+
import('./pages/work-code/work-code-page')
|
|
189
|
+
return page
|
|
187
190
|
} else if (page == 'loading-page') {
|
|
188
191
|
import('./pages/loading-page')
|
|
189
192
|
return page
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x491f77=a0_0x1549;(function(_0x4ebf7d,_0x2cfe9d){const _0x3b4a9c=a0_0x1549,_0x2a75a8=_0x4ebf7d();while(!![]){try{const _0xcb68dd=-parseInt(_0x3b4a9c(0x11e))/0x1+-parseInt(_0x3b4a9c(0x13d))/0x2*(-parseInt(_0x3b4a9c(0x137))/0x3)+parseInt(_0x3b4a9c(0x135))/0x4*(-parseInt(_0x3b4a9c(0x121))/0x5)+-parseInt(_0x3b4a9c(0x11b))/0x6*(-parseInt(_0x3b4a9c(0x129))/0x7)+parseInt(_0x3b4a9c(0x10e))/0x8+parseInt(_0x3b4a9c(0x12a))/0x9+-parseInt(_0x3b4a9c(0x126))/0xa*(parseInt(_0x3b4a9c(0x12f))/0xb);if(_0xcb68dd===_0x2cfe9d)break;else _0x2a75a8['push'](_0x2a75a8['shift']());}catch(_0x2e1ea6){_0x2a75a8['push'](_0x2a75a8['shift']());}}}(a0_0x879c,0x531d1));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x879c(){const _0x3fb79b=['parseBasicButtonConfigs','parseBasicServiceConfigs','parseBasicFormConfigs','fetchHandler','isPage','etc','active','parseBasicTabConfigs','pageUpdated','getParams','1940142LxcXiF','title_detail','params','403714XrCSpJ','menuInfo','fetch','35XeZokN','grist','isNotEmpty','menu','filterForm','70UxQRWS','isEmpty','getAndParseMenuMeta','7uXKUkP','5431077FvGfCk','parseBasicGridConfigs','openDynamicPopup','excuteOpenPopupButtonClick','after','1319593jYAMHt','title','name','is_detail','getMenuMeta','executeCallScenarioButtonClick','186148KSTOIo','properties','618QhkblZ','tTitle','setParentId','is_popup','split','etcConfig','4786rhRZBl','isDetail','3919032VuCnco','errors','lifecycle'];a0_0x879c=function(){return _0x3fb79b;};return a0_0x879c();}function a0_0x1549(_0x55a001,_0x2163ff){const _0x879c5b=a0_0x879c();return a0_0x1549=function(_0x154956,_0x988e77){_0x154956=_0x154956-0x10e;let _0x449433=_0x879c5b[_0x154956];return _0x449433;},a0_0x1549(_0x55a001,_0x2163ff);}export const MetaBaseMixin=_0x167b5b=>class extends _0x167b5b{static get[a0_0x491f77(0x136)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x5af636=>Boolean(_0x5af636)},'is_popup':{'type':Boolean,'converter':_0x32cb02=>Boolean(_0x32cb02)},'is_activity':{'type':Boolean,'converter':_0x5b75bb=>Boolean(_0x5b75bb)},'is_readonly':{'type':Boolean,'converter':_0x5b5e25=>Boolean(_0x5b5e25)}};}get['isElement'](){const _0x4dd730=a0_0x491f77;return!0x0===this[_0x4dd730(0x132)]||!0x0===this[_0x4dd730(0x13a)];}get[a0_0x491f77(0x13e)](){const _0x5b4047=a0_0x491f77;return!ValueUtil[_0x5b4047(0x127)](this[_0x5b4047(0x132)])&&this['is_detail'];}async[a0_0x491f77(0x119)](_0xe1b5b8,_0x1e7247,_0x2e9ff6){const _0x38f2d0=a0_0x491f77;let _0x3e5c58=this['lifecycle']?.[_0x38f2d0(0x11d)]?this[_0x38f2d0(0x110)][_0x38f2d0(0x11d)]:{};this[_0x38f2d0(0x115)]&&this['active']&&0x0==_0x2e9ff6[_0x38f2d0(0x117)]&&ValueUtil[_0x38f2d0(0x123)](_0x3e5c58)&&this[_0x38f2d0(0x120)]();}get['isPopup'](){const _0x1197fc=a0_0x491f77;return!ValueUtil[_0x1197fc(0x127)](this[_0x1197fc(0x13a)])&&this[_0x1197fc(0x13a)];}get['isPage'](){const _0x327099=a0_0x491f77;return!this[_0x327099(0x132)]&&!this[_0x327099(0x13a)];}async[a0_0x491f77(0x128)](){const _0x303bf2=a0_0x491f77;let _0x47029a=await MetaApi[_0x303bf2(0x133)](this);_0x47029a&&(this[_0x303bf2(0x11f)]=_0x47029a[_0x303bf2(0x124)],this[_0x303bf2(0x13c)]=_0x47029a[_0x303bf2(0x116)],this[_0x303bf2(0x12b)]&&this[_0x303bf2(0x12b)](_0x47029a),this[_0x303bf2(0x112)]&&this[_0x303bf2(0x112)](_0x47029a),this[_0x303bf2(0x113)]&&this[_0x303bf2(0x113)](_0x47029a),this['parseBasicTabConfigs']&&this[_0x303bf2(0x118)](_0x47029a),this[_0x303bf2(0x111)]&&this[_0x303bf2(0x111)](_0x47029a));}async[a0_0x491f77(0x120)](){const _0x17e06d=a0_0x491f77;ValueUtil[_0x17e06d(0x123)](this[_0x17e06d(0x122)])?this[_0x17e06d(0x122)]['fetch']():(ValueUtil[_0x17e06d(0x123)](this[_0x17e06d(0x125)])||this[_0x17e06d(0x114)])&&await this['fetchHandler']();}async[a0_0x491f77(0x12d)](_0x420e72,_0x518a97,_0x4a206e){const _0x46e91e=a0_0x491f77;let _0xc0461a=TermsUtil[_0x46e91e(0x138)](_0x420e72[_0x46e91e(0x130)]);ValueUtil[_0x46e91e(0x123)](_0x420e72[_0x46e91e(0x11c)])&&(_0xc0461a=_0xc0461a+'-'+ValueUtil[_0x46e91e(0x11a)](_0x518a97,..._0x420e72[_0x46e91e(0x11c)][_0x46e91e(0x13b)]('.'))),MetaApi[_0x46e91e(0x12c)](_0xc0461a,_0x420e72,_0x518a97,_0x4a206e);}async[a0_0x491f77(0x134)](_0x30686e,_0xda2d69,_0x4a1bfb){const _0x4e4028=a0_0x491f77;let _0x54901e=await MetaApi['callScenario'](_0x30686e['name'],_0x30686e[_0x4e4028(0x131)],_0xda2d69);!0x1!==_0x54901e&&!_0x54901e[_0x4e4028(0x10f)]&&ValueUtil[_0x4e4028(0x123)](_0x30686e[_0x4e4028(0x12e)])&&_0x4a1bfb();}[a0_0x491f77(0x139)](_0x35ea8e){this['parent_id']=_0x35ea8e,this['fetch']();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
function a0_0x43ad(){const _0x4f0594=['data','connectedCallback','___data','render','clear','findOne','ox-filters-form','isNotEmpty','activityDataSet','54153ONGwVt','renderRoot','parse','3811923CJfwfU','gridConfig','save','pageInitialized','stringify','import','keys','find','1526895WVebmJ','getButtonContainer','searchConfig','styles','13ieIVfL','records','grist','patchesForUpdateMultiple','context','forEach','12VdwIRi','4nXvcUz','gristConfigSet','fetch','menuInfo','isElement','firstUpdated','parseBasicGridConfigs','getContextObject','getBasicGristHtml','2220610YMnWfe','getParams','querySelector','parseGridConfigSet','tTitle','getBasicGristStyles','10PaducA','export','isPage','dataSet','getAndParseMenuMeta','deleteByIds','startsWith','111993hyXDAE','387486XpLhaJ','getSelectedIdList','filterFormId','grid','parseGristConfigs','633144ZqLOlk','gristId','6KHeEzZ','24HgKxXz','5eyrXwp','getData'];a0_0x43ad=function(){return _0x4f0594;};return a0_0x43ad();}function a0_0x1561(_0x548ee2,_0x326e47){const _0x43ad55=a0_0x43ad();return a0_0x1561=function(_0x156104,_0x8dea12){_0x156104=_0x156104-0x166;let _0x3dcf2a=_0x43ad55[_0x156104];return _0x3dcf2a;},a0_0x1561(_0x548ee2,_0x326e47);}const a0_0x3ef3e3=a0_0x1561;(function(_0x15c6d6,_0x23b8eb){const _0x360512=a0_0x1561,_0xdd89d3=_0x15c6d6();while(!![]){try{const _0xcfe752=-parseInt(_0x360512(0x18a))/0x1*(parseInt(_0x360512(0x17d))/0x2)+-parseInt(_0x360512(0x195))/0x3*(-parseInt(_0x360512(0x1a0))/0x4)+parseInt(_0x360512(0x17f))/0x5*(parseInt(_0x360512(0x17b))/0x6)+-parseInt(_0x360512(0x175))/0x7*(-parseInt(_0x360512(0x17e))/0x8)+-parseInt(_0x360512(0x18d))/0x9*(parseInt(_0x360512(0x16e))/0xa)+-parseInt(_0x360512(0x176))/0xb*(-parseInt(_0x360512(0x19f))/0xc)+parseInt(_0x360512(0x199))/0xd*(parseInt(_0x360512(0x168))/0xe);if(_0xcfe752===_0x23b8eb)break;else _0xdd89d3['push'](_0xdd89d3['shift']());}catch(_0x5d07b3){_0xdd89d3['push'](_0xdd89d3['shift']());}}}(a0_0x43ad,0x41ff1));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x5f557a=>class extends MetaButtonMixin(_0x5f557a){static get[a0_0x3ef3e3(0x198)](){const _0x476f2e=a0_0x3ef3e3;return MetaApi[_0x476f2e(0x16d)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x2ff3ef=a0_0x3ef3e3;return this[_0x2ff3ef(0x18b)]?.[_0x2ff3ef(0x16a)](this['gristId']);}get['filterForm'](){const _0x588956=a0_0x3ef3e3;return this['shadowRoot']?.['querySelector'](this[_0x588956(0x178)]);}get[a0_0x3ef3e3(0x19d)](){const _0x59abf2=a0_0x3ef3e3;return MetaUiUtil[_0x59abf2(0x166)](this);}async[a0_0x3ef3e3(0x182)](){const _0x4b290e=a0_0x3ef3e3;this[_0x4b290e(0x17c)]='ox-grist',this['filterFormId']=_0x4b290e(0x187),await this[_0x4b290e(0x172)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x4b290e(0x189)]&&(this[_0x4b290e(0x171)]=this['activityDataSet']),super[_0x4b290e(0x182)]&&await super[_0x4b290e(0x182)]();}async[a0_0x3ef3e3(0x1a5)](){const _0x547596=a0_0x3ef3e3;super['firstUpdated']&&await super[_0x547596(0x1a5)]();}async['pageInitialized'](){const _0x41f88d=a0_0x3ef3e3;this[_0x41f88d(0x170)]&&await this[_0x41f88d(0x17a)](),super[_0x41f88d(0x190)]&&await super[_0x41f88d(0x190)]();}[a0_0x3ef3e3(0x184)](){const _0xc32a82=a0_0x3ef3e3;return html`
|
|
2
|
+
${MetaApi[_0xc32a82(0x167)](this)}
|
|
3
|
+
${this[_0xc32a82(0x170)]?html``:MetaUiUtil[_0xc32a82(0x196)](this)}
|
|
4
|
+
`;}[a0_0x3ef3e3(0x1a6)](_0x88e54c){const _0xe36d9e=a0_0x3ef3e3;this[_0xe36d9e(0x18e)]=_0x88e54c[_0xe36d9e(0x179)],this['gridColumnConfig']=_0x88e54c['grid_column'],this[_0xe36d9e(0x197)]=_0x88e54c['search'];}async[a0_0x3ef3e3(0x17a)](){const _0x38a837=a0_0x3ef3e3;this[_0x38a837(0x1a1)]=await MetaApi[_0x38a837(0x16b)](this);}async[a0_0x3ef3e3(0x1a2)](){const _0x4434cd=a0_0x3ef3e3;await this[_0x4434cd(0x19b)][_0x4434cd(0x1a2)]();}async[a0_0x3ef3e3(0x18f)](){const _0x2e1b03=a0_0x3ef3e3;let _0x31c185=MetaApi[_0x2e1b03(0x19c)](this['grist']);!!ValueUtil[_0x2e1b03(0x188)](_0x31c185)&&await this['updateMultiple'](_0x31c185)&&this[_0x2e1b03(0x1a2)]();}async[a0_0x3ef3e3(0x194)](){const _0x549dc5=a0_0x3ef3e3;let _0x5bc46d=MetaApi[_0x549dc5(0x177)](this[_0x549dc5(0x19b)],!0x0);return ValueUtil[_0x549dc5(0x188)](_0x5bc46d)?await this[_0x549dc5(0x186)](_0x5bc46d[0x0]):{};}async['delete'](){const _0x2c15b9=a0_0x3ef3e3;let _0x54aa51=MetaApi['getSelectedIdList'](this[_0x2c15b9(0x19b)],!0x0);!!ValueUtil['isNotEmpty'](_0x54aa51)&&await this[_0x2c15b9(0x173)](_0x54aa51)&&this[_0x2c15b9(0x1a2)]();}async[a0_0x3ef3e3(0x16f)](){const _0x3fa21f=a0_0x3ef3e3;let _0x251ea8=TermsUtil[_0x3fa21f(0x16c)](ValueUtil[_0x3fa21f(0x169)](this[_0x3fa21f(0x1a3)],'title'));return await MetaApi['exportableData'](this[_0x3fa21f(0x1a4)],_0x251ea8,this[_0x3fa21f(0x19b)]);}async[a0_0x3ef3e3(0x192)](){}async[a0_0x3ef3e3(0x185)](){const _0x3cca05=a0_0x3ef3e3;this[_0x3cca05(0x19b)]&&(this[_0x3cca05(0x19b)][_0x3cca05(0x181)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x3ef3e3(0x180)](){const _0x25e9a8=a0_0x3ef3e3;let _0x3759f8=this[_0x25e9a8(0x19b)][_0x25e9a8(0x183)][_0x25e9a8(0x19a)];return _0x3759f8=JSON[_0x25e9a8(0x18c)](JSON[_0x25e9a8(0x191)](_0x3759f8)),_0x3759f8[_0x25e9a8(0x19e)](_0x43283b=>{const _0x5d83ab=_0x25e9a8;Object[_0x5d83ab(0x193)](_0x43283b)[_0x5d83ab(0x19e)](_0x136b75=>{const _0x324c1d=_0x5d83ab;_0x136b75[_0x324c1d(0x174)]('__')&&delete _0x43283b[_0x136b75];});}),_0x3759f8;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1d2e84=a0_0x1b89;(function(_0x126762,_0x4bba1d){const _0x170a41=a0_0x1b89,_0xa01ff8=_0x126762();while(!![]){try{const _0x53604a=-parseInt(_0x170a41(0xd1))/0x1*(-parseInt(_0x170a41(0xda))/0x2)+parseInt(_0x170a41(0xe2))/0x3+parseInt(_0x170a41(0xcf))/0x4*(-parseInt(_0x170a41(0xd7))/0x5)+parseInt(_0x170a41(0xd9))/0x6*(-parseInt(_0x170a41(0xd8))/0x7)+parseInt(_0x170a41(0xdd))/0x8+parseInt(_0x170a41(0xe5))/0x9+-parseInt(_0x170a41(0xd0))/0xa;if(_0x53604a===_0x4bba1d)break;else _0xa01ff8['push'](_0xa01ff8['shift']());}catch(_0x519ea5){_0xa01ff8['push'](_0xa01ff8['shift']());}}}(a0_0x5600,0x2431b));function a0_0x5600(){const _0x372981=['gristButtonHandler','318903NFqcma','getCustomButtonContainerStyles','getContextButtons','2248254ZpGJaS','116evtiRo','2057320ZlnXap','4969Satgps','parseBasicButtonConfigs','buttonConfig','import','customButtonHandler','useButtonAdd','29475DGuFqv','7BPGTiH','754266cmOAzu','76FHytMr','getButtonContainer','isButtonExist','845760HfqdBk','useButtonImport','export','properties'];a0_0x5600=function(){return _0x372981;};return a0_0x5600();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x1b89(_0xe5318f,_0x293e8c){const _0x560090=a0_0x5600();return a0_0x1b89=function(_0x1b89cd,_0x19e940){_0x1b89cd=_0x1b89cd-0xcf;let _0x69279a=_0x560090[_0x1b89cd];return _0x69279a;},a0_0x1b89(_0xe5318f,_0x293e8c);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0xfe9273=>class extends MetaServiceMixin(_0xfe9273){static get[a0_0x1d2e84(0xe0)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0x5c6e88=a0_0x1d2e84;return MetaUiUtil[_0x5c6e88(0xe3)]();}[a0_0x1d2e84(0xe4)](){const _0x4c1e93=a0_0x1d2e84;return MetaUiUtil[_0x4c1e93(0xe4)](this);}[a0_0x1d2e84(0xdb)](){const _0x4fbc29=a0_0x1d2e84;return this['isPage']?html``:MetaUiUtil[_0x4fbc29(0xdb)](this);}async['getBasicButtonHandler'](_0x2dcfd2,_0x5a6ba7,_0x32ecf1){return await MetaUiUtil['getButtonActionHandler'](this,_0x2dcfd2,_0x5a6ba7,_0x32ecf1);}async[a0_0x1d2e84(0xd5)](_0x25b7a3){const _0x224772=a0_0x1d2e84;await MetaUiUtil[_0x224772(0xd5)](this,_0x25b7a3);}async[a0_0x1d2e84(0xe1)](_0x7fd655,_0x107a2c){const _0x42ed9b=a0_0x1d2e84;await MetaUiUtil[_0x42ed9b(0xe1)](this,_0x7fd655,_0x107a2c);}[a0_0x1d2e84(0xd2)](_0x5cd6c8){const _0x450efb=a0_0x1d2e84;this[_0x450efb(0xd3)]=_0x5cd6c8['button'],this[_0x450efb(0xde)]=MetaUiUtil['isButtonExist'](this[_0x450efb(0xd3)],_0x450efb(0xd4)),this['useButtonExport']=MetaUiUtil[_0x450efb(0xdc)](this[_0x450efb(0xd3)],_0x450efb(0xdf)),this[_0x450efb(0xd6)]=MetaUiUtil['isButtonExist'](this[_0x450efb(0xd3)],'add');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x9e8451=a0_0xe410;(function(_0x4fc8ef,_0x5d7dc8){const _0x4871d4=a0_0xe410,_0x3d2f32=_0x4fc8ef();while(!![]){try{const _0x3409bc=parseInt(_0x4871d4(0x117))/0x1*(-parseInt(_0x4871d4(0x115))/0x2)+parseInt(_0x4871d4(0x10b))/0x3*(parseInt(_0x4871d4(0x127))/0x4)+parseInt(_0x4871d4(0xf4))/0x5+parseInt(_0x4871d4(0xe9))/0x6+-parseInt(_0x4871d4(0x116))/0x7+-parseInt(_0x4871d4(0x134))/0x8+parseInt(_0x4871d4(0x130))/0x9*(parseInt(_0x4871d4(0x107))/0xa);if(_0x3409bc===_0x5d7dc8)break;else _0x3d2f32['push'](_0x3d2f32['shift']());}catch(_0x4f1d8e){_0x3d2f32['push'](_0x3d2f32['shift']());}}}(a0_0x4fce,0x831fa));import{MetaApi}from'../utils/meta-api';function a0_0x4fce(){const _0x1bacbe=['21832SMbFgZ','3628674tmhEPi','47Ulmlnz','focus','formConfigSet','map','firstUpdated','getBasicFormHtml','true','OX-GRID-FIELD','getBasicFormStyles','__dirtyfields__','startsWith','column','__origin__','renderRoot','entries','button','8KraaRf','is_activity','forEach','parent_id','key','context','setAttribute','getData','orgData','63BOUmyy','styles','isNotEmpty','editing','5977352ZZNCfJ','currentTarget','isEquals','tagName','parseBasicFormConfigs','dirtyData','record','editable','patchData','formColumnConfig','filter','config','610062bKUNTL','save','Escape','target','cuFlag','Esc','grid_column','pageInitialized','showAlertPopup','removeAttribute','text.NOTHING_CHANGED','3870615SnTQyr','activityDataSet','call','Enter','clear','currentData','activity','parseFormConfigs','addEventListener','validation','after','getContextObject','removeGarbageData','keys','keydown','isElement','connectedCallback','before','__seq__','1964230IaqZJa','name','stopPropagation','fetch','97386OYinLH','formRenderConfig','isEmpty','updateMultiple','detail','object','findOne','field-change','getAndParseMenuMeta','__dirty__'];a0_0x4fce=function(){return _0x1bacbe;};return a0_0x4fce();}function a0_0xe410(_0x4da4e6,_0x151eb1){const _0x4fce5c=a0_0x4fce();return a0_0xe410=function(_0xe410b4,_0x3a56bb){_0xe410b4=_0xe410b4-0xe1;let _0x456bd0=_0x4fce5c[_0xe410b4];return _0x456bd0;},a0_0xe410(_0x4da4e6,_0x151eb1);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2b738d=>class extends MetaButtonMixin(_0x2b738d){static get[a0_0x9e8451(0x131)](){const _0x5dbae6=a0_0x9e8451;return MetaApi[_0x5dbae6(0x11f)]();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x9e8451(0x12c)](){const _0x21629f=a0_0x9e8451;return MetaUiUtil[_0x21629f(0xff)](this);}async[a0_0x9e8451(0x104)](){const _0x329b67=a0_0x9e8451;if(this[_0x329b67(0xe8)]){let {column:_0x350db1=0x1}=this[_0x329b67(0xe8)];this['column']=_0x350db1;}await this[_0x329b67(0x113)](),this['isElement']&&await this[_0x329b67(0xfb)](),this[_0x329b67(0xf5)]&&(this['dataSet']=this['activityDataSet']),!0x0!==this[_0x329b67(0x128)]||this[_0x329b67(0x12a)]||(this[_0x329b67(0x12a)]=_0x329b67(0xfa)),super[_0x329b67(0x104)]&&await super[_0x329b67(0x104)](),this[_0x329b67(0x103)]&&await this[_0x329b67(0x10a)](),this[_0x329b67(0x124)]['addEventListener'](_0x329b67(0x102),_0x34901c=>{const _0xc66f5f=_0x329b67;switch(_0x34901c[_0xc66f5f(0x12b)]){case _0xc66f5f(0xee):case _0xc66f5f(0xeb):case _0xc66f5f(0xf7):this['focus'](),this['currentTarget']&&this[_0xc66f5f(0x135)][_0xc66f5f(0xf2)](_0xc66f5f(0x133)),this[_0xc66f5f(0x135)]=null;}}),this[_0x329b67(0x124)]['addEventListener']('click',_0x1f93f2=>{const _0x2a3fad=_0x329b67;_0x1f93f2[_0x2a3fad(0x109)]();let _0x1bbfe8=_0x1f93f2[_0x2a3fad(0xec)];if(this[_0x2a3fad(0x135)]&&(this[_0x2a3fad(0x118)](),this[_0x2a3fad(0x135)][_0x2a3fad(0xf2)]('editing')),_0x2a3fad(0x11e)!==_0x1bbfe8[_0x2a3fad(0x137)]||!_0x1bbfe8[_0x2a3fad(0x122)]['record'][_0x2a3fad(0xe4)])return this[_0x2a3fad(0x118)](),void(this[_0x2a3fad(0x135)]=null);this['currentTarget']=_0x1bbfe8,_0x1bbfe8[_0x2a3fad(0x12d)](_0x2a3fad(0x133),_0x2a3fad(0x11d));}),this[_0x329b67(0xfc)](_0x329b67(0x112),_0x330297=>{const _0x17f848=_0x329b67;var {after:_0x10c64b,before:_0x4da6fc,column:_0x15f737,record:_0x33ddc1,row:_0x526226}=_0x330297[_0x17f848(0x10f)];if(ValueUtil[_0x17f848(0x136)](_0x10c64b,_0x4da6fc))return;var _0x425c0d=_0x15f737[_0x17f848(0xfd)];if(_0x425c0d&&'function'==typeof _0x425c0d&&!_0x425c0d[_0x17f848(0xf6)](this,_0x10c64b,_0x4da6fc,_0x33ddc1,_0x15f737))return;let _0x285856=_0x15f737[_0x17f848(0x108)];_0x33ddc1[_0x285856]=_0x10c64b,_0x33ddc1[_0x17f848(0x120)]=_0x33ddc1['__dirtyfields__']||{},_0x33ddc1[_0x17f848(0x123)]=_0x33ddc1[_0x17f848(0x123)]||{},_0x33ddc1['__dirtyfields__'][_0x285856]={'before':_0x33ddc1['__origin__'][_0x285856],'after':_0x33ddc1[_0x285856]},ValueUtil['isEquals'](_0x33ddc1['__dirtyfields__'][_0x285856][_0x17f848(0x105)],_0x33ddc1['__dirtyfields__'][_0x285856][_0x17f848(0xfe)])&&delete _0x33ddc1[_0x17f848(0x120)][_0x285856],ValueUtil[_0x17f848(0x132)](_0x33ddc1['__dirtyfields__'])?_0x33ddc1[_0x17f848(0x114)]='M':_0x33ddc1['__dirty__']='',this[_0x17f848(0xe3)]={..._0x33ddc1};});}async[a0_0x9e8451(0x11b)](){const _0x1989d4=a0_0x9e8451;super[_0x1989d4(0x11b)]&&await super[_0x1989d4(0x11b)]();}async[a0_0x9e8451(0xf0)](){const _0x51122f=a0_0x9e8451;this['isPage']&&await this[_0x51122f(0xfb)](),super[_0x51122f(0xf0)]&&await super[_0x51122f(0xf0)](),this['isPage']&&await this[_0x51122f(0x10a)]();}['render'](){const _0x2f2ab7=a0_0x9e8451;return MetaApi[_0x2f2ab7(0x11c)](this);}[a0_0x9e8451(0xe1)](_0x526e04){const _0x57b06f=a0_0x9e8451;this[_0x57b06f(0xe6)]=_0x526e04[_0x57b06f(0xef)],this[_0x57b06f(0x10c)]=_0x526e04['form'],_0x526e04[_0x57b06f(0x126)]=_0x526e04[_0x57b06f(0x126)][_0x57b06f(0xe7)](_0x1fc3b9=>_0x57b06f(0xea)==_0x1fc3b9['name']);}async[a0_0x9e8451(0xfb)](){const _0x447a7e=a0_0x9e8451;this[_0x447a7e(0x119)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x9e8451(0x12f)](){const _0xfc1918=a0_0x9e8451;return this[_0xfc1918(0x100)](this[_0xfc1918(0xe3)]['__origin__']);}get[a0_0x9e8451(0xe2)](){const _0x169f77=a0_0x9e8451;if(ValueUtil[_0x169f77(0x10d)](this[_0x169f77(0xe3)][_0x169f77(0x120)]))return{};let _0x2af740={};return Object[_0x169f77(0x125)](this['record']['__dirtyfields__'])[_0x169f77(0x11a)](([_0x13635d,_0x2d93c1])=>{const _0x29455c=_0x169f77;0x0==_0x13635d[_0x29455c(0x121)]('__')&&(_0x2af740[_0x13635d]=_0x2d93c1[_0x29455c(0xfe)]);}),_0x2af740;}get[a0_0x9e8451(0xf9)](){return this['removeGarbageData'](this['record']);}[a0_0x9e8451(0x100)](_0x210fed){const _0x2a5cc7=a0_0x9e8451;let _0x21f4a3={};if(_0x210fed)return Object[_0x2a5cc7(0x125)](_0x210fed)[_0x2a5cc7(0x11a)](([_0x259a82,_0x157dbc])=>{const _0x242658=_0x2a5cc7;0x0==_0x259a82[_0x242658(0x121)]('__')&&(_0x21f4a3[_0x259a82]=_0x157dbc);}),_0x21f4a3;}get[a0_0x9e8451(0xe5)](){const _0x586cbc=a0_0x9e8451;let _0x21e422=this[_0x586cbc(0xe2)],_0x1c28f1=this[_0x586cbc(0xe3)];return ValueUtil[_0x586cbc(0x10d)](_0x21e422)?[]:(ValueUtil[_0x586cbc(0x132)](_0x1c28f1['id'])?(_0x21e422['id']=_0x1c28f1['id'],_0x21e422['cuFlag']='M'):_0x21e422[_0x586cbc(0xed)]='+',Object[_0x586cbc(0x101)](_0x21e422)[_0x586cbc(0x129)](_0x5acea3=>{const _0x2ed5b4=_0x586cbc;_0x2ed5b4(0x110)==typeof _0x21e422[_0x5acea3]&&(_0x21e422[_0x5acea3]={'id':_0x21e422[_0x5acea3]['id']});}),[_0x21e422]);}async['fetch'](){const _0x58c0ba=a0_0x9e8451;if(ValueUtil[_0x58c0ba(0x10d)](this[_0x58c0ba(0x12a)]))return;let _0x4f5abf=await this[_0x58c0ba(0x111)](this['parent_id']);_0x4f5abf[_0x58c0ba(0x106)]=0x1;let _0x26d686={};Object['assign'](_0x26d686,_0x4f5abf),_0x4f5abf['__origin__']=_0x26d686,this[_0x58c0ba(0xe3)]={..._0x4f5abf};}async[a0_0x9e8451(0xea)](){const _0x5e30e8=a0_0x9e8451;let _0x390065=this['patchData'];if(ValueUtil[_0x5e30e8(0x10d)](_0x390065))return void MetaApi[_0x5e30e8(0xf1)]('title.info',_0x5e30e8(0xf3));let _0x41c5d6=await this[_0x5e30e8(0x10e)](_0x390065);return _0x41c5d6&&await this[_0x5e30e8(0x10a)](),_0x41c5d6;}async[a0_0x9e8451(0xf8)](){const _0x11c902=a0_0x9e8451;this[_0x11c902(0xe3)]&&(this[_0x11c902(0xe3)]={});}[a0_0x9e8451(0x12e)](){const _0x400709=a0_0x9e8451;return this[_0x400709(0xf9)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x46b616=a0_0x4ecd;(function(_0x1a41d4,_0x54f00f){const _0xc72149=a0_0x4ecd,_0x3d97b5=_0x1a41d4();while(!![]){try{const _0x5abf1d=parseInt(_0xc72149(0x1b0))/0x1+-parseInt(_0xc72149(0x1a6))/0x2*(-parseInt(_0xc72149(0x1af))/0x3)+-parseInt(_0xc72149(0x197))/0x4+parseInt(_0xc72149(0x18e))/0x5+-parseInt(_0xc72149(0x1d5))/0x6+-parseInt(_0xc72149(0x1d7))/0x7*(-parseInt(_0xc72149(0x1b8))/0x8)+parseInt(_0xc72149(0x1ca))/0x9*(parseInt(_0xc72149(0x18d))/0xa);if(_0x5abf1d===_0x54f00f)break;else _0x3d97b5['push'](_0x3d97b5['shift']());}catch(_0x335561){_0x3d97b5['push'](_0x3d97b5['shift']());}}}(a0_0x580a,0xa31bf));function a0_0x580a(){const _0x538844=['isElement','push','record','704056yzMKcm','ox-grist','shadowRoot','getBasicGristTabStyles','searchConfig','isNotEmpty','operator','grid_column','getContextObject','3ssVTQN','315805jFDsIy','find','getData','value','actions','___data','menuInfo','search','24OwzfBJ','beforeFetch','render','filterFormId','export','exportable','gristConfigSet','importable','header','ox-filters-form-base','save','meta-tab-element','map','title','options','dataSet','styles','delete','4533453PoyHVX','fetch','clear','filter','gridColumnConfig','parseGristConfigs','getGristTabHtml','pageInitialized','renderRoot','grist','parse','4932972mRdxfv','querySelector','1548141WntzNI','startsWith','forEach','useMasterFilterForm','10gSFIZQ','1535400pppuQC','findOne','getSelectedIdList','getParams','gridConfig','name','firstUpdated','useFilterForm','detailElement','2607448ZiinYI','filterForm','exportableData','patchesForUpdateMultiple','updateMultiple','isPage','gristId','properties','searchFieldValues','activityDataSet','connectedCallback','getAndParseMenuMeta'];a0_0x580a=function(){return _0x538844;};return a0_0x580a();}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_0x4ecd(_0x748d81,_0x4ccf5f){const _0x580a28=a0_0x580a();return a0_0x4ecd=function(_0x4ecd58,_0x3f1224){_0x4ecd58=_0x4ecd58-0x18d;let _0x35e442=_0x580a28[_0x4ecd58];return _0x35e442;},a0_0x4ecd(_0x748d81,_0x4ccf5f);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x2f2636=>class extends MetaButtonMixin(_0x2f2636){static get[a0_0x46b616(0x1c8)](){const _0xa803c7=a0_0x46b616;return MetaApi[_0xa803c7(0x1a9)]();}static get[a0_0x46b616(0x19e)](){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_0x46b616(0x1d3)](){const _0x2d076b=a0_0x46b616;return this[_0x2d076b(0x1d2)][_0x2d076b(0x1d6)](this[_0x2d076b(0x19d)]);}get[a0_0x46b616(0x198)](){const _0x207333=a0_0x46b616;return this[_0x207333(0x1a8)]?.[_0x207333(0x1d6)](this[_0x207333(0x1bb)]);}get[a0_0x46b616(0x196)](){const _0x4ee3e2=a0_0x46b616;return this[_0x4ee3e2(0x1a8)][_0x4ee3e2(0x1d6)]('#detail');}get['context'](){const _0x4353c=a0_0x46b616;let _0x10a238=MetaUiUtil[_0x4353c(0x1ae)](this);return _0x10a238[_0x4353c(0x1b4)]&&delete _0x10a238[_0x4353c(0x1b4)],_0x10a238[_0x4353c(0x1bd)]&&delete _0x10a238[_0x4353c(0x1bd)],_0x10a238[_0x4353c(0x1bf)]&&delete _0x10a238[_0x4353c(0x1bf)],_0x10a238;}async[a0_0x46b616(0x1a1)](){const _0x5f1cde=a0_0x46b616;this[_0x5f1cde(0x19d)]=_0x5f1cde(0x1a7),this[_0x5f1cde(0x1bb)]=_0x5f1cde(0x1c1),await this[_0x5f1cde(0x1a2)](),this[_0x5f1cde(0x1a3)]&&await this[_0x5f1cde(0x1cf)](),this['activityDataSet']&&(this[_0x5f1cde(0x1c7)]=(this[_0x5f1cde(0x1a0)]||{})['main']),super[_0x5f1cde(0x1a1)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x5084ad=a0_0x46b616;super[_0x5084ad(0x194)]&&await super['firstUpdated']();}async[a0_0x46b616(0x1d1)](){const _0x14c683=a0_0x46b616;this[_0x14c683(0x19c)]&&await this[_0x14c683(0x1cf)](),super[_0x14c683(0x1d1)]&&await super[_0x14c683(0x1d1)]();}[a0_0x46b616(0x1ba)](){const _0x580a87=a0_0x46b616;return MetaApi[_0x580a87(0x1d0)](this);}['parseBasicGridConfigs'](_0x58f824){const _0x9deefe=a0_0x46b616;this[_0x9deefe(0x192)]=_0x58f824['grid'],this[_0x9deefe(0x1ce)]=_0x58f824[_0x9deefe(0x1ad)],this[_0x9deefe(0x1aa)]=_0x58f824[_0x9deefe(0x1b7)];}async['parseGristConfigs'](){const _0x7f64d=a0_0x46b616;this[_0x7f64d(0x1be)]=await MetaApi['parseGridConfigSet'](this),this[_0x7f64d(0x1da)]=!0x0===this[_0x7f64d(0x195)],this['useFilterForm']=!0x1,this['searchFieldValues']=[],this['searchFields']=this['gristConfigSet']['columns'][_0x7f64d(0x1cd)](_0x11eea5=>_0x11eea5[_0x7f64d(0x1cd)])[_0x7f64d(0x1c4)](_0x49fa73=>{const _0x3ea9b8=_0x7f64d;let _0xdaee31={'name':_0x49fa73[_0x3ea9b8(0x193)],'type':_0x49fa73['type'],'label':_0x49fa73[_0x3ea9b8(0x1c0)],'operator':_0x49fa73[_0x3ea9b8(0x1cd)]['operator']?_0x49fa73[_0x3ea9b8(0x1cd)][_0x3ea9b8(0x1ac)]:'eq'};return _0x49fa73['record'][_0x3ea9b8(0x1c6)]&&(_0xdaee31[_0x3ea9b8(0x1c6)]=_0x49fa73[_0x3ea9b8(0x1a5)]['options']),_0x49fa73['filter'][_0x3ea9b8(0x1b3)]&&this[_0x3ea9b8(0x19f)][_0x3ea9b8(0x1a4)]({'name':_0xdaee31[_0x3ea9b8(0x193)],'operator':_0xdaee31[_0x3ea9b8(0x1ac)],'value':_0x49fa73[_0x3ea9b8(0x1cd)]['value']}),_0xdaee31;});}async[a0_0x46b616(0x1cb)](){const _0x2a2992=a0_0x46b616;await this[_0x2a2992(0x1d3)][_0x2a2992(0x1cb)]();}async[a0_0x46b616(0x1b9)]({page:_0x1d2f7a=0x0,limit:_0x3487c6=0x0,sortings:_0x477291=[],filters:_0x39ff31=[]}){const _0x4447a3=a0_0x46b616;let _0xf2e43a=this[_0x4447a3(0x1d2)][_0x4447a3(0x1d6)](_0x4447a3(0x1c3));return await _0xf2e43a[_0x4447a3(0x1cc)](),!0x0;}async[a0_0x46b616(0x1c2)](){const _0xbab8c9=a0_0x46b616;let _0x2f210e=MetaApi[_0xbab8c9(0x19a)](this[_0xbab8c9(0x1d3)]);!!ValueUtil['isNotEmpty'](_0x2f210e)&&await this[_0xbab8c9(0x19b)](_0x2f210e)&&this['fetch']();}async[a0_0x46b616(0x1b1)](){const _0x181e21=a0_0x46b616;let _0x126da8=MetaApi[_0x181e21(0x190)](this['grist'],!0x0);return ValueUtil[_0x181e21(0x1ab)](_0x126da8)?await this[_0x181e21(0x18f)](_0x126da8[0x0]):{};}async[a0_0x46b616(0x1c9)](){const _0x4288bd=a0_0x46b616;let _0x31548d=MetaApi['getSelectedIdList'](this[_0x4288bd(0x1d3)],!0x0);!!ValueUtil[_0x4288bd(0x1ab)](_0x31548d)&&await this['deleteByIds'](_0x31548d)&&this[_0x4288bd(0x1cb)]();}async[a0_0x46b616(0x1bc)](){const _0x4323d1=a0_0x46b616;let _0x3e563f=TermsUtil['tTitle'](ValueUtil[_0x4323d1(0x191)](this[_0x4323d1(0x1b6)],_0x4323d1(0x1c5)));return await MetaApi[_0x4323d1(0x199)](this[_0x4323d1(0x1a3)],_0x3e563f,this['grist']);}async['import'](){}[a0_0x46b616(0x1b2)](){const _0x490c84=a0_0x46b616;let _0x4618c3=this[_0x490c84(0x1d3)][_0x490c84(0x1b5)]['records'];return _0x4618c3=JSON[_0x490c84(0x1d4)](JSON['stringify'](_0x4618c3)),_0x4618c3[_0x490c84(0x1d9)](_0x1b44c6=>{const _0x4e6ff7=_0x490c84;Object['keys'](_0x1b44c6)[_0x4e6ff7(0x1d9)](_0x454c91=>{const _0x384184=_0x4e6ff7;_0x454c91[_0x384184(0x1d8)]('__')&&delete _0x1b44c6[_0x454c91];});}),{'main':_0x4618c3,'detail':this[_0x490c84(0x1d2)][_0x490c84(0x1d6)](_0x490c84(0x1c3))[_0x490c84(0x1b2)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x40710a=a0_0x47f3;function a0_0x47f3(_0xba78a0,_0x4c6d79){const _0x2d64eb=a0_0x2d64();return a0_0x47f3=function(_0x47f3cd,_0x505e5d){_0x47f3cd=_0x47f3cd-0x188;let _0x41244f=_0x2d64eb[_0x47f3cd];return _0x41244f;},a0_0x47f3(_0xba78a0,_0x4c6d79);}(function(_0x2be959,_0x2f10f8){const _0x2a1f9e=a0_0x47f3,_0x2817fd=_0x2be959();while(!![]){try{const _0x553fe9=parseInt(_0x2a1f9e(0x190))/0x1+parseInt(_0x2a1f9e(0x1b4))/0x2*(parseInt(_0x2a1f9e(0x1c6))/0x3)+parseInt(_0x2a1f9e(0x18d))/0x4*(-parseInt(_0x2a1f9e(0x1d0))/0x5)+-parseInt(_0x2a1f9e(0x1ae))/0x6+parseInt(_0x2a1f9e(0x1b7))/0x7+-parseInt(_0x2a1f9e(0x18e))/0x8*(-parseInt(_0x2a1f9e(0x195))/0x9)+-parseInt(_0x2a1f9e(0x18b))/0xa*(-parseInt(_0x2a1f9e(0x1a7))/0xb);if(_0x553fe9===_0x2f10f8)break;else _0x2817fd['push'](_0x2817fd['shift']());}catch(_0x310415){_0x2817fd['push'](_0x2817fd['shift']());}}}(a0_0x2d64,0xe430f));import{html}from'lit';function a0_0x2d64(){const _0x11d979=['useFilterForm','11zpErVZ','value','getData','filter','actions','render','getContextObject','6576942YhNMJy','main','isPage','isElement','gridConfig','push','36wZgdoX','___data','find','1818796XIaagG','header','save','search','firstUpdated','export','filterFormId','ox-grist','forEach','isNotEmpty','parseGristConfigs','context','title','options','startsWith','178701CUxQpB','parse','searchConfig','columns','clear','gristConfigSet','exportable','operator','querySelector','activityDataSet','14660cqfErO','getAndParseMenuMeta','updateMultiple','stringify','importable','styles','getMasterDetailHtml','grid','findOne','11189210WHVjLC','name','716bIJTXl','247736ocADVW','gridColumnConfig','73734wLQZel','delete','import','map','detailElement','9rkXqvA','getSelectedIdList','fetch','grist','renderRoot','parseGridConfigSet','keys','grid_column','properties','pageInitialized','tTitle','menuInfo','connectedCallback','patchesForUpdateMultiple','searchFieldValues','beforeFetch','type'];a0_0x2d64=function(){return _0x11d979;};return a0_0x2d64();}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=_0x244b7f=>class extends MetaButtonMixin(_0x244b7f){static get[a0_0x40710a(0x1d5)](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x40710a(0x19d)](){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 _0x523d39=a0_0x40710a;return this[_0x523d39(0x199)][_0x523d39(0x1ce)](this['gristId']);}get['filterForm'](){const _0x389524=a0_0x40710a;return this['shadowRoot']?.[_0x389524(0x1ce)](this[_0x389524(0x1bd)]);}get[a0_0x40710a(0x1c2)](){const _0x9f8e9=a0_0x40710a;let _0x3ace79=MetaUiUtil[_0x9f8e9(0x1ad)](this);return _0x3ace79[_0x9f8e9(0x1ab)]&&delete _0x3ace79[_0x9f8e9(0x1ab)],_0x3ace79[_0x9f8e9(0x1cc)]&&delete _0x3ace79[_0x9f8e9(0x1cc)],_0x3ace79['importable']&&delete _0x3ace79[_0x9f8e9(0x1d4)],_0x3ace79;}async[a0_0x40710a(0x1a1)](){const _0x42165c=a0_0x40710a;this['gristId']=_0x42165c(0x1be),this[_0x42165c(0x1bd)]='ox-filters-form-base',await this[_0x42165c(0x1d1)](),this['isElement']&&await this[_0x42165c(0x1c1)](),this[_0x42165c(0x1cf)]&&(this['dataSet']=(this[_0x42165c(0x1cf)]||{})[_0x42165c(0x1af)]),super['connectedCallback']&&await super[_0x42165c(0x1a1)]();}async['firstUpdated'](){const _0x28633e=a0_0x40710a;super[_0x28633e(0x1bb)]&&await super['firstUpdated']();}async[a0_0x40710a(0x19e)](){const _0x61c747=a0_0x40710a;this[_0x61c747(0x1b0)]&&await this[_0x61c747(0x1c1)](),super[_0x61c747(0x19e)]&&await super[_0x61c747(0x19e)]();}[a0_0x40710a(0x1ac)](){const _0x4f0d0e=a0_0x40710a;return MetaApi[_0x4f0d0e(0x188)](this);}['parseBasicGridConfigs'](_0x3ffdbd){const _0x1d0e04=a0_0x40710a;this[_0x1d0e04(0x1b2)]=_0x3ffdbd[_0x1d0e04(0x189)],this[_0x1d0e04(0x18f)]=_0x3ffdbd[_0x1d0e04(0x19c)],this[_0x1d0e04(0x1c8)]=_0x3ffdbd[_0x1d0e04(0x1ba)];}async[a0_0x40710a(0x1c1)](){const _0x335e8a=a0_0x40710a;this[_0x335e8a(0x1cb)]=await MetaApi[_0x335e8a(0x19a)](this),this['useMasterFilterForm']=!0x0===this[_0x335e8a(0x1a6)],this['useFilterForm']=!0x1,this['searchFieldValues']=[],this['searchFields']=this['gristConfigSet'][_0x335e8a(0x1c9)][_0x335e8a(0x1aa)](_0x39bac4=>_0x39bac4[_0x335e8a(0x1aa)])[_0x335e8a(0x193)](_0x4cfb41=>{const _0xddad68=_0x335e8a;let _0x62c7cd={'name':_0x4cfb41[_0xddad68(0x18c)],'type':_0x4cfb41[_0xddad68(0x1a5)],'label':_0x4cfb41[_0xddad68(0x1b8)],'operator':_0x4cfb41['filter'][_0xddad68(0x1cd)]?_0x4cfb41['filter'][_0xddad68(0x1cd)]:'eq'};return _0x4cfb41['record'][_0xddad68(0x1c4)]&&(_0x62c7cd[_0xddad68(0x1c4)]=_0x4cfb41['record'][_0xddad68(0x1c4)]),_0x4cfb41['filter'][_0xddad68(0x1a8)]&&this[_0xddad68(0x1a3)][_0xddad68(0x1b3)]({'name':_0x62c7cd[_0xddad68(0x18c)],'operator':_0x62c7cd[_0xddad68(0x1cd)],'value':_0x4cfb41[_0xddad68(0x1aa)][_0xddad68(0x1a8)]}),_0x62c7cd;});}async[a0_0x40710a(0x197)](){const _0x22ba94=a0_0x40710a;await this[_0x22ba94(0x198)][_0x22ba94(0x197)]();}async[a0_0x40710a(0x1a4)]({page:_0x36b9f9=0x0,limit:_0x12acc8=0x0,sortings:_0x3ff0f5=[],filters:_0x332a97=[]}){const _0x27eea7=a0_0x40710a;return this[_0x27eea7(0x194)]&&this[_0x27eea7(0x194)][_0x27eea7(0x1ca)]&&await this[_0x27eea7(0x194)][_0x27eea7(0x1ca)](),!0x0;}async[a0_0x40710a(0x1b9)](){const _0x2b833c=a0_0x40710a;let _0xdab135=MetaApi[_0x2b833c(0x1a2)](this[_0x2b833c(0x198)]);!!ValueUtil[_0x2b833c(0x1c0)](_0xdab135)&&await this[_0x2b833c(0x1d2)](_0xdab135)&&this['fetch']();}async[a0_0x40710a(0x1b6)](){const _0x31c496=a0_0x40710a;let _0x1c1531=MetaApi[_0x31c496(0x196)](this['grist'],!0x0);return ValueUtil[_0x31c496(0x1c0)](_0x1c1531)?await this[_0x31c496(0x18a)](_0x1c1531[0x0]):{};}async[a0_0x40710a(0x191)](){const _0x2df858=a0_0x40710a;let _0x2811ec=MetaApi[_0x2df858(0x196)](this[_0x2df858(0x198)],!0x0);!!ValueUtil[_0x2df858(0x1c0)](_0x2811ec)&&await this['deleteByIds'](_0x2811ec)&&this[_0x2df858(0x197)]();}async[a0_0x40710a(0x1bc)](){const _0x4918d6=a0_0x40710a;let _0x588c14=TermsUtil[_0x4918d6(0x19f)](ValueUtil['getParams'](this[_0x4918d6(0x1a0)],_0x4918d6(0x1c3)));return await MetaApi['exportableData'](this[_0x4918d6(0x1b1)],_0x588c14,this[_0x4918d6(0x198)]);}async[a0_0x40710a(0x192)](){}[a0_0x40710a(0x1a9)](){const _0x11cf3b=a0_0x40710a;let _0x418328=this['grist'][_0x11cf3b(0x1b5)]['records'];return _0x418328=JSON[_0x11cf3b(0x1c7)](JSON[_0x11cf3b(0x1d3)](_0x418328)),_0x418328[_0x11cf3b(0x1bf)](_0x106e69=>{const _0x465f03=_0x11cf3b;Object[_0x465f03(0x19b)](_0x106e69)[_0x465f03(0x1bf)](_0x56a7f8=>{const _0x41ed6d=_0x465f03;_0x56a7f8[_0x41ed6d(0x1c5)]('__')&&delete _0x106e69[_0x56a7f8];});}),{'main':_0x418328,'detail':this[_0x11cf3b(0x194)]['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x4fba8d=a0_0x377c;(function(_0x193381,_0xe31b27){const _0x36f4f2=a0_0x377c,_0x4c994b=_0x193381();while(!![]){try{const _0x1447f5=parseInt(_0x36f4f2(0x132))/0x1+-parseInt(_0x36f4f2(0x104))/0x2*(-parseInt(_0x36f4f2(0x127))/0x3)+-parseInt(_0x36f4f2(0x135))/0x4*(parseInt(_0x36f4f2(0x105))/0x5)+-parseInt(_0x36f4f2(0x12c))/0x6+parseInt(_0x36f4f2(0x12e))/0x7+-parseInt(_0x36f4f2(0x130))/0x8+parseInt(_0x36f4f2(0x100))/0x9;if(_0x1447f5===_0xe31b27)break;else _0x4c994b['push'](_0x4c994b['shift']());}catch(_0x27cea1){_0x4c994b['push'](_0x4c994b['shift']());}}}(a0_0x4558,0x67c67));import{adjustFilters}from'@operato/utils';function a0_0x377c(_0x27a8a8,_0x131a48){const _0x4558b7=a0_0x4558();return a0_0x377c=function(_0x377cd3,_0x25e233){_0x377cd3=_0x377cd3-0xfe;let _0x3aff90=_0x4558b7[_0x377cd3];return _0x3aff90;},a0_0x377c(_0x27a8a8,_0x131a48);}function a0_0x4558(){const _0x319e7f=['deleteListByIds','isNotEmpty','parent_id','isEmpty','keys','multiple','gqlInfo','findOne','records','mainFilterForm','push','dataSet','query','gql','lifecycle','mutation','map','6QEaqXB','getQueryFilters','filters','isArray','skip_fields','1622880ZWlBlG','afterFetch','536438RVWSJg','pass','6572768cHKGjL','gristConfigSet','334739rgysSM','getParams','infinityPage','4JrwZed','split','getSelectColumns','formConfigSet','forEach','9789984caRhKj','filter','after_set_fields','beforeFetch','805998fzXxgE','3940040rFwcQQ','func','is_activity','getPageNavigateParams','fetchHandler','filterForm','name','parse','parseBasicServiceConfigs','delete','params','updateMultiple','find_one_func','isElement','value','includes','length'];a0_0x4558=function(){return _0x319e7f;};return a0_0x4558();}import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x17f158=>class extends MetaBaseMixin(_0x17f158){static get['properties'](){return{'gqlInfo':Object};}[a0_0x4fba8d(0x10d)](_0x2a3314){const _0x13f9ad=a0_0x4fba8d;this[_0x13f9ad(0x11c)]=_0x2a3314[_0x13f9ad(0x123)];}async[a0_0x4fba8d(0x109)]({page:_0x9fc714=0x0,limit:_0x4d09cb=0x0,sortings:_0x9d327e=[],filters:_0x5e5463=[]}){const _0x57deb8=a0_0x4fba8d;if(this[_0x57deb8(0x107)])return{'total':0x0,'records':this[_0x57deb8(0x121)]||[]};if(!0x0===this[_0x57deb8(0x134)]&&(_0x9fc714=0x0,_0x4d09cb=0x0),this['beforeFetch']&&0x0==await this[_0x57deb8(0x103)]({'page':_0x9fc714,'limit':_0x4d09cb,'sortings':_0x9d327e,'filters':_0x5e5463}))return;if(!this[_0x57deb8(0x131)])return{'total':0x0,'records':[]};let _0x7ebb41=ValueUtil[_0x57deb8(0x119)](_0x5e5463)?this[_0x57deb8(0x11f)]?await this[_0x57deb8(0x11f)]['getQueryFilters']()||[]:await this[_0x57deb8(0x10a)]?.[_0x57deb8(0x128)]()||[]:_0x5e5463,_0x1e489b=ValueUtil[_0x57deb8(0x133)](this[_0x57deb8(0x11c)],_0x57deb8(0x122),'list_func'),_0x53d5bf=ValueUtil[_0x57deb8(0x133)](this['gqlInfo'],'query',_0x57deb8(0x129)),_0x4b403a=ValueUtil[_0x57deb8(0x133)](this[_0x57deb8(0x11c)],'query',_0x57deb8(0x102));if(ValueUtil[_0x57deb8(0x117)](_0x53d5bf)&&(_0x7ebb41=adjustFilters(_0x7ebb41,_0x53d5bf)),_0x7ebb41[_0x57deb8(0x120)](...this['getPageNavigateParams']()),this[_0x57deb8(0x112)]&&!this[_0x57deb8(0x11f)]){let _0x470082=ValueUtil[_0x57deb8(0x133)](this[_0x57deb8(0x11c)],'query',_0x57deb8(0x118));if(!ValueUtil[_0x57deb8(0x117)](_0x470082)||!ValueUtil[_0x57deb8(0x117)](this[_0x57deb8(0x118)]))return{'total':0x0,'records':[]};_0x7ebb41=adjustFilters(_0x7ebb41,[{'name':_0x470082,'operator':'eq','value':this['parent_id']}]);}let _0x1b710c=Object[_0x57deb8(0x11a)](_0x4b403a||{}),_0xebe2b0=MetaApi[_0x57deb8(0x137)](this[_0x57deb8(0x131)]['columns'][_0x57deb8(0x101)](_0x355689=>!_0x1b710c[_0x57deb8(0x114)](_0x355689['name']))),_0x2f4a04=await MetaApi['searchByPagination'](_0x1e489b,_0x7ebb41,_0x9d327e,_0x9fc714,_0x4d09cb,_0xebe2b0);if(this[_0x57deb8(0x12d)]){let _0x35e964=await this[_0x57deb8(0x12d)]({'page':_0x9fc714,'limit':_0x4d09cb,'sortings':_0x9d327e,'filters':_0x5e5463},_0x2f4a04);if(_0x35e964)return _0x35e964;}return ValueUtil[_0x57deb8(0x117)](_0x4b403a)&&ValueUtil[_0x57deb8(0x117)](_0x2f4a04)&&ValueUtil['isNotEmpty'](_0x2f4a04[_0x57deb8(0x11e)])&&_0x2f4a04[_0x57deb8(0x11e)][_0x57deb8(0x126)](_0x2d4240=>(_0x1b710c[_0x57deb8(0xff)](_0x1401dc=>{const _0x1cd5ac=_0x57deb8;_0x2d4240[_0x1401dc]=ValueUtil[_0x1cd5ac(0x133)](_0x2d4240,..._0x4b403a[_0x1401dc][_0x1cd5ac(0x136)]('.'));}),_0x2d4240)),_0x2f4a04;}[a0_0x4fba8d(0x108)](){const _0x53badd=a0_0x4fba8d;if(0x0==this['isPage'])return[];let _0x51ede5=this[_0x53badd(0x124)]?.[_0x53badd(0x10f)]?this[_0x53badd(0x124)][_0x53badd(0x10f)]:{};if(!_0x51ede5[_0x53badd(0x12f)])return[];let _0x5e2079=_0x51ede5[_0x53badd(0x12f)],_0x1b26c5=JSON[_0x53badd(0x10c)](_0x5e2079),_0x2758db=0x1==_0x1b26c5['length']?'eq':'in',_0x5b7516={},_0x57886f=[];return Object[_0x53badd(0x11a)](_0x1b26c5[0x0])[_0x53badd(0xff)](_0x54558b=>{_0x5b7516[_0x54558b]={'name':_0x54558b,'operator':_0x2758db,'value':'eq'===_0x2758db?_0x1b26c5[0x0][_0x54558b]:[]};}),_0x1b26c5[_0x53badd(0x115)]>0x1&&_0x1b26c5['forEach'](_0x4616a=>{const _0x468605=_0x53badd;Object[_0x468605(0x11a)](_0x4616a)[_0x468605(0xff)](_0x41e5dd=>{const _0x457ba0=_0x468605;_0x5b7516[_0x41e5dd][_0x457ba0(0x113)]['push'](_0x4616a[_0x41e5dd]);});}),Object[_0x53badd(0x11a)](_0x5b7516)[_0x53badd(0xff)](_0x8225b9=>{const _0x2ee0b3=_0x53badd;_0x57886f[_0x2ee0b3(0x120)](_0x5b7516[_0x8225b9]);}),_0x57886f;}async[a0_0x4fba8d(0x11d)](_0x2c2468){const _0x433889=a0_0x4fba8d;if(this[_0x433889(0x107)])return this['dataSet']||{};let _0x3c3d17=ValueUtil[_0x433889(0x133)](this[_0x433889(0x11c)],_0x433889(0x122),_0x433889(0x111)),_0x5d5dcc=ValueUtil[_0x433889(0x133)](this['gqlInfo'],_0x433889(0x122),_0x433889(0x102)),_0x200ddc=Object[_0x433889(0x11a)](_0x5d5dcc||{}),_0xcf9635=MetaApi[_0x433889(0x137)]((this[_0x433889(0x131)]?this[_0x433889(0x131)]:{'columns':this[_0x433889(0xfe)]})['columns'][_0x433889(0x101)](_0x287b2d=>!_0x200ddc['includes'](_0x287b2d[_0x433889(0x10b)]))),_0x3fb926=await MetaApi[_0x433889(0x11d)](_0x3c3d17,_0x2c2468,_0xcf9635);return ValueUtil['isNotEmpty'](_0x5d5dcc)&&ValueUtil['isNotEmpty'](_0x3fb926)&&_0x200ddc[_0x433889(0xff)](_0x159d98=>{const _0x5b2dc3=_0x433889;_0x3fb926[_0x159d98]=ValueUtil[_0x5b2dc3(0x133)](_0x3fb926,..._0x5d5dcc[_0x159d98][_0x5b2dc3(0x136)]('.'));}),_0x3fb926;}async['deleteByIds'](_0x9541d){const _0x57006e=a0_0x4fba8d;let _0x4dddef=ValueUtil[_0x57006e(0x133)](this[_0x57006e(0x11c)],_0x57006e(0x125),_0x57006e(0x10e),_0x57006e(0x106));return await MetaApi[_0x57006e(0x116)](_0x9541d,_0x4dddef);}async[a0_0x4fba8d(0x110)](_0x3904f6){const _0x152538=a0_0x4fba8d;let _0x10c207=ValueUtil[_0x152538(0x133)](this[_0x152538(0x11c)],_0x152538(0x125),_0x152538(0x11b),_0x152538(0x106)),_0x51ed16=ValueUtil[_0x152538(0x133)](this[_0x152538(0x11c)],_0x152538(0x125),_0x152538(0x11b),_0x152538(0x12b));if(ValueUtil[_0x152538(0x117)](_0x51ed16)&&(_0x51ed16=_0x51ed16[_0x152538(0x126)](_0x36b987=>_0x36b987[_0x152538(0x114)]('.')?_0x36b987[_0x152538(0x136)]('.'):_0x36b987),_0x3904f6=_0x3904f6[_0x152538(0x126)](_0x405e5b=>(_0x51ed16[_0x152538(0xff)](_0x454ff1=>{const _0x3b76ba=_0x152538;Array[_0x3b76ba(0x12a)](_0x454ff1)?delete _0x405e5b[_0x454ff1[0x0]][_0x454ff1[0x1]]:delete _0x405e5b[_0x454ff1];}),_0x405e5b))),this['isElement']&&ValueUtil['isNotEmpty'](this[_0x152538(0x118)])){let _0xe05170=ValueUtil[_0x152538(0x133)](this[_0x152538(0x11c)],_0x152538(0x125),_0x152538(0x11b),_0x152538(0x118));ValueUtil[_0x152538(0x117)](_0xe05170)&&_0x3904f6[_0x152538(0xff)](_0x249e40=>{const _0xfbfcd7=_0x152538;if(_0xe05170[_0xfbfcd7(0x114)]('.')){let _0x507b49=_0xe05170['split']('.');_0x249e40[_0x507b49[0x0]]={},_0x249e40[_0x507b49[0x0]][_0x507b49[0x1]]=this[_0xfbfcd7(0x118)];}else _0x249e40[_0xe05170]=this[_0xfbfcd7(0x118)];});}return await MetaApi[_0x152538(0x110)](_0x10c207,_0x3904f6);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x46feb2=a0_0x26f7;(function(_0x5f0287,_0x43588b){const _0x4ece2b=a0_0x26f7,_0x1ba17d=_0x5f0287();while(!![]){try{const _0x81df2b=-parseInt(_0x4ece2b(0xd5))/0x1*(parseInt(_0x4ece2b(0xb8))/0x2)+-parseInt(_0x4ece2b(0xc8))/0x3*(-parseInt(_0x4ece2b(0xba))/0x4)+-parseInt(_0x4ece2b(0xbc))/0x5+-parseInt(_0x4ece2b(0xaf))/0x6*(parseInt(_0x4ece2b(0xbf))/0x7)+parseInt(_0x4ece2b(0xd9))/0x8*(parseInt(_0x4ece2b(0xc3))/0x9)+parseInt(_0x4ece2b(0xc2))/0xa*(parseInt(_0x4ece2b(0xbd))/0xb)+parseInt(_0x4ece2b(0xc0))/0xc;if(_0x81df2b===_0x43588b)break;else _0x1ba17d['push'](_0x1ba17d['shift']());}catch(_0x3e1430){_0x1ba17d['push'](_0x1ba17d['shift']());}}}(a0_0x5649,0xe1848));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x26f7(_0x72153d,_0x2edf3e){const _0x56490a=a0_0x5649();return a0_0x26f7=function(_0x26f784,_0x46b663){_0x26f784=_0x26f784-0xac;let _0x474fb9=_0x56490a[_0x26f784];return _0x474fb9;},a0_0x26f7(_0x72153d,_0x2edf3e);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x5649(){const _0x577c6e=['127442GMYLNR','31654488SgDIfo','connectedCallback','8750oqdVqv','624366TTJLRH','searchFields','isPage','gristConfigSet','clear','1743CyWYGw','searchFieldValues','grid_column','useButtonImport','filterFormId','push','operator','getContextObject','parseGridConfigSet','gristId','grid','gridConfig','importable','15902fdxHbI','actions','getMainGrist','styles','56ZTAocb','getData','ox-grist','exportable','value','parseBasicGridConfigs','name','dataSet','detailElement','filter','fetch','shadowRoot','type','grist','buttonConfig','pageInitialized','useMasterFilterForm','activityDataSet','getTabDetailHtml','360aGnQHO','isElement','map','filterForm','record','options','parseGristConfigs','gridColumnConfig','properties','204HjHyzO','masterElement','11652aesajV','firstUpdated','9148680oqspXF','8195whXRqI','beforeFetch'];a0_0x5649=function(){return _0x577c6e;};return a0_0x5649();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabDetailMixin=_0x995c7f=>class extends MetaButtonMixin(_0x995c7f){static get[a0_0x46feb2(0xd8)](){return MetaApi['getBasicTabDetailStyles']();}static get[a0_0x46feb2(0xb7)](){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 _0x3871ec=a0_0x46feb2;return this[_0x3871ec(0xb9)][_0x3871ec(0xd7)]();}get[a0_0x46feb2(0xb2)](){const _0x50e4c0=a0_0x46feb2;return this[_0x50e4c0(0xe4)]?.['querySelector'](this[_0x50e4c0(0xcc)]);}get['context'](){const _0x338b0a=a0_0x46feb2;let _0x506141=MetaUiUtil[_0x338b0a(0xcf)](this);return _0x506141['actions']&&delete _0x506141[_0x338b0a(0xd6)],_0x506141[_0x338b0a(0xdc)]&&delete _0x506141[_0x338b0a(0xdc)],_0x506141[_0x338b0a(0xd4)]&&delete _0x506141[_0x338b0a(0xd4)],_0x506141;}async[a0_0x46feb2(0xc1)](){const _0x215070=a0_0x46feb2;this[_0x215070(0xd1)]=_0x215070(0xdb),this[_0x215070(0xcc)]='ox-filters-form-base',await this['getAndParseMenuMeta'](),this[_0x215070(0xb0)]&&await this['parseGristConfigs'](),this[_0x215070(0xad)]&&(this[_0x215070(0xe0)]=(this[_0x215070(0xad)]||{})['main']),super[_0x215070(0xc1)]&&await super['connectedCallback']();}async[a0_0x46feb2(0xbb)](){const _0x34feff=a0_0x46feb2;super[_0x34feff(0xbb)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x472a51=a0_0x46feb2;this[_0x472a51(0xc5)]&&await this[_0x472a51(0xb5)](),super[_0x472a51(0xe8)]&&await super[_0x472a51(0xe8)]();}['render'](){const _0x53fa0b=a0_0x46feb2;return MetaApi[_0x53fa0b(0xae)](this);}[a0_0x46feb2(0xde)](_0x385395){const _0x22db0f=a0_0x46feb2;this[_0x22db0f(0xd3)]=_0x385395[_0x22db0f(0xd2)],this[_0x22db0f(0xb6)]=_0x385395[_0x22db0f(0xca)],this['searchConfig']=_0x385395['search'];}async['parseGristConfigs'](){const _0x839c40=a0_0x46feb2;this[_0x839c40(0xc6)]=await MetaApi[_0x839c40(0xd0)](this),this[_0x839c40(0xac)]=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x839c40(0xe7)]=void 0x0,this['useButtonExport']=!0x1,this[_0x839c40(0xcb)]=!0x1,this[_0x839c40(0xc9)]=[],this[_0x839c40(0xc4)]=this[_0x839c40(0xc6)]['columns'][_0x839c40(0xe2)](_0x49f959=>_0x49f959[_0x839c40(0xe2)])[_0x839c40(0xb1)](_0x3057a7=>{const _0x2190de=_0x839c40;let _0x1681c8={'name':_0x3057a7[_0x2190de(0xdf)],'type':_0x3057a7[_0x2190de(0xe5)],'label':_0x3057a7['header'],'operator':_0x3057a7[_0x2190de(0xe2)][_0x2190de(0xce)]?_0x3057a7['filter'][_0x2190de(0xce)]:'eq'};return _0x3057a7[_0x2190de(0xb3)][_0x2190de(0xb4)]&&(_0x1681c8[_0x2190de(0xb4)]=_0x3057a7['record'][_0x2190de(0xb4)]),_0x3057a7[_0x2190de(0xe2)][_0x2190de(0xdd)]&&this[_0x2190de(0xc9)][_0x2190de(0xcd)]({'name':_0x1681c8[_0x2190de(0xdf)],'operator':_0x1681c8[_0x2190de(0xce)],'value':_0x3057a7[_0x2190de(0xe2)]['value']}),_0x1681c8;});}async['fetch'](){const _0x551f1e=a0_0x46feb2;await this[_0x551f1e(0xe6)][_0x551f1e(0xe3)]();}async[a0_0x46feb2(0xbe)]({page:_0x332193=0x0,limit:_0x23c28b=0x0,sortings:_0x3f6691=[],filters:_0x195926=[]}){const _0x312a61=a0_0x46feb2;return this[_0x312a61(0xb9)]&&this[_0x312a61(0xb9)][_0x312a61(0xc7)]&&await this[_0x312a61(0xb9)][_0x312a61(0xc7)](),this[_0x312a61(0xe1)]&&this[_0x312a61(0xe1)][_0x312a61(0xc7)]&&await this[_0x312a61(0xe1)]['clear'](),!0x0;}[a0_0x46feb2(0xda)](){const _0x18f612=a0_0x46feb2;return{'master':this[_0x18f612(0xb9)][_0x18f612(0xda)](),'detail':this['detailElement'][_0x18f612(0xda)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2a9cb3=a0_0x517b;function a0_0x517b(_0x111aee,_0x1312ae){const _0x447190=a0_0x4471();return a0_0x517b=function(_0x517bae,_0x2b210e){_0x517bae=_0x517bae-0x1e2;let _0x1cf8a3=_0x447190[_0x517bae];return _0x1cf8a3;},a0_0x517b(_0x111aee,_0x1312ae);}(function(_0x19d516,_0x3cb6f0){const _0x4c9468=a0_0x517b,_0x4d1d34=_0x19d516();while(!![]){try{const _0xad2c30=parseInt(_0x4c9468(0x200))/0x1*(parseInt(_0x4c9468(0x1e8))/0x2)+parseInt(_0x4c9468(0x206))/0x3+-parseInt(_0x4c9468(0x207))/0x4*(parseInt(_0x4c9468(0x1ea))/0x5)+-parseInt(_0x4c9468(0x1e4))/0x6*(parseInt(_0x4c9468(0x1ff))/0x7)+-parseInt(_0x4c9468(0x1e9))/0x8+parseInt(_0x4c9468(0x201))/0x9*(parseInt(_0x4c9468(0x1f5))/0xa)+-parseInt(_0x4c9468(0x1fc))/0xb*(-parseInt(_0x4c9468(0x204))/0xc);if(_0xad2c30===_0x3cb6f0)break;else _0x4d1d34['push'](_0x4d1d34['shift']());}catch(_0x58b53e){_0x4d1d34['push'](_0x4d1d34['shift']());}}}(a0_0x4471,0x4ac93));import{MetaApi}from'../utils/meta-api';function a0_0x4471(){const _0xf6d85a=['keys','6GMvitu','meta-grist-element','firstUpdated','dataSet','626522yAJlfi','4143512cOUjio','1896395iDTVwE','render','clear','context','includeMainList','parse','name','styles','unshift','main_tab_info','getData','5101840kDFQgg','{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22\x20}','route_name','tabElements','display','getAndParseMenuMeta','mainFilterForm','110tftbbW','@things-factory/meta-ui/client/pages/meta-grist-element','properties','4173638DzyeaB','1qdbKcK','9PVrKTb','connectedCallback','getBasicTabStyles','799620nQgPIT','parseBasicTabConfigs','929940liOeIl','4YHXJOR','getMainGrist','pageInitialized','activityDataSet','tab'];a0_0x4471=function(){return _0xf6d85a;};return a0_0x4471();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x5d923c=>class extends MetaButtonMixin(_0x5d923c){static get[a0_0x2a9cb3(0x1f1)](){const _0x54369e=a0_0x2a9cb3;return MetaApi[_0x54369e(0x203)]();}static get[a0_0x2a9cb3(0x1fe)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get[a0_0x2a9cb3(0x1ed)](){return MetaUiUtil['getContextObject'](this);}async['connectedCallback'](){const _0x562f43=a0_0x2a9cb3;this['currentTabKey']=void 0x0,await this[_0x562f43(0x1fa)](),this[_0x562f43(0x20a)]&&(this[_0x562f43(0x1e7)]=this[_0x562f43(0x20a)]),super['connectedCallback']&&await super[_0x562f43(0x202)]();}async[a0_0x2a9cb3(0x1e6)](){const _0x864cd6=a0_0x2a9cb3;super[_0x864cd6(0x1e6)]&&await super[_0x864cd6(0x1e6)]();}async['pageInitialized'](){const _0x3f1682=a0_0x2a9cb3;super[_0x3f1682(0x209)]&&await super[_0x3f1682(0x209)]();}[a0_0x2a9cb3(0x1eb)](){return MetaApi['getBasicTabHtml'](this);}[a0_0x2a9cb3(0x205)](_0x15cfb7){const _0x3dde01=a0_0x2a9cb3;if(!0x0===this[_0x3dde01(0x1ee)]){let _0x16d154=this['etcConfig'][_0x3dde01(0x1f3)],_0x5d4ce9=JSON[_0x3dde01(0x1ef)](_0x16d154||_0x3dde01(0x1f6));_0x15cfb7[_0x3dde01(0x1e2)][_0x3dde01(0x1f2)]({'name':_0x5d4ce9[_0x3dde01(0x1f0)],'display':_0x5d4ce9[_0x3dde01(0x1f9)],'tagname':_0x3dde01(0x1e5),'location':_0x3dde01(0x1fd),'parent_field':'id','param_field':'param_field','menu':this[_0x3dde01(0x1f7)],'icon':_0x5d4ce9['icon'],'filter_from':!0x1,'main_filter_form':this[_0x3dde01(0x1fb)]});}this['tabRenderConfig']=_0x15cfb7['tab'],_0x15cfb7['button']=[];}async[a0_0x2a9cb3(0x1ec)](){const _0x2ca0ec=a0_0x2a9cb3;if(this['tabElements']){let _0x1f4fd0=Object[_0x2ca0ec(0x1e3)](this[_0x2ca0ec(0x1f8)]);for(var _0x3469ae=0x0;_0x3469ae<_0x1f4fd0['length'];_0x3469ae++)await this[_0x2ca0ec(0x1f8)][_0x1f4fd0[_0x3469ae]]['clear']();}}[a0_0x2a9cb3(0x1f4)](){const _0x369ec5=a0_0x2a9cb3;let _0x3f8511={};return this[_0x369ec5(0x1f8)]&&Object[_0x369ec5(0x1e3)](this['tabElements'])['forEach'](_0x2ee33f=>{const _0x441e17=_0x369ec5;_0x3f8511[_0x2ee33f]=this[_0x441e17(0x1f8)][_0x2ee33f]['getData']();}),_0x3f8511;}[a0_0x2a9cb3(0x208)](){const _0x1dd0f6=a0_0x2a9cb3;if(this[_0x1dd0f6(0x1f8)]){let _0x12d2c9=Object[_0x1dd0f6(0x1e3)](this[_0x1dd0f6(0x1f8)]);return this[_0x1dd0f6(0x1f8)][_0x12d2c9[0x0]]['grist'];}}};
|