@things-factory/meta-ui 6.1.53 → 6.1.54
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 +2 -2
- 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 +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 +14 -14
- 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 +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +3 -3
- package/server/activity/CommonActivity.js +3 -3
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2686ba=a0_0x41be;(function(_0x452f86,_0x32bb93){const _0x35d6eb=a0_0x41be,_0x47435c=_0x452f86();while(!![]){try{const _0x3663cd=-parseInt(_0x35d6eb(0x173))/0x1+-parseInt(_0x35d6eb(0x174))/0x2+parseInt(_0x35d6eb(0x187))/0x3+-parseInt(_0x35d6eb(0x163))/0x4*(parseInt(_0x35d6eb(0x186))/0x5)+-parseInt(_0x35d6eb(0x159))/0x6+-parseInt(_0x35d6eb(0x162))/0x7+parseInt(_0x35d6eb(0x15e))/0x8*(parseInt(_0x35d6eb(0x165))/0x9);if(_0x3663cd===_0x32bb93)break;else _0x47435c['push'](_0x47435c['shift']());}catch(_0x29c751){_0x47435c['push'](_0x47435c['shift']());}}}(a0_0x3b8d,0x91ecc));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_0x41be(_0x279750,_0x3fc0ac){const _0x3b8dc4=a0_0x3b8d();return a0_0x41be=function(_0x41bee6,_0x2a6f69){_0x41bee6=_0x41bee6-0x140;let _0x49837e=_0x3b8dc4[_0x41bee6];return _0x49837e;},a0_0x41be(_0x279750,_0x3fc0ac);}import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';function a0_0x3b8d(){const _0x365855=['sorters','search_hidden_fields','menu_template','meta-object-selector-popup','rows','cancel','showToast','code','meta-object-selector','values','menu','args','name','965897GUlBzT','1173720ptSnhn','confirmCallback','fetchHandler','push','meta-code-selector','includes','type','after_set_fields','hidden','filters','appendable','define','#ox-grist','getCodeByEntity','options','forEach','getGristMetaObjectOptions','getGristSelectableConfig','4763985QUWwvJ','584820eeeHRm','gridConfig','dispField','getGristColumnConfig2','record','getGristPagination100Config','select','clickSelect','tText','select-row-toggle','firstUpdated','info','isArray','styles','basicArgs','codeField','bind','NOTHING_SELECTED','selectRecord','shadowRoot','align','clickEmpty','resource-code-selector','getParams','selected','resource-object','object','length','left','connectedCallback','gql','filter','search','query','string','scenario','filterFields','startsWith','2899188WhZKYP','getCodeByScenario','tButton','nameField','getGristGuttersConfig','8zKJYeT','querySelector','getCodeSelectorData','handlers','7096306XeZLCT','4aXYebp','grist','39647502nSDSMg'];a0_0x3b8d=function(){return _0x365855;};return a0_0x3b8d();}import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x2686ba(0x140)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x146466=a0_0x4ae6;function a0_0x13f4(){const _0x4c4b77=['basicArgs','c
|
|
|
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['connectedCallback'](){const _0x272382=a0_0x2686ba;this[_0x272382(0x167)]=this[_0x272382(0x182)]['filters']?this['options'][_0x272382(0x17d)]:this['basicArgs']&&this['basicArgs']['filters']?this[_0x272382(0x141)][_0x272382(0x17d)]:[];let _0x4c5024=this[_0x272382(0x182)][_0x272382(0x166)]?this[_0x272382(0x182)]['sorters']:this[_0x272382(0x141)]&&this[_0x272382(0x141)]['sorters']?this['basicArgs'][_0x272382(0x166)]:[],_0x1e3f10=this[_0x272382(0x182)][_0x272382(0x157)]?this[_0x272382(0x182)]['filterFields']:this[_0x272382(0x182)][_0x272382(0x168)]?.[_0x272382(0x153)]&&this[_0x272382(0x182)][_0x272382(0x168)]?.[_0x272382(0x153)]['length']>0x0?this[_0x272382(0x182)][_0x272382(0x168)][_0x272382(0x153)]:[],_0x1c2b10=this[_0x272382(0x182)][_0x272382(0x18d)];if(!_0x1e3f10||0x0==_0x1e3f10['length']){let _0x2d4dd3;this[_0x272382(0x182)][_0x272382(0x142)]&&(_0x2d4dd3=this[_0x272382(0x182)]['codeField']),this[_0x272382(0x182)]['nameField']&&(_0x2d4dd3=this[_0x272382(0x182)][_0x272382(0x15c)]),_0x2d4dd3&&_0x1e3f10[_0x272382(0x177)]({'name':_0x2d4dd3,'operator':'eq'});}let _0xddd09e=[...MetaApi[_0x272382(0x15d)](!0x0,!0x1)];if(_0x1c2b10&&_0x1c2b10[_0x272382(0x14e)]>0x0)for(let _0x42cf8c=0x0;_0x42cf8c<_0x1c2b10[_0x272382(0x14e)];_0x42cf8c++){let {type:_0x10eea0='string',name:_0x1402db,hidden:_0x3c0525=!0x1,record:_0x5cb914={'align':_0x272382(0x14f)},header:_0x6b4f85,sortable:_0x2f0fe7=!0x1,width:_0x41361b=0x87,options:_0x27ecee,select_opt:_0x57526c,object_opt:_0x820264}=_0x1c2b10[_0x42cf8c];if(_0x57526c&&(_0x27ecee=_0x57526c),_0x820264&&(_0x27ecee=_0x820264),[_0x272382(0x14c),_0x272382(0x14d)][_0x272382(0x179)](_0x10eea0)?_0x10eea0=_0x272382(0x16e):[_0x272382(0x149)][_0x272382(0x179)](_0x10eea0)&&(_0x10eea0=_0x272382(0x178)),'id'==_0x1402db)_0xddd09e[_0x272382(0x177)]({'type':_0x272382(0x155),'name':_0x1402db,'hidden':!0x0});else{let _0x4eb8be=MetaApi[_0x272382(0x18a)](_0x10eea0,_0x1402db,_0x6b4f85||_0x1402db,_0x5cb914[_0x272382(0x147)]?_0x5cb914[_0x272382(0x147)]:_0x272382(0x14f),!0x1,_0x2f0fe7,_0x41361b);_0x10eea0[_0x272382(0x158)]('meta-')&&_0x820264&&_0x820264[_0x272382(0x170)]&&(_0x27ecee=await MetaUiUtil[_0x272382(0x184)](_0x10eea0,_0x27ecee)),_0x272382(0x18d)===_0x10eea0?Array[_0x272382(0x193)](_0x27ecee)?_0x4eb8be[_0x272382(0x18b)][_0x272382(0x182)]=_0x27ecee:_0x272382(0x16d)===_0x27ecee[_0x272382(0x17a)]?_0x4eb8be[_0x272382(0x18b)]['options']=await ServiceUtil[_0x272382(0x160)](_0x27ecee[_0x272382(0x16f)]?_0x27ecee[_0x272382(0x16f)]:_0x27ecee['name']):_0x272382(0x156)===_0x27ecee[_0x272382(0x17a)]?_0x4eb8be[_0x272382(0x18b)][_0x272382(0x182)]=await ServiceUtil[_0x272382(0x15a)](_0x27ecee['name'],_0x27ecee[_0x272382(0x171)]):'entity'===_0x27ecee['type']&&(_0x4eb8be['record'][_0x272382(0x182)]=await ServiceUtil[_0x272382(0x181)](_0x27ecee[_0x272382(0x171)])):_0x272382(0x16e)===_0x10eea0?_0x4eb8be['record']['options']={..._0x27ecee}:_0x272382(0x178)==_0x10eea0&&(_0x27ecee[_0x272382(0x189)]&&(_0x27ecee['codes']=await ServiceUtil['getCodeByEntity'](_0x27ecee)),_0x4eb8be['record'][_0x272382(0x182)]={..._0x27ecee}),_0x4eb8be[_0x272382(0x17c)]=_0x3c0525,_0xddd09e[_0x272382(0x177)](_0x4eb8be);}}else _0xddd09e[_0x272382(0x177)](MetaApi[_0x272382(0x18a)](_0x272382(0x155),this['options']['codeField'],this[_0x272382(0x182)][_0x272382(0x142)],'left',!0x1,!0x0,0xb4)),this[_0x272382(0x182)][_0x272382(0x189)]&&_0xddd09e[_0x272382(0x177)](MetaApi[_0x272382(0x18a)](_0x272382(0x155),this['options'][_0x272382(0x189)],this[_0x272382(0x182)][_0x272382(0x189)],_0x272382(0x14f),!0x1,!0x0,0x12c));_0xddd09e[_0x272382(0x183)](_0x382998=>{const _0x6d13d8=_0x272382;let _0x3d8bb7=_0x1e3f10[_0x6d13d8(0x152)](_0x20517d=>_0x6d13d8(0x155)==typeof _0x20517d?_0x382998[_0x6d13d8(0x172)]==_0x20517d:_0x382998[_0x6d13d8(0x172)]==_0x20517d[_0x6d13d8(0x172)]);_0x3d8bb7&&_0x3d8bb7['length']>0x0&&(_0x382998[_0x6d13d8(0x152)]='string'==typeof _0x3d8bb7[0x0]?_0x6d13d8(0x153):_0x3d8bb7[0x0]);});let _0x21c621={'rows':MetaApi[_0x272382(0x185)](!0x1),'pagination':MetaApi[_0x272382(0x18c)](),'columns':_0xddd09e,'sorters':[..._0x4c5024]};_0x21c621[_0x272382(0x16a)][_0x272382(0x161)]={'click':_0x272382(0x190),'dblclick':(_0x153294,_0x16348c,_0x169f95,_0x321cc4,_0x58eeb2,_0xd79e87)=>{this['selectRecord'](_0x321cc4);}},_0x21c621[_0x272382(0x16a)][_0x272382(0x17e)]=!0x1,this[_0x272382(0x188)]=_0x21c621,await super[_0x272382(0x150)]();}async['firstUpdated'](){const _0x3e223f=a0_0x2686ba;await super[_0x3e223f(0x191)]();}['render'](){const _0x2f23d1=a0_0x2686ba;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':'GRID'} auto-fetch
|
|
22
|
+
.fetchHandler=${this['fetchHandler'][_0x2f23d1(0x143)](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_0x146466=a0_0x4ae6;function a0_0x13f4(){const _0x4c4b77=['basicArgs','c
|
|
|
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[_0x2f23d1(0x15b)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x2f23d1(0x148)][_0x2f23d1(0x143)](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x2f23d1(0x15b)](_0x2f23d1(0x16b))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this['clickCancel'][_0x2f23d1(0x143)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x2f23d1(0x18d))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this['clickSelect'][_0x2f23d1(0x143)](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x2686ba(0x164)](){const _0x71cc60=a0_0x2686ba;return this[_0x71cc60(0x146)][_0x71cc60(0x15f)](_0x71cc60(0x180));}async[a0_0x2686ba(0x176)]({page:_0x31a045=0x0,limit:_0x3b8f18=0x0,sorters:_0x70639c=[],filters:_0x45e076=[]}){const _0x2d1ea2=a0_0x2686ba;let _0x3ec011=[...this[_0x2d1ea2(0x167)]];_0x45e076[_0x2d1ea2(0x183)](_0x1043c4=>{const _0x30c327=_0x2d1ea2;let _0x5d130a=_0x3ec011['filter'](_0x26549d=>_0x1043c4[_0x30c327(0x172)]==_0x26549d[_0x30c327(0x172)]);_0x5d130a&&_0x5d130a[_0x30c327(0x14e)]>0x0&&delete _0x3ec011[_0x1043c4[_0x30c327(0x172)]],_0x3ec011['push'](_0x1043c4);});let _0x57469f=ValueUtil[_0x2d1ea2(0x14a)](this[_0x2d1ea2(0x182)][_0x2d1ea2(0x168)]&&this['options'][_0x2d1ea2(0x168)][_0x2d1ea2(0x151)]||{},_0x2d1ea2(0x154),_0x2d1ea2(0x17b)),_0x3f45c2=Object['keys'](_0x57469f||{}),_0x2f4b2d=MetaApi['getSelectColumns'](this[_0x2d1ea2(0x188)]['columns'][_0x2d1ea2(0x152)](_0x58f933=>!_0x3f45c2['includes'](_0x58f933[_0x2d1ea2(0x172)])));return await MetaApi['searchByPagination'](this['options']['queryName'],_0x3ec011,_0x70639c,_0x31a045,_0x3b8f18,_0x2f4b2d);}async[a0_0x2686ba(0x148)](_0x195204){const _0x51c3cf=a0_0x2686ba;this['confirmCallback']&&this[_0x51c3cf(0x175)](null),closePopup(this);}async['clickCancel'](_0x5dc771){closePopup(this);}async[a0_0x2686ba(0x18e)](_0x4f2b60){const _0x412904=a0_0x2686ba;let _0x3891e5=this['grist'][_0x412904(0x14b)];_0x3891e5&&0x0!=_0x3891e5['length']?this[_0x412904(0x145)](_0x3891e5[0x0]):MetaApi[_0x412904(0x16c)](_0x412904(0x192),TermsUtil[_0x412904(0x18f)](_0x412904(0x144)));}async[a0_0x2686ba(0x145)](_0x4d8852){const _0x1f940d=a0_0x2686ba;this[_0x1f940d(0x175)]&&this[_0x1f940d(0x175)](_0x4d8852),closePopup(this);}}customElements[a0_0x2686ba(0x17f)](a0_0x2686ba(0x169),MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x338a92=a0_0x5554;function a0_0x1fd4(){const _0x5c5eb4=['after','filterForm','errors','1812pNjJIf','etcConfig','title','fetchHandler','grist','dispatchEvent','189712jywCiV','112851wJHNiW','pageUpdated','etc','excuteOpenPopupButtonClick','getAndParseMenuMeta','6419YLSiyz','data-changed','dataChangeEventHandler','params','934260vwMTsB','getParams','split','active','startsWith','openDynamicPopup','toLowerCase','runScenario','is_popup','menu','fieldChangeHandlers','parseBasicButtonConfigs','result','forEach','isEmpty','menuInfo','213848SLyqcJ','parseBasicFormConfigs','name','2186200xgkROt','getMenuMeta','keys','properties','parseBasicTabConfigs','isDetail','isElement','executeCallScenarioButtonClick','44727hTlODI','tTitle','parseBasicServiceConfigs','2JzIESX','570fpDNNq','isNotEmpty','isPage','parent_id','is_detail','detail','callScenario','connectedCallback','fetch'];a0_0x1fd4=function(){return _0x5c5eb4;};return a0_0x1fd4();}(function(_0x2938e8,_0x1d0e25){const _0x12ad53=a0_0x5554,_0x228bd8=_0x2938e8();while(!![]){try{const _0x353ea8=parseInt(_0x12ad53(0x129))/0x1+-parseInt(_0x12ad53(0x137))/0x2*(-parseInt(_0x12ad53(0x134))/0x3)+-parseInt(_0x12ad53(0x10f))/0x4+-parseInt(_0x12ad53(0x119))/0x5+-parseInt(_0x12ad53(0x144))/0x6*(parseInt(_0x12ad53(0x115))/0x7)+-parseInt(_0x12ad53(0x12c))/0x8+-parseInt(_0x12ad53(0x110))/0x9*(-parseInt(_0x12ad53(0x138))/0xa);if(_0x353ea8===_0x1d0e25)break;else _0x228bd8['push'](_0x228bd8['shift']());}catch(_0x1d58a9){_0x228bd8['push'](_0x228bd8['shift']());}}}(a0_0x1fd4,0x26d0f));function a0_0x5554(_0xcad072,_0x2c0385){const _0x1fd426=a0_0x1fd4();return a0_0x5554=function(_0x5554d1,_0x7ce1d2){_0x5554d1=_0x5554d1-0x10c;let _0xb0e60d=_0x1fd426[_0x5554d1];return _0xb0e60d;},a0_0x5554(_0xcad072,_0x2c0385);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x3a43ae=>class extends _0x3a43ae{static get[a0_0x338a92(0x12f)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x5561e8=>Boolean(_0x5561e8)},'is_popup':{'type':Boolean,'converter':_0x25f103=>Boolean(_0x25f103)},'is_activity':{'type':Boolean,'converter':_0x6ec84e=>Boolean(_0x6ec84e)},'is_readonly':{'type':Boolean,'converter':_0x480498=>Boolean(_0x480498)}};}get[a0_0x338a92(0x132)](){return!0x0===this['is_detail']||!0x0===this['is_popup'];}get[a0_0x338a92(0x131)](){const _0x420135=a0_0x338a92;return!ValueUtil[_0x420135(0x127)](this[_0x420135(0x13c)])&&this[_0x420135(0x13c)];}async['dataChangeEventHandler'](_0x3dd380){const _0x5875ca=a0_0x338a92;let {after:_0x499c12,before:_0x111058,column:_0x242936,record:_0x2ea8eb,row:_0x4b21bc}=_0x3dd380['detail'],_0x35983f=_0x242936['name'];if(Object['keys'](this['fieldChangeHandlers']||{})['includes'](_0x35983f)){let _0x220442,_0x5cfdee=(await MetaApi[_0x5875ca(0x13e)](void 0x0,this[_0x5875ca(0x123)][_0x35983f],{'columnName':_0x35983f,'column':_0x242936,'record':_0x2ea8eb,'after':_0x499c12,'before':_0x111058,'row':_0x4b21bc,'parentId':this[_0x5875ca(0x13b)]?this[_0x5875ca(0x13b)]:''},!0x1))['data'][_0x5875ca(0x120)][_0x5875ca(0x125)][_0x5875ca(0x125)];if(!_0x5cfdee)return;_0x220442=this[_0x5875ca(0x10d)]?this[_0x5875ca(0x10d)][_0x5875ca(0x10d)]['body']:this,Object[_0x5875ca(0x12e)](_0x5cfdee)[_0x5875ca(0x126)](_0x177bae=>{const _0x124b4c=_0x5875ca;_0x220442[_0x124b4c(0x10e)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x2ea8eb,'row':_0x4b21bc,'after':_0x5cfdee[_0x177bae],'before':_0x2ea8eb[_0x177bae],'column':{'name':_0x177bae}}}));});}this['dispatchEvent'](new CustomEvent(_0x5875ca(0x116),{'bubbles':!0x0,'composed':!0x0,'detail':_0x3dd380[_0x5875ca(0x13d)]}));}async[a0_0x338a92(0x13f)](){const _0x132c6c=a0_0x338a92;super[_0x132c6c(0x13f)]&&await super[_0x132c6c(0x13f)](),this['tagName'][_0x132c6c(0x11f)]()[_0x132c6c(0x11d)]('meta-form-')?this['addEventListener']('form-field-change',async _0xbb3bd8=>{await this['dataChangeEventHandler'](_0xbb3bd8);}):this['addEventListener']('field-change',async _0x5f45f9=>{const _0x2ae3b9=_0x132c6c;await this[_0x2ae3b9(0x117)](_0x5f45f9);});}async[a0_0x338a92(0x111)](_0x1148c8,_0x20ba58,_0x330e47){const _0x1d809c=a0_0x338a92;let _0x4e57fa=this['lifecycle']?.[_0x1d809c(0x118)]?this['lifecycle'][_0x1d809c(0x118)]:{};this[_0x1d809c(0x13a)]&&this[_0x1d809c(0x11c)]&&0x0==_0x330e47[_0x1d809c(0x11c)]&&ValueUtil[_0x1d809c(0x139)](_0x4e57fa)&&this['fetch']();}get['isPopup'](){const _0x5818a7=a0_0x338a92;return!ValueUtil[_0x5818a7(0x127)](this['is_popup'])&&this[_0x5818a7(0x121)];}get[a0_0x338a92(0x13a)](){const _0x242f86=a0_0x338a92;return!this['is_detail']&&!this[_0x242f86(0x121)];}async[a0_0x338a92(0x114)](){const _0x2942db=a0_0x338a92;let _0x20e0a2=await MetaApi[_0x2942db(0x12d)](this);_0x20e0a2&&(this[_0x2942db(0x128)]=_0x20e0a2[_0x2942db(0x122)],this[_0x2942db(0x145)]=_0x20e0a2[_0x2942db(0x112)],this['parseBasicGridConfigs']&&this['parseBasicGridConfigs'](_0x20e0a2),this[_0x2942db(0x136)]&&this['parseBasicServiceConfigs'](_0x20e0a2),this[_0x2942db(0x12a)]&&this[_0x2942db(0x12a)](_0x20e0a2),this['parseBasicTabConfigs']&&this[_0x2942db(0x130)](_0x20e0a2),this['parseBasicButtonConfigs']&&this[_0x2942db(0x124)](_0x20e0a2));}async[a0_0x338a92(0x140)](){const _0x3b224c=a0_0x338a92;ValueUtil[_0x3b224c(0x139)](this['grist'])?this['grist'][_0x3b224c(0x140)]():(ValueUtil['isNotEmpty'](this[_0x3b224c(0x142)])||this[_0x3b224c(0x10c)])&&await this[_0x3b224c(0x10c)]();}async[a0_0x338a92(0x113)](_0x31dcd8,_0xd5e499,_0x4017ab){const _0x4e4236=a0_0x338a92;let _0x3a8422=TermsUtil[_0x4e4236(0x135)](_0x31dcd8[_0x4e4236(0x146)]);ValueUtil[_0x4e4236(0x139)](_0x31dcd8['title_detail'])&&(_0x3a8422=_0x3a8422+'-'+ValueUtil[_0x4e4236(0x11a)](_0xd5e499,..._0x31dcd8['title_detail'][_0x4e4236(0x11b)]('.'))),MetaApi[_0x4e4236(0x11e)](_0x3a8422,_0x31dcd8,_0xd5e499,_0x4017ab);}async[a0_0x338a92(0x133)](_0x3ab7aa,_0x3ae0fc,_0x2320de){const _0x478015=a0_0x338a92;let _0x33da32=await MetaApi[_0x478015(0x13e)](_0x3ab7aa[_0x478015(0x12b)],_0x3ab7aa[_0x478015(0x12b)],_0x3ae0fc);!0x1!==_0x33da32&&!_0x33da32[_0x478015(0x143)]&&ValueUtil['isNotEmpty'](_0x3ab7aa[_0x478015(0x141)])&&_0x2320de();}['setParentId'](_0x2acec8){const _0x1e29eb=a0_0x338a92;this[_0x1e29eb(0x13b)]=_0x2acec8,this['fetch']();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
function a0_0x79b9(_0x5c3e79,_0x203f43){const _0xcc2477=a0_0xcc24();return a0_0x79b9=function(_0x79b904,_0x3ef16b){_0x79b904=_0x79b904-0x1b1;let _0x14b2b=_0xcc2477[_0x79b904];return _0x14b2b;},a0_0x79b9(_0x5c3e79,_0x203f43);}const a0_0x153cbb=a0_0x79b9;(function(_0x174413,_0x6064c8){const _0x49bea1=a0_0x79b9,_0x529aba=_0x174413();while(!![]){try{const _0x5cd07b=-parseInt(_0x49bea1(0x1ce))/0x1*(-parseInt(_0x49bea1(0x1c1))/0x2)+-parseInt(_0x49bea1(0x1c4))/0x3+parseInt(_0x49bea1(0x1eb))/0x4*(parseInt(_0x49bea1(0x1e3))/0x5)+-parseInt(_0x49bea1(0x1c2))/0x6*(-parseInt(_0x49bea1(0x1ca))/0x7)+-parseInt(_0x49bea1(0x1d1))/0x8*(-parseInt(_0x49bea1(0x1b8))/0x9)+parseInt(_0x49bea1(0x1b1))/0xa+-parseInt(_0x49bea1(0x1dc))/0xb*(parseInt(_0x49bea1(0x1d9))/0xc);if(_0x5cd07b===_0x6064c8)break;else _0x529aba['push'](_0x529aba['shift']());}catch(_0x260068){_0x529aba['push'](_0x529aba['shift']());}}}(a0_0xcc24,0xb3f00));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x102e4a=>class extends MetaButtonMixin(_0x102e4a){static get[a0_0x153cbb(0x1b6)](){const _0x1d079a=a0_0x153cbb;return MetaApi[_0x1d079a(0x1c0)]();}static get[a0_0x153cbb(0x1d0)](){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_0x153cbb(0x1d7)](){const _0x3da3a4=a0_0x153cbb;return this[_0x3da3a4(0x1c7)]?.[_0x3da3a4(0x1cd)](this[_0x3da3a4(0x1bc)]);}get['filterForm'](){const _0x11a00b=a0_0x153cbb;return this[_0x11a00b(0x1db)]?.[_0x11a00b(0x1cd)](this['filterFormId']);}get[a0_0x153cbb(0x1d6)](){const _0x2131dd=a0_0x153cbb;return MetaUiUtil[_0x2131dd(0x1d2)](this);}async['connectedCallback'](){const _0x35f655=a0_0x153cbb;this['gristId']=_0x35f655(0x1b9),this[_0x35f655(0x1e6)]='ox-filters-form',await this[_0x35f655(0x1e9)](),this[_0x35f655(0x1c9)]&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x35f655(0x1de)]=this[_0x35f655(0x1bb)]),super['connectedCallback']&&await super[_0x35f655(0x1ea)]();}async['firstUpdated'](){const _0x4add06=a0_0x153cbb;super[_0x4add06(0x1c8)]&&await super[_0x4add06(0x1c8)]();}async[a0_0x153cbb(0x1cf)](){const _0x4f2400=a0_0x153cbb;this[_0x4f2400(0x1d4)]&&await this['parseGristConfigs'](),super[_0x4f2400(0x1cf)]&&await super['pageInitialized']();}['render'](){const _0x30cee3=a0_0x153cbb;return html`
|
|
2
|
+
${MetaApi[_0x30cee3(0x1e1)](this)}
|
|
3
|
+
${this[_0x30cee3(0x1d4)]?html``:MetaUiUtil[_0x30cee3(0x1bd)](this)}
|
|
4
|
+
`;}[a0_0x153cbb(0x1be)](_0x26de6e){const _0x3eb7e7=a0_0x153cbb;this[_0x3eb7e7(0x1b3)]=_0x26de6e['grid'],this[_0x3eb7e7(0x1e0)]=_0x26de6e[_0x3eb7e7(0x1c5)],this[_0x3eb7e7(0x1cc)]=_0x26de6e['search'],this[_0x3eb7e7(0x1d3)]=_0x26de6e[_0x3eb7e7(0x1d3)];}async[a0_0x153cbb(0x1df)](){const _0x4dc35e=a0_0x153cbb;this[_0x4dc35e(0x1e5)]=await MetaApi[_0x4dc35e(0x1cb)](this);}async[a0_0x153cbb(0x1c6)](){const _0x58160e=a0_0x153cbb;await this[_0x58160e(0x1d7)][_0x58160e(0x1c6)]();}async['save'](){const _0x4a1167=a0_0x153cbb;let _0x10d900=MetaApi[_0x4a1167(0x1e7)](this[_0x4a1167(0x1d7)]);!!ValueUtil[_0x4a1167(0x1b2)](_0x10d900)&&await this[_0x4a1167(0x1b4)](_0x10d900)&&this[_0x4a1167(0x1c6)]();}async[a0_0x153cbb(0x1b5)](){const _0x1e50bc=a0_0x153cbb;let _0x5281fe=MetaApi['getSelectedIdList'](this['grist'],!0x0);return ValueUtil[_0x1e50bc(0x1b2)](_0x5281fe)?await this['findOne'](_0x5281fe[0x0]):{};}async['delete'](){const _0x1f1f87=a0_0x153cbb;let _0x2174f1=MetaApi[_0x1f1f87(0x1da)](this[_0x1f1f87(0x1d7)],!0x0);!!ValueUtil[_0x1f1f87(0x1b2)](_0x2174f1)&&await this[_0x1f1f87(0x1e2)](_0x2174f1)&&this[_0x1f1f87(0x1c6)]();}async[a0_0x153cbb(0x1ec)](){const _0x3d8aca=a0_0x153cbb;let _0x390ac1=TermsUtil[_0x3d8aca(0x1d5)](ValueUtil[_0x3d8aca(0x1e4)](this['menuInfo'],_0x3d8aca(0x1d8)));return await MetaApi[_0x3d8aca(0x1ba)](this[_0x3d8aca(0x1c9)],_0x390ac1,this[_0x3d8aca(0x1d7)]);}async['import'](){}async[a0_0x153cbb(0x1b7)](){const _0x2c7474=a0_0x153cbb;this['grist']&&(this[_0x2c7474(0x1d7)][_0x2c7474(0x1dd)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x16cbf3=a0_0x153cbb;let _0x2ae26b=this[_0x16cbf3(0x1d7)][_0x16cbf3(0x1ee)][_0x16cbf3(0x1c3)];return _0x2ae26b=JSON['parse'](JSON[_0x16cbf3(0x1ed)](_0x2ae26b)),_0x2ae26b[_0x16cbf3(0x1e8)](_0x3eb4ce=>{const _0x5d2f62=_0x16cbf3;Object[_0x5d2f62(0x1bf)](_0x3eb4ce)[_0x5d2f62(0x1e8)](_0x5130d8=>{const _0x36d42e=_0x5d2f62;_0x5130d8[_0x36d42e(0x1ef)]('__')&&delete _0x3eb4ce[_0x5130d8];});}),_0x2ae26b;}};function a0_0xcc24(){const _0x5941e8=['4uykWGb','194262KWQOrY','records','581367PrcoGS','grid_column','fetch','renderRoot','firstUpdated','isElement','77yzGmIg','parseGridConfigSet','searchConfig','querySelector','214027jNjOxy','pageInitialized','properties','53056KJMqHj','getContextObject','gridEmphasized','isPage','tTitle','context','grist','title','132ltXIMt','getSelectedIdList','shadowRoot','1325456jarzgK','data','dataSet','parseGristConfigs','gridColumnConfig','getBasicGristHtml','deleteByIds','6410XIigms','getParams','gristConfigSet','filterFormId','patchesForUpdateMultiple','forEach','getAndParseMenuMeta','connectedCallback','392aGGSyn','export','stringify','___data','startsWith','7561840exHlYB','isNotEmpty','gridConfig','updateMultiple','find','styles','clear','801FTocVc','ox-grist','exportableData','activityDataSet','gristId','getButtonContainer','parseBasicGridConfigs','keys','getBasicGristStyles'];a0_0xcc24=function(){return _0x5941e8;};return a0_0xcc24();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2ecaa9=a0_0x45de;function a0_0x45de(_0x20b31e,_0x545e63){const _0x37ac83=a0_0x37ac();return a0_0x45de=function(_0x45de0a,_0x30a18e){_0x45de0a=_0x45de0a-0x159;let _0x541d76=_0x37ac83[_0x45de0a];return _0x541d76;},a0_0x45de(_0x20b31e,_0x545e63);}function a0_0x37ac(){const _0x1c77a4=['6ZnleYh','isButtonExist','getContextButtons','4652524iefQwk','17017814UmSGWm','3246955HwSyML','3wkWRqA','169858TLJgHK','buttonConfig','customButtonHandler','useButtonAdd','267239gQbWEe','isPage','properties','useButtonExport','1JPXwAa','152DsjFtP','getBasicButtonHandler','import','getCustomButtonContainerStyle','export','gristButtonHandler','getButtonContainer','2690334MvYmBA','2472HDGTqy','9JKFXSY','1014820NzgfYF','add'];a0_0x37ac=function(){return _0x1c77a4;};return a0_0x37ac();}(function(_0x23fff6,_0x45c0ba){const _0x3aef32=a0_0x45de,_0x5c5893=_0x23fff6();while(!![]){try{const _0x260cf1=-parseInt(_0x3aef32(0x16e))/0x1*(parseInt(_0x3aef32(0x15a))/0x2)+-parseInt(_0x3aef32(0x165))/0x3*(-parseInt(_0x3aef32(0x162))/0x4)+-parseInt(_0x3aef32(0x164))/0x5*(-parseInt(_0x3aef32(0x15f))/0x6)+-parseInt(_0x3aef32(0x16a))/0x7*(parseInt(_0x3aef32(0x16f))/0x8)+-parseInt(_0x3aef32(0x15c))/0x9*(parseInt(_0x3aef32(0x15d))/0xa)+-parseInt(_0x3aef32(0x163))/0xb+-parseInt(_0x3aef32(0x15b))/0xc*(-parseInt(_0x3aef32(0x166))/0xd);if(_0x260cf1===_0x45c0ba)break;else _0x5c5893['push'](_0x5c5893['shift']());}catch(_0x1d1c11){_0x5c5893['push'](_0x5c5893['shift']());}}}(a0_0x37ac,0xbfa88));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x500f65=>class extends MetaServiceMixin(_0x500f65){static get[a0_0x2ecaa9(0x16c)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x2ecaa9(0x172)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x2ecaa9(0x161)](){return MetaUiUtil['getContextButtons'](this);}[a0_0x2ecaa9(0x159)](){const _0x1d462b=a0_0x2ecaa9;return this[_0x1d462b(0x16b)]?html``:MetaUiUtil[_0x1d462b(0x159)](this);}async[a0_0x2ecaa9(0x170)](_0x2a2992,_0x5da835,_0x276eed){return await MetaUiUtil['getButtonActionHandler'](this,_0x2a2992,_0x5da835,_0x276eed);}async[a0_0x2ecaa9(0x168)](_0x142241){await MetaUiUtil['customButtonHandler'](this,_0x142241);}async['gristButtonHandler'](_0x3fa127,_0x49bce1){const _0x27db97=a0_0x2ecaa9;await MetaUiUtil[_0x27db97(0x174)](this,_0x3fa127,_0x49bce1);}['parseBasicButtonConfigs'](_0x21396b){const _0x4e5ba6=a0_0x2ecaa9;this[_0x4e5ba6(0x167)]=_0x21396b['button'],this['useButtonImport']=MetaUiUtil[_0x4e5ba6(0x160)](this[_0x4e5ba6(0x167)],_0x4e5ba6(0x171)),this[_0x4e5ba6(0x16d)]=MetaUiUtil[_0x4e5ba6(0x160)](this[_0x4e5ba6(0x167)],_0x4e5ba6(0x173)),this[_0x4e5ba6(0x169)]=MetaUiUtil[_0x4e5ba6(0x160)](this['buttonConfig'],_0x4e5ba6(0x15e));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x57131d=a0_0x3b14;(function(_0x4d52c6,_0x400776){const _0x42ece9=a0_0x3b14,_0x166f7a=_0x4d52c6();while(!![]){try{const _0x2be65a=-parseInt(_0x42ece9(0x104))/0x1*(parseInt(_0x42ece9(0xff))/0x2)+-parseInt(_0x42ece9(0xe9))/0x3*(parseInt(_0x42ece9(0x110))/0x4)+parseInt(_0x42ece9(0xee))/0x5*(parseInt(_0x42ece9(0x10a))/0x6)+-parseInt(_0x42ece9(0xda))/0x7+parseInt(_0x42ece9(0x108))/0x8+parseInt(_0x42ece9(0x11c))/0x9*(-parseInt(_0x42ece9(0x126))/0xa)+parseInt(_0x42ece9(0x123))/0xb;if(_0x2be65a===_0x400776)break;else _0x166f7a['push'](_0x166f7a['shift']());}catch(_0x58eb36){_0x166f7a['push'](_0x166f7a['shift']());}}}(a0_0x2680,0x5737f));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_0x3b14(_0x4ca7c3,_0xa4bb4a){const _0x268008=a0_0x2680();return a0_0x3b14=function(_0x3b1484,_0x246ade){_0x3b1484=_0x3b1484-0xd8;let _0x345580=_0x268008[_0x3b1484];return _0x345580;},a0_0x3b14(_0x4ca7c3,_0xa4bb4a);}function a0_0x2680(){const _0x1293aa=['isElement','showAlertPopup','dirtyData','editable','code-input','parseFormConfigSet','5466175DFBDwc','isEquals','activity','1070PbgLLi','mandatory','styles','keys','dataSet','function','validation','Escape','properties','check-mandatory-field','isNotEmpty','currentTarget','getContextObject','filter','key','clear','focus','currentData','render','1001994qMHtDJ','parseFormConfigs','patchData','firstUpdated','formColumnConfig','getData','removeAttribute','isEmpty','isPage','keydown','__seq__','orgData','addEventListener','OX-GRID-FIELD','after','3tOpzjW','stopPropagation','target','Esc','forEach','55lWUHBX','context','button','cuFlag','getAndParseMenuMeta','fetch','activityDataSet','save','connectedCallback','tLabel','updateMultiple','before','tText','field-change','startsWith','name','getBasicFormStyles','180058BiWDPD','confirm','detail','Enter','type','6OsjNOX','info','tagName','removeGarbageData','3865024zprThz','column','300630AHgIJa','parseBasicFormConfigs','record','header','__dirty__','findOne','202644OICzgy','formRenderConfig','map','pageInitialized','__dirtyfields__','__origin__','click','parent_id','renderRoot','text.NOTHING_CHANGED','form-field-change','editing','37008pvvchQ'];a0_0x2680=function(){return _0x1293aa;};return a0_0x2680();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x4673f9=>class extends MetaButtonMixin(_0x4673f9){static get[a0_0x57131d(0x128)](){const _0xa17efa=a0_0x57131d;return MetaApi[_0xa17efa(0xfe)]();}static get[a0_0x57131d(0x12e)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x57131d(0xef)](){const _0x4b3392=a0_0x57131d;return MetaUiUtil[_0x4b3392(0x132)](this);}async[a0_0x57131d(0xf6)](){const _0x13b2f9=a0_0x57131d;await this[_0x13b2f9(0xf2)](),this[_0x13b2f9(0x11d)]&&await this[_0x13b2f9(0xdb)](),this[_0x13b2f9(0xf4)]&&(this[_0x13b2f9(0x12a)]=this[_0x13b2f9(0xf4)]),!0x0!==this['is_activity']||this[_0x13b2f9(0x117)]||(this[_0x13b2f9(0x117)]=_0x13b2f9(0x125)),super[_0x13b2f9(0xf6)]&&await super[_0x13b2f9(0xf6)](),this[_0x13b2f9(0x11d)]&&await this[_0x13b2f9(0xf3)](),this['renderRoot'][_0x13b2f9(0xe6)](_0x13b2f9(0xe3),_0x5aa21f=>{const _0x52092f=_0x13b2f9;switch(_0x5aa21f[_0x52092f(0x134)]){case _0x52092f(0xec):case _0x52092f(0x12d):case _0x52092f(0x102):this['focus'](),this[_0x52092f(0x131)]&&this[_0x52092f(0x131)][_0x52092f(0xe0)](_0x52092f(0x11b)),this[_0x52092f(0x131)]=null;}}),this[_0x13b2f9(0x118)]['addEventListener'](_0x13b2f9(0x116),_0x146bcc=>{const _0x26603b=_0x13b2f9;_0x146bcc[_0x26603b(0xea)]();let _0x7caf6b=_0x146bcc[_0x26603b(0xeb)];if(this[_0x26603b(0x131)]&&(this[_0x26603b(0x136)](),this[_0x26603b(0x131)]['removeAttribute'](_0x26603b(0x11b))),_0x26603b(0xe7)!==_0x7caf6b[_0x26603b(0x106)]||!_0x7caf6b[_0x26603b(0x109)]['record'][_0x26603b(0x120)])return this[_0x26603b(0x136)](),void(this[_0x26603b(0x131)]=null);this[_0x26603b(0x131)]=_0x7caf6b,_0x7caf6b['setAttribute'](_0x26603b(0x11b),'true');}),this[_0x13b2f9(0xe6)](_0x13b2f9(0xfb),_0x370d2f=>{const _0x4912a6=_0x13b2f9;var {after:_0x442aa6,before:_0x103c30,column:_0x4989d3,record:_0x5bf530,row:_0x4136a1}=_0x370d2f[_0x4912a6(0x101)];if(ValueUtil[_0x4912a6(0x124)](_0x442aa6,_0x103c30))return;var _0x30a891=_0x4989d3[_0x4912a6(0x12c)];if(_0x30a891&&_0x4912a6(0x12b)==typeof _0x30a891&&!_0x30a891['call'](this,_0x442aa6,_0x103c30,_0x5bf530,_0x4989d3))return;let _0x4066fe=_0x4989d3[_0x4912a6(0xfd)];_0x5bf530[_0x4066fe]=_0x442aa6,_0x5bf530[_0x4912a6(0x114)]=_0x5bf530[_0x4912a6(0x114)]||{},_0x5bf530[_0x4912a6(0x115)]=_0x5bf530[_0x4912a6(0x115)]||{},_0x5bf530[_0x4912a6(0x114)][_0x4066fe]={'before':_0x5bf530[_0x4912a6(0x115)][_0x4066fe],'after':_0x5bf530[_0x4066fe]},ValueUtil[_0x4912a6(0x124)](_0x5bf530['__dirtyfields__'][_0x4066fe][_0x4912a6(0xf9)],_0x5bf530[_0x4912a6(0x114)][_0x4066fe][_0x4912a6(0xe8)])&&delete _0x5bf530['__dirtyfields__'][_0x4066fe],ValueUtil[_0x4912a6(0x130)](_0x5bf530[_0x4912a6(0x114)])?_0x5bf530[_0x4912a6(0x10e)]='M':_0x5bf530['__dirty__']='',this[_0x4912a6(0x10c)]={..._0x5bf530},this['dispatchEvent'](new CustomEvent(_0x4912a6(0x11a),{'bubbles':!0x0,'composed':!0x0,'detail':_0x370d2f[_0x4912a6(0x101)]}));});}async[a0_0x57131d(0xdd)](){const _0x1af074=a0_0x57131d;super['firstUpdated']&&await super[_0x1af074(0xdd)]();}async[a0_0x57131d(0x113)](){const _0x188eae=a0_0x57131d;this[_0x188eae(0xe2)]&&await this[_0x188eae(0xdb)](),super['pageInitialized']&&await super[_0x188eae(0x113)](),this[_0x188eae(0xe2)]&&await this[_0x188eae(0xf3)]();}[a0_0x57131d(0xd9)](){return MetaApi['getBasicFormHtml'](this);}[a0_0x57131d(0x10b)](_0x43db87){const _0x567603=a0_0x57131d;this['formColumnConfig']=_0x43db87['grid_column'],this[_0x567603(0x111)]=_0x43db87['form'],_0x43db87[_0x567603(0xf0)]=_0x43db87[_0x567603(0xf0)][_0x567603(0x133)](_0x21df79=>_0x567603(0xf5)==_0x21df79[_0x567603(0xfd)]);}async[a0_0x57131d(0xdb)](){const _0x13a67f=a0_0x57131d;this['formConfigSet']=await MetaApi[_0x13a67f(0x122)](this);}get[a0_0x57131d(0xe5)](){const _0x2bd414=a0_0x57131d;return this[_0x2bd414(0x107)](this[_0x2bd414(0x10c)][_0x2bd414(0x115)]);}get['dirtyData'](){const _0x3ad838=a0_0x57131d;if(ValueUtil['isEmpty']((this[_0x3ad838(0x10c)]||{})[_0x3ad838(0x114)]))return{};let _0x5e5c25={};return Object['entries'](this[_0x3ad838(0x10c)][_0x3ad838(0x114)])['map'](([_0x28510b,_0x330200])=>{const _0x3c388f=_0x3ad838;0x0==_0x28510b[_0x3c388f(0xfc)]('__')&&(_0x5e5c25[_0x28510b]=_0x330200[_0x3c388f(0xe8)]);}),_0x5e5c25;}get[a0_0x57131d(0xd8)](){const _0x5951be=a0_0x57131d;return this[_0x5951be(0x107)](this[_0x5951be(0x10c)]);}[a0_0x57131d(0x107)](_0x2b84b3){const _0x4e5413=a0_0x57131d;let _0x3bcbc8={};if(_0x2b84b3)return Object['entries'](_0x2b84b3)[_0x4e5413(0x112)](([_0x336c35,_0x497d07])=>{const _0x3a031d=_0x4e5413;0x0==_0x336c35[_0x3a031d(0xfc)]('__')&&(_0x3bcbc8[_0x336c35]=_0x497d07);}),_0x3bcbc8;}get[a0_0x57131d(0xdc)](){const _0x47801c=a0_0x57131d;let _0xd774c6=this[_0x47801c(0x11f)],_0x26ed87=this[_0x47801c(0x10c)],_0x5d177c=(this[_0x47801c(0xde)]||[])[_0x47801c(0x133)](_0x3d53cc=>_0x47801c(0x121)===_0x3d53cc[_0x47801c(0x103)])['map'](_0x1d1a3e=>_0x1d1a3e[_0x47801c(0xfd)]);if(!ValueUtil[_0x47801c(0xe1)](_0xd774c6))return ValueUtil[_0x47801c(0x130)](_0x26ed87['id'])?(_0xd774c6['id']=_0x26ed87['id'],_0xd774c6[_0x47801c(0xf1)]='M'):_0xd774c6[_0x47801c(0xf1)]='+',Object[_0x47801c(0x129)](_0xd774c6)[_0x47801c(0xed)](_0x4604db=>{'object'==typeof _0xd774c6[_0x4604db]&&0x0==_0x5d177c['includes'](_0x4604db)&&(_0xd774c6[_0x4604db]={'id':_0xd774c6[_0x4604db]['id']});}),[_0xd774c6];}async[a0_0x57131d(0xf3)](){const _0x99576e=a0_0x57131d;if(ValueUtil['isEmpty'](this['parent_id']))return;let _0x1ded21=await this[_0x99576e(0x10f)](this[_0x99576e(0x117)]);_0x1ded21[_0x99576e(0xe4)]=0x1;let _0x3a28fe={};Object['assign'](_0x3a28fe,_0x1ded21),_0x1ded21['__origin__']=_0x3a28fe,this[_0x99576e(0x10c)]={..._0x1ded21};}async[a0_0x57131d(0xf5)](){const _0x2d8e0a=a0_0x57131d;let _0x52778e=this[_0x2d8e0a(0xdc)];if(ValueUtil[_0x2d8e0a(0xe1)](_0x52778e))return void MetaApi[_0x2d8e0a(0x11e)]('title.info',_0x2d8e0a(0x119));let _0x36c551={};(this[_0x2d8e0a(0xde)]||[])[_0x2d8e0a(0x133)](_0x4c05b4=>!0x0===_0x4c05b4[_0x2d8e0a(0x127)])[_0x2d8e0a(0xed)](_0x5e689d=>{const _0x10e8e=_0x2d8e0a;_0x36c551[_0x5e689d[_0x10e8e(0xfd)]]=_0x5e689d[_0x10e8e(0x10d)];});let _0x303226=this[_0x2d8e0a(0xd8)];for(let _0x10f032 in _0x36c551)if(void 0x0===_0x303226[_0x10f032]||''==_0x303226[_0x10f032])return void UiUtil[_0x2d8e0a(0x11e)]('text.check-mandatory',TermsUtil[_0x2d8e0a(0xfa)](_0x2d8e0a(0x12f),{'x':TermsUtil[_0x2d8e0a(0xf7)](_0x36c551[_0x10f032])}),_0x2d8e0a(0x105),_0x2d8e0a(0x100));let _0x3960ed=await this[_0x2d8e0a(0xf8)](_0x52778e);return _0x3960ed&&await this[_0x2d8e0a(0xf3)](),_0x3960ed;}async[a0_0x57131d(0x135)](){const _0xb4012b=a0_0x57131d;this[_0xb4012b(0x10c)]&&(this[_0xb4012b(0x10c)]={});}[a0_0x57131d(0xdf)](){const _0x5eca58=a0_0x57131d;return this[_0x5eca58(0xd8)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x39a301=a0_0x28dd;(function(_0x3db1b9,_0x4d6e81){const _0x554ccc=a0_0x28dd,_0x5ed0f3=_0x3db1b9();while(!![]){try{const _0x3c4dd9=-parseInt(_0x554ccc(0x1c1))/0x1+parseInt(_0x554ccc(0x184))/0x2*(parseInt(_0x554ccc(0x1a0))/0x3)+parseInt(_0x554ccc(0x19d))/0x4*(-parseInt(_0x554ccc(0x198))/0x5)+parseInt(_0x554ccc(0x191))/0x6+parseInt(_0x554ccc(0x18f))/0x7*(parseInt(_0x554ccc(0x1b8))/0x8)+parseInt(_0x554ccc(0x1a1))/0x9+-parseInt(_0x554ccc(0x1a3))/0xa;if(_0x3c4dd9===_0x4d6e81)break;else _0x5ed0f3['push'](_0x5ed0f3['shift']());}catch(_0x3adf0e){_0x5ed0f3['push'](_0x5ed0f3['shift']());}}}(a0_0x4074,0x6ba04));function a0_0x28dd(_0x83ec87,_0x1b6e1d){const _0x407450=a0_0x4074();return a0_0x28dd=function(_0x28ddcc,_0x32689a){_0x28ddcc=_0x28ddcc-0x180;let _0x36c5c7=_0x407450[_0x28ddcc];return _0x36c5c7;},a0_0x28dd(_0x83ec87,_0x1b6e1d);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x4074(){const _0x4e3824=['isElement','startsWith','detailElement','172610bZPcSj','useFilterForm','filterFormId','connectedCallback','gridEmphasized','8uerBRk','getData','styles','3606Oeygwi','7515846LxLXWv','gristConfigSet','19538060BitMoS','save','getContextObject','clear','exportable','ox-grist','searchFields','parse','useMasterFilterForm','operator','meta-tab-element','title','search','pageInitialized','importable','push','parseBasicGridConfigs','keys','delete','render','main','56PKWUFt','export','grid','filter','actions','patchesForUpdateMultiple','activityDataSet','type','renderRoot','370007ddIiXd','filterForm','options','gridColumnConfig','value','searchConfig','stringify','map','gridConfig','getSelectedIdList','firstUpdated','isNotEmpty','context','getAndParseMenuMeta','querySelector','fetch','1132DgIvLT','record','deleteByIds','getGristTabHtml','columns','gristId','beforeFetch','name','grid_column','parseGristConfigs','find','780269kSUvtr','records','3227988YKSXux','grist','menuInfo','#detail'];a0_0x4074=function(){return _0x4e3824;};return a0_0x4074();}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=_0x573b55=>class extends MetaButtonMixin(_0x573b55){static get[a0_0x39a301(0x19f)](){return MetaApi['getBasicGristTabStyles']();}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_0x39a301(0x192)](){const _0x47b762=a0_0x39a301;return this[_0x47b762(0x1c0)][_0x47b762(0x182)](this['gristId']);}get[a0_0x39a301(0x1c2)](){const _0x2dcde9=a0_0x39a301;return this['shadowRoot']?.['querySelector'](this[_0x2dcde9(0x19a)]);}get[a0_0x39a301(0x197)](){const _0x4b0f9b=a0_0x39a301;return this['shadowRoot']['querySelector'](_0x4b0f9b(0x194));}get[a0_0x39a301(0x180)](){const _0x40a21c=a0_0x39a301;let _0x17ede5=MetaUiUtil[_0x40a21c(0x1a5)](this);return _0x17ede5[_0x40a21c(0x1bc)]&&delete _0x17ede5[_0x40a21c(0x1bc)],_0x17ede5[_0x40a21c(0x1a7)]&&delete _0x17ede5[_0x40a21c(0x1a7)],_0x17ede5[_0x40a21c(0x1b1)]&&delete _0x17ede5['importable'],_0x17ede5;}async[a0_0x39a301(0x19b)](){const _0x56da92=a0_0x39a301;this[_0x56da92(0x189)]=_0x56da92(0x1a8),this[_0x56da92(0x19a)]='ox-filters-form-base',await this[_0x56da92(0x181)](),this[_0x56da92(0x195)]&&await this['parseGristConfigs'](),this[_0x56da92(0x1be)]&&(this['dataSet']=(this[_0x56da92(0x1be)]||{})[_0x56da92(0x1b7)]),super[_0x56da92(0x19b)]&&await super['connectedCallback']();}async[a0_0x39a301(0x1cb)](){const _0x461520=a0_0x39a301;super[_0x461520(0x1cb)]&&await super['firstUpdated']();}async[a0_0x39a301(0x1b0)](){const _0x278597=a0_0x39a301;this['isPage']&&await this[_0x278597(0x18d)](),super['pageInitialized']&&await super[_0x278597(0x1b0)]();}[a0_0x39a301(0x1b6)](){const _0x119fc6=a0_0x39a301;return MetaApi[_0x119fc6(0x187)](this);}[a0_0x39a301(0x1b3)](_0x4daf74){const _0x102c4f=a0_0x39a301;this[_0x102c4f(0x1c9)]=_0x4daf74[_0x102c4f(0x1ba)],this[_0x102c4f(0x1c4)]=_0x4daf74[_0x102c4f(0x18c)],this[_0x102c4f(0x1c6)]=_0x4daf74['search'],this[_0x102c4f(0x19c)]=_0x4daf74['gridEmphasized'];}async[a0_0x39a301(0x18d)](){const _0x1ad2d8=a0_0x39a301;this[_0x1ad2d8(0x1a2)]=await MetaApi['parseGridConfigSet'](this),this[_0x1ad2d8(0x1ab)]=!0x0===this[_0x1ad2d8(0x199)],this[_0x1ad2d8(0x199)]=!0x1,this['searchFieldValues']=[],this[_0x1ad2d8(0x1a9)]=this[_0x1ad2d8(0x1a2)][_0x1ad2d8(0x188)][_0x1ad2d8(0x1bb)](_0x3d91e8=>_0x3d91e8[_0x1ad2d8(0x1bb)])[_0x1ad2d8(0x1c8)](_0x3b04f8=>{const _0x202b60=_0x1ad2d8;let _0x180974={'name':_0x3b04f8['name'],'type':_0x202b60(0x1af)===_0x3b04f8[_0x202b60(0x1bb)][_0x202b60(0x1ac)]?_0x202b60(0x1af):_0x3b04f8[_0x202b60(0x1bf)],'label':_0x3b04f8['header'],'operator':_0x3b04f8[_0x202b60(0x1bb)]['operator']?_0x3b04f8['filter'][_0x202b60(0x1ac)]:'eq'};return _0x3b04f8[_0x202b60(0x1bb)][_0x202b60(0x1c3)]&&(_0x180974['options']=_0x3b04f8['filter']['options']),_0x3b04f8[_0x202b60(0x185)][_0x202b60(0x1c3)]&&(_0x180974[_0x202b60(0x1c3)]=_0x3b04f8[_0x202b60(0x185)][_0x202b60(0x1c3)]),_0x3b04f8[_0x202b60(0x1bb)][_0x202b60(0x1c5)]&&this['searchFieldValues'][_0x202b60(0x1b2)]({'name':_0x180974[_0x202b60(0x18b)],'operator':_0x180974[_0x202b60(0x1ac)],'value':_0x3b04f8[_0x202b60(0x1bb)][_0x202b60(0x1c5)]}),delete _0x3b04f8[_0x202b60(0x1bb)],_0x180974;});}async[a0_0x39a301(0x183)](){const _0x1c137b=a0_0x39a301;await this['grist'][_0x1c137b(0x183)]();}async[a0_0x39a301(0x18a)]({page:_0x59eb35=0x0,limit:_0x54711c=0x0,sortings:_0x4c348f=[],filters:_0x15cf97=[]}){const _0x15dc8d=a0_0x39a301;let _0x5161da=this['renderRoot']['querySelector'](_0x15dc8d(0x1ad));return await _0x5161da[_0x15dc8d(0x1a6)](),!0x0;}async[a0_0x39a301(0x1a4)](){const _0x58619e=a0_0x39a301;let _0x247919=MetaApi[_0x58619e(0x1bd)](this['grist']);!!ValueUtil[_0x58619e(0x1cc)](_0x247919)&&await this['updateMultiple'](_0x247919)&&this[_0x58619e(0x183)]();}async[a0_0x39a301(0x18e)](){const _0x35e958=a0_0x39a301;let _0x4d9bd2=MetaApi[_0x35e958(0x1ca)](this[_0x35e958(0x192)],!0x0);return ValueUtil[_0x35e958(0x1cc)](_0x4d9bd2)?await this['findOne'](_0x4d9bd2[0x0]):{};}async[a0_0x39a301(0x1b5)](){const _0x4f3752=a0_0x39a301;let _0x53c1d3=MetaApi[_0x4f3752(0x1ca)](this[_0x4f3752(0x192)],!0x0);!!ValueUtil['isNotEmpty'](_0x53c1d3)&&await this[_0x4f3752(0x186)](_0x53c1d3)&&this[_0x4f3752(0x183)]();}async[a0_0x39a301(0x1b9)](){const _0x586e2d=a0_0x39a301;let _0xeb44f8=TermsUtil['tTitle'](ValueUtil['getParams'](this[_0x586e2d(0x193)],_0x586e2d(0x1ae)));return await MetaApi['exportableData'](this[_0x586e2d(0x195)],_0xeb44f8,this['grist']);}async['import'](){}[a0_0x39a301(0x19e)](){const _0x20393b=a0_0x39a301;let _0x4b9c7a=this[_0x20393b(0x192)]['___data'][_0x20393b(0x190)];return _0x4b9c7a=JSON[_0x20393b(0x1aa)](JSON[_0x20393b(0x1c7)](_0x4b9c7a)),_0x4b9c7a['forEach'](_0x29e4cb=>{const _0x5e539e=_0x20393b;Object[_0x5e539e(0x1b4)](_0x29e4cb)['forEach'](_0x42a35e=>{const _0x181ab4=_0x5e539e;_0x42a35e[_0x181ab4(0x196)]('__')&&delete _0x29e4cb[_0x42a35e];});}),{'main':_0x4b9c7a,'detail':this['renderRoot']['querySelector'](_0x20393b(0x1ad))[_0x20393b(0x19e)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2ee4f9=a0_0x133b;(function(_0x2fbaed,_0x2694d5){const _0x399d15=a0_0x133b,_0x558e41=_0x2fbaed();while(!![]){try{const _0x16c4ee=parseInt(_0x399d15(0x1c9))/0x1*(parseInt(_0x399d15(0x199))/0x2)+parseInt(_0x399d15(0x18c))/0x3+parseInt(_0x399d15(0x1c1))/0x4*(parseInt(_0x399d15(0x1a7))/0x5)+parseInt(_0x399d15(0x1b3))/0x6+parseInt(_0x399d15(0x1b0))/0x7*(-parseInt(_0x399d15(0x1c5))/0x8)+parseInt(_0x399d15(0x18a))/0x9*(parseInt(_0x399d15(0x1b8))/0xa)+-parseInt(_0x399d15(0x1b4))/0xb*(parseInt(_0x399d15(0x19a))/0xc);if(_0x16c4ee===_0x2694d5)break;else _0x558e41['push'](_0x558e41['shift']());}catch(_0x275a0b){_0x558e41['push'](_0x558e41['shift']());}}}(a0_0x5d5d,0x38270));import{html}from'lit';function a0_0x133b(_0x3cad58,_0xfc71bb){const _0x5d5dba=a0_0x5d5d();return a0_0x133b=function(_0x133b43,_0x902c9d){_0x133b43=_0x133b43-0x18a;let _0x6cf8b4=_0x5d5dba[_0x133b43];return _0x6cf8b4;},a0_0x133b(_0x3cad58,_0xfc71bb);}function a0_0x5d5d(){const _0x4d3352=['render','type','filterForm','208943gaeMYJ','grid','properties','1778010GDGddM','3863618VTEqtE','ox-filters-form-base','map','importable','33480GGxzey','columns','getData','styles','useMasterFilterForm','clear','record','exportable','context','38488OsWpda','operator','push','isPage','104oNcWfl','parseBasicGridConfigs','parseGridConfigSet','gristId','1CKzMvb','buttonConfig','useButtonImport','getAndParseMenuMeta','306chYqdy','masterElement','270771qpyIJG','querySelector','isElement','options','dataSet','pageInitialized','parseGristConfigs','useFilterForm','gridColumnConfig','filterFormId','getMainGrist','search','actions','206430axeahM','12uonvIF','getMainTabHtml','header','fetch','searchFieldValues','activityDataSet','connectedCallback','name','value','gridConfig','gristConfigSet','useButtonExport','grid_column','190gcEfFn','main','firstUpdated','beforeFetch','filter','grist'];a0_0x5d5d=function(){return _0x4d3352;};return a0_0x5d5d();}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 MetaMainTabMixin=_0x6425c=>class extends MetaButtonMixin(_0x6425c){static get[a0_0x2ee4f9(0x1bb)](){return MetaApi['getBasicMainTabStyles']();}static get[a0_0x2ee4f9(0x1b2)](){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_0x2ee4f9(0x1ac)](){const _0x570c8d=a0_0x2ee4f9;return this[_0x570c8d(0x18b)][_0x570c8d(0x196)]();}get[a0_0x2ee4f9(0x1af)](){const _0x466272=a0_0x2ee4f9;return this['shadowRoot']?.[_0x466272(0x18d)](this[_0x466272(0x195)]);}get[a0_0x2ee4f9(0x1c0)](){const _0x564ca6=a0_0x2ee4f9;let _0x270e4d=MetaUiUtil['getContextObject'](this);return _0x270e4d['actions']&&delete _0x270e4d[_0x564ca6(0x198)],_0x270e4d[_0x564ca6(0x1bf)]&&delete _0x270e4d['exportable'],_0x270e4d[_0x564ca6(0x1b7)]&&delete _0x270e4d[_0x564ca6(0x1b7)],_0x270e4d;}async['connectedCallback'](){const _0x2b7bfe=a0_0x2ee4f9;this[_0x2b7bfe(0x1c8)]='ox-grist',this[_0x2b7bfe(0x195)]=_0x2b7bfe(0x1b5),await this[_0x2b7bfe(0x1cc)](),this[_0x2b7bfe(0x18e)]&&await this[_0x2b7bfe(0x192)](),this[_0x2b7bfe(0x19f)]&&(this[_0x2b7bfe(0x190)]=(this[_0x2b7bfe(0x19f)]||{})[_0x2b7bfe(0x1a8)]),super[_0x2b7bfe(0x1a0)]&&await super[_0x2b7bfe(0x1a0)]();}async['firstUpdated'](){const _0x331c3d=a0_0x2ee4f9;super[_0x331c3d(0x1a9)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x159b12=a0_0x2ee4f9;this[_0x159b12(0x1c4)]&&await this[_0x159b12(0x192)](),super[_0x159b12(0x191)]&&await super[_0x159b12(0x191)]();}[a0_0x2ee4f9(0x1ad)](){const _0x1f090e=a0_0x2ee4f9;return MetaApi[_0x1f090e(0x19b)](this);}[a0_0x2ee4f9(0x1c6)](_0x5b61ca){const _0xf7112a=a0_0x2ee4f9;this[_0xf7112a(0x1a3)]=_0x5b61ca[_0xf7112a(0x1b1)],this[_0xf7112a(0x194)]=_0x5b61ca[_0xf7112a(0x1a6)],this['searchConfig']=_0x5b61ca[_0xf7112a(0x197)],this['gridEmphasized']=_0x5b61ca['gridEmphasized'];}async[a0_0x2ee4f9(0x192)](){const _0x54cc5b=a0_0x2ee4f9;this['gristConfigSet']=await MetaApi[_0x54cc5b(0x1c7)](this),this[_0x54cc5b(0x1bc)]=!0x0===this[_0x54cc5b(0x193)],this[_0x54cc5b(0x193)]=!0x1,this[_0x54cc5b(0x1ca)]=void 0x0,this[_0x54cc5b(0x1a5)]=!0x1,this[_0x54cc5b(0x1cb)]=!0x1,this[_0x54cc5b(0x19e)]=[],this['searchFields']=this[_0x54cc5b(0x1a4)][_0x54cc5b(0x1b9)][_0x54cc5b(0x1ab)](_0x5f3750=>_0x5f3750['filter'])[_0x54cc5b(0x1b6)](_0x585f3b=>{const _0x3baf8d=_0x54cc5b;let _0x4c4a3d={'name':_0x585f3b[_0x3baf8d(0x1a1)],'type':_0x3baf8d(0x197)===_0x585f3b[_0x3baf8d(0x1ab)][_0x3baf8d(0x1c2)]?_0x3baf8d(0x197):_0x585f3b[_0x3baf8d(0x1ae)],'label':_0x585f3b[_0x3baf8d(0x19c)],'operator':_0x585f3b['filter'][_0x3baf8d(0x1c2)]?_0x585f3b[_0x3baf8d(0x1ab)][_0x3baf8d(0x1c2)]:'eq'};return _0x585f3b[_0x3baf8d(0x1ab)][_0x3baf8d(0x18f)]&&(_0x4c4a3d['options']=_0x585f3b['filter'][_0x3baf8d(0x18f)]),_0x585f3b[_0x3baf8d(0x1be)][_0x3baf8d(0x18f)]&&(_0x4c4a3d[_0x3baf8d(0x18f)]=_0x585f3b[_0x3baf8d(0x1be)][_0x3baf8d(0x18f)]),_0x585f3b[_0x3baf8d(0x1ab)][_0x3baf8d(0x1a2)]&&this['searchFieldValues'][_0x3baf8d(0x1c3)]({'name':_0x4c4a3d[_0x3baf8d(0x1a1)],'operator':_0x4c4a3d[_0x3baf8d(0x1c2)],'value':_0x585f3b['filter']['value']}),delete _0x585f3b[_0x3baf8d(0x1ab)],_0x4c4a3d;});}async['fetch'](){const _0x1a316a=a0_0x2ee4f9;await this[_0x1a316a(0x1ac)][_0x1a316a(0x19d)]();}async[a0_0x2ee4f9(0x1aa)]({page:_0x1dbe40=0x0,limit:_0x6071b4=0x0,sortings:_0x55e61e=[],filters:_0x356422=[]}){const _0x291e45=a0_0x2ee4f9;return this['masterElement']&&this[_0x291e45(0x18b)][_0x291e45(0x1bd)]&&await this['masterElement'][_0x291e45(0x1bd)](),!0x0;}[a0_0x2ee4f9(0x1ba)](){const _0x3962d2=a0_0x2ee4f9;return{'master':this[_0x3962d2(0x18b)][_0x3962d2(0x1ba)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4a2239=a0_0x3a65;(function(_0x3033fd,_0x408c1c){const _0x8cc8e9=a0_0x3a65,_0x1b60ce=_0x3033fd();while(!![]){try{const _0x9593af=-parseInt(_0x8cc8e9(0xaa))/0x1+-parseInt(_0x8cc8e9(0x75))/0x2*(-parseInt(_0x8cc8e9(0xad))/0x3)+-parseInt(_0x8cc8e9(0x7c))/0x4+-parseInt(_0x8cc8e9(0xa4))/0x5*(-parseInt(_0x8cc8e9(0x88))/0x6)+parseInt(_0x8cc8e9(0xab))/0x7*(parseInt(_0x8cc8e9(0x6f))/0x8)+-parseInt(_0x8cc8e9(0x7b))/0x9*(-parseInt(_0x8cc8e9(0x9e))/0xa)+-parseInt(_0x8cc8e9(0x85))/0xb*(parseInt(_0x8cc8e9(0x7e))/0xc);if(_0x9593af===_0x408c1c)break;else _0x1b60ce['push'](_0x1b60ce['shift']());}catch(_0x581ebd){_0x1b60ce['push'](_0x1b60ce['shift']());}}}(a0_0x38a4,0xdf79c));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';function a0_0x38a4(){const _0x30abe7=['isNotEmpty','save','isElement','3179XKzPos','record','name','774JRxMQM','import','grist','actions','context','parseBasicGridConfigs','searchFields','title','getAndParseMenuMeta','exportableData','useFilterForm','getContextObject','operator','shadowRoot','filterForm','getData','export','activityDataSet','render','startsWith','properties','getMasterDetailHtml','160PqVJSW','map','importable','updateMultiple','grid','forEach','6975yVUqoO','menuInfo','value','find','gristId','ox-filters-form-base','1569627uZuHZP','140ODbydB','gristConfigSet','467142IZFsOO','connectedCallback','patchesForUpdateMultiple','isPage','clear','main','firstUpdated','detailElement','styles','push','querySelector','parseGristConfigs','header','getParams','___data','renderRoot','gridEmphasized','options','432792EJzsUy','useMasterFilterForm','filterFormId','beforeFetch','exportable','filter','16BiILeK','fetch','parseGridConfigSet','tTitle','search','grid_column','925047Yivvrt','1551156mCFOMr','searchConfig','53124bCPmZG','keys','stringify','pageInitialized'];a0_0x38a4=function(){return _0x30abe7;};return a0_0x38a4();}import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3a65(_0x128177,_0x59e6c8){const _0x38a43b=a0_0x38a4();return a0_0x3a65=function(_0x3a65dc,_0x1f8ff8){_0x3a65dc=_0x3a65dc-0x66;let _0x47ae96=_0x38a43b[_0x3a65dc];return _0x47ae96;},a0_0x3a65(_0x128177,_0x59e6c8);}export const MetaMasterDetailMixin=_0x8ce0b5=>class extends MetaButtonMixin(_0x8ce0b5){static get[a0_0x4a2239(0xb5)](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x4a2239(0x9c)](){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_0x4a2239(0x8a)](){const _0x5ebca9=a0_0x4a2239;return this[_0x5ebca9(0x6c)][_0x5ebca9(0x67)](this[_0x5ebca9(0xa8)]);}get[a0_0x4a2239(0x96)](){const _0x407d63=a0_0x4a2239;return this[_0x407d63(0x95)]?.[_0x407d63(0x67)](this[_0x407d63(0x71)]);}get[a0_0x4a2239(0x8c)](){const _0x2227f3=a0_0x4a2239;let _0xc4d0b1=MetaUiUtil[_0x2227f3(0x93)](this);return _0xc4d0b1[_0x2227f3(0x8b)]&&delete _0xc4d0b1['actions'],_0xc4d0b1[_0x2227f3(0x73)]&&delete _0xc4d0b1[_0x2227f3(0x73)],_0xc4d0b1[_0x2227f3(0xa0)]&&delete _0xc4d0b1[_0x2227f3(0xa0)],_0xc4d0b1;}async[a0_0x4a2239(0xae)](){const _0x5db335=a0_0x4a2239;this['gristId']='ox-grist',this[_0x5db335(0x71)]=_0x5db335(0xa9),await this[_0x5db335(0x90)](),this[_0x5db335(0x84)]&&await this[_0x5db335(0x68)](),this[_0x5db335(0x99)]&&(this['dataSet']=(this[_0x5db335(0x99)]||{})[_0x5db335(0xb2)]),super['connectedCallback']&&await super[_0x5db335(0xae)]();}async[a0_0x4a2239(0xb3)](){const _0x28379e=a0_0x4a2239;super[_0x28379e(0xb3)]&&await super[_0x28379e(0xb3)]();}async['pageInitialized'](){const _0x4b9fd6=a0_0x4a2239;this[_0x4b9fd6(0xb0)]&&await this['parseGristConfigs'](),super[_0x4b9fd6(0x81)]&&await super['pageInitialized']();}[a0_0x4a2239(0x9a)](){const _0x911877=a0_0x4a2239;return MetaApi[_0x911877(0x9d)](this);}[a0_0x4a2239(0x8d)](_0x144bea){const _0x34e548=a0_0x4a2239;this['gridConfig']=_0x144bea[_0x34e548(0xa2)],this['gridColumnConfig']=_0x144bea[_0x34e548(0x7a)],this[_0x34e548(0x7d)]=_0x144bea['search'],this[_0x34e548(0x6d)]=_0x144bea[_0x34e548(0x6d)];}async['parseGristConfigs'](){const _0x44980c=a0_0x4a2239;this[_0x44980c(0xac)]=await MetaApi[_0x44980c(0x77)](this),this[_0x44980c(0x70)]=!0x0===this[_0x44980c(0x92)],this['useFilterForm']=!0x1,this['searchFieldValues']=[],this[_0x44980c(0x8e)]=this[_0x44980c(0xac)]['columns'][_0x44980c(0x74)](_0x583a77=>_0x583a77[_0x44980c(0x74)])[_0x44980c(0x9f)](_0x530415=>{const _0x4577e3=_0x44980c;let _0x26075e={'name':_0x530415[_0x4577e3(0x87)],'type':_0x4577e3(0x79)===_0x530415[_0x4577e3(0x74)][_0x4577e3(0x94)]?_0x4577e3(0x79):_0x530415['type'],'label':_0x530415[_0x4577e3(0x69)],'operator':_0x530415[_0x4577e3(0x74)]['operator']?_0x530415[_0x4577e3(0x74)][_0x4577e3(0x94)]:'eq'};return _0x530415[_0x4577e3(0x74)][_0x4577e3(0x6e)]&&(_0x26075e[_0x4577e3(0x6e)]=_0x530415['filter'][_0x4577e3(0x6e)]),_0x530415[_0x4577e3(0x86)]['options']&&(_0x26075e[_0x4577e3(0x6e)]=_0x530415[_0x4577e3(0x86)][_0x4577e3(0x6e)]),_0x530415[_0x4577e3(0x74)]['value']&&this['searchFieldValues'][_0x4577e3(0x66)]({'name':_0x26075e[_0x4577e3(0x87)],'operator':_0x26075e['operator'],'value':_0x530415[_0x4577e3(0x74)][_0x4577e3(0xa6)]}),delete _0x530415[_0x4577e3(0x74)],_0x26075e;});}async[a0_0x4a2239(0x76)](){const _0x240c24=a0_0x4a2239;await this['grist'][_0x240c24(0x76)]();}async[a0_0x4a2239(0x72)]({page:_0x44e86a=0x0,limit:_0x5578ef=0x0,sortings:_0x2fad7a=[],filters:_0xe6a1f2=[]}){const _0x5b87d3=a0_0x4a2239;return this[_0x5b87d3(0xb4)]&&this[_0x5b87d3(0xb4)][_0x5b87d3(0xb1)]&&await this[_0x5b87d3(0xb4)][_0x5b87d3(0xb1)](),!0x0;}async[a0_0x4a2239(0x83)](){const _0x256e74=a0_0x4a2239;let _0xeb2933=MetaApi[_0x256e74(0xaf)](this['grist']);!!ValueUtil[_0x256e74(0x82)](_0xeb2933)&&await this[_0x256e74(0xa1)](_0xeb2933)&&this['fetch']();}async[a0_0x4a2239(0xa7)](){const _0x5056b1=a0_0x4a2239;let _0x4021d6=MetaApi['getSelectedIdList'](this[_0x5056b1(0x8a)],!0x0);return ValueUtil[_0x5056b1(0x82)](_0x4021d6)?await this['findOne'](_0x4021d6[0x0]):{};}async['delete'](){const _0x9d4b2=a0_0x4a2239;let _0x34dc96=MetaApi['getSelectedIdList'](this[_0x9d4b2(0x8a)],!0x0);!!ValueUtil[_0x9d4b2(0x82)](_0x34dc96)&&await this['deleteByIds'](_0x34dc96)&&this['fetch']();}async[a0_0x4a2239(0x98)](){const _0x49298d=a0_0x4a2239;let _0x393150=TermsUtil[_0x49298d(0x78)](ValueUtil[_0x49298d(0x6a)](this[_0x49298d(0xa5)],_0x49298d(0x8f)));return await MetaApi[_0x49298d(0x91)](this[_0x49298d(0x84)],_0x393150,this[_0x49298d(0x8a)]);}async[a0_0x4a2239(0x89)](){}[a0_0x4a2239(0x97)](){const _0x2638b9=a0_0x4a2239;let _0x407bca=this[_0x2638b9(0x8a)][_0x2638b9(0x6b)]['records'];return _0x407bca=JSON['parse'](JSON[_0x2638b9(0x80)](_0x407bca)),_0x407bca[_0x2638b9(0xa3)](_0x3ef30d=>{const _0x157a98=_0x2638b9;Object[_0x157a98(0x7f)](_0x3ef30d)[_0x157a98(0xa3)](_0x4cdaa9=>{const _0x2e570e=_0x157a98;_0x4cdaa9[_0x2e570e(0x9b)]('__')&&delete _0x3ef30d[_0x4cdaa9];});}),{'main':_0x407bca,'detail':this[_0x2638b9(0xb4)][_0x2638b9(0x97)]()};}};
|