@things-factory/meta-ui 6.1.30 → 6.1.32
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 +6 -6
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/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/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 +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +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 +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/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
|
-
|
|
1
|
+
const a0_0x850290=a0_0x5a1a;(function(_0x59e15c,_0x4b5d7b){const _0x540614=a0_0x5a1a,_0x3044c8=_0x59e15c();while(!![]){try{const _0x5eae55=-parseInt(_0x540614(0xec))/0x1*(-parseInt(_0x540614(0x11d))/0x2)+-parseInt(_0x540614(0x110))/0x3*(-parseInt(_0x540614(0x121))/0x4)+-parseInt(_0x540614(0xdd))/0x5*(-parseInt(_0x540614(0x112))/0x6)+parseInt(_0x540614(0xdc))/0x7+parseInt(_0x540614(0x127))/0x8*(-parseInt(_0x540614(0x11b))/0x9)+-parseInt(_0x540614(0x105))/0xa*(-parseInt(_0x540614(0x124))/0xb)+parseInt(_0x540614(0xf3))/0xc*(-parseInt(_0x540614(0xf8))/0xd);if(_0x5eae55===_0x4b5d7b)break;else _0x3044c8['push'](_0x3044c8['shift']());}catch(_0x4eebdd){_0x3044c8['push'](_0x3044c8['shift']());}}}(a0_0x99c9,0xcbe85));function a0_0x5a1a(_0x1df34c,_0x463416){const _0x99c9b1=a0_0x99c9();return a0_0x5a1a=function(_0x5a1a00,_0x461acb){_0x5a1a00=_0x5a1a00-0xd9;let _0x1d6ec9=_0x99c9b1[_0x5a1a00];return _0x1d6ec9;},a0_0x5a1a(_0x1df34c,_0x463416);}import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';function a0_0x99c9(){const _0x587ba1=['502437fyBnrN','tText','78reomYe','sorters','LIST','getCodeByEntity','filter','getParams','align','basicArgs','#ox-grist','4245489arAmml','getGristGuttersConfig','24352hGZEoZ','tButton','select-row-toggle','getGristColumnConfig2','28jERuFb','values','record','999207nlhWUP','args','meta-object-selector','8cWRlrE','scenario','gridConfig','selectRecord','queryName','forEach','nameField','menu_template','rows','11320386HWMWNq','380095tYEcNo','getGristPagination100Config','left','search_hidden_fields','showToast','getGristMetaObjectOptions','NOTHING_SELECTED','grist','string','startsWith','getCodeByScenario','includes','fetchHandler','name','bind','29lZVAQb','confirmCallback','code','codeField','searchByPagination','define','type','120JInpaU','firstUpdated','meta-','clickCancel','hidden','3907345JiiAIN','length','getGristSelectableConfig','search','getSelectColumns','shadowRoot','resource-object','clickEmpty','querySelector','meta-code-selector','push','query','options','20MxWBqE','styles','select','dispField','entity','GRID','connectedCallback','filters','after_set_fields','object','clickSelect'];a0_0x99c9=function(){return _0x587ba1;};return a0_0x99c9();}import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x850290(0x106)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ function a0_0x35dc(){const _0x500916=['5wOsLta','GRID','nameField','menu_templat
|
|
|
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 _0x5175ac=a0_0x850290;this[_0x5175ac(0xe0)]=this[_0x5175ac(0x104)][_0x5175ac(0x10c)]?this['options']['filters']:this[_0x5175ac(0x119)]&&this[_0x5175ac(0x119)][_0x5175ac(0x10c)]?this[_0x5175ac(0x119)]['filters']:[];let _0x357153=this[_0x5175ac(0x104)][_0x5175ac(0x113)]?this['options'][_0x5175ac(0x113)]:this[_0x5175ac(0x119)]&&this[_0x5175ac(0x119)][_0x5175ac(0x113)]?this[_0x5175ac(0x119)][_0x5175ac(0x113)]:[],_0x17dda2=this[_0x5175ac(0x104)]['filterFields']?this[_0x5175ac(0x104)]['filterFields']:this[_0x5175ac(0x104)][_0x5175ac(0xda)]?.[_0x5175ac(0xfb)]&&this['options']['menu_template']?.['search'][_0x5175ac(0xf9)]>0x0?this['options']['menu_template'][_0x5175ac(0xfb)]:[],_0x5da686=this[_0x5175ac(0x104)][_0x5175ac(0x107)];if(!_0x17dda2||0x0==_0x17dda2[_0x5175ac(0xf9)]){let _0x759200;this['options'][_0x5175ac(0xef)]&&(_0x759200=this['options'][_0x5175ac(0xef)]),this[_0x5175ac(0x104)][_0x5175ac(0xd9)]&&(_0x759200=this[_0x5175ac(0x104)][_0x5175ac(0xd9)]),_0x759200&&_0x17dda2[_0x5175ac(0x102)]({'name':_0x759200,'operator':'eq'});}let _0x70f93e=[...MetaApi[_0x5175ac(0x11c)](!0x0,!0x1)];if(_0x5da686&&_0x5da686[_0x5175ac(0xf9)]>0x0)for(let _0x4a3bee=0x0;_0x4a3bee<_0x5da686[_0x5175ac(0xf9)];_0x4a3bee++){let {type:_0x231037=_0x5175ac(0xe5),name:_0x480e09,hidden:_0x1fd630=!0x1,record:_0x57f8f2={'align':_0x5175ac(0xdf)},header:_0x157851,sortable:_0x1ca548=!0x1,width:_0x1b70d5=0x87,options:_0x560f4c,select_opt:_0x2787a0,object_opt:_0x663a9b}=_0x5da686[_0x4a3bee];if(_0x2787a0&&(_0x560f4c=_0x2787a0),_0x663a9b&&(_0x560f4c=_0x663a9b),[_0x5175ac(0xfe),_0x5175ac(0x10e)][_0x5175ac(0xe8)](_0x231037)?_0x231037='meta-object-selector':['resource-code-selector']['includes'](_0x231037)&&(_0x231037='meta-code-selector'),'id'==_0x480e09)_0x70f93e['push']({'type':_0x5175ac(0xe5),'name':_0x480e09,'hidden':!0x0});else{let _0x4f06c7=MetaApi[_0x5175ac(0x120)](_0x231037,_0x480e09,_0x157851||_0x480e09,_0x57f8f2[_0x5175ac(0x118)]?_0x57f8f2[_0x5175ac(0x118)]:_0x5175ac(0xdf),!0x1,_0x1ca548,_0x1b70d5);_0x231037[_0x5175ac(0xe6)](_0x5175ac(0xf5))&&_0x663a9b&&_0x663a9b['menu']&&(_0x560f4c=await MetaUiUtil[_0x5175ac(0xe2)](_0x231037,_0x560f4c)),_0x5175ac(0x107)===_0x231037?Array['isArray'](_0x560f4c)?_0x4f06c7[_0x5175ac(0x123)][_0x5175ac(0x104)]=_0x560f4c:_0x5175ac(0xee)===_0x560f4c['type']?_0x4f06c7['record'][_0x5175ac(0x104)]=await ServiceUtil['getCodeSelectorData'](_0x560f4c[_0x5175ac(0x122)]?_0x560f4c[_0x5175ac(0x122)]:_0x560f4c['name']):_0x5175ac(0x128)===_0x560f4c[_0x5175ac(0xf2)]?_0x4f06c7[_0x5175ac(0x123)][_0x5175ac(0x104)]=await ServiceUtil[_0x5175ac(0xe7)](_0x560f4c['name'],_0x560f4c[_0x5175ac(0x125)]):_0x5175ac(0x109)===_0x560f4c['type']&&(_0x4f06c7[_0x5175ac(0x123)]['options']=await ServiceUtil[_0x5175ac(0x115)](_0x560f4c[_0x5175ac(0x125)])):_0x5175ac(0x126)===_0x231037?_0x4f06c7[_0x5175ac(0x123)][_0x5175ac(0x104)]={..._0x560f4c}:_0x5175ac(0x101)==_0x231037&&(_0x560f4c['dispField']&&(_0x560f4c['codes']=await ServiceUtil[_0x5175ac(0x115)](_0x560f4c)),_0x4f06c7['record']['options']={..._0x560f4c}),_0x4f06c7[_0x5175ac(0xf7)]=_0x1fd630,_0x70f93e['push'](_0x4f06c7);}}else _0x70f93e[_0x5175ac(0x102)](MetaApi[_0x5175ac(0x120)]('string',this[_0x5175ac(0x104)][_0x5175ac(0xef)],this[_0x5175ac(0x104)][_0x5175ac(0xef)],_0x5175ac(0xdf),!0x1,!0x0,0xb4)),this[_0x5175ac(0x104)][_0x5175ac(0x108)]&&_0x70f93e[_0x5175ac(0x102)](MetaApi[_0x5175ac(0x120)](_0x5175ac(0xe5),this[_0x5175ac(0x104)][_0x5175ac(0x108)],this[_0x5175ac(0x104)][_0x5175ac(0x108)],_0x5175ac(0xdf),!0x1,!0x0,0x12c));_0x70f93e[_0x5175ac(0x12c)](_0x428b67=>{const _0x2d0bf1=_0x5175ac;let _0x48c100=_0x17dda2[_0x2d0bf1(0x116)](_0x83eadb=>_0x2d0bf1(0xe5)==typeof _0x83eadb?_0x428b67[_0x2d0bf1(0xea)]==_0x83eadb:_0x428b67[_0x2d0bf1(0xea)]==_0x83eadb[_0x2d0bf1(0xea)]);_0x48c100&&_0x48c100[_0x2d0bf1(0xf9)]>0x0&&(_0x428b67['filter']=_0x2d0bf1(0xe5)==typeof _0x48c100[0x0]?'search':_0x48c100[0x0]);});let _0x203cc={'rows':MetaApi[_0x5175ac(0xfa)](!0x1),'pagination':MetaApi[_0x5175ac(0xde)](),'columns':_0x70f93e,'sorters':[..._0x357153]};_0x203cc[_0x5175ac(0xdb)]['handlers']={'click':_0x5175ac(0x11f),'dblclick':(_0x3a1a27,_0x85b8ac,_0x5a7b20,_0xf5845,_0x397ab7,_0x4690cc)=>{const _0x61267b=_0x5175ac;this[_0x61267b(0x12a)](_0xf5845);}},_0x203cc[_0x5175ac(0xdb)]['appendable']=!0x1,this['gridConfig']=_0x203cc,await super[_0x5175ac(0x10b)]();}async[a0_0x850290(0xf4)](){const _0x3c9a0c=a0_0x850290;await super[_0x3c9a0c(0xf4)]();}['render'](){const _0x5eb53b=a0_0x850290;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0x5eb53b(0x129)]} .mode=${isMobileDevice()?_0x5eb53b(0x114):_0x5eb53b(0x10a)} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x5eb53b(0xe9)][_0x5eb53b(0xeb)](this)}>
|
|
23
23
|
<div slot="headroom">
|
|
24
24
|
<div id="filters">
|
|
25
25
|
<ox-filters-form></ox-filters-form>
|
|
@@ -27,14 +27,14 @@ function a0_0x35dc(){const _0x500916=['5wOsLta','GRID','nameField','menu_templat
|
|
|
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[_0x5eb53b(0x11e)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x5eb53b(0xff)][_0x5eb53b(0xeb)](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x5eb53b(0x11e)]('cancel')}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0x5eb53b(0xf6)][_0x5eb53b(0xeb)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x5eb53b(0x11e)](_0x5eb53b(0x107))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x5eb53b(0x10f)]['bind'](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x850290(0xe4)](){const _0x39fa74=a0_0x850290;return this[_0x39fa74(0xfd)][_0x39fa74(0x100)](_0x39fa74(0x11a));}async[a0_0x850290(0xe9)]({page:_0x17028d=0x0,limit:_0x236b59=0x0,sorters:_0x469bef=[],filters:_0x18f28f=[]}){const _0x18d170=a0_0x850290;let _0x266cbb=[...this[_0x18d170(0xe0)]];_0x18f28f[_0x18d170(0x12c)](_0x206652=>{const _0x14d8fb=_0x18d170;let _0xc4236c=_0x266cbb[_0x14d8fb(0x116)](_0x1500a8=>_0x206652[_0x14d8fb(0xea)]==_0x1500a8[_0x14d8fb(0xea)]);_0xc4236c&&_0xc4236c['length']>0x0&&delete _0x266cbb[_0x206652[_0x14d8fb(0xea)]],_0x266cbb[_0x14d8fb(0x102)](_0x206652);});let _0xef0785=ValueUtil[_0x18d170(0x117)](this[_0x18d170(0x104)][_0x18d170(0xda)]&&this[_0x18d170(0x104)]['menu_template']['gql']||{},_0x18d170(0x103),_0x18d170(0x10d)),_0x134712=Object['keys'](_0xef0785||{}),_0x29c1a6=MetaApi[_0x18d170(0xfc)](this[_0x18d170(0x129)]['columns'][_0x18d170(0x116)](_0x18bda0=>!_0x134712[_0x18d170(0xe8)](_0x18bda0[_0x18d170(0xea)])));return await MetaApi[_0x18d170(0xf0)](this[_0x18d170(0x104)][_0x18d170(0x12b)],_0x266cbb,_0x469bef,_0x17028d,_0x236b59,_0x29c1a6);}async[a0_0x850290(0xff)](_0x10a4cc){this['confirmCallback']&&this['confirmCallback'](null),closePopup(this);}async['clickCancel'](_0x549a0a){closePopup(this);}async[a0_0x850290(0x10f)](_0x34af4d){const _0x5ae0c9=a0_0x850290;let _0x241f81=this[_0x5ae0c9(0xe4)]['selected'];_0x241f81&&0x0!=_0x241f81[_0x5ae0c9(0xf9)]?this[_0x5ae0c9(0x12a)](_0x241f81[0x0]):MetaApi[_0x5ae0c9(0xe1)]('info',TermsUtil[_0x5ae0c9(0x111)](_0x5ae0c9(0xe3)));}async[a0_0x850290(0x12a)](_0x3f0028){const _0x3c9f43=a0_0x850290;this[_0x3c9f43(0xed)]&&this[_0x3c9f43(0xed)](_0x3f0028),closePopup(this);}}customElements[a0_0x850290(0xf1)]('meta-object-selector-popup',MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2cf304=a0_0x9d7d;(function(_0x249404,_0x56b58f){const _0xe60073=a0_0x9d7d,_0x2dcfe1=_0x249404();while(!![]){try{const _0x52f58b=-parseInt(_0xe60073(0x1e9))/0x1*(parseInt(_0xe60073(0x1dd))/0x2)+-parseInt(_0xe60073(0x1db))/0x3+parseInt(_0xe60073(0x1f8))/0x4*(-parseInt(_0xe60073(0x1cd))/0x5)+parseInt(_0xe60073(0x1ce))/0x6*(parseInt(_0xe60073(0x1d1))/0x7)+parseInt(_0xe60073(0x1d0))/0x8*(parseInt(_0xe60073(0x1ee))/0x9)+-parseInt(_0xe60073(0x1fe))/0xa*(-parseInt(_0xe60073(0x1d4))/0xb)+parseInt(_0xe60073(0x1fa))/0xc;if(_0x52f58b===_0x56b58f)break;else _0x2dcfe1['push'](_0x2dcfe1['shift']());}catch(_0x2c1f1b){_0x2dcfe1['push'](_0x2dcfe1['shift']());}}}(a0_0x79b8,0xb6402));function a0_0x79b8(){const _0x51f9ea=['isPopup','dispatchEvent','is_detail','isPage','properties','params','is_popup','after','isEmpty','meta-form-','parseBasicButtonConfigs','96549AzvrYV','form-field-change','parent_id','isNotEmpty','getAndParseMenuMeta','17172CkEpAk','parseBasicFormConfigs','keys','fetch','field-change','tTitle','errors','openDynamicPopup','parseBasicServiceConfigs','executeCallScenarioButtonClick','1685004kxmbdo','getMenuMeta','817680BkkaRA','getParams','split','includes','37160hTVupm','title_detail','addEventListener','forEach','data','detail','data-changed','callScenario','menuInfo','fieldChangeHandlers','5ThkdtU','6IZKJEe','pageUpdated','5592MuKHtr','3923633yNzgkZ','dataChangeEventHandler','setParentId','1749fhhMUj','toLowerCase','excuteOpenPopupButtonClick','name','grist','lifecycle','fetchHandler','2708103EFtnEq','startsWith','10KmgdLt'];a0_0x79b8=function(){return _0x51f9ea;};return a0_0x79b8();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x9d7d(_0x463268,_0x5b652f){const _0x79b8d8=a0_0x79b8();return a0_0x9d7d=function(_0x9d7d08,_0x72a961){_0x9d7d08=_0x9d7d08-0x1c8;let _0xa64320=_0x79b8d8[_0x9d7d08];return _0xa64320;},a0_0x9d7d(_0x463268,_0x5b652f);}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1c3841=>class extends _0x1c3841{static get[a0_0x2cf304(0x1e2)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x1af4c4=>Boolean(_0x1af4c4)},'is_popup':{'type':Boolean,'converter':_0x452704=>Boolean(_0x452704)},'is_activity':{'type':Boolean,'converter':_0x88dee0=>Boolean(_0x88dee0)},'is_readonly':{'type':Boolean,'converter':_0x57aab9=>Boolean(_0x57aab9)}};}get['isElement'](){const _0x4b3390=a0_0x2cf304;return!0x0===this[_0x4b3390(0x1e0)]||!0x0===this[_0x4b3390(0x1e4)];}get['isDetail'](){const _0x167730=a0_0x2cf304;return!ValueUtil['isEmpty'](this[_0x167730(0x1e0)])&&this['is_detail'];}async[a0_0x2cf304(0x1d2)](_0x5653a5){const _0x33b7e3=a0_0x2cf304;let {after:_0x1292b0,before:_0xd95f46,column:_0x656f0d,record:_0x180391,row:_0x1897c9}=_0x5653a5['detail'],_0x5ca791=_0x656f0d[_0x33b7e3(0x1d7)];if(Object[_0x33b7e3(0x1f0)](this['fieldChangeHandlers']||{})[_0x33b7e3(0x1fd)](_0x5ca791)){let _0x2db48d,_0x2e5a7c=(await MetaApi[_0x33b7e3(0x1ca)](void 0x0,this[_0x33b7e3(0x1cc)][_0x5ca791],{'columnName':_0x5ca791,'column':_0x656f0d,'record':_0x180391,'after':_0x1292b0,'before':_0xd95f46,'row':_0x1897c9},!0x1))['data']['runScenario'][_0x33b7e3(0x202)]['result'];if(!_0x2e5a7c)return;_0x2db48d=this[_0x33b7e3(0x1d8)]?this[_0x33b7e3(0x1d8)][_0x33b7e3(0x1d8)]['body']:this,Object[_0x33b7e3(0x1f0)](_0x2e5a7c)[_0x33b7e3(0x201)](_0xf6ccd6=>{const _0x3dd6c4=_0x33b7e3;_0x2db48d[_0x3dd6c4(0x1df)](new CustomEvent(_0x3dd6c4(0x1f2),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x180391,'row':_0x1897c9,'after':_0x2e5a7c[_0xf6ccd6],'before':_0x180391[_0xf6ccd6],'column':{'name':_0xf6ccd6}}}));});}this[_0x33b7e3(0x1df)](new CustomEvent(_0x33b7e3(0x1c9),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5653a5[_0x33b7e3(0x1c8)]}));}async['connectedCallback'](){const _0x2d4b60=a0_0x2cf304;super['connectedCallback']&&await super['connectedCallback'](),this['tagName'][_0x2d4b60(0x1d5)]()[_0x2d4b60(0x1dc)](_0x2d4b60(0x1e7))?this[_0x2d4b60(0x200)](_0x2d4b60(0x1ea),async _0x4c10f9=>{const _0x500e10=_0x2d4b60;await this[_0x500e10(0x1d2)](_0x4c10f9);}):this[_0x2d4b60(0x200)]('field-change',async _0x2c0f39=>{const _0x521a4d=_0x2d4b60;await this[_0x521a4d(0x1d2)](_0x2c0f39);});}async[a0_0x2cf304(0x1cf)](_0xc13767,_0x3ab97e,_0x184239){const _0x5b5a3f=a0_0x2cf304;let _0x475850=this[_0x5b5a3f(0x1d9)]?.[_0x5b5a3f(0x1e3)]?this[_0x5b5a3f(0x1d9)]['params']:{};this[_0x5b5a3f(0x1e1)]&&this['active']&&0x0==_0x184239['active']&&ValueUtil['isNotEmpty'](_0x475850)&&this[_0x5b5a3f(0x1f1)]();}get[a0_0x2cf304(0x1de)](){const _0x8d89dd=a0_0x2cf304;return!ValueUtil[_0x8d89dd(0x1e6)](this[_0x8d89dd(0x1e4)])&&this[_0x8d89dd(0x1e4)];}get[a0_0x2cf304(0x1e1)](){const _0x424372=a0_0x2cf304;return!this[_0x424372(0x1e0)]&&!this[_0x424372(0x1e4)];}async[a0_0x2cf304(0x1ed)](){const _0x4771e7=a0_0x2cf304;let _0x2c7484=await MetaApi[_0x4771e7(0x1f9)](this);_0x2c7484&&(this[_0x4771e7(0x1cb)]=_0x2c7484['menu'],this['etcConfig']=_0x2c7484['etc'],this['parseBasicGridConfigs']&&this['parseBasicGridConfigs'](_0x2c7484),this[_0x4771e7(0x1f6)]&&this[_0x4771e7(0x1f6)](_0x2c7484),this[_0x4771e7(0x1ef)]&&this[_0x4771e7(0x1ef)](_0x2c7484),this['parseBasicTabConfigs']&&this['parseBasicTabConfigs'](_0x2c7484),this[_0x4771e7(0x1e8)]&&this[_0x4771e7(0x1e8)](_0x2c7484));}async[a0_0x2cf304(0x1f1)](){const _0x3d62b2=a0_0x2cf304;ValueUtil['isNotEmpty'](this[_0x3d62b2(0x1d8)])?this[_0x3d62b2(0x1d8)][_0x3d62b2(0x1f1)]():(ValueUtil[_0x3d62b2(0x1ec)](this['filterForm'])||this[_0x3d62b2(0x1da)])&&await this[_0x3d62b2(0x1da)]();}async[a0_0x2cf304(0x1d6)](_0x26abb8,_0xc415a4,_0x46c05c){const _0x48fb5a=a0_0x2cf304;let _0x31eecd=TermsUtil[_0x48fb5a(0x1f3)](_0x26abb8['title']);ValueUtil['isNotEmpty'](_0x26abb8[_0x48fb5a(0x1ff)])&&(_0x31eecd=_0x31eecd+'-'+ValueUtil[_0x48fb5a(0x1fb)](_0xc415a4,..._0x26abb8[_0x48fb5a(0x1ff)][_0x48fb5a(0x1fc)]('.'))),MetaApi[_0x48fb5a(0x1f5)](_0x31eecd,_0x26abb8,_0xc415a4,_0x46c05c);}async[a0_0x2cf304(0x1f7)](_0x19701e,_0xc364dc,_0x5df83a){const _0x18f148=a0_0x2cf304;let _0xf4c704=await MetaApi[_0x18f148(0x1ca)](_0x19701e[_0x18f148(0x1d7)],_0x19701e[_0x18f148(0x1d7)],_0xc364dc);!0x1!==_0xf4c704&&!_0xf4c704[_0x18f148(0x1f4)]&&ValueUtil[_0x18f148(0x1ec)](_0x19701e[_0x18f148(0x1e5)])&&_0x5df83a();}[a0_0x2cf304(0x1d3)](_0x5217a0){const _0x48b4ee=a0_0x2cf304;this[_0x48b4ee(0x1eb)]=_0x5217a0,this[_0x48b4ee(0x1f1)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}['parseBasicGridConfigs'](
|
|
1
|
+
const a0_0xc9767c=a0_0x5ea7;function a0_0x4a16(){const _0x473e40=['records','filterForm','getSelectedIdList','renderRoot','forEach','activityDataSet','filterFormId','175899KVdVHV','544YeLyyC','patchesForUpdateMultiple','gridConfig','searchConfig','save','520pWmOJC','firstUpdated','stringify','parseGristConfigs','keys','getParams','startsWith','183966WHVyHz','dataSet','grid_column','title','gristId','delete','exportableData','querySelector','isNotEmpty','getAndParseMenuMeta','tTitle','gridColumnConfig','ox-filters-form','getButtonContainer','grid','2479580AcGRmZ','parseGridConfigSet','find','gridEmphasized','6VqjERy','findOne','connectedCallback','28bOJCiW','58392UwcIrn','___data','getContextObject','export','isElement','13315FkmtPw','getBasicGristStyles','updateMultiple','fetch','styles','pageInitialized','clear','14055327wfHNrv','getBasicGristHtml','isPage','properties','grist','539587NbVATT','deleteByIds'];a0_0x4a16=function(){return _0x473e40;};return a0_0x4a16();}function a0_0x5ea7(_0x166d6a,_0x167c72){const _0x4a16e9=a0_0x4a16();return a0_0x5ea7=function(_0x5ea76b,_0xec82a6){_0x5ea76b=_0x5ea76b-0x12e;let _0x457381=_0x4a16e9[_0x5ea76b];return _0x457381;},a0_0x5ea7(_0x166d6a,_0x167c72);}(function(_0x5e50f3,_0x4bcd0a){const _0x93dd46=a0_0x5ea7,_0x223cd3=_0x5e50f3();while(!![]){try{const _0x176302=parseInt(_0x93dd46(0x12e))/0x1+-parseInt(_0x93dd46(0x157))/0x2*(-parseInt(_0x93dd46(0x137))/0x3)+parseInt(_0x93dd46(0x138))/0x4*(parseInt(_0x93dd46(0x160))/0x5)+parseInt(_0x93dd46(0x144))/0x6*(-parseInt(_0x93dd46(0x15a))/0x7)+-parseInt(_0x93dd46(0x13d))/0x8*(-parseInt(_0x93dd46(0x15b))/0x9)+parseInt(_0x93dd46(0x153))/0xa+-parseInt(_0x93dd46(0x167))/0xb;if(_0x176302===_0x4bcd0a)break;else _0x223cd3['push'](_0x223cd3['shift']());}catch(_0x22fc7b){_0x223cd3['push'](_0x223cd3['shift']());}}}(a0_0x4a16,0x54b33));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=_0x3370a0=>class extends MetaButtonMixin(_0x3370a0){static get[a0_0xc9767c(0x164)](){const _0x2b0dee=a0_0xc9767c;return MetaApi[_0x2b0dee(0x161)]();}static get[a0_0xc9767c(0x16a)](){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_0xc9767c(0x16b)](){const _0x5d0056=a0_0xc9767c;return this[_0x5d0056(0x133)]?.[_0x5d0056(0x14b)](this[_0x5d0056(0x148)]);}get[a0_0xc9767c(0x131)](){const _0x21b53c=a0_0xc9767c;return this['shadowRoot']?.[_0x21b53c(0x14b)](this[_0x21b53c(0x136)]);}get['context'](){const _0x2d8d80=a0_0xc9767c;return MetaUiUtil[_0x2d8d80(0x15d)](this);}async[a0_0xc9767c(0x159)](){const _0xdf6fcc=a0_0xc9767c;this[_0xdf6fcc(0x148)]='ox-grist',this[_0xdf6fcc(0x136)]=_0xdf6fcc(0x150),await this[_0xdf6fcc(0x14d)](),this[_0xdf6fcc(0x15f)]&&await this[_0xdf6fcc(0x140)](),this[_0xdf6fcc(0x135)]&&(this[_0xdf6fcc(0x145)]=this[_0xdf6fcc(0x135)]),super['connectedCallback']&&await super[_0xdf6fcc(0x159)]();}async[a0_0xc9767c(0x13e)](){const _0x4fbd91=a0_0xc9767c;super[_0x4fbd91(0x13e)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x2b560d=a0_0xc9767c;this[_0x2b560d(0x169)]&&await this[_0x2b560d(0x140)](),super['pageInitialized']&&await super[_0x2b560d(0x165)]();}['render'](){const _0x104d07=a0_0xc9767c;return html`
|
|
2
|
+
${MetaApi[_0x104d07(0x168)](this)}
|
|
3
|
+
${this[_0x104d07(0x169)]?html``:MetaUiUtil[_0x104d07(0x151)](this)}
|
|
4
|
+
`;}['parseBasicGridConfigs'](_0xac26d5){const _0x2653c4=a0_0xc9767c;this[_0x2653c4(0x13a)]=_0xac26d5[_0x2653c4(0x152)],this[_0x2653c4(0x14f)]=_0xac26d5[_0x2653c4(0x146)],this[_0x2653c4(0x13b)]=_0xac26d5['search'],this[_0x2653c4(0x156)]=_0xac26d5[_0x2653c4(0x156)];}async[a0_0xc9767c(0x140)](){const _0x5ace51=a0_0xc9767c;this['gristConfigSet']=await MetaApi[_0x5ace51(0x154)](this);}async[a0_0xc9767c(0x163)](){const _0x3559b4=a0_0xc9767c;await this[_0x3559b4(0x16b)][_0x3559b4(0x163)]();}async[a0_0xc9767c(0x13c)](){const _0x411638=a0_0xc9767c;let _0x3fe540=MetaApi[_0x411638(0x139)](this[_0x411638(0x16b)]);!!ValueUtil[_0x411638(0x14c)](_0x3fe540)&&await this[_0x411638(0x162)](_0x3fe540)&&this[_0x411638(0x163)]();}async[a0_0xc9767c(0x155)](){const _0x261720=a0_0xc9767c;let _0x4ff2a7=MetaApi[_0x261720(0x132)](this[_0x261720(0x16b)],!0x0);return ValueUtil['isNotEmpty'](_0x4ff2a7)?await this[_0x261720(0x158)](_0x4ff2a7[0x0]):{};}async[a0_0xc9767c(0x149)](){const _0x578553=a0_0xc9767c;let _0x2aae92=MetaApi['getSelectedIdList'](this[_0x578553(0x16b)],!0x0);!!ValueUtil[_0x578553(0x14c)](_0x2aae92)&&await this[_0x578553(0x12f)](_0x2aae92)&&this[_0x578553(0x163)]();}async[a0_0xc9767c(0x15e)](){const _0x38162a=a0_0xc9767c;let _0x31df87=TermsUtil[_0x38162a(0x14e)](ValueUtil[_0x38162a(0x142)](this['menuInfo'],_0x38162a(0x147)));return await MetaApi[_0x38162a(0x14a)](this['isElement'],_0x31df87,this[_0x38162a(0x16b)]);}async['import'](){}async[a0_0xc9767c(0x166)](){const _0x2094e2=a0_0xc9767c;this['grist']&&(this[_0x2094e2(0x16b)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x1efad8=a0_0xc9767c;let _0x49d0f6=this[_0x1efad8(0x16b)][_0x1efad8(0x15c)][_0x1efad8(0x130)];return _0x49d0f6=JSON['parse'](JSON[_0x1efad8(0x13f)](_0x49d0f6)),_0x49d0f6[_0x1efad8(0x134)](_0xfe5e52=>{const _0x18cb30=_0x1efad8;Object[_0x18cb30(0x141)](_0xfe5e52)[_0x18cb30(0x134)](_0x5929df=>{const _0x28d2bc=_0x18cb30;_0x5929df[_0x28d2bc(0x143)]('__')&&delete _0xfe5e52[_0x5929df];});}),_0x49d0f6;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x472451=a0_0x3cb3;(function(_0x33e963,_0x42ce9f){const _0x1af1c4=a0_0x3cb3,_0x2ed16e=_0x33e963();while(!![]){try{const _0x1c6d65=-parseInt(_0x1af1c4(0x1e1))/0x1*(-parseInt(_0x1af1c4(0x1f7))/0x2)+parseInt(_0x1af1c4(0x1ea))/0x3+parseInt(_0x1af1c4(0x1ef))/0x4*(parseInt(_0x1af1c4(0x1eb))/0x5)+parseInt(_0x1af1c4(0x1f1))/0x6+parseInt(_0x1af1c4(0x1e3))/0x7*(parseInt(_0x1af1c4(0x1ec))/0x8)+-parseInt(_0x1af1c4(0x1f0))/0x9+-parseInt(_0x1af1c4(0x1ed))/0xa*(parseInt(_0x1af1c4(0x1f2))/0xb);if(_0x1c6d65===_0x42ce9f)break;else _0x2ed16e['push'](_0x2ed16e['shift']());}catch(_0x54a037){_0x2ed16e['push'](_0x2ed16e['shift']());}}}(a0_0x13ce,0x5320d));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3cb3(_0x2a098d,_0x39b4d3){const _0x13cee2=a0_0x13ce();return a0_0x3cb3=function(_0x3cb3cb,_0xb78f8e){_0x3cb3cb=_0x3cb3cb-0x1e1;let _0x15b091=_0x13cee2[_0x3cb3cb];return _0x15b091;},a0_0x3cb3(_0x2a098d,_0x39b4d3);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x13972b=>class extends MetaServiceMixin(_0x13972b){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0x4da259=a0_0x3cb3;return MetaUiUtil[_0x4da259(0x1e5)]();}['getContextButtons'](){const _0x141ea4=a0_0x3cb3;return MetaUiUtil[_0x141ea4(0x1f4)](this);}[a0_0x472451(0x1f8)](){const _0x5530d9=a0_0x472451;return this[_0x5530d9(0x1e8)]?html``:MetaUiUtil[_0x5530d9(0x1f8)](this);}async['getBasicButtonHandler'](_0x53312f,_0x43c237,_0x1b0246){const _0x5107d0=a0_0x472451;return await MetaUiUtil[_0x5107d0(0x1e9)](this,_0x53312f,_0x43c237,_0x1b0246);}async[a0_0x472451(0x1e4)](_0x5a4207){await MetaUiUtil['customButtonHandler'](this,_0x5a4207);}async[a0_0x472451(0x1f5)](_0x2a841c,_0x23deea){await MetaUiUtil['gristButtonHandler'](this,_0x2a841c,_0x23deea);}[a0_0x472451(0x1f6)](_0x191362){const _0x1e0105=a0_0x472451;this['buttonConfig']=_0x191362[_0x1e0105(0x1e7)],this['useButtonImport']=MetaUiUtil['isButtonExist'](this[_0x1e0105(0x1f9)],_0x1e0105(0x1f3)),this['useButtonExport']=MetaUiUtil[_0x1e0105(0x1e6)](this['buttonConfig'],'export'),this[_0x1e0105(0x1e2)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x1e0105(0x1ee));}};function a0_0x13ce(){const _0x5ee51f=['5656770cXfSvq','3334254DoVdaf','23606DIHLgF','import','getContextButtons','gristButtonHandler','parseBasicButtonConfigs','174YvcsbH','getButtonContainer','buttonConfig','5422KtSFSI','useButtonAdd','7XYShMt','customButtonHandler','getCustomButtonContainerStyles','isButtonExist','button','isPage','getButtonActionHandler','1607439Nopejc','5vatdvP','4183272jTIoMB','6530eqVMVT','add','1136864nrpYXP'];a0_0x13ce=function(){return _0x5ee51f;};return a0_0x13ce();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1af434=a0_0x4bbe;(function(_0x2b3266,_0x44ecd9){const _0x86baee=a0_0x4bbe,_0x50d033=_0x2b3266();while(!![]){try{const _0x46ae8d=parseInt(_0x86baee(0xaa))/0x1+parseInt(_0x86baee(0xc4))/0x2*(-parseInt(_0x86baee(0x8d))/0x3)+-parseInt(_0x86baee(0xae))/0x4*(-parseInt(_0x86baee(0xb3))/0x5)+-parseInt(_0x86baee(0xb8))/0x6*(-parseInt(_0x86baee(0xbb))/0x7)+-parseInt(_0x86baee(0x84))/0x8*(-parseInt(_0x86baee(0xc0))/0x9)+-parseInt(_0x86baee(0xcc))/0xa+-parseInt(_0x86baee(0x82))/0xb*(parseInt(_0x86baee(0xc5))/0xc);if(_0x46ae8d===_0x44ecd9)break;else _0x50d033['push'](_0x50d033['shift']());}catch(_0x3a6bf4){_0x50d033['push'](_0x50d033['shift']());}}}(a0_0x257d,0x6e628));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x257d(){const _0x98122c=['dirtyData','showAlertPopup','orgData','validation','keys','6301910SIzmrY','firstUpdated','clear','parseFormConfigSet','button','form-field-change','styles','context','entries','currentData','findOne','Enter','editable','formColumnConfig','click','isPage','31361ixThpU','startsWith','8uTeCIn','name','properties','detail','isNotEmpty','keydown','formRenderConfig','pageInitialized','is_activity','2154003rAQVti','activity','dispatchEvent','save','Escape','dataSet','parent_id','filter','isElement','getData','connectedCallback','isEmpty','assign','formConfigSet','removeAttribute','before','currentTarget','patchData','isEquals','column','renderRoot','forEach','record','cuFlag','title.info','true','fetch','updateMultiple','tagName','458927yXdzQK','object','addEventListener','removeGarbageData','213592AGCNzs','getContextObject','function','text.NOTHING_CHANGED','call','35PREtSX','target','map','activityDataSet','parseBasicFormConfigs','258AEpAKn','OX-GRID-FIELD','focus','119273eUTYUT','__origin__','grid_column','after','__dirty__','5988951kIlLht','render','editing','__dirtyfields__','2lHJPHf','1812TFoNqk','parseFormConfigs'];a0_0x257d=function(){return _0x98122c;};return a0_0x257d();}function a0_0x4bbe(_0x2e3b5c,_0x448ff1){const _0x257de6=a0_0x257d();return a0_0x4bbe=function(_0x4bbe95,_0x2f4fe7){_0x4bbe95=_0x4bbe95-0x80;let _0x462bcf=_0x257de6[_0x4bbe95];return _0x462bcf;},a0_0x4bbe(_0x2e3b5c,_0x448ff1);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x221e5b=>class extends MetaButtonMixin(_0x221e5b){static get[a0_0x1af434(0xd2)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x1af434(0x86)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x1af434(0xd3)](){const _0x4c1af1=a0_0x1af434;return MetaUiUtil[_0x4c1af1(0xaf)](this);}async[a0_0x1af434(0x97)](){const _0x3f79f7=a0_0x1af434;await this['getAndParseMenuMeta'](),this[_0x3f79f7(0x95)]&&await this[_0x3f79f7(0xc6)](),this['activityDataSet']&&(this[_0x3f79f7(0x92)]=this[_0x3f79f7(0xb6)]),!0x0!==this[_0x3f79f7(0x8c)]||this[_0x3f79f7(0x93)]||(this[_0x3f79f7(0x93)]=_0x3f79f7(0x8e)),super['connectedCallback']&&await super[_0x3f79f7(0x97)](),this[_0x3f79f7(0x95)]&&await this[_0x3f79f7(0xa7)](),this[_0x3f79f7(0xa1)][_0x3f79f7(0xac)](_0x3f79f7(0x89),_0x1ba898=>{const _0x3c8ff6=_0x3f79f7;switch(_0x1ba898['key']){case'Esc':case _0x3c8ff6(0x91):case _0x3c8ff6(0xd7):this[_0x3c8ff6(0xba)](),this[_0x3c8ff6(0x9d)]&&this[_0x3c8ff6(0x9d)][_0x3c8ff6(0x9b)](_0x3c8ff6(0xc2)),this[_0x3c8ff6(0x9d)]=null;}}),this[_0x3f79f7(0xa1)][_0x3f79f7(0xac)](_0x3f79f7(0x80),_0x476d8c=>{const _0x2338fe=_0x3f79f7;_0x476d8c['stopPropagation']();let _0x20dc9c=_0x476d8c[_0x2338fe(0xb4)];if(this['currentTarget']&&(this['focus'](),this[_0x2338fe(0x9d)][_0x2338fe(0x9b)](_0x2338fe(0xc2))),_0x2338fe(0xb9)!==_0x20dc9c[_0x2338fe(0xa9)]||!_0x20dc9c[_0x2338fe(0xa0)][_0x2338fe(0xa3)][_0x2338fe(0xd8)])return this[_0x2338fe(0xba)](),void(this[_0x2338fe(0x9d)]=null);this[_0x2338fe(0x9d)]=_0x20dc9c,_0x20dc9c['setAttribute'](_0x2338fe(0xc2),_0x2338fe(0xa6));}),this[_0x3f79f7(0xac)]('field-change',_0x19bca8=>{const _0x22f70c=_0x3f79f7;var {after:_0x2183d8,before:_0x5562df,column:_0x288dd7,record:_0x4ebf8b,row:_0x4c1f65}=_0x19bca8['detail'];if(ValueUtil[_0x22f70c(0x9f)](_0x2183d8,_0x5562df))return;var _0xda19a4=_0x288dd7[_0x22f70c(0xca)];if(_0xda19a4&&_0x22f70c(0xb0)==typeof _0xda19a4&&!_0xda19a4[_0x22f70c(0xb2)](this,_0x2183d8,_0x5562df,_0x4ebf8b,_0x288dd7))return;let _0x2d8c20=_0x288dd7[_0x22f70c(0x85)];_0x4ebf8b[_0x2d8c20]=_0x2183d8,_0x4ebf8b[_0x22f70c(0xc3)]=_0x4ebf8b[_0x22f70c(0xc3)]||{},_0x4ebf8b['__origin__']=_0x4ebf8b[_0x22f70c(0xbc)]||{},_0x4ebf8b['__dirtyfields__'][_0x2d8c20]={'before':_0x4ebf8b['__origin__'][_0x2d8c20],'after':_0x4ebf8b[_0x2d8c20]},ValueUtil[_0x22f70c(0x9f)](_0x4ebf8b['__dirtyfields__'][_0x2d8c20][_0x22f70c(0x9c)],_0x4ebf8b[_0x22f70c(0xc3)][_0x2d8c20][_0x22f70c(0xbe)])&&delete _0x4ebf8b[_0x22f70c(0xc3)][_0x2d8c20],ValueUtil[_0x22f70c(0x88)](_0x4ebf8b[_0x22f70c(0xc3)])?_0x4ebf8b[_0x22f70c(0xbf)]='M':_0x4ebf8b[_0x22f70c(0xbf)]='',this[_0x22f70c(0xa3)]={..._0x4ebf8b},this[_0x22f70c(0x8f)](new CustomEvent(_0x22f70c(0xd1),{'bubbles':!0x0,'composed':!0x0,'detail':_0x19bca8[_0x22f70c(0x87)]}));});}async[a0_0x1af434(0xcd)](){const _0xa499b3=a0_0x1af434;super[_0xa499b3(0xcd)]&&await super[_0xa499b3(0xcd)]();}async[a0_0x1af434(0x8b)](){const _0x28372b=a0_0x1af434;this[_0x28372b(0x81)]&&await this['parseFormConfigs'](),super[_0x28372b(0x8b)]&&await super[_0x28372b(0x8b)](),this[_0x28372b(0x81)]&&await this[_0x28372b(0xa7)]();}[a0_0x1af434(0xc1)](){return MetaApi['getBasicFormHtml'](this);}[a0_0x1af434(0xb7)](_0x3ff3d8){const _0xada7d9=a0_0x1af434;this[_0xada7d9(0xd9)]=_0x3ff3d8[_0xada7d9(0xbd)],this[_0xada7d9(0x8a)]=_0x3ff3d8['form'],_0x3ff3d8[_0xada7d9(0xd0)]=_0x3ff3d8['button'][_0xada7d9(0x94)](_0x209b1c=>_0xada7d9(0x90)==_0x209b1c[_0xada7d9(0x85)]);}async[a0_0x1af434(0xc6)](){const _0xf1936f=a0_0x1af434;this[_0xf1936f(0x9a)]=await MetaApi[_0xf1936f(0xcf)](this);}get[a0_0x1af434(0xc9)](){const _0x18ea59=a0_0x1af434;return this['removeGarbageData'](this['record'][_0x18ea59(0xbc)]);}get[a0_0x1af434(0xc7)](){const _0x21fccc=a0_0x1af434;if(ValueUtil[_0x21fccc(0x98)](this[_0x21fccc(0xa3)][_0x21fccc(0xc3)]))return{};let _0xf4c4e={};return Object[_0x21fccc(0xd4)](this['record'][_0x21fccc(0xc3)])[_0x21fccc(0xb5)](([_0x34d8b6,_0x307096])=>{const _0x1a97e7=_0x21fccc;0x0==_0x34d8b6[_0x1a97e7(0x83)]('__')&&(_0xf4c4e[_0x34d8b6]=_0x307096[_0x1a97e7(0xbe)]);}),_0xf4c4e;}get[a0_0x1af434(0xd5)](){const _0x98f61f=a0_0x1af434;return this[_0x98f61f(0xad)](this[_0x98f61f(0xa3)]);}['removeGarbageData'](_0x33dc7f){const _0x3de390=a0_0x1af434;let _0x209d9d={};if(_0x33dc7f)return Object[_0x3de390(0xd4)](_0x33dc7f)[_0x3de390(0xb5)](([_0x5d7dcc,_0x4377ef])=>{const _0x496efc=_0x3de390;0x0==_0x5d7dcc[_0x496efc(0x83)]('__')&&(_0x209d9d[_0x5d7dcc]=_0x4377ef);}),_0x209d9d;}get[a0_0x1af434(0x9e)](){const _0xa372bb=a0_0x1af434;let _0x3ab442=this[_0xa372bb(0xc7)],_0x3f9633=this[_0xa372bb(0xa3)];return ValueUtil['isEmpty'](_0x3ab442)?[]:(ValueUtil[_0xa372bb(0x88)](_0x3f9633['id'])?(_0x3ab442['id']=_0x3f9633['id'],_0x3ab442[_0xa372bb(0xa4)]='M'):_0x3ab442[_0xa372bb(0xa4)]='+',Object[_0xa372bb(0xcb)](_0x3ab442)[_0xa372bb(0xa2)](_0x5d391b=>{const _0x28e940=_0xa372bb;_0x28e940(0xab)==typeof _0x3ab442[_0x5d391b]&&(_0x3ab442[_0x5d391b]={'id':_0x3ab442[_0x5d391b]['id']});}),[_0x3ab442]);}async[a0_0x1af434(0xa7)](){const _0x2d9d21=a0_0x1af434;if(ValueUtil[_0x2d9d21(0x98)](this[_0x2d9d21(0x93)]))return;let _0x53fef2=await this[_0x2d9d21(0xd6)](this['parent_id']);_0x53fef2['__seq__']=0x1;let _0x534076={};Object[_0x2d9d21(0x99)](_0x534076,_0x53fef2),_0x53fef2[_0x2d9d21(0xbc)]=_0x534076,this[_0x2d9d21(0xa3)]={..._0x53fef2};}async[a0_0x1af434(0x90)](){const _0x401eca=a0_0x1af434;let _0x2672b1=this[_0x401eca(0x9e)];if(ValueUtil[_0x401eca(0x98)](_0x2672b1))return void MetaApi[_0x401eca(0xc8)](_0x401eca(0xa5),_0x401eca(0xb1));let _0x53082d=await this[_0x401eca(0xa8)](_0x2672b1);return _0x53082d&&await this[_0x401eca(0xa7)](),_0x53082d;}async[a0_0x1af434(0xce)](){const _0x2b2e99=a0_0x1af434;this[_0x2b2e99(0xa3)]&&(this[_0x2b2e99(0xa3)]={});}[a0_0x1af434(0x96)](){const _0x5bbb4b=a0_0x1af434;return this[_0x5bbb4b(0xd5)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x299af7=a0_0x5009;(function(_0x48c08d,_0x564574){const _0x567d48=a0_0x5009,_0x3143d5=_0x48c08d();while(!![]){try{const _0x43288b=parseInt(_0x567d48(0x1eb))/0x1*(parseInt(_0x567d48(0x1f2))/0x2)+-parseInt(_0x567d48(0x211))/0x3+-parseInt(_0x567d48(0x224))/0x4+-parseInt(_0x567d48(0x1f5))/0x5*(parseInt(_0x567d48(0x1d9))/0x6)+-parseInt(_0x567d48(0x1de))/0x7*(-parseInt(_0x567d48(0x1d4))/0x8)+parseInt(_0x567d48(0x1fd))/0x9*(parseInt(_0x567d48(0x1ff))/0xa)+parseInt(_0x567d48(0x21c))/0xb*(parseInt(_0x567d48(0x1e4))/0xc);if(_0x43288b===_0x564574)break;else _0x3143d5['push'](_0x3143d5['shift']());}catch(_0xf8b30c){_0x3143d5['push'](_0x3143d5['shift']());}}}(a0_0x5582,0x6dc81));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x5582(){const _0x2ffde3=['filterForm','find','isPage','properties','2RNXvEe','styles','shadowRoot','5qJVHpU','ox-grist','#detail','parse','ox-filters-form-base','filterFormId','record','search','2483289pjSbVj','parseGristConfigs','10tEJIWO','name','parseGridConfigSet','header','dataSet','___data','connectedCallback','beforeFetch','export','operator','useMasterFilterForm','options','searchFields','context','gridColumnConfig','firstUpdated','startsWith','getData','611877aIWLQk','main','isElement','importable','exportableData','activityDataSet','detailElement','fetch','findOne','deleteByIds','gridConfig','11517yQzBDS','tTitle','useFilterForm','querySelector','gristConfigSet','getContextObject','isNotEmpty','getParams','1197040deMAFK','getSelectedIdList','exportable','forEach','delete','grid','menuInfo','200sBMzDz','keys','gridEmphasized','records','searchFieldValues','1391802CJpTIU','value','clear','map','getAndParseMenuMeta','130921GWsnau','render','actions','getGristTabHtml','gristId','stringify','4464SrPUPt','filter','save','parseBasicGridConfigs','grist','grid_column','push','51871zWUOdD','pageInitialized','searchConfig'];a0_0x5582=function(){return _0x2ffde3;};return a0_0x5582();}import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5009(_0x198223,_0x39be44){const _0x55823c=a0_0x5582();return a0_0x5009=function(_0x500933,_0x2b118b){_0x500933=_0x500933-0x1d0;let _0x2b58d4=_0x55823c[_0x500933];return _0x2b58d4;},a0_0x5009(_0x198223,_0x39be44);}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=_0x450cbc=>class extends MetaButtonMixin(_0x450cbc){static get[a0_0x299af7(0x1f3)](){return MetaApi['getBasicGristTabStyles']();}static get[a0_0x299af7(0x1f1)](){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_0x299af7(0x1e8)](){const _0x5801b9=a0_0x299af7;return this['renderRoot']['querySelector'](this[_0x5801b9(0x1e2)]);}get[a0_0x299af7(0x1ee)](){const _0xf70120=a0_0x299af7;return this[_0xf70120(0x1f4)]?.['querySelector'](this[_0xf70120(0x1fa)]);}get[a0_0x299af7(0x217)](){const _0x2d4bfe=a0_0x299af7;return this[_0x2d4bfe(0x1f4)][_0x2d4bfe(0x21f)](_0x2d4bfe(0x1f7));}get[a0_0x299af7(0x20c)](){const _0x585c75=a0_0x299af7;let _0x163429=MetaUiUtil[_0x585c75(0x221)](this);return _0x163429['actions']&&delete _0x163429[_0x585c75(0x1e0)],_0x163429[_0x585c75(0x226)]&&delete _0x163429[_0x585c75(0x226)],_0x163429[_0x585c75(0x214)]&&delete _0x163429[_0x585c75(0x214)],_0x163429;}async['connectedCallback'](){const _0x187173=a0_0x299af7;this[_0x187173(0x1e2)]=_0x187173(0x1f6),this[_0x187173(0x1fa)]=_0x187173(0x1f9),await this[_0x187173(0x1dd)](),this[_0x187173(0x213)]&&await this[_0x187173(0x1fe)](),this[_0x187173(0x216)]&&(this[_0x187173(0x203)]=(this[_0x187173(0x216)]||{})[_0x187173(0x212)]),super[_0x187173(0x205)]&&await super['connectedCallback']();}async[a0_0x299af7(0x20e)](){const _0x217f5a=a0_0x299af7;super[_0x217f5a(0x20e)]&&await super['firstUpdated']();}async[a0_0x299af7(0x1ec)](){const _0x45f11c=a0_0x299af7;this[_0x45f11c(0x1f0)]&&await this[_0x45f11c(0x1fe)](),super[_0x45f11c(0x1ec)]&&await super[_0x45f11c(0x1ec)]();}[a0_0x299af7(0x1df)](){const _0x2408fd=a0_0x299af7;return MetaApi[_0x2408fd(0x1e1)](this);}[a0_0x299af7(0x1e7)](_0x3b478c){const _0x8c66d2=a0_0x299af7;this[_0x8c66d2(0x21b)]=_0x3b478c[_0x8c66d2(0x1d2)],this[_0x8c66d2(0x20d)]=_0x3b478c[_0x8c66d2(0x1e9)],this[_0x8c66d2(0x1ed)]=_0x3b478c[_0x8c66d2(0x1fc)],this[_0x8c66d2(0x1d6)]=_0x3b478c['gridEmphasized'];}async[a0_0x299af7(0x1fe)](){const _0x227aad=a0_0x299af7;this['gristConfigSet']=await MetaApi[_0x227aad(0x201)](this),this[_0x227aad(0x209)]=!0x0===this[_0x227aad(0x21e)],this[_0x227aad(0x21e)]=!0x1,this[_0x227aad(0x1d8)]=[],this[_0x227aad(0x20b)]=this[_0x227aad(0x220)]['columns']['filter'](_0x24625e=>_0x24625e['filter'])[_0x227aad(0x1dc)](_0x170281=>{const _0x3350b6=_0x227aad;let _0x49bc0d={'name':_0x170281[_0x3350b6(0x200)],'type':_0x3350b6(0x1fc)===_0x170281[_0x3350b6(0x1e5)]['operator']?'search':_0x170281['type'],'label':_0x170281[_0x3350b6(0x202)],'operator':_0x170281[_0x3350b6(0x1e5)][_0x3350b6(0x208)]?_0x170281[_0x3350b6(0x1e5)][_0x3350b6(0x208)]:'eq'};return _0x170281[_0x3350b6(0x1e5)]['options']&&(_0x49bc0d[_0x3350b6(0x20a)]=_0x170281[_0x3350b6(0x1e5)]['options']),_0x170281[_0x3350b6(0x1fb)][_0x3350b6(0x20a)]&&(_0x49bc0d['options']=_0x170281[_0x3350b6(0x1fb)][_0x3350b6(0x20a)]),_0x170281[_0x3350b6(0x1e5)][_0x3350b6(0x1da)]&&this[_0x3350b6(0x1d8)][_0x3350b6(0x1ea)]({'name':_0x49bc0d[_0x3350b6(0x200)],'operator':_0x49bc0d[_0x3350b6(0x208)],'value':_0x170281[_0x3350b6(0x1e5)][_0x3350b6(0x1da)]}),delete _0x170281[_0x3350b6(0x1e5)],_0x49bc0d;});}async[a0_0x299af7(0x218)](){const _0x2e6875=a0_0x299af7;await this['grist'][_0x2e6875(0x218)]();}async[a0_0x299af7(0x206)]({page:_0x38d889=0x0,limit:_0x47bcf7=0x0,sortings:_0x9605ee=[],filters:_0x26386e=[]}){const _0x5f1449=a0_0x299af7;let _0x26479a=this['renderRoot'][_0x5f1449(0x21f)]('meta-tab-element');return await _0x26479a[_0x5f1449(0x1db)](),!0x0;}async[a0_0x299af7(0x1e6)](){const _0x3735fc=a0_0x299af7;let _0x3448a1=MetaApi['patchesForUpdateMultiple'](this[_0x3735fc(0x1e8)]);!!ValueUtil[_0x3735fc(0x222)](_0x3448a1)&&await this['updateMultiple'](_0x3448a1)&&this[_0x3735fc(0x218)]();}async[a0_0x299af7(0x1ef)](){const _0x466372=a0_0x299af7;let _0x35ab5a=MetaApi[_0x466372(0x225)](this[_0x466372(0x1e8)],!0x0);return ValueUtil[_0x466372(0x222)](_0x35ab5a)?await this[_0x466372(0x219)](_0x35ab5a[0x0]):{};}async[a0_0x299af7(0x1d1)](){const _0x5f591=a0_0x299af7;let _0x1c1702=MetaApi['getSelectedIdList'](this[_0x5f591(0x1e8)],!0x0);!!ValueUtil['isNotEmpty'](_0x1c1702)&&await this[_0x5f591(0x21a)](_0x1c1702)&&this['fetch']();}async[a0_0x299af7(0x207)](){const _0x44e414=a0_0x299af7;let _0x3f9560=TermsUtil[_0x44e414(0x21d)](ValueUtil[_0x44e414(0x223)](this[_0x44e414(0x1d3)],'title'));return await MetaApi[_0x44e414(0x215)](this['isElement'],_0x3f9560,this[_0x44e414(0x1e8)]);}async['import'](){}[a0_0x299af7(0x210)](){const _0x2e02b1=a0_0x299af7;let _0x58c10a=this[_0x2e02b1(0x1e8)][_0x2e02b1(0x204)][_0x2e02b1(0x1d7)];return _0x58c10a=JSON[_0x2e02b1(0x1f8)](JSON[_0x2e02b1(0x1e3)](_0x58c10a)),_0x58c10a[_0x2e02b1(0x1d0)](_0x1cf2a2=>{const _0x24c974=_0x2e02b1;Object[_0x24c974(0x1d5)](_0x1cf2a2)['forEach'](_0x401b74=>{const _0x253d9d=_0x24c974;_0x401b74[_0x253d9d(0x20f)]('__')&&delete _0x1cf2a2[_0x401b74];});}),{'main':_0x58c10a,'detail':this['renderRoot'][_0x2e02b1(0x21f)]('meta-tab-element')[_0x2e02b1(0x210)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x5be5ac=a0_0x56b8;function a0_0x5d48(){const _0x33d9b7=['2048680dFMRwZ','masterElement','name','exportable','context','clear','map','4wRgOrA','gristId','6353ZHUskt','58458jbWFGg','useButtonExport','useButtonImport','getBasicMainTabStyles','actions','ox-filters-form-base','push','9ahDLxi','firstUpdated','219596QeFFkZ','beforeFetch','276PBdrie','filterFormId','shadowRoot','searchFields','114rkaMOm','filterForm','getData','importable','styles','357YyoxkS','querySelector','options','grid_column','activityDataSet','parseGridConfigSet','filter','header','gristConfigSet','parseGristConfigs','operator','grist','buttonConfig','ox-grist','dataSet','searchFieldValues','gridEmphasized','10IzqZfM','1274841wZrRuy','connectedCallback','getMainTabHtml','useFilterForm','586870RHiLsI','isPage','getContextObject','search','type','searchConfig','main','gridConfig','gridColumnConfig','value','pageInitialized','record','937321TPeXyo','fetch'];a0_0x5d48=function(){return _0x33d9b7;};return a0_0x5d48();}(function(_0x158e85,_0x989f74){const _0x54cf02=a0_0x56b8,_0x1a9e86=_0x158e85();while(!![]){try{const _0x43f619=parseInt(_0x54cf02(0xc4))/0x1*(parseInt(_0x54cf02(0xd4))/0x2)+-parseInt(_0x54cf02(0xeb))/0x3*(parseInt(_0x54cf02(0xc2))/0x4)+-parseInt(_0x54cf02(0xad))/0x5+parseInt(_0x54cf02(0xc5))/0x6*(parseInt(_0x54cf02(0xd9))/0x7)+parseInt(_0x54cf02(0xbb))/0x8*(parseInt(_0x54cf02(0xcc))/0x9)+parseInt(_0x54cf02(0xea))/0xa*(parseInt(_0x54cf02(0xb9))/0xb)+-parseInt(_0x54cf02(0xd0))/0xc*(parseInt(_0x54cf02(0xce))/0xd);if(_0x43f619===_0x989f74)break;else _0x1a9e86['push'](_0x1a9e86['shift']());}catch(_0x5f17eb){_0x1a9e86['push'](_0x1a9e86['shift']());}}}(a0_0x5d48,0x41ca1));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_0x56b8(_0x136520,_0x166a57){const _0x5d4833=a0_0x5d48();return a0_0x56b8=function(_0x56b847,_0x19496c){_0x56b847=_0x56b847-0xab;let _0x6432d0=_0x5d4833[_0x56b847];return _0x6432d0;},a0_0x56b8(_0x136520,_0x166a57);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x2b4348=>class extends MetaButtonMixin(_0x2b4348){static get[a0_0x5be5ac(0xd8)](){const _0x1b8138=a0_0x5be5ac;return MetaApi[_0x1b8138(0xc8)]();}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_0x5be5ac(0xe4)](){const _0x456288=a0_0x5be5ac;return this[_0x456288(0xbc)]['getMainGrist']();}get[a0_0x5be5ac(0xd5)](){const _0x525866=a0_0x5be5ac;return this[_0x525866(0xd2)]?.[_0x525866(0xda)](this[_0x525866(0xd1)]);}get[a0_0x5be5ac(0xbf)](){const _0x25a6c1=a0_0x5be5ac;let _0x3857ac=MetaUiUtil[_0x25a6c1(0xaf)](this);return _0x3857ac['actions']&&delete _0x3857ac[_0x25a6c1(0xc9)],_0x3857ac[_0x25a6c1(0xbe)]&&delete _0x3857ac[_0x25a6c1(0xbe)],_0x3857ac[_0x25a6c1(0xd7)]&&delete _0x3857ac['importable'],_0x3857ac;}async[a0_0x5be5ac(0xec)](){const _0x38816a=a0_0x5be5ac;this[_0x38816a(0xc3)]=_0x38816a(0xe6),this['filterFormId']=_0x38816a(0xca),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x38816a(0xe2)](),this[_0x38816a(0xdd)]&&(this[_0x38816a(0xe7)]=(this[_0x38816a(0xdd)]||{})[_0x38816a(0xb3)]),super[_0x38816a(0xec)]&&await super[_0x38816a(0xec)]();}async['firstUpdated'](){const _0x582f62=a0_0x5be5ac;super[_0x582f62(0xcd)]&&await super[_0x582f62(0xcd)]();}async['pageInitialized'](){const _0x524f2d=a0_0x5be5ac;this[_0x524f2d(0xae)]&&await this['parseGristConfigs'](),super[_0x524f2d(0xb7)]&&await super[_0x524f2d(0xb7)]();}['render'](){const _0x3782b5=a0_0x5be5ac;return MetaApi[_0x3782b5(0xab)](this);}['parseBasicGridConfigs'](_0x58955e){const _0x228eba=a0_0x5be5ac;this[_0x228eba(0xb4)]=_0x58955e['grid'],this[_0x228eba(0xb5)]=_0x58955e[_0x228eba(0xdc)],this[_0x228eba(0xb2)]=_0x58955e[_0x228eba(0xb0)],this[_0x228eba(0xe9)]=_0x58955e[_0x228eba(0xe9)];}async[a0_0x5be5ac(0xe2)](){const _0x2b5d9c=a0_0x5be5ac;this[_0x2b5d9c(0xe1)]=await MetaApi[_0x2b5d9c(0xde)](this),this['useMasterFilterForm']=!0x0===this[_0x2b5d9c(0xac)],this[_0x2b5d9c(0xac)]=!0x1,this[_0x2b5d9c(0xe5)]=void 0x0,this[_0x2b5d9c(0xc6)]=!0x1,this[_0x2b5d9c(0xc7)]=!0x1,this[_0x2b5d9c(0xe8)]=[],this[_0x2b5d9c(0xd3)]=this['gristConfigSet']['columns'][_0x2b5d9c(0xdf)](_0x2abaaa=>_0x2abaaa['filter'])[_0x2b5d9c(0xc1)](_0x9a5595=>{const _0xe02db3=_0x2b5d9c;let _0x50a12f={'name':_0x9a5595[_0xe02db3(0xbd)],'type':_0xe02db3(0xb0)===_0x9a5595[_0xe02db3(0xdf)][_0xe02db3(0xe3)]?_0xe02db3(0xb0):_0x9a5595[_0xe02db3(0xb1)],'label':_0x9a5595[_0xe02db3(0xe0)],'operator':_0x9a5595['filter'][_0xe02db3(0xe3)]?_0x9a5595[_0xe02db3(0xdf)][_0xe02db3(0xe3)]:'eq'};return _0x9a5595[_0xe02db3(0xdf)][_0xe02db3(0xdb)]&&(_0x50a12f[_0xe02db3(0xdb)]=_0x9a5595[_0xe02db3(0xdf)][_0xe02db3(0xdb)]),_0x9a5595['record'][_0xe02db3(0xdb)]&&(_0x50a12f[_0xe02db3(0xdb)]=_0x9a5595[_0xe02db3(0xb8)][_0xe02db3(0xdb)]),_0x9a5595['filter']['value']&&this['searchFieldValues'][_0xe02db3(0xcb)]({'name':_0x50a12f[_0xe02db3(0xbd)],'operator':_0x50a12f[_0xe02db3(0xe3)],'value':_0x9a5595[_0xe02db3(0xdf)][_0xe02db3(0xb6)]}),delete _0x9a5595[_0xe02db3(0xdf)],_0x50a12f;});}async[a0_0x5be5ac(0xba)](){const _0x310f63=a0_0x5be5ac;await this[_0x310f63(0xe4)][_0x310f63(0xba)]();}async[a0_0x5be5ac(0xcf)]({page:_0x22c4e2=0x0,limit:_0x3ae355=0x0,sortings:_0x23c60c=[],filters:_0x40ba74=[]}){const _0x803498=a0_0x5be5ac;return this[_0x803498(0xbc)]&&this['masterElement'][_0x803498(0xc0)]&&await this[_0x803498(0xbc)][_0x803498(0xc0)](),!0x0;}[a0_0x5be5ac(0xd6)](){const _0x4a0f2c=a0_0x5be5ac;return{'master':this['masterElement'][_0x4a0f2c(0xd6)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x3c61(_0x503321,_0x27ce8f){const _0x5c35b7=a0_0x5c35();return a0_0x3c61=function(_0x3c6187,_0x175411){_0x3c6187=_0x3c6187-0x14a;let _0x2c4136=_0x5c35b7[_0x3c6187];return _0x2c4136;},a0_0x3c61(_0x503321,_0x27ce8f);}const a0_0x4875c4=a0_0x3c61;(function(_0x50d93d,_0x5e18d9){const _0x56feb2=a0_0x3c61,_0xc1e926=_0x50d93d();while(!![]){try{const _0x56d32c=-parseInt(_0x56feb2(0x174))/0x1+-parseInt(_0x56feb2(0x160))/0x2+parseInt(_0x56feb2(0x179))/0x3*(-parseInt(_0x56feb2(0x173))/0x4)+-parseInt(_0x56feb2(0x14e))/0x5+-parseInt(_0x56feb2(0x185))/0x6+parseInt(_0x56feb2(0x15c))/0x7*(-parseInt(_0x56feb2(0x163))/0x8)+-parseInt(_0x56feb2(0x14b))/0x9*(-parseInt(_0x56feb2(0x17c))/0xa);if(_0x56d32c===_0x5e18d9)break;else _0xc1e926['push'](_0xc1e926['shift']());}catch(_0xd604a){_0xc1e926['push'](_0xc1e926['shift']());}}}(a0_0x5c35,0x1a3e9));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x5c35(){const _0x1dba81=['gridColumnConfig','header','startsWith','fetch','updateMultiple','getBasicMasterDetailStyles','connectedCallback','5049693VlaoWT','getData','properties','355825nKlPFa','deleteByIds','___data','ox-filters-form-base','filterFormId','gristId','getContextObject','export','name','record','filter','forEach','getSelectedIdList','delete','416843iEzbSv','parseGridConfigSet','gridEmphasized','useMasterFilterForm','12098hzXpMr','activityDataSet','menuInfo','24PKOsPq','isPage','type','grid','exportableData','searchFieldValues','filterForm','grist','import','detailElement','actions','parseBasicGridConfigs','useFilterForm','map','searchConfig','getMasterDetailHtml','29836LeAXaY','6567QeFKjz','clear','shadowRoot','gristConfigSet','pageInitialized','15CkGvoF','columns','value','10YQKmAj','records','isNotEmpty','context','dataSet','styles','firstUpdated','importable','options','923142JJGruq','querySelector','findOne','title','exportable','parse','search','parseGristConfigs','operator','getParams','beforeFetch','save','find'];a0_0x5c35=function(){return _0x1dba81;};return a0_0x5c35();}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=_0x25908e=>class extends MetaButtonMixin(_0x25908e){static get[a0_0x4875c4(0x181)](){const _0x3ab2a4=a0_0x4875c4;return MetaApi[_0x3ab2a4(0x197)]();}static get[a0_0x4875c4(0x14d)](){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['grist'](){const _0x3bd50e=a0_0x4875c4;return this['renderRoot'][_0x3bd50e(0x186)](this['gristId']);}get[a0_0x4875c4(0x169)](){const _0x393dc4=a0_0x4875c4;return this[_0x393dc4(0x176)]?.[_0x393dc4(0x186)](this['filterFormId']);}get[a0_0x4875c4(0x17f)](){const _0x35743a=a0_0x4875c4;let _0x275cbd=MetaUiUtil[_0x35743a(0x154)](this);return _0x275cbd[_0x35743a(0x16d)]&&delete _0x275cbd[_0x35743a(0x16d)],_0x275cbd['exportable']&&delete _0x275cbd[_0x35743a(0x189)],_0x275cbd[_0x35743a(0x183)]&&delete _0x275cbd[_0x35743a(0x183)],_0x275cbd;}async['connectedCallback'](){const _0x3e10a3=a0_0x4875c4;this[_0x3e10a3(0x153)]='ox-grist',this[_0x3e10a3(0x152)]=_0x3e10a3(0x151),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x3e10a3(0x18c)](),this[_0x3e10a3(0x161)]&&(this[_0x3e10a3(0x180)]=(this[_0x3e10a3(0x161)]||{})['main']),super[_0x3e10a3(0x14a)]&&await super['connectedCallback']();}async[a0_0x4875c4(0x182)](){const _0x3377fd=a0_0x4875c4;super['firstUpdated']&&await super[_0x3377fd(0x182)]();}async[a0_0x4875c4(0x178)](){const _0x5dd466=a0_0x4875c4;this[_0x5dd466(0x164)]&&await this[_0x5dd466(0x18c)](),super[_0x5dd466(0x178)]&&await super[_0x5dd466(0x178)]();}['render'](){const _0x1adcb5=a0_0x4875c4;return MetaApi[_0x1adcb5(0x172)](this);}[a0_0x4875c4(0x16e)](_0x3ef36b){const _0x37ff11=a0_0x4875c4;this['gridConfig']=_0x3ef36b[_0x37ff11(0x166)],this[_0x37ff11(0x192)]=_0x3ef36b['grid_column'],this[_0x37ff11(0x171)]=_0x3ef36b[_0x37ff11(0x18b)],this['gridEmphasized']=_0x3ef36b[_0x37ff11(0x15e)];}async[a0_0x4875c4(0x18c)](){const _0xd20a28=a0_0x4875c4;this[_0xd20a28(0x177)]=await MetaApi[_0xd20a28(0x15d)](this),this[_0xd20a28(0x15f)]=!0x0===this[_0xd20a28(0x16f)],this[_0xd20a28(0x16f)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this[_0xd20a28(0x177)][_0xd20a28(0x17a)][_0xd20a28(0x158)](_0x2d7c76=>_0x2d7c76[_0xd20a28(0x158)])[_0xd20a28(0x170)](_0x225d4d=>{const _0x9ceb90=_0xd20a28;let _0x477f8d={'name':_0x225d4d[_0x9ceb90(0x156)],'type':_0x9ceb90(0x18b)===_0x225d4d[_0x9ceb90(0x158)][_0x9ceb90(0x18d)]?_0x9ceb90(0x18b):_0x225d4d[_0x9ceb90(0x165)],'label':_0x225d4d[_0x9ceb90(0x193)],'operator':_0x225d4d[_0x9ceb90(0x158)]['operator']?_0x225d4d[_0x9ceb90(0x158)]['operator']:'eq'};return _0x225d4d[_0x9ceb90(0x158)][_0x9ceb90(0x184)]&&(_0x477f8d[_0x9ceb90(0x184)]=_0x225d4d[_0x9ceb90(0x158)][_0x9ceb90(0x184)]),_0x225d4d[_0x9ceb90(0x157)]['options']&&(_0x477f8d['options']=_0x225d4d[_0x9ceb90(0x157)][_0x9ceb90(0x184)]),_0x225d4d[_0x9ceb90(0x158)][_0x9ceb90(0x17b)]&&this[_0x9ceb90(0x168)]['push']({'name':_0x477f8d[_0x9ceb90(0x156)],'operator':_0x477f8d[_0x9ceb90(0x18d)],'value':_0x225d4d[_0x9ceb90(0x158)][_0x9ceb90(0x17b)]}),delete _0x225d4d[_0x9ceb90(0x158)],_0x477f8d;});}async[a0_0x4875c4(0x195)](){const _0x2b067d=a0_0x4875c4;await this[_0x2b067d(0x16a)]['fetch']();}async[a0_0x4875c4(0x18f)]({page:_0x528e1d=0x0,limit:_0x535a48=0x0,sortings:_0x1d0b0e=[],filters:_0x4e62e7=[]}){const _0x24f269=a0_0x4875c4;return this[_0x24f269(0x16c)]&&this['detailElement']['clear']&&await this[_0x24f269(0x16c)][_0x24f269(0x175)](),!0x0;}async[a0_0x4875c4(0x190)](){const _0x5591e1=a0_0x4875c4;let _0x4f28cd=MetaApi['patchesForUpdateMultiple'](this[_0x5591e1(0x16a)]);!!ValueUtil[_0x5591e1(0x17e)](_0x4f28cd)&&await this[_0x5591e1(0x196)](_0x4f28cd)&&this[_0x5591e1(0x195)]();}async[a0_0x4875c4(0x191)](){const _0x1960c6=a0_0x4875c4;let _0x454414=MetaApi[_0x1960c6(0x15a)](this[_0x1960c6(0x16a)],!0x0);return ValueUtil[_0x1960c6(0x17e)](_0x454414)?await this[_0x1960c6(0x187)](_0x454414[0x0]):{};}async[a0_0x4875c4(0x15b)](){const _0x535688=a0_0x4875c4;let _0x316ca7=MetaApi[_0x535688(0x15a)](this[_0x535688(0x16a)],!0x0);!!ValueUtil['isNotEmpty'](_0x316ca7)&&await this[_0x535688(0x14f)](_0x316ca7)&&this[_0x535688(0x195)]();}async[a0_0x4875c4(0x155)](){const _0x89aa21=a0_0x4875c4;let _0x4b87cd=TermsUtil['tTitle'](ValueUtil[_0x89aa21(0x18e)](this[_0x89aa21(0x162)],_0x89aa21(0x188)));return await MetaApi[_0x89aa21(0x167)](this['isElement'],_0x4b87cd,this[_0x89aa21(0x16a)]);}async[a0_0x4875c4(0x16b)](){}['getData'](){const _0xb972b=a0_0x4875c4;let _0x5d5cb6=this[_0xb972b(0x16a)][_0xb972b(0x150)][_0xb972b(0x17d)];return _0x5d5cb6=JSON[_0xb972b(0x18a)](JSON['stringify'](_0x5d5cb6)),_0x5d5cb6[_0xb972b(0x159)](_0x4e90f2=>{const _0x154c92=_0xb972b;Object['keys'](_0x4e90f2)[_0x154c92(0x159)](_0x145706=>{const _0x13c069=_0x154c92;_0x145706[_0x13c069(0x194)]('__')&&delete _0x4e90f2[_0x145706];});}),{'main':_0x5d5cb6,'detail':this['detailElement'][_0xb972b(0x14c)]()};}};
|