@things-factory/meta-ui 6.1.49 → 6.1.52
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/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- 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 +7 -7
- 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/meta-object-selector-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-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/menu/export-menu-popup.js +22 -8
- 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/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 +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
- package/translations/en.json +24 -1
- package/translations/ko.json +24 -1
- package/translations/ms.json +24 -1
- package/translations/zh.json +24 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5e76c0=a0_0x2faa;(function(_0x56eb7a,_0x3d7df2){const _0xd2cc0d=a0_0x2faa,_0xf19441=_0x56eb7a();while(!![]){try{const _0x15377e=-parseInt(_0xd2cc0d(0x12b))/0x1+-parseInt(_0xd2cc0d(0x159))/0x2*(parseInt(_0xd2cc0d(0x15a))/0x3)+parseInt(_0xd2cc0d(0x143))/0x4*(parseInt(_0xd2cc0d(0x15c))/0x5)+parseInt(_0xd2cc0d(0x127))/0x6*(parseInt(_0xd2cc0d(0x137))/0x7)+-parseInt(_0xd2cc0d(0x142))/0x8+-parseInt(_0xd2cc0d(0x177))/0x9*(-parseInt(_0xd2cc0d(0x166))/0xa)+parseInt(_0xd2cc0d(0x16c))/0xb;if(_0x15377e===_0x3d7df2)break;else _0xf19441['push'](_0xf19441['shift']());}catch(_0x53edad){_0xf19441['push'](_0xf19441['shift']());}}}(a0_0x3a48,0x98468));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x3a48(){const _0xda1b97=['queryName','getCodeByEntity','grist','define','values','9NLqezR','clickCancel','114JaUSNu','fetchHandler','info','search','711754dYfFSu','bind','align','clickEmpty','type','filterFields','codeField','push','getParams','meta-code-selector','dispField','query','314153lzdnvd','select','startsWith','gridConfig','confirmCallback','tText','left','appendable','menu','getCodeByScenario','NOTHING_SELECTED','6232736DWUUQE','63508poswJg','getGristColumnConfig2','filters','search_hidden_fields','firstUpdated','menu_template','args','columns','string','empty','styles','options','length','scenario','resource-code-selector','selected','keys','#ox-grist','getGristMetaObjectOptions','connectedCallback','tButton','basicArgs','562jnSkjY','2433MgAXqj','shadowRoot','325RJBxDl','name','sorters','getCodeSelectorData','resource-object','getGristPagination100Config','searchByPagination','code','getGristGuttersConfig','nameField','538500UKbhua','includes','meta-','record','select-row-toggle','filter','4442911uFXcmx','meta-object-selector-popup','rows','LIST','selectRecord','cancel'];a0_0x3a48=function(){return _0xda1b97;};return a0_0x3a48();}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x2faa(_0x3e72d4,_0xd3f2d9){const _0x3a4822=a0_0x3a48();return a0_0x2faa=function(_0x2faae0,_0x1d61e9){_0x2faae0=_0x2faae0-0x126;let _0xea0f5a=_0x3a4822[_0x2faae0];return _0xea0f5a;},a0_0x2faa(_0x3e72d4,_0xd3f2d9);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x5e76c0(0x14d)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x505b5c=a0_0x5263;function a0_0x5263(_0x556bf0,_0x367cd3){const _0x4ac
|
|
|
17
17
|
display: flex;
|
|
18
18
|
margin-left: auto;
|
|
19
19
|
}
|
|
20
|
-
`];async['connectedCallback'](){const
|
|
21
|
-
<ox-grist id="ox-grist" .config=${this[
|
|
22
|
-
.fetchHandler=${this[
|
|
20
|
+
`];async['connectedCallback'](){const _0x5a5567=a0_0x5e76c0;this[_0x5a5567(0x146)]=this['options'][_0x5a5567(0x145)]?this[_0x5a5567(0x14e)][_0x5a5567(0x145)]:this[_0x5a5567(0x158)]&&this[_0x5a5567(0x158)][_0x5a5567(0x145)]?this[_0x5a5567(0x158)][_0x5a5567(0x145)]:[];let _0x4951b0=this['options'][_0x5a5567(0x15e)]?this['options'][_0x5a5567(0x15e)]:this[_0x5a5567(0x158)]&&this[_0x5a5567(0x158)][_0x5a5567(0x15e)]?this['basicArgs']['sorters']:[],_0x4e18ab=this[_0x5a5567(0x14e)]['filterFields']?this[_0x5a5567(0x14e)][_0x5a5567(0x130)]:this[_0x5a5567(0x14e)][_0x5a5567(0x148)]?.[_0x5a5567(0x12a)]&&this['options'][_0x5a5567(0x148)]?.[_0x5a5567(0x12a)]['length']>0x0?this['options'][_0x5a5567(0x148)][_0x5a5567(0x12a)]:[],_0x361eab=this[_0x5a5567(0x14e)][_0x5a5567(0x138)];if(!_0x4e18ab||0x0==_0x4e18ab['length']){let _0x432637;this['options'][_0x5a5567(0x131)]&&(_0x432637=this['options'][_0x5a5567(0x131)]),this[_0x5a5567(0x14e)][_0x5a5567(0x165)]&&(_0x432637=this[_0x5a5567(0x14e)]['nameField']),_0x432637&&_0x4e18ab[_0x5a5567(0x132)]({'name':_0x432637,'operator':'eq'});}let _0xc5e24c=[...MetaApi[_0x5a5567(0x164)](!0x0,!0x1)];if(_0x361eab&&_0x361eab[_0x5a5567(0x14f)]>0x0)for(let _0x3a337d=0x0;_0x3a337d<_0x361eab[_0x5a5567(0x14f)];_0x3a337d++){let {type:_0x1e5332='string',name:_0x189048,hidden:_0x3567a2=!0x1,record:_0x2a7474={'align':_0x5a5567(0x13d)},header:_0xe2b745,sortable:_0x20a7a7=!0x1,width:_0x8b9623=0x87,options:_0x47d507,select_opt:_0x179b91,object_opt:_0x1a61cb}=_0x361eab[_0x3a337d];if(_0x179b91&&(_0x47d507=_0x179b91),_0x1a61cb&&(_0x47d507=_0x1a61cb),[_0x5a5567(0x160),'object'][_0x5a5567(0x167)](_0x1e5332)?_0x1e5332='meta-object-selector':[_0x5a5567(0x151)][_0x5a5567(0x167)](_0x1e5332)&&(_0x1e5332=_0x5a5567(0x134)),'id'==_0x189048)_0xc5e24c[_0x5a5567(0x132)]({'type':_0x5a5567(0x14b),'name':_0x189048,'hidden':!0x0});else{let _0x3d2946=MetaApi[_0x5a5567(0x144)](_0x1e5332,_0x189048,_0xe2b745||_0x189048,_0x2a7474[_0x5a5567(0x12d)]?_0x2a7474[_0x5a5567(0x12d)]:'left',!0x1,_0x20a7a7,_0x8b9623);_0x1e5332[_0x5a5567(0x139)](_0x5a5567(0x168))&&_0x1a61cb&&_0x1a61cb[_0x5a5567(0x13f)]&&(_0x47d507=await MetaUiUtil[_0x5a5567(0x155)](_0x1e5332,_0x47d507)),_0x5a5567(0x138)===_0x1e5332?Array['isArray'](_0x47d507)?_0x3d2946[_0x5a5567(0x169)]['options']=_0x47d507:_0x5a5567(0x163)===_0x47d507['type']?_0x3d2946[_0x5a5567(0x169)][_0x5a5567(0x14e)]=await ServiceUtil[_0x5a5567(0x15f)](_0x47d507[_0x5a5567(0x176)]?_0x47d507[_0x5a5567(0x176)]:_0x47d507[_0x5a5567(0x15d)]):_0x5a5567(0x150)===_0x47d507[_0x5a5567(0x12f)]?_0x3d2946[_0x5a5567(0x169)][_0x5a5567(0x14e)]=await ServiceUtil[_0x5a5567(0x140)](_0x47d507[_0x5a5567(0x15d)],_0x47d507['args']):'entity'===_0x47d507[_0x5a5567(0x12f)]&&(_0x3d2946[_0x5a5567(0x169)][_0x5a5567(0x14e)]=await ServiceUtil[_0x5a5567(0x173)](_0x47d507[_0x5a5567(0x149)])):'meta-object-selector'===_0x1e5332?_0x3d2946['record']['options']={..._0x47d507}:_0x5a5567(0x134)==_0x1e5332&&(_0x47d507[_0x5a5567(0x135)]&&(_0x47d507['codes']=await ServiceUtil[_0x5a5567(0x173)](_0x47d507)),_0x3d2946['record'][_0x5a5567(0x14e)]={..._0x47d507}),_0x3d2946['hidden']=_0x3567a2,_0xc5e24c['push'](_0x3d2946);}}else _0xc5e24c[_0x5a5567(0x132)](MetaApi[_0x5a5567(0x144)](_0x5a5567(0x14b),this[_0x5a5567(0x14e)]['codeField'],this[_0x5a5567(0x14e)]['codeField'],'left',!0x1,!0x0,0xb4)),this[_0x5a5567(0x14e)][_0x5a5567(0x135)]&&_0xc5e24c[_0x5a5567(0x132)](MetaApi['getGristColumnConfig2']('string',this[_0x5a5567(0x14e)]['dispField'],this[_0x5a5567(0x14e)]['dispField'],'left',!0x1,!0x0,0x12c));_0xc5e24c['forEach'](_0x167d41=>{const _0x1c2235=_0x5a5567;let _0x5173f5=_0x4e18ab[_0x1c2235(0x16b)](_0x1cf76a=>'string'==typeof _0x1cf76a?_0x167d41[_0x1c2235(0x15d)]==_0x1cf76a:_0x167d41[_0x1c2235(0x15d)]==_0x1cf76a[_0x1c2235(0x15d)]);_0x5173f5&&_0x5173f5[_0x1c2235(0x14f)]>0x0&&(_0x167d41[_0x1c2235(0x16b)]=_0x1c2235(0x14b)==typeof _0x5173f5[0x0]?'search':_0x5173f5[0x0]);});let _0x33a3b5={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0x5a5567(0x161)](),'columns':_0xc5e24c,'sorters':[..._0x4951b0]};_0x33a3b5[_0x5a5567(0x16e)]['handlers']={'click':_0x5a5567(0x16a),'dblclick':(_0x529bcc,_0x344557,_0x5a24b9,_0x3240ab,_0x28b0bb,_0x32cede)=>{const _0x5df8f5=_0x5a5567;this[_0x5df8f5(0x170)](_0x3240ab);}},_0x33a3b5['rows'][_0x5a5567(0x13e)]=!0x1,this[_0x5a5567(0x13a)]=_0x33a3b5,await super[_0x5a5567(0x156)]();}async[a0_0x5e76c0(0x147)](){await super['firstUpdated']();}['render'](){const _0x4e7a09=a0_0x5e76c0;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?_0x4e7a09(0x16f):'GRID'} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x4e7a09(0x128)]['bind'](this)}>
|
|
23
23
|
<div slot="headroom">
|
|
24
24
|
<div id="filters">
|
|
25
25
|
<ox-filters-form></ox-filters-form>
|
|
@@ -27,14 +27,14 @@ const a0_0x505b5c=a0_0x5263;function a0_0x5263(_0x556bf0,_0x367cd3){const _0x4ac
|
|
|
27
27
|
</div>
|
|
28
28
|
</ox-grist>
|
|
29
29
|
<div id="button-container" class="button-container">
|
|
30
|
-
<mwc-button raised label="${TermsUtil[
|
|
31
|
-
@click=${this[
|
|
30
|
+
<mwc-button raised label="${TermsUtil[_0x4e7a09(0x157)](_0x4e7a09(0x14c))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x4e7a09(0x12e)][_0x4e7a09(0x12c)](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x4e7a09(0x157)](_0x4e7a09(0x171))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0x4e7a09(0x126)][_0x4e7a09(0x12c)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this['clickSelect'][
|
|
36
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x4e7a09(0x138))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this['clickSelect'][_0x4e7a09(0x12c)](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x5e76c0(0x174)](){const _0x1553ea=a0_0x5e76c0;return this[_0x1553ea(0x15b)]['querySelector'](_0x1553ea(0x154));}async[a0_0x5e76c0(0x128)]({page:_0x5ccdf4=0x0,limit:_0x29ca08=0x0,sorters:_0x3aa266=[],filters:_0xc95f25=[]}){const _0x3ec47b=a0_0x5e76c0;let _0x275f2c=[...this[_0x3ec47b(0x146)]];_0xc95f25['forEach'](_0x15cfc7=>{const _0x1e90d2=_0x3ec47b;let _0x314a71=_0x275f2c['filter'](_0xfb1109=>_0x15cfc7['name']==_0xfb1109[_0x1e90d2(0x15d)]);_0x314a71&&_0x314a71[_0x1e90d2(0x14f)]>0x0&&delete _0x275f2c[_0x15cfc7['name']],_0x275f2c[_0x1e90d2(0x132)](_0x15cfc7);});let _0x448033=ValueUtil[_0x3ec47b(0x133)](this[_0x3ec47b(0x14e)][_0x3ec47b(0x148)]&&this['options'][_0x3ec47b(0x148)]['gql']||{},_0x3ec47b(0x136),'after_set_fields'),_0x411427=Object[_0x3ec47b(0x153)](_0x448033||{}),_0x4fb46=MetaApi['getSelectColumns'](this[_0x3ec47b(0x13a)][_0x3ec47b(0x14a)]['filter'](_0x137cbb=>!_0x411427[_0x3ec47b(0x167)](_0x137cbb[_0x3ec47b(0x15d)])));return await MetaApi[_0x3ec47b(0x162)](this[_0x3ec47b(0x14e)][_0x3ec47b(0x172)],_0x275f2c,_0x3aa266,_0x5ccdf4,_0x29ca08,_0x4fb46);}async[a0_0x5e76c0(0x12e)](_0x33b173){const _0xb38e6d=a0_0x5e76c0;this[_0xb38e6d(0x13b)]&&this['confirmCallback'](null),closePopup(this);}async['clickCancel'](_0x4d407b){closePopup(this);}async['clickSelect'](_0x182e61){const _0x651bfd=a0_0x5e76c0;let _0x2739d6=this[_0x651bfd(0x174)][_0x651bfd(0x152)];_0x2739d6&&0x0!=_0x2739d6[_0x651bfd(0x14f)]?this['selectRecord'](_0x2739d6[0x0]):MetaApi['showToast'](_0x651bfd(0x129),TermsUtil[_0x651bfd(0x13c)](_0x651bfd(0x141)));}async['selectRecord'](_0x565fae){this['confirmCallback']&&this['confirmCallback'](_0x565fae),closePopup(this);}}customElements[a0_0x5e76c0(0x175)](a0_0x5e76c0(0x16d),MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x47d31f=a0_0x3938;(function(_0xb3b048,_0x37a1e1){const _0x961f47=a0_0x3938,_0x47c821=_0xb3b048();while(!![]){try{const _0x3c5e63=parseInt(_0x961f47(0x13e))/0x1*(-parseInt(_0x961f47(0x13b))/0x2)+parseInt(_0x961f47(0x119))/0x3+parseInt(_0x961f47(0x11f))/0x4+-parseInt(_0x961f47(0x129))/0x5*(-parseInt(_0x961f47(0x13d))/0x6)+-parseInt(_0x961f47(0x12e))/0x7*(parseInt(_0x961f47(0x12f))/0x8)+-parseInt(_0x961f47(0x142))/0x9*(-parseInt(_0x961f47(0x139))/0xa)+parseInt(_0x961f47(0x124))/0xb*(-parseInt(_0x961f47(0x14a))/0xc);if(_0x3c5e63===_0x37a1e1)break;else _0x47c821['push'](_0x47c821['shift']());}catch(_0x55641a){_0x47c821['push'](_0x47c821['shift']());}}}(a0_0x13da,0xc4db3));import{MetaApi}from'./../utils/meta-api';function a0_0x3938(_0xce0151,_0x2ebc0b){const _0x13da55=a0_0x13da();return a0_0x3938=function(_0x393864,_0xd5c9ef){_0x393864=_0x393864-0x116;let _0xf53e3a=_0x13da55[_0x393864];return _0xf53e3a;},a0_0x3938(_0xce0151,_0x2ebc0b);}function a0_0x13da(){const _0x30f9ac=['fetch','parseBasicTabConfigs','body','getParams','parseBasicFormConfigs','12IIcxxR','form-field-change','title_detail','isPage','openDynamicPopup','getAndParseMenuMeta','dispatchEvent','data','isEmpty','parseBasicServiceConfigs','is_popup','menu','is_detail','isDetail','title','isElement','3236322cLXVNB','params','dataChangeEventHandler','fieldChangeHandlers','errors','executeCallScenarioButtonClick','1440824RahfnW','data-changed','addEventListener','runScenario','isPopup','5412913lHviUT','field-change','tagName','properties','menuInfo','20965Fkvngy','lifecycle','callScenario','detail','name','2098348CYGxMp','16zLlmdi','filterForm','connectedCallback','excuteOpenPopupButtonClick','etc','active','parseBasicButtonConfigs','keys','meta-form-','result','250ZtwALw','isNotEmpty','4mMPvxs','etcConfig','498IWviAg','669470FiXESX','grist','parent_id','after','521955ZLqhOb','fetchHandler','startsWith'];a0_0x13da=function(){return _0x30f9ac;};return a0_0x13da();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x151ae6=>class extends _0x151ae6{static get[a0_0x47d31f(0x127)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xdb0caf=>Boolean(_0xdb0caf)},'is_popup':{'type':Boolean,'converter':_0x15f5a3=>Boolean(_0x15f5a3)},'is_activity':{'type':Boolean,'converter':_0x8a5844=>Boolean(_0x8a5844)},'is_readonly':{'type':Boolean,'converter':_0x54b118=>Boolean(_0x54b118)}};}get[a0_0x47d31f(0x118)](){const _0x45a538=a0_0x47d31f;return!0x0===this[_0x45a538(0x156)]||!0x0===this[_0x45a538(0x154)];}get[a0_0x47d31f(0x116)](){const _0x5ec45b=a0_0x47d31f;return!ValueUtil['isEmpty'](this[_0x5ec45b(0x156)])&&this[_0x5ec45b(0x156)];}async['dataChangeEventHandler'](_0x2dbdab){const _0x246cb0=a0_0x47d31f;let {after:_0x2d6693,before:_0x3f39e1,column:_0x243774,record:_0x2f3ea5,row:_0x9c2178}=_0x2dbdab[_0x246cb0(0x12c)],_0x1a1498=_0x243774[_0x246cb0(0x12d)];if(Object[_0x246cb0(0x136)](this[_0x246cb0(0x11c)]||{})['includes'](_0x1a1498)){let _0x3d7fe9,_0xa992da=(await MetaApi[_0x246cb0(0x12b)](void 0x0,this[_0x246cb0(0x11c)][_0x1a1498],{'columnName':_0x1a1498,'column':_0x243774,'record':_0x2f3ea5,'after':_0x2d6693,'before':_0x3f39e1,'row':_0x9c2178,'parentId':this[_0x246cb0(0x140)]?this[_0x246cb0(0x140)]:''},!0x1))['data'][_0x246cb0(0x122)][_0x246cb0(0x151)][_0x246cb0(0x138)];if(!_0xa992da)return;_0x3d7fe9=this[_0x246cb0(0x13f)]?this[_0x246cb0(0x13f)]['grist'][_0x246cb0(0x147)]:this,Object[_0x246cb0(0x136)](_0xa992da)['forEach'](_0x4b1467=>{const _0x56a2a1=_0x246cb0;_0x3d7fe9[_0x56a2a1(0x150)](new CustomEvent(_0x56a2a1(0x125),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x2f3ea5,'row':_0x9c2178,'after':_0xa992da[_0x4b1467],'before':_0x2f3ea5[_0x4b1467],'column':{'name':_0x4b1467}}}));});}this['dispatchEvent'](new CustomEvent(_0x246cb0(0x120),{'bubbles':!0x0,'composed':!0x0,'detail':_0x2dbdab['detail']}));}async[a0_0x47d31f(0x131)](){const _0x1e1507=a0_0x47d31f;super[_0x1e1507(0x131)]&&await super[_0x1e1507(0x131)](),this[_0x1e1507(0x126)]['toLowerCase']()[_0x1e1507(0x144)](_0x1e1507(0x137))?this[_0x1e1507(0x121)](_0x1e1507(0x14b),async _0x48a434=>{await this['dataChangeEventHandler'](_0x48a434);}):this[_0x1e1507(0x121)](_0x1e1507(0x125),async _0xc5b2b0=>{const _0x4e24f4=_0x1e1507;await this[_0x4e24f4(0x11b)](_0xc5b2b0);});}async['pageUpdated'](_0x3a1fb8,_0x3a2fb1,_0xd7e05e){const _0x233ea7=a0_0x47d31f;let _0x470f8d=this[_0x233ea7(0x12a)]?.[_0x233ea7(0x11a)]?this[_0x233ea7(0x12a)][_0x233ea7(0x11a)]:{};this[_0x233ea7(0x14d)]&&this[_0x233ea7(0x134)]&&0x0==_0xd7e05e[_0x233ea7(0x134)]&&ValueUtil['isNotEmpty'](_0x470f8d)&&this[_0x233ea7(0x145)]();}get[a0_0x47d31f(0x123)](){const _0xa1e985=a0_0x47d31f;return!ValueUtil[_0xa1e985(0x152)](this[_0xa1e985(0x154)])&&this[_0xa1e985(0x154)];}get[a0_0x47d31f(0x14d)](){const _0x1c2539=a0_0x47d31f;return!this[_0x1c2539(0x156)]&&!this[_0x1c2539(0x154)];}async[a0_0x47d31f(0x14f)](){const _0x5db457=a0_0x47d31f;let _0x2c158b=await MetaApi['getMenuMeta'](this);_0x2c158b&&(this[_0x5db457(0x128)]=_0x2c158b[_0x5db457(0x155)],this[_0x5db457(0x13c)]=_0x2c158b[_0x5db457(0x133)],this['parseBasicGridConfigs']&&this['parseBasicGridConfigs'](_0x2c158b),this[_0x5db457(0x153)]&&this[_0x5db457(0x153)](_0x2c158b),this[_0x5db457(0x149)]&&this['parseBasicFormConfigs'](_0x2c158b),this[_0x5db457(0x146)]&&this[_0x5db457(0x146)](_0x2c158b),this['parseBasicButtonConfigs']&&this[_0x5db457(0x135)](_0x2c158b));}async[a0_0x47d31f(0x145)](){const _0x1f0fc1=a0_0x47d31f;ValueUtil[_0x1f0fc1(0x13a)](this[_0x1f0fc1(0x13f)])?this[_0x1f0fc1(0x13f)][_0x1f0fc1(0x145)]():(ValueUtil[_0x1f0fc1(0x13a)](this[_0x1f0fc1(0x130)])||this[_0x1f0fc1(0x143)])&&await this[_0x1f0fc1(0x143)]();}async[a0_0x47d31f(0x132)](_0x581ab3,_0xaef448,_0x9651aa){const _0x15a417=a0_0x47d31f;let _0x3d234d=TermsUtil['tTitle'](_0x581ab3[_0x15a417(0x117)]);ValueUtil[_0x15a417(0x13a)](_0x581ab3[_0x15a417(0x14c)])&&(_0x3d234d=_0x3d234d+'-'+ValueUtil[_0x15a417(0x148)](_0xaef448,..._0x581ab3[_0x15a417(0x14c)]['split']('.'))),MetaApi[_0x15a417(0x14e)](_0x3d234d,_0x581ab3,_0xaef448,_0x9651aa);}async[a0_0x47d31f(0x11e)](_0x30d299,_0x109777,_0x4927ef){const _0xa46feb=a0_0x47d31f;let _0x5ea9a9=await MetaApi['callScenario'](_0x30d299[_0xa46feb(0x12d)],_0x30d299[_0xa46feb(0x12d)],_0x109777);!0x1!==_0x5ea9a9&&!_0x5ea9a9[_0xa46feb(0x11d)]&&ValueUtil[_0xa46feb(0x13a)](_0x30d299[_0xa46feb(0x141)])&&_0x4927ef();}['setParentId'](_0x34c851){const _0x18549a=a0_0x47d31f;this['parent_id']=_0x34c851,this[_0x18549a(0x145)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x9a3185=a0_0x121b;(function(_0x4a7f29,_0x117429){const _0xc1ddba=a0_0x121b,_0x33f6c=_0x4a7f29();while(!![]){try{const _0x431675=-parseInt(_0xc1ddba(0x164))/0x1+-parseInt(_0xc1ddba(0x14e))/0x2+-parseInt(_0xc1ddba(0x14d))/0x3*(-parseInt(_0xc1ddba(0x155))/0x4)+-parseInt(_0xc1ddba(0x132))/0x5+parseInt(_0xc1ddba(0x15b))/0x6+-parseInt(_0xc1ddba(0x141))/0x7*(parseInt(_0xc1ddba(0x13f))/0x8)+parseInt(_0xc1ddba(0x156))/0x9;if(_0x431675===_0x117429)break;else _0x33f6c['push'](_0x33f6c['shift']());}catch(_0x3ac54d){_0x33f6c['push'](_0x33f6c['shift']());}}}(a0_0x1df3,0x45dc9));import{html}from'lit';function a0_0x121b(_0x4aec5f,_0x2d3099){const _0x1df386=a0_0x1df3();return a0_0x121b=function(_0x121b49,_0x2ac8b0){_0x121b49=_0x121b49-0x12c;let _0x4835cf=_0x1df386[_0x121b49];return _0x4835cf;},a0_0x121b(_0x4aec5f,_0x2d3099);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x1df3(){const _0x151872=['8980614MjbSDq','gristId','stringify','getParams','isPage','2918772gchoQE','delete','save','search','getSelectedIdList','parseGristConfigs','grid','grist','gridConfig','403627NXlMjP','gridColumnConfig','parse','gridEmphasized','getContextObject','styles','activityDataSet','1498515JzpQGG','parseBasicGridConfigs','___data','ox-grist','isElement','connectedCallback','querySelector','getButtonContainer','properties','findOne','import','filterFormId','getBasicGristStyles','1704rhMoBK','fetch','18431nZngKQ','tTitle','updateMultiple','startsWith','getAndParseMenuMeta','menuInfo','getData','parseGridConfigSet','title','gristConfigSet','context','isNotEmpty','327XedWzs','667834hozpZc','data','pageInitialized','firstUpdated','renderRoot','find','forEach','14676jtapaO'];a0_0x1df3=function(){return _0x151872;};return a0_0x1df3();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x41106=>class extends MetaButtonMixin(_0x41106){static get[a0_0x9a3185(0x130)](){const _0x1e2da8=a0_0x9a3185;return MetaApi[_0x1e2da8(0x13e)]();}static get[a0_0x9a3185(0x13a)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x114481=a0_0x9a3185;return this[_0x114481(0x152)]?.[_0x114481(0x138)](this[_0x114481(0x157)]);}get['filterForm'](){const _0x55ddf6=a0_0x9a3185;return this['shadowRoot']?.[_0x55ddf6(0x138)](this[_0x55ddf6(0x13d)]);}get[a0_0x9a3185(0x14b)](){const _0x360091=a0_0x9a3185;return MetaUiUtil[_0x360091(0x12f)](this);}async['connectedCallback'](){const _0x2af67d=a0_0x9a3185;this[_0x2af67d(0x157)]=_0x2af67d(0x135),this['filterFormId']='ox-filters-form',await this[_0x2af67d(0x145)](),this[_0x2af67d(0x136)]&&await this[_0x2af67d(0x160)](),this[_0x2af67d(0x131)]&&(this['dataSet']=this[_0x2af67d(0x131)]),super[_0x2af67d(0x137)]&&await super[_0x2af67d(0x137)]();}async[a0_0x9a3185(0x151)](){const _0x39ffb5=a0_0x9a3185;super[_0x39ffb5(0x151)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x3d0aa1=a0_0x9a3185;this[_0x3d0aa1(0x15a)]&&await this[_0x3d0aa1(0x160)](),super[_0x3d0aa1(0x150)]&&await super[_0x3d0aa1(0x150)]();}['render'](){const _0x5b7588=a0_0x9a3185;return html`
|
|
2
|
+
${MetaApi['getBasicGristHtml'](this)}
|
|
3
|
+
${this['isPage']?html``:MetaUiUtil[_0x5b7588(0x139)](this)}
|
|
4
|
+
`;}[a0_0x9a3185(0x133)](_0x1ec0a8){const _0x1e7bec=a0_0x9a3185;this[_0x1e7bec(0x163)]=_0x1ec0a8[_0x1e7bec(0x161)],this[_0x1e7bec(0x12c)]=_0x1ec0a8['grid_column'],this['searchConfig']=_0x1ec0a8[_0x1e7bec(0x15e)],this[_0x1e7bec(0x12e)]=_0x1ec0a8[_0x1e7bec(0x12e)];}async[a0_0x9a3185(0x160)](){const _0x8b1afd=a0_0x9a3185;this[_0x8b1afd(0x14a)]=await MetaApi[_0x8b1afd(0x148)](this);}async['fetch'](){const _0x14418c=a0_0x9a3185;await this[_0x14418c(0x162)][_0x14418c(0x140)]();}async[a0_0x9a3185(0x15d)](){const _0x99ddee=a0_0x9a3185;let _0x157da6=MetaApi['patchesForUpdateMultiple'](this[_0x99ddee(0x162)]);!!ValueUtil[_0x99ddee(0x14c)](_0x157da6)&&await this[_0x99ddee(0x143)](_0x157da6)&&this[_0x99ddee(0x140)]();}async[a0_0x9a3185(0x153)](){const _0x1fafc5=a0_0x9a3185;let _0xe93a4f=MetaApi['getSelectedIdList'](this[_0x1fafc5(0x162)],!0x0);return ValueUtil['isNotEmpty'](_0xe93a4f)?await this[_0x1fafc5(0x13b)](_0xe93a4f[0x0]):{};}async[a0_0x9a3185(0x15c)](){const _0x3acaf4=a0_0x9a3185;let _0x3a1478=MetaApi[_0x3acaf4(0x15f)](this[_0x3acaf4(0x162)],!0x0);!!ValueUtil[_0x3acaf4(0x14c)](_0x3a1478)&&await this['deleteByIds'](_0x3a1478)&&this[_0x3acaf4(0x140)]();}async['export'](){const _0xc76ec6=a0_0x9a3185;let _0x354db0=TermsUtil[_0xc76ec6(0x142)](ValueUtil[_0xc76ec6(0x159)](this[_0xc76ec6(0x146)],_0xc76ec6(0x149)));return await MetaApi['exportableData'](this[_0xc76ec6(0x136)],_0x354db0,this[_0xc76ec6(0x162)]);}async[a0_0x9a3185(0x13c)](){}async['clear'](){const _0x24e850=a0_0x9a3185;this[_0x24e850(0x162)]&&(this[_0x24e850(0x162)][_0x24e850(0x14f)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x9a3185(0x147)](){const _0x311388=a0_0x9a3185;let _0x26ae04=this[_0x311388(0x162)][_0x311388(0x134)]['records'];return _0x26ae04=JSON[_0x311388(0x12d)](JSON[_0x311388(0x158)](_0x26ae04)),_0x26ae04[_0x311388(0x154)](_0x1608f5=>{const _0x342abe=_0x311388;Object['keys'](_0x1608f5)[_0x342abe(0x154)](_0x389da2=>{const _0x1ac6ad=_0x342abe;_0x389da2[_0x1ac6ad(0x144)]('__')&&delete _0x1608f5[_0x389da2];});}),_0x26ae04;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x36b428=a0_0x3934;(function(_0x390e37,_0x592c93){const _0x42e62e=a0_0x3934,_0x18c61f=_0x390e37();while(!![]){try{const _0x980560=parseInt(_0x42e62e(0xed))/0x1*(parseInt(_0x42e62e(0xf6))/0x2)+parseInt(_0x42e62e(0xeb))/0x3*(parseInt(_0x42e62e(0xe0))/0x4)+parseInt(_0x42e62e(0xf5))/0x5*(-parseInt(_0x42e62e(0xf1))/0x6)+parseInt(_0x42e62e(0xf2))/0x7*(parseInt(_0x42e62e(0xe3))/0x8)+-parseInt(_0x42e62e(0xde))/0x9+parseInt(_0x42e62e(0xdf))/0xa+-parseInt(_0x42e62e(0xec))/0xb;if(_0x980560===_0x592c93)break;else _0x18c61f['push'](_0x18c61f['shift']());}catch(_0x39fa2b){_0x18c61f['push'](_0x18c61f['shift']());}}}(a0_0x3942,0xee981));import{html}from'lit';function a0_0x3934(_0x280cbe,_0x23277a){const _0x3942a3=a0_0x3942();return a0_0x3934=function(_0x3934e4,_0x271852){_0x3934e4=_0x3934e4-0xda;let _0x15f4ee=_0x3942a3[_0x3934e4];return _0x15f4ee;},a0_0x3934(_0x280cbe,_0x23277a);}import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3942(){const _0x205bdc=['287SKbybL','useButtonImport','parseBasicButtonConfigs','10xEcRAs','112708FboRda','properties','customButtonHandler','import','isPage','12853035zykytK','17383830DbEYHQ','7545936jtPikW','getContextButtons','gristButtonHandler','69128mepCPf','getCustomButtonContainerStyles','isButtonExist','getButtonContainer','useButtonAdd','getCustomButtonContainerStyle','getButtonActionHandler','export','3OPwAdW','25691402BzLikZ','33rQFxgO','button','getBasicButtonHandler','buttonConfig','3293556gmJcJb'];a0_0x3942=function(){return _0x205bdc;};return a0_0x3942();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0xefd21a=>class extends MetaServiceMixin(_0xefd21a){static get[a0_0x36b428(0xda)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x36b428(0xe8)](){const _0x21de77=a0_0x36b428;return MetaUiUtil[_0x21de77(0xe4)]();}[a0_0x36b428(0xe1)](){const _0xb73be6=a0_0x36b428;return MetaUiUtil[_0xb73be6(0xe1)](this);}[a0_0x36b428(0xe6)](){const _0xd7e4ea=a0_0x36b428;return this[_0xd7e4ea(0xdd)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x36b428(0xef)](_0x1c5e9a,_0x916b71,_0x2aad2e){const _0x5c9631=a0_0x36b428;return await MetaUiUtil[_0x5c9631(0xe9)](this,_0x1c5e9a,_0x916b71,_0x2aad2e);}async[a0_0x36b428(0xdb)](_0x180c08){const _0x1c52e3=a0_0x36b428;await MetaUiUtil[_0x1c52e3(0xdb)](this,_0x180c08);}async[a0_0x36b428(0xe2)](_0x48da88,_0x1b461e){const _0x46dde3=a0_0x36b428;await MetaUiUtil[_0x46dde3(0xe2)](this,_0x48da88,_0x1b461e);}[a0_0x36b428(0xf4)](_0x3c7d9d){const _0x1219dd=a0_0x36b428;this[_0x1219dd(0xf0)]=_0x3c7d9d[_0x1219dd(0xee)],this[_0x1219dd(0xf3)]=MetaUiUtil[_0x1219dd(0xe5)](this[_0x1219dd(0xf0)],_0x1219dd(0xdc)),this['useButtonExport']=MetaUiUtil[_0x1219dd(0xe5)](this[_0x1219dd(0xf0)],_0x1219dd(0xea)),this[_0x1219dd(0xe7)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],'add');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x2498(){const _0xf2dfdd=['after','isNotEmpty','object','isEmpty','patchData','8EukKOX','keys','activityDataSet','fetch','keydown','262uBUpKn','findOne','true','function','dispatchEvent','text.check-mandatory','tLabel','removeGarbageData','filter','focus','Enter','editing','updateMultiple','save','key','getData','forEach','__origin__','dirtyData','523bldZEy','firstUpdated','connectedCallback','2143059PlVNSA','field-change','9260923MIwWBa','properties','orgData','info','8950356ggabRx','tagName','form','isPage','renderRoot','currentData','2486755RVCQOX','parent_id','target','showAlertPopup','isElement','clear','is_activity','type','map','startsWith','removeAttribute','formRenderConfig','currentTarget','click','parseFormConfigSet','assign','column','formColumnConfig','before','__dirtyfields__','title.info','entries','includes','button','pageInitialized','record','addEventListener','parseFormConfigs','validation','getAndParseMenuMeta','35484030VdDnPJ','isEquals','grid_column','getBasicFormHtml','code-input','dataSet','editable','name','4syDRIA','render','detail','mandatory','cuFlag','OX-GRID-FIELD','text.NOTHING_CHANGED','__dirty__','9713466JrMljB'];a0_0x2498=function(){return _0xf2dfdd;};return a0_0x2498();}const a0_0x5c152c=a0_0x6ae5;(function(_0x20b15e,_0x3514b0){const _0xa7c1e=a0_0x6ae5,_0x2e63bd=_0x20b15e();while(!![]){try{const _0x14979d=parseInt(_0xa7c1e(0xd1))/0x1*(parseInt(_0xa7c1e(0xbe))/0x2)+-parseInt(_0xa7c1e(0xd4))/0x3*(-parseInt(_0xa7c1e(0xab))/0x4)+parseInt(_0xa7c1e(0xe0))/0x5+-parseInt(_0xa7c1e(0xb3))/0x6+-parseInt(_0xa7c1e(0xd6))/0x7+-parseInt(_0xa7c1e(0xb9))/0x8*(parseInt(_0xa7c1e(0xda))/0x9)+parseInt(_0xa7c1e(0xa3))/0xa;if(_0x14979d===_0x3514b0)break;else _0x2e63bd['push'](_0x2e63bd['shift']());}catch(_0x445258){_0x2e63bd['push'](_0x2e63bd['shift']());}}}(a0_0x2498,0xd9d4c));function a0_0x6ae5(_0x27472a,_0x38f6c1){const _0x24985b=a0_0x2498();return a0_0x6ae5=function(_0x6ae5da,_0x3dd1d1){_0x6ae5da=_0x6ae5da-0x94;let _0x57b6c3=_0x24985b[_0x6ae5da];return _0x57b6c3;},a0_0x6ae5(_0x27472a,_0x38f6c1);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x395dca=>class extends MetaButtonMixin(_0x395dca){static get['styles'](){return MetaApi['getBasicFormStyles']();}static get[a0_0x5c152c(0xd7)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){return MetaUiUtil['getContextObject'](this);}async['connectedCallback'](){const _0x11a820=a0_0x5c152c;await this[_0x11a820(0xa2)](),this[_0x11a820(0xe4)]&&await this['parseFormConfigs'](),this[_0x11a820(0xbb)]&&(this[_0x11a820(0xa8)]=this[_0x11a820(0xbb)]),!0x0!==this[_0x11a820(0xe6)]||this[_0x11a820(0xe1)]||(this['parent_id']='activity'),super[_0x11a820(0xd3)]&&await super[_0x11a820(0xd3)](),this[_0x11a820(0xe4)]&&await this[_0x11a820(0xbc)](),this[_0x11a820(0xde)][_0x11a820(0x9f)](_0x11a820(0xbd),_0x7b5e11=>{const _0x1271bb=_0x11a820;switch(_0x7b5e11[_0x1271bb(0xcc)]){case'Esc':case'Escape':case _0x1271bb(0xc8):this['focus'](),this[_0x1271bb(0xec)]&&this[_0x1271bb(0xec)][_0x1271bb(0xea)](_0x1271bb(0xc9)),this[_0x1271bb(0xec)]=null;}}),this['renderRoot']['addEventListener'](_0x11a820(0xed),_0x129c96=>{const _0x35f99b=_0x11a820;_0x129c96['stopPropagation']();let _0x5d9ad5=_0x129c96[_0x35f99b(0xe2)];if(this['currentTarget']&&(this[_0x35f99b(0xc7)](),this['currentTarget']['removeAttribute'](_0x35f99b(0xc9))),_0x35f99b(0xb0)!==_0x5d9ad5[_0x35f99b(0xdb)]||!_0x5d9ad5[_0x35f99b(0x95)]['record'][_0x35f99b(0xa9)])return this[_0x35f99b(0xc7)](),void(this['currentTarget']=null);this[_0x35f99b(0xec)]=_0x5d9ad5,_0x5d9ad5['setAttribute'](_0x35f99b(0xc9),_0x35f99b(0xc0));}),this[_0x11a820(0x9f)](_0x11a820(0xd5),_0x222ad6=>{const _0x1bb9b3=_0x11a820;var {after:_0x2dbbb8,before:_0x16e556,column:_0x329e9b,record:_0x1331a5,row:_0x18d870}=_0x222ad6[_0x1bb9b3(0xad)];if(ValueUtil['isEquals'](_0x2dbbb8,_0x16e556))return;var _0x1590e1=_0x329e9b[_0x1bb9b3(0xa1)];if(_0x1590e1&&_0x1bb9b3(0xc1)==typeof _0x1590e1&&!_0x1590e1['call'](this,_0x2dbbb8,_0x16e556,_0x1331a5,_0x329e9b))return;let _0x1d4b07=_0x329e9b[_0x1bb9b3(0xaa)];_0x1331a5[_0x1d4b07]=_0x2dbbb8,_0x1331a5[_0x1bb9b3(0x98)]=_0x1331a5[_0x1bb9b3(0x98)]||{},_0x1331a5[_0x1bb9b3(0xcf)]=_0x1331a5[_0x1bb9b3(0xcf)]||{},_0x1331a5[_0x1bb9b3(0x98)][_0x1d4b07]={'before':_0x1331a5[_0x1bb9b3(0xcf)][_0x1d4b07],'after':_0x1331a5[_0x1d4b07]},ValueUtil[_0x1bb9b3(0xa4)](_0x1331a5['__dirtyfields__'][_0x1d4b07][_0x1bb9b3(0x97)],_0x1331a5['__dirtyfields__'][_0x1d4b07]['after'])&&delete _0x1331a5[_0x1bb9b3(0x98)][_0x1d4b07],ValueUtil[_0x1bb9b3(0xb5)](_0x1331a5[_0x1bb9b3(0x98)])?_0x1331a5[_0x1bb9b3(0xb2)]='M':_0x1331a5[_0x1bb9b3(0xb2)]='',this['record']={..._0x1331a5},this[_0x1bb9b3(0xc2)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x222ad6[_0x1bb9b3(0xad)]}));});}async['firstUpdated'](){const _0x35b338=a0_0x5c152c;super[_0x35b338(0xd2)]&&await super['firstUpdated']();}async[a0_0x5c152c(0x9d)](){const _0x1ac900=a0_0x5c152c;this[_0x1ac900(0xdd)]&&await this[_0x1ac900(0xa0)](),super['pageInitialized']&&await super[_0x1ac900(0x9d)](),this[_0x1ac900(0xdd)]&&await this[_0x1ac900(0xbc)]();}[a0_0x5c152c(0xac)](){const _0x132dd5=a0_0x5c152c;return MetaApi[_0x132dd5(0xa6)](this);}['parseBasicFormConfigs'](_0x503fba){const _0xa35add=a0_0x5c152c;this[_0xa35add(0x96)]=_0x503fba[_0xa35add(0xa5)],this[_0xa35add(0xeb)]=_0x503fba[_0xa35add(0xdc)],_0x503fba[_0xa35add(0x9c)]=_0x503fba[_0xa35add(0x9c)]['filter'](_0x46ab72=>'save'==_0x46ab72[_0xa35add(0xaa)]);}async[a0_0x5c152c(0xa0)](){const _0x26d256=a0_0x5c152c;this['formConfigSet']=await MetaApi[_0x26d256(0xee)](this);}get[a0_0x5c152c(0xd8)](){const _0x23a591=a0_0x5c152c;return this[_0x23a591(0xc5)](this[_0x23a591(0x9e)][_0x23a591(0xcf)]);}get[a0_0x5c152c(0xd0)](){const _0xb2e92c=a0_0x5c152c;if(ValueUtil['isEmpty']((this['record']||{})[_0xb2e92c(0x98)]))return{};let _0x5b0a5c={};return Object[_0xb2e92c(0x9a)](this[_0xb2e92c(0x9e)][_0xb2e92c(0x98)])[_0xb2e92c(0xe8)](([_0x1789b6,_0x11402c])=>{const _0x6926b0=_0xb2e92c;0x0==_0x1789b6['startsWith']('__')&&(_0x5b0a5c[_0x1789b6]=_0x11402c[_0x6926b0(0xb4)]);}),_0x5b0a5c;}get[a0_0x5c152c(0xdf)](){const _0x363c27=a0_0x5c152c;return this[_0x363c27(0xc5)](this['record']);}[a0_0x5c152c(0xc5)](_0x13432d){const _0x297e6b=a0_0x5c152c;let _0x3c64aa={};if(_0x13432d)return Object[_0x297e6b(0x9a)](_0x13432d)[_0x297e6b(0xe8)](([_0x43c1b3,_0x169934])=>{const _0x4d52fb=_0x297e6b;0x0==_0x43c1b3[_0x4d52fb(0xe9)]('__')&&(_0x3c64aa[_0x43c1b3]=_0x169934);}),_0x3c64aa;}get[a0_0x5c152c(0xb8)](){const _0x4cb92d=a0_0x5c152c;let _0x2f959a=this[_0x4cb92d(0xd0)],_0x8a9655=this[_0x4cb92d(0x9e)],_0x59b638=(this[_0x4cb92d(0x96)]||[])[_0x4cb92d(0xc6)](_0x158da1=>_0x4cb92d(0xa7)===_0x158da1[_0x4cb92d(0xe7)])[_0x4cb92d(0xe8)](_0x1fb00c=>_0x1fb00c[_0x4cb92d(0xaa)]);if(!ValueUtil[_0x4cb92d(0xb7)](_0x2f959a))return ValueUtil[_0x4cb92d(0xb5)](_0x8a9655['id'])?(_0x2f959a['id']=_0x8a9655['id'],_0x2f959a['cuFlag']='M'):_0x2f959a[_0x4cb92d(0xaf)]='+',Object[_0x4cb92d(0xba)](_0x2f959a)['forEach'](_0x241c13=>{const _0x24eab7=_0x4cb92d;_0x24eab7(0xb6)==typeof _0x2f959a[_0x241c13]&&0x0==_0x59b638[_0x24eab7(0x9b)](_0x241c13)&&(_0x2f959a[_0x241c13]={'id':_0x2f959a[_0x241c13]['id']});}),[_0x2f959a];}async['fetch'](){const _0x34080c=a0_0x5c152c;if(ValueUtil[_0x34080c(0xb7)](this[_0x34080c(0xe1)]))return;let _0x2a1ec8=await this[_0x34080c(0xbf)](this[_0x34080c(0xe1)]);_0x2a1ec8['__seq__']=0x1;let _0xff6987={};Object[_0x34080c(0x94)](_0xff6987,_0x2a1ec8),_0x2a1ec8['__origin__']=_0xff6987,this[_0x34080c(0x9e)]={..._0x2a1ec8};}async[a0_0x5c152c(0xcb)](){const _0x1bcf06=a0_0x5c152c;let _0x503486=this['patchData'];if(ValueUtil[_0x1bcf06(0xb7)](_0x503486))return void MetaApi['showAlertPopup'](_0x1bcf06(0x99),_0x1bcf06(0xb1));let _0x5de35a={};(this[_0x1bcf06(0x96)]||[])[_0x1bcf06(0xc6)](_0x4a5474=>!0x0===_0x4a5474[_0x1bcf06(0xae)])[_0x1bcf06(0xce)](_0x55dfae=>{const _0x31477c=_0x1bcf06;_0x5de35a[_0x55dfae[_0x31477c(0xaa)]]=_0x55dfae['header'];});let _0x9543b=this[_0x1bcf06(0xdf)];for(let _0x4fb78b in _0x5de35a)if(void 0x0===_0x9543b[_0x4fb78b]||''==_0x9543b[_0x4fb78b])return void UiUtil[_0x1bcf06(0xe3)](_0x1bcf06(0xc3),TermsUtil['tText']('check-mandatory-field',{'x':TermsUtil[_0x1bcf06(0xc4)](_0x5de35a[_0x4fb78b])}),_0x1bcf06(0xd9),'confirm');let _0x46b200=await this[_0x1bcf06(0xca)](_0x503486);return _0x46b200&&await this[_0x1bcf06(0xbc)](),_0x46b200;}async[a0_0x5c152c(0xe5)](){const _0xa7b9ff=a0_0x5c152c;this[_0xa7b9ff(0x9e)]&&(this[_0xa7b9ff(0x9e)]={});}[a0_0x5c152c(0xcd)](){const _0xf4d1b4=a0_0x5c152c;return this[_0xf4d1b4(0xdf)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x21af9c=a0_0x5f12;(function(_0x4ec66e,_0x36234e){const _0x3a5ada=a0_0x5f12,_0x108450=_0x4ec66e();while(!![]){try{const _0x5b7557=-parseInt(_0x3a5ada(0x20b))/0x1+parseInt(_0x3a5ada(0x1de))/0x2*(-parseInt(_0x3a5ada(0x1d4))/0x3)+parseInt(_0x3a5ada(0x1ce))/0x4*(-parseInt(_0x3a5ada(0x1fa))/0x5)+parseInt(_0x3a5ada(0x1b6))/0x6+parseInt(_0x3a5ada(0x1db))/0x7+-parseInt(_0x3a5ada(0x1cd))/0x8*(-parseInt(_0x3a5ada(0x20c))/0x9)+-parseInt(_0x3a5ada(0x1ef))/0xa*(-parseInt(_0x3a5ada(0x1d3))/0xb);if(_0x5b7557===_0x36234e)break;else _0x108450['push'](_0x108450['shift']());}catch(_0x163cd7){_0x108450['push'](_0x108450['shift']());}}}(a0_0x9104,0xdd4bf));function a0_0x5f12(_0x8700a3,_0x36e42f){const _0x910414=a0_0x9104();return a0_0x5f12=function(_0x5f1242,_0x54b6e4){_0x5f1242=_0x5f1242-0x1b3;let _0x5d4834=_0x910414[_0x5f1242];return _0x5d4834;},a0_0x5f12(_0x8700a3,_0x36e42f);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x9104(){const _0x30fec2=['getAndParseMenuMeta','gridColumnConfig','detailElement','2403702knuiCM','getSelectedIdList','gridConfig','___data','getBasicGristTabStyles','import','main','findOne','keys','operator','menuInfo','grist','stringify','getData','push','#detail','header','useFilterForm','activityDataSet','ox-grist','fetch','dataSet','tTitle','8EETvCK','7105796IvXNBn','find','isElement','title','name','11HWhbhD','957YOSipX','styles','filter','parse','shadowRoot','gristConfigSet','delete','7867657lbxmKP','beforeFetch','meta-tab-element','6926Vksirr','value','options','columns','grid_column','parseBasicGridConfigs','isNotEmpty','grid','gridEmphasized','forEach','filterForm','context','render','deleteByIds','patchesForUpdateMultiple','actions','startsWith','25370230rkBVMo','importable','updateMultiple','searchFields','parseGridConfigSet','getGristTabHtml','isPage','ox-filters-form-base','exportable','search','parseGristConfigs','5ZNQGLb','records','properties','useMasterFilterForm','pageInitialized','export','getContextObject','filterFormId','record','connectedCallback','gristId','getParams','querySelector','searchFieldValues','type','renderRoot','searchConfig','694183KQLhTy','3781521RXCPzA','firstUpdated'];a0_0x9104=function(){return _0x30fec2;};return a0_0x9104();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x470206=>class extends MetaButtonMixin(_0x470206){static get[a0_0x21af9c(0x1d5)](){const _0xd170ef=a0_0x21af9c;return MetaApi[_0xd170ef(0x1ba)]();}static get[a0_0x21af9c(0x1fc)](){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_0x21af9c(0x1c1)](){const _0x7e624e=a0_0x21af9c;return this[_0x7e624e(0x209)][_0x7e624e(0x206)](this[_0x7e624e(0x204)]);}get[a0_0x21af9c(0x1e8)](){const _0x56a37=a0_0x21af9c;return this[_0x56a37(0x1d8)]?.[_0x56a37(0x206)](this[_0x56a37(0x201)]);}get[a0_0x21af9c(0x1b5)](){const _0x291af2=a0_0x21af9c;return this[_0x291af2(0x1d8)][_0x291af2(0x206)](_0x291af2(0x1c5));}get[a0_0x21af9c(0x1e9)](){const _0x2ef68d=a0_0x21af9c;let _0x5c3b4a=MetaUiUtil[_0x2ef68d(0x200)](this);return _0x5c3b4a[_0x2ef68d(0x1ed)]&&delete _0x5c3b4a[_0x2ef68d(0x1ed)],_0x5c3b4a[_0x2ef68d(0x1f7)]&&delete _0x5c3b4a[_0x2ef68d(0x1f7)],_0x5c3b4a[_0x2ef68d(0x1f0)]&&delete _0x5c3b4a['importable'],_0x5c3b4a;}async[a0_0x21af9c(0x203)](){const _0x32efc2=a0_0x21af9c;this[_0x32efc2(0x204)]=_0x32efc2(0x1c9),this[_0x32efc2(0x201)]=_0x32efc2(0x1f6),await this[_0x32efc2(0x1b3)](),this['isElement']&&await this[_0x32efc2(0x1f9)](),this[_0x32efc2(0x1c8)]&&(this[_0x32efc2(0x1cb)]=(this['activityDataSet']||{})[_0x32efc2(0x1bc)]),super[_0x32efc2(0x203)]&&await super[_0x32efc2(0x203)]();}async[a0_0x21af9c(0x20d)](){const _0x123d5b=a0_0x21af9c;super[_0x123d5b(0x20d)]&&await super[_0x123d5b(0x20d)]();}async[a0_0x21af9c(0x1fe)](){const _0x208b12=a0_0x21af9c;this[_0x208b12(0x1f5)]&&await this[_0x208b12(0x1f9)](),super[_0x208b12(0x1fe)]&&await super[_0x208b12(0x1fe)]();}[a0_0x21af9c(0x1ea)](){const _0x357eff=a0_0x21af9c;return MetaApi[_0x357eff(0x1f4)](this);}[a0_0x21af9c(0x1e3)](_0x22009f){const _0x34d6d1=a0_0x21af9c;this[_0x34d6d1(0x1b8)]=_0x22009f[_0x34d6d1(0x1e5)],this[_0x34d6d1(0x1b4)]=_0x22009f[_0x34d6d1(0x1e2)],this[_0x34d6d1(0x20a)]=_0x22009f[_0x34d6d1(0x1f8)],this[_0x34d6d1(0x1e6)]=_0x22009f[_0x34d6d1(0x1e6)];}async[a0_0x21af9c(0x1f9)](){const _0x4acea9=a0_0x21af9c;this[_0x4acea9(0x1d9)]=await MetaApi[_0x4acea9(0x1f3)](this),this[_0x4acea9(0x1fd)]=!0x0===this[_0x4acea9(0x1c7)],this[_0x4acea9(0x1c7)]=!0x1,this[_0x4acea9(0x207)]=[],this[_0x4acea9(0x1f2)]=this[_0x4acea9(0x1d9)][_0x4acea9(0x1e1)]['filter'](_0x18e75a=>_0x18e75a[_0x4acea9(0x1d6)])['map'](_0x425ad0=>{const _0x4c7384=_0x4acea9;let _0x461c91={'name':_0x425ad0[_0x4c7384(0x1d2)],'type':'search'===_0x425ad0[_0x4c7384(0x1d6)][_0x4c7384(0x1bf)]?'search':_0x425ad0[_0x4c7384(0x208)],'label':_0x425ad0[_0x4c7384(0x1c6)],'operator':_0x425ad0[_0x4c7384(0x1d6)][_0x4c7384(0x1bf)]?_0x425ad0['filter'][_0x4c7384(0x1bf)]:'eq'};return _0x425ad0['filter'][_0x4c7384(0x1e0)]&&(_0x461c91[_0x4c7384(0x1e0)]=_0x425ad0[_0x4c7384(0x1d6)][_0x4c7384(0x1e0)]),_0x425ad0[_0x4c7384(0x202)][_0x4c7384(0x1e0)]&&(_0x461c91['options']=_0x425ad0[_0x4c7384(0x202)][_0x4c7384(0x1e0)]),_0x425ad0['filter']['value']&&this['searchFieldValues'][_0x4c7384(0x1c4)]({'name':_0x461c91[_0x4c7384(0x1d2)],'operator':_0x461c91[_0x4c7384(0x1bf)],'value':_0x425ad0['filter'][_0x4c7384(0x1df)]}),delete _0x425ad0[_0x4c7384(0x1d6)],_0x461c91;});}async['fetch'](){const _0x3dd277=a0_0x21af9c;await this[_0x3dd277(0x1c1)][_0x3dd277(0x1ca)]();}async[a0_0x21af9c(0x1dc)]({page:_0xdd206f=0x0,limit:_0x5dadc2=0x0,sortings:_0x452be5=[],filters:_0x41c7ee=[]}){const _0x3300fe=a0_0x21af9c;let _0x3556a3=this['renderRoot']['querySelector'](_0x3300fe(0x1dd));return await _0x3556a3['clear'](),!0x0;}async['save'](){const _0x519e64=a0_0x21af9c;let _0x27e6ac=MetaApi[_0x519e64(0x1ec)](this['grist']);!!ValueUtil[_0x519e64(0x1e4)](_0x27e6ac)&&await this[_0x519e64(0x1f1)](_0x27e6ac)&&this['fetch']();}async[a0_0x21af9c(0x1cf)](){const _0x3e7e7d=a0_0x21af9c;let _0x4a7ab7=MetaApi[_0x3e7e7d(0x1b7)](this['grist'],!0x0);return ValueUtil[_0x3e7e7d(0x1e4)](_0x4a7ab7)?await this[_0x3e7e7d(0x1bd)](_0x4a7ab7[0x0]):{};}async[a0_0x21af9c(0x1da)](){const _0x4a919a=a0_0x21af9c;let _0x10ef38=MetaApi[_0x4a919a(0x1b7)](this['grist'],!0x0);!!ValueUtil[_0x4a919a(0x1e4)](_0x10ef38)&&await this[_0x4a919a(0x1eb)](_0x10ef38)&&this['fetch']();}async[a0_0x21af9c(0x1ff)](){const _0x41ea56=a0_0x21af9c;let _0x14cf50=TermsUtil[_0x41ea56(0x1cc)](ValueUtil[_0x41ea56(0x205)](this[_0x41ea56(0x1c0)],_0x41ea56(0x1d1)));return await MetaApi['exportableData'](this[_0x41ea56(0x1d0)],_0x14cf50,this[_0x41ea56(0x1c1)]);}async[a0_0x21af9c(0x1bb)](){}[a0_0x21af9c(0x1c3)](){const _0x1abce7=a0_0x21af9c;let _0x2280ea=this[_0x1abce7(0x1c1)][_0x1abce7(0x1b9)][_0x1abce7(0x1fb)];return _0x2280ea=JSON[_0x1abce7(0x1d7)](JSON[_0x1abce7(0x1c2)](_0x2280ea)),_0x2280ea[_0x1abce7(0x1e7)](_0x528076=>{const _0x16ec23=_0x1abce7;Object[_0x16ec23(0x1be)](_0x528076)[_0x16ec23(0x1e7)](_0x115462=>{const _0x6f8130=_0x16ec23;_0x115462[_0x6f8130(0x1ee)]('__')&&delete _0x528076[_0x115462];});}),{'main':_0x2280ea,'detail':this[_0x1abce7(0x209)]['querySelector'](_0x1abce7(0x1dd))[_0x1abce7(0x1c3)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5aa649=a0_0xdec4;(function(_0x3dbf18,_0x4796e3){const _0x51689d=a0_0xdec4,_0xeec2b5=_0x3dbf18();while(!![]){try{const _0x248765=-parseInt(_0x51689d(0x158))/0x1*(parseInt(_0x51689d(0x13e))/0x2)+parseInt(_0x51689d(0x129))/0x3+-parseInt(_0x51689d(0x141))/0x4+parseInt(_0x51689d(0x146))/0x5*(-parseInt(_0x51689d(0x140))/0x6)+parseInt(_0x51689d(0x143))/0x7*(parseInt(_0x51689d(0x12d))/0x8)+parseInt(_0x51689d(0x131))/0x9*(parseInt(_0x51689d(0x14d))/0xa)+-parseInt(_0x51689d(0x128))/0xb*(-parseInt(_0x51689d(0x153))/0xc);if(_0x248765===_0x4796e3)break;else _0xeec2b5['push'](_0xeec2b5['shift']());}catch(_0xb42a85){_0xeec2b5['push'](_0xeec2b5['shift']());}}}(a0_0x29bc,0x3df8d));import{html}from'lit';function a0_0x29bc(){const _0xfda38d=['operator','push','976855UIldNi','value','useMasterFilterForm','isPage','getData','gristConfigSet','pageInitialized','69410nsboUd','name','shadowRoot','gridConfig','search','searchConfig','12zdSFep','getBasicMainTabStyles','firstUpdated','getMainTabHtml','activityDataSet','93323UKzDOh','grist','header','searchFieldValues','columns','filter','useFilterForm','actions','type','parseGristConfigs','clear','filterFormId','2006719sKylGO','1292247kWjATK','parseBasicGridConfigs','masterElement','connectedCallback','566760zoBvbT','context','options','gridEmphasized','63NuzXWv','useButtonExport','gristId','main','grid','querySelector','filterForm','searchFields','exportable','gridColumnConfig','getAndParseMenuMeta','record','importable','2wRDodT','fetch','12ryqYxG','1395732ORCWcB','beforeFetch','42ycLiyZ'];a0_0x29bc=function(){return _0xfda38d;};return a0_0x29bc();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0xdec4(_0x3e4452,_0x3d3667){const _0x29bcb7=a0_0x29bc();return a0_0xdec4=function(_0xdec4c5,_0x2206d5){_0xdec4c5=_0xdec4c5-0x123;let _0x580352=_0x29bcb7[_0xdec4c5];return _0x580352;},a0_0xdec4(_0x3e4452,_0x3d3667);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x343192=>class extends MetaButtonMixin(_0x343192){static get['styles'](){const _0x3e6e5c=a0_0xdec4;return MetaApi[_0x3e6e5c(0x154)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x5aa649(0x159)](){return this['masterElement']['getMainGrist']();}get[a0_0x5aa649(0x137)](){const _0x34f60e=a0_0x5aa649;return this[_0x34f60e(0x14f)]?.[_0x34f60e(0x136)](this[_0x34f60e(0x127)]);}get[a0_0x5aa649(0x12e)](){const _0x2be439=a0_0x5aa649;let _0x57b951=MetaUiUtil['getContextObject'](this);return _0x57b951[_0x2be439(0x123)]&&delete _0x57b951[_0x2be439(0x123)],_0x57b951[_0x2be439(0x139)]&&delete _0x57b951['exportable'],_0x57b951['importable']&&delete _0x57b951[_0x2be439(0x13d)],_0x57b951;}async[a0_0x5aa649(0x12c)](){const _0x19a9c6=a0_0x5aa649;this[_0x19a9c6(0x133)]='ox-grist',this['filterFormId']='ox-filters-form-base',await this[_0x19a9c6(0x13b)](),this['isElement']&&await this[_0x19a9c6(0x125)](),this[_0x19a9c6(0x157)]&&(this['dataSet']=(this[_0x19a9c6(0x157)]||{})[_0x19a9c6(0x134)]),super[_0x19a9c6(0x12c)]&&await super[_0x19a9c6(0x12c)]();}async[a0_0x5aa649(0x155)](){const _0x473db7=a0_0x5aa649;super[_0x473db7(0x155)]&&await super['firstUpdated']();}async[a0_0x5aa649(0x14c)](){const _0x24e34a=a0_0x5aa649;this[_0x24e34a(0x149)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0x24e34a(0x14c)]();}['render'](){const _0x3427a8=a0_0x5aa649;return MetaApi[_0x3427a8(0x156)](this);}[a0_0x5aa649(0x12a)](_0x2dcddd){const _0x123c8e=a0_0x5aa649;this[_0x123c8e(0x150)]=_0x2dcddd[_0x123c8e(0x135)],this[_0x123c8e(0x13a)]=_0x2dcddd['grid_column'],this[_0x123c8e(0x152)]=_0x2dcddd[_0x123c8e(0x151)],this[_0x123c8e(0x130)]=_0x2dcddd[_0x123c8e(0x130)];}async[a0_0x5aa649(0x125)](){const _0x408aab=a0_0x5aa649;this[_0x408aab(0x14b)]=await MetaApi['parseGridConfigSet'](this),this[_0x408aab(0x148)]=!0x0===this[_0x408aab(0x15e)],this[_0x408aab(0x15e)]=!0x1,this['buttonConfig']=void 0x0,this[_0x408aab(0x132)]=!0x1,this['useButtonImport']=!0x1,this[_0x408aab(0x15b)]=[],this[_0x408aab(0x138)]=this[_0x408aab(0x14b)][_0x408aab(0x15c)][_0x408aab(0x15d)](_0x20351d=>_0x20351d[_0x408aab(0x15d)])['map'](_0x46024a=>{const _0x3b151b=_0x408aab;let _0x4533b9={'name':_0x46024a[_0x3b151b(0x14e)],'type':'search'===_0x46024a[_0x3b151b(0x15d)]['operator']?_0x3b151b(0x151):_0x46024a[_0x3b151b(0x124)],'label':_0x46024a[_0x3b151b(0x15a)],'operator':_0x46024a['filter']['operator']?_0x46024a[_0x3b151b(0x15d)]['operator']:'eq'};return _0x46024a['filter'][_0x3b151b(0x12f)]&&(_0x4533b9[_0x3b151b(0x12f)]=_0x46024a[_0x3b151b(0x15d)][_0x3b151b(0x12f)]),_0x46024a[_0x3b151b(0x13c)]['options']&&(_0x4533b9[_0x3b151b(0x12f)]=_0x46024a[_0x3b151b(0x13c)]['options']),_0x46024a[_0x3b151b(0x15d)][_0x3b151b(0x147)]&&this[_0x3b151b(0x15b)][_0x3b151b(0x145)]({'name':_0x4533b9[_0x3b151b(0x14e)],'operator':_0x4533b9[_0x3b151b(0x144)],'value':_0x46024a[_0x3b151b(0x15d)][_0x3b151b(0x147)]}),delete _0x46024a['filter'],_0x4533b9;});}async[a0_0x5aa649(0x13f)](){const _0x4c3d28=a0_0x5aa649;await this[_0x4c3d28(0x159)]['fetch']();}async[a0_0x5aa649(0x142)]({page:_0x2ed114=0x0,limit:_0x40e776=0x0,sortings:_0xda2ba5=[],filters:_0x5ea98d=[]}){const _0x5a70e4=a0_0x5aa649;return this[_0x5a70e4(0x12b)]&&this['masterElement'][_0x5a70e4(0x126)]&&await this[_0x5a70e4(0x12b)]['clear'](),!0x0;}['getData'](){const _0x23d2be=a0_0x5aa649;return{'master':this[_0x23d2be(0x12b)][_0x23d2be(0x14a)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1db4f0=a0_0x19b6;(function(_0x4b3f06,_0x5c2062){const _0x188183=a0_0x19b6,_0x3ab553=_0x4b3f06();while(!![]){try{const _0x299f43=-parseInt(_0x188183(0x22b))/0x1+-parseInt(_0x188183(0x1f3))/0x2+parseInt(_0x188183(0x214))/0x3+-parseInt(_0x188183(0x21e))/0x4*(-parseInt(_0x188183(0x225))/0x5)+parseInt(_0x188183(0x21b))/0x6+-parseInt(_0x188183(0x231))/0x7*(-parseInt(_0x188183(0x22e))/0x8)+-parseInt(_0x188183(0x20e))/0x9;if(_0x299f43===_0x5c2062)break;else _0x3ab553['push'](_0x3ab553['shift']());}catch(_0xc163d5){_0x3ab553['push'](_0x3ab553['shift']());}}}(a0_0x35a7,0xc8798));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x35a7(){const _0x117d60=['tTitle','fetch','4487NKRIwU','header','columns','exportableData','grid','grist','beforeFetch','connectedCallback','1652506aybZLg','gridEmphasized','gridColumnConfig','find','filterForm','detailElement','filterFormId','pageInitialized','ox-grist','push','save','gristId','name','keys','type','parseGristConfigs','main','importable','useFilterForm','title','styles','isNotEmpty','options','searchFieldValues','actions','search','isElement','11473407xLIZEQ','dataSet','forEach','querySelector','clear','stringify','4286070oRCSsw','firstUpdated','searchConfig','ox-filters-form-base','getBasicMasterDetailStyles','properties','context','8572128ghpOgQ','import','parse','4ibxGJd','getContextObject','patchesForUpdateMultiple','value','activityDataSet','exportable','getSelectedIdList','2971895rCSrSW','gristConfigSet','export','filter','getData','operator','1307711ZrPlLb','useMasterFilterForm','delete','9712xQXxue'];a0_0x35a7=function(){return _0x117d60;};return a0_0x35a7();}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x19b6(_0x2f2dbe,_0x681618){const _0x35a7c2=a0_0x35a7();return a0_0x19b6=function(_0x19b69a,_0x3df25a){_0x19b69a=_0x19b69a-0x1ec;let _0x60d83=_0x35a7c2[_0x19b69a];return _0x60d83;},a0_0x19b6(_0x2f2dbe,_0x681618);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x144149=>class extends MetaButtonMixin(_0x144149){static get[a0_0x1db4f0(0x207)](){const _0x4b6c5d=a0_0x1db4f0;return MetaApi[_0x4b6c5d(0x218)]();}static get[a0_0x1db4f0(0x219)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x1db4f0(0x1f0)](){const _0x49253d=a0_0x1db4f0;return this['renderRoot'][_0x49253d(0x211)](this[_0x49253d(0x1fe)]);}get[a0_0x1db4f0(0x1f7)](){return this['shadowRoot']?.['querySelector'](this['filterFormId']);}get[a0_0x1db4f0(0x21a)](){const _0x56299f=a0_0x1db4f0;let _0x171401=MetaUiUtil[_0x56299f(0x21f)](this);return _0x171401[_0x56299f(0x20b)]&&delete _0x171401[_0x56299f(0x20b)],_0x171401[_0x56299f(0x223)]&&delete _0x171401[_0x56299f(0x223)],_0x171401[_0x56299f(0x204)]&&delete _0x171401[_0x56299f(0x204)],_0x171401;}async[a0_0x1db4f0(0x1f2)](){const _0x2ddd32=a0_0x1db4f0;this[_0x2ddd32(0x1fe)]=_0x2ddd32(0x1fb),this[_0x2ddd32(0x1f9)]=_0x2ddd32(0x217),await this['getAndParseMenuMeta'](),this[_0x2ddd32(0x20d)]&&await this[_0x2ddd32(0x202)](),this[_0x2ddd32(0x222)]&&(this[_0x2ddd32(0x20f)]=(this[_0x2ddd32(0x222)]||{})[_0x2ddd32(0x203)]),super[_0x2ddd32(0x1f2)]&&await super[_0x2ddd32(0x1f2)]();}async[a0_0x1db4f0(0x215)](){const _0x3e4cd9=a0_0x1db4f0;super[_0x3e4cd9(0x215)]&&await super[_0x3e4cd9(0x215)]();}async[a0_0x1db4f0(0x1fa)](){const _0x3ad213=a0_0x1db4f0;this['isPage']&&await this[_0x3ad213(0x202)](),super[_0x3ad213(0x1fa)]&&await super[_0x3ad213(0x1fa)]();}['render'](){return MetaApi['getMasterDetailHtml'](this);}['parseBasicGridConfigs'](_0x273284){const _0xaae5c6=a0_0x1db4f0;this['gridConfig']=_0x273284[_0xaae5c6(0x1ef)],this[_0xaae5c6(0x1f5)]=_0x273284['grid_column'],this[_0xaae5c6(0x216)]=_0x273284[_0xaae5c6(0x20c)],this[_0xaae5c6(0x1f4)]=_0x273284['gridEmphasized'];}async[a0_0x1db4f0(0x202)](){const _0x22a303=a0_0x1db4f0;this[_0x22a303(0x226)]=await MetaApi['parseGridConfigSet'](this),this[_0x22a303(0x22c)]=!0x0===this['useFilterForm'],this[_0x22a303(0x205)]=!0x1,this[_0x22a303(0x20a)]=[],this['searchFields']=this[_0x22a303(0x226)][_0x22a303(0x1ed)][_0x22a303(0x228)](_0x100c5d=>_0x100c5d[_0x22a303(0x228)])['map'](_0x21d879=>{const _0x3d4810=_0x22a303;let _0x2c97cb={'name':_0x21d879[_0x3d4810(0x1ff)],'type':_0x3d4810(0x20c)===_0x21d879[_0x3d4810(0x228)][_0x3d4810(0x22a)]?_0x3d4810(0x20c):_0x21d879[_0x3d4810(0x201)],'label':_0x21d879[_0x3d4810(0x1ec)],'operator':_0x21d879[_0x3d4810(0x228)][_0x3d4810(0x22a)]?_0x21d879[_0x3d4810(0x228)][_0x3d4810(0x22a)]:'eq'};return _0x21d879[_0x3d4810(0x228)]['options']&&(_0x2c97cb[_0x3d4810(0x209)]=_0x21d879['filter'][_0x3d4810(0x209)]),_0x21d879['record'][_0x3d4810(0x209)]&&(_0x2c97cb[_0x3d4810(0x209)]=_0x21d879['record'][_0x3d4810(0x209)]),_0x21d879[_0x3d4810(0x228)][_0x3d4810(0x221)]&&this['searchFieldValues'][_0x3d4810(0x1fc)]({'name':_0x2c97cb['name'],'operator':_0x2c97cb[_0x3d4810(0x22a)],'value':_0x21d879[_0x3d4810(0x228)][_0x3d4810(0x221)]}),delete _0x21d879[_0x3d4810(0x228)],_0x2c97cb;});}async[a0_0x1db4f0(0x230)](){const _0x120630=a0_0x1db4f0;await this['grist'][_0x120630(0x230)]();}async[a0_0x1db4f0(0x1f1)]({page:_0xb3314d=0x0,limit:_0x213a62=0x0,sortings:_0x2875e1=[],filters:_0x4c8c5d=[]}){const _0x487052=a0_0x1db4f0;return this[_0x487052(0x1f8)]&&this[_0x487052(0x1f8)][_0x487052(0x212)]&&await this[_0x487052(0x1f8)][_0x487052(0x212)](),!0x0;}async[a0_0x1db4f0(0x1fd)](){const _0x4cbcf7=a0_0x1db4f0;let _0x1b2e82=MetaApi[_0x4cbcf7(0x220)](this[_0x4cbcf7(0x1f0)]);!!ValueUtil[_0x4cbcf7(0x208)](_0x1b2e82)&&await this['updateMultiple'](_0x1b2e82)&&this[_0x4cbcf7(0x230)]();}async[a0_0x1db4f0(0x1f6)](){const _0x4764c5=a0_0x1db4f0;let _0x368ffc=MetaApi[_0x4764c5(0x224)](this['grist'],!0x0);return ValueUtil[_0x4764c5(0x208)](_0x368ffc)?await this['findOne'](_0x368ffc[0x0]):{};}async[a0_0x1db4f0(0x22d)](){const _0x5a5f13=a0_0x1db4f0;let _0x129c3d=MetaApi[_0x5a5f13(0x224)](this[_0x5a5f13(0x1f0)],!0x0);!!ValueUtil[_0x5a5f13(0x208)](_0x129c3d)&&await this['deleteByIds'](_0x129c3d)&&this[_0x5a5f13(0x230)]();}async[a0_0x1db4f0(0x227)](){const _0x16c736=a0_0x1db4f0;let _0xe14194=TermsUtil[_0x16c736(0x22f)](ValueUtil['getParams'](this['menuInfo'],_0x16c736(0x206)));return await MetaApi[_0x16c736(0x1ee)](this['isElement'],_0xe14194,this['grist']);}async[a0_0x1db4f0(0x21c)](){}[a0_0x1db4f0(0x229)](){const _0x3ae894=a0_0x1db4f0;let _0x3ec12d=this[_0x3ae894(0x1f0)]['___data']['records'];return _0x3ec12d=JSON[_0x3ae894(0x21d)](JSON[_0x3ae894(0x213)](_0x3ec12d)),_0x3ec12d[_0x3ae894(0x210)](_0x374338=>{const _0x41ce52=_0x3ae894;Object[_0x41ce52(0x200)](_0x374338)[_0x41ce52(0x210)](_0x3475b7=>{_0x3475b7['startsWith']('__')&&delete _0x374338[_0x3475b7];});}),{'main':_0x3ec12d,'detail':this[_0x3ae894(0x1f8)][_0x3ae894(0x229)]()};}};
|