@things-factory/meta-ui 6.2.52 → 6.2.56
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 +1 -1
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +8 -8
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/file-upload-popup.js +11 -11
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/component/popup/record-based-code-editor-popup.js +11 -11
- 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-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-define-page.js +11 -11
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/button-role/button-role-detail.js +1 -1
- package/client/pages/button-role/button-role-page.js +1 -1
- package/client/pages/doc-number/doc-number-page.js +1 -1
- package/client/pages/doc-number/next-doc-number-popup.js +1 -1
- 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-setting-let.js +6 -6
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/menu/export-menu-popup.js +7 -7
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/printer-device/printer-device-page.js +1 -1
- package/client/pages/template/doc-template-page.js +1 -1
- package/client/pages/template/template-file-page.js +1 -1
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.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 +107 -108
- package/client/utils/service-util.js +35 -35
- 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 +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +10 -10
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x58394c=a0_0x4fd1;(function(_0x3e1b64,_0x7b1835){const _0x306ab3=a0_0x4fd1,_0x8d0524=_0x3e1b64();while(!![]){try{const _0x5eab8f=-parseInt(_0x306ab3(0x1a1))/0x1*(parseInt(_0x306ab3(0x183))/0x2)+-parseInt(_0x306ab3(0x186))/0x3+-parseInt(_0x306ab3(0x18d))/0x4+parseInt(_0x306ab3(0x196))/0x5+parseInt(_0x306ab3(0x19b))/0x6+parseInt(_0x306ab3(0x195))/0x7*(-parseInt(_0x306ab3(0x181))/0x8)+parseInt(_0x306ab3(0x192))/0x9;if(_0x5eab8f===_0x7b1835)break;else _0x8d0524['push'](_0x8d0524['shift']());}catch(_0x63e5e4){_0x8d0524['push'](_0x8d0524['shift']());}}}(a0_0x5e6a,0x8bbc3));function a0_0x5e6a(){const _0x569e39=['sortable','567060OTYvAx','properties','integer','dirty','render','15713667KWWuoF','querySelector','Histories','5133737OBcEkA','1564940HiWFdS','gridConfig','string','grist','bind','3495498wgBRvQ','parent_id','unusable','editable','dataRevisionNo','searchByPagination','161693ptsJat','getGristColumnConfig2','shadowRoot','list','center','#ox-grist','filter','record','open_param','getSelectColumns','8fOqFgv','dataRevisionAction','14XXHlBW','gristConfig','type','186516qhhJuf','fetchHandler','sorters','connectedCallback','gqlFunc','columns'];a0_0x5e6a=function(){return _0x569e39;};return a0_0x5e6a();}import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x4fd1(_0xb3b870,_0x41067f){const _0x5e6aaf=a0_0x5e6a();return a0_0x4fd1=function(_0x4fd14d,_0x12c5c6){_0x4fd14d=_0x4fd14d-0x17f;let _0x1490fd=_0x5e6aaf[_0x4fd14d];return _0x1490fd;},a0_0x4fd1(_0xb3b870,_0x41067f);}import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get['styles'](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -8,11 +8,11 @@ const a0_0x28d3a4=a0_0xca30;(function(_0x158254,_0xa1fbcb){const _0x53d811=a0_0x
|
|
|
8
8
|
overflow-y: auto;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
`];}static get[
|
|
11
|
+
`];}static get[a0_0x58394c(0x18e)](){return{'parent_id':String};}async[a0_0x58394c(0x189)](){const _0x2aee41=a0_0x58394c;let _0x1059ab=this[_0x2aee41(0x17f)][_0x2aee41(0x184)];this['gqlFunc']=this[_0x2aee41(0x17f)][_0x2aee41(0x18a)],delete _0x1059ab[_0x2aee41(0x1a4)],delete _0x1059ab['rows'],_0x1059ab['rows']={'appendable':!0x1,'selectable':!0x1},_0x1059ab[_0x2aee41(0x188)]=[{'name':'dataRevisionNo','desc':!0x0}];let _0x53920a=_0x1059ab[_0x2aee41(0x18b)][_0x2aee41(0x1a7)](_0x4122b5=>'gutter'!=_0x4122b5[_0x2aee41(0x185)]&&!0x0!==_0x4122b5[_0x2aee41(0x19d)]);_0x53920a['forEach'](_0x9ead5e=>{const _0xebe3e4=_0x2aee41;_0x9ead5e[_0xebe3e4(0x1a7)]&&delete _0x9ead5e[_0xebe3e4(0x1a7)],_0x9ead5e[_0xebe3e4(0x1a8)]||(_0x9ead5e[_0xebe3e4(0x1a8)]={}),_0x9ead5e[_0xebe3e4(0x18c)]=!0x1,_0x9ead5e[_0xebe3e4(0x1a8)][_0xebe3e4(0x19e)]=!0x1;}),_0x1059ab['columns']=[{'type':'gutter','gutterName':_0x2aee41(0x190)},MetaApi[_0x2aee41(0x1a2)](_0x2aee41(0x18f),_0x2aee41(0x19f),'data_revision_no',_0x2aee41(0x1a5),!0x1,!0x0,0x5a),MetaApi[_0x2aee41(0x1a2)](_0x2aee41(0x198),_0x2aee41(0x182),'data_revision_action',_0x2aee41(0x1a5),!0x1,!0x1,0x5a),..._0x53920a],this['gridConfig']=_0x1059ab,super[_0x2aee41(0x189)]&&await super[_0x2aee41(0x189)]();}[a0_0x58394c(0x191)](){const _0x4ce982=a0_0x58394c;return html`
|
|
12
12
|
<ox-grist
|
|
13
13
|
id="ox-grist"
|
|
14
|
-
.config=${this[
|
|
15
|
-
.mode=${
|
|
16
|
-
.fetchHandler=${this[
|
|
14
|
+
.config=${this[_0x4ce982(0x197)]}
|
|
15
|
+
.mode=${'GRID'} auto-fetch
|
|
16
|
+
.fetchHandler=${this['fetchHandler'][_0x4ce982(0x19a)](this)}>
|
|
17
17
|
</ox-grist>
|
|
18
|
-
`;}get[
|
|
18
|
+
`;}get[a0_0x58394c(0x199)](){const _0x30d649=a0_0x58394c;return this[_0x30d649(0x1a3)][_0x30d649(0x193)](_0x30d649(0x1a6));}async[a0_0x58394c(0x187)]({page:_0x396891=0x0,limit:_0x5623cf=0x0,sortings:_0x3cae7c=[],filters:_0x549a28=[]}){const _0x30eec7=a0_0x58394c;let _0x54c192=[{'name':'originalId','operator':'eq','value':this[_0x30eec7(0x19c)]},..._0x549a28],_0x27a76e=MetaApi[_0x30eec7(0x180)](this[_0x30eec7(0x197)][_0x30eec7(0x18b)]);return await MetaApi[_0x30eec7(0x1a0)](this[_0x30eec7(0x18a)]+_0x30eec7(0x194),_0x54c192,_0x3cae7c,_0x396891,_0x5623cf,_0x27a76e);}}customElements['define']('history-copy-list-popup',HistoryCopyListPopup);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x2830(_0x22e87f,_0x5ef905){const _0x2449aa=a0_0x2449();return a0_0x2830=function(_0x283015,_0x1a2416){_0x283015=_0x283015-0x12c;let _0x45a786=_0x2449aa[_0x283015];return _0x45a786;},a0_0x2830(_0x22e87f,_0x5ef905);}const a0_0x2a598e=a0_0x2830;function a0_0x2449(){const _0x1414e6=['center','dataRevisionAction','11PVZWpw','type','searchByPagination','15BYBUBR','415UZjhyK','979959eZtUFJ','63UnmdUq','styles','fetchHandler','columns','dirty','gristConfig','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20originalId\x0a\x20\x20\x20\x20\x20\x20dataRevisionNo\x0a\x20\x20\x20\x20\x20\x20dataRevisionAction\x0a\x20\x20\x20\x20\x20\x20historyJson\x0a\x20\x20\x20\x20','define','data_revision_action','data_revision_no','originalId','history-json-list-popup','11138UivmSS','integer','#ox-grist','gqlFunc','rows','55696AkodEq','open_param','historyJson','dataRevisionNo','record','sorters','string','editable','16UTZfav','shadowRoot','gridConfig','402997NWQVej','gutter','properties','Histories','bind','filter','render','1079350MiWjzU','getGristColumnConfig2','GRID','connectedCallback','parent_id','querySelector','sortable','2100564tPPGbS','610080qbAVWZ'];a0_0x2449=function(){return _0x1414e6;};return a0_0x2449();}(function(_0xe5cb37,_0x4a3236){const _0x13c061=a0_0x2830,_0x3e8f0c=_0xe5cb37();while(!![]){try{const _0x2aa96f=-parseInt(_0x13c061(0x149))/0x1+parseInt(_0x13c061(0x156))/0x2*(-parseInt(_0x13c061(0x147))/0x3)+-parseInt(_0x13c061(0x15b))/0x4*(-parseInt(_0x13c061(0x148))/0x5)+-parseInt(_0x13c061(0x140))/0x6+-parseInt(_0x13c061(0x132))/0x7*(-parseInt(_0x13c061(0x12f))/0x8)+-parseInt(_0x13c061(0x14a))/0x9*(-parseInt(_0x13c061(0x139))/0xa)+-parseInt(_0x13c061(0x144))/0xb*(-parseInt(_0x13c061(0x141))/0xc);if(_0x2aa96f===_0x4a3236)break;else _0x3e8f0c['push'](_0x3e8f0c['shift']());}catch(_0x289d16){_0x3e8f0c['push'](_0x3e8f0c['shift']());}}}(a0_0x2449,0xaf9d9));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0x2a598e(0x14b)](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -8,11 +8,11 @@ const a0_0x5d3a50=a0_0x3e38;(function(_0x3886b0,_0xecb9b6){const _0xb180fe=a0_0x
|
|
|
8
8
|
overflow-y: auto;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
`];}static get[
|
|
11
|
+
`];}static get[a0_0x2a598e(0x134)](){return{'parent_id':String};}async[a0_0x2a598e(0x13c)](){const _0x5e9457=a0_0x2a598e;let _0x480d64=this[_0x5e9457(0x15c)][_0x5e9457(0x14f)];this[_0x5e9457(0x159)]=this[_0x5e9457(0x15c)][_0x5e9457(0x159)],delete _0x480d64['list'],delete _0x480d64[_0x5e9457(0x15a)],_0x480d64['rows']={'appendable':!0x1,'selectable':!0x1},_0x480d64[_0x5e9457(0x12c)]=[{'name':'dataRevisionNo','desc':!0x0}];let _0x515960=_0x480d64[_0x5e9457(0x14d)][_0x5e9457(0x137)](_0x2e55d6=>_0x5e9457(0x133)!=_0x2e55d6[_0x5e9457(0x145)]&&!0x0!==_0x2e55d6['unusable']);_0x515960['forEach'](_0xc6f8e7=>{const _0x29386f=_0x5e9457;_0xc6f8e7['filter']&&delete _0xc6f8e7[_0x29386f(0x137)],_0xc6f8e7[_0x29386f(0x15f)]||(_0xc6f8e7['record']={}),_0xc6f8e7[_0x29386f(0x13f)]=!0x1,_0xc6f8e7[_0x29386f(0x15f)][_0x29386f(0x12e)]=!0x1;}),_0x480d64[_0x5e9457(0x14d)]=[{'type':_0x5e9457(0x133),'gutterName':_0x5e9457(0x14e)},MetaApi[_0x5e9457(0x13a)](_0x5e9457(0x157),_0x5e9457(0x15e),_0x5e9457(0x153),_0x5e9457(0x142),!0x1,!0x0,0x5a),MetaApi[_0x5e9457(0x13a)](_0x5e9457(0x12d),_0x5e9457(0x143),_0x5e9457(0x152),_0x5e9457(0x142),!0x1,!0x1,0x5a),..._0x515960],this[_0x5e9457(0x131)]=_0x480d64,super[_0x5e9457(0x13c)]&&await super[_0x5e9457(0x13c)]();}[a0_0x2a598e(0x138)](){const _0x51abaf=a0_0x2a598e;return html`
|
|
12
12
|
<ox-grist
|
|
13
13
|
id="ox-grist"
|
|
14
|
-
.config=${this[
|
|
15
|
-
.mode=${
|
|
16
|
-
.fetchHandler=${this[
|
|
14
|
+
.config=${this[_0x51abaf(0x131)]}
|
|
15
|
+
.mode=${_0x51abaf(0x13b)} auto-fetch
|
|
16
|
+
.fetchHandler=${this['fetchHandler'][_0x51abaf(0x136)](this)}>
|
|
17
17
|
</ox-grist>
|
|
18
|
-
`;}get[
|
|
18
|
+
`;}get['grist'](){const _0x45e025=a0_0x2a598e;return this[_0x45e025(0x130)][_0x45e025(0x13e)](_0x45e025(0x158));}async[a0_0x2a598e(0x14c)]({page:_0x39a471=0x0,limit:_0x40c00c=0x0,sortings:_0x2390a4=[],filters:_0x405aa2=[]}){const _0x2d8363=a0_0x2a598e;let _0x325e72=[{'name':_0x2d8363(0x154),'operator':'eq','value':this[_0x2d8363(0x13d)]},..._0x405aa2],_0x571b67=await MetaApi[_0x2d8363(0x146)](this[_0x2d8363(0x159)]+_0x2d8363(0x135),_0x325e72,_0x2390a4,_0x39a471,_0x40c00c,_0x2d8363(0x150));return _0x571b67['records']=_0x571b67['records']['map'](_0x389c64=>({...JSON['parse'](_0x389c64[_0x2d8363(0x15d)]),..._0x389c64})),_0x571b67;}}customElements[a0_0x2a598e(0x151)](a0_0x2a598e(0x155),HistoryJsonListPopup);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x52535d=a0_0xef15;(function(_0x387074,_0xc7b4d8){var _0x27bb65=a0_0xef15,_0x53a0d9=_0x387074();while(!![]){try{var _0x208986=parseInt(_0x27bb65(0x1ef))/0x1*(parseInt(_0x27bb65(0x1f3))/0x2)+-parseInt(_0x27bb65(0x1fe))/0x3*(parseInt(_0x27bb65(0x1fc))/0x4)+-parseInt(_0x27bb65(0x1f8))/0x5+parseInt(_0x27bb65(0x1ed))/0x6+parseInt(_0x27bb65(0x1f0))/0x7*(-parseInt(_0x27bb65(0x1f9))/0x8)+parseInt(_0x27bb65(0x1fd))/0x9+parseInt(_0x27bb65(0x1f5))/0xa*(parseInt(_0x27bb65(0x1f7))/0xb);if(_0x208986===_0xc7b4d8)break;else _0x53a0d9['push'](_0x53a0d9['shift']());}catch(_0x5cf559){_0x53a0d9['push'](_0x53a0d9['shift']());}}}(a0_0x4cbb,0xe7a10));function a0_0xef15(_0x598199,_0x1df4d3){var _0x4cbbbc=a0_0x4cbb();return a0_0xef15=function(_0xef151c,_0x1841c4){_0xef151c=_0xef151c-0x1ed;var _0x2e0854=_0x4cbbbc[_0xef151c];return _0x2e0854;},a0_0xef15(_0x598199,_0x1df4d3);}function a0_0x4cbb(){var _0x9ebfa=['loading\x20page','please\x20wait','2866220BzbIHU','6171633iHKgFs','6EgVkCH','2208882DrXNhA','loading-page','581478FwlOvZ','84MJltpq','tText','define','2RJOTmZ','context','390470LTKShH','styles','693Odnarb','6898825FuByHV','222464DrwYZZ'];a0_0x4cbb=function(){return _0x9ebfa;};return a0_0x4cbb();}import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{TermsUtil}from'../utils/terms-util';class LoadingPage extends localize(i18next)(PageView){static get[a0_0x52535d(0x1f6)](){return[css`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
background-color: var(--main-section-background-color);
|
|
@@ -41,11 +41,11 @@ var a0_0xf1739d=a0_0x36fe;(function(_0x3e48ce,_0x492c71){var _0x24a364=a0_0x36fe
|
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
`];}get[
|
|
45
|
-
<h2>${TermsUtil[
|
|
44
|
+
`];}get[a0_0x52535d(0x1f4)](){return{'title':'Loading\x20...','actions':[]};}['render'](){var _0x508e83=a0_0x52535d;return html`
|
|
45
|
+
<h2>${TermsUtil[_0x508e83(0x1f1)](_0x508e83(0x1fa))}</h2>
|
|
46
46
|
<p page-description>
|
|
47
|
-
${TermsUtil[
|
|
47
|
+
${TermsUtil[_0x508e83(0x1f1)](_0x508e83(0x1fb))}
|
|
48
48
|
</p>
|
|
49
49
|
|
|
50
50
|
<img src="/assets/images/loading-page.png" />
|
|
51
|
-
`;}}window['customElements'][
|
|
51
|
+
`;}}window['customElements'][a0_0x52535d(0x1f2)](a0_0x52535d(0x1ee),LoadingPage);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4c68ce=a0_0x202b;(function(_0x4851d1,_0x21e2b3){const _0x58a64b=a0_0x202b,_0x3480c5=_0x4851d1();while(!![]){try{const _0x5f44ce=-parseInt(_0x58a64b(0x13d))/0x1+-parseInt(_0x58a64b(0x13a))/0x2*(-parseInt(_0x58a64b(0x142))/0x3)+-parseInt(_0x58a64b(0x14c))/0x4*(-parseInt(_0x58a64b(0x146))/0x5)+-parseInt(_0x58a64b(0x144))/0x6+parseInt(_0x58a64b(0x14b))/0x7+parseInt(_0x58a64b(0x148))/0x8+-parseInt(_0x58a64b(0x13f))/0x9;if(_0x5f44ce===_0x21e2b3)break;else _0x3480c5['push'](_0x3480c5['shift']());}catch(_0x30f846){_0x3480c5['push'](_0x3480c5['shift']());}}}(a0_0x12b1,0x987a1));import'@material/mwc-formfield';function a0_0x202b(_0xffebc9,_0x2cd479){const _0x12b104=a0_0x12b1();return a0_0x202b=function(_0x202b12,_0x1e35e3){_0x202b12=_0x202b12-0x139;let _0x4a1e9d=_0x12b104[_0x202b12];return _0x4a1e9d;},a0_0x202b(_0xffebc9,_0x2cd479);}import'@material/mwc-checkbox';import'@operato/i18n/ox-i18n.js';import{css,html,LitElement}from'lit';import{i18next,localize}from'@things-factory/i18n-base';import{clientSettingStore}from'@things-factory/shell';import{setupMenuPart}from'@things-factory/meta-ui';export class DynamicMenuSettingLet extends localize(i18next)(LitElement){static get[a0_0x4c68ce(0x14a)](){return[css`
|
|
2
2
|
label {
|
|
3
3
|
font: var(--label-font);
|
|
4
4
|
color: var(--label-color);
|
|
5
5
|
text-transform: var(--label-text-transform);
|
|
6
6
|
}
|
|
7
|
-
`];}static get[
|
|
7
|
+
`];}static get[a0_0x4c68ce(0x140)](){return{'hovering':Boolean};}[a0_0x4c68ce(0x13e)](){const _0x49fb26=a0_0x4c68ce,_0x4c4e41=!0x0===this[_0x49fb26(0x145)],_0x3fba12=void 0x0===this['hovering'];return html`
|
|
8
8
|
<setting-let>
|
|
9
9
|
<ox-i18n slot="title" msgid="title.lite-menu-setting"></ox-i18n>
|
|
10
10
|
|
|
@@ -12,11 +12,11 @@ const a0_0x325828=a0_0x5c3e;function a0_0x5c3e(_0x794c39,_0x3c9f8e){const _0x432
|
|
|
12
12
|
<mwc-formfield label="hovering">
|
|
13
13
|
<mwc-checkbox
|
|
14
14
|
id="hovering"
|
|
15
|
-
@change=${
|
|
16
|
-
?checked=${
|
|
17
|
-
?indeterminate=${
|
|
15
|
+
@change=${_0x1cabbd=>this[_0x49fb26(0x149)](_0x1cabbd)}
|
|
16
|
+
?checked=${_0x4c4e41}
|
|
17
|
+
?indeterminate=${_0x3fba12}
|
|
18
18
|
></mwc-checkbox>
|
|
19
19
|
</mwc-formfield>
|
|
20
20
|
</div>
|
|
21
21
|
</setting-let>
|
|
22
|
-
`;}async[
|
|
22
|
+
`;}async[a0_0x4c68ce(0x141)](){const _0xf105d9=a0_0x4c68ce;this[_0xf105d9(0x145)]=((await clientSettingStore[_0xf105d9(0x143)](_0xf105d9(0x13c)))?.['value']||{})[_0xf105d9(0x145)];}async['onchange'](_0x5dc693){const _0x284eb6=a0_0x4c68ce;!0x0===this[_0x284eb6(0x145)]?this[_0x284eb6(0x145)]=!0x1:!0x1===this[_0x284eb6(0x145)]?this[_0x284eb6(0x145)]=void 0x0:this[_0x284eb6(0x145)]=!0x0;const {hovering:_0x20b72d}=(await clientSettingStore['get'](_0x284eb6(0x13c)))?.[_0x284eb6(0x13b)]||{};if(this['hovering']!==_0x20b72d){try{await clientSettingStore[_0x284eb6(0x139)]({'key':_0x284eb6(0x13c),'value':{'hovering':this[_0x284eb6(0x145)]}});}catch(_0x1f5dcf){console[_0x284eb6(0x147)](_0x1f5dcf);}setupMenuPart({'hovering':this['hovering']});}}}function a0_0x12b1(){const _0x20f719=['hovering','5ezIstR','error','4250328MyseaU','onchange','styles','2105824jaeDnf','3744536vHsVvD','put','176644unNDMa','value','dynamic-menu','654936KRuQGW','render','3601530tTfhiI','properties','firstUpdated','33KffbCv','get','6360888oLHxap'];a0_0x12b1=function(){return _0x20f719;};return a0_0x12b1();}customElements['define']('dynamic-menu-setting-let',DynamicMenuSettingLet);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x19e070=a0_0x45a6;(function(_0x1d30fb,_0x372818){const _0x4f82ae=a0_0x45a6,_0x19e482=_0x1d30fb();while(!![]){try{const _0x46acdd=parseInt(_0x4f82ae(0xbd))/0x1*(parseInt(_0x4f82ae(0xbe))/0x2)+-parseInt(_0x4f82ae(0xbf))/0x3*(parseInt(_0x4f82ae(0xac))/0x4)+-parseInt(_0x4f82ae(0xba))/0x5*(parseInt(_0x4f82ae(0xc6))/0x6)+-parseInt(_0x4f82ae(0xa5))/0x7+-parseInt(_0x4f82ae(0xb1))/0x8+-parseInt(_0x4f82ae(0xb5))/0x9+parseInt(_0x4f82ae(0xb3))/0xa*(parseInt(_0x4f82ae(0xb2))/0xb);if(_0x46acdd===_0x372818)break;else _0x19e482['push'](_0x19e482['shift']());}catch(_0x16b364){_0x19e482['push'](_0x19e482['shift']());}}}(a0_0x2431,0xefe08));function a0_0x45a6(_0x24169c,_0x162018){const _0x2431a7=a0_0x2431();return a0_0x45a6=function(_0x45a600,_0x2ce6e5){_0x45a600=_0x45a600-0xa1;let _0x2d5fd0=_0x2431a7[_0x45a600];return _0x2d5fd0;},a0_0x45a6(_0x24169c,_0x162018);}function a0_0x2431(){const _0x5cbb8a=['39799030oJikyk','text.nothing_changed','7231320GKTMVi','info','recordId','findOne','render','4162665sbsuGZ','showAlertPopup','codeValueNew','2Vabavd','1956346FwClwJ','60AjSMnI','save','metaUI','shadowRoot','menu','confirm','bind','6SyAHWy','codeEditor','querySelector','updateMultipleMenu','firstUpdated','13193999VVNyuB','define','title','error','value','template','orgValue','103724ytqLyh','text.there_is_nothing_to_save','tButton','errors','back','7313784bMiYYU','11IRfDpL'];a0_0x2431=function(){return _0x5cbb8a;};return a0_0x2431();}import a0_0x16020a 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';import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get['properties'](){return{'title':String,'recordId':String};}static get['styles'](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -26,13 +26,13 @@ const a0_0x2b21e=a0_0x2041;(function(_0x37dd49,_0x137b19){const _0x2e1ae3=a0_0x2
|
|
|
26
26
|
height: var(--button-container-height);
|
|
27
27
|
text-align: right;
|
|
28
28
|
padding-right: 12px;
|
|
29
|
-
}`];}async[
|
|
30
|
-
<legend>${this[
|
|
31
|
-
<ox-input-code mode="javascript" value=${this[
|
|
29
|
+
}`];}async[a0_0x19e070(0xa4)](){const _0x274d02=a0_0x19e070;super[_0x274d02(0xa4)]&&await super[_0x274d02(0xa4)]();let _0x483c21=await MetaApi[_0x274d02(0xb8)](_0x274d02(0xc3),this[_0x274d02(0xb7)],'template'),_0x4a4cae=_0x483c21&&_0x483c21[_0x274d02(0xaa)]||'';this[_0x274d02(0xa1)][_0x274d02(0xa9)]=_0x4a4cae,this[_0x274d02(0xa1)]['orgValue']=this[_0x274d02(0xa1)][_0x274d02(0xa9)];}[a0_0x19e070(0xb9)](){const _0x211319=a0_0x19e070;return html`
|
|
30
|
+
<legend>${this[_0x211319(0xa7)]}</legend>
|
|
31
|
+
<ox-input-code mode="javascript" value=${this[_0x211319(0xbc)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
32
32
|
<div id="button-container" class="button-container">
|
|
33
|
-
<!-- <mwc-button raised label="${TermsUtil[
|
|
34
|
-
</div>`;}get[
|
|
33
|
+
<!-- <mwc-button raised label="${TermsUtil[_0x211319(0xae)]('save')}" @click=${this[_0x211319(0xc0)][_0x211319(0xc5)](this)}></mwc-button> -->
|
|
34
|
+
</div>`;}get[a0_0x19e070(0xa1)](){const _0xec9bf7=a0_0x19e070;return this[_0xec9bf7(0xc2)][_0xec9bf7(0xa2)]('ox-input-code');}async[a0_0x19e070(0xc0)](){const _0x3cf413=a0_0x19e070;if(this['codeEditor'][_0x3cf413(0xab)]==this['codeEditor'][_0x3cf413(0xa9)])return void MetaApi[_0x3cf413(0xbb)](_0x3cf413(0xb4),_0x3cf413(0xad),_0x3cf413(0xb6),_0x3cf413(0xc4));if(0x0==store['getState']()[_0x3cf413(0xc1)]['studioPermission'])return void document['dispatchEvent'](new CustomEvent('notify',{'detail':{'level':_0x3cf413(0xa8),'message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client['query']({'query':a0_0x16020a`
|
|
35
35
|
query ($id: String!) {
|
|
36
36
|
metaUITemplateIsOverLimit(id: $id)
|
|
37
37
|
}
|
|
38
|
-
`,'variables':{'id':this[
|
|
38
|
+
`,'variables':{'id':this[_0x3cf413(0xb7)]}}))[_0x3cf413(0xaf)])return;let _0x527d63=this[_0x3cf413(0xa1)]['value'],_0x5e3059=[{'id':this[_0x3cf413(0xb7)],'template':_0x527d63,'cuFlag':'M'}];await MetaApi['updateMultiple'](_0x3cf413(0xa3),_0x5e3059)&&history[_0x3cf413(0xb0)]();}}customElements[a0_0x19e070(0xa6)]('dynamic-menu-template',DynamicMenuTemplate);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2e2043=a0_0x53ff;(function(_0x43a9fc,_0xfc77ec){const _0x215974=a0_0x53ff,_0x654dc8=_0x43a9fc();while(!![]){try{const _0x2b1e04=-parseInt(_0x215974(0x114))/0x1*(-parseInt(_0x215974(0x136))/0x2)+parseInt(_0x215974(0x11e))/0x3+parseInt(_0x215974(0x16e))/0x4*(-parseInt(_0x215974(0x139))/0x5)+-parseInt(_0x215974(0x13b))/0x6*(parseInt(_0x215974(0xea))/0x7)+parseInt(_0x215974(0x11f))/0x8+-parseInt(_0x215974(0x12b))/0x9+parseInt(_0x215974(0x102))/0xa*(parseInt(_0x215974(0x111))/0xb);if(_0x2b1e04===_0xfc77ec)break;else _0x654dc8['push'](_0x654dc8['shift']());}catch(_0x3267dc){_0x654dc8['push'](_0x654dc8['shift']());}}}(a0_0x13b6,0x91dd8));function a0_0x13b6(){const _0x1eaa06=['1144rWbBFe','searchFields','properties','groupConfig','#detail-grist','dynamicMenus','21mBJvws','tag','parent-menu','updateMultiple','page_type','deleteMenus','template','tTitle','select','description','searchByPagination','getGristColumnConfig2','LIST','detailGrist','navigateMetaGenerator','routing_type','copyMenu','resource-object','string','page_location','groupMenuQuery','menuType','large','hiddenFlag','195240vMhgCq','dynamic-menu','shadowRoot','records','isMobileEnv','define','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20\x20\x20\x20\x20parent\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20','menuGroupId','saveGroup','menus','tMenu','deleteGroup','selected','#,###','boolean','792HOPiHx','getGristSearchCodeColumnConfig','pageNavigate','62GhWBHs','parent','confirm','export','openPopupByElement','pageInitialized','resourceUrl','gutter','searchForm','category','3125724EoaaBT','3764736lUZTDx','MENU_PAGE_TYPE','createCustomElement','tButton','text.there_is_no_selected_items','isNotEmpty','getGristSelectableConfig','save','code','getGristSearchColumnConfig','left','startsWith','8308611gaPDMh','recordId','SCREEN','bind','hidden','integer','MENU_TYPE','rank','menu_type','parentId','is_null','23622PIrFgK','render','name','19930wMLuDs','menu_template_search_code','1979742Vuthcg','getGristCodeSelectorColumnConfig','dynamic_menu','recordName','updateMultipleMenu','detailConfig','i_like','keys','context','getQueryFilters','#master-grist','data','GRID','patchesForUpdateMultiple','getGristGuttersConfig','exportMenu','groupGrist','templateText','menu_group','-copy','deleteListByGristSelected','tLabel','cuFlag','filter','openMenuTemplatePopup','getGristColumnConfig','button','routing','dynamic-menu-template','construction','text.nothing_selected','fetchGroupHandler','top-down','menu','styles','deleteMenu','querySelector','showAlertPopup','export-menu-popup','routingType','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20','center','forEach','templateCode','delete','copy','info','fetch','search','title','findOne'];a0_0x13b6=function(){return _0x1eaa06;};return a0_0x13b6();}import{html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x53ff(_0x2cc1b0,_0x20a7d7){const _0x13b60b=a0_0x13b6();return a0_0x53ff=function(_0x53ff92,_0x34e56d){_0x53ff92=_0x53ff92-0xe5;let _0xb64217=_0x13b60b[_0x53ff92];return _0xb64217;},a0_0x53ff(_0x2cc1b0,_0x20a7d7);}import{PageView}from'@things-factory/shell';import'@things-factory/form-ui';import{TermsUtil}from'./../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';import'./dynamic-menu-template.js';import'./export-menu-popup.js';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{UiUtil}from'../../utils/ui-util';class DynamicMenu extends localize(i18next)(PageView){static get[a0_0x2e2043(0xe6)](){return{'searchFields':Array,'groupConfig':Object,'detailConfig':Object,'menuGroupId':String};}static get[a0_0x2e2043(0x15d)](){const _0x103da1=a0_0x2e2043;return MetaApi['getBasicMasterDetailGristStyle'](_0x103da1(0x15b));}[a0_0x2e2043(0x137)](){const _0x13ba54=a0_0x2e2043;return html`
|
|
2
2
|
<div slot="headroom">
|
|
3
3
|
<div id="filters">
|
|
4
4
|
<ox-filters-form-base
|
|
5
|
-
.filters=${this[
|
|
6
|
-
@filters-change=${
|
|
5
|
+
.filters=${this[_0x13ba54(0xe5)]||[]}
|
|
6
|
+
@filters-change=${_0x2009f3=>{const _0x3f582e=_0x13ba54;this[_0x3f582e(0x14b)]?.[_0x3f582e(0x16a)]();}}
|
|
7
7
|
></ox-filters-form-base>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
@@ -11,34 +11,34 @@ const a0_0x2aa9fe=a0_0x20ae;(function(_0x22e0e1,_0x50de32){const _0x594da7=a0_0x
|
|
|
11
11
|
<div class='container'>
|
|
12
12
|
<div class="container_detail">
|
|
13
13
|
<!--h2>
|
|
14
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
14
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x13ba54(0xf1)](_0x13ba54(0x14d))}
|
|
15
15
|
</h2-->
|
|
16
16
|
<ox-grist
|
|
17
17
|
id="master-grist"
|
|
18
18
|
.config=${this['groupConfig']}
|
|
19
|
-
.mode=${MetaApi[
|
|
19
|
+
.mode=${MetaApi['isMobileEnv']()?_0x13ba54(0xf6):_0x13ba54(0x147)}
|
|
20
20
|
auto-fetch
|
|
21
|
-
.fetchHandler=${this[
|
|
21
|
+
.fetchHandler=${this[_0x13ba54(0x15a)][_0x13ba54(0x12e)](this)}>
|
|
22
22
|
</ox-grist>
|
|
23
23
|
<div id="button-container" class="button-container">
|
|
24
|
-
<mwc-button raised label="${TermsUtil[
|
|
25
|
-
<mwc-button raised label="${TermsUtil[
|
|
24
|
+
<mwc-button raised label="${TermsUtil[_0x13ba54(0x122)](_0x13ba54(0x126))}" @click=${_0x4fe55f=>this[_0x13ba54(0x10a)]()}></mwc-button>
|
|
25
|
+
<mwc-button raised label="${TermsUtil[_0x13ba54(0x122)](_0x13ba54(0x167))}" @click=${_0xe972ce=>this['deleteGroup']()}></mwc-button>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
<div class="container_detail">
|
|
30
30
|
<ox-grist
|
|
31
31
|
id="detail-grist"
|
|
32
|
-
.config=${this[
|
|
33
|
-
.mode=${MetaApi[
|
|
32
|
+
.config=${this[_0x13ba54(0x140)]}
|
|
33
|
+
.mode=${MetaApi[_0x13ba54(0x106)]()?_0x13ba54(0xf6):_0x13ba54(0x147)}
|
|
34
34
|
explcit-fetch
|
|
35
|
-
.fetchHandler=${this[
|
|
35
|
+
.fetchHandler=${this['fetchDetailHandler'][_0x13ba54(0x12e)](this)}>
|
|
36
36
|
</ox-grist>
|
|
37
37
|
<div id="button-container" class="button-container">
|
|
38
|
-
<mwc-button raised label="${TermsUtil[
|
|
39
|
-
<mwc-button raised label="${TermsUtil[
|
|
40
|
-
<mwc-button raised label="${TermsUtil[
|
|
38
|
+
<mwc-button raised label="${TermsUtil[_0x13ba54(0x122)](_0x13ba54(0x168))}" @click=${_0x2675fa=>this[_0x13ba54(0xfa)]()}></mwc-button>
|
|
39
|
+
<mwc-button raised label="${TermsUtil[_0x13ba54(0x122)]('save')}" @click=${_0x116860=>this['saveMenu']()}></mwc-button>
|
|
40
|
+
<mwc-button raised label="${TermsUtil[_0x13ba54(0x122)](_0x13ba54(0x167))}" @click=${_0x26c111=>this['deleteMenu']()}></mwc-button>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
|
-
`;}get[a0_0x2aa9fe(0x20d)](){const _0x514dc3=a0_0x2aa9fe;return{'title':TermsUtil[_0x514dc3(0x1e6)](_0x514dc3(0x1ac))};}get['searchForm'](){const _0x301584=a0_0x2aa9fe;return this[_0x301584(0x20e)][_0x301584(0x19f)]('ox-filters-form-base');}get[a0_0x2aa9fe(0x1cb)](){const _0x2a9a52=a0_0x2aa9fe;return this['shadowRoot'][_0x2a9a52(0x19f)]('#master-grist');}get['detailGrist'](){const _0x47eec8=a0_0x2aa9fe;return this[_0x47eec8(0x20e)][_0x47eec8(0x19f)](_0x47eec8(0x1a3));}async[a0_0x2aa9fe(0x211)]({page:_0x42368c,limit:_0x4a5a61=0xf423f,sorters:_0x55cbc8=[{'name':a0_0x2aa9fe(0x1c1)},{'name':a0_0x2aa9fe(0x218)}]}){const _0x3ef5f2=a0_0x2aa9fe;if(this[_0x3ef5f2(0x1ab)]){let _0x1574c2=[{'name':_0x3ef5f2(0x1f6),'operator':'eq','value':this[_0x3ef5f2(0x1ab)]},...(await this[_0x3ef5f2(0x1e2)][_0x3ef5f2(0x1c3)]())[_0x3ef5f2(0x1d3)](_0x1de1a3=>[_0x3ef5f2(0x1b4),_0x3ef5f2(0x1cc)][_0x3ef5f2(0x1a1)](_0x1de1a3[_0x3ef5f2(0x218)]))],_0x35e488=_0x3ef5f2(0x1ca);0xf423f;let _0x527a21=await MetaApi[_0x3ef5f2(0x201)](_0x3ef5f2(0x1d6),_0x1574c2,_0x55cbc8,_0x42368c,0xf423f,_0x35e488);return _0x527a21&&_0x527a21[_0x3ef5f2(0x206)]&&_0x527a21[_0x3ef5f2(0x206)][_0x3ef5f2(0x1a0)](_0x3c4086=>{const _0xac89fd=_0x3ef5f2;_0x3c4086[_0xac89fd(0x1f6)]=this[_0xac89fd(0x1ab)];}),_0x527a21;}}async[a0_0x2aa9fe(0x20c)]({page:_0x2571cb,limit:_0xae8837=0xf423f,sorters:_0x3a872c=[{'name':a0_0x2aa9fe(0x1c1)},{'name':a0_0x2aa9fe(0x218)}]}){const _0x237f76=a0_0x2aa9fe;this['menuGroupId']=null,this[_0x237f76(0x1f2)]&&this[_0x237f76(0x1f2)]['data']&&(this[_0x237f76(0x1f2)][_0x237f76(0x1bf)]={});let _0x3e3fd2=[...await this[_0x237f76(0x1e2)][_0x237f76(0x1c3)](),{'name':_0x237f76(0x1f6),'operator':_0x237f76(0x214),'value':''}];return 0xf423f,await MetaApi[_0x237f76(0x201)](_0x237f76(0x1d6),_0x3e3fd2,_0x3a872c,_0x2571cb,0xf423f,_0x237f76(0x1f5));}async[a0_0x2aa9fe(0x1b5)](){const _0x150af4=a0_0x2aa9fe;let _0x3c45cc=MetaApi[_0x150af4(0x1c9)](this[_0x150af4(0x1cb)]);ValueUtil['isNotEmpty'](_0x3c45cc)&&(_0x3c45cc[_0x150af4(0x1a0)](_0x4d1161=>{const _0x38a3bc=_0x150af4;void 0x0!==_0x4d1161[_0x38a3bc(0x1d4)]&&null!=_0x4d1161[_0x38a3bc(0x1d4)]||(_0x4d1161[_0x38a3bc(0x1d4)]=!0x1);}),await MetaApi[_0x150af4(0x19e)](_0x150af4(0x1e5),_0x3c45cc)&&this[_0x150af4(0x1cb)][_0x150af4(0x1a5)]());}async[a0_0x2aa9fe(0x1fb)](){const _0x2737c2=a0_0x2aa9fe;await MetaApi['deleteListByGristSelected'](this[_0x2737c2(0x1cb)],_0x2737c2(0x1f8));}async[a0_0x2aa9fe(0x1b2)](){const _0x24c9dc=a0_0x2aa9fe;let _0x422458=MetaApi[_0x24c9dc(0x1c9)](this[_0x24c9dc(0x1f2)]);ValueUtil['isNotEmpty'](_0x422458)&&(_0x422458[_0x24c9dc(0x1a0)](_0x437f4f=>{const _0x5bcd45=_0x24c9dc;_0x437f4f[_0x5bcd45(0x1ea)]=_0x437f4f[_0x5bcd45(0x1ea)]||_0x5bcd45(0x1aa),_0x437f4f[_0x5bcd45(0x1f6)]?(_0x437f4f[_0x5bcd45(0x1df)]={'id':_0x437f4f[_0x5bcd45(0x1f6)]},delete _0x437f4f[_0x5bcd45(0x1f6)]):_0x437f4f[_0x5bcd45(0x1df)]={'id':this['menuGroupId']},void 0x0!==_0x437f4f['hiddenFlag']&&null!=_0x437f4f['hiddenFlag']||(_0x437f4f[_0x5bcd45(0x1d4)]=!0x1);}),await MetaApi[_0x24c9dc(0x19e)](_0x24c9dc(0x1e5),_0x422458)&&this[_0x24c9dc(0x1f2)][_0x24c9dc(0x1a5)]());}async[a0_0x2aa9fe(0x1e4)](_0x493891){const _0x4b9043=a0_0x2aa9fe;let _0x304af7=MetaApi[_0x4b9043(0x1b3)](_0x4b9043(0x1c4),_0x4b9043(0x1c4));_0x304af7['title']=TermsUtil[_0x4b9043(0x1b9)](_0x4b9043(0x1d5)),_0x304af7['recordId']=_0x493891['id'],_0x304af7[_0x4b9043(0x1bd)]=_0x493891['name'],await MetaApi[_0x4b9043(0x1f4)](_0x493891[_0x4b9043(0x218)],_0x4b9043(0x1cf),_0x304af7,!0x0);}async[a0_0x2aa9fe(0x1c6)](){const _0x4a817f=a0_0x2aa9fe;await MetaApi[_0x4a817f(0x1db)](this[_0x4a817f(0x1f2)],_0x4a817f(0x1f8));}async['copyMenu'](){const _0x4788f8=a0_0x2aa9fe;let _0x5becb9=this[_0x4788f8(0x1f2)]['selected'];if(!_0x5becb9||0x0==_0x5becb9[_0x4788f8(0x1fc)])return void UiUtil['showAlertPopup'](_0x4788f8(0x208),_0x4788f8(0x1bb),_0x4788f8(0x20a),_0x4788f8(0x1c7));let _0x269ef1=_0x5becb9[0x0];if(!_0x269ef1['id'])return;Object[_0x4788f8(0x19a)](_0x269ef1)[_0x4788f8(0x1a0)](_0x1a9870=>{const _0x13713f=_0x4788f8;_0x1a9870[_0x13713f(0x1ee)]('__')&&delete _0x269ef1[_0x1a9870];});let _0x7e77a8=await MetaApi[_0x4788f8(0x1b7)](_0x4788f8(0x1b8),_0x269ef1['id'],_0x4788f8(0x1ec));_0x269ef1[_0x4788f8(0x1ec)]=_0x7e77a8&&_0x7e77a8['template']||'',_0x269ef1[_0x4788f8(0x1c1)]=0x1869f,_0x269ef1['cuFlag']='+',_0x269ef1[_0x4788f8(0x218)]=_0x269ef1[_0x4788f8(0x218)]+_0x4788f8(0x1a9),_0x269ef1['routing']=_0x269ef1[_0x4788f8(0x1a2)]+'-copy',_0x269ef1['parent']={'id':_0x269ef1[_0x4788f8(0x1f6)]},delete _0x269ef1['id'],delete _0x269ef1[_0x4788f8(0x1f6)],await MetaApi['updateMultiple']('updateMultipleMenu',[_0x269ef1])&&this[_0x4788f8(0x1f2)]['fetch']();}[a0_0x2aa9fe(0x1e1)](_0x7f62){const _0x921cae=a0_0x2aa9fe;this[_0x921cae(0x1ab)]=_0x7f62['id'],this['detailGrist'][_0x921cae(0x1a5)]();}async[a0_0x2aa9fe(0x199)](_0x315322){const _0x26f489=a0_0x2aa9fe;let _0x30230e=MetaApi[_0x26f489(0x1b3)](_0x26f489(0x203),_0x26f489(0x203));_0x30230e[_0x26f489(0x1e8)]=TermsUtil['tLabel']('template'),_0x30230e['recordId']=_0x315322['id'],await MetaApi[_0x26f489(0x1f4)](_0x315322[_0x26f489(0x218)],'large',_0x30230e,!0x0);}[a0_0x2aa9fe(0x1ae)](_0x164624){const _0x147887=a0_0x2aa9fe;MetaApi[_0x147887(0x1d1)]('meta-generator?menuId='+_0x164624['id']);}async[a0_0x2aa9fe(0x1cd)](){const _0x3fce0b=a0_0x2aa9fe;this['searchFields']=[MetaApi[_0x3fce0b(0x209)](_0x3fce0b(0x218),'string',_0x3fce0b(0x218),_0x3fce0b(0x207)),await MetaApi[_0x3fce0b(0x20b)](_0x3fce0b(0x1ea),'select','menu_type','eq',_0x3fce0b(0x1eb)),MetaApi['getGristSearchColumnConfig'](_0x3fce0b(0x1d4),_0x3fce0b(0x1ed),_0x3fce0b(0x1e3),'eq'),await MetaApi[_0x3fce0b(0x20b)]('templateCode','select','menu_template_search_code','eq',_0x3fce0b(0x19d)),MetaApi[_0x3fce0b(0x209)](_0x3fce0b(0x1cc),_0x3fce0b(0x1b6),_0x3fce0b(0x197),_0x3fce0b(0x207))],this[_0x3fce0b(0x213)]={'rows':MetaApi[_0x3fce0b(0x1ba)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x3fce0b(0x1a7)](!0x0,!0x1),{'type':_0x3fce0b(0x1a6),'gutterName':'button','icon':_0x3fce0b(0x1e0),'handlers':{'click':(_0x201a64,_0x1305c0,_0x3e1656,_0x7a699c,_0x4d3a18)=>{_0x7a699c['id']&&this['groupMenuQuery'](_0x7a699c);}}},{'type':_0x3fce0b(0x1ad),'name':_0x3fce0b(0x1c1),'header':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1c1)),'record':{'align':_0x3fce0b(0x1fd),'editable':!0x0,'format':_0x3fce0b(0x202)},'sortable':!0x1,'width':0x3c},MetaApi[_0x3fce0b(0x1be)]('string',_0x3fce0b(0x218),_0x3fce0b(0x1fd),!0x0,!0x1,0xaf),{'type':_0x3fce0b(0x1b6),'name':_0x3fce0b(0x1e8),'header':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1e8)),'record':{'editable':!0x1,'align':'left','renderer':(_0xe0d39c,_0x1a18b5,_0x311986,_0xeb9e8e,_0x24c5b3)=>_0x311986['name']?TermsUtil[_0x3fce0b(0x196)](_0x311986[_0x3fce0b(0x218)]):''},'sortable':!0x1,'width':0xaf},await MetaApi[_0x3fce0b(0x216)](_0x3fce0b(0x1ea),'menu_type',_0x3fce0b(0x1fd),!0x1,0x5a,!0x0,_0x3fce0b(0x1eb)),MetaApi[_0x3fce0b(0x1f0)]('string','iconPath',_0x3fce0b(0x1fa),_0x3fce0b(0x1fd),!0x0,!0x1,0x64),MetaApi[_0x3fce0b(0x1f0)](_0x3fce0b(0x1f3),_0x3fce0b(0x1d4),_0x3fce0b(0x1e3),'center',!0x0,!0x1,0x37),MetaApi['getGristColumnConfig2'](_0x3fce0b(0x1b6),_0x3fce0b(0x1a2),'routing',_0x3fce0b(0x1fd),!0x0,!0x1,0x78),MetaApi[_0x3fce0b(0x1f0)](_0x3fce0b(0x1b6),_0x3fce0b(0x1ef),_0x3fce0b(0x1dc),_0x3fce0b(0x1fd),!0x0,!0x1,0x78),MetaApi[_0x3fce0b(0x1f0)](_0x3fce0b(0x1b6),_0x3fce0b(0x1d2),'page_location',_0x3fce0b(0x1fd),!0x0,!0x1,0x109)]},this['detailConfig']={'rows':MetaApi[_0x3fce0b(0x1ba)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x3fce0b(0x1a7)](!0x0,!0x1),{'type':_0x3fce0b(0x1a6),'gutterName':'button','icon':'download','handlers':{'click':(_0x3218b5,_0x35c975,_0x354f5e,_0x3b154e,_0x9ac593)=>{const _0x368dc5=_0x3fce0b;_0x3b154e['id']&&this[_0x368dc5(0x1e4)](_0x3b154e);}}},{'type':_0x3fce0b(0x1a6),'gutterName':_0x3fce0b(0x1c2),'icon':_0x3fce0b(0x1b1),'handlers':{'click':(_0x591c53,_0x290053,_0x535f36,_0x157c04,_0xee1d7d)=>{const _0x2e6f77=_0x3fce0b;_0x157c04['id']&&this[_0x2e6f77(0x199)](_0x157c04);}}},{'type':_0x3fce0b(0x1a6),'gutterName':_0x3fce0b(0x1c2),'icon':_0x3fce0b(0x200),'handlers':{'click':(_0x3af60d,_0x4fb826,_0x1a8421,_0x4b3108,_0x14b62e)=>{_0x4b3108['id']&&this['navigateMetaGenerator'](_0x4b3108);}}},{'type':'integer','name':_0x3fce0b(0x1c1),'header':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1c1)),'record':{'align':_0x3fce0b(0x1fd),'editable':!0x0,'format':_0x3fce0b(0x202)},'sortable':!0x1,'width':0x3c},MetaApi[_0x3fce0b(0x1be)]('string',_0x3fce0b(0x218),_0x3fce0b(0x1fd),!0x0,!0x1,0xaf),{'type':_0x3fce0b(0x1b6),'name':_0x3fce0b(0x1e8),'header':TermsUtil[_0x3fce0b(0x1b9)]('title'),'record':{'editable':!0x1,'align':_0x3fce0b(0x1fd),'renderer':(_0x517a2f,_0x1d52b5,_0xbcbf76,_0x574969,_0x186b34)=>_0xbcbf76[_0x3fce0b(0x218)]?TermsUtil[_0x3fce0b(0x196)](_0xbcbf76['name']):''},'sortable':!0x1,'width':0xaf},await MetaApi[_0x3fce0b(0x216)](_0x3fce0b(0x1ea),_0x3fce0b(0x204),'left',!0x1,0x5a,!0x0,_0x3fce0b(0x1af)),await MetaApi[_0x3fce0b(0x216)](_0x3fce0b(0x1b0),_0x3fce0b(0x1d9),_0x3fce0b(0x1fd),!0x1,0x0,!0x1,_0x3fce0b(0x20f)),MetaApi['getGristColumnConfig2']('string',_0x3fce0b(0x1a2),_0x3fce0b(0x1a2),_0x3fce0b(0x1fd),!0x0,!0x1,0xaf),MetaApi[_0x3fce0b(0x1f0)](_0x3fce0b(0x1b6),_0x3fce0b(0x1ef),_0x3fce0b(0x1dc),_0x3fce0b(0x1fd),!0x0,!0x1,0xaf),MetaApi[_0x3fce0b(0x1f0)](_0x3fce0b(0x1b6),'resourceUrl',_0x3fce0b(0x198),_0x3fce0b(0x1fd),!0x0,!0x1,0x1c2),MetaApi['getGristColumnConfig2'](_0x3fce0b(0x1b6),'iconPath',_0x3fce0b(0x1fa),_0x3fce0b(0x1fd),!0x0,!0x1,0x64),MetaApi[_0x3fce0b(0x1f0)](_0x3fce0b(0x1f3),'hiddenFlag',_0x3fce0b(0x1e3),_0x3fce0b(0x1f9),!0x0,!0x1,0x37),{'type':'resource-object','name':_0x3fce0b(0x1df),'header':TermsUtil[_0x3fce0b(0x1b9)]('parent-menu'),'record':{'renderer':(_0x248537,_0x58140b,_0x2f602e,_0x1a8166,_0x1e02c8)=>_0x248537[_0x3fce0b(0x218)]+'\x20('+TermsUtil[_0x3fce0b(0x196)](_0x248537['name'])+')','editable':!0x0,'options':{'title':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1a4)),'queryName':_0x3fce0b(0x1c5),'pagination':{'pages':[0x3e8]},'basicArgs':{'filters':[{'name':_0x3fce0b(0x1f6),'operator':'is_null'}],'sortings':[{'name':'rank','desc':!0x1}]},'list':{'fields':['id',_0x3fce0b(0x218)]},'columns':[{'name':'id','hidden':!0x0},{'name':_0x3fce0b(0x1c1),'header':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1c1)),'width':0x4b,'record':{'editable':!0x1,'format':_0x3fce0b(0x202),'align':_0x3fce0b(0x1fd)},'sortable':!0x0},{'name':_0x3fce0b(0x218),'width':0x12c,'header':TermsUtil[_0x3fce0b(0x1b9)]('name'),'filter':_0x3fce0b(0x205)},{'name':_0x3fce0b(0x212),'width':0x15e,'header':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1e8)),'record':{'editable':!0x1,'renderer':function(_0x28096a,_0x1e00aa,_0x4b1eb6,_0x205366,_0x23206d){const _0x4fa276=_0x3fce0b;return TermsUtil[_0x4fa276(0x196)](_0x4b1eb6[_0x4fa276(0x218)]);}}},{'type':_0x3fce0b(0x1b1),'name':_0x3fce0b(0x1ea),'width':0x78,'header':TermsUtil[_0x3fce0b(0x1b9)]('menu_type'),'record':{'editable':!0x1,'codeName':_0x3fce0b(0x1eb)}},{'name':_0x3fce0b(0x1a2),'width':0x96,'header':TermsUtil[_0x3fce0b(0x1b9)](_0x3fce0b(0x1a2)),'record':{'editable':!0x1}}],'valueField':'id','nameField':_0x3fce0b(0x218),'descriptionField':_0x3fce0b(0x1a2)}},'width':0xc8}]};}}customElements[a0_0x2aa9fe(0x1dd)]('dynamic-menu',DynamicMenu);
|
|
44
|
+
`;}get[a0_0x2e2043(0x143)](){const _0x11dc4e=a0_0x2e2043;return{'title':TermsUtil[_0x11dc4e(0xf1)](_0x11dc4e(0x13d))};}get[a0_0x2e2043(0x11c)](){const _0x5683c3=a0_0x2e2043;return this[_0x5683c3(0x104)][_0x5683c3(0x15f)]('ox-filters-form-base');}get['groupGrist'](){const _0x465799=a0_0x2e2043;return this[_0x465799(0x104)][_0x465799(0x15f)](_0x465799(0x145));}get['detailGrist'](){const _0x2c1247=a0_0x2e2043;return this[_0x2c1247(0x104)][_0x2c1247(0x15f)](_0x2c1247(0xe8));}async['fetchDetailHandler']({page:_0x1950fd,limit:_0x35e3a3=0xf423f,sorters:_0x358527=[{'name':a0_0x2e2043(0x132)},{'name':a0_0x2e2043(0x138)}]}){const _0x421aeb=a0_0x2e2043;if(this[_0x421aeb(0x109)]){let _0x10ab05=[{'name':_0x421aeb(0x134),'operator':'eq','value':this['menuGroupId']},...(await this[_0x421aeb(0x11c)][_0x421aeb(0x144)]())[_0x421aeb(0x152)](_0x3d5ddc=>[_0x421aeb(0x166),_0x421aeb(0x14c)]['includes'](_0x3d5ddc[_0x421aeb(0x138)]))],_0x4d0a9a=_0x421aeb(0x108);0xf423f;let _0x46cb4b=await MetaApi[_0x421aeb(0xf4)]('dynamicMenus',_0x10ab05,_0x358527,_0x1950fd,0xf423f,_0x4d0a9a);return _0x46cb4b&&_0x46cb4b[_0x421aeb(0x105)]&&_0x46cb4b[_0x421aeb(0x105)][_0x421aeb(0x165)](_0x55b92b=>{const _0x2da32f=_0x421aeb;_0x55b92b[_0x2da32f(0x134)]=this[_0x2da32f(0x109)];}),_0x46cb4b;}}async[a0_0x2e2043(0x15a)]({page:_0x28e738,limit:_0x29448c=0xf423f,sorters:_0x289864=[{'name':a0_0x2e2043(0x132)},{'name':'name'}]}){const _0xeba504=a0_0x2e2043;this[_0xeba504(0x109)]=null,this['detailGrist']&&this[_0xeba504(0xf7)][_0xeba504(0x146)]&&(this[_0xeba504(0xf7)][_0xeba504(0x146)]={});let _0x5f4cb5=[...await this[_0xeba504(0x11c)][_0xeba504(0x144)](),{'name':'parentId','operator':'is_null','value':''}];return 0xf423f,await MetaApi[_0xeba504(0xf4)](_0xeba504(0xe9),_0x5f4cb5,_0x289864,_0x28e738,0xf423f,_0xeba504(0x163));}async['saveGroup'](){const _0x1edb97=a0_0x2e2043;let _0x1059ce=MetaApi[_0x1edb97(0x148)](this[_0x1edb97(0x14b)]);ValueUtil[_0x1edb97(0x124)](_0x1059ce)&&(_0x1059ce[_0x1edb97(0x165)](_0x1010ef=>{const _0xb5fcd5=_0x1edb97;void 0x0!==_0x1010ef[_0xb5fcd5(0x101)]&&null!=_0x1010ef[_0xb5fcd5(0x101)]||(_0x1010ef['hiddenFlag']=!0x1);}),await MetaApi[_0x1edb97(0xed)](_0x1edb97(0x13f),_0x1059ce)&&this[_0x1edb97(0x14b)][_0x1edb97(0x16a)]());}async[a0_0x2e2043(0x10d)](){const _0x26333b=a0_0x2e2043;await MetaApi[_0x26333b(0x14f)](this['groupGrist'],_0x26333b(0xef));}async['saveMenu'](){const _0x358766=a0_0x2e2043;let _0x37d75b=MetaApi[_0x358766(0x148)](this['detailGrist']);ValueUtil[_0x358766(0x124)](_0x37d75b)&&(_0x37d75b['forEach'](_0x247920=>{const _0x699578=_0x358766;_0x247920['menuType']=_0x247920[_0x699578(0xff)]||_0x699578(0x12d),_0x247920[_0x699578(0x134)]?(_0x247920[_0x699578(0x115)]={'id':_0x247920['parentId']},delete _0x247920[_0x699578(0x134)]):_0x247920[_0x699578(0x115)]={'id':this[_0x699578(0x109)]},void 0x0!==_0x247920[_0x699578(0x101)]&&null!=_0x247920[_0x699578(0x101)]||(_0x247920[_0x699578(0x101)]=!0x1);}),await MetaApi[_0x358766(0xed)]('updateMultipleMenu',_0x37d75b)&&this['detailGrist'][_0x358766(0x16a)]());}async['exportMenu'](_0x58d97d){const _0x2471d1=a0_0x2e2043;let _0x751ef7=MetaApi[_0x2471d1(0x121)](_0x2471d1(0x161),_0x2471d1(0x161));_0x751ef7[_0x2471d1(0x16c)]=TermsUtil[_0x2471d1(0x150)](_0x2471d1(0x117)),_0x751ef7[_0x2471d1(0x12c)]=_0x58d97d['id'],_0x751ef7[_0x2471d1(0x13e)]=_0x58d97d[_0x2471d1(0x138)],await MetaApi[_0x2471d1(0x118)](_0x58d97d[_0x2471d1(0x138)],_0x2471d1(0x100),_0x751ef7,!0x0);}async[a0_0x2e2043(0x15e)](){const _0x3acd9b=a0_0x2e2043;await MetaApi[_0x3acd9b(0x14f)](this[_0x3acd9b(0xf7)],_0x3acd9b(0xef));}async[a0_0x2e2043(0xfa)](){const _0x44dc4a=a0_0x2e2043;let _0x4d09ba=this[_0x44dc4a(0xf7)][_0x44dc4a(0x10e)];if(!_0x4d09ba||0x0==_0x4d09ba['length'])return void UiUtil[_0x44dc4a(0x160)](_0x44dc4a(0x159),_0x44dc4a(0x123),_0x44dc4a(0x169),_0x44dc4a(0x116));let _0x37db3f=_0x4d09ba[0x0];if(!_0x37db3f['id'])return;Object[_0x44dc4a(0x142)](_0x37db3f)[_0x44dc4a(0x165)](_0x3bb9fa=>{const _0x117381=_0x44dc4a;_0x3bb9fa[_0x117381(0x12a)]('__')&&delete _0x37db3f[_0x3bb9fa];});let _0x3e2337=await MetaApi[_0x44dc4a(0x16d)](_0x44dc4a(0x15c),_0x37db3f['id'],_0x44dc4a(0xf0));_0x37db3f[_0x44dc4a(0xf0)]=_0x3e2337&&_0x3e2337[_0x44dc4a(0xf0)]||'',_0x37db3f[_0x44dc4a(0x132)]=0x1869f,_0x37db3f[_0x44dc4a(0x151)]='+',_0x37db3f[_0x44dc4a(0x138)]=_0x37db3f[_0x44dc4a(0x138)]+_0x44dc4a(0x14e),_0x37db3f[_0x44dc4a(0x156)]=_0x37db3f[_0x44dc4a(0x156)]+_0x44dc4a(0x14e),_0x37db3f[_0x44dc4a(0x115)]={'id':_0x37db3f[_0x44dc4a(0x134)]},delete _0x37db3f['id'],delete _0x37db3f[_0x44dc4a(0x134)],await MetaApi[_0x44dc4a(0xed)](_0x44dc4a(0x13f),[_0x37db3f])&&this['detailGrist'][_0x44dc4a(0x16a)]();}[a0_0x2e2043(0xfe)](_0x29ae95){const _0x7e4092=a0_0x2e2043;this[_0x7e4092(0x109)]=_0x29ae95['id'],this[_0x7e4092(0xf7)]['fetch']();}async[a0_0x2e2043(0x153)](_0xbc4b8d){const _0x2d92e2=a0_0x2e2043;let _0x38914f=MetaApi[_0x2d92e2(0x121)](_0x2d92e2(0x157),_0x2d92e2(0x157));_0x38914f['title']=TermsUtil['tLabel'](_0x2d92e2(0xf0)),_0x38914f['recordId']=_0xbc4b8d['id'],await MetaApi[_0x2d92e2(0x118)](_0xbc4b8d['name'],_0x2d92e2(0x100),_0x38914f,!0x0);}['navigateMetaGenerator'](_0xc7f520){const _0x312ab6=a0_0x2e2043;MetaApi[_0x312ab6(0x113)]('meta-generator?menuId='+_0xc7f520['id']);}async[a0_0x2e2043(0x119)](){const _0x4ed32b=a0_0x2e2043;this[_0x4ed32b(0xe5)]=[MetaApi['getGristSearchColumnConfig']('name',_0x4ed32b(0xfc),'name',_0x4ed32b(0x141)),await MetaApi[_0x4ed32b(0x112)]('menuType',_0x4ed32b(0xf2),_0x4ed32b(0x133),'eq',_0x4ed32b(0x131)),MetaApi[_0x4ed32b(0x128)](_0x4ed32b(0x101),'checkbox',_0x4ed32b(0x12f),'eq'),await MetaApi[_0x4ed32b(0x112)](_0x4ed32b(0x166),_0x4ed32b(0xf2),_0x4ed32b(0x13a),'eq','MENU_TEXT_SEARCH_TYPE'),MetaApi[_0x4ed32b(0x128)](_0x4ed32b(0x14c),_0x4ed32b(0xfc),'menu_template_search_text',_0x4ed32b(0x141))],this[_0x4ed32b(0xe7)]={'rows':MetaApi[_0x4ed32b(0x125)](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x4ed32b(0x149)](!0x0,!0x1),{'type':_0x4ed32b(0x11b),'gutterName':_0x4ed32b(0x155),'icon':'menu_open','handlers':{'click':(_0x3b747b,_0x39a92d,_0x20116e,_0x4c7de4,_0x5d6477)=>{const _0x1968a8=_0x4ed32b;_0x4c7de4['id']&&this[_0x1968a8(0xfe)](_0x4c7de4);}}},{'type':_0x4ed32b(0x130),'name':_0x4ed32b(0x132),'header':TermsUtil[_0x4ed32b(0x150)]('rank'),'record':{'align':'left','editable':!0x0,'format':_0x4ed32b(0x10f)},'sortable':!0x1,'width':0x3c},MetaApi[_0x4ed32b(0x154)](_0x4ed32b(0xfc),_0x4ed32b(0x138),_0x4ed32b(0x129),!0x0,!0x1,0xaf),{'type':'string','name':_0x4ed32b(0x16c),'header':TermsUtil[_0x4ed32b(0x150)]('title'),'record':{'editable':!0x1,'align':_0x4ed32b(0x129),'renderer':(_0x1161c1,_0x377f67,_0x5a2199,_0xc4ff54,_0x31f714)=>_0x5a2199['name']?TermsUtil['tMenu'](_0x5a2199[_0x4ed32b(0x138)]):''},'sortable':!0x1,'width':0xaf},await MetaApi[_0x4ed32b(0x13c)](_0x4ed32b(0xff),_0x4ed32b(0x133),'left',!0x1,0x5a,!0x0,_0x4ed32b(0x131)),MetaApi[_0x4ed32b(0xf5)](_0x4ed32b(0xfc),'iconPath','icon',_0x4ed32b(0x129),!0x0,!0x1,0x64),MetaApi[_0x4ed32b(0xf5)](_0x4ed32b(0x110),_0x4ed32b(0x101),_0x4ed32b(0x12f),_0x4ed32b(0x164),!0x0,!0x1,0x37),MetaApi[_0x4ed32b(0xf5)](_0x4ed32b(0xfc),'routing',_0x4ed32b(0x156),_0x4ed32b(0x129),!0x0,!0x1,0x78),MetaApi[_0x4ed32b(0xf5)](_0x4ed32b(0xfc),'category',_0x4ed32b(0xeb),_0x4ed32b(0x129),!0x0,!0x1,0x78),MetaApi[_0x4ed32b(0xf5)]('string',_0x4ed32b(0x11a),_0x4ed32b(0xfd),_0x4ed32b(0x129),!0x0,!0x1,0x109)]},this['detailConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'infinite':!0x0},'appendable':!0x0,'columns':[...MetaApi[_0x4ed32b(0x149)](!0x0,!0x1),{'type':_0x4ed32b(0x11b),'gutterName':_0x4ed32b(0x155),'icon':'download','handlers':{'click':(_0x1e26b7,_0x5744cf,_0x3fed0d,_0x1ef9e6,_0x478233)=>{const _0x4c1835=_0x4ed32b;_0x1ef9e6['id']&&this[_0x4c1835(0x14a)](_0x1ef9e6);}}},{'type':_0x4ed32b(0x11b),'gutterName':_0x4ed32b(0x155),'icon':'code','handlers':{'click':(_0x1112c2,_0x140ab5,_0x574d6b,_0x1a5ca6,_0x193a2f)=>{const _0x472e3e=_0x4ed32b;_0x1a5ca6['id']&&this[_0x472e3e(0x153)](_0x1a5ca6);}}},{'type':_0x4ed32b(0x11b),'gutterName':'button','icon':_0x4ed32b(0x158),'handlers':{'click':(_0x2fcf93,_0x2cbe79,_0x369f4c,_0x208797,_0x202cc3)=>{const _0x3f5f55=_0x4ed32b;_0x208797['id']&&this[_0x3f5f55(0xf8)](_0x208797);}}},{'type':'integer','name':_0x4ed32b(0x132),'header':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0x132)),'record':{'align':_0x4ed32b(0x129),'editable':!0x0,'format':_0x4ed32b(0x10f)},'sortable':!0x1,'width':0x3c},MetaApi[_0x4ed32b(0x154)]('string',_0x4ed32b(0x138),_0x4ed32b(0x129),!0x0,!0x1,0xaf),{'type':'string','name':_0x4ed32b(0x16c),'header':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0x16c)),'record':{'editable':!0x1,'align':_0x4ed32b(0x129),'renderer':(_0xa2fb1d,_0x3a1d6e,_0x34ec06,_0x34ed13,_0x172755)=>_0x34ec06['name']?TermsUtil['tMenu'](_0x34ec06['name']):''},'sortable':!0x1,'width':0xaf},await MetaApi[_0x4ed32b(0x13c)](_0x4ed32b(0xff),_0x4ed32b(0xee),_0x4ed32b(0x129),!0x1,0x5a,!0x0,_0x4ed32b(0x120)),await MetaApi['getGristCodeSelectorColumnConfig'](_0x4ed32b(0x162),_0x4ed32b(0xf9),_0x4ed32b(0x129),!0x1,0x0,!0x1,'MENU_PAGE_ROUTING_TYPE'),MetaApi[_0x4ed32b(0xf5)]('string','routing',_0x4ed32b(0x156),_0x4ed32b(0x129),!0x0,!0x1,0xaf),MetaApi[_0x4ed32b(0xf5)]('string',_0x4ed32b(0x11d),_0x4ed32b(0xeb),_0x4ed32b(0x129),!0x0,!0x1,0xaf),MetaApi[_0x4ed32b(0xf5)]('string','resourceUrl',_0x4ed32b(0xfd),_0x4ed32b(0x129),!0x0,!0x1,0x1c2),MetaApi[_0x4ed32b(0xf5)]('string','iconPath','icon','left',!0x0,!0x1,0x64),MetaApi[_0x4ed32b(0xf5)](_0x4ed32b(0x110),_0x4ed32b(0x101),_0x4ed32b(0x12f),_0x4ed32b(0x164),!0x0,!0x1,0x37),{'type':_0x4ed32b(0xfb),'name':'parent','header':TermsUtil['tLabel']('parent-menu'),'record':{'renderer':(_0x59d382,_0x3e7653,_0x4e1624,_0x18acac,_0x1b77a9)=>_0x59d382?_0x59d382[_0x4ed32b(0x138)]+'\x20('+TermsUtil[_0x4ed32b(0x10c)](_0x59d382[_0x4ed32b(0x138)])+')':'','editable':!0x0,'options':{'title':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0xec)),'queryName':_0x4ed32b(0x10b),'pagination':{'pages':[0x3e8]},'basicArgs':{'filters':[{'name':_0x4ed32b(0x134),'operator':_0x4ed32b(0x135)}],'sortings':[{'name':_0x4ed32b(0x132),'desc':!0x1}]},'list':{'fields':['id','name']},'columns':[{'name':'id','hidden':!0x0},{'name':_0x4ed32b(0x132),'header':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0x132)),'width':0x4b,'record':{'editable':!0x1,'format':_0x4ed32b(0x10f),'align':_0x4ed32b(0x129)},'sortable':!0x0},{'name':_0x4ed32b(0x138),'width':0x12c,'header':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0x138)),'filter':_0x4ed32b(0x16b)},{'name':_0x4ed32b(0xf3),'width':0x15e,'header':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0x16c)),'record':{'editable':!0x1,'renderer':function(_0x44ba18,_0x45610a,_0x5a1ef1,_0x550dac,_0x4ce956){const _0x406c22=_0x4ed32b;return TermsUtil[_0x406c22(0x10c)](_0x5a1ef1[_0x406c22(0x138)]);}}},{'type':_0x4ed32b(0x127),'name':'menuType','width':0x78,'header':TermsUtil['tLabel'](_0x4ed32b(0x133)),'record':{'editable':!0x1,'codeName':_0x4ed32b(0x131)}},{'name':_0x4ed32b(0x156),'width':0x96,'header':TermsUtil[_0x4ed32b(0x150)](_0x4ed32b(0x156)),'record':{'editable':!0x1}}],'valueField':'id','nameField':_0x4ed32b(0x138),'descriptionField':'routing'}},'width':0xc8}]};}}customElements[a0_0x2e2043(0x107)](a0_0x2e2043(0x103),DynamicMenu);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x26a4f2=a0_0x5d04;(function(_0xbe652e,_0x11c682){const _0x4122b5=a0_0x5d04,_0x1ba128=_0xbe652e();while(!![]){try{const _0x4d70f8=-parseInt(_0x4122b5(0x1a8))/0x1*(-parseInt(_0x4122b5(0x1fb))/0x2)+-parseInt(_0x4122b5(0x1cd))/0x3+parseInt(_0x4122b5(0x181))/0x4*(-parseInt(_0x4122b5(0x1ee))/0x5)+-parseInt(_0x4122b5(0x1bd))/0x6*(parseInt(_0x4122b5(0x1ed))/0x7)+parseInt(_0x4122b5(0x18a))/0x8*(parseInt(_0x4122b5(0x1da))/0x9)+-parseInt(_0x4122b5(0x1c3))/0xa+parseInt(_0x4122b5(0x187))/0xb;if(_0x4d70f8===_0x11c682)break;else _0x1ba128['push'](_0x1ba128['shift']());}catch(_0xbdd20e){_0x1ba128['push'](_0x1ba128['shift']());}}}(a0_0x70de,0x59360));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{MetaUiUtil}from'./../../utils/meta-ui-util';import{MetaApi}from'../../utils/meta-api';import{MetaCrypto}from'../../utils/meta-crypto';import a0_0x195cca from'lodash-es/snakeCase';import a0_0x5eb0dd from'lodash-es/upperFirst';import{singular}from'pluralize';const i18nextEn=i18next[a0_0x26a4f2(0x19e)]('en',null,null),i18nextKo=i18next['getFixedT']('ko',null,null),colTypes={'character\x20varying':a0_0x26a4f2(0x1a9),'numeric':'NUMERIC','boolean':a0_0x26a4f2(0x1c7),'uuid':'VARCHAR','timestamp':'TIMESTAMP','date':'DATE','datetime':a0_0x26a4f2(0x17d),'integer':'INT'};function a0_0x5d04(_0xac6e42,_0x1125ce){const _0x70de2c=a0_0x70de();return a0_0x5d04=function(_0x5d0490,_0x1f97eb){_0x5d0490=_0x5d0490-0x175;let _0x5926f8=_0x70de2c[_0x5d0490];return _0x5926f8;},a0_0x5d04(_0xac6e42,_0x1125ce);}function a0_0x70de(){const _0x11dbc9=['name','string','field','display','endsWith','resource-object','master_detail_element','recordName','Grist','fetchHandler','args','5814333NJvilo','column_type','group_type','tab','queryName','isArray','dispField','code_ref','column_size','select_opt','styles','locale','object_opt','hidden','index','screen_group_type','length','forEach','deleted_at','898723xmofsF','5230HeSmrO','filter','map','meta-form-element','querySelector','exportMenuInfo','includes','group_cd','grid_align','export-menu-popup','columns','entity','shadowRoot','18VjQIEh','etc','table_index','GRID','object','grist','label','define','is_search_field','DATETIME','filters','descriptionField','dec','872vQaSnc','is_main_list_field','gridConfig','findIndex','width','tTitle','806454aFItHm','searchByPagination','routing','8GJVehd','query','unique','left','group_nm_en','code','is_export_field','menu','seq','getI18t','ko-KR','integer','template','records','center','column_display_en','search','meta-object-selector','entity_ref','log','getFixedT','parse','getGristColumnConfig2','push','getGristSelectableConfig','toUpperCase','grid_width','rank','getTerms','editable','80416iwRkFt','VARCHAR','column_ko','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20menu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20template\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20entity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20\x20\x20dataProp\x0a\x20\x20\x20\x20\x20\x20\x20\x20delStrategy\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20entityColumns{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20defVal\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20indices{\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20isUnique\x0a\x20\x20\x20\x20\x20\x20\x20\x20columns\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20columns{\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20isNullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20length\x0a\x20\x20\x20\x20\x20\x20\x20\x20type\x0a\x20\x20\x20\x20\x20\x20\x20\x20default\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20parentMenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20','substring','column_not_null','screen_group_display_en','grid_column','menu,','align','column_id','_id','connectedCallback','render','default_value','code_reference_field','is_not_null','join','column_en','entity_code_ref','indices','12YTkMiU','entityColumns','data_revision_no','type','gql','en-US','3358670ZybwHc','nameField','bind','column_length','BOOLEAN','isNullable','column_display_ko','export_field','exportableData','export','771042BbYbUm','exportable'];a0_0x70de=function(){return _0x11dbc9;};return a0_0x70de();}export class ExportMenuPopup extends localize(i18next)(LitElement){static get[a0_0x26a4f2(0x1e4)](){return[ScrollbarStyles,CommonGristStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -18,15 +18,15 @@ const a0_0x43a878=a0_0x38dd;(function(_0x5677fd,_0x5a5084){const _0x1d34e4=a0_0x
|
|
|
18
18
|
text-align: right;
|
|
19
19
|
padding-right: 12px;
|
|
20
20
|
}
|
|
21
|
-
`];}async[
|
|
21
|
+
`];}async[a0_0x26a4f2(0x1b4)](){const _0x4a8956=a0_0x26a4f2;this[_0x4a8956(0x183)]={'rows':MetaApi[_0x4a8956(0x1a2)](!0x1),'pagination':{'infinite':!0x0},'columns':[MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x195),_0x4a8956(0x192),_0x4a8956(0x192),_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1aa),_0x4a8956(0x1c9),'left',!0x1,!0x1,0x96),MetaApi['getGristColumnConfig2']('string',_0x4a8956(0x1ba),_0x4a8956(0x199),'left',!0x1,!0x1,0x96),MetaApi[_0x4a8956(0x1a0)]('string','group_cd','screen_group_cd',_0x4a8956(0x18d),!0x1,!0x1,0x64),MetaApi['getGristColumnConfig2'](_0x4a8956(0x1d0),_0x4a8956(0x18e),_0x4a8956(0x1ae),'left',!0x1,!0x1,0x96),MetaApi[_0x4a8956(0x1a0)]('string','group_nm_ko','screen_group_display_ko',_0x4a8956(0x18d),!0x1,!0x1,0x96),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1dc),_0x4a8956(0x1e9),_0x4a8956(0x18d),!0x1,!0x1,0x64),MetaApi['getGristColumnConfig2'](_0x4a8956(0x1d0),_0x4a8956(0x1b2),_0x4a8956(0x1b2),'left',!0x1,!0x1,0x96),MetaApi[_0x4a8956(0x1a0)]('string','search_field',_0x4a8956(0x17c),_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),'entity_ref','entity_object_reference_field',_0x4a8956(0x18d),!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)]('string',_0x4a8956(0x1bb),'entity_code_reference_field','left',!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1e1),_0x4a8956(0x1b7),_0x4a8956(0x18d),!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),'main_column',_0x4a8956(0x182),_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x4a8956(0x1d0),_0x4a8956(0x1a7),'is_editable',_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1e7),_0x4a8956(0x1e7),_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi['getGristColumnConfig2']('string',_0x4a8956(0x1f6),_0x4a8956(0x1f6),_0x4a8956(0x198),!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)]('string','export_field',_0x4a8956(0x190),_0x4a8956(0x198),!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1a4),'field_width',_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x4a8956(0x1d0),'column_type',_0x4a8956(0x1db),_0x4a8956(0x198),!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1c6),_0x4a8956(0x1e2),_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1ad),_0x4a8956(0x1b8),_0x4a8956(0x198),!0x1,!0x1,0x50),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x1b6),_0x4a8956(0x1b6),_0x4a8956(0x18d),!0x1,!0x1,0x50),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),'index',_0x4a8956(0x176),_0x4a8956(0x18d),!0x1,!0x1,0x64),MetaApi[_0x4a8956(0x1a0)](_0x4a8956(0x1d0),_0x4a8956(0x18c),'is_unique',_0x4a8956(0x198),!0x1,!0x1,0x64)]},super['connectedCallback']&&await super['connectedCallback']();}[a0_0x26a4f2(0x1b5)](){const _0x316cad=a0_0x26a4f2;return html`
|
|
22
22
|
<ox-grist
|
|
23
23
|
id="ox-grist"
|
|
24
|
-
.config=${this[
|
|
25
|
-
.mode=${
|
|
24
|
+
.config=${this[_0x316cad(0x183)]}
|
|
25
|
+
.mode=${_0x316cad(0x177)}
|
|
26
26
|
auto-fetch
|
|
27
|
-
.fetchHandler=${this[
|
|
27
|
+
.fetchHandler=${this[_0x316cad(0x1d8)]['bind'](this)}>
|
|
28
28
|
</ox-grist>
|
|
29
29
|
<div id="button-container" class="button-container">
|
|
30
|
-
<mwc-button raised label="${TermsUtil[
|
|
30
|
+
<mwc-button raised label="${TermsUtil['tButton']('export')}" @click=${this['export'][_0x316cad(0x1c5)](this)}></mwc-button>
|
|
31
31
|
</div>
|
|
32
|
-
`;}get[a0_0x43a878(0x1cc)](){const _0x430215=a0_0x43a878;return this[_0x430215(0x19f)][_0x430215(0x1aa)](_0x430215(0x1ec));}async[a0_0x43a878(0x1dc)](){const _0x3abde1=a0_0x43a878;let _0x324a69=TermsUtil[_0x3abde1(0x1b9)](this[_0x3abde1(0x21e)]);return await MetaApi['exportableData'](!0x0,_0x324a69,this[_0x3abde1(0x1cc)]);}async[a0_0x43a878(0x1f3)]({page:_0x2d14e8=0x0,limit:_0x4f0cbf=0x0,sortings:_0x559b7a=[],filters:_0x2acbc3=[]}){const _0x43bf98=a0_0x43a878;let _0x498ef4=await MetaApi[_0x43bf98(0x1fe)](_0x43bf98(0x1c0),this[_0x43bf98(0x18f)],'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20menu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20template\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20entity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20\x20\x20dataProp\x0a\x20\x20\x20\x20\x20\x20\x20\x20delStrategy\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20entityColumns{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20defVal\x0a\x20\x20\x20\x20\x20\x20},\x0a\x20\x20\x20\x20\x20\x20indices{\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20isUnique\x0a\x20\x20\x20\x20\x20\x20\x20\x20columns\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20columns{\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20isNullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20length\x0a\x20\x20\x20\x20\x20\x20\x20\x20type\x0a\x20\x20\x20\x20\x20\x20\x20\x20default\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20parentMenu{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20'),_0x2125ed=_0x498ef4[_0x43bf98(0x206)][_0x43bf98(0x1de)](_0x1a74fb=>!0x1===['id',_0x43bf98(0x194),_0x43bf98(0x190)][_0x43bf98(0x1f1)](_0x1a74fb[_0x43bf98(0x203)]))[_0x43bf98(0x218)](_0xdb5f1f=>{const _0x883319=_0x43bf98;let _0x218c89={'column_id':_0xdb5f1f['name'],'column_type':_0xdb5f1f[_0x883319(0x1e7)],'column_length':_0xdb5f1f[_0x883319(0x1b7)],'column_not_null':!0x0===_0xdb5f1f[_0x883319(0x19a)]?'':'O','default_value':_0xdb5f1f[_0x883319(0x1ff)]},_0x1b64d2=_0x498ef4[_0x883319(0x1da)][_0x883319(0x1f8)](_0x5a0044=>_0x5a0044[_0x883319(0x203)]==_0xdb5f1f[_0x883319(0x203)]);return _0x1b64d2>-0x1&&(_0x218c89[_0x883319(0x20d)]=_0x498ef4[_0x883319(0x1da)][_0x1b64d2][_0x883319(0x20d)]),_0x218c89;}),_0x58b57d=_0x2125ed[_0x43bf98(0x1b7)];_0x2125ed=_0x2125ed[_0x43bf98(0x1ab)]((_0xc6aeda,_0x5e14b8)=>_0xc6aeda['rank']-_0x5e14b8[_0x43bf98(0x20d)]);for(let _0x2acbf7=0x0;_0x2acbf7<_0x498ef4[_0x43bf98(0x1e6)][_0x43bf98(0x1b7)];_0x2acbf7++)_0x2125ed[_0x2acbf7][_0x43bf98(0x1e8)]=!0x0===_0x498ef4[_0x43bf98(0x1e6)][_0x2acbf7][_0x43bf98(0x1fa)]?'O':'',_0x2125ed[_0x2acbf7][_0x43bf98(0x1d3)]=_0x498ef4[_0x43bf98(0x1e6)][_0x2acbf7][_0x43bf98(0x206)][_0x43bf98(0x1de)](_0x4c6da3=>_0x43bf98(0x190)!=_0x4c6da3)[_0x43bf98(0x204)](',');let _0x3b2e1e=JSON[_0x43bf98(0x1b0)](MetaCrypto[_0x43bf98(0x1dd)](_0x498ef4['menu'][_0x43bf98(0x1fd)]));_0x3b2e1e['grid_column'][_0x43bf98(0x1e1)](_0x4c9ac1=>{const _0x39cff4=_0x43bf98;let _0x3de643=a0_0x16dd44(_0x4c9ac1[_0x39cff4(0x203)]);[_0x39cff4(0x1a7),_0x39cff4(0x1ac),_0x39cff4(0x192)][_0x39cff4(0x1f1)](_0x4c9ac1[_0x39cff4(0x1e7)])&&(_0x3de643+='_id');let _0xdc8561=_0x2125ed[_0x39cff4(0x1f8)](_0xf7f8dd=>_0xf7f8dd['column_id']==_0x3de643);if(_0xdc8561>-0x1){if(_0x2125ed[_0xdc8561][_0x39cff4(0x207)]='O',_0x2125ed[_0xdc8561][_0x39cff4(0x1c1)]=!0x0===_0x4c9ac1['editable']?'O':'',_0x2125ed[_0xdc8561][_0x39cff4(0x1f4)]=!0x0===_0x4c9ac1['hidden']?'O':'',_0x2125ed[_0xdc8561][_0x39cff4(0x1c5)]=_0x4c9ac1[_0x39cff4(0x1e0)],_0x2125ed[_0xdc8561][_0x39cff4(0x1e9)]=!0x0===_0x4c9ac1[_0x39cff4(0x19e)]?'O':'',_0x2125ed[_0xdc8561][_0x39cff4(0x1c2)]=_0x4c9ac1[_0x39cff4(0x1ee)],_0x2125ed[_0xdc8561][_0x39cff4(0x1bc)]='',_0x2125ed[_0xdc8561][_0x39cff4(0x1a2)]='',_0x2125ed[_0xdc8561][_0x39cff4(0x1e5)]='',_0x4c9ac1['select_opt']){let _0x574b52=_0x4c9ac1['select_opt'];_0x39cff4(0x20b)==_0x574b52[_0x39cff4(0x1e7)]?_0x2125ed[_0xdc8561][_0x39cff4(0x1e5)]=_0x574b52[_0x39cff4(0x203)]:_0x39cff4(0x205)==_0x574b52[_0x39cff4(0x1e7)]&&(_0x2125ed[_0xdc8561][_0x39cff4(0x1a2)]=_0x574b52['name']+','+_0x574b52[_0x39cff4(0x1ba)][_0x39cff4(0x1eb)]+','+_0x574b52[_0x39cff4(0x1ba)][_0x39cff4(0x1be)]);}else{if(_0x4c9ac1[_0x39cff4(0x19c)]){let _0x213109=_0x4c9ac1[_0x39cff4(0x19c)];_0x213109[_0x39cff4(0x219)]?_0x2125ed[_0xdc8561][_0x39cff4(0x1bc)]=_0x39cff4(0x21d)+_0x213109['menu']:(_0x2125ed[_0xdc8561][_0x39cff4(0x1bc)]=a0_0x18aa62(singular(_0x213109[_0x39cff4(0x214)]))+','+_0x213109[_0x39cff4(0x21c)],_0x213109['descriptionField']&&_0x213109['descriptionField'][_0x39cff4(0x1b7)]>0x0&&(_0x2125ed[_0xdc8561][_0x39cff4(0x1bc)]+=','+_0x213109['descriptionField']));}}}}),[..._0x3b2e1e['gql'][_0x43bf98(0x1d9)][_0x43bf98(0x1ef)],..._0x3b2e1e[_0x43bf98(0x220)]][_0x43bf98(0x1e1)](_0x622b1f=>{const _0x214593=_0x43bf98;let _0x3135f6=a0_0x16dd44(_0x622b1f['name']),_0x114554=_0x2125ed['findIndex'](_0x255a4b=>_0x255a4b[_0x214593(0x208)]==_0x3135f6);_0x114554>-0x1&&(_0x2125ed[_0x114554][_0x214593(0x1ce)]='O');});let _0x44649c=[..._0x3b2e1e[_0x43bf98(0x217)]];_0x3b2e1e[_0x43bf98(0x1db)]['master_detail_element']&&_0x44649c[_0x43bf98(0x1d6)](JSON[_0x43bf98(0x1b0)](_0x3b2e1e[_0x43bf98(0x1db)][_0x43bf98(0x1b6)]));for(let _0x49fc46=0x0;_0x49fc46<_0x44649c[_0x43bf98(0x1b7)];_0x49fc46++){let _0x2ca25a=_0x44649c[_0x49fc46],_0x32d818=await this['getTerms'](_0x43bf98(0x1d5),[_0x43bf98(0x1c7),_0x43bf98(0x213)],_0x2ca25a[_0x43bf98(0x1a0)]),_0xe5d128=await this[_0x43bf98(0x1a3)](_0x43bf98(0x211),[_0x43bf98(0x1c7),'field'],_0x2ca25a['display']),_0x3cf3a3=await MetaUiUtil['getMenuMetaData'](_0x2ca25a['menu']?_0x2ca25a[_0x43bf98(0x219)]:_0x2ca25a['routing']);if(!_0x3cf3a3||!_0x3cf3a3[_0x43bf98(0x1b1)]||0x0==_0x3cf3a3['records'][_0x43bf98(0x1b7)])continue;let _0x3815b9=JSON[_0x43bf98(0x1b0)](MetaCrypto[_0x43bf98(0x1dd)](_0x3cf3a3[_0x43bf98(0x1b1)][0x0][_0x43bf98(0x1fd)]));for(let _0x2a2b66 in _0x3815b9[_0x43bf98(0x1af)]){let _0x4792aa=_0x3815b9[_0x43bf98(0x1af)][_0x2a2b66],_0x541ec2=a0_0x16dd44(_0x4792aa['name']);[_0x43bf98(0x1a7),_0x43bf98(0x1ac),_0x43bf98(0x192)][_0x43bf98(0x1f1)](_0x4792aa['type'])&&(_0x541ec2+=_0x43bf98(0x210));let _0x34a234=_0x2125ed[_0x43bf98(0x1f8)](_0x46dc5d=>_0x46dc5d['column_id']==_0x541ec2);if(_0x34a234>-0x1){if(console[_0x43bf98(0x1d7)](_0x2ca25a['tagName']),_0x2125ed[_0x34a234][_0x43bf98(0x1fb)]=_0x2ca25a['name'],_0x2125ed[_0x34a234][_0x43bf98(0x1e3)]=_0x32d818,_0x2125ed[_0x34a234][_0x43bf98(0x1ed)]=_0xe5d128,_0x2125ed[_0x34a234][_0x43bf98(0x21b)]=_0x43bf98(0x1a4)==_0x2ca25a[_0x43bf98(0x197)]?_0x43bf98(0x1ea):_0x43bf98(0x1e4),_0x2125ed[_0x34a234][_0x43bf98(0x1c1)]=!0x0===_0x4792aa[_0x43bf98(0x1c1)]?'O':'',_0x2125ed[_0x34a234][_0x43bf98(0x1f4)]=!0x0===_0x4792aa[_0x43bf98(0x1f4)]?'O':'',_0x2125ed[_0x34a234][_0x43bf98(0x1c5)]=_0x4792aa['align'],_0x2125ed[_0x34a234]['export_field']=!0x0===_0x4792aa[_0x43bf98(0x19e)]?'O':'',_0x2125ed[_0x34a234][_0x43bf98(0x1c2)]=_0x4792aa['width'],_0x2125ed[_0x34a234][_0x43bf98(0x1bc)]='',_0x2125ed[_0x34a234][_0x43bf98(0x1a2)]='',_0x2125ed[_0x34a234][_0x43bf98(0x1e5)]='',_0x4792aa[_0x43bf98(0x1f9)]){let _0x3f249f=_0x4792aa[_0x43bf98(0x1f9)];'code'==_0x3f249f[_0x43bf98(0x1e7)]?_0x2125ed[_0x34a234]['code_ref']=_0x3f249f['name']:_0x43bf98(0x205)==_0x3f249f[_0x43bf98(0x1e7)]&&(_0x2125ed[_0x34a234]['entity_code_ref']=_0x3f249f['name']+','+_0x3f249f[_0x43bf98(0x1ba)]['codeField']+','+_0x3f249f[_0x43bf98(0x1ba)][_0x43bf98(0x1be)]);}else{if(_0x4792aa[_0x43bf98(0x19c)]){let _0x21c359=_0x4792aa[_0x43bf98(0x19c)];_0x21c359['menu']?_0x2125ed[_0x34a234][_0x43bf98(0x1bc)]=_0x43bf98(0x21d)+_0x21c359['menu']:(_0x2125ed[_0x34a234][_0x43bf98(0x1bc)]=a0_0x18aa62(singular(_0x21c359[_0x43bf98(0x214)]))+','+_0x21c359[_0x43bf98(0x21c)],_0x21c359[_0x43bf98(0x1df)]&&_0x21c359[_0x43bf98(0x1df)]['length']>0x0&&(_0x2125ed[_0x34a234][_0x43bf98(0x1bc)]+=','+_0x21c359[_0x43bf98(0x1df)]));}}}}}for(let _0x150c07 in _0x2125ed){let _0x2b23cf=_0x2125ed[_0x150c07];_0x2b23cf[_0x43bf98(0x1ae)]=Number(_0x150c07)+0x1,_0x2b23cf[_0x43bf98(0x1d0)]=await this['getTerms'](_0x43bf98(0x211),[_0x43bf98(0x1c7),_0x43bf98(0x213)],_0x2b23cf[_0x43bf98(0x208)]['endsWith'](_0x43bf98(0x210))?_0x2b23cf[_0x43bf98(0x208)][_0x43bf98(0x1bf)](0x0,_0x2b23cf[_0x43bf98(0x208)][_0x43bf98(0x1b7)]-0x3):_0x2b23cf['column_id']),_0x2b23cf[_0x43bf98(0x1ad)]=await this[_0x43bf98(0x1a3)]('en-US',[_0x43bf98(0x1c7),_0x43bf98(0x213)],_0x2b23cf[_0x43bf98(0x208)][_0x43bf98(0x209)](_0x43bf98(0x210))?_0x2b23cf['column_id'][_0x43bf98(0x1bf)](0x0,_0x2b23cf[_0x43bf98(0x208)][_0x43bf98(0x1b7)]-0x3):_0x2b23cf[_0x43bf98(0x208)]),_0x2b23cf['column_id']=_0x2b23cf[_0x43bf98(0x208)][_0x43bf98(0x1e2)](),_0x2b23cf[_0x43bf98(0x1f6)]=colTypes[_0x2b23cf[_0x43bf98(0x1f6)]];}return{'records':_0x2125ed,'total':_0x58b57d};}async['getTerms'](_0x5432d3,_0x17716e,_0x356839){const _0x602f60=a0_0x43a878;let _0x5cab1f=[{'name':_0x602f60(0x203),'operator':'eq','value':_0x356839},{'name':_0x602f60(0x1b3),'operator':'eq','value':_0x5432d3}];Array[_0x602f60(0x1b8)](_0x17716e)?_0x5cab1f[_0x602f60(0x1d6)]({'name':'category','operator':'in','value':_0x17716e}):_0x5cab1f[_0x602f60(0x1d6)]({'name':_0x602f60(0x21f),'operator':'eq','value':_0x17716e});let _0x3a58ae=await MetaApi[_0x602f60(0x191)](_0x602f60(0x1b4),_0x5cab1f,[],0x0,0x0,_0x602f60(0x1a0));if(_0x3a58ae[_0x602f60(0x1b1)][_0x602f60(0x1b7)]>0x0)return _0x3a58ae[_0x602f60(0x1b1)][0x0]['display'];if(Array[_0x602f60(0x1b8)](_0x17716e))for(let _0x4ad6cc in _0x17716e){let _0x17feaa=this[_0x602f60(0x1fc)](_0x5432d3,_0x17716e[_0x4ad6cc],_0x356839);if(_0x17feaa)return _0x17feaa;}else{let _0x3cc9e4=this[_0x602f60(0x1fc)](_0x5432d3,_0x17716e,_0x356839);if(_0x3cc9e4)return _0x3cc9e4;}return'';}[a0_0x43a878(0x1fc)](_0x416975,_0x41838b,_0x4f2348){const _0x14da7f=a0_0x43a878;let _0x538c09=_0x41838b+'.'+_0x4f2348,_0x5e9bbf='';if(_0x5e9bbf=_0x14da7f(0x1d5)==_0x416975?i18nextEn(_0x538c09):i18nextKo(_0x538c09),_0x5e9bbf!=_0x538c09)return _0x5e9bbf;}}customElements['define'](a0_0x43a878(0x1f7),ExportMenuPopup);
|
|
32
|
+
`;}get[a0_0x26a4f2(0x179)](){const _0x95b4e4=a0_0x26a4f2;return this[_0x95b4e4(0x1fa)][_0x95b4e4(0x1f2)]('#ox-grist');}async[a0_0x26a4f2(0x1cc)](){const _0x550dcc=a0_0x26a4f2;let _0x42126e=TermsUtil[_0x550dcc(0x186)](this[_0x550dcc(0x1d6)]);return await MetaApi[_0x550dcc(0x1cb)](!0x0,_0x42126e,this[_0x550dcc(0x179)]);}async[a0_0x26a4f2(0x1d8)]({page:_0x53190b=0x0,limit:_0x2e73a6=0x0,sortings:_0x684ca9=[],filters:_0x2ae9f2=[]}){const _0x25e3bd=a0_0x26a4f2;let _0x558693=await MetaApi['findOne'](_0x25e3bd(0x1f3),this['recordId'],_0x25e3bd(0x1ab)),_0x64a737=_0x558693[_0x25e3bd(0x1f8)][_0x25e3bd(0x1ef)](_0xe19bcf=>!0x1===['id',_0x25e3bd(0x1bf),_0x25e3bd(0x1ec)][_0x25e3bd(0x1f4)](_0xe19bcf['name']))[_0x25e3bd(0x1f0)](_0x3c9b38=>{const _0x57afe9=_0x25e3bd;let _0x2483a6={'column_id':_0x3c9b38['name'],'column_type':_0x3c9b38[_0x57afe9(0x1c0)],'column_length':_0x3c9b38[_0x57afe9(0x1ea)],'column_not_null':!0x0===_0x3c9b38[_0x57afe9(0x1c8)]?'':'O','default_value':_0x3c9b38['default']},_0x469919=_0x558693[_0x57afe9(0x1be)][_0x57afe9(0x184)](_0x26eb9d=>_0x26eb9d[_0x57afe9(0x1cf)]==_0x3c9b38[_0x57afe9(0x1cf)]);return _0x469919>-0x1&&(_0x2483a6['rank']=_0x558693['entityColumns'][_0x469919][_0x57afe9(0x1a5)]),_0x2483a6;}),_0x597874=_0x64a737[_0x25e3bd(0x1ea)];_0x64a737=_0x64a737['sort']((_0x3b86cd,_0xb435e2)=>_0x3b86cd[_0x25e3bd(0x1a5)]-_0xb435e2[_0x25e3bd(0x1a5)]);for(let _0x338d0b=0x0;_0x338d0b<_0x558693[_0x25e3bd(0x1bc)][_0x25e3bd(0x1ea)];_0x338d0b++)_0x64a737[_0x338d0b][_0x25e3bd(0x18c)]=!0x0===_0x558693[_0x25e3bd(0x1bc)][_0x338d0b]['isUnique']?'O':'',_0x64a737[_0x338d0b][_0x25e3bd(0x1e8)]=_0x558693[_0x25e3bd(0x1bc)][_0x338d0b][_0x25e3bd(0x1f8)]['filter'](_0x2e4830=>_0x25e3bd(0x1ec)!=_0x2e4830)[_0x25e3bd(0x1b9)](',');let _0x40bd28=JSON[_0x25e3bd(0x19f)](MetaCrypto[_0x25e3bd(0x180)](_0x558693[_0x25e3bd(0x191)][_0x25e3bd(0x196)]));_0x40bd28[_0x25e3bd(0x1af)][_0x25e3bd(0x1eb)](_0x3f99bd=>{const _0x4aee7e=_0x25e3bd;let _0x15af38=a0_0x195cca(_0x3f99bd[_0x4aee7e(0x1cf)]);[_0x4aee7e(0x178),_0x4aee7e(0x19b),_0x4aee7e(0x1d4)]['includes'](_0x3f99bd[_0x4aee7e(0x1c0)])&&(_0x15af38+='_id');let _0x2f5b54=_0x64a737[_0x4aee7e(0x184)](_0x3a7b76=>_0x3a7b76[_0x4aee7e(0x1b2)]==_0x15af38);if(_0x2f5b54>-0x1){if(_0x64a737[_0x2f5b54]['main_column']='O',_0x64a737[_0x2f5b54][_0x4aee7e(0x1a7)]=!0x0===_0x3f99bd[_0x4aee7e(0x1a7)]?'O':'',_0x64a737[_0x2f5b54][_0x4aee7e(0x1e7)]=!0x0===_0x3f99bd[_0x4aee7e(0x1e7)]?'O':'',_0x64a737[_0x2f5b54][_0x4aee7e(0x1f6)]=_0x3f99bd[_0x4aee7e(0x1b1)],_0x64a737[_0x2f5b54][_0x4aee7e(0x1ca)]=!0x0===_0x3f99bd[_0x4aee7e(0x1ce)]?'O':'',_0x64a737[_0x2f5b54][_0x4aee7e(0x1a4)]=_0x3f99bd['width'],_0x64a737[_0x2f5b54][_0x4aee7e(0x19c)]='',_0x64a737[_0x2f5b54][_0x4aee7e(0x1bb)]='',_0x64a737[_0x2f5b54]['code_ref']='',_0x3f99bd[_0x4aee7e(0x1e3)]){let _0x32a3d5=_0x3f99bd[_0x4aee7e(0x1e3)];_0x4aee7e(0x18f)==_0x32a3d5[_0x4aee7e(0x1c0)]?_0x64a737[_0x2f5b54][_0x4aee7e(0x1e1)]=_0x32a3d5[_0x4aee7e(0x1cf)]:_0x4aee7e(0x1f9)==_0x32a3d5['type']&&(_0x64a737[_0x2f5b54][_0x4aee7e(0x1bb)]=_0x32a3d5[_0x4aee7e(0x1cf)]+','+_0x32a3d5['args']['codeField']+','+_0x32a3d5['args'][_0x4aee7e(0x1e0)]);}else{if(_0x3f99bd['object_opt']){let _0x272114=_0x3f99bd[_0x4aee7e(0x1e6)];_0x272114['menu']?_0x64a737[_0x2f5b54][_0x4aee7e(0x19c)]=_0x4aee7e(0x1b0)+_0x272114[_0x4aee7e(0x191)]:(_0x64a737[_0x2f5b54][_0x4aee7e(0x19c)]=a0_0x5eb0dd(singular(_0x272114[_0x4aee7e(0x1de)]))+','+_0x272114[_0x4aee7e(0x1c4)],_0x272114['descriptionField']&&_0x272114['descriptionField']['length']>0x0&&(_0x64a737[_0x2f5b54][_0x4aee7e(0x19c)]+=','+_0x272114[_0x4aee7e(0x17f)]));}}}}),[..._0x40bd28[_0x25e3bd(0x1c1)][_0x25e3bd(0x18b)][_0x25e3bd(0x17e)],..._0x40bd28[_0x25e3bd(0x19a)]][_0x25e3bd(0x1eb)](_0x2d5ddd=>{const _0x2df19c=_0x25e3bd;let _0x43d139=a0_0x195cca(_0x2d5ddd[_0x2df19c(0x1cf)]),_0x2680ae=_0x64a737[_0x2df19c(0x184)](_0x2fc178=>_0x2fc178[_0x2df19c(0x1b2)]==_0x43d139);_0x2680ae>-0x1&&(_0x64a737[_0x2680ae]['search_field']='O');});let _0x1ab569=[..._0x40bd28[_0x25e3bd(0x1dd)]];_0x40bd28['etc'][_0x25e3bd(0x1d5)]&&_0x1ab569['push'](JSON['parse'](_0x40bd28[_0x25e3bd(0x175)]['master_detail_element']));for(let _0x5836b9=0x0;_0x5836b9<_0x1ab569['length'];_0x5836b9++){let _0x32f475=_0x1ab569[_0x5836b9],_0x4ad0b3=await this[_0x25e3bd(0x1a6)](_0x25e3bd(0x1c2),[_0x25e3bd(0x17a),_0x25e3bd(0x1d1)],_0x32f475[_0x25e3bd(0x1d2)]),_0x43c626=await this[_0x25e3bd(0x1a6)]('ko-KR',[_0x25e3bd(0x17a),'field'],_0x32f475[_0x25e3bd(0x1d2)]),_0xb519e6=await MetaUiUtil['getMenuMetaData'](_0x32f475[_0x25e3bd(0x191)]?_0x32f475[_0x25e3bd(0x191)]:_0x32f475[_0x25e3bd(0x189)]);if(!_0xb519e6||!_0xb519e6[_0x25e3bd(0x197)]||0x0==_0xb519e6[_0x25e3bd(0x197)][_0x25e3bd(0x1ea)])continue;let _0x138a45=JSON[_0x25e3bd(0x19f)](MetaCrypto[_0x25e3bd(0x180)](_0xb519e6[_0x25e3bd(0x197)][0x0][_0x25e3bd(0x196)]));for(let _0x55bbdb in _0x138a45['grid_column']){let _0x3a2bb8=_0x138a45[_0x25e3bd(0x1af)][_0x55bbdb],_0x5d26b4=a0_0x195cca(_0x3a2bb8[_0x25e3bd(0x1cf)]);[_0x25e3bd(0x178),_0x25e3bd(0x19b),_0x25e3bd(0x1d4)][_0x25e3bd(0x1f4)](_0x3a2bb8[_0x25e3bd(0x1c0)])&&(_0x5d26b4+=_0x25e3bd(0x1b3));let _0x44a11d=_0x64a737[_0x25e3bd(0x184)](_0x19d486=>_0x19d486[_0x25e3bd(0x1b2)]==_0x5d26b4);if(_0x44a11d>-0x1){if(console[_0x25e3bd(0x19d)](_0x32f475['tagName']),_0x64a737[_0x44a11d][_0x25e3bd(0x1f5)]=_0x32f475[_0x25e3bd(0x1cf)],_0x64a737[_0x44a11d]['group_nm_en']=_0x4ad0b3,_0x64a737[_0x44a11d]['group_nm_ko']=_0x43c626,_0x64a737[_0x44a11d]['group_type']=_0x25e3bd(0x1f1)==_0x32f475['tagname']?'Form':_0x25e3bd(0x1d7),_0x64a737[_0x44a11d][_0x25e3bd(0x1a7)]=!0x0===_0x3a2bb8[_0x25e3bd(0x1a7)]?'O':'',_0x64a737[_0x44a11d][_0x25e3bd(0x1e7)]=!0x0===_0x3a2bb8[_0x25e3bd(0x1e7)]?'O':'',_0x64a737[_0x44a11d][_0x25e3bd(0x1f6)]=_0x3a2bb8[_0x25e3bd(0x1b1)],_0x64a737[_0x44a11d][_0x25e3bd(0x1ca)]=!0x0===_0x3a2bb8[_0x25e3bd(0x1ce)]?'O':'',_0x64a737[_0x44a11d]['grid_width']=_0x3a2bb8[_0x25e3bd(0x185)],_0x64a737[_0x44a11d][_0x25e3bd(0x19c)]='',_0x64a737[_0x44a11d][_0x25e3bd(0x1bb)]='',_0x64a737[_0x44a11d]['code_ref']='',_0x3a2bb8[_0x25e3bd(0x1e3)]){let _0x5ba812=_0x3a2bb8[_0x25e3bd(0x1e3)];'code'==_0x5ba812[_0x25e3bd(0x1c0)]?_0x64a737[_0x44a11d][_0x25e3bd(0x1e1)]=_0x5ba812['name']:_0x25e3bd(0x1f9)==_0x5ba812['type']&&(_0x64a737[_0x44a11d]['entity_code_ref']=_0x5ba812['name']+','+_0x5ba812[_0x25e3bd(0x1d9)]['codeField']+','+_0x5ba812[_0x25e3bd(0x1d9)][_0x25e3bd(0x1e0)]);}else{if(_0x3a2bb8[_0x25e3bd(0x1e6)]){let _0x484577=_0x3a2bb8[_0x25e3bd(0x1e6)];_0x484577[_0x25e3bd(0x191)]?_0x64a737[_0x44a11d][_0x25e3bd(0x19c)]='menu,'+_0x484577[_0x25e3bd(0x191)]:(_0x64a737[_0x44a11d][_0x25e3bd(0x19c)]=a0_0x5eb0dd(singular(_0x484577[_0x25e3bd(0x1de)]))+','+_0x484577[_0x25e3bd(0x1c4)],_0x484577['descriptionField']&&_0x484577[_0x25e3bd(0x17f)][_0x25e3bd(0x1ea)]>0x0&&(_0x64a737[_0x44a11d][_0x25e3bd(0x19c)]+=','+_0x484577['descriptionField']));}}}}}for(let _0x36261b in _0x64a737){let _0x47b422=_0x64a737[_0x36261b];_0x47b422[_0x25e3bd(0x192)]=Number(_0x36261b)+0x1,_0x47b422[_0x25e3bd(0x1aa)]=await this[_0x25e3bd(0x1a6)](_0x25e3bd(0x194),['label',_0x25e3bd(0x1d1)],_0x47b422[_0x25e3bd(0x1b2)]['endsWith'](_0x25e3bd(0x1b3))?_0x47b422['column_id'][_0x25e3bd(0x1ac)](0x0,_0x47b422[_0x25e3bd(0x1b2)][_0x25e3bd(0x1ea)]-0x3):_0x47b422[_0x25e3bd(0x1b2)]),_0x47b422[_0x25e3bd(0x1ba)]=await this[_0x25e3bd(0x1a6)](_0x25e3bd(0x1c2),[_0x25e3bd(0x17a),'field'],_0x47b422[_0x25e3bd(0x1b2)][_0x25e3bd(0x1d3)](_0x25e3bd(0x1b3))?_0x47b422['column_id'][_0x25e3bd(0x1ac)](0x0,_0x47b422[_0x25e3bd(0x1b2)][_0x25e3bd(0x1ea)]-0x3):_0x47b422[_0x25e3bd(0x1b2)]),_0x47b422[_0x25e3bd(0x1b2)]=_0x47b422[_0x25e3bd(0x1b2)][_0x25e3bd(0x1a3)](),_0x47b422[_0x25e3bd(0x1db)]=colTypes[_0x47b422[_0x25e3bd(0x1db)]];}return{'records':_0x64a737,'total':_0x597874};}async['getTerms'](_0x1ede9f,_0x384c2b,_0xe36e75){const _0x5363b7=a0_0x26a4f2;let _0x51d3ee=[{'name':'name','operator':'eq','value':_0xe36e75},{'name':_0x5363b7(0x1e5),'operator':'eq','value':_0x1ede9f}];Array[_0x5363b7(0x1df)](_0x384c2b)?_0x51d3ee[_0x5363b7(0x1a1)]({'name':'category','operator':'in','value':_0x384c2b}):_0x51d3ee[_0x5363b7(0x1a1)]({'name':'category','operator':'eq','value':_0x384c2b});let _0x32236c=await MetaApi[_0x5363b7(0x188)]('terminologies',_0x51d3ee,[],0x0,0x0,_0x5363b7(0x1d2));if(_0x32236c['records'][_0x5363b7(0x1ea)]>0x0)return _0x32236c[_0x5363b7(0x197)][0x0][_0x5363b7(0x1d2)];if(Array[_0x5363b7(0x1df)](_0x384c2b))for(let _0xd2d558 in _0x384c2b){let _0x5e00a8=this[_0x5363b7(0x193)](_0x1ede9f,_0x384c2b[_0xd2d558],_0xe36e75);if(_0x5e00a8)return _0x5e00a8;}else{let _0x527cf0=this[_0x5363b7(0x193)](_0x1ede9f,_0x384c2b,_0xe36e75);if(_0x527cf0)return _0x527cf0;}return'';}[a0_0x26a4f2(0x193)](_0x47d716,_0x309646,_0xbd6710){let _0x520df3=_0x309646+'.'+_0xbd6710,_0x588334='';if(_0x588334='en-US'==_0x47d716?i18nextEn(_0x520df3):i18nextKo(_0x520df3),_0x588334!=_0x520df3)return _0x588334;}}customElements[a0_0x26a4f2(0x17b)](a0_0x26a4f2(0x1f7),ExportMenuPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x5dea6e=a0_0x2216;(function(_0xcc80c,_0x38978e){var _0x207ddd=a0_0x2216,_0x14305f=_0xcc80c();while(!![]){try{var _0x5580e7=parseInt(_0x207ddd(0x10f))/0x1+parseInt(_0x207ddd(0x109))/0x2+parseInt(_0x207ddd(0x10c))/0x3*(parseInt(_0x207ddd(0x10d))/0x4)+parseInt(_0x207ddd(0x10e))/0x5+-parseInt(_0x207ddd(0x10a))/0x6+-parseInt(_0x207ddd(0x111))/0x7*(parseInt(_0x207ddd(0x10b))/0x8)+parseInt(_0x207ddd(0x108))/0x9;if(_0x5580e7===_0x38978e)break;else _0x14305f['push'](_0x14305f['shift']());}catch(_0x4ab0b3){_0x14305f['push'](_0x14305f['shift']());}}}(a0_0x1d02,0xb33be));import{LitElement}from'lit';function a0_0x2216(_0x14f449,_0x4fcb5b){var _0x1d028f=a0_0x1d02();return a0_0x2216=function(_0x221615,_0xab3fa6){_0x221615=_0x221615-0x108;var _0x4ab70a=_0x1d028f[_0x221615];return _0x4ab70a;},a0_0x2216(_0x14f449,_0x4fcb5b);}import{i18next,localize}from'@operato/i18n';import{MetaFormMixin}from'./../mixin/meta-form-mixin.js';function a0_0x1d02(){var _0x40b520=['335436jDJQSC','6737160nrMWNB','30041nNkocD','meta-form-element','5875247ldPtvt','5664087eBICqS','548862UsjDxC','6762474OOzbOh','8WqyvzT','15BzuWJb'];a0_0x1d02=function(){return _0x40b520;};return a0_0x1d02();}export class MetaFormElement extends MetaFormMixin(localize(i18next)(LitElement)){}customElements['define'](a0_0x5dea6e(0x110),MetaFormElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x1a2c8a=a0_0x5934;function a0_0x5934(_0xe73c4f,_0x2a502e){var _0x27a096=a0_0x27a0();return a0_0x5934=function(_0x59341a,_0x47ad74){_0x59341a=_0x59341a-0x9c;var _0x2e9f29=_0x27a096[_0x59341a];return _0x2e9f29;},a0_0x5934(_0xe73c4f,_0x2a502e);}(function(_0x1161bb,_0x143e76){var _0x142be6=a0_0x5934,_0x1fd87e=_0x1161bb();while(!![]){try{var _0x5a4219=-parseInt(_0x142be6(0x9f))/0x1*(parseInt(_0x142be6(0xa4))/0x2)+-parseInt(_0x142be6(0xa5))/0x3*(-parseInt(_0x142be6(0xa6))/0x4)+parseInt(_0x142be6(0xa7))/0x5+-parseInt(_0x142be6(0x9c))/0x6+-parseInt(_0x142be6(0x9e))/0x7+-parseInt(_0x142be6(0xa0))/0x8*(parseInt(_0x142be6(0xa3))/0x9)+parseInt(_0x142be6(0xa2))/0xa;if(_0x5a4219===_0x143e76)break;else _0x1fd87e['push'](_0x1fd87e['shift']());}catch(_0x3fc423){_0x1fd87e['push'](_0x1fd87e['shift']());}}}(a0_0x27a0,0x9b0d1));function a0_0x27a0(){var _0x3d6e0c=['10tnoiUU','7782fbBtLg','148uwMXso','5361000dwSsyI','2769732IfEhXp','define','470001tRTaAO','173071SwELmC','5000kaZVzI','meta-grist-element','20954060DFzEJe','17775bTiYsz'];a0_0x27a0=function(){return _0x3d6e0c;};return a0_0x27a0();}import{LitElement}from'lit';import{i18next,localize}from'@operato/i18n';import{MetaBasicGristMixin}from'./../mixin/meta-basic-grist-mixin.js';export class MetaGristElement extends MetaBasicGristMixin(localize(i18next)(LitElement)){}customElements[a0_0x1a2c8a(0x9d)](a0_0x1a2c8a(0xa1),MetaGristElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x41df5d=a0_0x25f7;(function(_0x5bb39d,_0x38ce20){var _0x2f2a98=a0_0x25f7,_0x43a33e=_0x5bb39d();while(!![]){try{var _0x3cc889=parseInt(_0x2f2a98(0x101))/0x1*(parseInt(_0x2f2a98(0x100))/0x2)+-parseInt(_0x2f2a98(0x109))/0x3*(parseInt(_0x2f2a98(0x10a))/0x4)+parseInt(_0x2f2a98(0x102))/0x5*(parseInt(_0x2f2a98(0x10c))/0x6)+-parseInt(_0x2f2a98(0x108))/0x7*(-parseInt(_0x2f2a98(0x10d))/0x8)+parseInt(_0x2f2a98(0x106))/0x9*(parseInt(_0x2f2a98(0x105))/0xa)+-parseInt(_0x2f2a98(0x107))/0xb*(parseInt(_0x2f2a98(0x10b))/0xc)+-parseInt(_0x2f2a98(0x104))/0xd;if(_0x3cc889===_0x38ce20)break;else _0x43a33e['push'](_0x43a33e['shift']());}catch(_0x5e5a09){_0x43a33e['push'](_0x43a33e['shift']());}}}(a0_0x268e,0x44b62));import{i18next,localize}from'@operato/i18n';import{PageView}from'@things-factory/shell';import{MetaBasicGristMixin}from'./../mixin/meta-basic-grist-mixin.js';function a0_0x25f7(_0x384b17,_0x16ec09){var _0x268e5a=a0_0x268e();return a0_0x25f7=function(_0x25f72e,_0x3c3b20){_0x25f72e=_0x25f72e-0x100;var _0x4f7aa0=_0x268e5a[_0x25f72e];return _0x4f7aa0;},a0_0x25f7(_0x384b17,_0x16ec09);}import'./meta-grist-element';import'./meta-form-element';import'./meta-tab-element';export class MetaGristPage extends MetaBasicGristMixin(localize(i18next)(PageView)){}customElements['define'](a0_0x41df5d(0x103),MetaGristPage);function a0_0x268e(){var _0x623179=['120310hoDzJh','meta-grist-page','5240573hQBHHI','123130bujMGA','351DotdqZ','2035PcMPNU','335489MNhnVJ','881187VEEwnI','4dtFYyB','4968bXuXTD','24KfzhJs','8dWBwak','20500FByxCi','42hWfpZo'];a0_0x268e=function(){return _0x623179;};return a0_0x268e();}
|