@things-factory/meta-ui 6.0.0-alpha.5 → 6.0.0-alpha.7
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 -1
- package/client/bootstrap.js +6 -2
- package/client/index.js +3 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-form-mixin.js +4 -4
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/pages/loading-page.js +3 -3
- package/client/pages/menu/dynamic-menu-template.js +34 -178
- 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/terms/config-terminology.js +6 -6
- package/client/reducers/main.js +1 -1
- package/client/route.js +2 -2
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +25 -25
- 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 +147 -0
- package/client/viewparts/dynamic-menu-landscape.js +25 -0
- package/client/viewparts/dynamic-menu-part.js +36 -0
- package/client/viewparts/dynamic-menu-portrait-styles.js +119 -0
- package/client/viewparts/dynamic-menu-portrait.js +18 -0
- package/client/viewparts/dynamic-top-menu-bar.js +67 -0
- package/dist-server/constants/error-code.js +1 -1
- package/dist-server/errors/license-error.js +1 -1
- package/dist-server/routes.js +1 -1
- package/dist-server/service/meta-secret/meta-resolver.js +1 -1
- package/package.json +4 -4
package/client/actions/main.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x35bb(_0x45656f,_0x567441){const _0x4f02de=a0_0x4f02();return a0_0x35bb=function(_0x35bb3a,_0x1ae3c1){_0x35bb3a=_0x35bb3a-0x163;let _0x3c547b=_0x4f02de[_0x35bb3a];return _0x3c547b;},a0_0x35bb(_0x45656f,_0x567441);}const a0_0x52d530=a0_0x35bb;(function(_0x20be5f,_0x29d178){const _0x124b00=a0_0x35bb,_0x272cef=_0x20be5f();while(!![]){try{const _0x26fb80=parseInt(_0x124b00(0x16f))/0x1+parseInt(_0x124b00(0x168))/0x2*(parseInt(_0x124b00(0x176))/0x3)+parseInt(_0x124b00(0x16e))/0x4+parseInt(_0x124b00(0x16b))/0x5+parseInt(_0x124b00(0x16a))/0x6+-parseInt(_0x124b00(0x174))/0x7*(parseInt(_0x124b00(0x171))/0x8)+-parseInt(_0x124b00(0x16d))/0x9;if(_0x26fb80===_0x29d178)break;else _0x272cef['push'](_0x272cef['shift']());}catch(_0x25e741){_0x272cef['push'](_0x272cef['shift']());}}}(a0_0x4f02,0x81a39));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import{html}from'lit';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=a0_0x52d530(0x170);export const UPDATE_META_MENU_TEMPLATE=a0_0x52d530(0x169);function a0_0x4f02(){const _0x452612=['UPDATE_META_UI','4184ILdQdv','dispatch','dynamic-menu','5173kBDCog','hamburger','659733jfklBS','FRONT_END','dynamic-menu-part','landscape','NAVBAR','get','6UZFjpp','UPDATE_META_MENU_TEMPLATE','3954972uTtEoY','2517760MJYnCP','HEADERBAR','16156566TIIsUr','2960168nQQKEP','150183imhQeL'];a0_0x4f02=function(){return _0x452612;};return a0_0x4f02();}var HAMBURGER;export async function setupMenuPart(_0x1b68a4){const _0x27f04c=a0_0x52d530;var {hovering:_0x311d63=!!isMobileDevice(),slotTemplate:_0x41268b,portraitSlotTemplate:_0x5eaee8,landscapeSlotTemplate:_0xac5b5b,position:_0x63c17c=VIEWPART_POSITION[_0x27f04c(0x166)]}=_0x1b68a4||{};const {hovering:_0x2ddbcb}=(await clientSettingStore[_0x27f04c(0x167)](_0x27f04c(0x173)))?.['value']||{};void 0x0!==_0x2ddbcb&&(_0x311d63=_0x2ddbcb);const _0x13077a=_0x63c17c==VIEWPART_POSITION[_0x27f04c(0x16c)]?_0x27f04c(0x165):'portrait',_0x51a0c9=(_0x27f04c(0x165)==_0x13077a?_0xac5b5b:_0x5eaee8)||_0x41268b||html``;appendViewpart({'name':'lite-menu-part','viewpart':{'show':!_0x311d63,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x311d63,'template':html`<dynamic-menu-part .orientation=${_0x13077a}>${_0x51a0c9}</dynamic-menu-part>`},'position':_0x63c17c}),_0x311d63&&'portrait'==_0x13077a?HAMBURGER||(HAMBURGER={'name':_0x27f04c(0x175),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0xaf7e4b=>toggleOverlay(_0x27f04c(0x164),{'backdrop':!0x0})}
|
|
3
|
+
>view_headline</mwc-icon>
|
|
4
|
+
`,'position':TOOL_POSITION[_0x27f04c(0x163)]},store[_0x27f04c(0x172)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x27f04c(0x172)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0xb71cfc){const _0x32bad1=a0_0x52d530;store[_0x32bad1(0x172)]({'type':UPDATE_META_MENU_TEMPLATE,'template':_0xb71cfc});}
|
package/client/bootstrap.js
CHANGED
|
@@ -4,7 +4,8 @@ import { auth } from '@things-factory/auth-base'
|
|
|
4
4
|
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
|
-
import { updateMenuTemplate } from '
|
|
7
|
+
import { updateMenuTemplate } from './actions/main'
|
|
8
|
+
|
|
8
9
|
import metaUI from './reducers/main'
|
|
9
10
|
|
|
10
11
|
import { TermsUtil } from './utils/terms-util'
|
|
@@ -24,9 +25,11 @@ export default function bootstrap() {
|
|
|
24
25
|
await TermsUtil.downloadTerminologies(locale);
|
|
25
26
|
|
|
26
27
|
// 2. 메뉴 정보를 서버로 부터 받아서 적용
|
|
28
|
+
// 메뉴 정보를 서버로 부터 받아서 적용
|
|
27
29
|
let menuRoutes = await MetaApi.myDynamicMenus();
|
|
28
30
|
let realMenus = menuRoutes.menus;
|
|
29
|
-
|
|
31
|
+
|
|
32
|
+
await updateMenuTemplate(realMenus);
|
|
30
33
|
|
|
31
34
|
// 3. 동적 메뉴 관리 화면 추가
|
|
32
35
|
store.dispatch({
|
|
@@ -83,6 +86,7 @@ export default function bootstrap() {
|
|
|
83
86
|
this.routes.forEach(r => {
|
|
84
87
|
metaUiRoutes.push({ page: r.page, tagname: r.tagname })
|
|
85
88
|
});
|
|
89
|
+
|
|
86
90
|
metaUiModule.routes = metaUiRoutes;
|
|
87
91
|
metaUiModule.route = metaUiRoute;
|
|
88
92
|
|
package/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x18418a=a0_0x284b;(function(_0x118968,_0x217c53){const _0x4f39f8=a0_0x284b,_0xa9a7f1=_0x118968();while(!![]){try{const _0x5ea86a=-parseInt(_0x4f39f8(0xfe))/0x1+-parseInt(_0x4f39f8(0xea))/0x2+parseInt(_0x4f39f8(0xfd))/0x3*(parseInt(_0x4f39f8(0x100))/0x4)+-parseInt(_0x4f39f8(0xe9))/0x5*(-parseInt(_0x4f39f8(0x106))/0x6)+parseInt(_0x4f39f8(0xf1))/0x7*(-parseInt(_0x4f39f8(0xfa))/0x8)+-parseInt(_0x4f39f8(0xfb))/0x9*(parseInt(_0x4f39f8(0xe7))/0xa)+parseInt(_0x4f39f8(0xf5))/0xb*(parseInt(_0x4f39f8(0xee))/0xc);if(_0x5ea86a===_0x217c53)break;else _0xa9a7f1['push'](_0xa9a7f1['shift']());}catch(_0x398327){_0xa9a7f1['push'](_0xa9a7f1['shift']());}}}(a0_0x19a5,0xb0ded));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x513892=>class extends _0x513892{static get[a0_0x18418a(0xff)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x448da6=>Boolean(_0x448da6)},'is_popup':{'type':Boolean,'converter':_0x9e931c=>Boolean(_0x9e931c)}};}get[a0_0x18418a(0xf3)](){const _0x21eac3=a0_0x18418a;return!0x0===this[_0x21eac3(0xf7)]||!0x0===this[_0x21eac3(0xeb)];}get['isDetail'](){const _0x5beb0d=a0_0x18418a;return!ValueUtil[_0x5beb0d(0x103)](this[_0x5beb0d(0xf7)])&&this[_0x5beb0d(0xf7)];}get[a0_0x18418a(0x105)](){const _0x331242=a0_0x18418a;return!ValueUtil[_0x331242(0x103)](this[_0x331242(0xeb)])&&this[_0x331242(0xeb)];}get[a0_0x18418a(0xf8)](){const _0x51cb3a=a0_0x18418a;return!this[_0x51cb3a(0xf7)]&&!this[_0x51cb3a(0xeb)];}async['getAndParseMenuMeta'](){const _0x202ba3=a0_0x18418a;let _0x3affad=await MetaApi[_0x202ba3(0x102)](this);_0x3affad&&(this[_0x202ba3(0x108)]=_0x3affad[_0x202ba3(0xf9)],this['parseBasicGridConfigs']&&this[_0x202ba3(0x104)](_0x3affad),this[_0x202ba3(0xf6)]&&this[_0x202ba3(0xf6)](_0x3affad),this[_0x202ba3(0xfc)]&&this[_0x202ba3(0xfc)](_0x3affad),this['parseBasicButtonConfigs']&&this['parseBasicButtonConfigs'](_0x3affad));}async[a0_0x18418a(0xf2)](){const _0x66cc1d=a0_0x18418a;ValueUtil[_0x66cc1d(0x107)](this[_0x66cc1d(0xe6)])?this['grist'][_0x66cc1d(0xf2)]():(ValueUtil[_0x66cc1d(0x107)](this[_0x66cc1d(0xec)])||this[_0x66cc1d(0xef)])&&await this[_0x66cc1d(0xef)]();}async['excuteOpenPopupButtonClick'](_0x455b66,_0x51b9bd,_0x320efa){const _0x58bc31=a0_0x18418a;let _0x8ac8f0=TermsUtil['tTitle'](_0x455b66[_0x58bc31(0x101)]);ValueUtil[_0x58bc31(0x107)](_0x455b66[_0x58bc31(0xed)])&&(_0x8ac8f0=_0x8ac8f0+'-'+ValueUtil[_0x58bc31(0xe8)](_0x51b9bd,..._0x455b66['title_detail'][_0x58bc31(0xf0)]('.'))),MetaApi['openDynamicPopup'](_0x8ac8f0,_0x455b66,_0x51b9bd,_0x320efa);}async['executeCallScenarioButtonClick'](_0x239b57,_0x294e49,_0x3dfe7b){const _0x1f00d6=a0_0x18418a;let _0x4bcdad=await MetaApi[_0x1f00d6(0xf4)](_0x239b57['name'],_0x239b57['name'],_0x294e49);!0x1!==_0x4bcdad&&!_0x4bcdad['errors']&&ValueUtil[_0x1f00d6(0x107)](_0x239b57['after'])&&_0x3dfe7b();}};function a0_0x284b(_0x376cf5,_0x368163){const _0x19a5f7=a0_0x19a5();return a0_0x284b=function(_0x284ba0,_0x25451d){_0x284ba0=_0x284ba0-0xe6;let _0x5de15b=_0x19a5f7[_0x284ba0];return _0x5de15b;},a0_0x284b(_0x376cf5,_0x368163);}function a0_0x19a5(){const _0x5652ec=['is_detail','isPage','menu','10448856opyzaD','10339191CxABRa','parseBasicFormConfigs','193917JXkggj','778525QyTAbC','properties','68TKQMnY','title','getMenuMeta','isEmpty','parseBasicGridConfigs','isPopup','102jpRIhA','isNotEmpty','menuInfo','grist','10qMIEBr','getParams','4270PMwlUE','659280ihlPzM','is_popup','filterForm','title_detail','369804IjaCFA','fetchHandler','split','7KdPBUK','fetch','isElement','callScenario','1133qGjvZe','parseBasicServiceConfigs'];a0_0x19a5=function(){return _0x5652ec;};return a0_0x19a5();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x48be60=a0_0x1a0c;(function(_0x122db4,_0x9daaef){const _0x387f3d=a0_0x1a0c,_0x2db2f9=_0x122db4();while(!![]){try{const _0x437367=parseInt(_0x387f3d(0x153))/0x1*(-parseInt(_0x387f3d(0x173))/0x2)+parseInt(_0x387f3d(0x152))/0x3+parseInt(_0x387f3d(0x156))/0x4+parseInt(_0x387f3d(0x15c))/0x5*(-parseInt(_0x387f3d(0x177))/0x6)+-parseInt(_0x387f3d(0x15d))/0x7*(parseInt(_0x387f3d(0x17d))/0x8)+parseInt(_0x387f3d(0x15b))/0x9+parseInt(_0x387f3d(0x165))/0xa*(parseInt(_0x387f3d(0x189))/0xb);if(_0x437367===_0x9daaef)break;else _0x2db2f9['push'](_0x2db2f9['shift']());}catch(_0x197aa9){_0x2db2f9['push'](_0x2db2f9['shift']());}}}(a0_0xc7ed,0x6a1bf));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_0x1a0c(_0x5c3873,_0x455be7){const _0xc7ed40=a0_0xc7ed();return a0_0x1a0c=function(_0x1a0cc4,_0x5a09cd){_0x1a0cc4=_0x1a0cc4-0x150;let _0x5ee57d=_0xc7ed40[_0x1a0cc4];return _0x5ee57d;},a0_0x1a0c(_0x5c3873,_0x455be7);}import{MetaButtonMixin}from'./meta-button-mixin';function a0_0xc7ed(){const _0x15090b=['__dirtyfields__','119478hKdqeW','__origin__','pageInitialized','isPage','context','active','2061440nAPQYW','renderRoot','form_column','querySelector','parseBasicFormConfigs','connectedCallback','formColumnConfig','getBasicFormHtml','findOne','text.NOTHING_CHANGED','title.info','forEach','22BqVWXG','isNotEmpty','fetch','getContextObject','name','context-path','button','1448484OZmgOu','1XJRMuM','location','formConfigSet','441056yhxhtX','parseFormConfigSet','isEmpty','getButtonContainer','__seq__','1365201JNuYQX','170tonBdh','7eoCNcR','__dirty__','formBodyId','validation','isElement','record','attributeChangedCallback','getBasicFormStyles','4400830uVjSwk','addEventListener','call','before','isEquals','detail','parent_id','ox-record-view-body','viewBody','properties','parseFormConfigs','after','filter','save','511204pPAdvR','showAlertPopup','contextPath'];a0_0xc7ed=function(){return _0x15090b;};return a0_0xc7ed();}import{ServiceUtil}from'../utils/service-util';export const MetaBasicFormMixin=_0x50ceb6=>class extends MetaButtonMixin(_0x50ceb6){static get['styles'](){const _0x2fecb1=a0_0x1a0c;return MetaApi[_0x2fecb1(0x164)]();}static get[a0_0x48be60(0x16e)](){return{'formBodyId':String,'formColumnConfig':Array,'formConfigSet':Object};}get[a0_0x48be60(0x16d)](){const _0x5b9e05=a0_0x48be60;return this[_0x5b9e05(0x17e)][_0x5b9e05(0x180)](this[_0x5b9e05(0x15f)]);}get[a0_0x48be60(0x17b)](){const _0x558e16=a0_0x48be60;return MetaUiUtil[_0x558e16(0x18c)](this);}async[a0_0x48be60(0x182)](){const _0x1ab01e=a0_0x48be60;await this['getAndParseMenuMeta'](),this[_0x1ab01e(0x161)]&&await this['parseFormConfigs'](),this[_0x1ab01e(0x166)]('field-change',_0x12b401=>{const _0x4f3d87=_0x1ab01e;var {after:_0x41e829,before:_0x22852a,column:_0x14700f,record:_0x5bc659,row:_0x3b072c}=_0x12b401[_0x4f3d87(0x16a)];if(ValueUtil['isEquals'](_0x41e829,_0x22852a))return;var _0x470f9b=_0x14700f[_0x4f3d87(0x160)];if(_0x470f9b&&'function'==typeof _0x470f9b&&!_0x470f9b[_0x4f3d87(0x167)](this,_0x41e829,_0x22852a,_0x5bc659,_0x14700f))return;let _0x77944f=_0x14700f[_0x4f3d87(0x18d)];_0x5bc659[_0x77944f]=_0x41e829,_0x5bc659[_0x4f3d87(0x176)]=_0x5bc659[_0x4f3d87(0x176)]||{},_0x5bc659[_0x4f3d87(0x176)][_0x77944f]={'before':_0x5bc659[_0x4f3d87(0x178)][_0x77944f],'after':_0x5bc659[_0x77944f]},ValueUtil[_0x4f3d87(0x169)](_0x5bc659['__dirtyfields__'][_0x77944f][_0x4f3d87(0x168)],_0x5bc659[_0x4f3d87(0x176)][_0x77944f][_0x4f3d87(0x170)])&&delete _0x5bc659[_0x4f3d87(0x176)][_0x77944f],ValueUtil[_0x4f3d87(0x18a)](_0x5bc659[_0x4f3d87(0x176)])?_0x5bc659[_0x4f3d87(0x15e)]='M':_0x5bc659[_0x4f3d87(0x15e)]='',this[_0x4f3d87(0x16d)][_0x4f3d87(0x162)]={..._0x5bc659};}),super['connectedCallback']&&await super[_0x1ab01e(0x182)](),this[_0x1ab01e(0x161)]&&await this[_0x1ab01e(0x18b)]();}async['firstUpdated'](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x48be60(0x179)](){const _0x420855=a0_0x48be60;this[_0x420855(0x17a)]&&await this[_0x420855(0x16f)](),super[_0x420855(0x179)]&&await super[_0x420855(0x179)](),this[_0x420855(0x17a)]&&await this[_0x420855(0x18b)]();}['render'](){const _0x2619ea=a0_0x48be60;return html`
|
|
2
|
+
${MetaApi[_0x2619ea(0x184)](this)}
|
|
3
|
+
${this[_0x2619ea(0x17a)]?html``:MetaUiUtil[_0x2619ea(0x159)](this)}
|
|
4
|
+
`;}[a0_0x48be60(0x163)](_0x15d975,_0xa86fcc,_0x2d0a3e){const _0x574d1b=a0_0x48be60;if(super[_0x574d1b(0x163)](_0x15d975,_0xa86fcc,_0x2d0a3e),_0x574d1b(0x150)===_0x15d975&&!0x0===this[_0x574d1b(0x17c)]&&ValueUtil[_0x574d1b(0x18a)](this[_0x574d1b(0x175)])){const _0x13583d=new URLSearchParams(window[_0x574d1b(0x154)]['search']);ValueUtil[_0x574d1b(0x18a)](_0x13583d)&&(_0x13583d['forEach']((_0x4053e4,_0x1b89df)=>{MetaApi['setSearchFormEditorValue'](_0x1b89df,_0x4053e4);}),this['fetch']());}}[a0_0x48be60(0x181)](_0x5379df){const _0x1f915e=a0_0x48be60;this[_0x1f915e(0x15f)]=_0x1f915e(0x16c),this['formColumnConfig']=_0x5379df[_0x1f915e(0x17f)],ValueUtil[_0x1f915e(0x158)](this['formColumnConfig'])&&(this[_0x1f915e(0x183)]=_0x5379df['grid_column']),_0x5379df[_0x1f915e(0x151)]=_0x5379df[_0x1f915e(0x151)][_0x1f915e(0x171)](_0x4d427b=>_0x1f915e(0x172)==_0x4d427b[_0x1f915e(0x18d)]);}async['parseFormConfigs'](){const _0x566b76=a0_0x48be60;this[_0x566b76(0x155)]=await MetaApi[_0x566b76(0x157)](this);}async['fetch'](){const _0x49d6e8=a0_0x48be60;if(ValueUtil[_0x49d6e8(0x158)](this['parent_id']))return;let _0x4b838f=await this[_0x49d6e8(0x185)](this[_0x49d6e8(0x16b)]);_0x4b838f[_0x49d6e8(0x15a)]=0x1;let _0x59ae02={};Object['assign'](_0x59ae02,_0x4b838f),_0x4b838f['__origin__']=_0x59ae02,this[_0x49d6e8(0x16d)]['record']={..._0x4b838f};}async[a0_0x48be60(0x172)](){const _0x2581a0=a0_0x48be60;let _0x2cf36d=this[_0x2581a0(0x16d)][_0x2581a0(0x162)];if(ValueUtil['isEmpty'](_0x2cf36d[_0x2581a0(0x15e)]))return void MetaApi[_0x2581a0(0x174)](_0x2581a0(0x187),_0x2581a0(0x186));let _0x28357a=_0x2cf36d['__dirtyfields__'],_0xa7d871={};ValueUtil[_0x2581a0(0x18a)](_0x2cf36d['id'])&&(_0xa7d871['id']=_0x2cf36d['id']),Object['keys'](_0x28357a)[_0x2581a0(0x188)](_0x572d0b=>{_0xa7d871[_0x572d0b]=_0x28357a[_0x572d0b]['after'];});let _0x4a780e=[{..._0xa7d871,'cuFlag':_0x2cf36d[_0x2581a0(0x15e)]}];return await this['updateMultiple'](_0x4a780e)&&await this[_0x2581a0(0x18b)](),!0x0;}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x1263b9=a0_0x4c3d;(function(_0x275590,_0x222281){const _0x245e4c=a0_0x4c3d,_0x1da158=_0x275590();while(!![]){try{const _0x366f0f=parseInt(_0x245e4c(0x92))/0x1+parseInt(_0x245e4c(0xa2))/0x2+-parseInt(_0x245e4c(0xaf))/0x3+parseInt(_0x245e4c(0xa4))/0x4*(-parseInt(_0x245e4c(0xb7))/0x5)+parseInt(_0x245e4c(0x9a))/0x6+parseInt(_0x245e4c(0xbb))/0x7*(parseInt(_0x245e4c(0xb8))/0x8)+parseInt(_0x245e4c(0x96))/0x9*(-parseInt(_0x245e4c(0x99))/0xa);if(_0x366f0f===_0x222281)break;else _0x1da158['push'](_0x1da158['shift']());}catch(_0x4a033d){_0x1da158['push'](_0x1da158['shift']());}}}(a0_0x2c6f,0x68b73));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x2c6f(){const _0x3feb05=['56qJRvGF','getBasicGristHtml','getButtonContainer','getBasicGristStyles','querySelector','deleteByIds','parseBasicGridConfigs','getParams','pageInitialized','isNotEmpty','updateMultiple','parseGristConfigs','isElement','patchesForUpdateMultiple','filterForm','grid_column','ox-grist','render','exportableData','289170CRUnSj','gridColumnConfig','active','find','2727KaDiSh','searchConfig','connectedCallback','10620WSOOQj','1332174LdOGOc','findOne','ox-filters-form','renderRoot','setSearchFormEditorValue','grid','location','grist','842758tNxVsD','isPage','358652tfkblo','search','save','styles','context-path','filterFormId','tTitle','getSelectedIdList','firstUpdated','fetch','parseGridConfigSet','2293314cocuZu','forEach','attributeChangedCallback','menuInfo','title','contextPath','properties','getContextObject','5eeClXw','672224zWxCKS','gristId','context'];a0_0x2c6f=function(){return _0x3feb05;};return a0_0x2c6f();}function a0_0x4c3d(_0x562eae,_0xd6c537){const _0x2c6f2e=a0_0x2c6f();return a0_0x4c3d=function(_0x4c3de5,_0x23bf5d){_0x4c3de5=_0x4c3de5-0x91;let _0x403606=_0x2c6f2e[_0x4c3de5];return _0x403606;},a0_0x4c3d(_0x562eae,_0xd6c537);}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=_0x515dae=>class extends MetaButtonMixin(_0x515dae){static get[a0_0x1263b9(0xa7)](){const _0x3be862=a0_0x1263b9;return MetaApi[_0x3be862(0xbe)]();}static get[a0_0x1263b9(0xb5)](){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_0x1263b9(0xa1)](){const _0x59a5a2=a0_0x1263b9;return this[_0x59a5a2(0x9d)][_0x59a5a2(0xbf)](this[_0x59a5a2(0xb9)]);}get[a0_0x1263b9(0xc9)](){const _0x402b43=a0_0x1263b9;return this['shadowRoot']?.[_0x402b43(0xbf)](this[_0x402b43(0xa9)]);}get[a0_0x1263b9(0xba)](){const _0x52142e=a0_0x1263b9;return MetaUiUtil[_0x52142e(0xb6)](this);}async[a0_0x1263b9(0x98)](){const _0x36c570=a0_0x1263b9;this[_0x36c570(0xb9)]=_0x36c570(0xcb),this['filterFormId']=_0x36c570(0x9c),await this['getAndParseMenuMeta'](),this[_0x36c570(0xc7)]&&await this[_0x36c570(0xc6)](),super['connectedCallback']&&await super[_0x36c570(0x98)]();}async[a0_0x1263b9(0xac)](){const _0x30be3b=a0_0x1263b9;super[_0x30be3b(0xac)]&&await super[_0x30be3b(0xac)]();}async[a0_0x1263b9(0xc3)](){const _0x561294=a0_0x1263b9;this[_0x561294(0xa3)]&&await this[_0x561294(0xc6)](),super['pageInitialized']&&await super[_0x561294(0xc3)]();}[a0_0x1263b9(0xcc)](){const _0x44bf30=a0_0x1263b9;return html`
|
|
2
|
+
${MetaApi[_0x44bf30(0xbc)](this)}
|
|
3
|
+
${this['isPage']?html``:MetaUiUtil[_0x44bf30(0xbd)](this)}
|
|
4
|
+
`;}[a0_0x1263b9(0xb1)](_0x2bb054,_0x5ce63a,_0x3564cf){const _0x3bf6ee=a0_0x1263b9;if(super[_0x3bf6ee(0xb1)](_0x2bb054,_0x5ce63a,_0x3564cf),_0x3bf6ee(0xa8)===_0x2bb054&&!0x0===this[_0x3bf6ee(0x94)]&&ValueUtil[_0x3bf6ee(0xc4)](this[_0x3bf6ee(0xb4)])){const _0x4ab9cd=new URLSearchParams(window[_0x3bf6ee(0xa0)][_0x3bf6ee(0xa5)]);ValueUtil[_0x3bf6ee(0xc4)](_0x4ab9cd)&&(_0x4ab9cd[_0x3bf6ee(0xb0)]((_0xe63897,_0x3303a8)=>{const _0x40ee32=_0x3bf6ee;MetaApi[_0x40ee32(0x9e)](_0x3303a8,_0xe63897);}),this[_0x3bf6ee(0xad)]());}}[a0_0x1263b9(0xc1)](_0x4b6a35){const _0x2b7e58=a0_0x1263b9;this['gridConfig']=_0x4b6a35[_0x2b7e58(0x9f)],this[_0x2b7e58(0x93)]=_0x4b6a35[_0x2b7e58(0xca)],this[_0x2b7e58(0x97)]=_0x4b6a35[_0x2b7e58(0xa5)];}async['parseGristConfigs'](){const _0x5e2837=a0_0x1263b9;this['gristConfigSet']=await MetaApi[_0x5e2837(0xae)](this);}async[a0_0x1263b9(0xad)](){const _0xcfc380=a0_0x1263b9;await this[_0xcfc380(0xa1)]['fetch']();}async[a0_0x1263b9(0xa6)](){const _0x4386e4=a0_0x1263b9;let _0x575c04=MetaApi[_0x4386e4(0xc8)](this[_0x4386e4(0xa1)]);!!ValueUtil[_0x4386e4(0xc4)](_0x575c04)&&await this[_0x4386e4(0xc5)](_0x575c04)&&this[_0x4386e4(0xad)]();}async[a0_0x1263b9(0x95)](){const _0x3f3a17=a0_0x1263b9;let _0x28675a=MetaApi['getSelectedIdList'](this[_0x3f3a17(0xa1)],!0x0);return ValueUtil[_0x3f3a17(0xc4)](_0x28675a)?await this[_0x3f3a17(0x9b)](_0x28675a[0x0]):{};}async['delete'](){const _0xcd201=a0_0x1263b9;let _0x592209=MetaApi[_0xcd201(0xab)](this[_0xcd201(0xa1)],!0x0);!!ValueUtil[_0xcd201(0xc4)](_0x592209)&&await this[_0xcd201(0xc0)](_0x592209)&&this['fetch']();}async['export'](){const _0x252409=a0_0x1263b9;let _0x92e29e=TermsUtil[_0x252409(0xaa)](ValueUtil[_0x252409(0xc2)](this[_0x252409(0xb2)],_0x252409(0xb3)));return await MetaApi[_0x252409(0x91)](this[_0x252409(0xc7)],_0x92e29e,this[_0x252409(0xa1)]);}async['import'](){}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x311cc2=a0_0x20e2;function a0_0x20e2(_0x5b656a,_0x130030){const _0x7b76d4=a0_0x7b76();return a0_0x20e2=function(_0x20e201,_0x3b0839){_0x20e201=_0x20e201-0x12d;let _0x4b4f43=_0x7b76d4[_0x20e201];return _0x4b4f43;},a0_0x20e2(_0x5b656a,_0x130030);}(function(_0x1deeb9,_0x3cd88a){const _0x2c1abb=a0_0x20e2,_0x5b6936=_0x1deeb9();while(!![]){try{const _0x109b81=parseInt(_0x2c1abb(0x12d))/0x1+-parseInt(_0x2c1abb(0x146))/0x2+-parseInt(_0x2c1abb(0x147))/0x3+-parseInt(_0x2c1abb(0x145))/0x4+parseInt(_0x2c1abb(0x138))/0x5+parseInt(_0x2c1abb(0x132))/0x6*(parseInt(_0x2c1abb(0x12f))/0x7)+-parseInt(_0x2c1abb(0x135))/0x8*(-parseInt(_0x2c1abb(0x139))/0x9);if(_0x109b81===_0x3cd88a)break;else _0x5b6936['push'](_0x5b6936['shift']());}catch(_0xced44a){_0x5b6936['push'](_0x5b6936['shift']());}}}(a0_0x7b76,0xe6784));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x7b76(){const _0xfd7ba7=['getCustomButtonContainerStyle','customButtonHandler','import','getButtonActionHandler','export','isPage','getButtonContainer','add','isButtonExist','3933728vNWbRL','173112qOwwpc','5487819jzLzRh','152319ZqpZUF','getCustomButtonContainerStyles','2933OjcZmi','getContextButtons','useButtonImport','5868KKzZAa','parseBasicButtonConfigs','gristButtonHandler','12555824gmeNsg','useButtonExport','useButtonAdd','711040EbQJyS','18qFOSoK','properties','buttonConfig'];a0_0x7b76=function(){return _0xfd7ba7;};return a0_0x7b76();}export const MetaButtonMixin=_0x3c4655=>class extends MetaServiceMixin(_0x3c4655){static get[a0_0x311cc2(0x13a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x311cc2(0x13c)](){const _0x2b91c0=a0_0x311cc2;return MetaUiUtil[_0x2b91c0(0x12e)]();}[a0_0x311cc2(0x130)](){const _0x2cbbc2=a0_0x311cc2;return MetaUiUtil[_0x2cbbc2(0x130)](this);}[a0_0x311cc2(0x142)](){const _0x527dec=a0_0x311cc2;return this[_0x527dec(0x141)]?html``:MetaUiUtil[_0x527dec(0x142)](this);}async['getBasicButtonHandler'](_0x47bfac,_0x5591c0,_0xe06feb){const _0x2ee77c=a0_0x311cc2;return await MetaUiUtil[_0x2ee77c(0x13f)](this,_0x47bfac,_0x5591c0,_0xe06feb);}async[a0_0x311cc2(0x13d)](_0x8a471f){await MetaUiUtil['customButtonHandler'](this,_0x8a471f);}async[a0_0x311cc2(0x134)](_0xe5ba82,_0x1f93ee){const _0x2c8d1b=a0_0x311cc2;await MetaUiUtil[_0x2c8d1b(0x134)](this,_0xe5ba82,_0x1f93ee);}[a0_0x311cc2(0x133)](_0x4bc996){const _0x4d412c=a0_0x311cc2;this['buttonConfig']=_0x4bc996['button'],this[_0x4d412c(0x131)]=MetaUiUtil['isButtonExist'](this[_0x4d412c(0x13b)],_0x4d412c(0x13e)),this[_0x4d412c(0x136)]=MetaUiUtil[_0x4d412c(0x144)](this['buttonConfig'],_0x4d412c(0x140)),this[_0x4d412c(0x137)]=MetaUiUtil[_0x4d412c(0x144)](this[_0x4d412c(0x13b)],_0x4d412c(0x143));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2bcd42=a0_0x13a1;(function(_0x32824f,_0x55838c){const _0x3ead8d=a0_0x13a1,_0x5d8389=_0x32824f();while(!![]){try{const _0x145bf1=parseInt(_0x3ead8d(0x15f))/0x1+parseInt(_0x3ead8d(0x15c))/0x2+parseInt(_0x3ead8d(0x143))/0x3*(-parseInt(_0x3ead8d(0x144))/0x4)+parseInt(_0x3ead8d(0x149))/0x5+parseInt(_0x3ead8d(0x165))/0x6*(-parseInt(_0x3ead8d(0x16a))/0x7)+parseInt(_0x3ead8d(0x14f))/0x8*(-parseInt(_0x3ead8d(0x168))/0x9)+parseInt(_0x3ead8d(0x150))/0xa*(parseInt(_0x3ead8d(0x15a))/0xb);if(_0x145bf1===_0x55838c)break;else _0x5d8389['push'](_0x5d8389['shift']());}catch(_0x5b2fb5){_0x5d8389['push'](_0x5d8389['shift']());}}}(a0_0x4ab8,0x7b2f4));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x4ab8(){const _0x5b16a2=['split','isEmpty','searchByPagination','6JRQwHx','isArray','name','9dqWOva','deleteListByIds','6441029eHlzMP','fetchHandler','deleteByIds','gql','forEach','skip_fields','getQueryFilters','func','114207BlGyrQ','8koJOpt','findOne','columns','records','getSelectColumns','2660405UzapSk','filter','parent_id','includes','isElement','after_set_fields','738376zBwsGt','110IzAqrs','parseBasicServiceConfigs','isNotEmpty','multiple','gristConfigSet','filterForm','map','filters','query','formConfigSet','229911YwLluE','updateMultiple','778440nizhSK','mutation','delete','441934assjoW','getParams','gqlInfo'];a0_0x4ab8=function(){return _0x5b16a2;};return a0_0x4ab8();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x13a1(_0x5454ac,_0x52ed25){const _0x4ab8d9=a0_0x4ab8();return a0_0x13a1=function(_0x13a1d7,_0xf1f5ad){_0x13a1d7=_0x13a1d7-0x13d;let _0xaeac3d=_0x4ab8d9[_0x13a1d7];return _0xaeac3d;},a0_0x13a1(_0x5454ac,_0x52ed25);}export const MetaServiceMixin=_0x5646de=>class extends MetaBaseMixin(_0x5646de){static get['properties'](){return{'gqlInfo':Object};}[a0_0x2bcd42(0x151)](_0x264c9f){const _0x310408=a0_0x2bcd42;this['gqlInfo']=_0x264c9f[_0x310408(0x13e)];}async[a0_0x2bcd42(0x16b)]({page:_0x42eee5=0x0,limit:_0x5ba088=0x0,sortings:_0xb3306e=[],filters:_0x21e6c5=[]}){const _0x15fb9c=a0_0x2bcd42;if(!this[_0x15fb9c(0x154)])return{'total':0x0,'records':[]};let _0x25c1c5=ValueUtil[_0x15fb9c(0x163)](_0x21e6c5)?await this[_0x15fb9c(0x155)]?.[_0x15fb9c(0x141)]()||[]:_0x21e6c5,_0x302114=ValueUtil[_0x15fb9c(0x160)](this[_0x15fb9c(0x161)],'query','list_func'),_0x31d084=ValueUtil[_0x15fb9c(0x160)](this['gqlInfo'],'query',_0x15fb9c(0x157)),_0x5c6b7f=ValueUtil['getParams'](this[_0x15fb9c(0x161)],'query',_0x15fb9c(0x14e));if(ValueUtil['isNotEmpty'](_0x31d084)&&(_0x25c1c5=adjustFilters(_0x25c1c5,_0x31d084)),this[_0x15fb9c(0x14d)]){let _0x217153=ValueUtil[_0x15fb9c(0x160)](this[_0x15fb9c(0x161)],_0x15fb9c(0x158),_0x15fb9c(0x14b));ValueUtil['isNotEmpty'](_0x217153)&&ValueUtil[_0x15fb9c(0x152)](this[_0x15fb9c(0x14b)])&&(_0x25c1c5=adjustFilters(_0x25c1c5,[{'name':_0x217153,'operator':'eq','value':this['parent_id']}]));}let _0x3cf2de=Object['keys'](_0x5c6b7f||{}),_0x29de88=MetaApi[_0x15fb9c(0x148)](this['gristConfigSet'][_0x15fb9c(0x146)]['filter'](_0x530263=>!_0x3cf2de['includes'](_0x530263[_0x15fb9c(0x167)]))),_0x440949=await MetaApi[_0x15fb9c(0x164)](_0x302114,_0x25c1c5,_0xb3306e,_0x42eee5,_0x5ba088,_0x29de88);return ValueUtil[_0x15fb9c(0x152)](_0x5c6b7f)&&ValueUtil['isNotEmpty'](_0x440949)&&ValueUtil[_0x15fb9c(0x152)](_0x440949[_0x15fb9c(0x147)])&&_0x440949[_0x15fb9c(0x147)][_0x15fb9c(0x156)](_0x57dff0=>(_0x3cf2de[_0x15fb9c(0x13f)](_0x1649d5=>{const _0x4420e9=_0x15fb9c;_0x57dff0[_0x1649d5]=ValueUtil[_0x4420e9(0x160)](_0x57dff0,..._0x5c6b7f[_0x1649d5][_0x4420e9(0x162)]('.'));}),_0x57dff0)),_0x440949;}async[a0_0x2bcd42(0x145)](_0x1e0da6){const _0x1d26fb=a0_0x2bcd42;let _0x24ea66=ValueUtil[_0x1d26fb(0x160)](this[_0x1d26fb(0x161)],_0x1d26fb(0x158),'find_one_func'),_0x51b914=ValueUtil[_0x1d26fb(0x160)](this[_0x1d26fb(0x161)],'query',_0x1d26fb(0x14e)),_0x4164c0=Object['keys'](_0x51b914||{}),_0x2bb71f=MetaApi[_0x1d26fb(0x148)]((this[_0x1d26fb(0x154)]?this['gristConfigSet']:{'columns':this[_0x1d26fb(0x159)]})[_0x1d26fb(0x146)][_0x1d26fb(0x14a)](_0x5d678c=>!_0x4164c0[_0x1d26fb(0x14c)](_0x5d678c['name']))),_0x496c9f=await MetaApi[_0x1d26fb(0x145)](_0x24ea66,_0x1e0da6,_0x2bb71f);return ValueUtil[_0x1d26fb(0x152)](_0x51b914)&&ValueUtil[_0x1d26fb(0x152)](_0x496c9f)&&_0x4164c0[_0x1d26fb(0x13f)](_0x5e2745=>{const _0x1a8f86=_0x1d26fb;_0x496c9f[_0x5e2745]=ValueUtil[_0x1a8f86(0x160)](_0x496c9f,..._0x51b914[_0x5e2745][_0x1a8f86(0x162)]('.'));}),_0x496c9f;}async[a0_0x2bcd42(0x13d)](_0x1292a4){const _0x535c71=a0_0x2bcd42;let _0x38ecf1=ValueUtil[_0x535c71(0x160)](this['gqlInfo'],_0x535c71(0x15d),_0x535c71(0x15e),_0x535c71(0x142));return await MetaApi[_0x535c71(0x169)](_0x1292a4,_0x38ecf1);}async[a0_0x2bcd42(0x15b)](_0x1f8884){const _0x27a227=a0_0x2bcd42;let _0x3f8fe1=ValueUtil[_0x27a227(0x160)](this[_0x27a227(0x161)],'mutation',_0x27a227(0x153),'func'),_0x24b553=ValueUtil[_0x27a227(0x160)](this[_0x27a227(0x161)],'mutation',_0x27a227(0x153),_0x27a227(0x140));if(ValueUtil[_0x27a227(0x152)](_0x24b553)&&(_0x24b553=_0x24b553['map'](_0x12717a=>_0x12717a['includes']('.')?_0x12717a['split']('.'):_0x12717a),_0x1f8884=_0x1f8884[_0x27a227(0x156)](_0x45a5c1=>(_0x24b553[_0x27a227(0x13f)](_0x281ddb=>{const _0x1c22e2=_0x27a227;Array[_0x1c22e2(0x166)](_0x281ddb)?delete _0x45a5c1[_0x281ddb[0x0]][_0x281ddb[0x1]]:delete _0x45a5c1[_0x281ddb];}),_0x45a5c1))),this[_0x27a227(0x14d)]&&ValueUtil['isNotEmpty'](this['parent_id'])){let _0x2e40d8=ValueUtil['getParams'](this[_0x27a227(0x161)],'mutation','multiple',_0x27a227(0x14b));ValueUtil[_0x27a227(0x152)](_0x2e40d8)&&_0x1f8884[_0x27a227(0x13f)](_0x908502=>{const _0x231ef8=_0x27a227;if(_0x2e40d8[_0x231ef8(0x14c)]('.')){let _0x1dfd84=_0x2e40d8[_0x231ef8(0x162)]('.');_0x908502[_0x1dfd84[0x0]]={},_0x908502[_0x1dfd84[0x0]][_0x1dfd84[0x1]]=this[_0x231ef8(0x14b)];}else _0x908502[_0x2e40d8]=this[_0x231ef8(0x14b)];});}return await MetaApi[_0x27a227(0x15b)](_0x3f8fe1,_0x1f8884);}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x4bd7be=a0_0x38ce;function a0_0x4c13(){var _0x431467=['501ljTkWF','define','34928720zTJChf','942522hvYNnO','4089495gwZQwX','690947GieIbi','context','customElements','1209880XgpDel','20804AiiKlR','loading-page','7ONjZMz','Loading\x20...','7588376UXlBur','9CXJiUO'];a0_0x4c13=function(){return _0x431467;};return a0_0x4c13();}(function(_0x515799,_0x1d871a){var _0x1e0091=a0_0x38ce,_0x207c2c=_0x515799();while(!![]){try{var _0x2dacf2=-parseInt(_0x1e0091(0x8b))/0x1+parseInt(_0x1e0091(0x8e))/0x2+parseInt(_0x1e0091(0x86))/0x3*(-parseInt(_0x1e0091(0x8f))/0x4)+-parseInt(_0x1e0091(0x8a))/0x5+parseInt(_0x1e0091(0x89))/0x6*(parseInt(_0x1e0091(0x91))/0x7)+parseInt(_0x1e0091(0x84))/0x8*(-parseInt(_0x1e0091(0x85))/0x9)+parseInt(_0x1e0091(0x88))/0xa;if(_0x2dacf2===_0x1d871a)break;else _0x207c2c['push'](_0x207c2c['shift']());}catch(_0x4144ae){_0x207c2c['push'](_0x207c2c['shift']());}}}(a0_0x4c13,0xe2cab));import{css,html}from'lit-element';function a0_0x38ce(_0xcc3c56,_0x59bd7b){var _0x4c13b5=a0_0x4c13();return a0_0x38ce=function(_0x38cecf,_0x260e14){_0x38cecf=_0x38cecf-0x84;var _0x45a55e=_0x4c13b5[_0x38cecf];return _0x45a55e;},a0_0x38ce(_0xcc3c56,_0x59bd7b);}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';class LoadingPage extends localize(i18next)(PageView){static get['styles'](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
background-color: var(--main-section-background-color);
|
|
@@ -41,11 +41,11 @@ function a0_0x2a1e(){var _0x4407da=['870HIbkdz','8217360eZpZWH','1221818QMLiEv',
|
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`];}get[
|
|
44
|
+
`];}get[a0_0x4bd7be(0x8c)](){var _0x5cb37a=a0_0x4bd7be;return{'title':_0x5cb37a(0x92),'actions':[]};}['render'](){return html`
|
|
45
45
|
<h2>페이지 로딩 중 입니다.</h2>
|
|
46
46
|
<p page-description>
|
|
47
47
|
잠시만 기다려주세요...
|
|
48
48
|
</p>
|
|
49
49
|
|
|
50
50
|
<img src="/assets/images/loading-page.png" />
|
|
51
|
-
`;}}window[
|
|
51
|
+
`;}}window[a0_0x4bd7be(0x8d)][a0_0x4bd7be(0x87)](a0_0x4bd7be(0x90),LoadingPage);
|
|
@@ -1,182 +1,38 @@
|
|
|
1
|
-
import '@operato/input/ox-input-code.js'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(parseInt(_0x4cf92c(0xa9)) / 0x1) * (parseInt(_0x4cf92c(0xc0)) / 0x2) +
|
|
33
|
-
-parseInt(_0x4cf92c(0xc6)) / 0x3 +
|
|
34
|
-
-parseInt(_0x4cf92c(0xb5)) / 0x4 +
|
|
35
|
-
(parseInt(_0x4cf92c(0xb0)) / 0x5) * (parseInt(_0x4cf92c(0xc1)) / 0x6) +
|
|
36
|
-
(-parseInt(_0x4cf92c(0xba)) / 0x7) * (-parseInt(_0x4cf92c(0xb3)) / 0x8) +
|
|
37
|
-
-parseInt(_0x4cf92c(0xbb)) / 0x9 +
|
|
38
|
-
(parseInt(_0x4cf92c(0xc9)) / 0xa) * (parseInt(_0x4cf92c(0xcc)) / 0xb)
|
|
39
|
-
if (_0x420ce6 === _0x34d874) break
|
|
40
|
-
else _0x120176['push'](_0x120176['shift']())
|
|
41
|
-
} catch (_0x41ce8d) {
|
|
42
|
-
_0x120176['push'](_0x120176['shift']())
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
})(a0_0x1fd9, 0x4d026)
|
|
46
|
-
|
|
47
|
-
function a0_0x1fd9() {
|
|
48
|
-
const _0xc49ba3 = [
|
|
49
|
-
'dynamic-menu-template',
|
|
50
|
-
'info',
|
|
51
|
-
'914046uoTLqa',
|
|
52
|
-
'text.there_is_nothing_to_save',
|
|
53
|
-
'getState',
|
|
54
|
-
'795560wBVqZv',
|
|
55
|
-
'showAlertPopup',
|
|
56
|
-
'dispatchEvent',
|
|
57
|
-
'11yFFMzv',
|
|
58
|
-
'recordId',
|
|
59
|
-
'properties',
|
|
60
|
-
'error',
|
|
61
|
-
'28507KCaVzI',
|
|
62
|
-
'error.invalid\x20license\x20key',
|
|
63
|
-
'metaUI',
|
|
64
|
-
'query',
|
|
65
|
-
'template',
|
|
66
|
-
'findOne',
|
|
67
|
-
'value',
|
|
68
|
-
'10gRbEqA',
|
|
69
|
-
'codeValueNew',
|
|
70
|
-
'studioPermission',
|
|
71
|
-
'430792iUSTxY',
|
|
72
|
-
'bind',
|
|
73
|
-
'2011024gfpTIy',
|
|
74
|
-
'updateMultiple',
|
|
75
|
-
'text.nothing_changed',
|
|
76
|
-
'firstUpdated',
|
|
77
|
-
'codeEditor',
|
|
78
|
-
'14MKcwYe',
|
|
79
|
-
'692748VCXwjI',
|
|
80
|
-
'render',
|
|
81
|
-
'save',
|
|
82
|
-
'querySelector',
|
|
83
|
-
'menu',
|
|
84
|
-
'32KLHuyu',
|
|
85
|
-
'1669422iJTUUa',
|
|
86
|
-
'title',
|
|
87
|
-
'orgValue'
|
|
88
|
-
]
|
|
89
|
-
a0_0x1fd9 = function () {
|
|
90
|
-
return _0xc49ba3
|
|
91
|
-
}
|
|
92
|
-
return a0_0x1fd9()
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
class DynamicMenuTemplate extends localize(i18next)(LitElement) {
|
|
96
|
-
static get [a0_0x573980(0xce)]() {
|
|
97
|
-
return { title: String, recordId: String }
|
|
98
|
-
}
|
|
99
|
-
static get ['styles']() {
|
|
100
|
-
return [
|
|
101
|
-
ScrollbarStyles,
|
|
102
|
-
css`
|
|
103
|
-
:host {
|
|
104
|
-
display: flex;
|
|
105
|
-
flex-direction: column;
|
|
106
|
-
overflow-x: overlay;
|
|
107
|
-
background-color: var(--main-section-background-color);
|
|
108
|
-
}
|
|
109
|
-
legend {
|
|
110
|
-
margin: 10px;
|
|
111
|
-
text-transform: capitalize;
|
|
112
|
-
padding: var(--legend-padding);
|
|
113
|
-
font: var(--legend-font);
|
|
114
|
-
color: var(--legend-text-color);
|
|
115
|
-
border-bottom: var(--legend-border-bottom);
|
|
116
|
-
}
|
|
117
|
-
ox-input-code {
|
|
118
|
-
margin: 10px;
|
|
119
|
-
overflow-y: auto;
|
|
120
|
-
flex: 1;
|
|
121
|
-
}
|
|
122
|
-
.button-container {
|
|
123
|
-
padding: var(--button-container-padding);
|
|
124
|
-
margin: var(--button-container-margin);
|
|
125
|
-
text-align: var(--button-container-align);
|
|
126
|
-
background-color: var(--button-container-background);
|
|
127
|
-
height: var(--button-container-height);
|
|
128
|
-
text-align: right;
|
|
129
|
-
padding-right: 12px;
|
|
130
|
-
}
|
|
131
|
-
`
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
async ['firstUpdated']() {
|
|
135
|
-
const _0x403ed7 = a0_0x573980
|
|
136
|
-
super[_0x403ed7(0xb8)] && (await super[_0x403ed7(0xb8)]())
|
|
137
|
-
let _0x5b0752 = await MetaApi[_0x403ed7(0xae)](_0x403ed7(0xbf), this['recordId'], _0x403ed7(0xad)),
|
|
138
|
-
_0x1ddb10 = (_0x5b0752 && _0x5b0752[_0x403ed7(0xad)]) || ''
|
|
139
|
-
;(this[_0x403ed7(0xb9)][_0x403ed7(0xaf)] = _0x1ddb10),
|
|
140
|
-
(this[_0x403ed7(0xb9)][_0x403ed7(0xc3)] = this[_0x403ed7(0xb9)][_0x403ed7(0xaf)])
|
|
141
|
-
}
|
|
142
|
-
[a0_0x573980(0xbc)]() {
|
|
143
|
-
const _0x54c4ee = a0_0x573980
|
|
144
|
-
return html` <legend>${this[_0x54c4ee(0xc2)]}</legend>
|
|
145
|
-
<ox-input-code mode="javascript" value=${this[_0x54c4ee(0xb1)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
1
|
+
const a0_0x5c43cd=a0_0x29e8;(function(_0x550d6b,_0x2a11d0){const _0x2e7cf8=a0_0x29e8,_0x3b98fa=_0x550d6b();while(!![]){try{const _0x217cb2=-parseInt(_0x2e7cf8(0x1c4))/0x1*(parseInt(_0x2e7cf8(0x1be))/0x2)+-parseInt(_0x2e7cf8(0x1cd))/0x3*(-parseInt(_0x2e7cf8(0x1da))/0x4)+parseInt(_0x2e7cf8(0x1d3))/0x5*(parseInt(_0x2e7cf8(0x1cb))/0x6)+parseInt(_0x2e7cf8(0x1cc))/0x7+parseInt(_0x2e7cf8(0x1e3))/0x8*(parseInt(_0x2e7cf8(0x1ce))/0x9)+parseInt(_0x2e7cf8(0x1df))/0xa+-parseInt(_0x2e7cf8(0x1d4))/0xb;if(_0x217cb2===_0x2a11d0)break;else _0x3b98fa['push'](_0x3b98fa['shift']());}catch(_0x2905e9){_0x3b98fa['push'](_0x3b98fa['shift']());}}}(a0_0x502a,0x7857e));import a0_0x4cbe32 from'graphql-tag';function a0_0x29e8(_0xdec726,_0x5c51b5){const _0x502a1b=a0_0x502a();return a0_0x29e8=function(_0x29e80d,_0x465c9a){_0x29e80d=_0x29e80d-0x1ba;let _0x59f76f=_0x502a1b[_0x29e80d];return _0x59f76f;},a0_0x29e8(_0xdec726,_0x5c51b5);}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_0x502a(){const _0x5d9c6d=['recordId','styles','104242TwSBrn','codeValueNew','info','orgValue','shadowRoot','updateMultiple','1rJjhgV','template','error','updateMultipleMenu','save','bind','render','438VdOgRM','2383423YURuxQ','12jwTNTh','4614453tuqvsN','codeEditor','tButton','error.invalid\x20license\x20key','firstUpdated','36280gPtnQO','28408644hadGVB','title','define','querySelector','back','menu','935440TJvPsZ','metaUI','errors','value','getState','8093170TJJbDZ','notify','dispatchEvent','dynamic-menu-template','8bTSYlT','query','studioPermission','findOne'];a0_0x502a=function(){return _0x5d9c6d;};return a0_0x502a();}import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get['properties'](){return{'title':String,'recordId':String};}static get[a0_0x5c43cd(0x1bd)](){return[ScrollbarStyles,css`
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
overflow-x: overlay;
|
|
6
|
+
background-color: var(--main-section-background-color);
|
|
7
|
+
}
|
|
8
|
+
legend {
|
|
9
|
+
margin:10px;
|
|
10
|
+
text-transform: capitalize;
|
|
11
|
+
padding: var(--legend-padding);
|
|
12
|
+
font: var(--legend-font);
|
|
13
|
+
color: var(--legend-text-color);
|
|
14
|
+
border-bottom: var(--legend-border-bottom);
|
|
15
|
+
}
|
|
16
|
+
ox-input-code {
|
|
17
|
+
margin:10px;
|
|
18
|
+
overflow-y: auto;
|
|
19
|
+
flex: 1;
|
|
20
|
+
}
|
|
21
|
+
.button-container {
|
|
22
|
+
padding: var(--button-container-padding);
|
|
23
|
+
margin: var(--button-container-margin);
|
|
24
|
+
text-align: var(--button-container-align);
|
|
25
|
+
background-color: var(--button-container-background);
|
|
26
|
+
height: var(--button-container-height);
|
|
27
|
+
text-align: right;
|
|
28
|
+
padding-right: 12px;
|
|
29
|
+
}`];}async[a0_0x5c43cd(0x1d2)](){const _0x13418a=a0_0x5c43cd;super['firstUpdated']&&await super[_0x13418a(0x1d2)]();let _0x2805db=await MetaApi[_0x13418a(0x1bb)](_0x13418a(0x1d9),this[_0x13418a(0x1bc)],_0x13418a(0x1c5)),_0x3558ef=_0x2805db&&_0x2805db[_0x13418a(0x1c5)]||'';this[_0x13418a(0x1cf)][_0x13418a(0x1dd)]=_0x3558ef,this[_0x13418a(0x1cf)]['orgValue']=this['codeEditor'][_0x13418a(0x1dd)];}[a0_0x5c43cd(0x1ca)](){const _0x2e80ed=a0_0x5c43cd;return html`
|
|
30
|
+
<legend>${this[_0x2e80ed(0x1d5)]}</legend>
|
|
31
|
+
<ox-input-code mode="javascript" value=${this[_0x2e80ed(0x1bf)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
146
32
|
<div id="button-container" class="button-container">
|
|
147
|
-
<!-- <mwc-button raised label="${TermsUtil[
|
|
148
|
-
|
|
149
|
-
)}></mwc-button> -->
|
|
150
|
-
</div>`
|
|
151
|
-
}
|
|
152
|
-
get ['codeEditor']() {
|
|
153
|
-
const _0x2434a0 = a0_0x573980
|
|
154
|
-
return this['shadowRoot'][_0x2434a0(0xbe)]('ox-input-code')
|
|
155
|
-
}
|
|
156
|
-
async [a0_0x573980(0xbd)]() {
|
|
157
|
-
const _0x185e33 = a0_0x573980
|
|
158
|
-
if (this[_0x185e33(0xb9)][_0x185e33(0xc3)] == this[_0x185e33(0xb9)]['value'])
|
|
159
|
-
return void MetaApi[_0x185e33(0xca)](_0x185e33(0xb7), _0x185e33(0xc7), _0x185e33(0xc5), 'confirm')
|
|
160
|
-
if (0x0 == store[_0x185e33(0xc8)]()[_0x185e33(0xab)][_0x185e33(0xb2)])
|
|
161
|
-
return void document[_0x185e33(0xcb)](
|
|
162
|
-
new CustomEvent('notify', { detail: { level: _0x185e33(0xa8), message: i18next['t'](_0x185e33(0xaa)) } })
|
|
163
|
-
)
|
|
164
|
-
if (
|
|
165
|
-
(
|
|
166
|
-
await client[_0x185e33(0xac)]({
|
|
167
|
-
query: a0_0x53d61b`
|
|
33
|
+
<!-- <mwc-button raised label="${TermsUtil[_0x2e80ed(0x1d0)](_0x2e80ed(0x1c8))}" @click=${this[_0x2e80ed(0x1c8)][_0x2e80ed(0x1c9)](this)}></mwc-button> -->
|
|
34
|
+
</div>`;}get[a0_0x5c43cd(0x1cf)](){const _0x1517b2=a0_0x5c43cd;return this[_0x1517b2(0x1c2)][_0x1517b2(0x1d7)]('ox-input-code');}async['save'](){const _0x16c05e=a0_0x5c43cd;if(this[_0x16c05e(0x1cf)][_0x16c05e(0x1c1)]==this['codeEditor'][_0x16c05e(0x1dd)])return void MetaApi['showAlertPopup']('text.nothing_changed','text.there_is_nothing_to_save',_0x16c05e(0x1c0),'confirm');if(0x0==store[_0x16c05e(0x1de)]()[_0x16c05e(0x1db)][_0x16c05e(0x1ba)])return void document[_0x16c05e(0x1e1)](new CustomEvent(_0x16c05e(0x1e0),{'detail':{'level':_0x16c05e(0x1c6),'message':i18next['t'](_0x16c05e(0x1d1))}}));if((await client[_0x16c05e(0x1e4)]({'query':a0_0x4cbe32`
|
|
168
35
|
query ($id: String!) {
|
|
169
36
|
metaUITemplateIsOverLimit(id: $id)
|
|
170
37
|
}
|
|
171
|
-
`,
|
|
172
|
-
variables: { id: this[_0x185e33(0xcd)] }
|
|
173
|
-
})
|
|
174
|
-
)['errors']
|
|
175
|
-
)
|
|
176
|
-
return
|
|
177
|
-
let _0x2abe55 = this[_0x185e33(0xb9)]['value'],
|
|
178
|
-
_0x558860 = [{ id: this[_0x185e33(0xcd)], template: _0x2abe55, cuFlag: 'M' }]
|
|
179
|
-
;(await MetaApi[_0x185e33(0xb6)]('updateMultipleMenu', _0x558860)) && history['back']()
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
customElements['define'](a0_0x573980(0xc4), DynamicMenuTemplate)
|
|
38
|
+
`,'variables':{'id':this[_0x16c05e(0x1bc)]}}))[_0x16c05e(0x1dc)])return;let _0x326ccd=this[_0x16c05e(0x1cf)][_0x16c05e(0x1dd)],_0x2ec5c8=[{'id':this[_0x16c05e(0x1bc)],'template':_0x326ccd,'cuFlag':'M'}];await MetaApi[_0x16c05e(0x1c3)](_0x16c05e(0x1c7),_0x2ec5c8)&&history[_0x16c05e(0x1d8)]();}}customElements[a0_0x5c43cd(0x1d6)](a0_0x5c43cd(0x1e2),DynamicMenuTemplate);
|