@things-factory/meta-ui 6.0.58 → 6.0.59
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 +41 -7
- 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-mixin.js +1 -1
- package/client/pages/activity/meta-activity-viewer-element.js +1 -0
- package/client/pages/activity/meta-activity-writer-element.js +19 -0
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +5 -5
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +79 -79
- 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 +16 -8
- package/client/viewparts/dynamic-menu-portrait-styles.js +12 -3
- package/client/viewparts/dynamic-menu-portrait.js +12 -16
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +1 -0
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/middlewares/index.js +1 -0
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/translations/en.json +12 -0
- package/translations/ko.json +12 -0
- package/translations/ms.json +12 -0
- package/translations/zh.json +12 -0
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
function a0_0x5189(){const _0x49a917=['portrait','24629PbbkAV','query','2aJzIHE','rank','748MIEjLJ','dynamic-menu-part','FRONT_END','dispatch','active','querySelector','9230096guAPbV','appName','meta[name=\x22application-name\x22]','data','dynamic-menu','9502178XTJJxY','value','686130eypfqK','6303236dfBckt','NAVBAR','landscape','lite-menu-part','1767240Nszern','HEADERBAR','3oqYNQG','get','content','UPDATE_META_MENU_TEMPLATE','9IxcyKK','39GJoHgA','24MrYFgM','11410CznUJl'];a0_0x5189=function(){return _0x49a917;};return a0_0x5189();}const a0_0x227d21=a0_0x5ff3;(function(_0x1cb004,_0x220e1e){const _0x92a5b6=a0_0x5ff3,_0x2ecf57=_0x1cb004();while(!![]){try{const _0x3980a1=parseInt(_0x92a5b6(0x13d))/0x1*(-parseInt(_0x92a5b6(0x13f))/0x2)+parseInt(_0x92a5b6(0x155))/0x3*(-parseInt(_0x92a5b6(0x14f))/0x4)+parseInt(_0x92a5b6(0x14e))/0x5*(-parseInt(_0x92a5b6(0x13a))/0x6)+parseInt(_0x92a5b6(0x14c))/0x7+-parseInt(_0x92a5b6(0x147))/0x8*(-parseInt(_0x92a5b6(0x138))/0x9)+-parseInt(_0x92a5b6(0x13b))/0xa*(-parseInt(_0x92a5b6(0x141))/0xb)+-parseInt(_0x92a5b6(0x153))/0xc*(-parseInt(_0x92a5b6(0x139))/0xd);if(_0x3980a1===_0x220e1e)break;else _0x2ecf57['push'](_0x2ecf57['shift']());}catch(_0x11a0b2){_0x2ecf57['push'](_0x2ecf57['shift']());}}}(a0_0x5189,0xd7278));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x21f4e3 from'graphql-tag';import{html}from'lit';import{client}from'@operato/graphql';function a0_0x5ff3(_0x5be157,_0x55568e){const _0x51891c=a0_0x5189();return a0_0x5ff3=function(_0x5ff3b0,_0x53a65b){_0x5ff3b0=_0x5ff3b0-0x135;let _0x2d2526=_0x51891c[_0x5ff3b0];return _0x2d2526;},a0_0x5ff3(_0x5be157,_0x55568e);}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';export const UPDATE_META_UI='UPDATE_META_UI';export const UPDATE_META_MENU_TEMPLATE=a0_0x227d21(0x137);var HAMBURGER;export async function setupMenuPart(_0x4ae29e){const _0x1c898b=a0_0x227d21;var {hovering:_0x228539=!!isMobileDevice(),slotTemplate:_0x49c103,portraitSlotTemplate:_0x36d598,landscapeSlotTemplate:_0xf016e8,position:_0x226afb=VIEWPART_POSITION[_0x1c898b(0x150)]}=_0x4ae29e||{};const {hovering:_0x33aa3a}=(await clientSettingStore[_0x1c898b(0x135)](_0x1c898b(0x14b)))?.[_0x1c898b(0x14d)]||{};void 0x0!==_0x33aa3a&&(_0x228539=_0x33aa3a);const _0x17137d=_0x226afb==VIEWPART_POSITION[_0x1c898b(0x154)]?_0x1c898b(0x151):_0x1c898b(0x13c),_0x1bbed9=(_0x1c898b(0x151)==_0x17137d?_0xf016e8:_0x36d598)||_0x49c103||html``;appendViewpart({'name':_0x1c898b(0x152),'viewpart':{'show':!_0x228539,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x228539,'template':html`<dynamic-menu-part .orientation=${_0x17137d}>${_0x1bbed9}</dynamic-menu-part>`},'position':_0x226afb}),_0x228539&&_0x1c898b(0x13c)==_0x17137d?HAMBURGER||(HAMBURGER={'name':'hamburger','template':html`
|
|
2
|
+
<mwc-icon @click=${_0x599b54=>toggleOverlay(_0x1c898b(0x142),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x1c898b(0x143)]},store[_0x1c898b(0x144)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x1c898b(0x144)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x11a252){const _0x56d2fb=a0_0x227d21;var _0x519ae7=document[_0x56d2fb(0x146)](_0x56d2fb(0x149))?.[_0x56d2fb(0x136)],_0x51fbd1=(await client[_0x56d2fb(0x13e)]({'query':a0_0x21f4e3`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x2f9244=a0_0x4131;(function(_0x396741,_0x5b0f0c){const _0x1369cc=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x56d2fb(0x145),'operator':'eq','value':!0x0},{'name':_0x56d2fb(0x148),'operator':'in','value':['',_0x519ae7]}],'sortings':[{'name':_0x56d2fb(0x140),'desc':!0x1}]}}))[_0x56d2fb(0x14a)]['liteMenus']['items'];store[_0x56d2fb(0x144)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x51fbd1['filter'](_0xa433b4=>!_0xa433b4[_0x56d2fb(0x148)]||_0xa433b4[_0x56d2fb(0x148)]===_0x519ae7),'template':_0x11a252});}
|
package/client/bootstrap.js
CHANGED
|
@@ -10,12 +10,32 @@ import metaUI from './reducers/main'
|
|
|
10
10
|
|
|
11
11
|
import { TermsUtil } from './utils/terms-util'
|
|
12
12
|
import { MetaApi } from './utils/meta-api'
|
|
13
|
+
import { ENV } from '@things-factory/system-base'
|
|
13
14
|
|
|
14
15
|
export default function bootstrap() {
|
|
16
|
+
import(`./pages/activity/meta-activity-writer-element`)
|
|
17
|
+
import(`./pages/activity/meta-activity-viewer-element`)
|
|
18
|
+
|
|
15
19
|
store.addReducers({
|
|
16
20
|
metaUI
|
|
17
21
|
})
|
|
18
22
|
|
|
23
|
+
// var titleMeta = document.querySelector('meta[name="application-name"]');
|
|
24
|
+
// console.log(titleMeta ? titleMeta.content : 'Things Factory')
|
|
25
|
+
// console.log(ENV['APP-VERSION'])
|
|
26
|
+
|
|
27
|
+
// var iconLink = document.querySelector('link[rel="application-icon"]')
|
|
28
|
+
// var titleMeta = document.querySelector('meta[name="application-name"]')
|
|
29
|
+
// var descriptionMeta = document.querySelector('meta[name="application-description"]')
|
|
30
|
+
|
|
31
|
+
// this._applicationMeta = {
|
|
32
|
+
// icon: iconLink ? iconLink.href : logo,
|
|
33
|
+
// title: titleMeta ? titleMeta.content : 'Things Factory',
|
|
34
|
+
// description: descriptionMeta ? descriptionMeta.content : 'Reimagining Software'
|
|
35
|
+
// }
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
19
39
|
auth.on('profile', async ({ credential, domains, domain }) => {
|
|
20
40
|
// 1. 용어 다운로드
|
|
21
41
|
let locale = MetaApi.currentLocale()
|
|
@@ -24,6 +44,7 @@ export default function bootstrap() {
|
|
|
24
44
|
|
|
25
45
|
// 2. 메뉴 정보를 서버로 부터 받아서 적용
|
|
26
46
|
let menuRoutes = await MetaApi.myDynamicMenus()
|
|
47
|
+
|
|
27
48
|
let realMenus = menuRoutes.menus
|
|
28
49
|
await updateMenuTemplate(realMenus)
|
|
29
50
|
|
|
@@ -63,25 +84,38 @@ export default function bootstrap() {
|
|
|
63
84
|
}
|
|
64
85
|
})
|
|
65
86
|
|
|
66
|
-
// 6.
|
|
87
|
+
// 6. 업무정의 리스트 추가
|
|
88
|
+
store.dispatch({
|
|
89
|
+
type: ADD_MORENDA,
|
|
90
|
+
morenda: {
|
|
91
|
+
icon: html`<mwc-icon>work</mwc-icon>`,
|
|
92
|
+
name: html`<ox-i18n msgid="title.activity_list"></ox-i18n>`,
|
|
93
|
+
action: () => {
|
|
94
|
+
navigate('activity-list')
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
// 7. 모든 routes 정보 추출
|
|
67
101
|
let allRoutes = menuRoutes.routes
|
|
68
102
|
|
|
69
|
-
//
|
|
103
|
+
// 8. store의 모듈 정보 조회 & 마지막 application 모듈 정보를 추출
|
|
70
104
|
let modules = store.getState().app.modules
|
|
71
105
|
let allModules = Object.assign([], modules)
|
|
72
106
|
let appModule = allModules[allModules.length - 1]
|
|
73
107
|
|
|
74
|
-
//
|
|
108
|
+
// 9. 최종 애플리케이션 모듈의 routes 정보 교체
|
|
75
109
|
appModule.routes = allRoutes.filter(r => {
|
|
76
110
|
return r.template && !r.template.startsWith('@things-factory')
|
|
77
111
|
})
|
|
78
112
|
|
|
79
|
-
//
|
|
113
|
+
// 10. meta-ui 모듈 추출
|
|
80
114
|
let metaUiModule = allModules.find(m => {
|
|
81
115
|
return m.name == '@things-factory/meta-ui'
|
|
82
116
|
})
|
|
83
117
|
|
|
84
|
-
//
|
|
118
|
+
// 11. meta-ui의 routes 정보 교체
|
|
85
119
|
let metaUiRoutes = allRoutes.filter(r => {
|
|
86
120
|
let isMetaUiRoute = r.template && r.template.startsWith('@things-factory/meta-ui')
|
|
87
121
|
if (isMetaUiRoute) {
|
|
@@ -97,13 +131,13 @@ export default function bootstrap() {
|
|
|
97
131
|
metaUiModule.routes = metaUiRoutes
|
|
98
132
|
metaUiModule.route = metaUiRoute
|
|
99
133
|
|
|
100
|
-
//
|
|
134
|
+
// 12. store에 모듈 업데이트
|
|
101
135
|
store.dispatch({
|
|
102
136
|
type: UPDATE_MODULES,
|
|
103
137
|
modules: allModules
|
|
104
138
|
})
|
|
105
139
|
|
|
106
|
-
//
|
|
140
|
+
// 13. 첫 페이지를 리로딩 처리 (shell/app.js에서 리로딩 처리시에는 라우팅 정보가 없어서 처리를 못하므로 여기서 다시 한번 해줌...)
|
|
107
141
|
store.dispatch(navigateWithSilence(location))
|
|
108
142
|
})
|
|
109
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x21afa4=a0_0x56a9;(function(_0x477d3e,_0x11a244){const _0x3c3dd7=a0_0x56a9,_0x3f44ef=_0x477d3e();while(!![]){try{const _0x4ba4c1=-parseInt(_0x3c3dd7(0x110))/0x1*(-parseInt(_0x3c3dd7(0x11f))/0x2)+-parseInt(_0x3c3dd7(0x10c))/0x3*(parseInt(_0x3c3dd7(0x106))/0x4)+-parseInt(_0x3c3dd7(0x117))/0x5*(-parseInt(_0x3c3dd7(0x118))/0x6)+parseInt(_0x3c3dd7(0x102))/0x7+parseInt(_0x3c3dd7(0xfe))/0x8*(parseInt(_0x3c3dd7(0x120))/0x9)+parseInt(_0x3c3dd7(0x128))/0xa*(-parseInt(_0x3c3dd7(0x119))/0xb)+-parseInt(_0x3c3dd7(0x11b))/0xc;if(_0x4ba4c1===_0x11a244)break;else _0x3f44ef['push'](_0x3f44ef['shift']());}catch(_0x4e3a3f){_0x3f44ef['push'](_0x3f44ef['shift']());}}}(a0_0x20b0,0xd5886));import{MetaApi}from'./../utils/meta-api';function a0_0x56a9(_0x157080,_0x1e76ed){const _0x20b0d8=a0_0x20b0();return a0_0x56a9=function(_0x56a9b8,_0xc6b4){_0x56a9b8=_0x56a9b8-0xfd;let _0x11f0c1=_0x20b0d8[_0x56a9b8];return _0x11f0c1;},a0_0x56a9(_0x157080,_0x1e76ed);}function a0_0x20b0(){const _0x5da7c5=['3UeLkyY','name','menuInfo','is_detail','12161RPsoGw','parseBasicTabConfigs','tTitle','fetch','is_popup','isDetail','isPage','3434465UysdRw','6dMACKW','88QxKBTe','parseBasicFormConfigs','4705872UhdZvh','isEmpty','split','callScenario','242LVKEEE','63fHqmFp','grist','openDynamicPopup','menu','filterForm','getMenuMeta','active','title_detail','1463500RjioyU','isElement','320888qXjYLU','parseBasicGridConfigs','lifecycle','after','5710565JXixQL','isNotEmpty','parseBasicServiceConfigs','executeCallScenarioButtonClick','3269440bkBqmy','params','fetchHandler','errors','excuteOpenPopupButtonClick','getParams'];a0_0x20b0=function(){return _0x5da7c5;};return a0_0x20b0();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x473801=>class extends _0x473801{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x3cec26=>Boolean(_0x3cec26)},'is_popup':{'type':Boolean,'converter':_0x39997c=>Boolean(_0x39997c)}};}get[a0_0x21afa4(0xfd)](){return!0x0===this['is_detail']||!0x0===this['is_popup'];}get[a0_0x21afa4(0x115)](){const _0x37e93c=a0_0x21afa4;return!ValueUtil[_0x37e93c(0x11c)](this[_0x37e93c(0x10f)])&&this['is_detail'];}async['pageUpdated'](_0x5ad968,_0x37a53f,_0xd61c77){const _0x2598ec=a0_0x21afa4;let _0x6d3c15=this[_0x2598ec(0x100)]?.['params']?this['lifecycle'][_0x2598ec(0x107)]:{};this['isPage']&&this['active']&&0x0==_0xd61c77[_0x2598ec(0x126)]&&ValueUtil[_0x2598ec(0x103)](_0x6d3c15)&&this[_0x2598ec(0x113)]();}get['isPopup'](){const _0x14c02d=a0_0x21afa4;return!ValueUtil['isEmpty'](this[_0x14c02d(0x114)])&&this['is_popup'];}get[a0_0x21afa4(0x116)](){const _0x2cde4d=a0_0x21afa4;return!this['is_detail']&&!this[_0x2cde4d(0x114)];}async['getAndParseMenuMeta'](){const _0x46ae4a=a0_0x21afa4;let _0xd0306e=await MetaApi[_0x46ae4a(0x125)](this);_0xd0306e&&(this[_0x46ae4a(0x10e)]=_0xd0306e[_0x46ae4a(0x123)],this[_0x46ae4a(0xff)]&&this[_0x46ae4a(0xff)](_0xd0306e),this[_0x46ae4a(0x104)]&&this[_0x46ae4a(0x104)](_0xd0306e),this[_0x46ae4a(0x11a)]&&this[_0x46ae4a(0x11a)](_0xd0306e),this['parseBasicTabConfigs']&&this[_0x46ae4a(0x111)](_0xd0306e),this['parseBasicButtonConfigs']&&this['parseBasicButtonConfigs'](_0xd0306e),this['etcConfig']=_0xd0306e['etc']);}async[a0_0x21afa4(0x113)](){const _0x367fc2=a0_0x21afa4;ValueUtil[_0x367fc2(0x103)](this['grist'])?this[_0x367fc2(0x121)][_0x367fc2(0x113)]():(ValueUtil['isNotEmpty'](this[_0x367fc2(0x124)])||this['fetchHandler'])&&await this[_0x367fc2(0x108)]();}async[a0_0x21afa4(0x10a)](_0xd208f9,_0x8b934,_0x60caae){const _0x48af3d=a0_0x21afa4;let _0x3ca984=TermsUtil[_0x48af3d(0x112)](_0xd208f9['title']);ValueUtil[_0x48af3d(0x103)](_0xd208f9[_0x48af3d(0x127)])&&(_0x3ca984=_0x3ca984+'-'+ValueUtil[_0x48af3d(0x10b)](_0x8b934,..._0xd208f9[_0x48af3d(0x127)][_0x48af3d(0x11d)]('.'))),MetaApi[_0x48af3d(0x122)](_0x3ca984,_0xd208f9,_0x8b934,_0x60caae);}async[a0_0x21afa4(0x105)](_0x5b401f,_0x130292,_0x4de0b8){const _0x482433=a0_0x21afa4;let _0x10d1c4=await MetaApi[_0x482433(0x11e)](_0x5b401f[_0x482433(0x10d)],_0x5b401f[_0x482433(0x10d)],_0x130292);!0x1!==_0x10d1c4&&!_0x10d1c4[_0x482433(0x109)]&&ValueUtil[_0x482433(0x103)](_0x5b401f[_0x482433(0x101)])&&_0x4de0b8();}['setParentId'](_0x9b6478){const _0x423140=a0_0x21afa4;this['parent_id']=_0x9b6478,this[_0x423140(0x113)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x4dfde1=a0_0xfbb6;(function(_0x5cbe2f,_0x4d2b38){const _0x22ec77=a0_0xfbb6,_0x5db635=_0x5cbe2f();while(!![]){try{const _0x4effe1=-parseInt(_0x22ec77(0xb4))/0x1+parseInt(_0x22ec77(0xb7))/0x2*(parseInt(_0x22ec77(0x92))/0x3)+-parseInt(_0x22ec77(0xbd))/0x4+-parseInt(_0x22ec77(0xa1))/0x5*(parseInt(_0x22ec77(0xa5))/0x6)+parseInt(_0x22ec77(0xa9))/0x7+-parseInt(_0x22ec77(0xa6))/0x8+parseInt(_0x22ec77(0xb6))/0x9*(parseInt(_0x22ec77(0x96))/0xa);if(_0x4effe1===_0x4d2b38)break;else _0x5db635['push'](_0x5db635['shift']());}catch(_0x4544f3){_0x5db635['push'](_0x5db635['shift']());}}}(a0_0x2b98,0x5e177));import{html}from'lit';function a0_0xfbb6(_0x3ad124,_0x3d9d02){const _0x2b9823=a0_0x2b98();return a0_0xfbb6=function(_0xfbb6c2,_0x5054ae){_0xfbb6c2=_0xfbb6c2-0x8d;let _0x333819=_0x2b9823[_0xfbb6c2];return _0x333819;},a0_0xfbb6(_0x3ad124,_0x3d9d02);}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=_0x42bd6e=>class extends MetaButtonMixin(_0x42bd6e){static get[a0_0x4dfde1(0xab)](){const _0x1f170d=a0_0x4dfde1;return MetaApi[_0x1f170d(0x90)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x4dfde1(0x97)](){const _0x1fc06c=a0_0x4dfde1;return this[_0x1fc06c(0xbf)]?.['querySelector'](this[_0x1fc06c(0xbe)]);}get[a0_0x4dfde1(0x9e)](){const _0x2cb49d=a0_0x4dfde1;return this[_0x2cb49d(0x9c)]?.[_0x2cb49d(0xc0)](this[_0x2cb49d(0x9d)]);}get['context'](){const _0x1aa45e=a0_0x4dfde1;return MetaUiUtil[_0x1aa45e(0x9f)](this);}async[a0_0x4dfde1(0xb3)](){const _0x46e7c5=a0_0x4dfde1;this[_0x46e7c5(0xbe)]=_0x46e7c5(0xb5),this[_0x46e7c5(0x9d)]=_0x46e7c5(0xb0),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x46e7c5(0xbb)](),super[_0x46e7c5(0xb3)]&&await super[_0x46e7c5(0xb3)]();}async['firstUpdated'](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x4dfde1(0x9a)](){const _0x5a1061=a0_0x4dfde1;this[_0x5a1061(0xbc)]&&await this[_0x5a1061(0xbb)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x4dfde1(0xaf)](){const _0x10ca45=a0_0x4dfde1;return html`
|
|
2
|
+
${MetaApi[_0x10ca45(0xa3)](this)}
|
|
3
|
+
${this[_0x10ca45(0xbc)]?html``:MetaUiUtil[_0x10ca45(0xb2)](this)}
|
|
4
|
+
`;}[a0_0x4dfde1(0xaa)](_0x3201c8){const _0x1e1212=a0_0x4dfde1;this[_0x1e1212(0xb8)]=_0x3201c8[_0x1e1212(0xa7)],this['gridColumnConfig']=_0x3201c8['grid_column'],this[_0x1e1212(0x93)]=_0x3201c8[_0x1e1212(0xa2)];}async['parseGristConfigs'](){const _0x54752c=a0_0x4dfde1;this['gristConfigSet']=await MetaApi[_0x54752c(0x94)](this);}async['fetch'](){const _0x403cb8=a0_0x4dfde1;await this[_0x403cb8(0x97)][_0x403cb8(0x99)]();}async[a0_0x4dfde1(0x9b)](){const _0x3d2c97=a0_0x4dfde1;let _0x27123b=MetaApi[_0x3d2c97(0xae)](this[_0x3d2c97(0x97)]);!!ValueUtil['isNotEmpty'](_0x27123b)&&await this['updateMultiple'](_0x27123b)&&this['fetch']();}async[a0_0x4dfde1(0xad)](){const _0x21bbd5=a0_0x4dfde1;let _0x1d27c6=MetaApi['getSelectedIdList'](this[_0x21bbd5(0x97)],!0x0);return ValueUtil[_0x21bbd5(0x95)](_0x1d27c6)?await this[_0x21bbd5(0xa0)](_0x1d27c6[0x0]):{};}async[a0_0x4dfde1(0x91)](){const _0x40e77c=a0_0x4dfde1;let _0x54b156=MetaApi[_0x40e77c(0xa8)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x54b156)&&await this['deleteByIds'](_0x54b156)&&this['fetch']();}async[a0_0x4dfde1(0x98)](){const _0x2abaa9=a0_0x4dfde1;let _0x4e7fb9=TermsUtil[_0x2abaa9(0xb9)](ValueUtil[_0x2abaa9(0x8d)](this[_0x2abaa9(0xac)],_0x2abaa9(0xa4)));return await MetaApi[_0x2abaa9(0x8e)](this[_0x2abaa9(0xba)],_0x4e7fb9,this[_0x2abaa9(0x97)]);}async[a0_0x4dfde1(0xb1)](){}async[a0_0x4dfde1(0x8f)](){const _0xa2a87c=a0_0x4dfde1;this[_0xa2a87c(0x97)]&&(this['grist']['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}};function a0_0x2b98(){const _0xa75918=['shadowRoot','filterFormId','filterForm','getContextObject','findOne','665CjTtWh','search','getBasicGristHtml','title','22974RsLpaz','3915976iCTaMt','grid','getSelectedIdList','3213994XwsuxE','parseBasicGridConfigs','styles','menuInfo','find','patchesForUpdateMultiple','render','ox-filters-form','import','getButtonContainer','connectedCallback','226236BamCTO','ox-grist','27nwNXbB','193558qnnUkq','gridConfig','tTitle','isElement','parseGristConfigs','isPage','2531480DWPOJD','gristId','renderRoot','querySelector','getParams','exportableData','clear','getBasicGristStyles','delete','3bsfhxN','searchConfig','parseGridConfigSet','isNotEmpty','5624460AzpYTx','grist','export','fetch','pageInitialized','save'];a0_0x2b98=function(){return _0xa75918;};return a0_0x2b98();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x13fa(_0xf7867b,_0x5a2906){const _0x567f6a=a0_0x567f();return a0_0x13fa=function(_0x13faca,_0xb740c1){_0x13faca=_0x13faca-0x189;let _0x12b413=_0x567f6a[_0x13faca];return _0x12b413;},a0_0x13fa(_0xf7867b,_0x5a2906);}const a0_0x56f392=a0_0x13fa;function a0_0x567f(){const _0x1f7bdd=['1488OmToms','1018908zpsGrR','gristButtonHandler','getButtonContainer','isButtonExist','getButtonActionHandler','parseBasicButtonConfigs','16035UcXLec','1635498WXnzmx','customButtonHandler','buttonConfig','603328WOmDSE','getBasicButtonHandler','686448KpLDaw','1182DjxBmJ','properties','getCustomButtonContainerStyle','24766CDvDqY','useButtonAdd','12596430zwetMq','button','getContextButtons','2XsQdXd','export','useButtonExport'];a0_0x567f=function(){return _0x1f7bdd;};return a0_0x567f();}(function(_0x2f270c,_0x285b04){const _0x174d43=a0_0x13fa,_0x14cd1e=_0x2f270c();while(!![]){try{const _0x347fbf=-parseInt(_0x174d43(0x19f))/0x1+-parseInt(_0x174d43(0x191))/0x2*(parseInt(_0x174d43(0x195))/0x3)+parseInt(_0x174d43(0x1a1))/0x4+parseInt(_0x174d43(0x19b))/0x5*(-parseInt(_0x174d43(0x189))/0x6)+parseInt(_0x174d43(0x18c))/0x7*(parseInt(_0x174d43(0x194))/0x8)+-parseInt(_0x174d43(0x19c))/0x9+parseInt(_0x174d43(0x18e))/0xa;if(_0x347fbf===_0x285b04)break;else _0x14cd1e['push'](_0x14cd1e['shift']());}catch(_0x17d6e8){_0x14cd1e['push'](_0x14cd1e['shift']());}}}(a0_0x567f,0x5143a));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x22e959=>class extends MetaServiceMixin(_0x22e959){static get[a0_0x56f392(0x18a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x56f392(0x18b)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x56f392(0x190)](){const _0x401293=a0_0x56f392;return MetaUiUtil[_0x401293(0x190)](this);}['getButtonContainer'](){const _0x597357=a0_0x56f392;return this['isPage']?html``:MetaUiUtil[_0x597357(0x197)](this);}async[a0_0x56f392(0x1a0)](_0x25f841,_0x3302ff,_0x19e5ef){const _0x4f8dcd=a0_0x56f392;return await MetaUiUtil[_0x4f8dcd(0x199)](this,_0x25f841,_0x3302ff,_0x19e5ef);}async[a0_0x56f392(0x19d)](_0xec41f1){const _0x1d87bd=a0_0x56f392;await MetaUiUtil[_0x1d87bd(0x19d)](this,_0xec41f1);}async[a0_0x56f392(0x196)](_0x11fa33,_0x549af3){const _0x4842dd=a0_0x56f392;await MetaUiUtil[_0x4842dd(0x196)](this,_0x11fa33,_0x549af3);}[a0_0x56f392(0x19a)](_0x2d3271){const _0x45ca64=a0_0x56f392;this[_0x45ca64(0x19e)]=_0x2d3271[_0x45ca64(0x18f)],this['useButtonImport']=MetaUiUtil[_0x45ca64(0x198)](this['buttonConfig'],'import'),this[_0x45ca64(0x193)]=MetaUiUtil['isButtonExist'](this[_0x45ca64(0x19e)],_0x45ca64(0x192)),this[_0x45ca64(0x18d)]=MetaUiUtil[_0x45ca64(0x198)](this[_0x45ca64(0x19e)],'add');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4ef188=a0_0x3f51;(function(_0x5d57fc,_0x5ded7e){const _0x4ac5f5=a0_0x3f51,_0x4923b3=_0x5d57fc();while(!![]){try{const _0x54a39f=-parseInt(_0x4ac5f5(0xb7))/0x1*(parseInt(_0x4ac5f5(0xc1))/0x2)+-parseInt(_0x4ac5f5(0x90))/0x3+-parseInt(_0x4ac5f5(0x7b))/0x4+parseInt(_0x4ac5f5(0x93))/0x5+parseInt(_0x4ac5f5(0xa6))/0x6*(-parseInt(_0x4ac5f5(0x82))/0x7)+-parseInt(_0x4ac5f5(0x7d))/0x8*(parseInt(_0x4ac5f5(0xa1))/0x9)+parseInt(_0x4ac5f5(0xbd))/0xa;if(_0x54a39f===_0x5ded7e)break;else _0x4923b3['push'](_0x4923b3['shift']());}catch(_0x2abdca){_0x4923b3['push'](_0x4923b3['shift']());}}}(a0_0x4c79,0x1cbb9));function a0_0x3f51(_0x52511b,_0x1e8775){const _0x4c799d=a0_0x4c79();return a0_0x3f51=function(_0x3f5108,_0x53c27){_0x3f5108=_0x3f5108-0x76;let _0x1cf38d=_0x4c799d[_0x3f5108];return _0x1cf38d;},a0_0x3f51(_0x52511b,_0x1e8775);}function a0_0x4c79(){const _0x29c772=['editable','after','properties','clear','filter','146748wYgXeh','title.info','before','99015CwyIvM','true','tagName','connectedCallback','grid_column','cuFlag','startsWith','config','button','getBasicFormStyles','findOne','isPage','editing','save','45zBLJfh','field-change','__dirtyfields__','assign','text.NOTHING_CHANGED','5430XmcNzl','parseFormConfigs','Esc','OX-GRID-FIELD','currentTarget','patchData','column','function','dirtyData','isElement','isEmpty','orgData','currentData','styles','parent_id','renderRoot','Enter','1FKCdNQ','firstUpdated','getBasicFormHtml','fetch','focus','target','4586080kYcfaB','getContextObject','map','__dirty__','184436HaYZVO','removeGarbageData','formColumnConfig','object','validation','isEquals','108312MCVGBK','addEventListener','48824XtSVjp','keys','detail','keydown','render','1253ucHKFp','entries','stopPropagation','isNotEmpty','removeAttribute','__origin__','key','pageInitialized','record'];a0_0x4c79=function(){return _0x29c772;};return a0_0x4c79();}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=_0x56173c=>class extends MetaButtonMixin(_0x56173c){static get[a0_0x4ef188(0xb3)](){const _0x1118c7=a0_0x4ef188;return MetaApi[_0x1118c7(0x9c)]();}static get[a0_0x4ef188(0x8d)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x5c2da2=a0_0x4ef188;return MetaUiUtil[_0x5c2da2(0xbe)](this);}async[a0_0x4ef188(0x96)](){const _0x4fa294=a0_0x4ef188;if(this['config']){let {column:_0x2346b5=0x1}=this[_0x4fa294(0x9a)];this[_0x4fa294(0xac)]=_0x2346b5;}await this['getAndParseMenuMeta'](),this[_0x4fa294(0xaf)]&&await this['parseFormConfigs'](),super['connectedCallback']&&await super[_0x4fa294(0x96)](),this[_0x4fa294(0xaf)]&&await this['fetch'](),this[_0x4fa294(0xb5)][_0x4fa294(0x7c)](_0x4fa294(0x80),_0x42b1b2=>{const _0x2f852d=_0x4fa294;switch(_0x42b1b2[_0x2f852d(0x88)]){case _0x2f852d(0xa8):case'Escape':case _0x2f852d(0xb6):this[_0x2f852d(0xbb)](),this[_0x2f852d(0xaa)]&&this[_0x2f852d(0xaa)][_0x2f852d(0x86)](_0x2f852d(0x9f)),this[_0x2f852d(0xaa)]=null;}}),this[_0x4fa294(0xb5)][_0x4fa294(0x7c)]('click',_0x54640d=>{const _0x75b92a=_0x4fa294;_0x54640d[_0x75b92a(0x84)]();let _0x3ad9ca=_0x54640d[_0x75b92a(0xbc)];if(this['currentTarget']&&(this[_0x75b92a(0xbb)](),this[_0x75b92a(0xaa)][_0x75b92a(0x86)](_0x75b92a(0x9f))),_0x75b92a(0xa9)!==_0x3ad9ca[_0x75b92a(0x95)]||!_0x3ad9ca[_0x75b92a(0xac)]['record'][_0x75b92a(0x8b)])return this[_0x75b92a(0xbb)](),void(this['currentTarget']=null);this[_0x75b92a(0xaa)]=_0x3ad9ca,_0x3ad9ca['setAttribute'](_0x75b92a(0x9f),_0x75b92a(0x94));}),this['addEventListener'](_0x4fa294(0xa2),_0x32ea4b=>{const _0x2dbe7a=_0x4fa294;var {after:_0x14060e,before:_0x5583be,column:_0x1c7bfe,record:_0x2c95c4,row:_0x2172e1}=_0x32ea4b[_0x2dbe7a(0x7f)];if(ValueUtil[_0x2dbe7a(0x7a)](_0x14060e,_0x5583be))return;var _0x5f4411=_0x1c7bfe[_0x2dbe7a(0x79)];if(_0x5f4411&&_0x2dbe7a(0xad)==typeof _0x5f4411&&!_0x5f4411['call'](this,_0x14060e,_0x5583be,_0x2c95c4,_0x1c7bfe))return;let _0x1033a4=_0x1c7bfe['name'];_0x2c95c4[_0x1033a4]=_0x14060e,_0x2c95c4[_0x2dbe7a(0xa3)]=_0x2c95c4['__dirtyfields__']||{},_0x2c95c4['__dirtyfields__'][_0x1033a4]={'before':_0x2c95c4[_0x2dbe7a(0x87)][_0x1033a4],'after':_0x2c95c4[_0x1033a4]},ValueUtil[_0x2dbe7a(0x7a)](_0x2c95c4[_0x2dbe7a(0xa3)][_0x1033a4][_0x2dbe7a(0x92)],_0x2c95c4[_0x2dbe7a(0xa3)][_0x1033a4][_0x2dbe7a(0x8c)])&&delete _0x2c95c4[_0x2dbe7a(0xa3)][_0x1033a4],ValueUtil[_0x2dbe7a(0x85)](_0x2c95c4['__dirtyfields__'])?_0x2c95c4['__dirty__']='M':_0x2c95c4[_0x2dbe7a(0xc0)]='',this[_0x2dbe7a(0x8a)]={..._0x2c95c4};});}async['firstUpdated'](){const _0xb8399a=a0_0x4ef188;super[_0xb8399a(0xb8)]&&await super[_0xb8399a(0xb8)]();}async[a0_0x4ef188(0x89)](){const _0x270127=a0_0x4ef188;this[_0x270127(0x9e)]&&await this[_0x270127(0xa7)](),super[_0x270127(0x89)]&&await super[_0x270127(0x89)](),this[_0x270127(0x9e)]&&await this['fetch']();}[a0_0x4ef188(0x81)](){const _0x5a4dec=a0_0x4ef188;return MetaApi[_0x5a4dec(0xb9)](this);}['parseBasicFormConfigs'](_0x284990){const _0x2ad673=a0_0x4ef188;this[_0x2ad673(0x77)]=_0x284990[_0x2ad673(0x97)],this['formRenderConfig']=_0x284990['form'],_0x284990[_0x2ad673(0x9b)]=_0x284990[_0x2ad673(0x9b)][_0x2ad673(0x8f)](_0x39d409=>_0x2ad673(0xa0)==_0x39d409['name']);}async[a0_0x4ef188(0xa7)](){this['formConfigSet']=await MetaApi['parseFormConfigSet'](this);}get[a0_0x4ef188(0xb1)](){const _0xfc9d75=a0_0x4ef188;return this['removeGarbageData'](this['record'][_0xfc9d75(0x87)]);}get[a0_0x4ef188(0xae)](){const _0x11ca6e=a0_0x4ef188;if(ValueUtil[_0x11ca6e(0xb0)](this[_0x11ca6e(0x8a)][_0x11ca6e(0xa3)]))return{};let _0x2c38a8={};return Object['entries'](this[_0x11ca6e(0x8a)][_0x11ca6e(0xa3)])['map'](([_0x3a0cf9,_0x472208])=>{const _0x47f808=_0x11ca6e;0x0==_0x3a0cf9[_0x47f808(0x99)]('__')&&(_0x2c38a8[_0x3a0cf9]=_0x472208[_0x47f808(0x8c)]);}),_0x2c38a8;}get[a0_0x4ef188(0xb2)](){const _0x510e4d=a0_0x4ef188;return this[_0x510e4d(0x76)](this[_0x510e4d(0x8a)]);}['removeGarbageData'](_0x1abbca){const _0x126047=a0_0x4ef188;let _0x4a653a={};return Object[_0x126047(0x83)](_0x1abbca)[_0x126047(0xbf)](([_0x47e34f,_0x24cbc6])=>{const _0x4001cb=_0x126047;0x0==_0x47e34f[_0x4001cb(0x99)]('__')&&(_0x4a653a[_0x47e34f]=_0x24cbc6);}),_0x4a653a;}get[a0_0x4ef188(0xab)](){const _0x38989b=a0_0x4ef188;let _0x1712db=this[_0x38989b(0xae)],_0x252b1b=this[_0x38989b(0x8a)];return ValueUtil['isEmpty'](_0x1712db)?[]:(ValueUtil[_0x38989b(0x85)](_0x252b1b['id'])?(_0x1712db['id']=_0x252b1b['id'],_0x1712db['cuFlag']='M'):_0x1712db[_0x38989b(0x98)]='+',Object[_0x38989b(0x7e)](_0x1712db)['forEach'](_0x193a8d=>{const _0x1137af=_0x38989b;_0x1137af(0x78)==typeof _0x1712db[_0x193a8d]&&(_0x1712db[_0x193a8d]={'id':_0x1712db[_0x193a8d]['id']});}),[_0x1712db]);}async['fetch'](){const _0x157e0f=a0_0x4ef188;if(ValueUtil[_0x157e0f(0xb0)](this['parent_id']))return;let _0x401041=await this[_0x157e0f(0x9d)](this[_0x157e0f(0xb4)]);_0x401041['__seq__']=0x1;let _0x4ca537={};Object[_0x157e0f(0xa4)](_0x4ca537,_0x401041),_0x401041[_0x157e0f(0x87)]=_0x4ca537,this[_0x157e0f(0x8a)]={..._0x401041};}async['save'](){const _0x1670f=a0_0x4ef188;let _0x27237d=this[_0x1670f(0xab)];if(ValueUtil['isEmpty'](_0x27237d))return void MetaApi['showAlertPopup'](_0x1670f(0x91),_0x1670f(0xa5));let _0x68aead=await this['updateMultiple'](_0x27237d);return _0x68aead&&await this[_0x1670f(0xba)](),_0x68aead;}async[a0_0x4ef188(0x8e)](){const _0x5b1ccf=a0_0x4ef188;this[_0x5b1ccf(0x8a)]&&(this[_0x5b1ccf(0x8a)]={});}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3d4ea1=a0_0x1414;(function(_0x4e0fe0,_0x291716){const _0x3e9baf=a0_0x1414,_0x1877c2=_0x4e0fe0();while(!![]){try{const _0x12e40e=-parseInt(_0x3e9baf(0xd6))/0x1+parseInt(_0x3e9baf(0xd3))/0x2*(-parseInt(_0x3e9baf(0xf9))/0x3)+-parseInt(_0x3e9baf(0xe6))/0x4*(parseInt(_0x3e9baf(0x109))/0x5)+parseInt(_0x3e9baf(0xf8))/0x6+-parseInt(_0x3e9baf(0xd1))/0x7+parseInt(_0x3e9baf(0xdb))/0x8+parseInt(_0x3e9baf(0xff))/0x9;if(_0x12e40e===_0x291716)break;else _0x1877c2['push'](_0x1877c2['shift']());}catch(_0x451313){_0x1877c2['push'](_0x1877c2['shift']());}}}(a0_0x11d8,0x40a0c));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x1414(_0x1eee35,_0x5b8594){const _0x11d8dc=a0_0x11d8();return a0_0x1414=function(_0x1414d2,_0x4936ad){_0x1414d2=_0x1414d2-0xcb;let _0x59bb1a=_0x11d8dc[_0x1414d2];return _0x59bb1a;},a0_0x1414(_0x1eee35,_0x5b8594);}function a0_0x11d8(){const _0x3bac45=['gristId','map','pageInitialized','delete','actions','471079JjySGL','columns','10EgPdsb','render','title','162879PZkjru','importable','styles','patchesForUpdateMultiple','parseBasicGridConfigs','2457264sERiiK','getContextObject','filter','useMasterFilterForm','meta-tab-element','firstUpdated','isElement','getAndParseMenuMeta','ox-filters-form-base','renderRoot','getSelectedIdList','100NRMpUj','properties','search','record','operator','grist','getBasicGristTabStyles','context','shadowRoot','grid','searchFields','filterForm','querySelector','clear','gristConfigSet','import','menuInfo','fetch','1187442wuPYCz','179205UQXtkQ','grid_column','name','type','isPage','gridColumnConfig','5831343whgvBo','filterFormId','isNotEmpty','parseGristConfigs','exportableData','useFilterForm','export','beforeFetch','exportable','options','71885digTqq','gridConfig','getParams','connectedCallback'];a0_0x11d8=function(){return _0x3bac45;};return a0_0x11d8();}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 MetaGristTabMixin=_0x58bb4f=>class extends MetaButtonMixin(_0x58bb4f){static get[a0_0x3d4ea1(0xd8)](){const _0x425c03=a0_0x3d4ea1;return MetaApi[_0x425c03(0xec)]();}static get[a0_0x3d4ea1(0xe7)](){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 _0x20a6e2=a0_0x3d4ea1;return this['renderRoot'][_0x20a6e2(0xf2)](this[_0x20a6e2(0xcc)]);}get[a0_0x3d4ea1(0xf1)](){const _0xd7cace=a0_0x3d4ea1;return this[_0xd7cace(0xee)]?.[_0xd7cace(0xf2)](this[_0xd7cace(0x100)]);}get[a0_0x3d4ea1(0xed)](){const _0x2605dd=a0_0x3d4ea1;let _0x1a3299=MetaUiUtil[_0x2605dd(0xdc)](this);return _0x1a3299[_0x2605dd(0xd0)]&&delete _0x1a3299['actions'],_0x1a3299[_0x2605dd(0x107)]&&delete _0x1a3299[_0x2605dd(0x107)],_0x1a3299[_0x2605dd(0xd7)]&&delete _0x1a3299[_0x2605dd(0xd7)],_0x1a3299;}async[a0_0x3d4ea1(0xcb)](){const _0x37e4b1=a0_0x3d4ea1;this[_0x37e4b1(0xcc)]='ox-grist',this[_0x37e4b1(0x100)]=_0x37e4b1(0xe3),await this[_0x37e4b1(0xe2)](),this['isElement']&&await this[_0x37e4b1(0x102)](),super['connectedCallback']&&await super[_0x37e4b1(0xcb)]();}async[a0_0x3d4ea1(0xe0)](){const _0xf92e11=a0_0x3d4ea1;super[_0xf92e11(0xe0)]&&await super[_0xf92e11(0xe0)]();}async[a0_0x3d4ea1(0xce)](){const _0x45622c=a0_0x3d4ea1;this[_0x45622c(0xfd)]&&await this[_0x45622c(0x102)](),super[_0x45622c(0xce)]&&await super[_0x45622c(0xce)]();}[a0_0x3d4ea1(0xd4)](){return MetaApi['getGristTabHtml'](this);}[a0_0x3d4ea1(0xda)](_0x5685d4){const _0x4bbc2d=a0_0x3d4ea1;this[_0x4bbc2d(0x10a)]=_0x5685d4[_0x4bbc2d(0xef)],this[_0x4bbc2d(0xfe)]=_0x5685d4[_0x4bbc2d(0xfa)],this['searchConfig']=_0x5685d4[_0x4bbc2d(0xe8)];}async[a0_0x3d4ea1(0x102)](){const _0x5d147c=a0_0x3d4ea1;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x5d147c(0xde)]=this[_0x5d147c(0x104)],this[_0x5d147c(0x104)]=!0x1,this[_0x5d147c(0xf0)]=this[_0x5d147c(0xf4)][_0x5d147c(0xd2)][_0x5d147c(0xdd)](_0xcc8439=>_0xcc8439[_0x5d147c(0xdd)])[_0x5d147c(0xcd)](_0x58c4e8=>{const _0x30335b=_0x5d147c;let _0x282b84={'name':_0x58c4e8[_0x30335b(0xfb)],'type':_0x58c4e8[_0x30335b(0xfc)],'label':_0x58c4e8['header'],'operator':_0x58c4e8[_0x30335b(0xdd)][_0x30335b(0xea)]?_0x58c4e8[_0x30335b(0xdd)][_0x30335b(0xea)]:'eq'};return _0x58c4e8[_0x30335b(0xe9)][_0x30335b(0x108)]&&(_0x282b84[_0x30335b(0x108)]=_0x58c4e8[_0x30335b(0xe9)][_0x30335b(0x108)]),_0x282b84;});}async[a0_0x3d4ea1(0xf7)](){const _0x4da6bb=a0_0x3d4ea1;await this[_0x4da6bb(0xeb)][_0x4da6bb(0xf7)]();}async[a0_0x3d4ea1(0x106)]({page:_0x104b94=0x0,limit:_0x109d5c=0x0,sortings:_0x21d53a=[],filters:_0x461824=[]}){const _0x345f62=a0_0x3d4ea1;let _0xdecafa=this[_0x345f62(0xe4)]['querySelector'](_0x345f62(0xdf));return await _0xdecafa[_0x345f62(0xf3)](),!0x0;}async['save'](){const _0x24d123=a0_0x3d4ea1;let _0x29dedb=MetaApi[_0x24d123(0xd9)](this['grist']);!!ValueUtil['isNotEmpty'](_0x29dedb)&&await this['updateMultiple'](_0x29dedb)&&this[_0x24d123(0xf7)]();}async['find'](){const _0x1c454d=a0_0x3d4ea1;let _0x2aadc7=MetaApi['getSelectedIdList'](this[_0x1c454d(0xeb)],!0x0);return ValueUtil[_0x1c454d(0x101)](_0x2aadc7)?await this['findOne'](_0x2aadc7[0x0]):{};}async[a0_0x3d4ea1(0xcf)](){const _0x4407e3=a0_0x3d4ea1;let _0x2060b5=MetaApi[_0x4407e3(0xe5)](this[_0x4407e3(0xeb)],!0x0);!!ValueUtil[_0x4407e3(0x101)](_0x2060b5)&&await this['deleteByIds'](_0x2060b5)&&this['fetch']();}async[a0_0x3d4ea1(0x105)](){const _0x24829e=a0_0x3d4ea1;let _0x1968db=TermsUtil['tTitle'](ValueUtil[_0x24829e(0x10b)](this[_0x24829e(0xf6)],_0x24829e(0xd5)));return await MetaApi[_0x24829e(0x103)](this[_0x24829e(0xe1)],_0x1968db,this[_0x24829e(0xeb)]);}async[a0_0x3d4ea1(0xf5)](){}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x32c9c6=a0_0x3468;(function(_0x569972,_0x53726e){const _0x48e1f5=a0_0x3468,_0x3dba2a=_0x569972();while(!![]){try{const _0x2cabe5=parseInt(_0x48e1f5(0x145))/0x1*(parseInt(_0x48e1f5(0x167))/0x2)+parseInt(_0x48e1f5(0x12f))/0x3*(parseInt(_0x48e1f5(0x14e))/0x4)+-parseInt(_0x48e1f5(0x15d))/0x5+parseInt(_0x48e1f5(0x140))/0x6+-parseInt(_0x48e1f5(0x16e))/0x7*(parseInt(_0x48e1f5(0x13d))/0x8)+parseInt(_0x48e1f5(0x15a))/0x9*(parseInt(_0x48e1f5(0x173))/0xa)+parseInt(_0x48e1f5(0x171))/0xb*(-parseInt(_0x48e1f5(0x13a))/0xc);if(_0x2cabe5===_0x53726e)break;else _0x3dba2a['push'](_0x3dba2a['shift']());}catch(_0x45d0ee){_0x3dba2a['push'](_0x3dba2a['shift']());}}}(a0_0x5289,0x64a29));function a0_0x3468(_0x127f38,_0x406652){const _0x5289cb=a0_0x5289();return a0_0x3468=function(_0x34688b,_0x20d0d0){_0x34688b=_0x34688b-0x12b;let _0x43f181=_0x5289cb[_0x34688b];return _0x43f181;},a0_0x3468(_0x127f38,_0x406652);}import{html}from'lit';function a0_0x5289(){const _0x3c1717=['isElement','deleteByIds','54LyFByP','export','import','2158545RVWWFS','search','exportableData','options','name','gridConfig','findOne','properties','actions','querySelector','6230adrUMh','importable','find','pageInitialized','\x22\x20route_name=\x22','fetch','detail','14NMIjqp','firstUpdated','gristConfigSet','11CjWIkU','getBasicMasterDetailStyles','1131310PuYPMl','exportable','routing','isNotEmpty','shadowRoot','\x22\x20name=\x22','searchConfig','clear','3KodRFm','delete','useFilterForm','\x20id=\x22','getParams','renderRoot','tTitle','type','map','grist','connectedCallback','7455648SxhHzr','filter','detailElement','1375520DyGSvz','getContextObject','gristId','2171892jcMYht','gridColumnConfig','useMasterFilterForm','getSelectedIdList','isPage','151BFHORU','operator','ox-grist','htmlToElement','filterForm','filterFormId','createDetailElement','parseGridConfigSet','record','1191844phjzrc','grid','parseGristConfigs','tagname','context','render','updateMultiple','searchFields','beforeFetch','getMasterDetailHtml'];a0_0x5289=function(){return _0x3c1717;};return a0_0x5289();}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=_0x5f3e06=>class extends MetaButtonMixin(_0x5f3e06){static get['styles'](){const _0x8d08d3=a0_0x3468;return MetaApi[_0x8d08d3(0x172)]();}static get[a0_0x32c9c6(0x164)](){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 _0x154bb9=a0_0x32c9c6;return this[_0x154bb9(0x134)][_0x154bb9(0x166)](this[_0x154bb9(0x13f)]);}get[a0_0x32c9c6(0x149)](){const _0x51eace=a0_0x32c9c6;return this[_0x51eace(0x12b)]?.[_0x51eace(0x166)](this[_0x51eace(0x14a)]);}get[a0_0x32c9c6(0x152)](){const _0x4b0430=a0_0x32c9c6;let _0x2372eb=MetaUiUtil[_0x4b0430(0x13e)](this);return _0x2372eb[_0x4b0430(0x165)]&&delete _0x2372eb[_0x4b0430(0x165)],_0x2372eb[_0x4b0430(0x174)]&&delete _0x2372eb[_0x4b0430(0x174)],_0x2372eb['importable']&&delete _0x2372eb[_0x4b0430(0x168)],_0x2372eb;}async[a0_0x32c9c6(0x139)](){const _0x4ae716=a0_0x32c9c6;this['gristId']=_0x4ae716(0x147),this[_0x4ae716(0x14a)]='ox-filters-form-base',await this['getAndParseMenuMeta'](),this['isElement']&&await this['parseGristConfigs'](),super['connectedCallback']&&await super[_0x4ae716(0x139)]();}async[a0_0x32c9c6(0x16f)](){const _0x55d845=a0_0x32c9c6;super[_0x55d845(0x16f)]&&await super[_0x55d845(0x16f)]();}async['pageInitialized'](){const _0x326bbf=a0_0x32c9c6;this[_0x326bbf(0x144)]&&await this[_0x326bbf(0x150)](),super[_0x326bbf(0x16a)]&&await super[_0x326bbf(0x16a)]();}[a0_0x32c9c6(0x153)](){const _0x38fa4f=a0_0x32c9c6;return MetaApi[_0x38fa4f(0x157)](this);}[a0_0x32c9c6(0x14b)](_0x5d84ba){const _0x19898c=a0_0x32c9c6;if(!this[_0x19898c(0x13c)]){let _0x65f903=_0x5d84ba[_0x19898c(0x161)]?_0x5d84ba[_0x19898c(0x161)]:_0x19898c(0x16d),_0x273dbd='<'+_0x5d84ba[_0x19898c(0x151)]+_0x19898c(0x132)+_0x65f903+_0x19898c(0x12c)+_0x65f903+_0x19898c(0x16b)+_0x5d84ba[_0x19898c(0x175)]+'\x22\x20is_detail=true\x20style=\x22flex:1;\x22></'+_0x5d84ba[_0x19898c(0x151)]+'>';this[_0x19898c(0x13c)]=UiUtil[_0x19898c(0x148)](_0x273dbd);}}['parseBasicGridConfigs'](_0x57e86d){const _0x591142=a0_0x32c9c6;this[_0x591142(0x162)]=_0x57e86d[_0x591142(0x14f)],this[_0x591142(0x141)]=_0x57e86d['grid_column'],this[_0x591142(0x12d)]=_0x57e86d[_0x591142(0x15e)];}async[a0_0x32c9c6(0x150)](){const _0x3a4f15=a0_0x32c9c6;this[_0x3a4f15(0x170)]=await MetaApi[_0x3a4f15(0x14c)](this),this[_0x3a4f15(0x142)]=this[_0x3a4f15(0x131)],this[_0x3a4f15(0x131)]=!0x1,this[_0x3a4f15(0x155)]=this['gristConfigSet']['columns'][_0x3a4f15(0x13b)](_0x537ea0=>_0x537ea0[_0x3a4f15(0x13b)])[_0x3a4f15(0x137)](_0x31ea54=>{const _0x367d7b=_0x3a4f15;let _0x4d5d7b={'name':_0x31ea54[_0x367d7b(0x161)],'type':_0x31ea54[_0x367d7b(0x136)],'label':_0x31ea54['header'],'operator':_0x31ea54['filter'][_0x367d7b(0x146)]?_0x31ea54[_0x367d7b(0x13b)][_0x367d7b(0x146)]:'eq'};return _0x31ea54[_0x367d7b(0x14d)]['options']&&(_0x4d5d7b['options']=_0x31ea54[_0x367d7b(0x14d)][_0x367d7b(0x160)]),_0x4d5d7b;});}async['fetch'](){const _0xcc9988=a0_0x32c9c6;await this['grist'][_0xcc9988(0x16c)]();}async[a0_0x32c9c6(0x156)]({page:_0x5858c5=0x0,limit:_0x39848d=0x0,sortings:_0x216db8=[],filters:_0x5a4da2=[]}){const _0x15e2cd=a0_0x32c9c6;return this[_0x15e2cd(0x13c)]&&this[_0x15e2cd(0x13c)][_0x15e2cd(0x12e)]&&await this[_0x15e2cd(0x13c)][_0x15e2cd(0x12e)](),!0x0;}async['save'](){const _0x2c56c5=a0_0x32c9c6;let _0x13a69c=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil['isNotEmpty'](_0x13a69c)&&await this[_0x2c56c5(0x154)](_0x13a69c)&&this[_0x2c56c5(0x16c)]();}async[a0_0x32c9c6(0x169)](){const _0x118a43=a0_0x32c9c6;let _0x2bfb39=MetaApi[_0x118a43(0x143)](this[_0x118a43(0x138)],!0x0);return ValueUtil[_0x118a43(0x176)](_0x2bfb39)?await this[_0x118a43(0x163)](_0x2bfb39[0x0]):{};}async[a0_0x32c9c6(0x130)](){const _0x81cfd=a0_0x32c9c6;let _0x229fcf=MetaApi[_0x81cfd(0x143)](this[_0x81cfd(0x138)],!0x0);!!ValueUtil[_0x81cfd(0x176)](_0x229fcf)&&await this[_0x81cfd(0x159)](_0x229fcf)&&this['fetch']();}async[a0_0x32c9c6(0x15b)](){const _0x104e64=a0_0x32c9c6;let _0xa85594=TermsUtil[_0x104e64(0x135)](ValueUtil[_0x104e64(0x133)](this['menuInfo'],'title'));return await MetaApi[_0x104e64(0x15f)](this[_0x104e64(0x158)],_0xa85594,this[_0x104e64(0x138)]);}async[a0_0x32c9c6(0x15c)](){}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x4b080f=a0_0x383f;function a0_0x383f(_0x3184b2,_0x4c7075){const _0x30a9bf=a0_0x30a9();return a0_0x383f=function(_0x383f40,_0x5844f4){_0x383f40=_0x383f40-0xb8;let _0x54ebb2=_0x30a9bf[_0x383f40];return _0x54ebb2;},a0_0x383f(_0x3184b2,_0x4c7075);}(function(_0x4946d7,_0x41564c){const _0x3640fb=a0_0x383f,_0x2dfd73=_0x4946d7();while(!![]){try{const _0x146a7d=-parseInt(_0x3640fb(0xe5))/0x1+-parseInt(_0x3640fb(0xd9))/0x2+-parseInt(_0x3640fb(0xbe))/0x3+parseInt(_0x3640fb(0xc1))/0x4*(parseInt(_0x3640fb(0xee))/0x5)+-parseInt(_0x3640fb(0xdc))/0x6*(parseInt(_0x3640fb(0xea))/0x7)+-parseInt(_0x3640fb(0xdd))/0x8*(parseInt(_0x3640fb(0xca))/0x9)+parseInt(_0x3640fb(0xde))/0xa*(parseInt(_0x3640fb(0xd8))/0xb);if(_0x146a7d===_0x41564c)break;else _0x2dfd73['push'](_0x2dfd73['shift']());}catch(_0x2416e9){_0x2dfd73['push'](_0x2dfd73['shift']());}}}(a0_0x30a9,0xd2e4c));function a0_0x30a9(){const _0x5a95ab=['isElement','list_func','1279075OMyRlY','lifecycle','split','filterForm','delete','10213gsKrJF','getPageNavigateParams','updateMultiple','pass','92930UtWfMc','keys','params','properties','query','find_one_func','parent_id','907038pdNuOC','searchByPagination','func','312pRwQYM','deleteListByIds','gql','getSelectColumns','filter','forEach','getParams','findOne','records','19773UwDxCX','map','beforeFetch','length','push','name','multiple','includes','skip_fields','mutation','gristConfigSet','formConfigSet','fetchHandler','afterFetch','33MQQZlS','1787388FzROJo','gqlInfo','isNotEmpty','2880vMcxmq','1360Wtyddu','9876790bLxyBu','after_set_fields','parseBasicServiceConfigs','columns','deleteByIds'];a0_0x30a9=function(){return _0x5a95ab;};return a0_0x30a9();}import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x15045f=>class extends MetaBaseMixin(_0x15045f){static get[a0_0x4b080f(0xba)](){return{'gqlInfo':Object};}[a0_0x4b080f(0xe0)](_0x401022){const _0xb1f661=a0_0x4b080f;this[_0xb1f661(0xda)]=_0x401022[_0xb1f661(0xc3)];}async[a0_0x4b080f(0xd6)]({page:_0x11d10e=0x0,limit:_0x170ff6=0x0,sortings:_0x40f42a=[],filters:_0x26d39e=[]}){const _0x10e57d=a0_0x4b080f;if(this[_0x10e57d(0xcc)]&&0x0==await this[_0x10e57d(0xcc)]({'page':_0x11d10e,'limit':_0x170ff6,'sortings':_0x40f42a,'filters':_0x26d39e}))return;if(!this[_0x10e57d(0xd4)])return{'total':0x0,'records':[]};let _0x34ab37=ValueUtil['isEmpty'](_0x26d39e)?await this[_0x10e57d(0xe8)]?.['getQueryFilters']()||[]:_0x26d39e,_0x3c0f47=ValueUtil[_0x10e57d(0xc7)](this[_0x10e57d(0xda)],'query',_0x10e57d(0xe4)),_0x1d2454=ValueUtil['getParams'](this['gqlInfo'],_0x10e57d(0xbb),'filters'),_0x58b4b3=ValueUtil[_0x10e57d(0xc7)](this[_0x10e57d(0xda)],_0x10e57d(0xbb),_0x10e57d(0xdf));if(ValueUtil[_0x10e57d(0xdb)](_0x1d2454)&&(_0x34ab37=adjustFilters(_0x34ab37,_0x1d2454)),_0x34ab37[_0x10e57d(0xce)](...this['getPageNavigateParams']()),this['isElement']){let _0x463574=ValueUtil[_0x10e57d(0xc7)](this[_0x10e57d(0xda)],'query',_0x10e57d(0xbd));ValueUtil[_0x10e57d(0xdb)](_0x463574)&&ValueUtil['isNotEmpty'](this['parent_id'])&&(_0x34ab37=adjustFilters(_0x34ab37,[{'name':_0x463574,'operator':'eq','value':this['parent_id']}]));}let _0x45c396=Object[_0x10e57d(0xb8)](_0x58b4b3||{}),_0x15233a=MetaApi[_0x10e57d(0xc4)](this[_0x10e57d(0xd4)][_0x10e57d(0xe1)][_0x10e57d(0xc5)](_0xc3345=>!_0x45c396[_0x10e57d(0xd1)](_0xc3345[_0x10e57d(0xcf)]))),_0xa8d971=await MetaApi[_0x10e57d(0xbf)](_0x3c0f47,_0x34ab37,_0x40f42a,_0x11d10e,_0x170ff6,_0x15233a);if(this[_0x10e57d(0xd7)]){let _0x1a41e2=await this[_0x10e57d(0xd7)]({'page':_0x11d10e,'limit':_0x170ff6,'sortings':_0x40f42a,'filters':_0x26d39e},_0xa8d971);if(_0x1a41e2)return _0x1a41e2;}return ValueUtil['isNotEmpty'](_0x58b4b3)&&ValueUtil['isNotEmpty'](_0xa8d971)&&ValueUtil[_0x10e57d(0xdb)](_0xa8d971[_0x10e57d(0xc9)])&&_0xa8d971[_0x10e57d(0xc9)][_0x10e57d(0xcb)](_0x3137ff=>(_0x45c396[_0x10e57d(0xc6)](_0x272bad=>{const _0x1e945e=_0x10e57d;_0x3137ff[_0x272bad]=ValueUtil[_0x1e945e(0xc7)](_0x3137ff,..._0x58b4b3[_0x272bad][_0x1e945e(0xe7)]('.'));}),_0x3137ff)),_0xa8d971;}[a0_0x4b080f(0xeb)](){const _0x5b1df0=a0_0x4b080f;if(0x0==this['isPage'])return[];let _0x5c0837=this[_0x5b1df0(0xe6)]?.['params']?this[_0x5b1df0(0xe6)][_0x5b1df0(0xb9)]:{};if(!_0x5c0837[_0x5b1df0(0xed)])return[];let _0x363f59=_0x5c0837[_0x5b1df0(0xed)],_0x58c303=JSON['parse'](_0x363f59),_0x3026e8=0x1==_0x58c303[_0x5b1df0(0xcd)]?'eq':'in',_0x40e4ba={},_0x382be2=[];return Object[_0x5b1df0(0xb8)](_0x58c303[0x0])[_0x5b1df0(0xc6)](_0x2092a0=>{_0x40e4ba[_0x2092a0]={'name':_0x2092a0,'operator':_0x3026e8,'value':'eq'===_0x3026e8?_0x58c303[0x0][_0x2092a0]:[]};}),_0x58c303[_0x5b1df0(0xcd)]>0x1&&_0x58c303[_0x5b1df0(0xc6)](_0x5549d0=>{const _0x2b6442=_0x5b1df0;Object[_0x2b6442(0xb8)](_0x5549d0)[_0x2b6442(0xc6)](_0x3060ca=>{const _0xebb5a9=_0x2b6442;_0x40e4ba[_0x3060ca]['value'][_0xebb5a9(0xce)](_0x5549d0[_0x3060ca]);});}),Object[_0x5b1df0(0xb8)](_0x40e4ba)[_0x5b1df0(0xc6)](_0x509a74=>{const _0x14391e=_0x5b1df0;_0x382be2[_0x14391e(0xce)](_0x40e4ba[_0x509a74]);}),_0x382be2;}async[a0_0x4b080f(0xc8)](_0x150972){const _0xe2852a=a0_0x4b080f;let _0x17dca6=ValueUtil['getParams'](this[_0xe2852a(0xda)],'query',_0xe2852a(0xbc)),_0x1dcdbb=ValueUtil[_0xe2852a(0xc7)](this[_0xe2852a(0xda)],_0xe2852a(0xbb),_0xe2852a(0xdf)),_0x3bcbc8=Object[_0xe2852a(0xb8)](_0x1dcdbb||{}),_0x1f9089=MetaApi['getSelectColumns']((this[_0xe2852a(0xd4)]?this[_0xe2852a(0xd4)]:{'columns':this[_0xe2852a(0xd5)]})[_0xe2852a(0xe1)][_0xe2852a(0xc5)](_0x4a254b=>!_0x3bcbc8[_0xe2852a(0xd1)](_0x4a254b[_0xe2852a(0xcf)]))),_0x5b81d1=await MetaApi[_0xe2852a(0xc8)](_0x17dca6,_0x150972,_0x1f9089);return ValueUtil[_0xe2852a(0xdb)](_0x1dcdbb)&&ValueUtil[_0xe2852a(0xdb)](_0x5b81d1)&&_0x3bcbc8[_0xe2852a(0xc6)](_0x1194cb=>{const _0x54a2c0=_0xe2852a;_0x5b81d1[_0x1194cb]=ValueUtil['getParams'](_0x5b81d1,..._0x1dcdbb[_0x1194cb][_0x54a2c0(0xe7)]('.'));}),_0x5b81d1;}async[a0_0x4b080f(0xe2)](_0x2ffa4c){const _0x217fce=a0_0x4b080f;let _0x58c8b3=ValueUtil[_0x217fce(0xc7)](this[_0x217fce(0xda)],_0x217fce(0xd3),_0x217fce(0xe9),_0x217fce(0xc0));return await MetaApi[_0x217fce(0xc2)](_0x2ffa4c,_0x58c8b3);}async[a0_0x4b080f(0xec)](_0x5eb0f0){const _0x182af5=a0_0x4b080f;let _0x1bc7ae=ValueUtil[_0x182af5(0xc7)](this[_0x182af5(0xda)],'mutation',_0x182af5(0xd0),_0x182af5(0xc0)),_0xa3c6cb=ValueUtil['getParams'](this[_0x182af5(0xda)],_0x182af5(0xd3),_0x182af5(0xd0),_0x182af5(0xd2));if(ValueUtil[_0x182af5(0xdb)](_0xa3c6cb)&&(_0xa3c6cb=_0xa3c6cb[_0x182af5(0xcb)](_0x4fe2f6=>_0x4fe2f6[_0x182af5(0xd1)]('.')?_0x4fe2f6['split']('.'):_0x4fe2f6),_0x5eb0f0=_0x5eb0f0[_0x182af5(0xcb)](_0xe6afc4=>(_0xa3c6cb[_0x182af5(0xc6)](_0x29086c=>{Array['isArray'](_0x29086c)?delete _0xe6afc4[_0x29086c[0x0]][_0x29086c[0x1]]:delete _0xe6afc4[_0x29086c];}),_0xe6afc4))),this[_0x182af5(0xe3)]&&ValueUtil[_0x182af5(0xdb)](this['parent_id'])){let _0x5731d6=ValueUtil[_0x182af5(0xc7)](this[_0x182af5(0xda)],'mutation',_0x182af5(0xd0),_0x182af5(0xbd));ValueUtil['isNotEmpty'](_0x5731d6)&&_0x5eb0f0[_0x182af5(0xc6)](_0x5e18bd=>{const _0x2dd3b2=_0x182af5;if(_0x5731d6[_0x2dd3b2(0xd1)]('.')){let _0x20d231=_0x5731d6[_0x2dd3b2(0xe7)]('.');_0x5e18bd[_0x20d231[0x0]]={},_0x5e18bd[_0x20d231[0x0]][_0x20d231[0x1]]=this[_0x2dd3b2(0xbd)];}else _0x5e18bd[_0x5731d6]=this['parent_id'];});}return await MetaApi[_0x182af5(0xec)](_0x1bc7ae,_0x5eb0f0);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2eea4c=a0_0x176b;(function(_0xa351fa,_0x5e34ed){const _0xc98fa7=a0_0x176b,_0x32089f=_0xa351fa();while(!![]){try{const _0x21276c=-parseInt(_0xc98fa7(0x1e6))/0x1*(-parseInt(_0xc98fa7(0x1f6))/0x2)+parseInt(_0xc98fa7(0x1ea))/0x3*(-parseInt(_0xc98fa7(0x1ec))/0x4)+parseInt(_0xc98fa7(0x1e4))/0x5*(parseInt(_0xc98fa7(0x1f0))/0x6)+-parseInt(_0xc98fa7(0x1e1))/0x7+parseInt(_0xc98fa7(0x1ed))/0x8*(parseInt(_0xc98fa7(0x1f4))/0x9)+parseInt(_0xc98fa7(0x1e2))/0xa*(-parseInt(_0xc98fa7(0x1eb))/0xb)+parseInt(_0xc98fa7(0x1f9))/0xc;if(_0x21276c===_0x5e34ed)break;else _0x32089f['push'](_0x32089f['shift']());}catch(_0x1ff219){_0x32089f['push'](_0x32089f['shift']());}}}(a0_0x49c2,0x29a63));import{MetaApi}from'../utils/meta-api';function a0_0x49c2(){const _0x30ab4a=['render','length','properties','getAndParseMenuMeta','1720306ECetLg','100BQGqcD','tabRenderConfig','15185QPbmVx','getContextObject','135693unikWD','keys','tab','clear','79899xTUBLY','251328giHddO','4QTssDu','117288ipjoEO','pageInitialized','tabElements','126doNRSP','connectedCallback','parseBasicTabConfigs','getBasicTabHtml','9MoBtSM','firstUpdated','2JHSXsG','currentTabKey','styles','5488020FJUrlZ'];a0_0x49c2=function(){return _0x30ab4a;};return a0_0x49c2();}function a0_0x176b(_0x1c627e,_0x294c9b){const _0x49c244=a0_0x49c2();return a0_0x176b=function(_0x176bf4,_0x280c65){_0x176bf4=_0x176bf4-0x1e0;let _0x2eb558=_0x49c244[_0x176bf4];return _0x2eb558;},a0_0x176b(_0x1c627e,_0x294c9b);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x14c053=>class extends MetaButtonMixin(_0x14c053){static get[a0_0x2eea4c(0x1f8)](){return MetaApi['getBasicTabStyles']();}static get[a0_0x2eea4c(0x1fc)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get['context'](){const _0x3fe015=a0_0x2eea4c;return MetaUiUtil[_0x3fe015(0x1e5)](this);}async[a0_0x2eea4c(0x1f1)](){const _0x50faf3=a0_0x2eea4c;this[_0x50faf3(0x1f7)]=void 0x0,await this[_0x50faf3(0x1e0)](),super[_0x50faf3(0x1f1)]&&await super[_0x50faf3(0x1f1)]();}async['firstUpdated'](){const _0x31264e=a0_0x2eea4c;super['firstUpdated']&&await super[_0x31264e(0x1f5)]();}async[a0_0x2eea4c(0x1ee)](){const _0x3a7696=a0_0x2eea4c;super[_0x3a7696(0x1ee)]&&await super[_0x3a7696(0x1ee)]();}[a0_0x2eea4c(0x1fa)](){const _0x4038d7=a0_0x2eea4c;return MetaApi[_0x4038d7(0x1f3)](this);}[a0_0x2eea4c(0x1f2)](_0x52c734){const _0x511b9f=a0_0x2eea4c;this[_0x511b9f(0x1e3)]=_0x52c734[_0x511b9f(0x1e8)],_0x52c734['button']=[];}async['clear'](){const _0xa9bfde=a0_0x2eea4c;if(this[_0xa9bfde(0x1ef)]){let _0x345262=Object[_0xa9bfde(0x1e7)](this[_0xa9bfde(0x1ef)]);for(var _0x5b3d7c=0x0;_0x5b3d7c<_0x345262[_0xa9bfde(0x1fb)];_0x5b3d7c++)await this['tabElements'][_0x345262[_0x5b3d7c]][_0xa9bfde(0x1e9)]();}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a0_0x4bc1(_0x2227b3,_0x2c24ff){var _0x294422=a0_0x2944();return a0_0x4bc1=function(_0x4bc1fd,_0x541079){_0x4bc1fd=_0x4bc1fd-0xeb;var _0x341080=_0x294422[_0x4bc1fd];return _0x341080;},a0_0x4bc1(_0x2227b3,_0x2c24ff);}var a0_0x1633ef=a0_0x4bc1;(function(_0x18620b,_0x5dd821){var _0x155a43=a0_0x4bc1,_0x5caeea=_0x18620b();while(!![]){try{var _0x56447b=parseInt(_0x155a43(0xf6))/0x1*(parseInt(_0x155a43(0xf1))/0x2)+parseInt(_0x155a43(0xef))/0x3*(parseInt(_0x155a43(0xed))/0x4)+parseInt(_0x155a43(0xf7))/0x5*(parseInt(_0x155a43(0xf2))/0x6)+-parseInt(_0x155a43(0xf3))/0x7*(parseInt(_0x155a43(0xf4))/0x8)+parseInt(_0x155a43(0xeb))/0x9+-parseInt(_0x155a43(0xf5))/0xa+-parseInt(_0x155a43(0xee))/0xb;if(_0x56447b===_0x5dd821)break;else _0x5caeea['push'](_0x5caeea['shift']());}catch(_0x1e1a23){_0x5caeea['push'](_0x5caeea['shift']());}}}(a0_0x2944,0x43fc5));import{LitElement}from'lit';import{i18next,localize}from'@operato/i18n';function a0_0x2944(){var _0x369d78=['7uYBXfo','1087976XyEYDy','2284960QqpkXy','258073bzHLUl','159910YErEUr','3407733rAWlik','define','3092dvlQgi','3751143fSsxrP','603WfrgBY','meta-activity-viewer-element','2WYpWDS','36SJLDga'];a0_0x2944=function(){return _0x369d78;};return a0_0x2944();}import{MetaBasicGristMixin}from'./../../mixin/meta-basic-grist-mixin';export class MetaActivityViewerElement extends MetaBasicGristMixin(localize(i18next)(LitElement)){}customElements[a0_0x1633ef(0xec)](a0_0x1633ef(0xf0),MetaActivityViewerElement);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const a0_0x37b2b0=a0_0x438c;(function(_0x3dadb9,_0x806614){const _0x265be1=a0_0x438c,_0x2c90b6=_0x3dadb9();while(!![]){try{const _0x322f09=-parseInt(_0x265be1(0x122))/0x1*(parseInt(_0x265be1(0x125))/0x2)+parseInt(_0x265be1(0x111))/0x3*(parseInt(_0x265be1(0x124))/0x4)+parseInt(_0x265be1(0x110))/0x5+-parseInt(_0x265be1(0x119))/0x6*(parseInt(_0x265be1(0x115))/0x7)+-parseInt(_0x265be1(0x116))/0x8*(parseInt(_0x265be1(0x117))/0x9)+-parseInt(_0x265be1(0x126))/0xa+parseInt(_0x265be1(0x11f))/0xb;if(_0x322f09===_0x806614)break;else _0x2c90b6['push'](_0x2c90b6['shift']());}catch(_0x194e3b){_0x2c90b6['push'](_0x2c90b6['shift']());}}}(a0_0x4a80,0xdc84f));import a0_0x35e14d from'graphql-tag';import{css,LitElement}from'lit';function a0_0x4a80(){const _0x4e2d38=['menu_routing','log','259tlQCgY','11392tHycCd','6660GAKVpN','activity','10074aeraQW','connectedCallback','forEach','query','findMenuMetaByRouting','input','19743636ZBwcJS','getActivity','getMenuInfo','86fRqASQ','output','739744pqLQAA','13894vhImuq','6021510FEjPZh','properties','model','menuRouting','646475LHhpWN','21YCAJnA','activityId'];a0_0x4a80=function(){return _0x4e2d38;};return a0_0x4a80();}import{client}from'@operato/graphql';import{i18next,localize}from'@operato/i18n';function a0_0x438c(_0x638d26,_0x598616){const _0x4a808b=a0_0x4a80();return a0_0x438c=function(_0x438cb0,_0x335018){_0x438cb0=_0x438cb0-0x10e;let _0x37ea82=_0x4a808b[_0x438cb0];return _0x37ea82;},a0_0x438c(_0x638d26,_0x598616);}import{MetaUiUtil}from'./../../utils/meta-ui-util';export class MetaActivityWriterElement extends localize(i18next)(LitElement){static get[a0_0x37b2b0(0x127)](){return{'activityId':String,'input':Object,'output':Object};}async[a0_0x37b2b0(0x11a)](){const _0x1b43f1=a0_0x37b2b0;console[_0x1b43f1(0x114)](_0x1b43f1(0x112),this[_0x1b43f1(0x112)]),console[_0x1b43f1(0x114)]('input',this[_0x1b43f1(0x11e)]),console['log'](_0x1b43f1(0x123),this[_0x1b43f1(0x123)]),await this[_0x1b43f1(0x120)]();}async[a0_0x37b2b0(0x120)](){const _0x28dd59=a0_0x37b2b0,_0x41e6a3=await client[_0x28dd59(0x11c)]({'query':a0_0x35e14d`
|
|
2
|
+
query activity($id: String!) {
|
|
3
|
+
activity(id: $id) {
|
|
4
|
+
id
|
|
5
|
+
model {
|
|
6
|
+
name
|
|
7
|
+
description
|
|
8
|
+
active
|
|
9
|
+
tag
|
|
10
|
+
inout
|
|
11
|
+
type
|
|
12
|
+
unit
|
|
13
|
+
options
|
|
14
|
+
quantifier
|
|
15
|
+
spec
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`,'variables':{'id':this[_0x28dd59(0x112)]}});this['activity']=_0x41e6a3['data'][_0x28dd59(0x118)];let _0x2bc0c0='';this[_0x28dd59(0x118)][_0x28dd59(0x10e)]?.[_0x28dd59(0x11b)](_0x4e5ba2=>{const _0x8ff361=_0x28dd59;_0x8ff361(0x113)==_0x4e5ba2['name']&&(_0x2bc0c0=_0x4e5ba2['description']);}),this[_0x28dd59(0x10f)]=_0x2bc0c0,await this[_0x28dd59(0x121)](_0x2bc0c0);}async['getMenuInfo'](_0x5a93f4){const _0x2e20cd=a0_0x37b2b0;let _0x479d93=await MetaUiUtil[_0x2e20cd(0x11d)](_0x5a93f4);console[_0x2e20cd(0x114)](_0x479d93);}}customElements['define']('meta-activity-writer-element',MetaActivityWriterElement);
|