@things-factory/meta-ui 5.0.11 → 5.0.15
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/assets/images/loading-page.png +0 -0
- package/client/actions/main.js +1 -1
- package/client/bootstrap.js +62 -12
- package/client/index.js +10 -17
- package/client/mixin/meta-base-mixin.js +1 -0
- package/client/mixin/meta-basic-form-mixin.js +4 -0
- package/client/mixin/meta-basic-grist-mixin.js +4 -0
- package/client/mixin/meta-button-mixin.js +1 -0
- package/client/mixin/meta-service-mixin.js +1 -0
- package/client/pages/loading-page.js +51 -0
- package/client/pages/menu/dynamic-menu-template.js +10 -64
- package/client/pages/menu/dynamic-menu.js +25 -387
- package/client/pages/meta-form-element.js +1 -0
- package/client/pages/meta-grist-element.js +1 -0
- package/client/pages/meta-grist-page.js +1 -0
- package/client/pages/terms/config-terminology.js +9 -360
- package/client/reducers/main.js +1 -17
- package/client/route.js +6 -22
- package/client/utils/meta-api.js +1 -0
- package/client/utils/meta-crypto.js +1 -0
- package/client/utils/meta-ui-util.js +213 -0
- package/client/utils/service-util.js +35 -0
- package/client/utils/terms-util.js +2 -177
- package/client/utils/ui-util.js +1 -0
- package/client/utils/value-util.js +1 -42
- package/dist-server/constants/error-code.js +1 -0
- package/dist-server/constants/error-code.js.map +1 -0
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/errors/index.js +18 -0
- package/dist-server/errors/index.js.map +1 -0
- package/dist-server/errors/license-error.js +1 -0
- package/dist-server/errors/license-error.js.map +1 -0
- package/dist-server/index.js +17 -3
- package/dist-server/index.js.map +1 -1
- package/dist-server/middlewares/index.js +6 -1
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/routes.js +1 -25
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/index.js +16 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/meta-secret/index.js +6 -0
- package/dist-server/service/meta-secret/index.js.map +1 -0
- package/dist-server/service/meta-secret/meta-resolver.js +1 -0
- package/dist-server/service/meta-secret/meta-resolver.js.map +1 -0
- package/package.json +9 -7
- package/translations/en.json +16 -6
- package/translations/ko.json +11 -0
- package/translations/ms.json +10 -0
- package/translations/zh.json +10 -0
- package/client/utils/meta-util.js +0 -773
- package/dist-server/tsconfig.tsbuildinfo +0 -1
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +0 -4
- package/server/middlewares/index.ts +0 -3
- package/server/migrations/index.ts +0 -9
- package/server/routes.ts +0 -28
|
Binary file
|
package/client/actions/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x5f11f7=a0_0x35ad;function a0_0x35ad(_0x27101c,_0x45038b){const _0x671f6c=a0_0x671f();return a0_0x35ad=function(_0x35ada1,_0x4704e0){_0x35ada1=_0x35ada1-0x154;let _0xc797f4=_0x671f6c[_0x35ada1];return _0xc797f4;},a0_0x35ad(_0x27101c,_0x45038b);}function a0_0x671f(){const _0x39a642=['UPDATE_META_UI','7uDEGVF','55910XlFZcU','5259360ALeoEK','3122238VinQJN','18pyHdAM','5052RrTZLx','4OKYDTa','3399087qIkdAA','2vcIRBS','10855MTKFEI','427604iWcciE','154wRFtOo','5945384vTkixC'];a0_0x671f=function(){return _0x39a642;};return a0_0x671f();}(function(_0x5520af,_0x3da6f3){const _0x3f1e01=a0_0x35ad,_0x311cc2=_0x5520af();while(!![]){try{const _0x7692cc=parseInt(_0x3f1e01(0x155))/0x1*(-parseInt(_0x3f1e01(0x157))/0x2)+parseInt(_0x3f1e01(0x154))/0x3+-parseInt(_0x3f1e01(0x161))/0x4*(parseInt(_0x3f1e01(0x15d))/0x5)+-parseInt(_0x3f1e01(0x15e))/0x6*(parseInt(_0x3f1e01(0x15b))/0x7)+parseInt(_0x3f1e01(0x159))/0x8*(parseInt(_0x3f1e01(0x15f))/0x9)+parseInt(_0x3f1e01(0x15c))/0xa*(-parseInt(_0x3f1e01(0x158))/0xb)+-parseInt(_0x3f1e01(0x160))/0xc*(-parseInt(_0x3f1e01(0x156))/0xd);if(_0x7692cc===_0x3da6f3)break;else _0x311cc2['push'](_0x311cc2['shift']());}catch(_0x46e68c){_0x311cc2['push'](_0x311cc2['shift']());}}}(a0_0x671f,0xd9f73));export const UPDATE_META_UI=a0_0x5f11f7(0x15a);
|
package/client/bootstrap.js
CHANGED
|
@@ -5,19 +5,26 @@ import { ADD_MORENDA } from '@things-factory/more-base'
|
|
|
5
5
|
import { navigate, store } from '@things-factory/shell'
|
|
6
6
|
import { navigateWithSilence, UPDATE_MODULES } from '@operato/shell'
|
|
7
7
|
import { updateMenuTemplate } from '@things-factory/lite-menu'
|
|
8
|
+
import metaUI from './reducers/main'
|
|
8
9
|
|
|
9
10
|
import { TermsUtil } from './utils/terms-util'
|
|
10
|
-
import {
|
|
11
|
+
import { MetaApi } from './utils/meta-api'
|
|
11
12
|
|
|
12
13
|
export default function bootstrap() {
|
|
14
|
+
store.addReducers({
|
|
15
|
+
metaUI
|
|
16
|
+
})
|
|
17
|
+
|
|
13
18
|
|
|
14
19
|
auth.on('profile', async ({ credential, domains, domain }) => {
|
|
15
20
|
// 1. 용어 다운로드
|
|
16
|
-
let locale =
|
|
21
|
+
let locale = MetaApi.currentLocale();
|
|
22
|
+
if (locale == 'ko') locale = 'ko-KR';
|
|
23
|
+
|
|
17
24
|
await TermsUtil.downloadTerminologies(locale);
|
|
18
25
|
|
|
19
26
|
// 2. 메뉴 정보를 서버로 부터 받아서 적용
|
|
20
|
-
let menuRoutes = await
|
|
27
|
+
let menuRoutes = await MetaApi.myDynamicMenus();
|
|
21
28
|
let realMenus = menuRoutes.menus;
|
|
22
29
|
updateMenuTemplate(realMenus);
|
|
23
30
|
|
|
@@ -25,8 +32,8 @@ export default function bootstrap() {
|
|
|
25
32
|
store.dispatch({
|
|
26
33
|
type: ADD_MORENDA,
|
|
27
34
|
morenda: {
|
|
28
|
-
icon: html
|
|
29
|
-
name: html
|
|
35
|
+
icon: html`<mwc-icon>menu</mwc-icon>`,
|
|
36
|
+
name: html`<ox-i18n msgid="title.dynamic_menu"></ox-i18n>`,
|
|
30
37
|
action: () => {
|
|
31
38
|
navigate('dynamic-menu')
|
|
32
39
|
}
|
|
@@ -43,8 +50,8 @@ export default function bootstrap() {
|
|
|
43
50
|
navigate('config-terminology')
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
|
-
})
|
|
47
|
-
|
|
53
|
+
})
|
|
54
|
+
|
|
48
55
|
// 5. 모든 routes 정보 추출
|
|
49
56
|
let allRoutes = menuRoutes.routes;
|
|
50
57
|
|
|
@@ -66,17 +73,18 @@ export default function bootstrap() {
|
|
|
66
73
|
// 9. meta-ui의 routes 정보 교체
|
|
67
74
|
let metaUiRoutes = allRoutes.filter(r => {
|
|
68
75
|
let isMetaUiRoute = r.template && r.template.startsWith('@things-factory/meta-ui');
|
|
69
|
-
if(isMetaUiRoute) {
|
|
70
|
-
r.template = r.template.replace('@things-factory/meta-ui/client', '.')
|
|
76
|
+
if (isMetaUiRoute) {
|
|
77
|
+
r.template = r.template.replace('@things-factory/meta-ui/client', '.')
|
|
71
78
|
}
|
|
72
|
-
|
|
79
|
+
|
|
73
80
|
return isMetaUiRoute;
|
|
74
81
|
})
|
|
75
82
|
|
|
76
83
|
this.routes.forEach(r => {
|
|
77
|
-
metaUiRoutes.push({ page
|
|
84
|
+
metaUiRoutes.push({ page: r.page, tagname: r.tagname })
|
|
78
85
|
});
|
|
79
86
|
metaUiModule.routes = metaUiRoutes;
|
|
87
|
+
metaUiModule.route = metaUiRoute;
|
|
80
88
|
|
|
81
89
|
// 10. store에 모듈 업데이트
|
|
82
90
|
store.dispatch({
|
|
@@ -85,7 +93,49 @@ export default function bootstrap() {
|
|
|
85
93
|
})
|
|
86
94
|
|
|
87
95
|
// 11. 첫 페이지를 리로딩 처리 (shell/app.js에서 리로딩 처리시에는 라우팅 정보가 없어서 처리를 못하므로 여기서 다시 한번 해줌...)
|
|
88
|
-
// TODO 먼저 PAGE_NOT_FOUND 화면이 나온 후에 화면이 나오는 부분 처리 필요 ...
|
|
89
96
|
store.dispatch(navigateWithSilence(location))
|
|
90
97
|
})
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @description MetaUI 라우팅 처리 로직
|
|
102
|
+
***********************************
|
|
103
|
+
* @param {*} page
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
function metaUiRoute(page) {
|
|
107
|
+
if (page == 'dynamic-menu') {
|
|
108
|
+
import('./pages/menu/dynamic-menu')
|
|
109
|
+
return page
|
|
110
|
+
|
|
111
|
+
} else if (page == 'config-terminology') {
|
|
112
|
+
import('./pages/terms/config-terminology')
|
|
113
|
+
return page
|
|
114
|
+
|
|
115
|
+
} else if (page == 'loading-page') {
|
|
116
|
+
import('./pages/loading-page')
|
|
117
|
+
return page
|
|
118
|
+
|
|
119
|
+
} else {
|
|
120
|
+
let storage = store.getState();
|
|
121
|
+
|
|
122
|
+
if (storage && storage.app && storage.app.modules) {
|
|
123
|
+
let modules = storage.app.modules;
|
|
124
|
+
let metaUiMod = modules.find(m => {
|
|
125
|
+
return m.name == '@things-factory/meta-ui'
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
if (metaUiMod && metaUiMod.routes) {
|
|
129
|
+
let metaUiRoutes = metaUiMod.routes;
|
|
130
|
+
let metaRoute = metaUiRoutes.find(mapping => mapping.page == page)
|
|
131
|
+
|
|
132
|
+
if (metaRoute) {
|
|
133
|
+
import(`${metaRoute.template}`)
|
|
134
|
+
return page
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return '';
|
|
140
|
+
}
|
|
91
141
|
}
|
package/client/index.js
CHANGED
|
@@ -2,26 +2,19 @@ export * from './actions/main'
|
|
|
2
2
|
|
|
3
3
|
/** Utilities **/
|
|
4
4
|
export * from './utils/terms-util'
|
|
5
|
-
export * from './utils/meta-util'
|
|
6
5
|
export * from './utils/value-util'
|
|
6
|
+
export * from './utils/ui-util'
|
|
7
|
+
export * from './utils/meta-ui-util'
|
|
8
|
+
export * from './utils/meta-api'
|
|
7
9
|
|
|
8
10
|
/** Mix In **/
|
|
9
|
-
export * from './mixin/
|
|
10
|
-
export * from './mixin/
|
|
11
|
-
export * from './mixin/
|
|
12
|
-
export * from './mixin/
|
|
13
|
-
export * from './mixin/handler-grist-button-mixin'
|
|
14
|
-
|
|
15
|
-
export * from './mixin/meta-set-mixin'
|
|
16
|
-
export * from './mixin/meta-util-mixin'
|
|
17
|
-
export * from './mixin/render-basic-form-mixin'
|
|
18
|
-
export * from './mixin/render-basic-grist-mixin'
|
|
19
|
-
export * from './mixin/render-button-mixin'
|
|
20
|
-
export * from './mixin/render-grist-mixin'
|
|
21
|
-
export * from './mixin/render-search-mixin'
|
|
11
|
+
export * from './mixin/meta-base-mixin'
|
|
12
|
+
export * from './mixin/meta-service-mixin'
|
|
13
|
+
export * from './mixin/meta-button-mixin'
|
|
14
|
+
export * from './mixin/meta-basic-grist-mixin'
|
|
22
15
|
|
|
23
16
|
/** Page **/
|
|
24
|
-
export * from './pages/
|
|
17
|
+
export * from './pages/meta-grist-page'
|
|
25
18
|
|
|
26
|
-
export * from './pages/
|
|
27
|
-
export * from './pages/
|
|
19
|
+
export * from './pages/meta-grist-element'
|
|
20
|
+
export * from './pages/meta-form-element'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x3b7b29=a0_0x54e1;(function(_0x217990,_0x3cf2cb){const _0x20177e=a0_0x54e1,_0x1afc76=_0x217990();while(!![]){try{const _0x3abb52=parseInt(_0x20177e(0x105))/0x1+-parseInt(_0x20177e(0xf6))/0x2*(-parseInt(_0x20177e(0xff))/0x3)+parseInt(_0x20177e(0x115))/0x4+parseInt(_0x20177e(0xf4))/0x5*(parseInt(_0x20177e(0x103))/0x6)+parseInt(_0x20177e(0x104))/0x7*(-parseInt(_0x20177e(0xf9))/0x8)+-parseInt(_0x20177e(0xfc))/0x9+-parseInt(_0x20177e(0x10d))/0xa;if(_0x3abb52===_0x3cf2cb)break;else _0x1afc76['push'](_0x1afc76['shift']());}catch(_0x491584){_0x1afc76['push'](_0x1afc76['shift']());}}}(a0_0x4059,0x9dc30));function a0_0x4059(){const _0x172963=['menu','parseBasicServiceConfigs','is_popup','isPage','isDetail','parseBasicGridConfigs','13138610KtCtuf','after','isNotEmpty','grist','fetchHandler','callScenario','title_detail','split','3935088ItisLV','isElement','isEmpty','getParams','is_detail','20KIqgTr','parseBasicFormConfigs','2501558UAEWzy','errors','getMenuMeta','8tSfBTj','properties','openDynamicPopup','8971191akAFVu','tTitle','name','3IEEBYD','fetch','excuteOpenPopupButtonClick','parseBasicButtonConfigs','484914tTebLE','1029427CpIkrU','546086YfzOoe','title'];a0_0x4059=function(){return _0x172963;};return a0_0x4059();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x54e1(_0x2a490a,_0x344988){const _0x4059ab=a0_0x4059();return a0_0x54e1=function(_0x54e1fc,_0x3f9bea){_0x54e1fc=_0x54e1fc-0xf2;let _0xe432e9=_0x4059ab[_0x54e1fc];return _0xe432e9;},a0_0x54e1(_0x2a490a,_0x344988);}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x4552e6=>class extends _0x4552e6{static get[a0_0x3b7b29(0xfa)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x45aa17=>Boolean(_0x45aa17)},'is_popup':{'type':Boolean,'converter':_0x145dc4=>Boolean(_0x145dc4)}};}get[a0_0x3b7b29(0x116)](){const _0x513672=a0_0x3b7b29;return!0x0===this['is_detail']||!0x0===this[_0x513672(0x109)];}get[a0_0x3b7b29(0x10b)](){const _0x4420f7=a0_0x3b7b29;return!ValueUtil[_0x4420f7(0x117)](this[_0x4420f7(0xf3)])&&this[_0x4420f7(0xf3)];}get['isPopup'](){const _0x3c5545=a0_0x3b7b29;return!ValueUtil['isEmpty'](this[_0x3c5545(0x109)])&&this[_0x3c5545(0x109)];}get[a0_0x3b7b29(0x10a)](){return!this['is_detail']&&!this['is_popup'];}async['getAndParseMenuMeta'](){const _0x3ab01e=a0_0x3b7b29;let _0xcd24c8=await MetaApi[_0x3ab01e(0xf8)](this);_0xcd24c8&&(this['menuInfo']=_0xcd24c8[_0x3ab01e(0x107)],this[_0x3ab01e(0x10c)]&&this[_0x3ab01e(0x10c)](_0xcd24c8),this[_0x3ab01e(0x108)]&&this['parseBasicServiceConfigs'](_0xcd24c8),this[_0x3ab01e(0xf5)]&&this[_0x3ab01e(0xf5)](_0xcd24c8),this['parseBasicButtonConfigs']&&this[_0x3ab01e(0x102)](_0xcd24c8));}async[a0_0x3b7b29(0x100)](){const _0x5f0e92=a0_0x3b7b29;ValueUtil[_0x5f0e92(0x10f)](this[_0x5f0e92(0x110)])?this[_0x5f0e92(0x110)][_0x5f0e92(0x100)]():(ValueUtil[_0x5f0e92(0x10f)](this['filterForm'])||this[_0x5f0e92(0x111)])&&await this[_0x5f0e92(0x111)]();}async[a0_0x3b7b29(0x101)](_0x38e5f2,_0x361a35,_0x2e59cf){const _0xbfb348=a0_0x3b7b29;let _0x59b722=TermsUtil[_0xbfb348(0xfd)](_0x38e5f2[_0xbfb348(0x106)]);ValueUtil['isNotEmpty'](_0x38e5f2[_0xbfb348(0x113)])&&(_0x59b722=_0x59b722+'-'+ValueUtil[_0xbfb348(0xf2)](_0x361a35,..._0x38e5f2[_0xbfb348(0x113)][_0xbfb348(0x114)]('.'))),MetaApi[_0xbfb348(0xfb)](_0x59b722,_0x38e5f2,_0x361a35,_0x2e59cf);}async['executeCallScenarioButtonClick'](_0x376195,_0x53c126,_0x4fd12d){const _0x44744c=a0_0x3b7b29;let _0x3b9e8e=await MetaApi[_0x44744c(0x112)](_0x376195[_0x44744c(0xfe)],_0x376195[_0x44744c(0xfe)],_0x53c126);!0x1!==_0x3b9e8e&&!_0x3b9e8e[_0x44744c(0xf7)]&&ValueUtil[_0x44744c(0x10f)](_0x376195[_0x44744c(0x10e)])&&_0x4fd12d();}};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const a0_0x205010=a0_0x2ec6;(function(_0x230aa5,_0x17cf4b){const _0x21cbf7=a0_0x2ec6,_0x307b69=_0x230aa5();while(!![]){try{const _0x67a47=parseInt(_0x21cbf7(0xc6))/0x1*(-parseInt(_0x21cbf7(0xa6))/0x2)+parseInt(_0x21cbf7(0x98))/0x3+parseInt(_0x21cbf7(0xb5))/0x4+-parseInt(_0x21cbf7(0xb1))/0x5*(parseInt(_0x21cbf7(0x89))/0x6)+parseInt(_0x21cbf7(0x92))/0x7*(-parseInt(_0x21cbf7(0x90))/0x8)+parseInt(_0x21cbf7(0x9d))/0x9*(-parseInt(_0x21cbf7(0xa0))/0xa)+parseInt(_0x21cbf7(0x8c))/0xb;if(_0x67a47===_0x17cf4b)break;else _0x307b69['push'](_0x307b69['shift']());}catch(_0x460a26){_0x307b69['push'](_0x307b69['shift']());}}}(a0_0x20be,0x5fa96));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';function a0_0x2ec6(_0x1d753c,_0x9099ee){const _0x20bea9=a0_0x20be();return a0_0x2ec6=function(_0x2ec6c8,_0x3543e4){_0x2ec6c8=_0x2ec6c8-0x88;let _0x5a144f=_0x20bea9[_0x2ec6c8];return _0x5a144f;},a0_0x2ec6(_0x1d753c,_0x9099ee);}function a0_0x20be(){const _0x175b49=['formBodyId','save','querySelector','context','__origin__','record','forEach','styles','detail','validation','getBasicFormHtml','search','connectedCallback','65784nJUUZU','call','872778FOUTpC','render','formConfigSet','12928223hfrcpu','firstUpdated','getBasicFormStyles','renderRoot','570824hBtHBe','text.NOTHING_CHANGED','14ESVRix','findOne','isEmpty','button','contextPath','name','771012PIYEXh','isPage','__dirtyfields__','attributeChangedCallback','parent_id','1193832HyJpUU','fetch','after','40xjmMUp','field-change','form_column','updateMultiple','context-path','pageInitialized','8vZSqvX','getContextObject','getAndParseMenuMeta','grid_column','parseFormConfigs','__seq__','formColumnConfig','isElement','ox-record-view-body','addEventListener','function','5drYixp','isEquals','properties','isNotEmpty','165720FjPENH','__dirty__','viewBody','keys'];a0_0x20be=function(){return _0x175b49;};return a0_0x20be();}import{MetaButtonMixin}from'./meta-button-mixin';import{ServiceUtil}from'../utils/service-util';export const MetaBasicFormMixin=_0x586d04=>class extends MetaButtonMixin(_0x586d04){static get[a0_0x205010(0xc0)](){const _0x3f45f5=a0_0x205010;return MetaApi[_0x3f45f5(0x8e)]();}static get[a0_0x205010(0xb3)](){return{'formBodyId':String,'formColumnConfig':Array,'formConfigSet':Object};}get[a0_0x205010(0xb7)](){const _0x55481e=a0_0x205010;return this[_0x55481e(0x8f)][_0x55481e(0xbb)](this[_0x55481e(0xb9)]);}get[a0_0x205010(0xbc)](){const _0x6f9635=a0_0x205010;return MetaUiUtil[_0x6f9635(0xa7)](this);}async[a0_0x205010(0xc5)](){const _0x10813b=a0_0x205010;await this[_0x10813b(0xa8)](),this[_0x10813b(0xad)]&&await this[_0x10813b(0xaa)](),this[_0x10813b(0xaf)](_0x10813b(0xa1),_0x55ef3a=>{const _0x539638=_0x10813b;var {after:_0x2e82a8,before:_0x37f886,column:_0x5b7b0c,record:_0x2638fa,row:_0x195da2}=_0x55ef3a[_0x539638(0xc1)];if(ValueUtil[_0x539638(0xb2)](_0x2e82a8,_0x37f886))return;var _0x588a8f=_0x5b7b0c[_0x539638(0xc2)];if(_0x588a8f&&_0x539638(0xb0)==typeof _0x588a8f&&!_0x588a8f[_0x539638(0x88)](this,_0x2e82a8,_0x37f886,_0x2638fa,_0x5b7b0c))return;let _0x4e093a=_0x5b7b0c[_0x539638(0x97)];_0x2638fa[_0x4e093a]=_0x2e82a8,_0x2638fa[_0x539638(0x9a)]=_0x2638fa['__dirtyfields__']||{},_0x2638fa[_0x539638(0x9a)][_0x4e093a]={'before':_0x2638fa[_0x539638(0xbd)][_0x4e093a],'after':_0x2638fa[_0x4e093a]},ValueUtil[_0x539638(0xb2)](_0x2638fa[_0x539638(0x9a)][_0x4e093a]['before'],_0x2638fa[_0x539638(0x9a)][_0x4e093a]['after'])&&delete _0x2638fa[_0x539638(0x9a)][_0x4e093a],ValueUtil[_0x539638(0xb4)](_0x2638fa[_0x539638(0x9a)])?_0x2638fa['__dirty__']='M':_0x2638fa[_0x539638(0xb6)]='',this[_0x539638(0xb7)][_0x539638(0xbe)]={..._0x2638fa};}),super['connectedCallback']&&await super[_0x10813b(0xc5)](),this['isElement']&&await this[_0x10813b(0x9e)]();}async[a0_0x205010(0x8d)](){const _0x8ee576=a0_0x205010;super[_0x8ee576(0x8d)]&&await super[_0x8ee576(0x8d)]();}async['pageInitialized'](){const _0x26c713=a0_0x205010;this[_0x26c713(0x99)]&&await this[_0x26c713(0xaa)](),super[_0x26c713(0xa5)]&&await super[_0x26c713(0xa5)](),this[_0x26c713(0x99)]&&await this['fetch']();}[a0_0x205010(0x8a)](){const _0x5f40e2=a0_0x205010;return html`
|
|
2
|
+
${MetaApi[_0x5f40e2(0xc3)](this)}
|
|
3
|
+
${this[_0x5f40e2(0x99)]?html``:MetaUiUtil['getButtonContainer'](this)}
|
|
4
|
+
`;}[a0_0x205010(0x9b)](_0x5c873c,_0xb86b72,_0x38998e){const _0x3f92c6=a0_0x205010;if(super['attributeChangedCallback'](_0x5c873c,_0xb86b72,_0x38998e),_0x3f92c6(0xa4)===_0x5c873c&&!0x0===this['active']&&ValueUtil[_0x3f92c6(0xb4)](this[_0x3f92c6(0x96)])){const _0x2f7794=new URLSearchParams(window['location'][_0x3f92c6(0xc4)]);ValueUtil['isNotEmpty'](_0x2f7794)&&(_0x2f7794[_0x3f92c6(0xbf)]((_0x9fff82,_0x53b669)=>{MetaApi['setSearchFormEditorValue'](_0x53b669,_0x9fff82);}),this[_0x3f92c6(0x9e)]());}}['parseBasicFormConfigs'](_0x1fa93d){const _0x2f8784=a0_0x205010;this[_0x2f8784(0xb9)]=_0x2f8784(0xae),this[_0x2f8784(0xac)]=_0x1fa93d[_0x2f8784(0xa2)],ValueUtil[_0x2f8784(0x94)](this[_0x2f8784(0xac)])&&(this[_0x2f8784(0xac)]=_0x1fa93d[_0x2f8784(0xa9)]),_0x1fa93d['button']=_0x1fa93d[_0x2f8784(0x95)]['filter'](_0x148c8a=>'save'==_0x148c8a[_0x2f8784(0x97)]);}async[a0_0x205010(0xaa)](){const _0x204ce3=a0_0x205010;this[_0x204ce3(0x8b)]=await MetaApi['parseFormConfigSet'](this);}async[a0_0x205010(0x9e)](){const _0x24001b=a0_0x205010;if(ValueUtil[_0x24001b(0x94)](this[_0x24001b(0x9c)]))return;let _0x5e09ab=await this[_0x24001b(0x93)](this[_0x24001b(0x9c)]);_0x5e09ab[_0x24001b(0xab)]=0x1;let _0x5a5e89={};Object['assign'](_0x5a5e89,_0x5e09ab),_0x5e09ab[_0x24001b(0xbd)]=_0x5a5e89,this[_0x24001b(0xb7)][_0x24001b(0xbe)]={..._0x5e09ab};}async[a0_0x205010(0xba)](){const _0x1deac6=a0_0x205010;let _0x55a7a2=this[_0x1deac6(0xb7)]['record'];if(ValueUtil[_0x1deac6(0x94)](_0x55a7a2[_0x1deac6(0xb6)]))return void MetaApi['showAlertPopup']('title.info',_0x1deac6(0x91));let _0x3f6774=_0x55a7a2[_0x1deac6(0x9a)],_0x283c6b={};ValueUtil[_0x1deac6(0xb4)](_0x55a7a2['id'])&&(_0x283c6b['id']=_0x55a7a2['id']),Object[_0x1deac6(0xb8)](_0x3f6774)[_0x1deac6(0xbf)](_0x5972c6=>{const _0x4ef0ea=_0x1deac6;_0x283c6b[_0x5972c6]=_0x3f6774[_0x5972c6][_0x4ef0ea(0x9f)];});let _0x548773=[{..._0x283c6b,'cuFlag':_0x55a7a2[_0x1deac6(0xb6)]}];return await this[_0x1deac6(0xa3)](_0x548773)&&await this[_0x1deac6(0x9e)](),!0x0;}};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const a0_0x330eb6=a0_0x3f21;(function(_0x43c1c4,_0x2b3ef2){const _0x10dfed=a0_0x3f21,_0x386c0c=_0x43c1c4();while(!![]){try{const _0x1235ae=-parseInt(_0x10dfed(0x139))/0x1+parseInt(_0x10dfed(0x149))/0x2*(-parseInt(_0x10dfed(0x11e))/0x3)+parseInt(_0x10dfed(0x141))/0x4+-parseInt(_0x10dfed(0x147))/0x5+parseInt(_0x10dfed(0x11f))/0x6+parseInt(_0x10dfed(0x143))/0x7+-parseInt(_0x10dfed(0x122))/0x8;if(_0x1235ae===_0x2b3ef2)break;else _0x386c0c['push'](_0x386c0c['shift']());}catch(_0x10fa57){_0x386c0c['push'](_0x386c0c['shift']());}}}(a0_0x4fa5,0xb014d));import{html}from'lit';function a0_0x4fa5(){const _0x56c171=['render','getBasicGristStyles','isNotEmpty','105826tdGpFo','grid_column','delete','getBasicGristHtml','parseGristConfigs','patchesForUpdateMultiple','filterForm','parseGridConfigSet','5550844VYwidP','exportableData','7717206UJckbX','isPage','gridConfig','connectedCallback','1273215sznQBD','save','2lOrVDk','getContextObject','setSearchFormEditorValue','updateMultiple','context','search','attributeChangedCallback','context-path','menuInfo','searchConfig','pageInitialized','parseBasicGridConfigs','ox-filters-form','1758573EUqbLm','5382198CZOhHu','properties','deleteByIds','13754504MmpOpn','find','gristId','firstUpdated','getSelectedIdList','gristConfigSet','tTitle','grist','renderRoot','location','getButtonContainer','getParams','filterFormId','active','export','fetch','getAndParseMenuMeta','forEach','grid','isElement'];a0_0x4fa5=function(){return _0x56c171;};return a0_0x4fa5();}import{MetaApi}from'../utils/meta-api';function a0_0x3f21(_0x706fd9,_0x55e099){const _0x4fa540=a0_0x4fa5();return a0_0x3f21=function(_0x3f2134,_0x2662e9){_0x3f2134=_0x3f2134-0x118;let _0x4d3369=_0x4fa540[_0x3f2134];return _0x4d3369;},a0_0x3f21(_0x706fd9,_0x55e099);}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=_0x10ad86=>class extends MetaButtonMixin(_0x10ad86){static get['styles'](){const _0x123f0c=a0_0x3f21;return MetaApi[_0x123f0c(0x137)]();}static get[a0_0x330eb6(0x120)](){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 _0x3eb28b=a0_0x330eb6;return this[_0x3eb28b(0x12a)]['querySelector'](this[_0x3eb28b(0x124)]);}get[a0_0x330eb6(0x13f)](){const _0x26e7f3=a0_0x330eb6;return this['shadowRoot']?.['querySelector'](this[_0x26e7f3(0x12e)]);}get[a0_0x330eb6(0x14d)](){const _0x43f457=a0_0x330eb6;return MetaUiUtil[_0x43f457(0x14a)](this);}async[a0_0x330eb6(0x146)](){const _0x587567=a0_0x330eb6;this['gristId']='ox-grist',this[_0x587567(0x12e)]=_0x587567(0x11d),await this[_0x587567(0x132)](),this[_0x587567(0x135)]&&await this['parseGristConfigs'](),super[_0x587567(0x146)]&&await super[_0x587567(0x146)]();}async['firstUpdated'](){const _0xf42824=a0_0x330eb6;super[_0xf42824(0x125)]&&await super[_0xf42824(0x125)]();}async[a0_0x330eb6(0x11b)](){const _0x312077=a0_0x330eb6;this['isPage']&&await this[_0x312077(0x13d)](),super[_0x312077(0x11b)]&&await super[_0x312077(0x11b)]();}[a0_0x330eb6(0x136)](){const _0x68532e=a0_0x330eb6;return html`
|
|
2
|
+
${MetaApi[_0x68532e(0x13c)](this)}
|
|
3
|
+
${this[_0x68532e(0x144)]?html``:MetaUiUtil[_0x68532e(0x12c)](this)}
|
|
4
|
+
`;}[a0_0x330eb6(0x14f)](_0x41921a,_0x53ac54,_0x2dfd64){const _0x47c3a0=a0_0x330eb6;if(super[_0x47c3a0(0x14f)](_0x41921a,_0x53ac54,_0x2dfd64),_0x47c3a0(0x118)===_0x41921a&&!0x0===this[_0x47c3a0(0x12f)]&&ValueUtil[_0x47c3a0(0x138)](this['contextPath'])){const _0x465e1f=new URLSearchParams(window[_0x47c3a0(0x12b)][_0x47c3a0(0x14e)]);ValueUtil['isNotEmpty'](_0x465e1f)&&(_0x465e1f[_0x47c3a0(0x133)]((_0x15290f,_0x41a859)=>{const _0xb9afe8=_0x47c3a0;MetaApi[_0xb9afe8(0x14b)](_0x41a859,_0x15290f);}),this[_0x47c3a0(0x131)]());}}[a0_0x330eb6(0x11c)](_0x5cbf17){const _0x518d86=a0_0x330eb6;this[_0x518d86(0x145)]=_0x5cbf17[_0x518d86(0x134)],this['gridColumnConfig']=_0x5cbf17[_0x518d86(0x13a)],this[_0x518d86(0x11a)]=_0x5cbf17[_0x518d86(0x14e)];}async[a0_0x330eb6(0x13d)](){const _0x272894=a0_0x330eb6;this[_0x272894(0x127)]=await MetaApi[_0x272894(0x140)](this);}async[a0_0x330eb6(0x131)](){const _0x32e62e=a0_0x330eb6;await this[_0x32e62e(0x129)][_0x32e62e(0x131)]();}async[a0_0x330eb6(0x148)](){const _0x18aaca=a0_0x330eb6;let _0x57d7c3=MetaApi[_0x18aaca(0x13e)](this[_0x18aaca(0x129)]);!!ValueUtil[_0x18aaca(0x138)](_0x57d7c3)&&await this[_0x18aaca(0x14c)](_0x57d7c3)&&this['fetch']();}async[a0_0x330eb6(0x123)](){const _0x320d2d=a0_0x330eb6;let _0x378ce5=MetaApi['getSelectedIdList'](this[_0x320d2d(0x129)],!0x0);return ValueUtil[_0x320d2d(0x138)](_0x378ce5)?await this['findOne'](_0x378ce5[0x0]):{};}async[a0_0x330eb6(0x13b)](){const _0x3dbd51=a0_0x330eb6;let _0x1af1cf=MetaApi[_0x3dbd51(0x126)](this[_0x3dbd51(0x129)],!0x0);!!ValueUtil[_0x3dbd51(0x138)](_0x1af1cf)&&await this[_0x3dbd51(0x121)](_0x1af1cf)&&this[_0x3dbd51(0x131)]();}async[a0_0x330eb6(0x130)](){const _0x3cda60=a0_0x330eb6;let _0x4d642b=TermsUtil[_0x3cda60(0x128)](ValueUtil[_0x3cda60(0x12d)](this[_0x3cda60(0x119)],'title'));return await MetaApi[_0x3cda60(0x142)](this[_0x3cda60(0x135)],_0x4d642b,this['grist']);}async['import'](){}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0x1424fc=a0_0x3adf;function a0_0x3adf(_0x466f16,_0x367c74){const _0x511e1f=a0_0x511e();return a0_0x3adf=function(_0x3adf14,_0x7ac2d2){_0x3adf14=_0x3adf14-0x6d;let _0x1b5416=_0x511e1f[_0x3adf14];return _0x1b5416;},a0_0x3adf(_0x466f16,_0x367c74);}(function(_0x512018,_0x294d3a){const _0x2beea3=a0_0x3adf,_0x559b01=_0x512018();while(!![]){try{const _0x4409eb=-parseInt(_0x2beea3(0x82))/0x1*(parseInt(_0x2beea3(0x72))/0x2)+parseInt(_0x2beea3(0x70))/0x3+parseInt(_0x2beea3(0x7c))/0x4*(parseInt(_0x2beea3(0x74))/0x5)+parseInt(_0x2beea3(0x76))/0x6*(-parseInt(_0x2beea3(0x88))/0x7)+parseInt(_0x2beea3(0x6e))/0x8*(-parseInt(_0x2beea3(0x8a))/0x9)+parseInt(_0x2beea3(0x81))/0xa+parseInt(_0x2beea3(0x79))/0xb;if(_0x4409eb===_0x294d3a)break;else _0x559b01['push'](_0x559b01['shift']());}catch(_0x37fac3){_0x559b01['push'](_0x559b01['shift']());}}}(a0_0x511e,0xc033e));import{html}from'lit';function a0_0x511e(){const _0x48f5cb=['5ccrthC','getCustomButtonContainerStyles','816uRjFju','customButtonHandler','button','23329801JYsuSR','properties','add','50132DQFnmJ','getButtonContainer','import','getButtonActionHandler','useButtonImport','12906340brOywy','23UVSALb','isPage','isButtonExist','buttonConfig','export','getCustomButtonContainerStyle','50498mDgcML','getContextButtons','9WdiYij','gristButtonHandler','10264016oQkJAF','getBasicButtonHandler','2976873BbzszJ','useButtonAdd','118694Plvvxx','useButtonExport'];a0_0x511e=function(){return _0x48f5cb;};return a0_0x511e();}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x1b6840=>class extends MetaServiceMixin(_0x1b6840){static get[a0_0x1424fc(0x7a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x1424fc(0x87)](){const _0x26bdad=a0_0x1424fc;return MetaUiUtil[_0x26bdad(0x75)]();}[a0_0x1424fc(0x89)](){const _0x422582=a0_0x1424fc;return MetaUiUtil[_0x422582(0x89)](this);}[a0_0x1424fc(0x7d)](){const _0x4bd98f=a0_0x1424fc;return this[_0x4bd98f(0x83)]?html``:MetaUiUtil[_0x4bd98f(0x7d)](this);}async[a0_0x1424fc(0x6f)](_0x1922b8,_0x3749b7,_0x26607a){const _0x41f4ba=a0_0x1424fc;return await MetaUiUtil[_0x41f4ba(0x7f)](this,_0x1922b8,_0x3749b7,_0x26607a);}async[a0_0x1424fc(0x77)](_0x1c0cb0){await MetaUiUtil['customButtonHandler'](this,_0x1c0cb0);}async[a0_0x1424fc(0x6d)](_0x2b7f75,_0x4eb025){await MetaUiUtil['gristButtonHandler'](this,_0x2b7f75,_0x4eb025);}['parseBasicButtonConfigs'](_0x352adc){const _0x286d86=a0_0x1424fc;this[_0x286d86(0x85)]=_0x352adc[_0x286d86(0x78)],this[_0x286d86(0x80)]=MetaUiUtil[_0x286d86(0x84)](this[_0x286d86(0x85)],_0x286d86(0x7e)),this[_0x286d86(0x73)]=MetaUiUtil[_0x286d86(0x84)](this[_0x286d86(0x85)],_0x286d86(0x86)),this[_0x286d86(0x71)]=MetaUiUtil['isButtonExist'](this[_0x286d86(0x85)],_0x286d86(0x7b));}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a0_0xdcdee2=a0_0x2fa8;(function(_0x303db3,_0x5a2345){const _0x212a85=a0_0x2fa8,_0x3e04f2=_0x303db3();while(!![]){try{const _0x4944c0=-parseInt(_0x212a85(0xaa))/0x1*(-parseInt(_0x212a85(0x9c))/0x2)+-parseInt(_0x212a85(0xa7))/0x3+parseInt(_0x212a85(0x9d))/0x4+-parseInt(_0x212a85(0xbf))/0x5*(-parseInt(_0x212a85(0xbe))/0x6)+parseInt(_0x212a85(0xaf))/0x7*(parseInt(_0x212a85(0x99))/0x8)+parseInt(_0x212a85(0x95))/0x9+-parseInt(_0x212a85(0xbb))/0xa*(parseInt(_0x212a85(0xb2))/0xb);if(_0x4944c0===_0x5a2345)break;else _0x3e04f2['push'](_0x3e04f2['shift']());}catch(_0x3814b4){_0x3e04f2['push'](_0x3e04f2['shift']());}}}(a0_0x255e,0x9fd5e));function a0_0x2fa8(_0x1b91c1,_0x72c56c){const _0x255e2e=a0_0x255e();return a0_0x2fa8=function(_0x2fa81f,_0x5b81b1){_0x2fa81f=_0x2fa81f-0x91;let _0x3b698c=_0x255e2e[_0x2fa81f];return _0x3b698c;},a0_0x2fa8(_0x1b91c1,_0x72c56c);}import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';function a0_0x255e(){const _0x2850db=['query','2430162vpWozc','parent_id','isEmpty','11AscEDl','name','gql','updateMultiple','filters','560DvDAlA','deleteListByIds','isNotEmpty','323939phTCsl','columns','mutation','records','searchByPagination','filter','parseBasicServiceConfigs','findOne','forEach','460vKeSbC','isElement','multiple','2238JiEfSy','12440UNRPtk','getSelectColumns','gristConfigSet','func','skip_fields','gqlInfo','3500613wrgTLo','formConfigSet','keys','map','32624tYSMfP','find_one_func','filterForm','109032NtODMl','2305988IjlqGM','isArray','after_set_fields','includes','delete','getParams','fetchHandler','split','getQueryFilters'];a0_0x255e=function(){return _0x2850db;};return a0_0x255e();}import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x3714de=>class extends MetaBaseMixin(_0x3714de){static get['properties'](){return{'gqlInfo':Object};}[a0_0xdcdee2(0xb8)](_0x5ae54a){const _0x3563b6=a0_0xdcdee2;this[_0x3563b6(0x94)]=_0x5ae54a[_0x3563b6(0xac)];}async[a0_0xdcdee2(0xa3)]({page:_0x53baad=0x0,limit:_0xd40753=0x0,sortings:_0x42590f=[],filters:_0x5b4b72=[]}){const _0x8c0fd7=a0_0xdcdee2;if(!this[_0x8c0fd7(0x91)])return{'total':0x0,'records':[]};let _0x35392c=ValueUtil[_0x8c0fd7(0xa9)](_0x5b4b72)?await this[_0x8c0fd7(0x9b)]?.[_0x8c0fd7(0xa5)]()||[]:_0x5b4b72,_0x5059fc=ValueUtil['getParams'](this['gqlInfo'],_0x8c0fd7(0xa6),'list_func'),_0x3f85ad=ValueUtil[_0x8c0fd7(0xa2)](this[_0x8c0fd7(0x94)],_0x8c0fd7(0xa6),_0x8c0fd7(0xae)),_0x592883=ValueUtil[_0x8c0fd7(0xa2)](this[_0x8c0fd7(0x94)],_0x8c0fd7(0xa6),_0x8c0fd7(0x9f));if(ValueUtil[_0x8c0fd7(0xb1)](_0x3f85ad)&&(_0x35392c=adjustFilters(_0x35392c,_0x3f85ad)),this[_0x8c0fd7(0xbc)]){let _0x32d88b=ValueUtil[_0x8c0fd7(0xa2)](this[_0x8c0fd7(0x94)],_0x8c0fd7(0xa6),_0x8c0fd7(0xa8));ValueUtil[_0x8c0fd7(0xb1)](_0x32d88b)&&ValueUtil[_0x8c0fd7(0xb1)](this['parent_id'])&&(_0x35392c=adjustFilters(_0x35392c,[{'name':_0x32d88b,'operator':'eq','value':this[_0x8c0fd7(0xa8)]}]));}let _0x5df80c=Object['keys'](_0x592883||{}),_0x1dc214=MetaApi[_0x8c0fd7(0xc0)](this[_0x8c0fd7(0x91)][_0x8c0fd7(0xb3)][_0x8c0fd7(0xb7)](_0x3f08f9=>!_0x5df80c[_0x8c0fd7(0xa0)](_0x3f08f9[_0x8c0fd7(0xab)]))),_0x36b52a=await MetaApi[_0x8c0fd7(0xb6)](_0x5059fc,_0x35392c,_0x42590f,_0x53baad,_0xd40753,_0x1dc214);return ValueUtil['isNotEmpty'](_0x592883)&&ValueUtil['isNotEmpty'](_0x36b52a)&&ValueUtil[_0x8c0fd7(0xb1)](_0x36b52a[_0x8c0fd7(0xb5)])&&_0x36b52a[_0x8c0fd7(0xb5)][_0x8c0fd7(0x98)](_0x4a748b=>(_0x5df80c[_0x8c0fd7(0xba)](_0xde19f0=>{const _0x37bfce=_0x8c0fd7;_0x4a748b[_0xde19f0]=ValueUtil[_0x37bfce(0xa2)](_0x4a748b,..._0x592883[_0xde19f0]['split']('.'));}),_0x4a748b)),_0x36b52a;}async[a0_0xdcdee2(0xb9)](_0x3f6544){const _0x63f1a4=a0_0xdcdee2;let _0x569cba=ValueUtil[_0x63f1a4(0xa2)](this[_0x63f1a4(0x94)],'query',_0x63f1a4(0x9a)),_0x147b65=ValueUtil[_0x63f1a4(0xa2)](this[_0x63f1a4(0x94)],_0x63f1a4(0xa6),_0x63f1a4(0x9f)),_0x531510=Object[_0x63f1a4(0x97)](_0x147b65||{}),_0x1308f1=MetaApi['getSelectColumns']((this[_0x63f1a4(0x91)]?this['gristConfigSet']:{'columns':this[_0x63f1a4(0x96)]})[_0x63f1a4(0xb3)][_0x63f1a4(0xb7)](_0xb3b2a4=>!_0x531510[_0x63f1a4(0xa0)](_0xb3b2a4[_0x63f1a4(0xab)]))),_0x5543cd=await MetaApi[_0x63f1a4(0xb9)](_0x569cba,_0x3f6544,_0x1308f1);return ValueUtil[_0x63f1a4(0xb1)](_0x147b65)&&ValueUtil[_0x63f1a4(0xb1)](_0x5543cd)&&_0x531510[_0x63f1a4(0xba)](_0x43f9f2=>{const _0x5d23ca=_0x63f1a4;_0x5543cd[_0x43f9f2]=ValueUtil[_0x5d23ca(0xa2)](_0x5543cd,..._0x147b65[_0x43f9f2][_0x5d23ca(0xa4)]('.'));}),_0x5543cd;}async['deleteByIds'](_0x492d02){const _0x26b3e4=a0_0xdcdee2;let _0x520b04=ValueUtil[_0x26b3e4(0xa2)](this[_0x26b3e4(0x94)],_0x26b3e4(0xb4),_0x26b3e4(0xa1),_0x26b3e4(0x92));return await MetaApi[_0x26b3e4(0xb0)](_0x492d02,_0x520b04);}async[a0_0xdcdee2(0xad)](_0x30e02f){const _0x5d79b8=a0_0xdcdee2;let _0x5afc7e=ValueUtil[_0x5d79b8(0xa2)](this[_0x5d79b8(0x94)],_0x5d79b8(0xb4),_0x5d79b8(0xbd),_0x5d79b8(0x92)),_0x286ea8=ValueUtil['getParams'](this[_0x5d79b8(0x94)],_0x5d79b8(0xb4),_0x5d79b8(0xbd),_0x5d79b8(0x93));if(ValueUtil[_0x5d79b8(0xb1)](_0x286ea8)&&(_0x286ea8=_0x286ea8['map'](_0x4880a2=>_0x4880a2[_0x5d79b8(0xa0)]('.')?_0x4880a2[_0x5d79b8(0xa4)]('.'):_0x4880a2),_0x30e02f=_0x30e02f[_0x5d79b8(0x98)](_0x302793=>(_0x286ea8[_0x5d79b8(0xba)](_0x469ab9=>{const _0x57b1b2=_0x5d79b8;Array[_0x57b1b2(0x9e)](_0x469ab9)?delete _0x302793[_0x469ab9[0x0]][_0x469ab9[0x1]]:delete _0x302793[_0x469ab9];}),_0x302793))),this['isElement']&&ValueUtil['isNotEmpty'](this['parent_id'])){let _0x1c0f5f=ValueUtil[_0x5d79b8(0xa2)](this[_0x5d79b8(0x94)],_0x5d79b8(0xb4),_0x5d79b8(0xbd),_0x5d79b8(0xa8));ValueUtil[_0x5d79b8(0xb1)](_0x1c0f5f)&&_0x30e02f[_0x5d79b8(0xba)](_0x157ce1=>{const _0x5c5c39=_0x5d79b8;if(_0x1c0f5f[_0x5c5c39(0xa0)]('.')){let _0x5b79c9=_0x1c0f5f[_0x5c5c39(0xa4)]('.');_0x157ce1[_0x5b79c9[0x0]]={},_0x157ce1[_0x5b79c9[0x0]][_0x5b79c9[0x1]]=this[_0x5c5c39(0xa8)];}else _0x157ce1[_0x1c0f5f]=this[_0x5c5c39(0xa8)];});}return await MetaApi[_0x5d79b8(0xad)](_0x5afc7e,_0x30e02f);}};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function a0_0x2a1e(){var _0x4407da=['870HIbkdz','8217360eZpZWH','1221818QMLiEv','4675530jMuPTX','21ibCIDi','render','517804uxATdc','10fhrcxh','316054tlNPNa','10763154ttAMyl','loading-page','19985KJdsDy','context','styles','customElements','define'];a0_0x2a1e=function(){return _0x4407da;};return a0_0x2a1e();}var a0_0x3fbc35=a0_0x53e2;(function(_0x3b5a85,_0x18f0da){var _0x32fdb3=a0_0x53e2,_0x171560=_0x3b5a85();while(!![]){try{var _0x44ac48=-parseInt(_0x32fdb3(0x104))/0x1+parseInt(_0x32fdb3(0xfe))/0x2+-parseInt(_0x32fdb3(0x100))/0x3*(parseInt(_0x32fdb3(0x102))/0x4)+parseInt(_0x32fdb3(0xff))/0x5+-parseInt(_0x32fdb3(0xfc))/0x6*(-parseInt(_0x32fdb3(0x107))/0x7)+parseInt(_0x32fdb3(0xfd))/0x8+parseInt(_0x32fdb3(0x105))/0x9*(-parseInt(_0x32fdb3(0x103))/0xa);if(_0x44ac48===_0x18f0da)break;else _0x171560['push'](_0x171560['shift']());}catch(_0x46cfe9){_0x171560['push'](_0x171560['shift']());}}}(a0_0x2a1e,0x8aed3));function a0_0x53e2(_0x4a7426,_0x250215){var _0x2a1e77=a0_0x2a1e();return a0_0x53e2=function(_0x53e24d,_0x5408b8){_0x53e24d=_0x53e24d-0xfb;var _0x57f211=_0x2a1e77[_0x53e24d];return _0x57f211;},a0_0x53e2(_0x4a7426,_0x250215);}import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';class LoadingPage extends localize(i18next)(PageView){static get[a0_0x3fbc35(0x109)](){return[css`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
background-color: var(--main-section-background-color);
|
|
5
|
+
padding: var(--padding-wide);
|
|
6
|
+
overflow: auto;
|
|
7
|
+
}
|
|
8
|
+
h2 {
|
|
9
|
+
margin: var(--title-margin);
|
|
10
|
+
font: var(--title-font);
|
|
11
|
+
color: var(--title-text-color);
|
|
12
|
+
}
|
|
13
|
+
input {
|
|
14
|
+
display: block;
|
|
15
|
+
}
|
|
16
|
+
[page-description] {
|
|
17
|
+
margin: var(--page-description-margin);
|
|
18
|
+
font: var(--page-description-font);
|
|
19
|
+
color: var(--page-description-color);
|
|
20
|
+
}
|
|
21
|
+
[button-primary] {
|
|
22
|
+
background-color: var(--button-primary-background-color);
|
|
23
|
+
border: var(--button-border);
|
|
24
|
+
border-radius: var(--button-border-radius);
|
|
25
|
+
padding: var(--button-padding);
|
|
26
|
+
color: var(--button-primary-color);
|
|
27
|
+
font: var(--button-primary-font);
|
|
28
|
+
text-transform: var(--button-text-transform);
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
}
|
|
31
|
+
[button-primary]:hover {
|
|
32
|
+
background-color: var(--button-primary-active-background-color);
|
|
33
|
+
box-shadow: var(--button-active-box-shadow);
|
|
34
|
+
}
|
|
35
|
+
img {
|
|
36
|
+
max-width: 45%;
|
|
37
|
+
float: right;
|
|
38
|
+
}
|
|
39
|
+
@media screen and (max-width: 600px) {
|
|
40
|
+
img {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`];}get[a0_0x3fbc35(0x108)](){return{'title':'Loading\x20...','actions':[]};}[a0_0x3fbc35(0x101)](){return html`
|
|
45
|
+
<h2>페이지 로딩 중 입니다.</h2>
|
|
46
|
+
<p page-description>
|
|
47
|
+
잠시만 기다려주세요...
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
<img src="/assets/images/loading-page.png" />
|
|
51
|
+
`;}}window[a0_0x3fbc35(0x10a)][a0_0x3fbc35(0xfb)](a0_0x3fbc35(0x106),LoadingPage);
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { i18next, localize } from '@operato/i18n'
|
|
3
|
-
import { ScrollbarStyles } from '@operato/styles'
|
|
4
|
-
|
|
5
|
-
import '@operato/input/ox-input-code.js'
|
|
6
|
-
|
|
7
|
-
import { TermsUtil } from './../../utils/terms-util'
|
|
8
|
-
import { MetaUtil } from '../../utils/meta-util'
|
|
9
|
-
|
|
10
|
-
class DynamicMenuTemplate extends localize(i18next)(LitElement) {
|
|
11
|
-
|
|
12
|
-
static get properties() {
|
|
13
|
-
return {
|
|
14
|
-
title: String,
|
|
15
|
-
recordId: String
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static get styles() {
|
|
20
|
-
let styles = [
|
|
21
|
-
ScrollbarStyles,
|
|
22
|
-
css`
|
|
1
|
+
const a0_0x573980=a0_0x23f8;function a0_0x23f8(_0x1e2e87,_0x853c04){const _0x1fd978=a0_0x1fd9();return a0_0x23f8=function(_0x23f8fa,_0x5d825b){_0x23f8fa=_0x23f8fa-0xa8;let _0x979a51=_0x1fd978[_0x23f8fa];return _0x979a51;},a0_0x23f8(_0x1e2e87,_0x853c04);}(function(_0x8b84b1,_0x34d874){const _0x4cf92c=a0_0x23f8,_0x120176=_0x8b84b1();while(!![]){try{const _0x420ce6=parseInt(_0x4cf92c(0xa9))/0x1*(parseInt(_0x4cf92c(0xc0))/0x2)+-parseInt(_0x4cf92c(0xc6))/0x3+-parseInt(_0x4cf92c(0xb5))/0x4+parseInt(_0x4cf92c(0xb0))/0x5*(parseInt(_0x4cf92c(0xc1))/0x6)+-parseInt(_0x4cf92c(0xba))/0x7*(-parseInt(_0x4cf92c(0xb3))/0x8)+-parseInt(_0x4cf92c(0xbb))/0x9+parseInt(_0x4cf92c(0xc9))/0xa*(parseInt(_0x4cf92c(0xcc))/0xb);if(_0x420ce6===_0x34d874)break;else _0x120176['push'](_0x120176['shift']());}catch(_0x41ce8d){_0x120176['push'](_0x120176['shift']());}}}(a0_0x1fd9,0x4d026));import a0_0x53d61b from'graphql-tag';import{store}from'@operato/shell';import{client}from'@operato/graphql';import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@operato/i18n';import{ScrollbarStyles}from'@operato/styles';import'@operato/input/ox-input-code.js';import{TermsUtil}from'./../../utils/terms-util';function a0_0x1fd9(){const _0xc49ba3=['dynamic-menu-template','info','914046uoTLqa','text.there_is_nothing_to_save','getState','795560wBVqZv','showAlertPopup','dispatchEvent','11yFFMzv','recordId','properties','error','28507KCaVzI','error.invalid\x20license\x20key','metaUI','query','template','findOne','value','10gRbEqA','codeValueNew','studioPermission','430792iUSTxY','bind','2011024gfpTIy','updateMultiple','text.nothing_changed','firstUpdated','codeEditor','14MKcwYe','692748VCXwjI','render','save','querySelector','menu','32KLHuyu','1669422iJTUUa','title','orgValue'];a0_0x1fd9=function(){return _0xc49ba3;};return a0_0x1fd9();}import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get[a0_0x573980(0xce)](){return{'title':String,'recordId':String};}static get['styles'](){return[ScrollbarStyles,css`
|
|
23
2
|
:host {
|
|
24
3
|
display: flex;
|
|
25
4
|
flex-direction: column;
|
|
@@ -47,46 +26,13 @@ class DynamicMenuTemplate extends localize(i18next)(LitElement) {
|
|
|
47
26
|
height: var(--button-container-height);
|
|
48
27
|
text-align: right;
|
|
49
28
|
padding-right: 12px;
|
|
50
|
-
}`]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
async firstUpdated() {
|
|
56
|
-
if (super.firstUpdated) {
|
|
57
|
-
await super.firstUpdated();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
let menu = await MetaUtil.findOne('menu', this.recordId, 'template');
|
|
61
|
-
let codeData = menu ? (menu.template || '') : '';
|
|
62
|
-
this.codeEditor.value = codeData;
|
|
63
|
-
this.codeEditor.orgValue = this.codeEditor.value;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
render() {
|
|
67
|
-
return html`
|
|
68
|
-
<legend>${this.title}</legend>
|
|
69
|
-
<ox-input-code mode="javascript" value=${this.codeValueNew} tab-size="4"></ox-input-code>
|
|
29
|
+
}`];}async['firstUpdated'](){const _0x403ed7=a0_0x573980;super[_0x403ed7(0xb8)]&&await super[_0x403ed7(0xb8)]();let _0x5b0752=await MetaApi[_0x403ed7(0xae)](_0x403ed7(0xbf),this['recordId'],_0x403ed7(0xad)),_0x1ddb10=_0x5b0752&&_0x5b0752[_0x403ed7(0xad)]||'';this[_0x403ed7(0xb9)][_0x403ed7(0xaf)]=_0x1ddb10,this[_0x403ed7(0xb9)][_0x403ed7(0xc3)]=this[_0x403ed7(0xb9)][_0x403ed7(0xaf)];}[a0_0x573980(0xbc)](){const _0x54c4ee=a0_0x573980;return html`
|
|
30
|
+
<legend>${this[_0x54c4ee(0xc2)]}</legend>
|
|
31
|
+
<ox-input-code mode="javascript" value=${this[_0x54c4ee(0xb1)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
70
32
|
<div id="button-container" class="button-container">
|
|
71
|
-
<mwc-button raised label="${TermsUtil
|
|
72
|
-
</div
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
async save() {
|
|
80
|
-
if (this.codeEditor.orgValue == this.codeEditor.value) {
|
|
81
|
-
MetaUtil.showAlertPopup('text.nothing_selected', 'text.there_is_nothing_to_delete', 'info', 'confirm');
|
|
82
|
-
} else {
|
|
83
|
-
let patches = [{ id: this.recordId, template: this.codeEditor.value, cuFlag: 'M' }];
|
|
84
|
-
let result = await MetaUtil.updateMultiple('updateMultipleMenu', patches);
|
|
85
|
-
if (result) {
|
|
86
|
-
history.back();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
customElements.define('dynamic-menu-template', DynamicMenuTemplate)
|
|
33
|
+
<!-- <mwc-button raised label="${TermsUtil['tButton'](_0x54c4ee(0xbd))}" @click=${this['save'][_0x54c4ee(0xb4)](this)}></mwc-button> -->
|
|
34
|
+
</div>`;}get['codeEditor'](){const _0x2434a0=a0_0x573980;return this['shadowRoot'][_0x2434a0(0xbe)]('ox-input-code');}async[a0_0x573980(0xbd)](){const _0x185e33=a0_0x573980;if(this[_0x185e33(0xb9)][_0x185e33(0xc3)]==this[_0x185e33(0xb9)]['value'])return void MetaApi[_0x185e33(0xca)](_0x185e33(0xb7),_0x185e33(0xc7),_0x185e33(0xc5),'confirm');if(0x0==store[_0x185e33(0xc8)]()[_0x185e33(0xab)][_0x185e33(0xb2)])return void document[_0x185e33(0xcb)](new CustomEvent('notify',{'detail':{'level':_0x185e33(0xa8),'message':i18next['t'](_0x185e33(0xaa))}}));if((await client[_0x185e33(0xac)]({'query':a0_0x53d61b`
|
|
35
|
+
query ($id: String!) {
|
|
36
|
+
metaUITemplateIsOverLimit(id: $id)
|
|
37
|
+
}
|
|
38
|
+
`,'variables':{'id':this[_0x185e33(0xcd)]}}))['errors'])return;let _0x2abe55=this[_0x185e33(0xb9)]['value'],_0x558860=[{'id':this[_0x185e33(0xcd)],'template':_0x2abe55,'cuFlag':'M'}];await MetaApi[_0x185e33(0xb6)]('updateMultipleMenu',_0x558860)&&history['back']();}}customElements['define'](a0_0x573980(0xc4),DynamicMenuTemplate);
|