@things-factory/meta-ui 6.1.15 → 6.1.17
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 +10 -10
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +10 -10
- 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-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/selector/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 +5 -5
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +2 -2
- 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/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 +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- 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
|
-
function
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x289dd3=a0_0x20d4;(function(_0xec4497,_0x8959d2){const _0x56fa14=a0_0x20d4,_0x3ac176=_0xec4497();while(!![]){try{const _0x1fbe2b=parseInt(_0x56fa14(0xa7))/0x1*(-parseInt(_0x56fa14(0xc6))/0x2)+parseInt(_0x56fa14(0xa3))/0x3*(-parseInt(_0x56fa14(0xa2))/0x4)+-parseInt(_0x56fa14(0xc1))/0x5+parseInt(_0x56fa14(0xba))/0x6*(-parseInt(_0x56fa14(0xc4))/0x7)+-parseInt(_0x56fa14(0xa8))/0x8*(-parseInt(_0x56fa14(0xb9))/0x9)+-parseInt(_0x56fa14(0xb8))/0xa*(-parseInt(_0x56fa14(0x97))/0xb)+-parseInt(_0x56fa14(0x9c))/0xc*(-parseInt(_0x56fa14(0xa9))/0xd);if(_0x1fbe2b===_0x8959d2)break;else _0x3ac176['push'](_0x3ac176['shift']());}catch(_0x26fe8e){_0x3ac176['push'](_0x3ac176['shift']());}}}(a0_0x4210,0xac757));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x4210(){const _0x1b5ac8=['keys','ox-filters-form','5489077OhNiHU','grid','ox-grist','gridConfig','records','60yEHfvO','isNotEmpty','menuInfo','filterForm','exportableData','grist','584ovwvSi','27447KxvLCr','getButtonContainer','forEach','parse','1qkSnfa','64pjOulu','9226009eJeDZq','isPage','title','grid_column','delete','styles','find','getParams','dataSet','___data','isElement','save','updateMultiple','startsWith','stringify','10pLjYMp','1375020vKjRlf','40506YpJBIr','gristId','getData','search','gristConfigSet','parseGristConfigs','gridColumnConfig','6703585DBTMxM','export','getAndParseMenuMeta','1099RClBeg','getSelectedIdList','1653886NQlrqf','connectedCallback','fetch','querySelector','parseBasicGridConfigs','activityDataSet','pageInitialized','firstUpdated','findOne'];a0_0x4210=function(){return _0x1b5ac8;};return a0_0x4210();}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';function a0_0x20d4(_0x207275,_0x1d23e9){const _0x421092=a0_0x4210();return a0_0x20d4=function(_0x20d41c,_0x80d020){_0x20d41c=_0x20d41c-0x97;let _0x350909=_0x421092[_0x20d41c];return _0x350909;},a0_0x20d4(_0x207275,_0x1d23e9);}export const MetaBasicGristMixin=_0x1dc313=>class extends MetaButtonMixin(_0x1dc313){static get[a0_0x289dd3(0xae)](){return MetaApi['getBasicGristStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x289dd3(0xa1)](){const _0x33eb2e=a0_0x289dd3;return this['renderRoot']?.[_0x33eb2e(0xc9)](this[_0x33eb2e(0xbb)]);}get[a0_0x289dd3(0x9f)](){const _0x11b9f3=a0_0x289dd3;return this['shadowRoot']?.[_0x11b9f3(0xc9)](this['filterFormId']);}get['context'](){return MetaUiUtil['getContextObject'](this);}async[a0_0x289dd3(0xc7)](){const _0xfa19c9=a0_0x289dd3;this[_0xfa19c9(0xbb)]=_0xfa19c9(0x99),this['filterFormId']=_0xfa19c9(0xd0),await this[_0xfa19c9(0xc3)](),this[_0xfa19c9(0xb3)]&&await this['parseGristConfigs'](),this[_0xfa19c9(0xcb)]&&(this[_0xfa19c9(0xb1)]=this['activityDataSet']),super[_0xfa19c9(0xc7)]&&await super[_0xfa19c9(0xc7)]();}async[a0_0x289dd3(0xcd)](){const _0x212b66=a0_0x289dd3;super[_0x212b66(0xcd)]&&await super[_0x212b66(0xcd)]();}async['pageInitialized'](){const _0x57d29a=a0_0x289dd3;this[_0x57d29a(0xaa)]&&await this[_0x57d29a(0xbf)](),super[_0x57d29a(0xcc)]&&await super['pageInitialized']();}['render'](){const _0x14abf8=a0_0x289dd3;return html`
|
|
2
|
+
${MetaApi['getBasicGristHtml'](this)}
|
|
3
|
+
${this['isPage']?html``:MetaUiUtil[_0x14abf8(0xa4)](this)}
|
|
4
|
+
`;}[a0_0x289dd3(0xca)](_0x74a0fb){const _0x54b888=a0_0x289dd3;this[_0x54b888(0x9a)]=_0x74a0fb[_0x54b888(0x98)],this[_0x54b888(0xc0)]=_0x74a0fb[_0x54b888(0xac)],this['searchConfig']=_0x74a0fb[_0x54b888(0xbd)];}async['parseGristConfigs'](){const _0x29ea4d=a0_0x289dd3;this[_0x29ea4d(0xbe)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x289dd3(0xc8)](){const _0x3fe3be=a0_0x289dd3;await this[_0x3fe3be(0xa1)][_0x3fe3be(0xc8)]();}async[a0_0x289dd3(0xb4)](){const _0x35cace=a0_0x289dd3;let _0x1a6529=MetaApi['patchesForUpdateMultiple'](this[_0x35cace(0xa1)]);!!ValueUtil[_0x35cace(0x9d)](_0x1a6529)&&await this[_0x35cace(0xb5)](_0x1a6529)&&this['fetch']();}async[a0_0x289dd3(0xaf)](){const _0x33edd2=a0_0x289dd3;let _0x35e399=MetaApi[_0x33edd2(0xc5)](this['grist'],!0x0);return ValueUtil[_0x33edd2(0x9d)](_0x35e399)?await this[_0x33edd2(0xce)](_0x35e399[0x0]):{};}async[a0_0x289dd3(0xad)](){const _0x5ef70b=a0_0x289dd3;let _0x2813bf=MetaApi['getSelectedIdList'](this[_0x5ef70b(0xa1)],!0x0);!!ValueUtil[_0x5ef70b(0x9d)](_0x2813bf)&&await this['deleteByIds'](_0x2813bf)&&this[_0x5ef70b(0xc8)]();}async[a0_0x289dd3(0xc2)](){const _0xb55e39=a0_0x289dd3;let _0x4880eb=TermsUtil['tTitle'](ValueUtil[_0xb55e39(0xb0)](this[_0xb55e39(0x9e)],_0xb55e39(0xab)));return await MetaApi[_0xb55e39(0xa0)](this[_0xb55e39(0xb3)],_0x4880eb,this[_0xb55e39(0xa1)]);}async['import'](){}async['clear'](){const _0x387d4b=a0_0x289dd3;this[_0x387d4b(0xa1)]&&(this[_0x387d4b(0xa1)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x289dd3(0xbc)](){const _0x551a90=a0_0x289dd3;let _0x5c4641=this[_0x551a90(0xa1)][_0x551a90(0xb2)][_0x551a90(0x9b)];return _0x5c4641=JSON[_0x551a90(0xa6)](JSON[_0x551a90(0xb7)](_0x5c4641)),_0x5c4641['forEach'](_0x1d360a=>{const _0x1c201f=_0x551a90;Object[_0x1c201f(0xcf)](_0x1d360a)[_0x1c201f(0xa5)](_0x26707c=>{const _0x5a0de1=_0x1c201f;_0x26707c[_0x5a0de1(0xb6)]('__')&&delete _0x1d360a[_0x26707c];});}),_0x5c4641;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x5768(){const _0x3a4de9=['35934EoiVnD','parseBasicButtonConfigs','6rcgsct','240120IICMyu','32222900sBuquN','3GrSrCu','11631536KPQjgz','gristButtonHandler','useButtonExport','import','export','9YRQutC','7772755lsdNFu','getCustomButtonContainerStyles','getButtonContainer','add','372368ERTUMA','buttonConfig','getContextButtons','3673904UTKHqP','useButtonAdd','isButtonExist','customButtonHandler'];a0_0x5768=function(){return _0x3a4de9;};return a0_0x5768();}const a0_0x377826=a0_0x12fc;(function(_0x59f6d2,_0x3ffef2){const _0x3cdd29=a0_0x12fc,_0x4808d3=_0x59f6d2();while(!![]){try{const _0x43d878=-parseInt(_0x3cdd29(0x115))/0x1*(-parseInt(_0x3cdd29(0x110))/0x2)+-parseInt(_0x3cdd29(0x113))/0x3+parseInt(_0x3cdd29(0x123))/0x4+-parseInt(_0x3cdd29(0x11c))/0x5*(parseInt(_0x3cdd29(0x112))/0x6)+-parseInt(_0x3cdd29(0x116))/0x7+parseInt(_0x3cdd29(0x120))/0x8*(parseInt(_0x3cdd29(0x11b))/0x9)+parseInt(_0x3cdd29(0x114))/0xa;if(_0x43d878===_0x3ffef2)break;else _0x4808d3['push'](_0x4808d3['shift']());}catch(_0x8c2679){_0x4808d3['push'](_0x4808d3['shift']());}}}(a0_0x5768,0xe6b4e));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x12fc(_0xcaa70,_0x3848c2){const _0x576897=a0_0x5768();return a0_0x12fc=function(_0x12fcde,_0x7f3eed){_0x12fcde=_0x12fcde-0x10f;let _0x35dbcd=_0x576897[_0x12fcde];return _0x35dbcd;},a0_0x12fc(_0xcaa70,_0x3848c2);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2b0410=>class extends MetaServiceMixin(_0x2b0410){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0xf000ed=a0_0x12fc;return MetaUiUtil[_0xf000ed(0x11d)]();}[a0_0x377826(0x122)](){const _0x5012c4=a0_0x377826;return MetaUiUtil[_0x5012c4(0x122)](this);}['getButtonContainer'](){const _0x182117=a0_0x377826;return this['isPage']?html``:MetaUiUtil[_0x182117(0x11e)](this);}async['getBasicButtonHandler'](_0x2bb81c,_0x5ea4bf,_0x8c36b7){return await MetaUiUtil['getButtonActionHandler'](this,_0x2bb81c,_0x5ea4bf,_0x8c36b7);}async[a0_0x377826(0x10f)](_0x36aa7f){const _0x4b3479=a0_0x377826;await MetaUiUtil[_0x4b3479(0x10f)](this,_0x36aa7f);}async[a0_0x377826(0x117)](_0x55f5a8,_0x35a6b5){const _0x18cae4=a0_0x377826;await MetaUiUtil[_0x18cae4(0x117)](this,_0x55f5a8,_0x35a6b5);}[a0_0x377826(0x111)](_0x4378bb){const _0x165975=a0_0x377826;this[_0x165975(0x121)]=_0x4378bb['button'],this['useButtonImport']=MetaUiUtil[_0x165975(0x125)](this[_0x165975(0x121)],_0x165975(0x119)),this[_0x165975(0x118)]=MetaUiUtil['isButtonExist'](this[_0x165975(0x121)],_0x165975(0x11a)),this[_0x165975(0x124)]=MetaUiUtil[_0x165975(0x125)](this[_0x165975(0x121)],_0x165975(0x11f));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x28bd07=a0_0xbe5e;function a0_0x3238(){const _0xe20423=['name','function','key','171468YZpCzf','142838lOCbAY','1019108dsSTlT','tagName','1074472dhxXTa','2260344aGaopt','target','editing','showAlertPopup','200hSlTKt','firstUpdated','cuFlag','isEquals','patchData','isEmpty','editable','removeAttribute','save','stopPropagation','focus','entries','3xgRkHt','after','is_activity','activityDataSet','click','record','parent_id','parseFormConfigSet','isPage','validation','detail','isNotEmpty','dataSet','isElement','keydown','__dirty__','formConfigSet','text.NOTHING_CHANGED','__origin__','getData','dirtyData','assign','5MbCqhl','context','properties','call','render','formRenderConfig','object','updateMultiple','styles','renderRoot','dispatchEvent','parseFormConfigs','clear','296395VBdLBV','addEventListener','connectedCallback','pageInitialized','button','__dirtyfields__','removeGarbageData','606400zEyUDs','getBasicFormHtml','currentTarget','fetch','startsWith','currentData','true','Escape','findOne','field-change'];a0_0x3238=function(){return _0xe20423;};return a0_0x3238();}(function(_0x657943,_0x3d4d86){const _0x1faf50=a0_0xbe5e,_0x1aeec7=_0x657943();while(!![]){try{const _0x4e0292=parseInt(_0x1faf50(0x187))/0x1+-parseInt(_0x1faf50(0x19c))/0x2*(parseInt(_0x1faf50(0x164))/0x3)+parseInt(_0x1faf50(0x19d))/0x4*(parseInt(_0x1faf50(0x17a))/0x5)+parseInt(_0x1faf50(0x1a0))/0x6+-parseInt(_0x1faf50(0x19f))/0x7+parseInt(_0x1faf50(0x1a4))/0x8*(-parseInt(_0x1faf50(0x19b))/0x9)+parseInt(_0x1faf50(0x18e))/0xa;if(_0x4e0292===_0x3d4d86)break;else _0x1aeec7['push'](_0x1aeec7['shift']());}catch(_0x1f7d2e){_0x1aeec7['push'](_0x1aeec7['shift']());}}}(a0_0x3238,0x46259));import{MetaApi}from'../utils/meta-api';function a0_0xbe5e(_0x32e5d3,_0x413cc5){const _0x3238c1=a0_0x3238();return a0_0xbe5e=function(_0xbe5e5e,_0x19a7ae){_0xbe5e5e=_0xbe5e5e-0x162;let _0x330f17=_0x3238c1[_0xbe5e5e];return _0x330f17;},a0_0xbe5e(_0x32e5d3,_0x413cc5);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x949e9c=>class extends MetaButtonMixin(_0x949e9c){static get[a0_0x28bd07(0x182)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x28bd07(0x17c)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x28bd07(0x17b)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x28bd07(0x189)](){const _0x3e4393=a0_0x28bd07;await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x3e4393(0x185)](),this[_0x3e4393(0x167)]&&(this[_0x3e4393(0x170)]=this['activityDataSet']),!0x0!==this[_0x3e4393(0x166)]||this['parent_id']||(this[_0x3e4393(0x16a)]='activity'),super[_0x3e4393(0x189)]&&await super['connectedCallback'](),this[_0x3e4393(0x171)]&&await this[_0x3e4393(0x191)](),this[_0x3e4393(0x183)][_0x3e4393(0x188)](_0x3e4393(0x172),_0xa4e9c1=>{const _0x40af76=_0x3e4393;switch(_0xa4e9c1[_0x40af76(0x19a)]){case'Esc':case _0x40af76(0x195):case'Enter':this[_0x40af76(0x162)](),this[_0x40af76(0x190)]&&this['currentTarget'][_0x40af76(0x1ab)]('editing'),this[_0x40af76(0x190)]=null;}}),this[_0x3e4393(0x183)]['addEventListener'](_0x3e4393(0x168),_0x5b142e=>{const _0x417ffe=_0x3e4393;_0x5b142e[_0x417ffe(0x1ad)]();let _0x491bff=_0x5b142e[_0x417ffe(0x1a1)];if(this[_0x417ffe(0x190)]&&(this[_0x417ffe(0x162)](),this[_0x417ffe(0x190)][_0x417ffe(0x1ab)]('editing')),'OX-GRID-FIELD'!==_0x491bff[_0x417ffe(0x19e)]||!_0x491bff['column'][_0x417ffe(0x169)][_0x417ffe(0x1aa)])return this['focus'](),void(this[_0x417ffe(0x190)]=null);this[_0x417ffe(0x190)]=_0x491bff,_0x491bff['setAttribute'](_0x417ffe(0x1a2),_0x417ffe(0x194));}),this[_0x3e4393(0x188)](_0x3e4393(0x197),_0x3ac2e1=>{const _0x43cbb7=_0x3e4393;var {after:_0x2583b1,before:_0x5a36aa,column:_0x25b9f4,record:_0x110c65,row:_0x2a056c}=_0x3ac2e1['detail'];if(ValueUtil[_0x43cbb7(0x1a7)](_0x2583b1,_0x5a36aa))return;var _0x49d3e9=_0x25b9f4[_0x43cbb7(0x16d)];if(_0x49d3e9&&_0x43cbb7(0x199)==typeof _0x49d3e9&&!_0x49d3e9[_0x43cbb7(0x17d)](this,_0x2583b1,_0x5a36aa,_0x110c65,_0x25b9f4))return;let _0x22544f=_0x25b9f4[_0x43cbb7(0x198)];_0x110c65[_0x22544f]=_0x2583b1,_0x110c65[_0x43cbb7(0x18c)]=_0x110c65[_0x43cbb7(0x18c)]||{},_0x110c65[_0x43cbb7(0x176)]=_0x110c65[_0x43cbb7(0x176)]||{},_0x110c65['__dirtyfields__'][_0x22544f]={'before':_0x110c65['__origin__'][_0x22544f],'after':_0x110c65[_0x22544f]},ValueUtil[_0x43cbb7(0x1a7)](_0x110c65[_0x43cbb7(0x18c)][_0x22544f]['before'],_0x110c65['__dirtyfields__'][_0x22544f][_0x43cbb7(0x165)])&&delete _0x110c65['__dirtyfields__'][_0x22544f],ValueUtil[_0x43cbb7(0x16f)](_0x110c65[_0x43cbb7(0x18c)])?_0x110c65[_0x43cbb7(0x173)]='M':_0x110c65[_0x43cbb7(0x173)]='',this[_0x43cbb7(0x169)]={..._0x110c65},this[_0x43cbb7(0x184)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x3ac2e1[_0x43cbb7(0x16e)]}));});}async[a0_0x28bd07(0x1a5)](){const _0x1a1257=a0_0x28bd07;super[_0x1a1257(0x1a5)]&&await super['firstUpdated']();}async[a0_0x28bd07(0x18a)](){const _0x5c879e=a0_0x28bd07;this[_0x5c879e(0x16c)]&&await this[_0x5c879e(0x185)](),super['pageInitialized']&&await super[_0x5c879e(0x18a)](),this['isPage']&&await this[_0x5c879e(0x191)]();}[a0_0x28bd07(0x17e)](){const _0x1b3484=a0_0x28bd07;return MetaApi[_0x1b3484(0x18f)](this);}['parseBasicFormConfigs'](_0x4ef5d8){const _0x532a2d=a0_0x28bd07;this['formColumnConfig']=_0x4ef5d8['grid_column'],this[_0x532a2d(0x17f)]=_0x4ef5d8['form'],_0x4ef5d8[_0x532a2d(0x18b)]=_0x4ef5d8[_0x532a2d(0x18b)]['filter'](_0x543899=>'save'==_0x543899['name']);}async[a0_0x28bd07(0x185)](){const _0x1dfde7=a0_0x28bd07;this[_0x1dfde7(0x174)]=await MetaApi[_0x1dfde7(0x16b)](this);}get['orgData'](){const _0x47d497=a0_0x28bd07;return this['removeGarbageData'](this['record'][_0x47d497(0x176)]);}get['dirtyData'](){const _0x22d7d5=a0_0x28bd07;if(ValueUtil['isEmpty'](this['record'][_0x22d7d5(0x18c)]))return{};let _0x225a7c={};return Object[_0x22d7d5(0x163)](this[_0x22d7d5(0x169)][_0x22d7d5(0x18c)])['map'](([_0x35182c,_0x40de2e])=>{const _0x43ab17=_0x22d7d5;0x0==_0x35182c[_0x43ab17(0x192)]('__')&&(_0x225a7c[_0x35182c]=_0x40de2e['after']);}),_0x225a7c;}get[a0_0x28bd07(0x193)](){const _0xf35c15=a0_0x28bd07;return this[_0xf35c15(0x18d)](this[_0xf35c15(0x169)]);}['removeGarbageData'](_0x3b7a35){const _0x51ce8d=a0_0x28bd07;let _0x379098={};if(_0x3b7a35)return Object[_0x51ce8d(0x163)](_0x3b7a35)['map'](([_0x9c44b0,_0xab6e51])=>{const _0x169382=_0x51ce8d;0x0==_0x9c44b0[_0x169382(0x192)]('__')&&(_0x379098[_0x9c44b0]=_0xab6e51);}),_0x379098;}get[a0_0x28bd07(0x1a8)](){const _0x5487e7=a0_0x28bd07;let _0x460cec=this[_0x5487e7(0x178)],_0x5684ee=this[_0x5487e7(0x169)];return ValueUtil['isEmpty'](_0x460cec)?[]:(ValueUtil[_0x5487e7(0x16f)](_0x5684ee['id'])?(_0x460cec['id']=_0x5684ee['id'],_0x460cec[_0x5487e7(0x1a6)]='M'):_0x460cec[_0x5487e7(0x1a6)]='+',Object['keys'](_0x460cec)['forEach'](_0x422ce4=>{const _0xf27dc3=_0x5487e7;_0xf27dc3(0x180)==typeof _0x460cec[_0x422ce4]&&(_0x460cec[_0x422ce4]={'id':_0x460cec[_0x422ce4]['id']});}),[_0x460cec]);}async[a0_0x28bd07(0x191)](){const _0x5778d3=a0_0x28bd07;if(ValueUtil[_0x5778d3(0x1a9)](this['parent_id']))return;let _0xadc465=await this[_0x5778d3(0x196)](this[_0x5778d3(0x16a)]);_0xadc465['__seq__']=0x1;let _0x34b24a={};Object[_0x5778d3(0x179)](_0x34b24a,_0xadc465),_0xadc465[_0x5778d3(0x176)]=_0x34b24a,this[_0x5778d3(0x169)]={..._0xadc465};}async[a0_0x28bd07(0x1ac)](){const _0x243576=a0_0x28bd07;let _0x4a6c3d=this[_0x243576(0x1a8)];if(ValueUtil[_0x243576(0x1a9)](_0x4a6c3d))return void MetaApi[_0x243576(0x1a3)]('title.info',_0x243576(0x175));let _0x3b5e9f=await this[_0x243576(0x181)](_0x4a6c3d);return _0x3b5e9f&&await this[_0x243576(0x191)](),_0x3b5e9f;}async[a0_0x28bd07(0x186)](){const _0x5ee38c=a0_0x28bd07;this[_0x5ee38c(0x169)]&&(this[_0x5ee38c(0x169)]={});}[a0_0x28bd07(0x177)](){const _0x5b9dc8=a0_0x28bd07;return this[_0x5b9dc8(0x193)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x33c47d=a0_0x1a1b;(function(_0x541f8e,_0x44e5b6){const _0x427f97=a0_0x1a1b,_0x3ae5cd=_0x541f8e();while(!![]){try{const _0x27a529=parseInt(_0x427f97(0xb4))/0x1*(-parseInt(_0x427f97(0x9d))/0x2)+parseInt(_0x427f97(0x94))/0x3*(parseInt(_0x427f97(0x7e))/0x4)+parseInt(_0x427f97(0x9a))/0x5*(parseInt(_0x427f97(0xa7))/0x6)+parseInt(_0x427f97(0x9e))/0x7+parseInt(_0x427f97(0xb9))/0x8*(parseInt(_0x427f97(0xc5))/0x9)+-parseInt(_0x427f97(0x92))/0xa*(-parseInt(_0x427f97(0xa1))/0xb)+parseInt(_0x427f97(0x85))/0xc*(-parseInt(_0x427f97(0x8c))/0xd);if(_0x27a529===_0x44e5b6)break;else _0x3ae5cd['push'](_0x3ae5cd['shift']());}catch(_0x4f7751){_0x3ae5cd['push'](_0x3ae5cd['shift']());}}}(a0_0x254f,0xe111c));function a0_0x1a1b(_0x64f545,_0x2c2c44){const _0x254fda=a0_0x254f();return a0_0x1a1b=function(_0x1a1bff,_0x927b7c){_0x1a1bff=_0x1a1bff-0x7a;let _0x4cb225=_0x254fda[_0x1a1bff];return _0x4cb225;},a0_0x1a1b(_0x64f545,_0x2c2c44);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x254f(){const _0xceea26=['menuInfo','getContextObject','filterFormId','grist','___data','find','isNotEmpty','findOne','gridConfig','2kXWjCb','#detail','exportable','header','beforeFetch','1464LaOQvG','actions','getAndParseMenuMeta','gridColumnConfig','useMasterFilterForm','stringify','keys','ox-filters-form-base','delete','querySelector','fetch','getBasicGristTabStyles','79965EXcXOk','connectedCallback','columns','shadowRoot','useFilterForm','styles','record','detailElement','name','301156GgsNEV','import','isPage','firstUpdated','records','parse','gristConfigSet','12804wtkVzC','activityDataSet','filter','pageInitialized','getGristTabHtml','meta-tab-element','searchConfig','53976QTxYmO','getData','parseGridConfigSet','parseGristConfigs','map','startsWith','5992430UlzPqX','dataSet','51SVLlnP','value','options','isElement','operator','searchFieldValues','55krjacI','importable','search','468876kaYDJL','4077353oIQnEN','gristId','renderRoot','22kcEQxx','parseBasicGridConfigs','searchFields','ox-grist','main','render','618606YPMyCZ','context','clear','title'];a0_0x254f=function(){return _0xceea26;};return a0_0x254f();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x2efdc8=>class extends MetaButtonMixin(_0x2efdc8){static get[a0_0x33c47d(0x7a)](){const _0x5ec4ca=a0_0x33c47d;return MetaApi[_0x5ec4ca(0xc4)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x3a4b50=a0_0x33c47d;return this[_0x3a4b50(0xa0)][_0x3a4b50(0xc2)](this[_0x3a4b50(0x9f)]);}get['filterForm'](){const _0x202b34=a0_0x33c47d;return this[_0x202b34(0xc8)]?.[_0x202b34(0xc2)](this[_0x202b34(0xad)]);}get[a0_0x33c47d(0x7c)](){const _0x16a719=a0_0x33c47d;return this[_0x16a719(0xc8)]['querySelector'](_0x16a719(0xb5));}get[a0_0x33c47d(0xa8)](){const _0x5ebd52=a0_0x33c47d;let _0xcd07f9=MetaUiUtil[_0x5ebd52(0xac)](this);return _0xcd07f9[_0x5ebd52(0xba)]&&delete _0xcd07f9['actions'],_0xcd07f9['exportable']&&delete _0xcd07f9[_0x5ebd52(0xb6)],_0xcd07f9['importable']&&delete _0xcd07f9[_0x5ebd52(0x9b)],_0xcd07f9;}async[a0_0x33c47d(0xc6)](){const _0x14075e=a0_0x33c47d;this[_0x14075e(0x9f)]=_0x14075e(0xa4),this[_0x14075e(0xad)]=_0x14075e(0xc0),await this[_0x14075e(0xbb)](),this['isElement']&&await this[_0x14075e(0x8f)](),this['activityDataSet']&&(this[_0x14075e(0x93)]=(this[_0x14075e(0x86)]||{})[_0x14075e(0xa5)]),super['connectedCallback']&&await super[_0x14075e(0xc6)]();}async['firstUpdated'](){const _0x533a4d=a0_0x33c47d;super['firstUpdated']&&await super[_0x533a4d(0x81)]();}async['pageInitialized'](){const _0x612b1b=a0_0x33c47d;this[_0x612b1b(0x80)]&&await this[_0x612b1b(0x8f)](),super[_0x612b1b(0x88)]&&await super['pageInitialized']();}[a0_0x33c47d(0xa6)](){const _0x48a2a0=a0_0x33c47d;return MetaApi[_0x48a2a0(0x89)](this);}[a0_0x33c47d(0xa2)](_0x476820){const _0x263b54=a0_0x33c47d;this[_0x263b54(0xb3)]=_0x476820['grid'],this[_0x263b54(0xbc)]=_0x476820['grid_column'],this[_0x263b54(0x8b)]=_0x476820[_0x263b54(0x9c)];}async['parseGristConfigs'](){const _0xd55225=a0_0x33c47d;this[_0xd55225(0x84)]=await MetaApi[_0xd55225(0x8e)](this),this[_0xd55225(0xbd)]=!0x0===this[_0xd55225(0xc9)],this[_0xd55225(0xc9)]=!0x1,this['searchFieldValues']=[],this[_0xd55225(0xa3)]=this[_0xd55225(0x84)][_0xd55225(0xc7)][_0xd55225(0x87)](_0x4873f2=>_0x4873f2[_0xd55225(0x87)])[_0xd55225(0x90)](_0x43b7fa=>{const _0x37c1cf=_0xd55225;let _0x2e2c42={'name':_0x43b7fa[_0x37c1cf(0x7d)],'type':'search'===_0x43b7fa[_0x37c1cf(0x87)][_0x37c1cf(0x98)]?'search':_0x43b7fa['type'],'label':_0x43b7fa[_0x37c1cf(0xb7)],'operator':_0x43b7fa[_0x37c1cf(0x87)][_0x37c1cf(0x98)]?_0x43b7fa[_0x37c1cf(0x87)]['operator']:'eq'};return _0x43b7fa['filter']['options']&&(_0x2e2c42[_0x37c1cf(0x96)]=_0x43b7fa[_0x37c1cf(0x87)][_0x37c1cf(0x96)]),_0x43b7fa[_0x37c1cf(0x7b)]['options']&&(_0x2e2c42[_0x37c1cf(0x96)]=_0x43b7fa[_0x37c1cf(0x7b)][_0x37c1cf(0x96)]),_0x43b7fa[_0x37c1cf(0x87)][_0x37c1cf(0x95)]&&this[_0x37c1cf(0x99)]['push']({'name':_0x2e2c42[_0x37c1cf(0x7d)],'operator':_0x2e2c42['operator'],'value':_0x43b7fa['filter'][_0x37c1cf(0x95)]}),delete _0x43b7fa[_0x37c1cf(0x87)],_0x2e2c42;});}async[a0_0x33c47d(0xc3)](){const _0x2ad7e3=a0_0x33c47d;await this['grist'][_0x2ad7e3(0xc3)]();}async[a0_0x33c47d(0xb8)]({page:_0x16a174=0x0,limit:_0x3ed35e=0x0,sortings:_0x4f853a=[],filters:_0xd9e7fb=[]}){const _0x48173e=a0_0x33c47d;let _0x244bfe=this[_0x48173e(0xa0)][_0x48173e(0xc2)](_0x48173e(0x8a));return await _0x244bfe[_0x48173e(0xa9)](),!0x0;}async['save'](){const _0x3a66f7=a0_0x33c47d;let _0x44140d=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x3a66f7(0xb1)](_0x44140d)&&await this['updateMultiple'](_0x44140d)&&this['fetch']();}async[a0_0x33c47d(0xb0)](){const _0x525437=a0_0x33c47d;let _0x54cd78=MetaApi['getSelectedIdList'](this[_0x525437(0xae)],!0x0);return ValueUtil[_0x525437(0xb1)](_0x54cd78)?await this[_0x525437(0xb2)](_0x54cd78[0x0]):{};}async[a0_0x33c47d(0xc1)](){const _0x4ab249=a0_0x33c47d;let _0x2f11c2=MetaApi['getSelectedIdList'](this[_0x4ab249(0xae)],!0x0);!!ValueUtil[_0x4ab249(0xb1)](_0x2f11c2)&&await this['deleteByIds'](_0x2f11c2)&&this[_0x4ab249(0xc3)]();}async['export'](){const _0x341f06=a0_0x33c47d;let _0x4ba555=TermsUtil['tTitle'](ValueUtil['getParams'](this[_0x341f06(0xab)],_0x341f06(0xaa)));return await MetaApi['exportableData'](this[_0x341f06(0x97)],_0x4ba555,this[_0x341f06(0xae)]);}async[a0_0x33c47d(0x7f)](){}['getData'](){const _0x288152=a0_0x33c47d;let _0x4cc4e3=this['grist'][_0x288152(0xaf)][_0x288152(0x82)];return _0x4cc4e3=JSON[_0x288152(0x83)](JSON[_0x288152(0xbe)](_0x4cc4e3)),_0x4cc4e3['forEach'](_0x490b47=>{const _0x5a66cd=_0x288152;Object[_0x5a66cd(0xbf)](_0x490b47)['forEach'](_0x59a9f6=>{const _0x346621=_0x5a66cd;_0x59a9f6[_0x346621(0x91)]('__')&&delete _0x490b47[_0x59a9f6];});}),{'main':_0x4cc4e3,'detail':this['renderRoot']['querySelector'](_0x288152(0x8a))[_0x288152(0x8d)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4849e2=a0_0x215a;function a0_0x215a(_0x632866,_0x1bf96e){const _0x86bbfb=a0_0x86bb();return a0_0x215a=function(_0x215ab2,_0x3ace87){_0x215ab2=_0x215ab2-0x116;let _0x4e65de=_0x86bbfb[_0x215ab2];return _0x4e65de;},a0_0x215a(_0x632866,_0x1bf96e);}(function(_0x3a212d,_0x403922){const _0x423935=a0_0x215a,_0x30b183=_0x3a212d();while(!![]){try{const _0x149a32=-parseInt(_0x423935(0x139))/0x1*(parseInt(_0x423935(0x140))/0x2)+parseInt(_0x423935(0x13e))/0x3*(parseInt(_0x423935(0x151))/0x4)+parseInt(_0x423935(0x12a))/0x5*(-parseInt(_0x423935(0x145))/0x6)+parseInt(_0x423935(0x14f))/0x7*(-parseInt(_0x423935(0x142))/0x8)+parseInt(_0x423935(0x14a))/0x9+parseInt(_0x423935(0x143))/0xa+parseInt(_0x423935(0x134))/0xb*(parseInt(_0x423935(0x132))/0xc);if(_0x149a32===_0x403922)break;else _0x30b183['push'](_0x30b183['shift']());}catch(_0x557b8e){_0x30b183['push'](_0x30b183['shift']());}}}(a0_0x86bb,0x81901));import{html}from'lit';function a0_0x86bb(){const _0x458a5b=['filter','20ZWrxkb','activityDataSet','1928LNcIlC','9522580QrnxDF','filterFormId','66xQLiCM','shadowRoot','options','parseGridConfigSet','search','273510BaVWIF','useButtonImport','useButtonExport','type','clear','23268DDxjXi','querySelector','12SEubGX','pageInitialized','parseBasicGridConfigs','firstUpdated','main','connectedCallback','grid','parseGristConfigs','useMasterFilterForm','fetch','styles','getMainTabHtml','searchFields','render','beforeFetch','getData','value','searchFieldValues','masterElement','exportable','searchConfig','18185iFgbft','getContextObject','context','operator','map','gridColumnConfig','header','grist','563964mLNUhe','ox-grist','22VDMrZo','ox-filters-form-base','grid_column','useFilterForm','name','3875LYBNVM','actions','importable','properties','buttonConfig','333888Dbveea'];a0_0x86bb=function(){return _0x458a5b;};return a0_0x86bb();}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=_0x58ece2=>class extends MetaButtonMixin(_0x58ece2){static get[a0_0x4849e2(0x11f)](){return MetaApi['getBasicMainTabStyles']();}static get[a0_0x4849e2(0x13c)](){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_0x4849e2(0x131)](){return this['masterElement']['getMainGrist']();}get['filterForm'](){const _0x25e2ad=a0_0x4849e2;return this[_0x25e2ad(0x146)]?.[_0x25e2ad(0x150)](this[_0x25e2ad(0x144)]);}get[a0_0x4849e2(0x12c)](){const _0x175393=a0_0x4849e2;let _0x36623a=MetaUiUtil[_0x175393(0x12b)](this);return _0x36623a[_0x175393(0x13a)]&&delete _0x36623a['actions'],_0x36623a[_0x175393(0x128)]&&delete _0x36623a['exportable'],_0x36623a[_0x175393(0x13b)]&&delete _0x36623a['importable'],_0x36623a;}async[a0_0x4849e2(0x11a)](){const _0x201f89=a0_0x4849e2;this['gristId']=_0x201f89(0x133),this[_0x201f89(0x144)]=_0x201f89(0x135),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x201f89(0x11c)](),this['activityDataSet']&&(this['dataSet']=(this[_0x201f89(0x141)]||{})[_0x201f89(0x119)]),super[_0x201f89(0x11a)]&&await super[_0x201f89(0x11a)]();}async['firstUpdated'](){const _0x3ba954=a0_0x4849e2;super[_0x3ba954(0x118)]&&await super['firstUpdated']();}async[a0_0x4849e2(0x116)](){const _0x459827=a0_0x4849e2;this['isPage']&&await this[_0x459827(0x11c)](),super['pageInitialized']&&await super[_0x459827(0x116)]();}[a0_0x4849e2(0x122)](){const _0x364e3e=a0_0x4849e2;return MetaApi[_0x364e3e(0x120)](this);}[a0_0x4849e2(0x117)](_0x170316){const _0x418044=a0_0x4849e2;this['gridConfig']=_0x170316[_0x418044(0x11b)],this[_0x418044(0x12f)]=_0x170316[_0x418044(0x136)],this[_0x418044(0x129)]=_0x170316[_0x418044(0x149)];}async[a0_0x4849e2(0x11c)](){const _0x5a43b0=a0_0x4849e2;this['gristConfigSet']=await MetaApi[_0x5a43b0(0x148)](this),this[_0x5a43b0(0x11d)]=!0x0===this[_0x5a43b0(0x137)],this[_0x5a43b0(0x137)]=!0x1,this[_0x5a43b0(0x13d)]=void 0x0,this[_0x5a43b0(0x14c)]=!0x1,this[_0x5a43b0(0x14b)]=!0x1,this[_0x5a43b0(0x126)]=[],this[_0x5a43b0(0x121)]=this['gristConfigSet']['columns'][_0x5a43b0(0x13f)](_0x41654f=>_0x41654f[_0x5a43b0(0x13f)])[_0x5a43b0(0x12e)](_0x5cbc9e=>{const _0x3bf24f=_0x5a43b0;let _0x1681fb={'name':_0x5cbc9e['name'],'type':'search'===_0x5cbc9e[_0x3bf24f(0x13f)][_0x3bf24f(0x12d)]?_0x3bf24f(0x149):_0x5cbc9e[_0x3bf24f(0x14d)],'label':_0x5cbc9e[_0x3bf24f(0x130)],'operator':_0x5cbc9e[_0x3bf24f(0x13f)]['operator']?_0x5cbc9e[_0x3bf24f(0x13f)][_0x3bf24f(0x12d)]:'eq'};return _0x5cbc9e[_0x3bf24f(0x13f)]['options']&&(_0x1681fb[_0x3bf24f(0x147)]=_0x5cbc9e[_0x3bf24f(0x13f)][_0x3bf24f(0x147)]),_0x5cbc9e['record'][_0x3bf24f(0x147)]&&(_0x1681fb[_0x3bf24f(0x147)]=_0x5cbc9e['record'][_0x3bf24f(0x147)]),_0x5cbc9e[_0x3bf24f(0x13f)][_0x3bf24f(0x125)]&&this[_0x3bf24f(0x126)]['push']({'name':_0x1681fb[_0x3bf24f(0x138)],'operator':_0x1681fb['operator'],'value':_0x5cbc9e[_0x3bf24f(0x13f)][_0x3bf24f(0x125)]}),delete _0x5cbc9e['filter'],_0x1681fb;});}async[a0_0x4849e2(0x11e)](){const _0x326a1e=a0_0x4849e2;await this['grist'][_0x326a1e(0x11e)]();}async[a0_0x4849e2(0x123)]({page:_0x3acacf=0x0,limit:_0x1237e8=0x0,sortings:_0x22bc65=[],filters:_0x31c637=[]}){const _0x3938e6=a0_0x4849e2;return this[_0x3938e6(0x127)]&&this[_0x3938e6(0x127)][_0x3938e6(0x14e)]&&await this[_0x3938e6(0x127)][_0x3938e6(0x14e)](),!0x0;}[a0_0x4849e2(0x124)](){const _0x137a40=a0_0x4849e2;return{'master':this[_0x137a40(0x127)][_0x137a40(0x124)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x322b94=a0_0x4544;function a0_0x4544(_0x742068,_0x4c018e){const _0x2ae162=a0_0x2ae1();return a0_0x4544=function(_0x454426,_0x588a1b){_0x454426=_0x454426-0xf1;let _0x31b208=_0x2ae162[_0x454426];return _0x31b208;},a0_0x4544(_0x742068,_0x4c018e);}function a0_0x2ae1(){const _0x4f7592=['grid_column','renderRoot','123818cyuOOu','getMasterDetailHtml','getAndParseMenuMeta','render','exportableData','parseBasicGridConfigs','parseGristConfigs','filterFormId','12360438qIyxSA','useFilterForm','value','records','styles','filterForm','find','parseGridConfigSet','getParams','deleteByIds','gristId','record','title','firstUpdated','15272iruOEx','useMasterFilterForm','menuInfo','11MctoIm','search','name','importable','detailElement','5571380StdqFl','forEach','searchConfig','parse','exportable','actions','properties','main','searchFieldValues','updateMultiple','filter','connectedCallback','shadowRoot','getBasicMasterDetailStyles','fetch','2420MesGaw','header','dataSet','keys','getSelectedIdList','ox-filters-form-base','clear','gridConfig','3981wtMjXp','push','isElement','2PSRoxq','columns','save','tTitle','815905qkEFGU','30FZPiiD','isNotEmpty','operator','findOne','grid','activityDataSet','delete','grist','beforeFetch','type','querySelector','___data','1631gkSzPD','36245208uXnJsE','options','context','pageInitialized'];a0_0x2ae1=function(){return _0x4f7592;};return a0_0x2ae1();}(function(_0x14e21a,_0x36ee31){const _0x549be0=a0_0x4544,_0x9816aa=_0x14e21a();while(!![]){try{const _0x57a8e1=-parseInt(_0x549be0(0x13b))/0x1*(-parseInt(_0x549be0(0x123))/0x2)+-parseInt(_0x549be0(0x120))/0x3*(parseInt(_0x549be0(0x118))/0x4)+-parseInt(_0x549be0(0x127))/0x5*(-parseInt(_0x549be0(0x128))/0x6)+parseInt(_0x549be0(0x134))/0x7*(-parseInt(_0x549be0(0x101))/0x8)+-parseInt(_0x549be0(0xf3))/0x9+-parseInt(_0x549be0(0x109))/0xa+-parseInt(_0x549be0(0x104))/0xb*(-parseInt(_0x549be0(0x135))/0xc);if(_0x57a8e1===_0x36ee31)break;else _0x9816aa['push'](_0x9816aa['shift']());}catch(_0x1c5c0b){_0x9816aa['push'](_0x9816aa['shift']());}}}(a0_0x2ae1,0xbeeb5));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x4e859a=>class extends MetaButtonMixin(_0x4e859a){static get[a0_0x322b94(0xf7)](){const _0x46efd8=a0_0x322b94;return MetaApi[_0x46efd8(0x116)]();}static get[a0_0x322b94(0x10f)](){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_0x322b94(0x12f)](){const _0x5745a9=a0_0x322b94;return this[_0x5745a9(0x13a)][_0x5745a9(0x132)](this['gristId']);}get[a0_0x322b94(0xf8)](){const _0x5620ae=a0_0x322b94;return this[_0x5620ae(0x115)]?.['querySelector'](this[_0x5620ae(0xf2)]);}get[a0_0x322b94(0x137)](){const _0x3ef9a1=a0_0x322b94;let _0x544df5=MetaUiUtil['getContextObject'](this);return _0x544df5[_0x3ef9a1(0x10e)]&&delete _0x544df5[_0x3ef9a1(0x10e)],_0x544df5[_0x3ef9a1(0x10d)]&&delete _0x544df5[_0x3ef9a1(0x10d)],_0x544df5[_0x3ef9a1(0x107)]&&delete _0x544df5['importable'],_0x544df5;}async[a0_0x322b94(0x114)](){const _0x5e823c=a0_0x322b94;this[_0x5e823c(0xfd)]='ox-grist',this[_0x5e823c(0xf2)]=_0x5e823c(0x11d),await this[_0x5e823c(0x13d)](),this[_0x5e823c(0x122)]&&await this[_0x5e823c(0xf1)](),this[_0x5e823c(0x12d)]&&(this[_0x5e823c(0x11a)]=(this[_0x5e823c(0x12d)]||{})[_0x5e823c(0x110)]),super[_0x5e823c(0x114)]&&await super[_0x5e823c(0x114)]();}async[a0_0x322b94(0x100)](){const _0x44bd7e=a0_0x322b94;super[_0x44bd7e(0x100)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x4f507f=a0_0x322b94;this['isPage']&&await this[_0x4f507f(0xf1)](),super[_0x4f507f(0x138)]&&await super[_0x4f507f(0x138)]();}[a0_0x322b94(0x13e)](){const _0x1fce4d=a0_0x322b94;return MetaApi[_0x1fce4d(0x13c)](this);}[a0_0x322b94(0x140)](_0x4e38f1){const _0x4d743d=a0_0x322b94;this[_0x4d743d(0x11f)]=_0x4e38f1[_0x4d743d(0x12c)],this['gridColumnConfig']=_0x4e38f1[_0x4d743d(0x139)],this[_0x4d743d(0x10b)]=_0x4e38f1[_0x4d743d(0x105)];}async['parseGristConfigs'](){const _0x198b50=a0_0x322b94;this['gristConfigSet']=await MetaApi[_0x198b50(0xfa)](this),this[_0x198b50(0x102)]=!0x0===this[_0x198b50(0xf4)],this[_0x198b50(0xf4)]=!0x1,this[_0x198b50(0x111)]=[],this['searchFields']=this['gristConfigSet'][_0x198b50(0x124)]['filter'](_0x195873=>_0x195873['filter'])['map'](_0x2a71e9=>{const _0x204f32=_0x198b50;let _0x2ce990={'name':_0x2a71e9[_0x204f32(0x106)],'type':_0x204f32(0x105)===_0x2a71e9[_0x204f32(0x113)][_0x204f32(0x12a)]?_0x204f32(0x105):_0x2a71e9[_0x204f32(0x131)],'label':_0x2a71e9[_0x204f32(0x119)],'operator':_0x2a71e9[_0x204f32(0x113)][_0x204f32(0x12a)]?_0x2a71e9[_0x204f32(0x113)][_0x204f32(0x12a)]:'eq'};return _0x2a71e9[_0x204f32(0x113)]['options']&&(_0x2ce990[_0x204f32(0x136)]=_0x2a71e9[_0x204f32(0x113)][_0x204f32(0x136)]),_0x2a71e9[_0x204f32(0xfe)][_0x204f32(0x136)]&&(_0x2ce990[_0x204f32(0x136)]=_0x2a71e9[_0x204f32(0xfe)][_0x204f32(0x136)]),_0x2a71e9[_0x204f32(0x113)][_0x204f32(0xf5)]&&this[_0x204f32(0x111)][_0x204f32(0x121)]({'name':_0x2ce990[_0x204f32(0x106)],'operator':_0x2ce990[_0x204f32(0x12a)],'value':_0x2a71e9[_0x204f32(0x113)][_0x204f32(0xf5)]}),delete _0x2a71e9[_0x204f32(0x113)],_0x2ce990;});}async[a0_0x322b94(0x117)](){const _0x12a0c9=a0_0x322b94;await this[_0x12a0c9(0x12f)][_0x12a0c9(0x117)]();}async[a0_0x322b94(0x130)]({page:_0x1ade11=0x0,limit:_0x3ec7eb=0x0,sortings:_0x5ac6da=[],filters:_0x5dc872=[]}){const _0x272ba3=a0_0x322b94;return this[_0x272ba3(0x108)]&&this[_0x272ba3(0x108)][_0x272ba3(0x11e)]&&await this['detailElement'][_0x272ba3(0x11e)](),!0x0;}async[a0_0x322b94(0x125)](){const _0x1f9cda=a0_0x322b94;let _0x2936ce=MetaApi['patchesForUpdateMultiple'](this[_0x1f9cda(0x12f)]);!!ValueUtil[_0x1f9cda(0x129)](_0x2936ce)&&await this[_0x1f9cda(0x112)](_0x2936ce)&&this[_0x1f9cda(0x117)]();}async[a0_0x322b94(0xf9)](){const _0x2198b4=a0_0x322b94;let _0x2a1f14=MetaApi[_0x2198b4(0x11c)](this['grist'],!0x0);return ValueUtil[_0x2198b4(0x129)](_0x2a1f14)?await this[_0x2198b4(0x12b)](_0x2a1f14[0x0]):{};}async[a0_0x322b94(0x12e)](){const _0x20dff3=a0_0x322b94;let _0x3952d7=MetaApi[_0x20dff3(0x11c)](this[_0x20dff3(0x12f)],!0x0);!!ValueUtil[_0x20dff3(0x129)](_0x3952d7)&&await this[_0x20dff3(0xfc)](_0x3952d7)&&this[_0x20dff3(0x117)]();}async['export'](){const _0x44b2bc=a0_0x322b94;let _0x92a3e5=TermsUtil[_0x44b2bc(0x126)](ValueUtil[_0x44b2bc(0xfb)](this[_0x44b2bc(0x103)],_0x44b2bc(0xff)));return await MetaApi[_0x44b2bc(0x13f)](this[_0x44b2bc(0x122)],_0x92a3e5,this[_0x44b2bc(0x12f)]);}async['import'](){}['getData'](){const _0x5dafc4=a0_0x322b94;let _0x5b577c=this[_0x5dafc4(0x12f)][_0x5dafc4(0x133)][_0x5dafc4(0xf6)];return _0x5b577c=JSON[_0x5dafc4(0x10c)](JSON['stringify'](_0x5b577c)),_0x5b577c[_0x5dafc4(0x10a)](_0x279e4b=>{const _0x5cd68b=_0x5dafc4;Object[_0x5cd68b(0x11b)](_0x279e4b)[_0x5cd68b(0x10a)](_0x1880ea=>{_0x1880ea['startsWith']('__')&&delete _0x279e4b[_0x1880ea];});}),{'main':_0x5b577c,'detail':this[_0x5dafc4(0x108)]['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x23d5e2=a0_0x550a;(function(_0xa7474,_0x37deac){const _0x1a3bcf=a0_0x550a,_0x1dd3ec=_0xa7474();while(!![]){try{const _0xfdb38c=-parseInt(_0x1a3bcf(0x1cc))/0x1*(-parseInt(_0x1a3bcf(0x1ab))/0x2)+-parseInt(_0x1a3bcf(0x1c8))/0x3+parseInt(_0x1a3bcf(0x1d5))/0x4+parseInt(_0x1a3bcf(0x1ac))/0x5*(-parseInt(_0x1a3bcf(0x1a7))/0x6)+-parseInt(_0x1a3bcf(0x1c2))/0x7+-parseInt(_0x1a3bcf(0x1b8))/0x8*(parseInt(_0x1a3bcf(0x1cd))/0x9)+parseInt(_0x1a3bcf(0x1ad))/0xa*(parseInt(_0x1a3bcf(0x1a4))/0xb);if(_0xfdb38c===_0x37deac)break;else _0x1dd3ec['push'](_0x1dd3ec['shift']());}catch(_0x8766d5){_0x1dd3ec['push'](_0x1dd3ec['shift']());}}}(a0_0x31a1,0xc74c5));function a0_0x31a1(){const _0x300f59=['getPageNavigateParams','map','afterFetch','find_one_func','getSelectColumns','value','4073836HxCCwS','query','gristConfigSet','multiple','properties','fetchHandler','dataSet','result','getQueryFilters','parent_id','deleteByIds','is_activity','list_func','mainFilterForm','forEach','isElement','4257NuaRPq','parse','split','408MKHTNg','infinityPage','skip_fields','updateMultiple','46rUhSvn','13710gQBnpj','27310jbDcfZ','filterForm','filters','mutation','filter','isEmpty','gqlInfo','replace','columns','lifecycle','isPage','1123880hJmpXX','getParams','records','beforeFetch','runScenario','gql','params','isNotEmpty','isArray','after_set_fields','7689185KDQeKI','data','pass','findOne','callScenario','keys','2970771VyjrdE','includes','formConfigSet','name','62504ArgQlm','27MyNocM','push'];a0_0x31a1=function(){return _0x300f59;};return a0_0x31a1();}import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x550a(_0x4447cf,_0x37672a){const _0x31a1ee=a0_0x31a1();return a0_0x550a=function(_0x550aca,_0x17561c){_0x550aca=_0x550aca-0x198;let _0x34ffdb=_0x31a1ee[_0x550aca];return _0x34ffdb;},a0_0x550a(_0x4447cf,_0x37672a);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x1c20f7=>class extends MetaBaseMixin(_0x1c20f7){static get[a0_0x23d5e2(0x198)](){return{'gqlInfo':Object};}['parseBasicServiceConfigs'](_0x502707){const _0x34df00=a0_0x23d5e2;this[_0x34df00(0x1b3)]=_0x502707[_0x34df00(0x1bd)];}async[a0_0x23d5e2(0x199)]({page:_0x369877=0x0,limit:_0x31d98a=0x0,sortings:_0x35659b=[],filters:_0xfd3d4f=[]}){const _0x363740=a0_0x23d5e2;if(this[_0x363740(0x19f)])return{'total':0x0,'records':this[_0x363740(0x19a)]||[]};if(!0x0===this[_0x363740(0x1a8)]&&(_0x369877=0x0,_0x31d98a=0x0),this[_0x363740(0x1bb)]&&0x0==await this[_0x363740(0x1bb)]({'page':_0x369877,'limit':_0x31d98a,'sortings':_0x35659b,'filters':_0xfd3d4f}))return;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0x4c01fa=ValueUtil[_0x363740(0x1b2)](_0xfd3d4f)?this['mainFilterForm']?await this[_0x363740(0x1a1)][_0x363740(0x19c)]()||[]:await this[_0x363740(0x1ae)]?.[_0x363740(0x19c)]()||[]:_0xfd3d4f,_0x1fc3f0=ValueUtil['getParams'](this[_0x363740(0x1b3)],_0x363740(0x1d6),_0x363740(0x1a0)),_0x18412c=ValueUtil[_0x363740(0x1b9)](this[_0x363740(0x1b3)],_0x363740(0x1d6),_0x363740(0x1af)),_0x170b75=ValueUtil['getParams'](this[_0x363740(0x1b3)],_0x363740(0x1d6),_0x363740(0x1c1));if(ValueUtil['isNotEmpty'](_0x18412c)&&(_0x4c01fa=adjustFilters(_0x4c01fa,_0x18412c)),_0x4c01fa[_0x363740(0x1ce)](...this[_0x363740(0x1cf)]()),this['isElement']&&!this[_0x363740(0x1a1)]){let _0x416ee7=ValueUtil[_0x363740(0x1b9)](this[_0x363740(0x1b3)],'query',_0x363740(0x19d));if(!ValueUtil[_0x363740(0x1bf)](_0x416ee7)||!ValueUtil[_0x363740(0x1bf)](this['parent_id']))return{'total':0x0,'records':[]};_0x4c01fa=adjustFilters(_0x4c01fa,[{'name':_0x416ee7,'operator':'eq','value':this[_0x363740(0x19d)]}]);}let _0x27ac72=Object[_0x363740(0x1c7)](_0x170b75||{}),_0x512182=MetaApi[_0x363740(0x1d3)](this[_0x363740(0x1d7)]['columns'][_0x363740(0x1b1)](_0x1f9911=>!_0x27ac72[_0x363740(0x1c9)](_0x1f9911[_0x363740(0x1cb)]))),_0x1be21c={};if(_0x1fc3f0[_0x363740(0x1c9)]('$')){let _0x486c2c=_0x1fc3f0[_0x363740(0x1b4)]('$','');_0x1be21c=(await MetaApi['callScenario'](void 0x0,_0x486c2c,{'filters':_0x4c01fa,'pagination':{'page':_0x369877,'limit':_0x31d98a},'sortings':_0x35659b},!0x1))[_0x363740(0x1c3)]['runScenario']['data'][_0x363740(0x19b)];}else _0x1be21c=await MetaApi['searchByPagination'](_0x1fc3f0,_0x4c01fa,_0x35659b,_0x369877,_0x31d98a,_0x512182);if(this[_0x363740(0x1d1)]){let _0x5953c1=await this[_0x363740(0x1d1)]({'page':_0x369877,'limit':_0x31d98a,'sortings':_0x35659b,'filters':_0xfd3d4f},_0x1be21c);if(_0x5953c1)return _0x5953c1;}return ValueUtil[_0x363740(0x1bf)](_0x170b75)&&ValueUtil[_0x363740(0x1bf)](_0x1be21c)&&ValueUtil[_0x363740(0x1bf)](_0x1be21c[_0x363740(0x1ba)])&&_0x1be21c[_0x363740(0x1ba)]['map'](_0x3ce9f1=>(_0x27ac72[_0x363740(0x1a2)](_0x5317cf=>{const _0x2c9cd5=_0x363740;_0x3ce9f1[_0x5317cf]=ValueUtil['getParams'](_0x3ce9f1,..._0x170b75[_0x5317cf][_0x2c9cd5(0x1a6)]('.'));}),_0x3ce9f1)),_0x1be21c;}[a0_0x23d5e2(0x1cf)](){const _0x59ffcb=a0_0x23d5e2;if(0x0==this[_0x59ffcb(0x1b7)])return[];let _0x483681=this[_0x59ffcb(0x1b6)]?.[_0x59ffcb(0x1be)]?this[_0x59ffcb(0x1b6)][_0x59ffcb(0x1be)]:{};if(!_0x483681[_0x59ffcb(0x1c4)])return[];let _0x36dea4=_0x483681['pass'],_0xc7243a=JSON[_0x59ffcb(0x1a5)](_0x36dea4),_0x5e7c50=0x1==_0xc7243a['length']?'eq':'in',_0x592b6f={},_0x41bcfa=[];return Object[_0x59ffcb(0x1c7)](_0xc7243a[0x0])[_0x59ffcb(0x1a2)](_0x36898a=>{_0x592b6f[_0x36898a]={'name':_0x36898a,'operator':_0x5e7c50,'value':'eq'===_0x5e7c50?_0xc7243a[0x0][_0x36898a]:[]};}),_0xc7243a['length']>0x1&&_0xc7243a[_0x59ffcb(0x1a2)](_0x400299=>{const _0x4a450e=_0x59ffcb;Object[_0x4a450e(0x1c7)](_0x400299)[_0x4a450e(0x1a2)](_0x39ecb6=>{const _0x2a6290=_0x4a450e;_0x592b6f[_0x39ecb6][_0x2a6290(0x1d4)]['push'](_0x400299[_0x39ecb6]);});}),Object[_0x59ffcb(0x1c7)](_0x592b6f)[_0x59ffcb(0x1a2)](_0x480e44=>{const _0x3b060a=_0x59ffcb;_0x41bcfa[_0x3b060a(0x1ce)](_0x592b6f[_0x480e44]);}),_0x41bcfa;}async['findOne'](_0x4d7e01){const _0x67113f=a0_0x23d5e2;if(this[_0x67113f(0x19f)])return this['dataSet']||{};let _0x38e751=ValueUtil['getParams'](this[_0x67113f(0x1b3)],'query',_0x67113f(0x1d2)),_0x15ed15=ValueUtil['getParams'](this[_0x67113f(0x1b3)],_0x67113f(0x1d6),_0x67113f(0x1c1)),_0x531ea7=Object[_0x67113f(0x1c7)](_0x15ed15||{}),_0x251b71=MetaApi[_0x67113f(0x1d3)]((this[_0x67113f(0x1d7)]?this[_0x67113f(0x1d7)]:{'columns':this[_0x67113f(0x1ca)]})[_0x67113f(0x1b5)]['filter'](_0x2bb58e=>!_0x531ea7[_0x67113f(0x1c9)](_0x2bb58e[_0x67113f(0x1cb)]))),_0x57d4ac={};if(_0x38e751[_0x67113f(0x1c9)]('$')){let _0x166ea5=_0x38e751[_0x67113f(0x1b4)]('$',''),_0x2d5109=await MetaApi[_0x67113f(0x1c6)](void 0x0,_0x166ea5,{'id':_0x4d7e01},!0x1);_0x57d4ac=_0x2d5109[_0x67113f(0x1c3)][_0x67113f(0x1bc)][_0x67113f(0x1c3)][_0x67113f(0x19b)];}else _0x57d4ac=await MetaApi[_0x67113f(0x1c5)](_0x38e751,_0x4d7e01,_0x251b71);return ValueUtil['isNotEmpty'](_0x15ed15)&&ValueUtil[_0x67113f(0x1bf)](_0x57d4ac)&&_0x531ea7['forEach'](_0x34c465=>{const _0x3cdd7c=_0x67113f;_0x57d4ac[_0x34c465]=ValueUtil[_0x3cdd7c(0x1b9)](_0x57d4ac,..._0x15ed15[_0x34c465][_0x3cdd7c(0x1a6)]('.'));}),_0x57d4ac;}async[a0_0x23d5e2(0x19e)](_0x1d7a95){const _0x797fe5=a0_0x23d5e2;let _0x526679=ValueUtil['getParams'](this[_0x797fe5(0x1b3)],_0x797fe5(0x1b0),'delete','func');return await MetaApi['deleteListByIds'](_0x1d7a95,_0x526679);}async[a0_0x23d5e2(0x1aa)](_0x1991dc){const _0x260a72=a0_0x23d5e2;let _0x5f1e1b=ValueUtil[_0x260a72(0x1b9)](this[_0x260a72(0x1b3)],_0x260a72(0x1b0),_0x260a72(0x1d8),'func'),_0x114a19=ValueUtil[_0x260a72(0x1b9)](this[_0x260a72(0x1b3)],_0x260a72(0x1b0),_0x260a72(0x1d8),_0x260a72(0x1a9));if(ValueUtil[_0x260a72(0x1bf)](_0x114a19)&&(_0x114a19=_0x114a19[_0x260a72(0x1d0)](_0x12431a=>_0x12431a[_0x260a72(0x1c9)]('.')?_0x12431a[_0x260a72(0x1a6)]('.'):_0x12431a),_0x1991dc=_0x1991dc[_0x260a72(0x1d0)](_0x5d87cb=>(_0x114a19[_0x260a72(0x1a2)](_0x50bdce=>{const _0x3a5b7b=_0x260a72;Array[_0x3a5b7b(0x1c0)](_0x50bdce)?delete _0x5d87cb[_0x50bdce[0x0]][_0x50bdce[0x1]]:delete _0x5d87cb[_0x50bdce];}),_0x5d87cb))),this[_0x260a72(0x1a3)]&&ValueUtil[_0x260a72(0x1bf)](this[_0x260a72(0x19d)])){let _0x4c7ad7=ValueUtil['getParams'](this['gqlInfo'],'mutation',_0x260a72(0x1d8),_0x260a72(0x19d));ValueUtil[_0x260a72(0x1bf)](_0x4c7ad7)&&_0x1991dc[_0x260a72(0x1a2)](_0x4afd49=>{const _0x4adc84=_0x260a72;if(_0x4c7ad7[_0x4adc84(0x1c9)]('.')){let _0x3ab639=_0x4c7ad7[_0x4adc84(0x1a6)]('.');_0x4afd49[_0x3ab639[0x0]]={},_0x4afd49[_0x3ab639[0x0]][_0x3ab639[0x1]]=this['parent_id'];}else _0x4afd49[_0x4c7ad7]=this[_0x4adc84(0x19d)];});}return await MetaApi[_0x260a72(0x1aa)](_0x5f1e1b,_0x1991dc);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x38f5a6=a0_0x3981;(function(_0x59329c,_0x113c70){const _0x194be0=a0_0x3981,_0x1b9312=_0x59329c();while(!![]){try{const _0x189037=parseInt(_0x194be0(0x223))/0x1+-parseInt(_0x194be0(0x1e9))/0x2+parseInt(_0x194be0(0x1f5))/0x3*(-parseInt(_0x194be0(0x1ec))/0x4)+parseInt(_0x194be0(0x20d))/0x5+-parseInt(_0x194be0(0x1fb))/0x6*(parseInt(_0x194be0(0x1fc))/0x7)+parseInt(_0x194be0(0x20c))/0x8+parseInt(_0x194be0(0x1f3))/0x9;if(_0x189037===_0x113c70)break;else _0x1b9312['push'](_0x1b9312['shift']());}catch(_0x1fe0e8){_0x1b9312['push'](_0x1b9312['shift']());}}}(a0_0x23b4,0xe6bf5));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x23b4(){const _0x2fde2f=['useButtonExport','getData','value','452147IhjThM','header','masterElement','buttonConfig','546952CxXsgx','parseBasicGridConfigs','shadowRoot','1408112twRzSk','isPage','getBasicTabDetailStyles','grid','activityDataSet','querySelector','type','9674109lLqkXZ','render','6MjlKRP','gridConfig','exportable','parseGridConfigSet','fetch','connectedCallback','8361750CwFJUV','7JbWSlv','search','actions','ox-filters-form-base','searchFieldValues','record','searchFields','importable','gristConfigSet','clear','getContextObject','pageInitialized','options','operator','gristId','filter','5332616QcNHvA','5613365FlnURR','getTabDetailHtml','searchConfig','firstUpdated','isElement','ox-grist','grist','useMasterFilterForm','columns','detailElement','getAndParseMenuMeta','name','parseGristConfigs','gridColumnConfig','useFilterForm','context','dataSet','getMainGrist','properties'];a0_0x23b4=function(){return _0x2fde2f;};return a0_0x23b4();}function a0_0x3981(_0x18a1f1,_0x48f5d8){const _0x23b4d8=a0_0x23b4();return a0_0x3981=function(_0x39813c,_0x1b5d19){_0x39813c=_0x39813c-0x1e6;let _0x3bf7a8=_0x23b4d8[_0x39813c];return _0x3bf7a8;},a0_0x3981(_0x18a1f1,_0x48f5d8);}export const MetaTabDetailMixin=_0x26585f=>class extends MetaButtonMixin(_0x26585f){static get['styles'](){const _0x3b4aa7=a0_0x3981;return MetaApi[_0x3b4aa7(0x1ee)]();}static get[a0_0x38f5a6(0x21f)](){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_0x38f5a6(0x213)](){const _0x5410d9=a0_0x38f5a6;return this[_0x5410d9(0x1e7)][_0x5410d9(0x21e)]();}get['filterForm'](){const _0x1c5038=a0_0x38f5a6;return this[_0x1c5038(0x1eb)]?.[_0x1c5038(0x1f1)](this['filterFormId']);}get[a0_0x38f5a6(0x21c)](){const _0x3dea72=a0_0x38f5a6;let _0x2c09a2=MetaUiUtil[_0x3dea72(0x206)](this);return _0x2c09a2[_0x3dea72(0x1fe)]&&delete _0x2c09a2[_0x3dea72(0x1fe)],_0x2c09a2['exportable']&&delete _0x2c09a2[_0x3dea72(0x1f7)],_0x2c09a2[_0x3dea72(0x203)]&&delete _0x2c09a2[_0x3dea72(0x203)],_0x2c09a2;}async[a0_0x38f5a6(0x1fa)](){const _0x46ab5d=a0_0x38f5a6;this[_0x46ab5d(0x20a)]=_0x46ab5d(0x212),this['filterFormId']=_0x46ab5d(0x1ff),await this[_0x46ab5d(0x217)](),this[_0x46ab5d(0x211)]&&await this[_0x46ab5d(0x219)](),this[_0x46ab5d(0x1f0)]&&(this[_0x46ab5d(0x21d)]=(this['activityDataSet']||{})['main']),super[_0x46ab5d(0x1fa)]&&await super['connectedCallback']();}async[a0_0x38f5a6(0x210)](){const _0x5290fe=a0_0x38f5a6;super['firstUpdated']&&await super[_0x5290fe(0x210)]();}async[a0_0x38f5a6(0x207)](){const _0x2f15cc=a0_0x38f5a6;this[_0x2f15cc(0x1ed)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0x2f15cc(0x207)]();}[a0_0x38f5a6(0x1f4)](){const _0x15547d=a0_0x38f5a6;return MetaApi[_0x15547d(0x20e)](this);}[a0_0x38f5a6(0x1ea)](_0x4a8e72){const _0xdf76bd=a0_0x38f5a6;this[_0xdf76bd(0x1f6)]=_0x4a8e72[_0xdf76bd(0x1ef)],this[_0xdf76bd(0x21a)]=_0x4a8e72['grid_column'],this[_0xdf76bd(0x20f)]=_0x4a8e72['search'];}async['parseGristConfigs'](){const _0x9ec058=a0_0x38f5a6;this[_0x9ec058(0x204)]=await MetaApi[_0x9ec058(0x1f8)](this),this[_0x9ec058(0x214)]=!0x0===this[_0x9ec058(0x21b)],this[_0x9ec058(0x21b)]=!0x1,this[_0x9ec058(0x1e8)]=void 0x0,this[_0x9ec058(0x220)]=!0x1,this['useButtonImport']=!0x1,this[_0x9ec058(0x200)]=[],this[_0x9ec058(0x202)]=this[_0x9ec058(0x204)][_0x9ec058(0x215)][_0x9ec058(0x20b)](_0x17efdf=>_0x17efdf[_0x9ec058(0x20b)])['map'](_0x245739=>{const _0x5e311a=_0x9ec058;let _0x4d18a2={'name':_0x245739[_0x5e311a(0x218)],'type':_0x5e311a(0x1fd)===_0x245739[_0x5e311a(0x20b)][_0x5e311a(0x209)]?_0x5e311a(0x1fd):_0x245739[_0x5e311a(0x1f2)],'label':_0x245739[_0x5e311a(0x1e6)],'operator':_0x245739['filter'][_0x5e311a(0x209)]?_0x245739[_0x5e311a(0x20b)]['operator']:'eq'};return _0x245739[_0x5e311a(0x20b)][_0x5e311a(0x208)]&&(_0x4d18a2[_0x5e311a(0x208)]=_0x245739[_0x5e311a(0x20b)]['options']),_0x245739[_0x5e311a(0x201)][_0x5e311a(0x208)]&&(_0x4d18a2[_0x5e311a(0x208)]=_0x245739[_0x5e311a(0x201)]['options']),_0x245739[_0x5e311a(0x20b)][_0x5e311a(0x222)]&&this['searchFieldValues']['push']({'name':_0x4d18a2[_0x5e311a(0x218)],'operator':_0x4d18a2['operator'],'value':_0x245739[_0x5e311a(0x20b)]['value']}),delete _0x245739['filter'],_0x4d18a2;});}async[a0_0x38f5a6(0x1f9)](){const _0x229aeb=a0_0x38f5a6;await this[_0x229aeb(0x213)]['fetch']();}async['beforeFetch']({page:_0x18bac7=0x0,limit:_0x44c6d4=0x0,sortings:_0x1153ab=[],filters:_0x4843fc=[]}){const _0x5d1fee=a0_0x38f5a6;return this['masterElement']&&this['masterElement'][_0x5d1fee(0x205)]&&await this[_0x5d1fee(0x1e7)][_0x5d1fee(0x205)](),this[_0x5d1fee(0x216)]&&this[_0x5d1fee(0x216)][_0x5d1fee(0x205)]&&await this[_0x5d1fee(0x216)][_0x5d1fee(0x205)](),!0x0;}[a0_0x38f5a6(0x221)](){const _0xcbd017=a0_0x38f5a6;return{'master':this[_0xcbd017(0x1e7)][_0xcbd017(0x221)](),'detail':this[_0xcbd017(0x216)][_0xcbd017(0x221)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x17359e=a0_0x4383;function a0_0x59de(){const _0x5d49fd=['firstUpdated','1073259xQFcqS','keys','6GPmEaU','forEach','170gHwSPV','clear','6277iyKjLu','getBasicTabHtml','grist','8877834sPRYRG','1086696PUwBOZ','parse','icon','includeMainList','splice','name','mainFilterForm','1769032shrfdj','activityDataSet','tabElements','meta-grist-element','connectedCallback','button','dataSet','etcConfig','pageInitialized','@things-factory/meta-ui/client/pages/meta-grist-element','properties','getData','tabRenderConfig','index','length','1136968tJAfSv','styles','tab','route_name','getContextObject','param_field','currentTabKey','parseBasicTabConfigs','2959297CySDqV','10KIcOzX','15kVuVSK'];a0_0x59de=function(){return _0x5d49fd;};return a0_0x59de();}(function(_0x3969af,_0x3a984f){const _0x3990e9=a0_0x4383,_0x3542c2=_0x3969af();while(!![]){try{const _0x4f6e77=parseInt(_0x3990e9(0x117))/0x1*(parseInt(_0x3990e9(0x115))/0x2)+-parseInt(_0x3990e9(0x11b))/0x3+parseInt(_0x3990e9(0x131))/0x4*(-parseInt(_0x3990e9(0x13b))/0x5)+parseInt(_0x3990e9(0x113))/0x6*(parseInt(_0x3990e9(0x11a))/0x7)+parseInt(_0x3990e9(0x122))/0x8+-parseInt(_0x3990e9(0x111))/0x9*(-parseInt(_0x3990e9(0x13a))/0xa)+-parseInt(_0x3990e9(0x139))/0xb;if(_0x4f6e77===_0x3a984f)break;else _0x3542c2['push'](_0x3542c2['shift']());}catch(_0x532a3f){_0x3542c2['push'](_0x3542c2['shift']());}}}(a0_0x59de,0xa0b1a));function a0_0x4383(_0x3be33b,_0x298f0d){const _0x59dedd=a0_0x59de();return a0_0x4383=function(_0x4383d7,_0x1eb4bb){_0x4383d7=_0x4383d7-0x111;let _0x3f1d26=_0x59dedd[_0x4383d7];return _0x3f1d26;},a0_0x4383(_0x3be33b,_0x298f0d);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x55a866=>class extends MetaButtonMixin(_0x55a866){static get[a0_0x17359e(0x132)](){return MetaApi['getBasicTabStyles']();}static get[a0_0x17359e(0x12c)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get['context'](){const _0x8091ee=a0_0x17359e;return MetaUiUtil[_0x8091ee(0x135)](this);}async[a0_0x17359e(0x126)](){const _0x4fd040=a0_0x17359e;this[_0x4fd040(0x137)]=void 0x0,await this['getAndParseMenuMeta'](),this[_0x4fd040(0x123)]&&(this[_0x4fd040(0x128)]=this[_0x4fd040(0x123)]),super['connectedCallback']&&await super[_0x4fd040(0x126)]();}async['firstUpdated'](){const _0x465361=a0_0x17359e;super[_0x465361(0x13c)]&&await super[_0x465361(0x13c)]();}async[a0_0x17359e(0x12a)](){const _0xc803cb=a0_0x17359e;super[_0xc803cb(0x12a)]&&await super[_0xc803cb(0x12a)]();}['render'](){const _0x235b09=a0_0x17359e;return MetaApi[_0x235b09(0x118)](this);}[a0_0x17359e(0x138)](_0x1561e0){const _0x50e319=a0_0x17359e;if(!0x0===this[_0x50e319(0x11e)]){let _0x3734ca=this[_0x50e319(0x129)]['main_tab_info'],_0x325db0=JSON[_0x50e319(0x11c)](_0x3734ca||'{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22,\x20\x22index\x22:0\x20}');_0x325db0[_0x50e319(0x12f)]>_0x1561e0[_0x50e319(0x133)][_0x50e319(0x130)]&&(_0x325db0['index']=_0x1561e0[_0x50e319(0x133)][_0x50e319(0x130)]),_0x1561e0[_0x50e319(0x133)][_0x50e319(0x11f)](_0x325db0[_0x50e319(0x12f)],0x0,{'name':_0x325db0[_0x50e319(0x120)],'display':_0x325db0['display'],'tagname':_0x50e319(0x125),'location':_0x50e319(0x12b),'parent_field':'id','param_field':_0x50e319(0x136),'menu':this[_0x50e319(0x134)],'icon':_0x325db0[_0x50e319(0x11d)],'filter_from':!0x1,'main_filter_form':this[_0x50e319(0x121)]});}this[_0x50e319(0x12e)]=_0x1561e0[_0x50e319(0x133)],_0x1561e0[_0x50e319(0x127)]=[];}async['clear'](){const _0xa1fca9=a0_0x17359e;if(this[_0xa1fca9(0x124)]){let _0x1bb2c4=Object[_0xa1fca9(0x112)](this[_0xa1fca9(0x124)]);for(var _0x2d0ece=0x0;_0x2d0ece<_0x1bb2c4['length'];_0x2d0ece++)await this[_0xa1fca9(0x124)][_0x1bb2c4[_0x2d0ece]][_0xa1fca9(0x116)]();}}[a0_0x17359e(0x12d)](){const _0x37c395=a0_0x17359e;let _0x3c56ee={};return this[_0x37c395(0x124)]&&Object[_0x37c395(0x112)](this[_0x37c395(0x124)])[_0x37c395(0x114)](_0x238c91=>{const _0xfe7d89=_0x37c395;_0x3c56ee[_0x238c91]=this[_0xfe7d89(0x124)][_0x238c91][_0xfe7d89(0x12d)]();}),_0x3c56ee;}['getMainGrist'](){const _0x36dbe3=a0_0x17359e;if(this[_0x36dbe3(0x124)]){let _0x4cb0c8=Object['keys'](this['tabElements']);return this[_0x36dbe3(0x124)][_0x4cb0c8[0x0]][_0x36dbe3(0x119)];}}};
|