@things-factory/meta-ui 6.1.72 → 6.1.74
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 +10 -10
- package/client/component/grist/editor/grist-editor-code-input.js +5 -5
- 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/index.js +4 -0
- 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/button-role/config-button-roles.js +69 -0
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/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/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 +12 -12
- 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 +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3d9885=a0_0x3720;(function(_0xd58de9,_0x48aa3b){const _0x142027=a0_0x3720,_0x141b97=_0xd58de9();while(!![]){try{const _0x4176c5=parseInt(_0x142027(0x1fa))/0x1+parseInt(_0x142027(0x1d7))/0x2+-parseInt(_0x142027(0x1da))/0x3*(-parseInt(_0x142027(0x229))/0x4)+-parseInt(_0x142027(0x209))/0x5*(parseInt(_0x142027(0x1e2))/0x6)+parseInt(_0x142027(0x1f7))/0x7*(parseInt(_0x142027(0x1df))/0x8)+parseInt(_0x142027(0x200))/0x9*(parseInt(_0x142027(0x1fc))/0xa)+-parseInt(_0x142027(0x1f3))/0xb*(parseInt(_0x142027(0x211))/0xc);if(_0x4176c5===_0x48aa3b)break;else _0x141b97['push'](_0x141b97['shift']());}catch(_0x3e3bf8){_0x141b97['push'](_0x141b97['shift']());}}}(a0_0x3ec3,0xeb813));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x3ec3(){const _0x21f01b=['getGristColumnConfig2','dispField','searchByPagination','getCodeSelectorData','isArray','getParams','getGristMetaObjectOptions','4shtuTb','push','empty','search_hidden_fields','1133768KbGNCm','meta-code-selector','gql','2242386hjnclq','keys','after_set_fields','GRID','selected','9881528jTcqfH','clickCancel','values','1044bSnAeH','styles','search','meta-object-selector','menu','object','filterFields','LIST','string','queryName','basicArgs','getGristPagination100Config','tButton','select-row-toggle','record','info','gridConfig','99HMhdCY','define','getCodeByScenario','confirmCallback','7hdFbEl','resource-code-selector','resource-object','252495AOJrDf','args','1700yBUHdE','type','querySelector','meta-','44937jCUDXy','code','length','codeField','bind','name','showToast','scenario','filters','2180owNBYT','meta-object-selector-popup','nameField','filter','firstUpdated','NOTHING_SELECTED','clickSelect','#ox-grist','3480468UnTHJI','options','forEach','cancel','query','sorters','align','menu_template','includes','grist','fetchHandler','connectedCallback','codes','left','getSelectColumns','selectRecord','select'];a0_0x3ec3=function(){return _0x21f01b;};return a0_0x3ec3();}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';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x3d9885(0x1e3)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x2686ba=a0_0x41be;(function(_0x452f86,_0x32bb93){const _0x35d6eb=a0_0x
|
|
|
17
17
|
display: flex;
|
|
18
18
|
margin-left: auto;
|
|
19
19
|
}
|
|
20
|
-
`];async[
|
|
21
|
-
<ox-grist id="ox-grist" .config=${this[
|
|
22
|
-
.fetchHandler=${this['
|
|
20
|
+
`];async[a0_0x3d9885(0x21c)](){const _0x5eb985=a0_0x3d9885;this[_0x5eb985(0x1d6)]=this['options'][_0x5eb985(0x208)]?this['options']['filters']:this['basicArgs']&&this['basicArgs'][_0x5eb985(0x208)]?this[_0x5eb985(0x1ec)][_0x5eb985(0x208)]:[];let _0x42d418=this[_0x5eb985(0x212)][_0x5eb985(0x216)]?this[_0x5eb985(0x212)][_0x5eb985(0x216)]:this['basicArgs']&&this[_0x5eb985(0x1ec)][_0x5eb985(0x216)]?this[_0x5eb985(0x1ec)][_0x5eb985(0x216)]:[],_0x3dda19=this[_0x5eb985(0x212)][_0x5eb985(0x1e8)]?this['options']['filterFields']:this[_0x5eb985(0x212)]['menu_template']?.['search']&&this[_0x5eb985(0x212)][_0x5eb985(0x218)]?.[_0x5eb985(0x1e4)][_0x5eb985(0x202)]>0x0?this[_0x5eb985(0x212)][_0x5eb985(0x218)][_0x5eb985(0x1e4)]:[],_0x12e1fa=this['options'][_0x5eb985(0x221)];if(!_0x3dda19||0x0==_0x3dda19['length']){let _0x46f3f6;this['options'][_0x5eb985(0x203)]&&(_0x46f3f6=this[_0x5eb985(0x212)][_0x5eb985(0x203)]),this[_0x5eb985(0x212)]['nameField']&&(_0x46f3f6=this[_0x5eb985(0x212)][_0x5eb985(0x20b)]),_0x46f3f6&&_0x3dda19['push']({'name':_0x46f3f6,'operator':'eq'});}let _0x398127=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x12e1fa&&_0x12e1fa[_0x5eb985(0x202)]>0x0)for(let _0x535eff=0x0;_0x535eff<_0x12e1fa['length'];_0x535eff++){let {type:_0x5912d0=_0x5eb985(0x1ea),name:_0x5f2755,hidden:_0x56964c=!0x1,record:_0x41ea64={'align':'left'},header:_0x42896b,sortable:_0x301a96=!0x1,width:_0x5a8fd7=0x87,options:_0x51d5cb,select_opt:_0x17c0bb,object_opt:_0x47c7cd}=_0x12e1fa[_0x535eff];if(_0x17c0bb&&(_0x51d5cb=_0x17c0bb),_0x47c7cd&&(_0x51d5cb=_0x47c7cd),[_0x5eb985(0x1f9),_0x5eb985(0x1e7)]['includes'](_0x5912d0)?_0x5912d0=_0x5eb985(0x1e5):[_0x5eb985(0x1f8)]['includes'](_0x5912d0)&&(_0x5912d0=_0x5eb985(0x1d8)),'id'==_0x5f2755)_0x398127[_0x5eb985(0x1d4)]({'type':_0x5eb985(0x1ea),'name':_0x5f2755,'hidden':!0x0});else{let _0x3284ae=MetaApi[_0x5eb985(0x222)](_0x5912d0,_0x5f2755,_0x42896b||_0x5f2755,_0x41ea64[_0x5eb985(0x217)]?_0x41ea64['align']:_0x5eb985(0x21e),!0x1,_0x301a96,_0x5a8fd7);_0x5912d0['startsWith'](_0x5eb985(0x1ff))&&_0x47c7cd&&_0x47c7cd[_0x5eb985(0x1e6)]&&(_0x51d5cb=await MetaUiUtil[_0x5eb985(0x228)](_0x5912d0,_0x51d5cb)),'select'===_0x5912d0?Array[_0x5eb985(0x226)](_0x51d5cb)?_0x3284ae[_0x5eb985(0x1f0)][_0x5eb985(0x212)]=_0x51d5cb:_0x5eb985(0x201)===_0x51d5cb['type']?_0x3284ae[_0x5eb985(0x1f0)][_0x5eb985(0x212)]=await ServiceUtil[_0x5eb985(0x225)](_0x51d5cb[_0x5eb985(0x1e1)]?_0x51d5cb['values']:_0x51d5cb['name']):_0x5eb985(0x207)===_0x51d5cb[_0x5eb985(0x1fd)]?_0x3284ae[_0x5eb985(0x1f0)][_0x5eb985(0x212)]=await ServiceUtil[_0x5eb985(0x1f5)](_0x51d5cb[_0x5eb985(0x205)],_0x51d5cb['args']):'entity'===_0x51d5cb[_0x5eb985(0x1fd)]&&(_0x3284ae[_0x5eb985(0x1f0)][_0x5eb985(0x212)]=await ServiceUtil['getCodeByEntity'](_0x51d5cb[_0x5eb985(0x1fb)])):_0x5eb985(0x1e5)===_0x5912d0?_0x3284ae[_0x5eb985(0x1f0)][_0x5eb985(0x212)]={..._0x51d5cb}:_0x5eb985(0x1d8)==_0x5912d0&&(_0x51d5cb[_0x5eb985(0x223)]&&(_0x51d5cb[_0x5eb985(0x21d)]=await ServiceUtil['getCodeByEntity'](_0x51d5cb)),_0x3284ae[_0x5eb985(0x1f0)][_0x5eb985(0x212)]={..._0x51d5cb}),_0x3284ae['hidden']=_0x56964c,_0x398127['push'](_0x3284ae);}}else _0x398127['push'](MetaApi['getGristColumnConfig2']('string',this[_0x5eb985(0x212)][_0x5eb985(0x203)],this[_0x5eb985(0x212)][_0x5eb985(0x203)],_0x5eb985(0x21e),!0x1,!0x0,0xb4)),this[_0x5eb985(0x212)][_0x5eb985(0x223)]&&_0x398127[_0x5eb985(0x1d4)](MetaApi[_0x5eb985(0x222)](_0x5eb985(0x1ea),this[_0x5eb985(0x212)][_0x5eb985(0x223)],this[_0x5eb985(0x212)][_0x5eb985(0x223)],_0x5eb985(0x21e),!0x1,!0x0,0x12c));_0x398127['forEach'](_0xe42bb3=>{const _0x585dce=_0x5eb985;let _0x184f5d=_0x3dda19[_0x585dce(0x20c)](_0x155069=>_0x585dce(0x1ea)==typeof _0x155069?_0xe42bb3[_0x585dce(0x205)]==_0x155069:_0xe42bb3['name']==_0x155069[_0x585dce(0x205)]);_0x184f5d&&_0x184f5d['length']>0x0&&(_0xe42bb3[_0x585dce(0x20c)]=_0x585dce(0x1ea)==typeof _0x184f5d[0x0]?_0x585dce(0x1e4):_0x184f5d[0x0]);});let _0x25f8e8={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0x5eb985(0x1ed)](),'columns':_0x398127,'sorters':[..._0x42d418]};_0x25f8e8['rows']['handlers']={'click':_0x5eb985(0x1ef),'dblclick':(_0x2041f5,_0xf7792f,_0xcd80da,_0x35fa11,_0x75b4ae,_0xbd9569)=>{const _0x34601=_0x5eb985;this[_0x34601(0x220)](_0x35fa11);}},_0x25f8e8['rows']['appendable']=!0x1,this['gridConfig']=_0x25f8e8,await super[_0x5eb985(0x21c)]();}async[a0_0x3d9885(0x20d)](){await super['firstUpdated']();}['render'](){const _0x204965=a0_0x3d9885;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0x204965(0x1f2)]} .mode=${isMobileDevice()?_0x204965(0x1e9):_0x204965(0x1dd)} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x204965(0x21b)]['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_0x2686ba=a0_0x41be;(function(_0x452f86,_0x32bb93){const _0x35d6eb=a0_0x
|
|
|
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['tButton'](_0x204965(0x1d5))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this['clickEmpty'][_0x204965(0x204)](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x204965(0x1ee)](_0x204965(0x214))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0x204965(0x1e0)][_0x204965(0x204)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this['
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x204965(0x1ee)](_0x204965(0x221))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x204965(0x20f)]['bind'](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x3d9885(0x21a)](){const _0x407f47=a0_0x3d9885;return this['shadowRoot'][_0x407f47(0x1fe)](_0x407f47(0x210));}async['fetchHandler']({page:_0x41ae93=0x0,limit:_0x10a7fd=0x0,sorters:_0x3da68f=[],filters:_0x1f41e8=[]}){const _0x1a0541=a0_0x3d9885;let _0x1df2ee=[...this[_0x1a0541(0x1d6)]];_0x1f41e8[_0x1a0541(0x213)](_0x4e7566=>{const _0x568f82=_0x1a0541;let _0x57b4dd=_0x1df2ee[_0x568f82(0x20c)](_0x368c9e=>_0x4e7566[_0x568f82(0x205)]==_0x368c9e['name']);_0x57b4dd&&_0x57b4dd['length']>0x0&&delete _0x1df2ee[_0x4e7566[_0x568f82(0x205)]],_0x1df2ee[_0x568f82(0x1d4)](_0x4e7566);});let _0x176265=ValueUtil[_0x1a0541(0x227)](this[_0x1a0541(0x212)][_0x1a0541(0x218)]&&this[_0x1a0541(0x212)]['menu_template'][_0x1a0541(0x1d9)]||{},_0x1a0541(0x215),_0x1a0541(0x1dc)),_0xc5846c=Object[_0x1a0541(0x1db)](_0x176265||{}),_0xad451f=MetaApi[_0x1a0541(0x21f)](this['gridConfig']['columns']['filter'](_0x413f94=>!_0xc5846c[_0x1a0541(0x219)](_0x413f94['name'])));return await MetaApi[_0x1a0541(0x224)](this[_0x1a0541(0x212)][_0x1a0541(0x1eb)],_0x1df2ee,_0x3da68f,_0x41ae93,_0x10a7fd,_0xad451f);}async['clickEmpty'](_0x3b8c3c){const _0x278bd8=a0_0x3d9885;this[_0x278bd8(0x1f6)]&&this[_0x278bd8(0x1f6)](null),closePopup(this);}async[a0_0x3d9885(0x1e0)](_0x3acba7){closePopup(this);}async[a0_0x3d9885(0x20f)](_0x251c7b){const _0x30817c=a0_0x3d9885;let _0x5d3330=this[_0x30817c(0x21a)][_0x30817c(0x1de)];_0x5d3330&&0x0!=_0x5d3330[_0x30817c(0x202)]?this[_0x30817c(0x220)](_0x5d3330[0x0]):MetaApi[_0x30817c(0x206)](_0x30817c(0x1f1),TermsUtil['tText'](_0x30817c(0x20e)));}async[a0_0x3d9885(0x220)](_0x1c3e83){const _0x3a7d25=a0_0x3d9885;this['confirmCallback']&&this[_0x3a7d25(0x1f6)](_0x1c3e83),closePopup(this);}}function a0_0x3720(_0x4f1098,_0x29677c){const _0x3ec384=a0_0x3ec3();return a0_0x3720=function(_0x37201b,_0x534efa){_0x37201b=_0x37201b-0x1d4;let _0x4a46a0=_0x3ec384[_0x37201b];return _0x4a46a0;},a0_0x3720(_0x4f1098,_0x29677c);}customElements[a0_0x3d9885(0x1f4)](a0_0x3d9885(0x20a),MetaObjectSelectorPopup);
|
package/client/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import './viewparts/dynamic-menu-part'
|
|
2
2
|
import './viewparts/dynamic-top-menu-bar'
|
|
3
3
|
|
|
4
|
+
import './pages/button-role/config-button-roles'
|
|
5
|
+
|
|
4
6
|
export * from './actions/main'
|
|
5
7
|
|
|
6
8
|
/** Utilities **/
|
|
@@ -35,3 +37,5 @@ export * from './pages/meta-tab-detail-page'
|
|
|
35
37
|
export * from './pages/meta-main-tab-page'
|
|
36
38
|
export * from './pages/meta-main-tab-element'
|
|
37
39
|
|
|
40
|
+
|
|
41
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x40480=a0_0x4d5b;(function(_0x534919,_0x399fb3){const _0x394b23=a0_0x4d5b,_0x878cff=_0x534919();while(!![]){try{const _0x56e079=-parseInt(_0x394b23(0x133))/0x1*(-parseInt(_0x394b23(0x148))/0x2)+-parseInt(_0x394b23(0x114))/0x3*(-parseInt(_0x394b23(0x152))/0x4)+-parseInt(_0x394b23(0x142))/0x5*(-parseInt(_0x394b23(0x143))/0x6)+parseInt(_0x394b23(0x149))/0x7+parseInt(_0x394b23(0x12c))/0x8*(parseInt(_0x394b23(0x153))/0x9)+parseInt(_0x394b23(0x134))/0xa+-parseInt(_0x394b23(0x141))/0xb;if(_0x56e079===_0x399fb3)break;else _0x878cff['push'](_0x878cff['shift']());}catch(_0x3b7dfc){_0x878cff['push'](_0x878cff['shift']());}}}(a0_0x5e5c,0x65af3));function a0_0x5e5c(){const _0x115f26=['isEmpty','field-change','244312frGXRd','split','toLowerCase','fieldChangeHandlers','parseBasicServiceConfigs','forEach','data','5236NppRSw','6173200hyhWpc','is_detail','name','isPopup','includes','keys','parseBasicButtonConfigs','parseBasicTabConfigs','openDynamicPopup','getAndParseMenuMeta','dispatchEvent','isNotEmpty','form-field-change','30391812VXNzfl','146945wipGFs','66VZQNET','params','filterForm','pageUpdated','menuInfo','294VzFxBk','5100165dTRcmj','title','fetchHandler','etcConfig','parseBasicFormConfigs','lifecycle','parent_id','dataChangeEventHandler','etc','1044LmETJi','216ZScHNn','active','properties','isPage','setParentId','87vKRkrC','excuteOpenPopupButtonClick','callScenario','connectedCallback','getMenuMeta','errors','detail','addEventListener','menu','tagName','result','getParams','isDetail','grist','fetch','after','parseBasicGridConfigs','body','title_detail','tTitle','data-changed','is_popup'];a0_0x5e5c=function(){return _0x115f26;};return a0_0x5e5c();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x4d5b(_0x3eaff6,_0x308ccb){const _0x5e5c00=a0_0x5e5c();return a0_0x4d5b=function(_0x4d5bcd,_0xaf9177){_0x4d5bcd=_0x4d5bcd-0x111;let _0x5f0ba=_0x5e5c00[_0x4d5bcd];return _0x5f0ba;},a0_0x4d5b(_0x3eaff6,_0x308ccb);}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1e699c=>class extends _0x1e699c{static get[a0_0x40480(0x111)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x4a14b4=>Boolean(_0x4a14b4)},'is_popup':{'type':Boolean,'converter':_0x2cdea3=>Boolean(_0x2cdea3)},'is_activity':{'type':Boolean,'converter':_0x828b2=>Boolean(_0x828b2)},'is_readonly':{'type':Boolean,'converter':_0x30211e=>Boolean(_0x30211e)}};}get['isElement'](){const _0x81604c=a0_0x40480;return!0x0===this[_0x81604c(0x135)]||!0x0===this[_0x81604c(0x129)];}get[a0_0x40480(0x120)](){const _0x3090da=a0_0x40480;return!ValueUtil[_0x3090da(0x12a)](this[_0x3090da(0x135)])&&this[_0x3090da(0x135)];}async[a0_0x40480(0x150)](_0x4b41e7){const _0x350322=a0_0x40480;let {after:_0x24055a,before:_0x254a41,column:_0x15f30f,record:_0x337575,row:_0x21962f}=_0x4b41e7[_0x350322(0x11a)],_0x6611d=_0x15f30f[_0x350322(0x136)];if(Object[_0x350322(0x139)](this[_0x350322(0x12f)]||{})[_0x350322(0x138)](_0x6611d)){let _0x485c18,_0x13b63d=(await MetaApi[_0x350322(0x116)](void 0x0,this[_0x350322(0x12f)][_0x6611d],{'columnName':_0x6611d,'column':_0x15f30f,'record':_0x337575,'after':_0x24055a,'before':_0x254a41,'row':_0x21962f,'parentId':this[_0x350322(0x14f)]?this['parent_id']:''},!0x1))[_0x350322(0x132)]['runScenario']['result'][_0x350322(0x11e)];if(!_0x13b63d)return;_0x485c18=this[_0x350322(0x121)]?this[_0x350322(0x121)][_0x350322(0x121)][_0x350322(0x125)]:this,Object[_0x350322(0x139)](_0x13b63d)[_0x350322(0x131)](_0x48dd71=>{const _0x139b9a=_0x350322;_0x485c18[_0x139b9a(0x13e)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x337575,'row':_0x21962f,'after':_0x13b63d[_0x48dd71],'before':_0x337575[_0x48dd71],'column':{'name':_0x48dd71}}}));});}this[_0x350322(0x13e)](new CustomEvent(_0x350322(0x128),{'bubbles':!0x0,'composed':!0x0,'detail':_0x4b41e7[_0x350322(0x11a)]}));}async[a0_0x40480(0x117)](){const _0x51fe89=a0_0x40480;super[_0x51fe89(0x117)]&&await super[_0x51fe89(0x117)](),this[_0x51fe89(0x11d)][_0x51fe89(0x12e)]()['startsWith']('meta-form-')?this[_0x51fe89(0x11b)](_0x51fe89(0x140),async _0x3de4ce=>{await this['dataChangeEventHandler'](_0x3de4ce);}):this[_0x51fe89(0x11b)](_0x51fe89(0x12b),async _0x2c0b5c=>{const _0x3135a9=_0x51fe89;await this[_0x3135a9(0x150)](_0x2c0b5c);});}async[a0_0x40480(0x146)](_0x2f55fb,_0x155721,_0x3d8b06){const _0x10075f=a0_0x40480;let _0x48890b=this[_0x10075f(0x14e)]?.[_0x10075f(0x144)]?this[_0x10075f(0x14e)][_0x10075f(0x144)]:{};this[_0x10075f(0x112)]&&this[_0x10075f(0x154)]&&0x0==_0x3d8b06[_0x10075f(0x154)]&&ValueUtil[_0x10075f(0x13f)](_0x48890b)&&this[_0x10075f(0x122)]();}get[a0_0x40480(0x137)](){const _0x5d0630=a0_0x40480;return!ValueUtil['isEmpty'](this[_0x5d0630(0x129)])&&this[_0x5d0630(0x129)];}get[a0_0x40480(0x112)](){const _0x553e99=a0_0x40480;return!this[_0x553e99(0x135)]&&!this[_0x553e99(0x129)];}async[a0_0x40480(0x13d)](){const _0x4ee1a0=a0_0x40480;let _0x497a8b=await MetaApi[_0x4ee1a0(0x118)](this);_0x497a8b&&(this[_0x4ee1a0(0x147)]=_0x497a8b[_0x4ee1a0(0x11c)],this[_0x4ee1a0(0x14c)]=_0x497a8b[_0x4ee1a0(0x151)],this['parseBasicGridConfigs']&&this[_0x4ee1a0(0x124)](_0x497a8b),this['parseBasicServiceConfigs']&&this[_0x4ee1a0(0x130)](_0x497a8b),this[_0x4ee1a0(0x14d)]&&this['parseBasicFormConfigs'](_0x497a8b),this[_0x4ee1a0(0x13b)]&&this[_0x4ee1a0(0x13b)](_0x497a8b),this[_0x4ee1a0(0x13a)]&&this[_0x4ee1a0(0x13a)](_0x497a8b));}async[a0_0x40480(0x122)](){const _0x1e2e87=a0_0x40480;ValueUtil[_0x1e2e87(0x13f)](this[_0x1e2e87(0x121)])?this[_0x1e2e87(0x121)][_0x1e2e87(0x122)]():(ValueUtil[_0x1e2e87(0x13f)](this[_0x1e2e87(0x145)])||this[_0x1e2e87(0x14b)])&&await this[_0x1e2e87(0x14b)]();}async[a0_0x40480(0x115)](_0x59d6dc,_0x5fb255,_0x1adc09){const _0x162c79=a0_0x40480;let _0x3c0e86=TermsUtil[_0x162c79(0x127)](_0x59d6dc[_0x162c79(0x14a)]);ValueUtil[_0x162c79(0x13f)](_0x59d6dc[_0x162c79(0x126)])&&(_0x3c0e86=_0x3c0e86+'-'+ValueUtil[_0x162c79(0x11f)](_0x5fb255,..._0x59d6dc['title_detail'][_0x162c79(0x12d)]('.'))),MetaApi[_0x162c79(0x13c)](_0x3c0e86,_0x59d6dc,_0x5fb255,_0x1adc09);}async['executeCallScenarioButtonClick'](_0x21b86d,_0x51a0ff,_0x5e9ed9){const _0x112991=a0_0x40480;let _0xc4769b=await MetaApi[_0x112991(0x116)](_0x21b86d['name'],_0x21b86d[_0x112991(0x136)],_0x51a0ff);!0x1!==_0xc4769b&&!_0xc4769b[_0x112991(0x119)]&&ValueUtil[_0x112991(0x13f)](_0x21b86d[_0x112991(0x123)])&&_0x5e9ed9();}[a0_0x40480(0x113)](_0x17b55a){const _0x209896=a0_0x40480;this[_0x209896(0x14f)]=_0x17b55a,this[_0x209896(0x122)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x30ca34=a0_0x575a;(function(_0x3292f5,_0x36498b){const _0x3f16a6=a0_0x575a,_0x2750f5=_0x3292f5();while(!![]){try{const _0x3dea6d=parseInt(_0x3f16a6(0x15a))/0x1*(-parseInt(_0x3f16a6(0x155))/0x2)+-parseInt(_0x3f16a6(0x178))/0x3*(parseInt(_0x3f16a6(0x170))/0x4)+-parseInt(_0x3f16a6(0x184))/0x5*(parseInt(_0x3f16a6(0x16b))/0x6)+-parseInt(_0x3f16a6(0x173))/0x7*(-parseInt(_0x3f16a6(0x171))/0x8)+parseInt(_0x3f16a6(0x151))/0x9*(-parseInt(_0x3f16a6(0x182))/0xa)+parseInt(_0x3f16a6(0x17f))/0xb*(parseInt(_0x3f16a6(0x16d))/0xc)+parseInt(_0x3f16a6(0x14f))/0xd;if(_0x3dea6d===_0x36498b)break;else _0x2750f5['push'](_0x2750f5['shift']());}catch(_0x24934e){_0x2750f5['push'](_0x2750f5['shift']());}}}(a0_0x3df8,0xd9ae9));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3df8(){const _0x4e58e6=['firstUpdated','data','delete','deleteByIds','712789LbaTgP','grid_column','isPage','50xQTHcI','forEach','15OeRZYQ','querySelector','ox-filters-form','parseGridConfigSet','getData','getContextObject','___data','getButtonContainer','34857901snDOoS','title','2860245zanlWT','save','gristConfigSet','import','10QUcSLZ','gridEmphasized','shadowRoot','records','grist','41962KAIPFH','filterFormId','isNotEmpty','menuInfo','tTitle','fetch','filterForm','find','export','patchesForUpdateMultiple','pageInitialized','activityDataSet','findOne','stringify','parseBasicGridConfigs','dataSet','context','2913894IROYwM','styles','300FVsTxG','parseGristConfigs','render','12khpJna','568KcEbwj','connectedCallback','141330SRmzET','gristId','isElement','clear','searchConfig','1587435bCqKvU','gridConfig','getSelectedIdList'];a0_0x3df8=function(){return _0x4e58e6;};return a0_0x3df8();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x575a(_0x4d9578,_0x309049){const _0x3df8cf=a0_0x3df8();return a0_0x575a=function(_0x575af5,_0x3d5ae0){_0x575af5=_0x575af5-0x14f;let _0x2a79c5=_0x3df8cf[_0x575af5];return _0x2a79c5;},a0_0x575a(_0x4d9578,_0x309049);}export const MetaBasicGristMixin=_0x2746ca=>class extends MetaButtonMixin(_0x2746ca){static get[a0_0x30ca34(0x16c)](){return MetaApi['getBasicGristStyles']();}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['grist'](){const _0x4e7353=a0_0x30ca34;return this['renderRoot']?.[_0x4e7353(0x185)](this[_0x4e7353(0x174)]);}get[a0_0x30ca34(0x160)](){const _0x5153a1=a0_0x30ca34;return this[_0x5153a1(0x157)]?.[_0x5153a1(0x185)](this[_0x5153a1(0x15b)]);}get[a0_0x30ca34(0x16a)](){const _0x81eff0=a0_0x30ca34;return MetaUiUtil[_0x81eff0(0x189)](this);}async[a0_0x30ca34(0x172)](){const _0x1b0fce=a0_0x30ca34;this[_0x1b0fce(0x174)]='ox-grist',this[_0x1b0fce(0x15b)]=_0x1b0fce(0x186),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x1b0fce(0x16e)](),this['activityDataSet']&&(this[_0x1b0fce(0x169)]=this[_0x1b0fce(0x165)]),super[_0x1b0fce(0x172)]&&await super[_0x1b0fce(0x172)]();}async['firstUpdated'](){const _0x711dee=a0_0x30ca34;super[_0x711dee(0x17b)]&&await super['firstUpdated']();}async[a0_0x30ca34(0x164)](){const _0x190a8a=a0_0x30ca34;this[_0x190a8a(0x181)]&&await this[_0x190a8a(0x16e)](),super[_0x190a8a(0x164)]&&await super[_0x190a8a(0x164)]();}[a0_0x30ca34(0x16f)](){const _0x43f0b4=a0_0x30ca34;return html`
|
|
2
|
+
${MetaApi['getBasicGristHtml'](this)}
|
|
3
|
+
${this[_0x43f0b4(0x181)]?html``:MetaUiUtil[_0x43f0b4(0x18b)](this)}
|
|
4
|
+
`;}[a0_0x30ca34(0x168)](_0x240478){const _0x4cc92d=a0_0x30ca34;this[_0x4cc92d(0x179)]=_0x240478['grid'],this['gridColumnConfig']=_0x240478[_0x4cc92d(0x180)],this[_0x4cc92d(0x177)]=_0x240478['search'],this['gridEmphasized']=_0x240478[_0x4cc92d(0x156)];}async[a0_0x30ca34(0x16e)](){const _0x50a4dd=a0_0x30ca34;this[_0x50a4dd(0x153)]=await MetaApi[_0x50a4dd(0x187)](this);}async['fetch'](){const _0x33f692=a0_0x30ca34;await this['grist'][_0x33f692(0x15f)]();}async[a0_0x30ca34(0x152)](){const _0x4d732e=a0_0x30ca34;let _0x308b64=MetaApi[_0x4d732e(0x163)](this['grist']);!!ValueUtil[_0x4d732e(0x15c)](_0x308b64)&&await this['updateMultiple'](_0x308b64)&&this[_0x4d732e(0x15f)]();}async[a0_0x30ca34(0x161)](){const _0x280aaa=a0_0x30ca34;let _0x279d6b=MetaApi[_0x280aaa(0x17a)](this[_0x280aaa(0x159)],!0x0);return ValueUtil[_0x280aaa(0x15c)](_0x279d6b)?await this[_0x280aaa(0x166)](_0x279d6b[0x0]):{};}async[a0_0x30ca34(0x17d)](){const _0x2102e7=a0_0x30ca34;let _0x250fc0=MetaApi['getSelectedIdList'](this[_0x2102e7(0x159)],!0x0);!!ValueUtil[_0x2102e7(0x15c)](_0x250fc0)&&await this[_0x2102e7(0x17e)](_0x250fc0)&&this[_0x2102e7(0x15f)]();}async[a0_0x30ca34(0x162)](){const _0x36ff77=a0_0x30ca34;let _0x4df6e6=TermsUtil[_0x36ff77(0x15e)](ValueUtil['getParams'](this[_0x36ff77(0x15d)],_0x36ff77(0x150)));return await MetaApi['exportableData'](this[_0x36ff77(0x175)],_0x4df6e6,this[_0x36ff77(0x159)]);}async[a0_0x30ca34(0x154)](){}async[a0_0x30ca34(0x176)](){const _0x57b5d7=a0_0x30ca34;this['grist']&&(this[_0x57b5d7(0x159)][_0x57b5d7(0x17c)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x30ca34(0x188)](){const _0x43000a=a0_0x30ca34;let _0x37bcba=this[_0x43000a(0x159)][_0x43000a(0x18a)][_0x43000a(0x158)];return _0x37bcba=JSON['parse'](JSON[_0x43000a(0x167)](_0x37bcba)),_0x37bcba['forEach'](_0x7545ab=>{const _0x348941=_0x43000a;Object['keys'](_0x7545ab)[_0x348941(0x183)](_0x579e0c=>{_0x579e0c['startsWith']('__')&&delete _0x7545ab[_0x579e0c];});}),_0x37bcba;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x19d3(_0x15c2dc,_0x21ba6){const _0x2f6d9f=a0_0x2f6d();return a0_0x19d3=function(_0x19d338,_0x12dde6){_0x19d338=_0x19d338-0x67;let _0x21c274=_0x2f6d9f[_0x19d338];return _0x21c274;},a0_0x19d3(_0x15c2dc,_0x21ba6);}const a0_0x24fbb5=a0_0x19d3;(function(_0x394251,_0x1c97e8){const _0x594aa2=a0_0x19d3,_0x263339=_0x394251();while(!![]){try{const _0x3f46c4=-parseInt(_0x594aa2(0x74))/0x1*(parseInt(_0x594aa2(0x7f))/0x2)+parseInt(_0x594aa2(0x6f))/0x3+-parseInt(_0x594aa2(0x6c))/0x4+-parseInt(_0x594aa2(0x7a))/0x5+-parseInt(_0x594aa2(0x7d))/0x6+parseInt(_0x594aa2(0x7c))/0x7*(-parseInt(_0x594aa2(0x68))/0x8)+parseInt(_0x594aa2(0x70))/0x9;if(_0x3f46c4===_0x1c97e8)break;else _0x263339['push'](_0x263339['shift']());}catch(_0x286ea3){_0x263339['push'](_0x263339['shift']());}}}(a0_0x2f6d,0x4ba30));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x2f6d(){const _0x3c2241=['button','parseBasicButtonConfigs','1029285tZkgKp','14904423HEoCxh','properties','getCustomButtonContainerStyles','isButtonExist','8524JrXpaY','import','useButtonExport','buttonConfig','isPage','getButtonContainer','2580520uyzwVQ','useButtonAdd','28QJKZJa','3537444XiyWrh','customButtonHandler','48bZikGO','gristButtonHandler','getCustomButtonContainerStyle','379432bSVijA','useButtonImport','getBasicButtonHandler','add','757456vVitJz'];a0_0x2f6d=function(){return _0x3c2241;};return a0_0x2f6d();}export const MetaButtonMixin=_0x3f1da0=>class extends MetaServiceMixin(_0x3f1da0){static get[a0_0x24fbb5(0x71)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x24fbb5(0x67)](){const _0x397b08=a0_0x24fbb5;return MetaUiUtil[_0x397b08(0x72)]();}['getContextButtons'](){return MetaUiUtil['getContextButtons'](this);}[a0_0x24fbb5(0x79)](){const _0x33812a=a0_0x24fbb5;return this[_0x33812a(0x78)]?html``:MetaUiUtil[_0x33812a(0x79)](this);}async[a0_0x24fbb5(0x6a)](_0x364547,_0xbf03e7,_0x3164fb){return await MetaUiUtil['getButtonActionHandler'](this,_0x364547,_0xbf03e7,_0x3164fb);}async[a0_0x24fbb5(0x7e)](_0x105bba){const _0x5f31ac=a0_0x24fbb5;await MetaUiUtil[_0x5f31ac(0x7e)](this,_0x105bba);}async[a0_0x24fbb5(0x80)](_0x39f2dd,_0x154d6f){const _0x21aa66=a0_0x24fbb5;await MetaUiUtil[_0x21aa66(0x80)](this,_0x39f2dd,_0x154d6f);}[a0_0x24fbb5(0x6e)](_0xef1387){const _0x4d69f9=a0_0x24fbb5;this[_0x4d69f9(0x77)]=_0xef1387[_0x4d69f9(0x6d)],this[_0x4d69f9(0x69)]=MetaUiUtil[_0x4d69f9(0x73)](this[_0x4d69f9(0x77)],_0x4d69f9(0x75)),this[_0x4d69f9(0x76)]=MetaUiUtil[_0x4d69f9(0x73)](this[_0x4d69f9(0x77)],'export'),this[_0x4d69f9(0x7b)]=MetaUiUtil[_0x4d69f9(0x73)](this[_0x4d69f9(0x77)],_0x4d69f9(0x6b));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x466598=a0_0x2206;(function(_0xc477a2,_0x129838){const _0x3dded0=a0_0x2206,_0x28fa2c=_0xc477a2();while(!![]){try{const _0x5e4a1f=-parseInt(_0x3dded0(0x21a))/0x1+-parseInt(_0x3dded0(0x228))/0x2+-parseInt(_0x3dded0(0x22a))/0x3+parseInt(_0x3dded0(0x1df))/0x4+-parseInt(_0x3dded0(0x1f1))/0x5*(-parseInt(_0x3dded0(0x217))/0x6)+parseInt(_0x3dded0(0x1e0))/0x7*(-parseInt(_0x3dded0(0x221))/0x8)+-parseInt(_0x3dded0(0x1ec))/0x9*(-parseInt(_0x3dded0(0x1cc))/0xa);if(_0x5e4a1f===_0x129838)break;else _0x28fa2c['push'](_0x28fa2c['shift']());}catch(_0x50174f){_0x28fa2c['push'](_0x28fa2c['shift']());}}}(a0_0x2e3c,0x4d18a));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';function a0_0x2e3c(){const _0xc15f39=['focus','renderRoot','parseFormConfigs','form','tagName','formColumnConfig','dirtyData','Esc','isNotEmpty','patchData','filter','save','title.info','findOne','key','map','activityDataSet','info','parseFormConfigSet','formRenderConfig','__seq__','dataSet','parent_id','styles','30QWrNCr','tText','__dirtyfields__','479348pYerfV','firstUpdated','cuFlag','currentTarget','stopPropagation','object','click','3161888pISLuZ','dispatchEvent','getBasicFormHtml','updateMultiple','isEquals','Escape','mandatory','905036hQqNjn','field-change','1540245tKnPbP','header','button','editable','2882840TWFwNE','properties','assign','after','formConfigSet','OX-GRID-FIELD','getBasicFormStyles','type','startsWith','getAndParseMenuMeta','context','editing','validation','currentData','pageInitialized','orgData','__dirty__','before','detail','1363832ZYhnVX','7pnKAED','fetch','includes','addEventListener','isPage','text.check-mandatory','entries','removeGarbageData','check-mandatory-field','call','isEmpty','activity','45qqyLMz','removeAttribute','target','record','Enter','373925xXnZmk','form-field-change','forEach','tLabel','true','__origin__','is_activity','getContextObject','clear','setAttribute','function','showAlertPopup','name','connectedCallback'];a0_0x2e3c=function(){return _0xc15f39;};return a0_0x2e3c();}import{TermsUtil}from'../utils/terms-util';function a0_0x2206(_0x4bddbe,_0x2b3c67){const _0x2e3c78=a0_0x2e3c();return a0_0x2206=function(_0x220646,_0x33d1ac){_0x220646=_0x220646-0x1cb;let _0x248368=_0x2e3c78[_0x220646];return _0x248368;},a0_0x2206(_0x4bddbe,_0x2b3c67);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x48e033=>class extends MetaButtonMixin(_0x48e033){static get[a0_0x466598(0x216)](){const _0xacfcd3=a0_0x466598;return MetaApi[_0xacfcd3(0x1d2)]();}static get[a0_0x466598(0x1cd)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x466598(0x1d6)](){const _0x40cf00=a0_0x466598;return MetaUiUtil[_0x40cf00(0x1f8)](this);}async[a0_0x466598(0x1fe)](){const _0x469637=a0_0x466598;await this[_0x469637(0x1d5)](),this['isElement']&&await this[_0x469637(0x201)](),this[_0x469637(0x20f)]&&(this[_0x469637(0x214)]=this[_0x469637(0x20f)]),!0x0!==this[_0x469637(0x1f7)]||this[_0x469637(0x215)]||(this[_0x469637(0x215)]=_0x469637(0x1eb)),super[_0x469637(0x1fe)]&&await super[_0x469637(0x1fe)](),this['isElement']&&await this[_0x469637(0x1e1)](),this[_0x469637(0x200)][_0x469637(0x1e3)]('keydown',_0x13626d=>{const _0x5f1eb8=_0x469637;switch(_0x13626d[_0x5f1eb8(0x20d)]){case _0x5f1eb8(0x206):case _0x5f1eb8(0x226):case _0x5f1eb8(0x1f0):this['focus'](),this[_0x5f1eb8(0x21d)]&&this[_0x5f1eb8(0x21d)][_0x5f1eb8(0x1ed)](_0x5f1eb8(0x1d7)),this['currentTarget']=null;}}),this[_0x469637(0x200)][_0x469637(0x1e3)](_0x469637(0x220),_0x384fef=>{const _0x134d9e=_0x469637;_0x384fef[_0x134d9e(0x21e)]();let _0x416692=_0x384fef[_0x134d9e(0x1ee)];if(this['currentTarget']&&(this[_0x134d9e(0x1ff)](),this['currentTarget']['removeAttribute'](_0x134d9e(0x1d7))),_0x134d9e(0x1d1)!==_0x416692[_0x134d9e(0x203)]||!_0x416692['column']['record'][_0x134d9e(0x1cb)])return this['focus'](),void(this[_0x134d9e(0x21d)]=null);this['currentTarget']=_0x416692,_0x416692[_0x134d9e(0x1fa)](_0x134d9e(0x1d7),_0x134d9e(0x1f5));}),this[_0x469637(0x1e3)](_0x469637(0x229),_0x25c46a=>{const _0x5a0217=_0x469637;var {after:_0x130e32,before:_0x4f6d81,column:_0x54dff5,record:_0x3649d3,row:_0x3ea9a3}=_0x25c46a[_0x5a0217(0x1de)];if(ValueUtil['isEquals'](_0x130e32,_0x4f6d81))return;var _0x18b68f=_0x54dff5[_0x5a0217(0x1d8)];if(_0x18b68f&&_0x5a0217(0x1fb)==typeof _0x18b68f&&!_0x18b68f[_0x5a0217(0x1e9)](this,_0x130e32,_0x4f6d81,_0x3649d3,_0x54dff5))return;let _0x34f38d=_0x54dff5[_0x5a0217(0x1fd)];_0x3649d3[_0x34f38d]=_0x130e32,_0x3649d3['__dirtyfields__']=_0x3649d3['__dirtyfields__']||{},_0x3649d3[_0x5a0217(0x1f6)]=_0x3649d3[_0x5a0217(0x1f6)]||{},_0x3649d3[_0x5a0217(0x219)][_0x34f38d]={'before':_0x3649d3[_0x5a0217(0x1f6)][_0x34f38d],'after':_0x3649d3[_0x34f38d]},ValueUtil[_0x5a0217(0x225)](_0x3649d3[_0x5a0217(0x219)][_0x34f38d][_0x5a0217(0x1dd)],_0x3649d3[_0x5a0217(0x219)][_0x34f38d]['after'])&&delete _0x3649d3[_0x5a0217(0x219)][_0x34f38d],ValueUtil[_0x5a0217(0x207)](_0x3649d3['__dirtyfields__'])?_0x3649d3[_0x5a0217(0x1dc)]='M':_0x3649d3[_0x5a0217(0x1dc)]='',this[_0x5a0217(0x1ef)]={..._0x3649d3},this[_0x5a0217(0x222)](new CustomEvent(_0x5a0217(0x1f2),{'bubbles':!0x0,'composed':!0x0,'detail':_0x25c46a[_0x5a0217(0x1de)]}));});}async[a0_0x466598(0x21b)](){const _0x436d85=a0_0x466598;super[_0x436d85(0x21b)]&&await super[_0x436d85(0x21b)]();}async[a0_0x466598(0x1da)](){const _0xc8f624=a0_0x466598;this[_0xc8f624(0x1e4)]&&await this[_0xc8f624(0x201)](),super['pageInitialized']&&await super[_0xc8f624(0x1da)](),this[_0xc8f624(0x1e4)]&&await this['fetch']();}['render'](){const _0x44cc9a=a0_0x466598;return MetaApi[_0x44cc9a(0x223)](this);}['parseBasicFormConfigs'](_0x5b6391){const _0x277d38=a0_0x466598;this['formColumnConfig']=_0x5b6391['grid_column'],this[_0x277d38(0x212)]=_0x5b6391[_0x277d38(0x202)],_0x5b6391[_0x277d38(0x22c)]=_0x5b6391[_0x277d38(0x22c)][_0x277d38(0x209)](_0x2feac3=>_0x277d38(0x20a)==_0x2feac3['name']);}async[a0_0x466598(0x201)](){const _0x3d65ad=a0_0x466598;this[_0x3d65ad(0x1d0)]=await MetaApi[_0x3d65ad(0x211)](this);}get[a0_0x466598(0x1db)](){const _0xbcc77f=a0_0x466598;return this[_0xbcc77f(0x1e7)](this[_0xbcc77f(0x1ef)][_0xbcc77f(0x1f6)]);}get[a0_0x466598(0x205)](){const _0x149b20=a0_0x466598;if(ValueUtil[_0x149b20(0x1ea)]((this[_0x149b20(0x1ef)]||{})[_0x149b20(0x219)]))return{};let _0x28e09c={};return Object[_0x149b20(0x1e6)](this[_0x149b20(0x1ef)][_0x149b20(0x219)])[_0x149b20(0x20e)](([_0x491d1e,_0x3f0e26])=>{const _0x50adb1=_0x149b20;0x0==_0x491d1e['startsWith']('__')&&(_0x28e09c[_0x491d1e]=_0x3f0e26[_0x50adb1(0x1cf)]);}),_0x28e09c;}get['currentData'](){const _0x58c71e=a0_0x466598;return this[_0x58c71e(0x1e7)](this[_0x58c71e(0x1ef)]);}[a0_0x466598(0x1e7)](_0x1e2dec){const _0x1c76f4=a0_0x466598;let _0x532d13={};if(_0x1e2dec)return Object[_0x1c76f4(0x1e6)](_0x1e2dec)['map'](([_0x2c1515,_0x570ddb])=>{const _0x16471a=_0x1c76f4;0x0==_0x2c1515[_0x16471a(0x1d4)]('__')&&(_0x532d13[_0x2c1515]=_0x570ddb);}),_0x532d13;}get[a0_0x466598(0x208)](){const _0x1340b6=a0_0x466598;let _0x29ddf2=this['dirtyData'],_0x365b75=this[_0x1340b6(0x1ef)],_0x4c0573=(this['formColumnConfig']||[])['filter'](_0x5c1ca4=>'code-input'===_0x5c1ca4[_0x1340b6(0x1d3)])[_0x1340b6(0x20e)](_0x408925=>_0x408925[_0x1340b6(0x1fd)]);if(!ValueUtil['isEmpty'](_0x29ddf2))return ValueUtil['isNotEmpty'](_0x365b75['id'])?(_0x29ddf2['id']=_0x365b75['id'],_0x29ddf2[_0x1340b6(0x21c)]='M'):_0x29ddf2[_0x1340b6(0x21c)]='+',Object['keys'](_0x29ddf2)[_0x1340b6(0x1f3)](_0x45ef10=>{const _0x30ec86=_0x1340b6;_0x30ec86(0x21f)==typeof _0x29ddf2[_0x45ef10]&&0x0==_0x4c0573[_0x30ec86(0x1e2)](_0x45ef10)&&(_0x29ddf2[_0x45ef10]={'id':_0x29ddf2[_0x45ef10]['id']});}),[_0x29ddf2];}async['fetch'](){const _0x4552ff=a0_0x466598;if(ValueUtil[_0x4552ff(0x1ea)](this[_0x4552ff(0x215)]))return;let _0x4fba7d=await this[_0x4552ff(0x20c)](this['parent_id']);_0x4fba7d[_0x4552ff(0x213)]=0x1;let _0x140b0c={};Object[_0x4552ff(0x1ce)](_0x140b0c,_0x4fba7d),_0x4fba7d[_0x4552ff(0x1f6)]=_0x140b0c,this['record']={..._0x4fba7d};}async[a0_0x466598(0x20a)](){const _0x41efea=a0_0x466598;let _0x3b4ca7=this[_0x41efea(0x208)];if(ValueUtil[_0x41efea(0x1ea)](_0x3b4ca7))return void MetaApi[_0x41efea(0x1fc)](_0x41efea(0x20b),'text.NOTHING_CHANGED');let _0xab5994={};(this[_0x41efea(0x204)]||[])['filter'](_0x364166=>!0x0===_0x364166[_0x41efea(0x227)])[_0x41efea(0x1f3)](_0x3c7bd7=>{const _0x41c439=_0x41efea;_0xab5994[_0x3c7bd7['name']]=_0x3c7bd7[_0x41c439(0x22b)];});let _0x414e4d=this[_0x41efea(0x1d9)];for(let _0x359201 in _0xab5994)if(void 0x0===_0x414e4d[_0x359201]||''==_0x414e4d[_0x359201])return void UiUtil[_0x41efea(0x1fc)](_0x41efea(0x1e5),TermsUtil[_0x41efea(0x218)](_0x41efea(0x1e8),{'x':TermsUtil[_0x41efea(0x1f4)](_0xab5994[_0x359201])}),_0x41efea(0x210),'confirm');let _0x517fb6=await this[_0x41efea(0x224)](_0x3b4ca7);return _0x517fb6&&await this[_0x41efea(0x1e1)](),_0x517fb6;}async[a0_0x466598(0x1f9)](){const _0x590a5b=a0_0x466598;this[_0x590a5b(0x1ef)]&&(this[_0x590a5b(0x1ef)]={});}['getData'](){return this['currentData']||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x59d273=a0_0x17b0;function a0_0x6d07(){const _0x466b87=['parseGridConfigSet','6kfzxuN','patchesForUpdateMultiple','17AmMbgT','exportable','stringify','searchConfig','parse','records','tTitle','properties','1534988UEtVET','isNotEmpty','menuInfo','activityDataSet','querySelector','shadowRoot','grid','main','getParams','type','searchFields','ox-filters-form-base','map','value','gristConfigSet','record','2421054XexcMB','gridEmphasized','gridConfig','#detail','exportableData','filter','___data','pageInitialized','firstUpdated','parseBasicGridConfigs','beforeFetch','connectedCallback','import','forEach','grid_column','keys','push','parseGristConfigs','useMasterFilterForm','options','gristId','36MTPRrn','export','getSelectedIdList','getBasicGristTabStyles','46054VzPUmz','clear','24699kcYHyc','meta-tab-element','4120bzIZVT','getAndParseMenuMeta','deleteByIds','renderRoot','startsWith','name','2105230slccYq','dataSet','searchFieldValues','title','29898bNWIeT','operator','269752KKAKeL','importable','detailElement','header','fetch','filterForm','render','save','styles','getData','search','updateMultiple','useFilterForm','getContextObject','grist','getGristTabHtml','ox-grist'];a0_0x6d07=function(){return _0x466b87;};return a0_0x6d07();}(function(_0x4c55d5,_0x2f16c){const _0x300ca9=a0_0x17b0,_0x181068=_0x4c55d5();while(!![]){try{const _0x118669=-parseInt(_0x300ca9(0x11c))/0x1*(parseInt(_0x300ca9(0xf8))/0x2)+parseInt(_0x300ca9(0xfa))/0x3*(-parseInt(_0x300ca9(0xf4))/0x4)+-parseInt(_0x300ca9(0x102))/0x5+parseInt(_0x300ca9(0x11a))/0x6*(parseInt(_0x300ca9(0x124))/0x7)+parseInt(_0x300ca9(0x108))/0x8+-parseInt(_0x300ca9(0x134))/0x9+parseInt(_0x300ca9(0xfc))/0xa*(parseInt(_0x300ca9(0x106))/0xb);if(_0x118669===_0x2f16c)break;else _0x181068['push'](_0x181068['shift']());}catch(_0x19afe8){_0x181068['push'](_0x181068['shift']());}}}(a0_0x6d07,0x3507b));function a0_0x17b0(_0x31e9ff,_0x112359){const _0x6d0785=a0_0x6d07();return a0_0x17b0=function(_0x17b0b7,_0x234d10){_0x17b0b7=_0x17b0b7-0xe4;let _0x3702f9=_0x6d0785[_0x17b0b7];return _0x3702f9;},a0_0x17b0(_0x31e9ff,_0x112359);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x70a618=>class extends MetaButtonMixin(_0x70a618){static get[a0_0x59d273(0x110)](){const _0x111263=a0_0x59d273;return MetaApi[_0x111263(0xf7)]();}static get[a0_0x59d273(0x123)](){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_0x59d273(0x116)](){const _0x27cc49=a0_0x59d273;return this[_0x27cc49(0xff)][_0x27cc49(0x128)](this[_0x27cc49(0xf3)]);}get[a0_0x59d273(0x10d)](){const _0x3cd059=a0_0x59d273;return this[_0x3cd059(0x129)]?.[_0x3cd059(0x128)](this['filterFormId']);}get[a0_0x59d273(0x10a)](){const _0x2ee4f5=a0_0x59d273;return this[_0x2ee4f5(0x129)][_0x2ee4f5(0x128)](_0x2ee4f5(0x137));}get['context'](){const _0x3f3975=a0_0x59d273;let _0x1e1aa7=MetaUiUtil[_0x3f3975(0x115)](this);return _0x1e1aa7['actions']&&delete _0x1e1aa7['actions'],_0x1e1aa7[_0x3f3975(0x11d)]&&delete _0x1e1aa7[_0x3f3975(0x11d)],_0x1e1aa7['importable']&&delete _0x1e1aa7[_0x3f3975(0x109)],_0x1e1aa7;}async[a0_0x59d273(0xea)](){const _0x326e44=a0_0x59d273;this['gristId']=_0x326e44(0x118),this['filterFormId']=_0x326e44(0x12f),await this[_0x326e44(0xfd)](),this['isElement']&&await this[_0x326e44(0xf0)](),this[_0x326e44(0x127)]&&(this[_0x326e44(0x103)]=(this[_0x326e44(0x127)]||{})[_0x326e44(0x12b)]),super[_0x326e44(0xea)]&&await super[_0x326e44(0xea)]();}async[a0_0x59d273(0xe7)](){const _0x4198f1=a0_0x59d273;super[_0x4198f1(0xe7)]&&await super[_0x4198f1(0xe7)]();}async[a0_0x59d273(0xe6)](){const _0x2820e3=a0_0x59d273;this['isPage']&&await this[_0x2820e3(0xf0)](),super[_0x2820e3(0xe6)]&&await super[_0x2820e3(0xe6)]();}[a0_0x59d273(0x10e)](){const _0x285bf5=a0_0x59d273;return MetaApi[_0x285bf5(0x117)](this);}[a0_0x59d273(0xe8)](_0x4d440d){const _0x2f03b9=a0_0x59d273;this[_0x2f03b9(0x136)]=_0x4d440d[_0x2f03b9(0x12a)],this['gridColumnConfig']=_0x4d440d[_0x2f03b9(0xed)],this[_0x2f03b9(0x11f)]=_0x4d440d['search'],this[_0x2f03b9(0x135)]=_0x4d440d[_0x2f03b9(0x135)];}async[a0_0x59d273(0xf0)](){const _0x2c30e4=a0_0x59d273;this[_0x2c30e4(0x132)]=await MetaApi[_0x2c30e4(0x119)](this),this[_0x2c30e4(0xf1)]=!0x0===this[_0x2c30e4(0x114)],this[_0x2c30e4(0x114)]=!0x1,this[_0x2c30e4(0x104)]=[],this[_0x2c30e4(0x12e)]=this[_0x2c30e4(0x132)]['columns'][_0x2c30e4(0xe4)](_0x227906=>_0x227906[_0x2c30e4(0xe4)])[_0x2c30e4(0x130)](_0x27b411=>{const _0x19cce1=_0x2c30e4;let _0x33560c={'name':_0x27b411['name'],'type':_0x19cce1(0x112)===_0x27b411[_0x19cce1(0xe4)][_0x19cce1(0x107)]?_0x19cce1(0x112):_0x27b411[_0x19cce1(0x12d)],'label':_0x27b411[_0x19cce1(0x10b)],'operator':_0x27b411[_0x19cce1(0xe4)][_0x19cce1(0x107)]?_0x27b411['filter']['operator']:'eq'};return _0x27b411['filter'][_0x19cce1(0xf2)]&&(_0x33560c['options']=_0x27b411[_0x19cce1(0xe4)]['options']),_0x27b411[_0x19cce1(0x133)][_0x19cce1(0xf2)]&&(_0x33560c[_0x19cce1(0xf2)]=_0x27b411['record']['options']),_0x27b411[_0x19cce1(0xe4)][_0x19cce1(0x131)]&&this[_0x19cce1(0x104)][_0x19cce1(0xef)]({'name':_0x33560c[_0x19cce1(0x101)],'operator':_0x33560c['operator'],'value':_0x27b411[_0x19cce1(0xe4)][_0x19cce1(0x131)]}),delete _0x27b411[_0x19cce1(0xe4)],_0x33560c;});}async[a0_0x59d273(0x10c)](){const _0x39533b=a0_0x59d273;await this[_0x39533b(0x116)]['fetch']();}async[a0_0x59d273(0xe9)]({page:_0xb4a033=0x0,limit:_0x2f5c45=0x0,sortings:_0x3977a4=[],filters:_0x652bca=[]}){const _0x35c19d=a0_0x59d273;let _0x486dc7=this[_0x35c19d(0xff)][_0x35c19d(0x128)](_0x35c19d(0xfb));return await _0x486dc7[_0x35c19d(0xf9)](),!0x0;}async[a0_0x59d273(0x10f)](){const _0x2c1181=a0_0x59d273;let _0xe8ebc1=MetaApi[_0x2c1181(0x11b)](this[_0x2c1181(0x116)]);!!ValueUtil[_0x2c1181(0x125)](_0xe8ebc1)&&await this[_0x2c1181(0x113)](_0xe8ebc1)&&this['fetch']();}async['find'](){const _0x2261da=a0_0x59d273;let _0x4114d4=MetaApi[_0x2261da(0xf6)](this[_0x2261da(0x116)],!0x0);return ValueUtil[_0x2261da(0x125)](_0x4114d4)?await this['findOne'](_0x4114d4[0x0]):{};}async['delete'](){const _0x1f7c38=a0_0x59d273;let _0x4a8dfc=MetaApi['getSelectedIdList'](this[_0x1f7c38(0x116)],!0x0);!!ValueUtil[_0x1f7c38(0x125)](_0x4a8dfc)&&await this[_0x1f7c38(0xfe)](_0x4a8dfc)&&this[_0x1f7c38(0x10c)]();}async[a0_0x59d273(0xf5)](){const _0x21f7c3=a0_0x59d273;let _0x290bc0=TermsUtil[_0x21f7c3(0x122)](ValueUtil[_0x21f7c3(0x12c)](this[_0x21f7c3(0x126)],_0x21f7c3(0x105)));return await MetaApi[_0x21f7c3(0x138)](this['isElement'],_0x290bc0,this[_0x21f7c3(0x116)]);}async[a0_0x59d273(0xeb)](){}[a0_0x59d273(0x111)](){const _0x571b41=a0_0x59d273;let _0x3a33df=this[_0x571b41(0x116)][_0x571b41(0xe5)][_0x571b41(0x121)];return _0x3a33df=JSON[_0x571b41(0x120)](JSON[_0x571b41(0x11e)](_0x3a33df)),_0x3a33df[_0x571b41(0xec)](_0xeaf644=>{const _0xd40e1a=_0x571b41;Object[_0xd40e1a(0xee)](_0xeaf644)[_0xd40e1a(0xec)](_0x1fdf92=>{const _0x56a3f6=_0xd40e1a;_0x1fdf92[_0x56a3f6(0x100)]('__')&&delete _0xeaf644[_0x1fdf92];});}),{'main':_0x3a33df,'detail':this[_0x571b41(0xff)]['querySelector']('meta-tab-element')[_0x571b41(0x111)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xf0620a=a0_0x131d;(function(_0xe1d92d,_0x38d829){const _0x2dd8f6=a0_0x131d,_0x4a9e39=_0xe1d92d();while(!![]){try{const _0x4069d3=-parseInt(_0x2dd8f6(0x143))/0x1*(parseInt(_0x2dd8f6(0x11a))/0x2)+-parseInt(_0x2dd8f6(0x13f))/0x3*(-parseInt(_0x2dd8f6(0x11d))/0x4)+parseInt(_0x2dd8f6(0x11c))/0x5*(-parseInt(_0x2dd8f6(0x121))/0x6)+-parseInt(_0x2dd8f6(0x118))/0x7*(-parseInt(_0x2dd8f6(0x133))/0x8)+-parseInt(_0x2dd8f6(0x13e))/0x9*(parseInt(_0x2dd8f6(0x135))/0xa)+-parseInt(_0x2dd8f6(0x12f))/0xb*(-parseInt(_0x2dd8f6(0x116))/0xc)+parseInt(_0x2dd8f6(0x13b))/0xd*(parseInt(_0x2dd8f6(0x136))/0xe);if(_0x4069d3===_0x38d829)break;else _0x4a9e39['push'](_0x4a9e39['shift']());}catch(_0x361aa2){_0x4a9e39['push'](_0x4a9e39['shift']());}}}(a0_0x25a2,0xc2935));import{html}from'lit';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_0x25a2(){const _0x441696=['value','1677864XPfRmI','ox-grist','context','shadowRoot','pageInitialized','dataSet','fetch','properties','firstUpdated','main','getMainTabHtml','gridEmphasized','masterElement','styles','1308109nphHFi','clear','getData','columns','78824zQrgjN','render','160qrRFMn','2164162XczStV','filterForm','gristConfigSet','searchConfig','connectedCallback','13qjNtDD','isElement','useFilterForm','352242firSaH','3PXBPmh','type','ox-filters-form-base','parseGristConfigs','1bkcohP','grid','gristId','push','importable','grid_column','map','filterFormId','parseBasicGridConfigs','activityDataSet','operator','getBasicMainTabStyles','name','actions','querySelector','search','options','isPage','searchFields','filter','useMasterFilterForm','132EKoXbB','buttonConfig','469cUeOiY','getContextObject','2293804PTGnIm','record','10GPALRc','4026144ckICpz','searchFieldValues','beforeFetch'];a0_0x25a2=function(){return _0x441696;};return a0_0x25a2();}import{TermsUtil}from'../utils/terms-util';function a0_0x131d(_0x5f56af,_0x279bf2){const _0x25a29f=a0_0x25a2();return a0_0x131d=function(_0x131dc9,_0x44e016){_0x131dc9=_0x131dc9-0x10f;let _0x474a50=_0x25a29f[_0x131dc9];return _0x474a50;},a0_0x131d(_0x5f56af,_0x279bf2);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x2fbf04=>class extends MetaButtonMixin(_0x2fbf04){static get[a0_0xf0620a(0x12e)](){const _0x26e6ba=a0_0xf0620a;return MetaApi[_0x26e6ba(0x14e)]();}static get[a0_0xf0620a(0x128)](){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'](){return this['masterElement']['getMainGrist']();}get[a0_0xf0620a(0x137)](){const _0x109f60=a0_0xf0620a;return this[_0x109f60(0x124)]?.[_0x109f60(0x10f)](this[_0x109f60(0x14a)]);}get[a0_0xf0620a(0x123)](){const _0x47b8b2=a0_0xf0620a;let _0x52b3d3=MetaUiUtil[_0x47b8b2(0x119)](this);return _0x52b3d3[_0x47b8b2(0x150)]&&delete _0x52b3d3[_0x47b8b2(0x150)],_0x52b3d3['exportable']&&delete _0x52b3d3['exportable'],_0x52b3d3[_0x47b8b2(0x147)]&&delete _0x52b3d3[_0x47b8b2(0x147)],_0x52b3d3;}async[a0_0xf0620a(0x13a)](){const _0x462858=a0_0xf0620a;this[_0x462858(0x145)]=_0x462858(0x122),this['filterFormId']=_0x462858(0x141),await this['getAndParseMenuMeta'](),this[_0x462858(0x13c)]&&await this[_0x462858(0x142)](),this[_0x462858(0x14c)]&&(this[_0x462858(0x126)]=(this[_0x462858(0x14c)]||{})[_0x462858(0x12a)]),super[_0x462858(0x13a)]&&await super['connectedCallback']();}async[a0_0xf0620a(0x129)](){const _0x35030c=a0_0xf0620a;super['firstUpdated']&&await super[_0x35030c(0x129)]();}async['pageInitialized'](){const _0x4e8f88=a0_0xf0620a;this[_0x4e8f88(0x112)]&&await this[_0x4e8f88(0x142)](),super[_0x4e8f88(0x125)]&&await super['pageInitialized']();}[a0_0xf0620a(0x134)](){const _0x1c56db=a0_0xf0620a;return MetaApi[_0x1c56db(0x12b)](this);}[a0_0xf0620a(0x14b)](_0x32a664){const _0x199855=a0_0xf0620a;this['gridConfig']=_0x32a664[_0x199855(0x144)],this['gridColumnConfig']=_0x32a664[_0x199855(0x148)],this[_0x199855(0x139)]=_0x32a664[_0x199855(0x110)],this[_0x199855(0x12c)]=_0x32a664[_0x199855(0x12c)];}async[a0_0xf0620a(0x142)](){const _0x41c26b=a0_0xf0620a;this[_0x41c26b(0x138)]=await MetaApi['parseGridConfigSet'](this),this[_0x41c26b(0x115)]=!0x0===this[_0x41c26b(0x13d)],this['useFilterForm']=!0x1,this[_0x41c26b(0x117)]=void 0x0,this['useButtonExport']=!0x1,this['useButtonImport']=!0x1,this['searchFieldValues']=[],this[_0x41c26b(0x113)]=this[_0x41c26b(0x138)][_0x41c26b(0x132)][_0x41c26b(0x114)](_0x5432a4=>_0x5432a4['filter'])[_0x41c26b(0x149)](_0x551633=>{const _0x4055f3=_0x41c26b;let _0x38de37={'name':_0x551633[_0x4055f3(0x14f)],'type':_0x4055f3(0x110)===_0x551633[_0x4055f3(0x114)][_0x4055f3(0x14d)]?_0x4055f3(0x110):_0x551633[_0x4055f3(0x140)],'label':_0x551633['header'],'operator':_0x551633['filter'][_0x4055f3(0x14d)]?_0x551633['filter'][_0x4055f3(0x14d)]:'eq'};return _0x551633[_0x4055f3(0x114)]['options']&&(_0x38de37['options']=_0x551633[_0x4055f3(0x114)][_0x4055f3(0x111)]),_0x551633[_0x4055f3(0x11b)][_0x4055f3(0x111)]&&(_0x38de37[_0x4055f3(0x111)]=_0x551633[_0x4055f3(0x11b)][_0x4055f3(0x111)]),_0x551633[_0x4055f3(0x114)][_0x4055f3(0x120)]&&this[_0x4055f3(0x11e)][_0x4055f3(0x146)]({'name':_0x38de37[_0x4055f3(0x14f)],'operator':_0x38de37[_0x4055f3(0x14d)],'value':_0x551633[_0x4055f3(0x114)][_0x4055f3(0x120)]}),delete _0x551633[_0x4055f3(0x114)],_0x38de37;});}async[a0_0xf0620a(0x127)](){await this['grist']['fetch']();}async[a0_0xf0620a(0x11f)]({page:_0x2b4911=0x0,limit:_0x492782=0x0,sortings:_0x45a51a=[],filters:_0x12a758=[]}){const _0x57c7db=a0_0xf0620a;return this['masterElement']&&this[_0x57c7db(0x12d)][_0x57c7db(0x130)]&&await this['masterElement'][_0x57c7db(0x130)](),!0x0;}['getData'](){const _0x2add29=a0_0xf0620a;return{'master':this['masterElement'][_0x2add29(0x131)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x348a(_0x23bb3c,_0x2e3c3c){const _0x4ba448=a0_0x4ba4();return a0_0x348a=function(_0x348a9f,_0x14d1eb){_0x348a9f=_0x348a9f-0x99;let _0x477748=_0x4ba448[_0x348a9f];return _0x477748;},a0_0x348a(_0x23bb3c,_0x2e3c3c);}const a0_0x43bbf0=a0_0x348a;function a0_0x4ba4(){const _0x43b6b7=['getAndParseMenuMeta','querySelector','isNotEmpty','detailElement','search','find','5vvBBfh','gridConfig','forEach','filterForm','gridEmphasized','exportableData','grist','parseGridConfigSet','grid','columns','ox-filters-form-base','main','233264IrAcpZ','context','activityDataSet','parseGristConfigs','8jQPTbV','startsWith','grid_column','options','pageInitialized','getData','keys','record','useFilterForm','gridColumnConfig','5706323IPfHgJ','firstUpdated','import','push','actions','connectedCallback','render','gristId','5046324gGCayl','shadowRoot','36IkWFCC','isElement','getSelectedIdList','map','481185CqCbcj','8ycxNSE','operator','filter','useMasterFilterForm','dataSet','importable','clear','___data','getParams','type','isPage','name','delete','export','title','styles','renderRoot','190191MPwdXl','gristConfigSet','exportable','parse','ox-grist','menuInfo','filterFormId','beforeFetch','214709oGVJHm','getBasicMasterDetailStyles','getContextObject','properties','findOne','updateMultiple','48ondIRu','value','2610290SIuohP','searchFields','fetch','searchFieldValues'];a0_0x4ba4=function(){return _0x43b6b7;};return a0_0x4ba4();}(function(_0x41c8c5,_0x60431c){const _0xb9bae0=a0_0x348a,_0x31de15=_0x41c8c5();while(!![]){try{const _0x5438b4=-parseInt(_0xb9bae0(0xa9))/0x1*(-parseInt(_0xb9bae0(0xe0))/0x2)+-parseInt(_0xb9bae0(0xba))/0x3*(parseInt(_0xb9bae0(0xc8))/0x4)+parseInt(_0xb9bae0(0xd4))/0x5*(-parseInt(_0xb9bae0(0xa2))/0x6)+-parseInt(_0xb9bae0(0x9a))/0x7*(-parseInt(_0xb9bae0(0xe4))/0x8)+parseInt(_0xb9bae0(0xa8))/0x9+parseInt(_0xb9bae0(0xca))/0xa+parseInt(_0xb9bae0(0xc2))/0xb*(parseInt(_0xb9bae0(0xa4))/0xc);if(_0x5438b4===_0x60431c)break;else _0x31de15['push'](_0x31de15['shift']());}catch(_0x5c4ff9){_0x31de15['push'](_0x31de15['shift']());}}}(a0_0x4ba4,0x7ed36));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x2e5dfe=>class extends MetaButtonMixin(_0x2e5dfe){static get[a0_0x43bbf0(0xb8)](){const _0x500f68=a0_0x43bbf0;return MetaApi[_0x500f68(0xc3)]();}static get[a0_0x43bbf0(0xc5)](){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_0x43bbf0(0xda)](){const _0x3dd806=a0_0x43bbf0;return this[_0x3dd806(0xb9)][_0x3dd806(0xcf)](this[_0x3dd806(0xa1)]);}get[a0_0x43bbf0(0xd7)](){const _0x56fbe6=a0_0x43bbf0;return this[_0x56fbe6(0xa3)]?.[_0x56fbe6(0xcf)](this['filterFormId']);}get[a0_0x43bbf0(0xe1)](){const _0x19bc68=a0_0x43bbf0;let _0x4501fa=MetaUiUtil[_0x19bc68(0xc4)](this);return _0x4501fa[_0x19bc68(0x9e)]&&delete _0x4501fa[_0x19bc68(0x9e)],_0x4501fa[_0x19bc68(0xbc)]&&delete _0x4501fa['exportable'],_0x4501fa[_0x19bc68(0xae)]&&delete _0x4501fa[_0x19bc68(0xae)],_0x4501fa;}async['connectedCallback'](){const _0x2c3537=a0_0x43bbf0;this[_0x2c3537(0xa1)]=_0x2c3537(0xbe),this[_0x2c3537(0xc0)]=_0x2c3537(0xde),await this[_0x2c3537(0xce)](),this[_0x2c3537(0xa5)]&&await this[_0x2c3537(0xe3)](),this[_0x2c3537(0xe2)]&&(this[_0x2c3537(0xad)]=(this[_0x2c3537(0xe2)]||{})[_0x2c3537(0xdf)]),super[_0x2c3537(0x9f)]&&await super['connectedCallback']();}async[a0_0x43bbf0(0x9b)](){const _0xf70fc4=a0_0x43bbf0;super[_0xf70fc4(0x9b)]&&await super[_0xf70fc4(0x9b)]();}async[a0_0x43bbf0(0xe8)](){const _0x30943e=a0_0x43bbf0;this[_0x30943e(0xb3)]&&await this['parseGristConfigs'](),super[_0x30943e(0xe8)]&&await super[_0x30943e(0xe8)]();}[a0_0x43bbf0(0xa0)](){return MetaApi['getMasterDetailHtml'](this);}['parseBasicGridConfigs'](_0x1721b6){const _0x452a8c=a0_0x43bbf0;this[_0x452a8c(0xd5)]=_0x1721b6[_0x452a8c(0xdc)],this[_0x452a8c(0x99)]=_0x1721b6[_0x452a8c(0xe6)],this['searchConfig']=_0x1721b6[_0x452a8c(0xd2)],this['gridEmphasized']=_0x1721b6[_0x452a8c(0xd8)];}async[a0_0x43bbf0(0xe3)](){const _0x270458=a0_0x43bbf0;this[_0x270458(0xbb)]=await MetaApi[_0x270458(0xdb)](this),this[_0x270458(0xac)]=!0x0===this[_0x270458(0xec)],this['useFilterForm']=!0x1,this[_0x270458(0xcd)]=[],this[_0x270458(0xcb)]=this[_0x270458(0xbb)][_0x270458(0xdd)][_0x270458(0xab)](_0x328e76=>_0x328e76['filter'])[_0x270458(0xa7)](_0x276be2=>{const _0x1d82fe=_0x270458;let _0x23f9dc={'name':_0x276be2['name'],'type':_0x1d82fe(0xd2)===_0x276be2['filter'][_0x1d82fe(0xaa)]?_0x1d82fe(0xd2):_0x276be2[_0x1d82fe(0xb2)],'label':_0x276be2['header'],'operator':_0x276be2[_0x1d82fe(0xab)]['operator']?_0x276be2[_0x1d82fe(0xab)][_0x1d82fe(0xaa)]:'eq'};return _0x276be2['filter'][_0x1d82fe(0xe7)]&&(_0x23f9dc[_0x1d82fe(0xe7)]=_0x276be2[_0x1d82fe(0xab)]['options']),_0x276be2[_0x1d82fe(0xeb)][_0x1d82fe(0xe7)]&&(_0x23f9dc[_0x1d82fe(0xe7)]=_0x276be2[_0x1d82fe(0xeb)][_0x1d82fe(0xe7)]),_0x276be2[_0x1d82fe(0xab)]['value']&&this['searchFieldValues'][_0x1d82fe(0x9d)]({'name':_0x23f9dc[_0x1d82fe(0xb4)],'operator':_0x23f9dc[_0x1d82fe(0xaa)],'value':_0x276be2[_0x1d82fe(0xab)][_0x1d82fe(0xc9)]}),delete _0x276be2[_0x1d82fe(0xab)],_0x23f9dc;});}async['fetch'](){const _0x5cf526=a0_0x43bbf0;await this[_0x5cf526(0xda)][_0x5cf526(0xcc)]();}async[a0_0x43bbf0(0xc1)]({page:_0x208af8=0x0,limit:_0x2b7cd9=0x0,sortings:_0x5d7479=[],filters:_0x38bf5c=[]}){const _0x398bb9=a0_0x43bbf0;return this['detailElement']&&this[_0x398bb9(0xd1)][_0x398bb9(0xaf)]&&await this['detailElement'][_0x398bb9(0xaf)](),!0x0;}async['save'](){const _0x34c7ee=a0_0x43bbf0;let _0x34995c=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x34c7ee(0xd0)](_0x34995c)&&await this[_0x34c7ee(0xc7)](_0x34995c)&&this[_0x34c7ee(0xcc)]();}async[a0_0x43bbf0(0xd3)](){const _0x436c2f=a0_0x43bbf0;let _0x2f4be2=MetaApi[_0x436c2f(0xa6)](this[_0x436c2f(0xda)],!0x0);return ValueUtil[_0x436c2f(0xd0)](_0x2f4be2)?await this[_0x436c2f(0xc6)](_0x2f4be2[0x0]):{};}async[a0_0x43bbf0(0xb5)](){const _0x49f696=a0_0x43bbf0;let _0x3ddcc6=MetaApi[_0x49f696(0xa6)](this['grist'],!0x0);!!ValueUtil[_0x49f696(0xd0)](_0x3ddcc6)&&await this['deleteByIds'](_0x3ddcc6)&&this[_0x49f696(0xcc)]();}async[a0_0x43bbf0(0xb6)](){const _0x54fabe=a0_0x43bbf0;let _0x3c1818=TermsUtil['tTitle'](ValueUtil[_0x54fabe(0xb1)](this[_0x54fabe(0xbf)],_0x54fabe(0xb7)));return await MetaApi[_0x54fabe(0xd9)](this[_0x54fabe(0xa5)],_0x3c1818,this[_0x54fabe(0xda)]);}async[a0_0x43bbf0(0x9c)](){}[a0_0x43bbf0(0xe9)](){const _0x38d5bf=a0_0x43bbf0;let _0x2cba05=this[_0x38d5bf(0xda)][_0x38d5bf(0xb0)]['records'];return _0x2cba05=JSON[_0x38d5bf(0xbd)](JSON['stringify'](_0x2cba05)),_0x2cba05[_0x38d5bf(0xd6)](_0xb6f603=>{const _0x101069=_0x38d5bf;Object[_0x101069(0xea)](_0xb6f603)['forEach'](_0x216d56=>{const _0x4a519e=_0x101069;_0x216d56[_0x4a519e(0xe5)]('__')&&delete _0xb6f603[_0x216d56];});}),{'main':_0x2cba05,'detail':this[_0x38d5bf(0xd1)][_0x38d5bf(0xe9)]()};}};
|