@things-factory/meta-ui 6.1.2 → 6.1.5
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-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 +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 +28 -28
- package/client/pages/entity/main-menu-selector.js +7 -7
- 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 +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -0
- package/server/service/entity-event-subscriber/index.js +6 -0
- 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/index.js +4 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x1ae7d0=a0_0x4b4b;(function(_0x8bb747,_0x3a7955){const _0x3f09e3=a0_0x4b4b,_0x352690=_0x8bb747();while(!![]){try{const _0x4273de=-parseInt(_0x3f09e3(0x17e))/0x1*(-parseInt(_0x3f09e3(0x17f))/0x2)+parseInt(_0x3f09e3(0x180))/0x3*(parseInt(_0x3f09e3(0x17a))/0x4)+parseInt(_0x3f09e3(0x187))/0x5*(-parseInt(_0x3f09e3(0x192))/0x6)+parseInt(_0x3f09e3(0x1ab))/0x7*(-parseInt(_0x3f09e3(0x1a0))/0x8)+-parseInt(_0x3f09e3(0x198))/0x9+-parseInt(_0x3f09e3(0x1a4))/0xa*(parseInt(_0x3f09e3(0x19f))/0xb)+parseInt(_0x3f09e3(0x188))/0xc;if(_0x4273de===_0x3a7955)break;else _0x352690['push'](_0x352690['shift']());}catch(_0x413195){_0x352690['push'](_0x352690['shift']());}}}(a0_0x130a,0x1b82b));import{html}from'lit';function a0_0x4b4b(_0x3f6e75,_0x2b2294){const _0x130a60=a0_0x130a();return a0_0x4b4b=function(_0x4b4b6a,_0x4ceeda){_0x4b4b6a=_0x4b4b6a-0x179;let _0x10e153=_0x130a60[_0x4b4b6a];return _0x10e153;},a0_0x4b4b(_0x3f6e75,_0x2b2294);}import{MetaApi}from'../utils/meta-api';function a0_0x130a(){const _0x5b4dfc=['parseGridConfigSet','shadowRoot','9485cpvidq','delete','dataSet','pageInitialized','firstUpdated','styles','isPage','gridConfig','save','grid_column','records','isNotEmpty','ox-filters-form','properties','menuInfo','parseGristConfigs','updateMultiple','find','8kbrTHz','getParams','findOne','parseBasicGridConfigs','1Stxopr','294542etXCdK','182271ceikMi','tTitle','fetch','context','ox-grist','parse','getAndParseMenuMeta','1245pVIwDa','3009768rgdvpg','search','clear','getBasicGristHtml','data','getButtonContainer','render','querySelector','grist','exportableData','534KnqLoy','import','___data','keys','connectedCallback','forEach','1769679XqVpXX','gridColumnConfig','grid','title','searchConfig','isElement','activityDataSet','1666929tooIMk','216tGqylg','getBasicGristStyles','startsWith','filterFormId','10tqlHQO','getSelectedIdList','gristId','patchesForUpdateMultiple','deleteByIds'];a0_0x130a=function(){return _0x5b4dfc;};return a0_0x130a();}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=_0x22c396=>class extends MetaButtonMixin(_0x22c396){static get[a0_0x1ae7d0(0x1b0)](){const _0x5b3745=a0_0x1ae7d0;return MetaApi[_0x5b3745(0x1a1)]();}static get[a0_0x1ae7d0(0x1b8)](){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_0x1ae7d0(0x190)](){const _0x535b35=a0_0x1ae7d0;return this['renderRoot']?.[_0x535b35(0x18f)](this[_0x535b35(0x1a6)]);}get['filterForm'](){const _0x3e3626=a0_0x1ae7d0;return this[_0x3e3626(0x1aa)]?.['querySelector'](this[_0x3e3626(0x1a3)]);}get[a0_0x1ae7d0(0x183)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x1ae7d0(0x196)](){const _0x3535ab=a0_0x1ae7d0;this['gristId']=_0x3535ab(0x184),this[_0x3535ab(0x1a3)]=_0x3535ab(0x1b7),await this[_0x3535ab(0x186)](),this[_0x3535ab(0x19d)]&&await this[_0x3535ab(0x1ba)](),this[_0x3535ab(0x19e)]&&(this[_0x3535ab(0x1ad)]=this['activityDataSet']),super[_0x3535ab(0x196)]&&await super[_0x3535ab(0x196)]();}async[a0_0x1ae7d0(0x1af)](){const _0x26fedf=a0_0x1ae7d0;super[_0x26fedf(0x1af)]&&await super[_0x26fedf(0x1af)]();}async[a0_0x1ae7d0(0x1ae)](){const _0x25cb49=a0_0x1ae7d0;this[_0x25cb49(0x1b1)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0x25cb49(0x1ae)]();}[a0_0x1ae7d0(0x18e)](){const _0x3122ec=a0_0x1ae7d0;return html`
|
|
2
|
+
${MetaApi[_0x3122ec(0x18b)](this)}
|
|
3
|
+
${this[_0x3122ec(0x1b1)]?html``:MetaUiUtil[_0x3122ec(0x18d)](this)}
|
|
4
|
+
`;}[a0_0x1ae7d0(0x17d)](_0x3fd979){const _0x404668=a0_0x1ae7d0;this[_0x404668(0x1b2)]=_0x3fd979[_0x404668(0x19a)],this[_0x404668(0x199)]=_0x3fd979[_0x404668(0x1b4)],this[_0x404668(0x19c)]=_0x3fd979[_0x404668(0x189)];}async[a0_0x1ae7d0(0x1ba)](){const _0x420e02=a0_0x1ae7d0;this['gristConfigSet']=await MetaApi[_0x420e02(0x1a9)](this);}async[a0_0x1ae7d0(0x182)](){const _0x7b2c29=a0_0x1ae7d0;await this[_0x7b2c29(0x190)][_0x7b2c29(0x182)]();}async[a0_0x1ae7d0(0x1b3)](){const _0x309593=a0_0x1ae7d0;let _0x497436=MetaApi[_0x309593(0x1a7)](this[_0x309593(0x190)]);!!ValueUtil[_0x309593(0x1b6)](_0x497436)&&await this[_0x309593(0x1bb)](_0x497436)&&this[_0x309593(0x182)]();}async[a0_0x1ae7d0(0x179)](){const _0x4acec9=a0_0x1ae7d0;let _0x3305b0=MetaApi[_0x4acec9(0x1a5)](this[_0x4acec9(0x190)],!0x0);return ValueUtil[_0x4acec9(0x1b6)](_0x3305b0)?await this[_0x4acec9(0x17c)](_0x3305b0[0x0]):{};}async[a0_0x1ae7d0(0x1ac)](){const _0x4180f3=a0_0x1ae7d0;let _0x2071a2=MetaApi['getSelectedIdList'](this[_0x4180f3(0x190)],!0x0);!!ValueUtil[_0x4180f3(0x1b6)](_0x2071a2)&&await this[_0x4180f3(0x1a8)](_0x2071a2)&&this[_0x4180f3(0x182)]();}async['export'](){const _0x242b24=a0_0x1ae7d0;let _0x5fbefa=TermsUtil[_0x242b24(0x181)](ValueUtil[_0x242b24(0x17b)](this[_0x242b24(0x1b9)],_0x242b24(0x19b)));return await MetaApi[_0x242b24(0x191)](this[_0x242b24(0x19d)],_0x5fbefa,this[_0x242b24(0x190)]);}async[a0_0x1ae7d0(0x193)](){}async[a0_0x1ae7d0(0x18a)](){const _0x36a47b=a0_0x1ae7d0;this[_0x36a47b(0x190)]&&(this[_0x36a47b(0x190)][_0x36a47b(0x18c)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x4a66cc=a0_0x1ae7d0;let _0x1db16b=this[_0x4a66cc(0x190)][_0x4a66cc(0x194)][_0x4a66cc(0x1b5)];return _0x1db16b=JSON[_0x4a66cc(0x185)](JSON['stringify'](_0x1db16b)),_0x1db16b['forEach'](_0x427fc0=>{const _0x6d38b3=_0x4a66cc;Object[_0x6d38b3(0x195)](_0x427fc0)[_0x6d38b3(0x197)](_0x121fb1=>{const _0x3af2cd=_0x6d38b3;_0x121fb1[_0x3af2cd(0x1a2)]('__')&&delete _0x427fc0[_0x121fb1];});}),_0x1db16b;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1eae51=a0_0x491b;(function(_0x6f76c8,_0x30f967){const _0x4d93f4=a0_0x491b,_0x3992af=_0x6f76c8();while(!![]){try{const _0xa731a6=parseInt(_0x4d93f4(0xbf))/0x1+-parseInt(_0x4d93f4(0xb1))/0x2+parseInt(_0x4d93f4(0xba))/0x3+-parseInt(_0x4d93f4(0xb6))/0x4*(parseInt(_0x4d93f4(0xb9))/0x5)+parseInt(_0x4d93f4(0xb4))/0x6+-parseInt(_0x4d93f4(0xb2))/0x7*(-parseInt(_0x4d93f4(0xbd))/0x8)+-parseInt(_0x4d93f4(0xc1))/0x9*(-parseInt(_0x4d93f4(0xb3))/0xa);if(_0xa731a6===_0x30f967)break;else _0x3992af['push'](_0x3992af['shift']());}catch(_0x417e1f){_0x3992af['push'](_0x3992af['shift']());}}}(a0_0x3a1d,0x83274));import{html}from'lit';function a0_0x491b(_0x57b5c8,_0x495928){const _0x3a1dcf=a0_0x3a1d();return a0_0x491b=function(_0x491bea,_0x5d8901){_0x491bea=_0x491bea-0xb0;let _0x53e843=_0x3a1dcf[_0x491bea];return _0x53e843;},a0_0x491b(_0x57b5c8,_0x495928);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x3a1d(){const _0x5c67b0=['9QCIvHw','useButtonImport','isButtonExist','getButtonContainer','1300712TSprvp','61831CHopuB','3376190OdsYjP','3087702sFIYbU','customButtonHandler','3866488UrwsME','getCustomButtonContainerStyles','getContextButtons','5wPezbt','2616222TgkWBn','export','useButtonAdd','16dqyifO','buttonConfig','412206ZoQcFN','isPage'];a0_0x3a1d=function(){return _0x5c67b0;};return a0_0x3a1d();}export const MetaButtonMixin=_0x245bb5=>class extends MetaServiceMixin(_0x245bb5){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0x2eb1af=a0_0x491b;return MetaUiUtil[_0x2eb1af(0xb7)]();}[a0_0x1eae51(0xb8)](){return MetaUiUtil['getContextButtons'](this);}[a0_0x1eae51(0xb0)](){const _0x93376=a0_0x1eae51;return this[_0x93376(0xc0)]?html``:MetaUiUtil[_0x93376(0xb0)](this);}async['getBasicButtonHandler'](_0x1df063,_0x3eaf37,_0x80426a){return await MetaUiUtil['getButtonActionHandler'](this,_0x1df063,_0x3eaf37,_0x80426a);}async[a0_0x1eae51(0xb5)](_0x1a2026){const _0x50ea76=a0_0x1eae51;await MetaUiUtil[_0x50ea76(0xb5)](this,_0x1a2026);}async['gristButtonHandler'](_0x2c8f29,_0x521d5a){await MetaUiUtil['gristButtonHandler'](this,_0x2c8f29,_0x521d5a);}['parseBasicButtonConfigs'](_0x8a78ab){const _0x2b304f=a0_0x1eae51;this[_0x2b304f(0xbe)]=_0x8a78ab['button'],this[_0x2b304f(0xc2)]=MetaUiUtil[_0x2b304f(0xc3)](this[_0x2b304f(0xbe)],'import'),this['useButtonExport']=MetaUiUtil[_0x2b304f(0xc3)](this[_0x2b304f(0xbe)],_0x2b304f(0xbb)),this[_0x2b304f(0xbc)]=MetaUiUtil['isButtonExist'](this[_0x2b304f(0xbe)],'add');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x3d6e(_0x3d6cf9,_0x174ba9){const _0x366306=a0_0x3663();return a0_0x3d6e=function(_0x3d6e39,_0x197a0c){_0x3d6e39=_0x3d6e39-0x69;let _0x12d38b=_0x366306[_0x3d6e39];return _0x12d38b;},a0_0x3d6e(_0x3d6cf9,_0x174ba9);}function a0_0x3663(){const _0x9c170=['button','startsWith','editable','pageInitialized','key','renderRoot','__dirty__','getContextObject','5285000kpSOwF','fetch','13903812AGrBWd','editing','entries','connectedCallback','__dirtyfields__','name','__origin__','orgData','355880Chlpst','keydown','column','167660yPeuQS','context','findOne','isPage','dirtyData','call','forEach','before','isNotEmpty','getBasicFormHtml','activity','removeGarbageData','object','getData','render','dataSet','activityDataSet','removeAttribute','firstUpdated','assign','cuFlag','filter','Escape','validation','detail','tagName','Enter','18062tOmWOM','setAttribute','currentData','click','isEmpty','form','stopPropagation','clear','18594RDQkHp','updateMultiple','47baYNYQ','formColumnConfig','3122jSCXNe','getAndParseMenuMeta','properties','addEventListener','parseBasicFormConfigs','after','formConfigSet','isElement','showAlertPopup','parent_id','map','styles','text.NOTHING_CHANGED','record','36618510ibFyZn','patchData','currentTarget','__seq__','focus','save','parseFormConfigs','123wgwtXH'];a0_0x3663=function(){return _0x9c170;};return a0_0x3663();}const a0_0x37ba01=a0_0x3d6e;(function(_0x487774,_0x2b8090){const _0x3f8e54=a0_0x3d6e,_0x2c0a49=_0x487774();while(!![]){try{const _0x2a8fce=parseInt(_0x3f8e54(0x84))/0x1*(-parseInt(_0x3f8e54(0x7a))/0x2)+parseInt(_0x3f8e54(0x9b))/0x3*(-parseInt(_0x3f8e54(0xb1))/0x4)+-parseInt(_0x3f8e54(0xae))/0x5+-parseInt(_0x3f8e54(0x82))/0x6*(parseInt(_0x3f8e54(0x86))/0x7)+-parseInt(_0x3f8e54(0xa4))/0x8+parseInt(_0x3f8e54(0xa6))/0x9+parseInt(_0x3f8e54(0x94))/0xa;if(_0x2a8fce===_0x2b8090)break;else _0x2c0a49['push'](_0x2c0a49['shift']());}catch(_0xc0eea9){_0x2c0a49['push'](_0x2c0a49['shift']());}}}(a0_0x3663,0xe7e20));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 MetaFormMixin=_0x524107=>class extends MetaButtonMixin(_0x524107){static get[a0_0x37ba01(0x91)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x37ba01(0x88)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x37ba01(0xb2)](){const _0x3cb10c=a0_0x37ba01;return MetaUiUtil[_0x3cb10c(0xa3)](this);}async[a0_0x37ba01(0xa9)](){const _0x12524d=a0_0x37ba01;await this[_0x12524d(0x87)](),this[_0x12524d(0x8d)]&&await this[_0x12524d(0x9a)](),this[_0x12524d(0x6f)]&&(this[_0x12524d(0x6e)]=this['activityDataSet']),!0x0!==this['is_activity']||this[_0x12524d(0x8f)]||(this[_0x12524d(0x8f)]=_0x12524d(0x69)),super[_0x12524d(0xa9)]&&await super[_0x12524d(0xa9)](),this[_0x12524d(0x8d)]&&await this['fetch'](),this['renderRoot']['addEventListener'](_0x12524d(0xaf),_0x92ee5d=>{const _0x36f231=_0x12524d;switch(_0x92ee5d[_0x36f231(0xa0)]){case'Esc':case _0x36f231(0x75):case _0x36f231(0x79):this[_0x36f231(0x98)](),this[_0x36f231(0x96)]&&this[_0x36f231(0x96)][_0x36f231(0x70)](_0x36f231(0xa7)),this[_0x36f231(0x96)]=null;}}),this[_0x12524d(0xa1)][_0x12524d(0x89)](_0x12524d(0x7d),_0x3f1c88=>{const _0x11b15b=_0x12524d;_0x3f1c88[_0x11b15b(0x80)]();let _0x3f4d8a=_0x3f1c88['target'];if(this[_0x11b15b(0x96)]&&(this['focus'](),this['currentTarget']['removeAttribute']('editing')),'OX-GRID-FIELD'!==_0x3f4d8a[_0x11b15b(0x78)]||!_0x3f4d8a[_0x11b15b(0xb0)]['record'][_0x11b15b(0x9e)])return this[_0x11b15b(0x98)](),void(this[_0x11b15b(0x96)]=null);this[_0x11b15b(0x96)]=_0x3f4d8a,_0x3f4d8a[_0x11b15b(0x7b)](_0x11b15b(0xa7),'true');}),this[_0x12524d(0x89)]('field-change',_0x418eeb=>{const _0x44a3da=_0x12524d;var {after:_0x42ca22,before:_0x4ae990,column:_0x2ef577,record:_0x2b2d06,row:_0x27efb6}=_0x418eeb[_0x44a3da(0x77)];if(ValueUtil['isEquals'](_0x42ca22,_0x4ae990))return;var _0x18de9b=_0x2ef577[_0x44a3da(0x76)];if(_0x18de9b&&'function'==typeof _0x18de9b&&!_0x18de9b[_0x44a3da(0xb6)](this,_0x42ca22,_0x4ae990,_0x2b2d06,_0x2ef577))return;let _0x35e803=_0x2ef577[_0x44a3da(0xab)];_0x2b2d06[_0x35e803]=_0x42ca22,_0x2b2d06[_0x44a3da(0xaa)]=_0x2b2d06['__dirtyfields__']||{},_0x2b2d06['__origin__']=_0x2b2d06[_0x44a3da(0xac)]||{},_0x2b2d06[_0x44a3da(0xaa)][_0x35e803]={'before':_0x2b2d06[_0x44a3da(0xac)][_0x35e803],'after':_0x2b2d06[_0x35e803]},ValueUtil['isEquals'](_0x2b2d06[_0x44a3da(0xaa)][_0x35e803][_0x44a3da(0xb8)],_0x2b2d06['__dirtyfields__'][_0x35e803]['after'])&&delete _0x2b2d06[_0x44a3da(0xaa)][_0x35e803],ValueUtil[_0x44a3da(0xb9)](_0x2b2d06[_0x44a3da(0xaa)])?_0x2b2d06['__dirty__']='M':_0x2b2d06[_0x44a3da(0xa2)]='',this['record']={..._0x2b2d06};});}async[a0_0x37ba01(0x71)](){const _0x3c906b=a0_0x37ba01;super[_0x3c906b(0x71)]&&await super[_0x3c906b(0x71)]();}async['pageInitialized'](){const _0x3bd5e4=a0_0x37ba01;this[_0x3bd5e4(0xb4)]&&await this[_0x3bd5e4(0x9a)](),super['pageInitialized']&&await super[_0x3bd5e4(0x9f)](),this[_0x3bd5e4(0xb4)]&&await this['fetch']();}[a0_0x37ba01(0x6d)](){const _0x92b188=a0_0x37ba01;return MetaApi[_0x92b188(0xba)](this);}[a0_0x37ba01(0x8a)](_0x1dae7c){const _0x5379af=a0_0x37ba01;this[_0x5379af(0x85)]=_0x1dae7c['grid_column'],this['formRenderConfig']=_0x1dae7c[_0x5379af(0x7f)],_0x1dae7c[_0x5379af(0x9c)]=_0x1dae7c[_0x5379af(0x9c)][_0x5379af(0x74)](_0x3437ac=>_0x5379af(0x99)==_0x3437ac[_0x5379af(0xab)]);}async[a0_0x37ba01(0x9a)](){const _0x12ed1a=a0_0x37ba01;this[_0x12ed1a(0x8c)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x37ba01(0xad)](){const _0x4dd8b3=a0_0x37ba01;return this['removeGarbageData'](this['record'][_0x4dd8b3(0xac)]);}get[a0_0x37ba01(0xb5)](){const _0x56cc66=a0_0x37ba01;if(ValueUtil[_0x56cc66(0x7e)](this['record'][_0x56cc66(0xaa)]))return{};let _0x280c4e={};return Object['entries'](this[_0x56cc66(0x93)][_0x56cc66(0xaa)])[_0x56cc66(0x90)](([_0x5babd2,_0x3b47f9])=>{const _0x49ef8c=_0x56cc66;0x0==_0x5babd2[_0x49ef8c(0x9d)]('__')&&(_0x280c4e[_0x5babd2]=_0x3b47f9[_0x49ef8c(0x8b)]);}),_0x280c4e;}get[a0_0x37ba01(0x7c)](){const _0x3982ab=a0_0x37ba01;return this[_0x3982ab(0x6a)](this['record']);}[a0_0x37ba01(0x6a)](_0x4f6d22){const _0x448cd8=a0_0x37ba01;let _0x2fae1e={};if(_0x4f6d22)return Object[_0x448cd8(0xa8)](_0x4f6d22)[_0x448cd8(0x90)](([_0xf9bb62,_0x468a28])=>{const _0x178150=_0x448cd8;0x0==_0xf9bb62[_0x178150(0x9d)]('__')&&(_0x2fae1e[_0xf9bb62]=_0x468a28);}),_0x2fae1e;}get[a0_0x37ba01(0x95)](){const _0x575196=a0_0x37ba01;let _0x2e14fc=this['dirtyData'],_0x199919=this[_0x575196(0x93)];return ValueUtil[_0x575196(0x7e)](_0x2e14fc)?[]:(ValueUtil[_0x575196(0xb9)](_0x199919['id'])?(_0x2e14fc['id']=_0x199919['id'],_0x2e14fc['cuFlag']='M'):_0x2e14fc[_0x575196(0x73)]='+',Object['keys'](_0x2e14fc)[_0x575196(0xb7)](_0x5930a3=>{const _0x56af96=_0x575196;_0x56af96(0x6b)==typeof _0x2e14fc[_0x5930a3]&&(_0x2e14fc[_0x5930a3]={'id':_0x2e14fc[_0x5930a3]['id']});}),[_0x2e14fc]);}async[a0_0x37ba01(0xa5)](){const _0xbd1b54=a0_0x37ba01;if(ValueUtil[_0xbd1b54(0x7e)](this['parent_id']))return;let _0x131e2f=await this[_0xbd1b54(0xb3)](this[_0xbd1b54(0x8f)]);_0x131e2f[_0xbd1b54(0x97)]=0x1;let _0x3b62bf={};Object[_0xbd1b54(0x72)](_0x3b62bf,_0x131e2f),_0x131e2f[_0xbd1b54(0xac)]=_0x3b62bf,this['record']={..._0x131e2f};}async[a0_0x37ba01(0x99)](){const _0x4a8fc2=a0_0x37ba01;let _0x5e6cab=this[_0x4a8fc2(0x95)];if(ValueUtil[_0x4a8fc2(0x7e)](_0x5e6cab))return void MetaApi[_0x4a8fc2(0x8e)]('title.info',_0x4a8fc2(0x92));let _0x23a0cf=await this[_0x4a8fc2(0x83)](_0x5e6cab);return _0x23a0cf&&await this['fetch'](),_0x23a0cf;}async[a0_0x37ba01(0x81)](){const _0x38744d=a0_0x37ba01;this[_0x38744d(0x93)]&&(this[_0x38744d(0x93)]={});}[a0_0x37ba01(0x6c)](){const _0x5a6bde=a0_0x37ba01;return this[_0x5a6bde(0x7c)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x5286(_0x426a54,_0x2e57d6){const _0x5cb60b=a0_0x5cb6();return a0_0x5286=function(_0x528646,_0x369f25){_0x528646=_0x528646-0x1c7;let _0x5e18f1=_0x5cb60b[_0x528646];return _0x5e18f1;},a0_0x5286(_0x426a54,_0x2e57d6);}const a0_0x523407=a0_0x5286;(function(_0x226d08,_0x122e4b){const _0x7fb802=a0_0x5286,_0x6793c6=_0x226d08();while(!![]){try{const _0x5899ba=-parseInt(_0x7fb802(0x20b))/0x1*(parseInt(_0x7fb802(0x1f9))/0x2)+-parseInt(_0x7fb802(0x1d7))/0x3*(parseInt(_0x7fb802(0x1dd))/0x4)+-parseInt(_0x7fb802(0x208))/0x5*(-parseInt(_0x7fb802(0x213))/0x6)+-parseInt(_0x7fb802(0x203))/0x7+-parseInt(_0x7fb802(0x1f6))/0x8+parseInt(_0x7fb802(0x1fb))/0x9*(parseInt(_0x7fb802(0x1ca))/0xa)+-parseInt(_0x7fb802(0x1de))/0xb*(-parseInt(_0x7fb802(0x218))/0xc);if(_0x5899ba===_0x122e4b)break;else _0x6793c6['push'](_0x6793c6['shift']());}catch(_0x58f7be){_0x6793c6['push'](_0x6793c6['shift']());}}}(a0_0x5cb6,0xe6d19));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5cb6(){const _0x45eaf0=['context','pageInitialized','renderRoot','ox-grist','12502189zZGMMX','fetch','ox-filters-form-base','getContextObject','tTitle','119400kDdOmj','getBasicGristTabStyles','getParams','1LhcOZE','searchFields','grid_column','useFilterForm','export','import','patchesForUpdateMultiple','actions','276wTJWZH','forEach','title','type','name','3252atnXpJ','parse','properties','getAndParseMenuMeta','save','1038690SzoDOO','render','push','record','gristConfigSet','filterForm','beforeFetch','startsWith','parseBasicGridConfigs','shadowRoot','options','keys','getData','21hVmpjl','___data','header','querySelector','connectedCallback','filter','98428Mmjzlg','89683rEYnoP','styles','detailElement','clear','value','deleteByIds','records','map','parseGristConfigs','gristId','importable','getGristTabHtml','firstUpdated','filterFormId','search','searchFieldValues','getSelectedIdList','operator','dataSet','useMasterFilterForm','isNotEmpty','delete','findOne','find','13560096rgrjpL','stringify','updateMultiple','534514QwXRxH','grist','135RMuTfS','activityDataSet','isElement','exportable'];a0_0x5cb6=function(){return _0x45eaf0;};return a0_0x5cb6();}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=_0x1b9c03=>class extends MetaButtonMixin(_0x1b9c03){static get[a0_0x523407(0x1df)](){const _0x40558d=a0_0x523407;return MetaApi[_0x40558d(0x209)]();}static get[a0_0x523407(0x1c7)](){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_0x523407(0x1fa)](){const _0x53efb3=a0_0x523407;return this[_0x53efb3(0x201)][_0x53efb3(0x1da)](this[_0x53efb3(0x1e7)]);}get[a0_0x523407(0x1cf)](){const _0x325b1b=a0_0x523407;return this['shadowRoot']?.[_0x325b1b(0x1da)](this[_0x325b1b(0x1eb)]);}get[a0_0x523407(0x1e0)](){const _0x4ffa60=a0_0x523407;return this[_0x4ffa60(0x1d3)][_0x4ffa60(0x1da)]('#detail');}get[a0_0x523407(0x1ff)](){const _0x5787d3=a0_0x523407;let _0x1cdfc5=MetaUiUtil[_0x5787d3(0x206)](this);return _0x1cdfc5['actions']&&delete _0x1cdfc5[_0x5787d3(0x212)],_0x1cdfc5[_0x5787d3(0x1fe)]&&delete _0x1cdfc5[_0x5787d3(0x1fe)],_0x1cdfc5[_0x5787d3(0x1e8)]&&delete _0x1cdfc5[_0x5787d3(0x1e8)],_0x1cdfc5;}async[a0_0x523407(0x1db)](){const _0x103e49=a0_0x523407;this['gristId']=_0x103e49(0x202),this[_0x103e49(0x1eb)]=_0x103e49(0x205),await this[_0x103e49(0x1c8)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x103e49(0x1fc)]&&(this[_0x103e49(0x1f0)]=(this['activityDataSet']||{})['main']),super[_0x103e49(0x1db)]&&await super['connectedCallback']();}async[a0_0x523407(0x1ea)](){const _0x4e4bf0=a0_0x523407;super['firstUpdated']&&await super[_0x4e4bf0(0x1ea)]();}async[a0_0x523407(0x200)](){const _0x39b8bb=a0_0x523407;this['isPage']&&await this[_0x39b8bb(0x1e6)](),super[_0x39b8bb(0x200)]&&await super['pageInitialized']();}[a0_0x523407(0x1cb)](){const _0x105a8b=a0_0x523407;return MetaApi[_0x105a8b(0x1e9)](this);}[a0_0x523407(0x1d2)](_0x5b7b8b){const _0x1bfcfb=a0_0x523407;this['gridConfig']=_0x5b7b8b['grid'],this['gridColumnConfig']=_0x5b7b8b[_0x1bfcfb(0x20d)],this['searchConfig']=_0x5b7b8b[_0x1bfcfb(0x1ec)];}async[a0_0x523407(0x1e6)](){const _0xac2aba=a0_0x523407;this[_0xac2aba(0x1ce)]=await MetaApi['parseGridConfigSet'](this),this[_0xac2aba(0x1f1)]=!0x0===this[_0xac2aba(0x20e)],this['useFilterForm']=!0x1,this[_0xac2aba(0x1ed)]=[],this[_0xac2aba(0x20c)]=this[_0xac2aba(0x1ce)]['columns'][_0xac2aba(0x1dc)](_0x37212c=>_0x37212c[_0xac2aba(0x1dc)])[_0xac2aba(0x1e5)](_0x3b2c12=>{const _0x1dcf54=_0xac2aba;let _0x552470={'name':_0x3b2c12[_0x1dcf54(0x217)],'type':_0x1dcf54(0x1ec)===_0x3b2c12['filter'][_0x1dcf54(0x1ef)]?_0x1dcf54(0x1ec):_0x3b2c12[_0x1dcf54(0x216)],'label':_0x3b2c12[_0x1dcf54(0x1d9)],'operator':_0x3b2c12['filter'][_0x1dcf54(0x1ef)]?_0x3b2c12[_0x1dcf54(0x1dc)][_0x1dcf54(0x1ef)]:'eq'};return _0x3b2c12['filter'][_0x1dcf54(0x1d4)]&&(_0x552470[_0x1dcf54(0x1d4)]=_0x3b2c12[_0x1dcf54(0x1dc)][_0x1dcf54(0x1d4)]),_0x3b2c12['record'][_0x1dcf54(0x1d4)]&&(_0x552470[_0x1dcf54(0x1d4)]=_0x3b2c12[_0x1dcf54(0x1cd)]['options']),_0x3b2c12[_0x1dcf54(0x1dc)][_0x1dcf54(0x1e2)]&&this['searchFieldValues'][_0x1dcf54(0x1cc)]({'name':_0x552470[_0x1dcf54(0x217)],'operator':_0x552470[_0x1dcf54(0x1ef)],'value':_0x3b2c12['filter'][_0x1dcf54(0x1e2)]}),delete _0x3b2c12[_0x1dcf54(0x1dc)],_0x552470;});}async[a0_0x523407(0x204)](){const _0x1fe3d7=a0_0x523407;await this[_0x1fe3d7(0x1fa)][_0x1fe3d7(0x204)]();}async[a0_0x523407(0x1d0)]({page:_0x3b5d8a=0x0,limit:_0x88464d=0x0,sortings:_0x44f20b=[],filters:_0x584449=[]}){const _0x2d625e=a0_0x523407;let _0x4e965d=this['renderRoot'][_0x2d625e(0x1da)]('meta-tab-element');return await _0x4e965d[_0x2d625e(0x1e1)](),!0x0;}async[a0_0x523407(0x1c9)](){const _0x1c0ba9=a0_0x523407;let _0x252edf=MetaApi[_0x1c0ba9(0x211)](this[_0x1c0ba9(0x1fa)]);!!ValueUtil[_0x1c0ba9(0x1f2)](_0x252edf)&&await this[_0x1c0ba9(0x1f8)](_0x252edf)&&this[_0x1c0ba9(0x204)]();}async[a0_0x523407(0x1f5)](){const _0x1cd251=a0_0x523407;let _0x2c158b=MetaApi[_0x1cd251(0x1ee)](this['grist'],!0x0);return ValueUtil[_0x1cd251(0x1f2)](_0x2c158b)?await this[_0x1cd251(0x1f4)](_0x2c158b[0x0]):{};}async[a0_0x523407(0x1f3)](){const _0x381fbd=a0_0x523407;let _0x29da30=MetaApi[_0x381fbd(0x1ee)](this['grist'],!0x0);!!ValueUtil[_0x381fbd(0x1f2)](_0x29da30)&&await this[_0x381fbd(0x1e3)](_0x29da30)&&this[_0x381fbd(0x204)]();}async[a0_0x523407(0x20f)](){const _0x5062e4=a0_0x523407;let _0x2e69bf=TermsUtil[_0x5062e4(0x207)](ValueUtil[_0x5062e4(0x20a)](this['menuInfo'],_0x5062e4(0x215)));return await MetaApi['exportableData'](this[_0x5062e4(0x1fd)],_0x2e69bf,this[_0x5062e4(0x1fa)]);}async[a0_0x523407(0x210)](){}[a0_0x523407(0x1d6)](){const _0x7b587e=a0_0x523407;let _0x4598ca=this['grist'][_0x7b587e(0x1d8)][_0x7b587e(0x1e4)];return _0x4598ca=JSON[_0x7b587e(0x219)](JSON[_0x7b587e(0x1f7)](_0x4598ca)),_0x4598ca[_0x7b587e(0x214)](_0x52c4fc=>{const _0xc8b8c9=_0x7b587e;Object[_0xc8b8c9(0x1d5)](_0x52c4fc)['forEach'](_0x521880=>{const _0x546c6d=_0xc8b8c9;_0x521880[_0x546c6d(0x1d1)]('__')&&delete _0x52c4fc[_0x521880];});}),{'main':_0x4598ca,'detail':this[_0x7b587e(0x201)][_0x7b587e(0x1da)]('meta-tab-element')[_0x7b587e(0x1d6)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3b73d3=a0_0x5bc6;(function(_0x4ae904,_0x5bd5f4){const _0x16cf2c=a0_0x5bc6,_0x9dd71f=_0x4ae904();while(!![]){try{const _0x13088f=parseInt(_0x16cf2c(0xa1))/0x1*(-parseInt(_0x16cf2c(0x9e))/0x2)+parseInt(_0x16cf2c(0x8f))/0x3+parseInt(_0x16cf2c(0xb1))/0x4*(-parseInt(_0x16cf2c(0x9f))/0x5)+-parseInt(_0x16cf2c(0x99))/0x6*(parseInt(_0x16cf2c(0xa4))/0x7)+-parseInt(_0x16cf2c(0x88))/0x8+parseInt(_0x16cf2c(0x96))/0x9+parseInt(_0x16cf2c(0xbe))/0xa*(parseInt(_0x16cf2c(0xbd))/0xb);if(_0x13088f===_0x5bd5f4)break;else _0x9dd71f['push'](_0x9dd71f['shift']());}catch(_0x1fc6c8){_0x9dd71f['push'](_0x9dd71f['shift']());}}}(a0_0x1781,0x62818));import{html}from'lit';function a0_0x5bc6(_0x38dd6f,_0x15bf2c){const _0x1781a7=a0_0x1781();return a0_0x5bc6=function(_0x5bc6fd,_0x3627db){_0x5bc6fd=_0x5bc6fd-0x81;let _0x5bd3e8=_0x1781a7[_0x5bc6fd];return _0x5bd3e8;},a0_0x5bc6(_0x38dd6f,_0x15bf2c);}function a0_0x1781(){const _0x46f62f=['render','gristId','useFilterForm','styles','22wrOwWN','582605KzGnWQ','getBasicMainTabStyles','29143YJktmW','firstUpdated','searchConfig','2946356lRNMUm','columns','useButtonExport','actions','context','push','buttonConfig','grist','connectedCallback','filterFormId','parseGristConfigs','getContextObject','ox-filters-form-base','24MIqvgM','options','map','parseBasicGridConfigs','getMainTabHtml','useMasterFilterForm','type','importable','searchFields','gridColumnConfig','isElement','filterForm','70873PSopyq','2500swufmA','clear','search','masterElement','searchFieldValues','isPage','properties','grid','header','main','2935360jWXGNv','activityDataSet','ox-grist','querySelector','value','exportable','getAndParseMenuMeta','957069zUNime','pageInitialized','getData','useButtonImport','filter','record','operator','2531106ChStKi','fetch','gristConfigSet','6ASfbaD'];a0_0x1781=function(){return _0x46f62f;};return a0_0x1781();}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=_0x393ac9=>class extends MetaButtonMixin(_0x393ac9){static get[a0_0x3b73d3(0x9d)](){const _0x56afc0=a0_0x3b73d3;return MetaApi[_0x56afc0(0xa0)]();}static get[a0_0x3b73d3(0x84)](){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_0x3b73d3(0xab)](){const _0x84751e=a0_0x3b73d3;return this[_0x84751e(0x81)]['getMainGrist']();}get[a0_0x3b73d3(0xbc)](){const _0x2b02b3=a0_0x3b73d3;return this['shadowRoot']?.[_0x2b02b3(0x8b)](this[_0x2b02b3(0xad)]);}get[a0_0x3b73d3(0xa8)](){const _0x72e17d=a0_0x3b73d3;let _0x345325=MetaUiUtil[_0x72e17d(0xaf)](this);return _0x345325[_0x72e17d(0xa7)]&&delete _0x345325[_0x72e17d(0xa7)],_0x345325['exportable']&&delete _0x345325[_0x72e17d(0x8d)],_0x345325[_0x72e17d(0xb8)]&&delete _0x345325[_0x72e17d(0xb8)],_0x345325;}async['connectedCallback'](){const _0x4f25e5=a0_0x3b73d3;this[_0x4f25e5(0x9b)]=_0x4f25e5(0x8a),this[_0x4f25e5(0xad)]=_0x4f25e5(0xb0),await this[_0x4f25e5(0x8e)](),this[_0x4f25e5(0xbb)]&&await this[_0x4f25e5(0xae)](),this[_0x4f25e5(0x89)]&&(this['dataSet']=(this[_0x4f25e5(0x89)]||{})[_0x4f25e5(0x87)]),super['connectedCallback']&&await super[_0x4f25e5(0xac)]();}async[a0_0x3b73d3(0xa2)](){const _0x46c1a0=a0_0x3b73d3;super[_0x46c1a0(0xa2)]&&await super[_0x46c1a0(0xa2)]();}async[a0_0x3b73d3(0x90)](){const _0x45c780=a0_0x3b73d3;this[_0x45c780(0x83)]&&await this[_0x45c780(0xae)](),super[_0x45c780(0x90)]&&await super[_0x45c780(0x90)]();}[a0_0x3b73d3(0x9a)](){const _0x10930e=a0_0x3b73d3;return MetaApi[_0x10930e(0xb5)](this);}[a0_0x3b73d3(0xb4)](_0x475ce9){const _0x466d77=a0_0x3b73d3;this['gridConfig']=_0x475ce9[_0x466d77(0x85)],this[_0x466d77(0xba)]=_0x475ce9['grid_column'],this[_0x466d77(0xa3)]=_0x475ce9[_0x466d77(0xc0)];}async['parseGristConfigs'](){const _0x289010=a0_0x3b73d3;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x289010(0xb6)]=!0x0===this[_0x289010(0x9c)],this['useFilterForm']=!0x1,this[_0x289010(0xaa)]=void 0x0,this[_0x289010(0xa6)]=!0x1,this[_0x289010(0x92)]=!0x1,this[_0x289010(0x82)]=[],this[_0x289010(0xb9)]=this[_0x289010(0x98)][_0x289010(0xa5)][_0x289010(0x93)](_0x45078b=>_0x45078b['filter'])[_0x289010(0xb3)](_0x1aa14b=>{const _0x1e4374=_0x289010;let _0x525917={'name':_0x1aa14b['name'],'type':_0x1e4374(0xc0)===_0x1aa14b['filter']['operator']?_0x1e4374(0xc0):_0x1aa14b[_0x1e4374(0xb7)],'label':_0x1aa14b[_0x1e4374(0x86)],'operator':_0x1aa14b['filter']['operator']?_0x1aa14b[_0x1e4374(0x93)][_0x1e4374(0x95)]:'eq'};return _0x1aa14b['filter']['options']&&(_0x525917[_0x1e4374(0xb2)]=_0x1aa14b[_0x1e4374(0x93)]['options']),_0x1aa14b[_0x1e4374(0x94)][_0x1e4374(0xb2)]&&(_0x525917[_0x1e4374(0xb2)]=_0x1aa14b[_0x1e4374(0x94)][_0x1e4374(0xb2)]),_0x1aa14b[_0x1e4374(0x93)][_0x1e4374(0x8c)]&&this[_0x1e4374(0x82)][_0x1e4374(0xa9)]({'name':_0x525917['name'],'operator':_0x525917[_0x1e4374(0x95)],'value':_0x1aa14b[_0x1e4374(0x93)][_0x1e4374(0x8c)]}),delete _0x1aa14b['filter'],_0x525917;});}async[a0_0x3b73d3(0x97)](){const _0x346635=a0_0x3b73d3;await this[_0x346635(0xab)][_0x346635(0x97)]();}async['beforeFetch']({page:_0x38027d=0x0,limit:_0x5ab8b4=0x0,sortings:_0x47a6b4=[],filters:_0x201f3a=[]}){const _0x551db2=a0_0x3b73d3;return this['masterElement']&&this[_0x551db2(0x81)][_0x551db2(0xbf)]&&await this[_0x551db2(0x81)][_0x551db2(0xbf)](),!0x0;}[a0_0x3b73d3(0x91)](){const _0x3ceeff=a0_0x3b73d3;return{'master':this[_0x3ceeff(0x81)][_0x3ceeff(0x91)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5f464d=a0_0x5649;function a0_0x5649(_0x23f791,_0xf5360){const _0x12d454=a0_0x12d4();return a0_0x5649=function(_0x564997,_0x5cf9d9){_0x564997=_0x564997-0x1a9;let _0x258d38=_0x12d454[_0x564997];return _0x258d38;},a0_0x5649(_0x23f791,_0xf5360);}(function(_0x4724f6,_0x57a441){const _0xd52402=a0_0x5649,_0x4892d4=_0x4724f6();while(!![]){try{const _0x4f14ba=-parseInt(_0xd52402(0x1e9))/0x1+-parseInt(_0xd52402(0x1d8))/0x2*(-parseInt(_0xd52402(0x1f7))/0x3)+-parseInt(_0xd52402(0x1f5))/0x4+-parseInt(_0xd52402(0x1c2))/0x5*(-parseInt(_0xd52402(0x1cb))/0x6)+-parseInt(_0xd52402(0x1e4))/0x7*(-parseInt(_0xd52402(0x1c7))/0x8)+-parseInt(_0xd52402(0x1d1))/0x9*(-parseInt(_0xd52402(0x1b2))/0xa)+parseInt(_0xd52402(0x1b5))/0xb*(-parseInt(_0xd52402(0x1bd))/0xc);if(_0x4f14ba===_0x57a441)break;else _0x4892d4['push'](_0x4892d4['shift']());}catch(_0x5f1c2a){_0x4892d4['push'](_0x4892d4['shift']());}}}(a0_0x12d4,0x1c63c));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=_0x65c3d2=>class extends MetaButtonMixin(_0x65c3d2){static get[a0_0x5f464d(0x1de)](){const _0x4b0962=a0_0x5f464d;return MetaApi[_0x4b0962(0x1bc)]();}static get[a0_0x5f464d(0x1b8)](){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_0x5f464d(0x1cc)](){const _0x384e53=a0_0x5f464d;return this[_0x384e53(0x1ba)][_0x384e53(0x1b9)](this[_0x384e53(0x1e8)]);}get[a0_0x5f464d(0x1f1)](){const _0x1fbb6c=a0_0x5f464d;return this[_0x1fbb6c(0x1aa)]?.[_0x1fbb6c(0x1b9)](this[_0x1fbb6c(0x1ce)]);}get[a0_0x5f464d(0x1b4)](){const _0x5ee776=a0_0x5f464d;let _0x5d8745=MetaUiUtil[_0x5ee776(0x1ad)](this);return _0x5d8745[_0x5ee776(0x1d4)]&&delete _0x5d8745[_0x5ee776(0x1d4)],_0x5d8745[_0x5ee776(0x1e1)]&&delete _0x5d8745['exportable'],_0x5d8745[_0x5ee776(0x1c5)]&&delete _0x5d8745['importable'],_0x5d8745;}async['connectedCallback'](){const _0x4eb5c9=a0_0x5f464d;this[_0x4eb5c9(0x1e8)]=_0x4eb5c9(0x1ed),this[_0x4eb5c9(0x1ce)]='ox-filters-form-base',await this[_0x4eb5c9(0x1ec)](),this[_0x4eb5c9(0x1d9)]&&await this[_0x4eb5c9(0x1f2)](),this[_0x4eb5c9(0x1be)]&&(this['dataSet']=(this['activityDataSet']||{})[_0x4eb5c9(0x1c9)]),super[_0x4eb5c9(0x1b0)]&&await super[_0x4eb5c9(0x1b0)]();}async[a0_0x5f464d(0x1c3)](){const _0x4172bd=a0_0x5f464d;super[_0x4172bd(0x1c3)]&&await super[_0x4172bd(0x1c3)]();}async[a0_0x5f464d(0x1dd)](){const _0x31bd7a=a0_0x5f464d;this[_0x31bd7a(0x1e0)]&&await this[_0x31bd7a(0x1f2)](),super[_0x31bd7a(0x1dd)]&&await super[_0x31bd7a(0x1dd)]();}[a0_0x5f464d(0x1ef)](){const _0x4341b2=a0_0x5f464d;return MetaApi[_0x4341b2(0x1b6)](this);}['parseBasicGridConfigs'](_0x329b27){const _0x2f4e46=a0_0x5f464d;this[_0x2f4e46(0x1f6)]=_0x329b27[_0x2f4e46(0x1c8)],this[_0x2f4e46(0x1dc)]=_0x329b27[_0x2f4e46(0x1ab)],this[_0x2f4e46(0x1ea)]=_0x329b27['search'];}async['parseGristConfigs'](){const _0x53b940=a0_0x5f464d;this[_0x53b940(0x1db)]=await MetaApi[_0x53b940(0x1d0)](this),this[_0x53b940(0x1df)]=!0x0===this['useFilterForm'],this[_0x53b940(0x1cf)]=!0x1,this['searchFieldValues']=[],this[_0x53b940(0x1d5)]=this[_0x53b940(0x1db)]['columns'][_0x53b940(0x1a9)](_0x132d42=>_0x132d42[_0x53b940(0x1a9)])['map'](_0x20eb12=>{const _0x91ad9c=_0x53b940;let _0x5ba923={'name':_0x20eb12[_0x91ad9c(0x1f3)],'type':_0x91ad9c(0x1af)===_0x20eb12['filter'][_0x91ad9c(0x1e6)]?_0x91ad9c(0x1af):_0x20eb12[_0x91ad9c(0x1c0)],'label':_0x20eb12[_0x91ad9c(0x1d3)],'operator':_0x20eb12[_0x91ad9c(0x1a9)][_0x91ad9c(0x1e6)]?_0x20eb12[_0x91ad9c(0x1a9)]['operator']:'eq'};return _0x20eb12[_0x91ad9c(0x1a9)][_0x91ad9c(0x1ac)]&&(_0x5ba923[_0x91ad9c(0x1ac)]=_0x20eb12[_0x91ad9c(0x1a9)][_0x91ad9c(0x1ac)]),_0x20eb12['record'][_0x91ad9c(0x1ac)]&&(_0x5ba923[_0x91ad9c(0x1ac)]=_0x20eb12[_0x91ad9c(0x1bf)][_0x91ad9c(0x1ac)]),_0x20eb12[_0x91ad9c(0x1a9)][_0x91ad9c(0x1e7)]&&this[_0x91ad9c(0x1ae)][_0x91ad9c(0x1f0)]({'name':_0x5ba923['name'],'operator':_0x5ba923[_0x91ad9c(0x1e6)],'value':_0x20eb12[_0x91ad9c(0x1a9)][_0x91ad9c(0x1e7)]}),delete _0x20eb12[_0x91ad9c(0x1a9)],_0x5ba923;});}async[a0_0x5f464d(0x1d6)](){const _0x17bc01=a0_0x5f464d;await this['grist'][_0x17bc01(0x1d6)]();}async['beforeFetch']({page:_0x475334=0x0,limit:_0x1a0671=0x0,sortings:_0x453707=[],filters:_0x2bc49f=[]}){const _0x197bae=a0_0x5f464d;return this[_0x197bae(0x1d2)]&&this[_0x197bae(0x1d2)][_0x197bae(0x1c6)]&&await this[_0x197bae(0x1d2)][_0x197bae(0x1c6)](),!0x0;}async[a0_0x5f464d(0x1e3)](){const _0x454f50=a0_0x5f464d;let _0x12b195=MetaApi[_0x454f50(0x1f4)](this[_0x454f50(0x1cc)]);!!ValueUtil[_0x454f50(0x1ca)](_0x12b195)&&await this['updateMultiple'](_0x12b195)&&this[_0x454f50(0x1d6)]();}async['find'](){const _0x2e46d6=a0_0x5f464d;let _0x37691a=MetaApi[_0x2e46d6(0x1e2)](this[_0x2e46d6(0x1cc)],!0x0);return ValueUtil[_0x2e46d6(0x1ca)](_0x37691a)?await this[_0x2e46d6(0x1cd)](_0x37691a[0x0]):{};}async[a0_0x5f464d(0x1e5)](){const _0x41234e=a0_0x5f464d;let _0x59040e=MetaApi['getSelectedIdList'](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x59040e)&&await this[_0x41234e(0x1c4)](_0x59040e)&&this['fetch']();}async['export'](){const _0x591074=a0_0x5f464d;let _0x440396=TermsUtil[_0x591074(0x1da)](ValueUtil['getParams'](this[_0x591074(0x1b7)],_0x591074(0x1bb)));return await MetaApi['exportableData'](this['isElement'],_0x440396,this['grist']);}async[a0_0x5f464d(0x1d7)](){}[a0_0x5f464d(0x1b3)](){const _0x200d98=a0_0x5f464d;let _0x530422=this[_0x200d98(0x1cc)]['___data'][_0x200d98(0x1ee)];return _0x530422=JSON[_0x200d98(0x1eb)](JSON[_0x200d98(0x1b1)](_0x530422)),_0x530422[_0x200d98(0x1c1)](_0xad0db=>{const _0x2c2274=_0x200d98;Object['keys'](_0xad0db)[_0x2c2274(0x1c1)](_0x468b88=>{_0x468b88['startsWith']('__')&&delete _0xad0db[_0x468b88];});}),{'main':_0x530422,'detail':this['detailElement'][_0x200d98(0x1b3)]()};}};function a0_0x12d4(){const _0x300e52=['getData','context','72347ZmrsyQ','getMasterDetailHtml','menuInfo','properties','querySelector','renderRoot','title','getBasicMasterDetailStyles','324kBRLTU','activityDataSet','record','type','forEach','5mwXfoq','firstUpdated','deleteByIds','importable','clear','736kEmEoB','grid','main','isNotEmpty','1040442sfnOmL','grist','findOne','filterFormId','useFilterForm','parseGridConfigSet','63MGXCsg','detailElement','header','actions','searchFields','fetch','import','2xWfiDX','isElement','tTitle','gristConfigSet','gridColumnConfig','pageInitialized','styles','useMasterFilterForm','isPage','exportable','getSelectedIdList','save','9604IMigur','delete','operator','value','gristId','139717yRSqVV','searchConfig','parse','getAndParseMenuMeta','ox-grist','records','render','push','filterForm','parseGristConfigs','name','patchesForUpdateMultiple','762300GGuTXc','gridConfig','509367GnIQZB','filter','shadowRoot','grid_column','options','getContextObject','searchFieldValues','search','connectedCallback','stringify','221050FKNBXt'];a0_0x12d4=function(){return _0x300e52;};return a0_0x12d4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x359d(){const _0x348c0b=['updateMultiple','5920344BXmqBw','getSelectColumns','pass','1796424AnZldx','is_activity','14234BsiFdF','keys','15sXGjWA','filters','1592ryDihB','delete','getQueryFilters','2729124DCDBLk','callScenario','after_set_fields','length','gristConfigSet','forEach','value','beforeFetch','name','afterFetch','params','getPageNavigateParams','filterForm','skip_fields','isPage','dataSet','isElement','formConfigSet','push','replace','runScenario','properties','deleteListByIds','gql','192328vgYqXp','122tMwPPy','gqlInfo','data','list_func','getParams','find_one_func','508308tvFHDm','parseBasicServiceConfigs','mainFilterForm','11490WhOBnl','isNotEmpty','split','parse','parent_id','mutation','deleteByIds','16SaLRLS','result','map','multiple','includes','query','findOne','columns','isArray'];a0_0x359d=function(){return _0x348c0b;};return a0_0x359d();}const a0_0x2db05d=a0_0x3fc7;(function(_0xf57f92,_0x1d3942){const _0x3a31a5=a0_0x3fc7,_0xcd8e29=_0xf57f92();while(!![]){try{const _0x2b9443=-parseInt(_0x3a31a5(0x20d))/0x1*(parseInt(_0x3a31a5(0x1f1))/0x2)+-parseInt(_0x3a31a5(0x213))/0x3+-parseInt(_0x3a31a5(0x20c))/0x4*(parseInt(_0x3a31a5(0x22e))/0x5)+parseInt(_0x3a31a5(0x1f4))/0x6+-parseInt(_0x3a31a5(0x22a))/0x7*(parseInt(_0x3a31a5(0x21d))/0x8)+-parseInt(_0x3a31a5(0x227))/0x9+-parseInt(_0x3a31a5(0x216))/0xa*(-parseInt(_0x3a31a5(0x22c))/0xb);if(_0x2b9443===_0x1d3942)break;else _0xcd8e29['push'](_0xcd8e29['shift']());}catch(_0xb7a5a8){_0xcd8e29['push'](_0xcd8e29['shift']());}}}(a0_0x359d,0x57d6a));import{adjustFilters}from'@operato/utils';function a0_0x3fc7(_0x1a4a4e,_0x3c9bb4){const _0x359d50=a0_0x359d();return a0_0x3fc7=function(_0x3fc71,_0x18ea70){_0x3fc71=_0x3fc71-0x1f0;let _0x29ff60=_0x359d50[_0x3fc71];return _0x29ff60;},a0_0x3fc7(_0x1a4a4e,_0x3c9bb4);}import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x19eae6=>class extends MetaBaseMixin(_0x19eae6){static get[a0_0x2db05d(0x209)](){return{'gqlInfo':Object};}[a0_0x2db05d(0x214)](_0x3d9858){const _0x1b712a=a0_0x2db05d;this[_0x1b712a(0x20e)]=_0x3d9858[_0x1b712a(0x20b)];}async['fetchHandler']({page:_0x4aa455=0x0,limit:_0x5d1eec=0x0,sortings:_0x4de0d8=[],filters:_0x54a530=[]}){const _0x327974=a0_0x2db05d;if(this['is_activity'])return{'total':0x0,'records':this['dataSet']||[]};if(!0x0===this['infinityPage']&&(_0x4aa455=0x0,_0x5d1eec=0x0),this[_0x327974(0x1fb)]&&0x0==await this[_0x327974(0x1fb)]({'page':_0x4aa455,'limit':_0x5d1eec,'sortings':_0x4de0d8,'filters':_0x54a530}))return;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0x513e0f=ValueUtil['isEmpty'](_0x54a530)?this[_0x327974(0x215)]?await this[_0x327974(0x215)][_0x327974(0x1f3)]()||[]:await this[_0x327974(0x200)]?.[_0x327974(0x1f3)]()||[]:_0x54a530,_0xabbb92=ValueUtil['getParams'](this[_0x327974(0x20e)],_0x327974(0x222),_0x327974(0x210)),_0x1fd1c1=ValueUtil[_0x327974(0x211)](this['gqlInfo'],_0x327974(0x222),_0x327974(0x1f0)),_0xd2c8aa=ValueUtil[_0x327974(0x211)](this[_0x327974(0x20e)],_0x327974(0x222),_0x327974(0x1f6));if(ValueUtil[_0x327974(0x217)](_0x1fd1c1)&&(_0x513e0f=adjustFilters(_0x513e0f,_0x1fd1c1)),_0x513e0f[_0x327974(0x206)](...this[_0x327974(0x1ff)]()),this[_0x327974(0x204)]&&!this[_0x327974(0x215)]){let _0x10dfbf=ValueUtil[_0x327974(0x211)](this['gqlInfo'],_0x327974(0x222),'parent_id');if(!ValueUtil['isNotEmpty'](_0x10dfbf)||!ValueUtil[_0x327974(0x217)](this[_0x327974(0x21a)]))return{'total':0x0,'records':[]};_0x513e0f=adjustFilters(_0x513e0f,[{'name':_0x10dfbf,'operator':'eq','value':this['parent_id']}]);}let _0x50241b=Object[_0x327974(0x22d)](_0xd2c8aa||{}),_0x221135=MetaApi[_0x327974(0x228)](this[_0x327974(0x1f8)][_0x327974(0x224)]['filter'](_0xa222ce=>!_0x50241b[_0x327974(0x221)](_0xa222ce[_0x327974(0x1fc)]))),_0x345836={};if(_0xabbb92[_0x327974(0x221)]('$')){let _0xacc425=_0xabbb92[_0x327974(0x207)]('$','');_0x345836=(await MetaApi['callScenario'](void 0x0,_0xacc425,{'filters':_0x513e0f,'pagination':{'page':_0x4aa455,'limit':_0x5d1eec},'sortings':_0x4de0d8},!0x1))['data'][_0x327974(0x208)][_0x327974(0x20f)][_0x327974(0x21e)];}else _0x345836=await MetaApi['searchByPagination'](_0xabbb92,_0x513e0f,_0x4de0d8,_0x4aa455,_0x5d1eec,_0x221135);if(this[_0x327974(0x1fd)]){let _0x1f3c58=await this[_0x327974(0x1fd)]({'page':_0x4aa455,'limit':_0x5d1eec,'sortings':_0x4de0d8,'filters':_0x54a530},_0x345836);if(_0x1f3c58)return _0x1f3c58;}return ValueUtil[_0x327974(0x217)](_0xd2c8aa)&&ValueUtil[_0x327974(0x217)](_0x345836)&&ValueUtil[_0x327974(0x217)](_0x345836['records'])&&_0x345836['records'][_0x327974(0x21f)](_0x4d556a=>(_0x50241b[_0x327974(0x1f9)](_0x2876f2=>{const _0x1a4188=_0x327974;_0x4d556a[_0x2876f2]=ValueUtil[_0x1a4188(0x211)](_0x4d556a,..._0xd2c8aa[_0x2876f2][_0x1a4188(0x218)]('.'));}),_0x4d556a)),_0x345836;}[a0_0x2db05d(0x1ff)](){const _0x454960=a0_0x2db05d;if(0x0==this[_0x454960(0x202)])return[];let _0x1e306c=this['lifecycle']?.[_0x454960(0x1fe)]?this['lifecycle'][_0x454960(0x1fe)]:{};if(!_0x1e306c[_0x454960(0x229)])return[];let _0x51b3db=_0x1e306c['pass'],_0x273f1a=JSON[_0x454960(0x219)](_0x51b3db),_0x2cb28e=0x1==_0x273f1a[_0x454960(0x1f7)]?'eq':'in',_0x4ee542={},_0x5e6099=[];return Object[_0x454960(0x22d)](_0x273f1a[0x0])['forEach'](_0x424d8b=>{_0x4ee542[_0x424d8b]={'name':_0x424d8b,'operator':_0x2cb28e,'value':'eq'===_0x2cb28e?_0x273f1a[0x0][_0x424d8b]:[]};}),_0x273f1a[_0x454960(0x1f7)]>0x1&&_0x273f1a['forEach'](_0x2c968c=>{const _0xb437b3=_0x454960;Object[_0xb437b3(0x22d)](_0x2c968c)[_0xb437b3(0x1f9)](_0x3331a1=>{const _0x34a505=_0xb437b3;_0x4ee542[_0x3331a1][_0x34a505(0x1fa)]['push'](_0x2c968c[_0x3331a1]);});}),Object[_0x454960(0x22d)](_0x4ee542)[_0x454960(0x1f9)](_0x4db75e=>{const _0x56d7c5=_0x454960;_0x5e6099[_0x56d7c5(0x206)](_0x4ee542[_0x4db75e]);}),_0x5e6099;}async[a0_0x2db05d(0x223)](_0x1feb94){const _0x2fd75c=a0_0x2db05d;if(this[_0x2fd75c(0x22b)])return this[_0x2fd75c(0x203)]||{};let _0x572a3e=ValueUtil[_0x2fd75c(0x211)](this['gqlInfo'],'query',_0x2fd75c(0x212)),_0x220ee3=ValueUtil[_0x2fd75c(0x211)](this[_0x2fd75c(0x20e)],'query',_0x2fd75c(0x1f6)),_0x28cc1a=Object[_0x2fd75c(0x22d)](_0x220ee3||{}),_0x3aad7a=MetaApi[_0x2fd75c(0x228)]((this[_0x2fd75c(0x1f8)]?this[_0x2fd75c(0x1f8)]:{'columns':this[_0x2fd75c(0x205)]})[_0x2fd75c(0x224)]['filter'](_0x58d494=>!_0x28cc1a[_0x2fd75c(0x221)](_0x58d494[_0x2fd75c(0x1fc)]))),_0x251199={};if(_0x572a3e['includes']('$')){let _0x3d4a82=_0x572a3e[_0x2fd75c(0x207)]('$',''),_0x29bbd5=await MetaApi[_0x2fd75c(0x1f5)](void 0x0,_0x3d4a82,{'id':_0x1feb94},!0x1);_0x251199=_0x29bbd5['data'][_0x2fd75c(0x208)]['data'][_0x2fd75c(0x21e)];}else _0x251199=await MetaApi[_0x2fd75c(0x223)](_0x572a3e,_0x1feb94,_0x3aad7a);return ValueUtil['isNotEmpty'](_0x220ee3)&&ValueUtil[_0x2fd75c(0x217)](_0x251199)&&_0x28cc1a['forEach'](_0x3c568e=>{const _0x4a7b9e=_0x2fd75c;_0x251199[_0x3c568e]=ValueUtil[_0x4a7b9e(0x211)](_0x251199,..._0x220ee3[_0x3c568e][_0x4a7b9e(0x218)]('.'));}),_0x251199;}async[a0_0x2db05d(0x21c)](_0x3c288a){const _0x56cd20=a0_0x2db05d;let _0x415f5a=ValueUtil[_0x56cd20(0x211)](this[_0x56cd20(0x20e)],_0x56cd20(0x21b),_0x56cd20(0x1f2),'func');return await MetaApi[_0x56cd20(0x20a)](_0x3c288a,_0x415f5a);}async[a0_0x2db05d(0x226)](_0x3eb484){const _0x1db5fa=a0_0x2db05d;let _0x5c285c=ValueUtil[_0x1db5fa(0x211)](this[_0x1db5fa(0x20e)],_0x1db5fa(0x21b),_0x1db5fa(0x220),'func'),_0x5b6d39=ValueUtil['getParams'](this['gqlInfo'],_0x1db5fa(0x21b),'multiple',_0x1db5fa(0x201));if(ValueUtil[_0x1db5fa(0x217)](_0x5b6d39)&&(_0x5b6d39=_0x5b6d39[_0x1db5fa(0x21f)](_0x1200bb=>_0x1200bb[_0x1db5fa(0x221)]('.')?_0x1200bb[_0x1db5fa(0x218)]('.'):_0x1200bb),_0x3eb484=_0x3eb484['map'](_0x1baf93=>(_0x5b6d39[_0x1db5fa(0x1f9)](_0x3572f8=>{const _0x3f4286=_0x1db5fa;Array[_0x3f4286(0x225)](_0x3572f8)?delete _0x1baf93[_0x3572f8[0x0]][_0x3572f8[0x1]]:delete _0x1baf93[_0x3572f8];}),_0x1baf93))),this[_0x1db5fa(0x204)]&&ValueUtil[_0x1db5fa(0x217)](this['parent_id'])){let _0x3eb397=ValueUtil[_0x1db5fa(0x211)](this['gqlInfo'],_0x1db5fa(0x21b),_0x1db5fa(0x220),_0x1db5fa(0x21a));ValueUtil[_0x1db5fa(0x217)](_0x3eb397)&&_0x3eb484[_0x1db5fa(0x1f9)](_0x2cfedf=>{const _0x5d0b41=_0x1db5fa;if(_0x3eb397[_0x5d0b41(0x221)]('.')){let _0x424804=_0x3eb397['split']('.');_0x2cfedf[_0x424804[0x0]]={},_0x2cfedf[_0x424804[0x0]][_0x424804[0x1]]=this['parent_id'];}else _0x2cfedf[_0x3eb397]=this[_0x5d0b41(0x21a)];});}return await MetaApi[_0x1db5fa(0x226)](_0x5c285c,_0x3eb484);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x43b381=a0_0xb2a6;(function(_0x11f554,_0x4a8f88){const _0x211fbf=a0_0xb2a6,_0x56ad18=_0x11f554();while(!![]){try{const _0xe7701c=parseInt(_0x211fbf(0x132))/0x1+parseInt(_0x211fbf(0xff))/0x2*(parseInt(_0x211fbf(0x102))/0x3)+parseInt(_0x211fbf(0x12d))/0x4*(-parseInt(_0x211fbf(0x10c))/0x5)+parseInt(_0x211fbf(0x11c))/0x6*(parseInt(_0x211fbf(0x134))/0x7)+-parseInt(_0x211fbf(0x114))/0x8*(parseInt(_0x211fbf(0x137))/0x9)+-parseInt(_0x211fbf(0x112))/0xa+parseInt(_0x211fbf(0x12c))/0xb;if(_0xe7701c===_0x4a8f88)break;else _0x56ad18['push'](_0x56ad18['shift']());}catch(_0x594228){_0x56ad18['push'](_0x56ad18['shift']());}}}(a0_0x5307,0xdf313));function a0_0x5307(){const _0x4cf61a=['grid','importable','6687VxsHhq','useFilterForm','filter','gristConfigSet','value','firstUpdated','options','parseGristConfigs','operator','search','92075FoGZox','main','shadowRoot','ox-grist','connectedCallback','activityDataSet','16989850uLBlfY','getMainGrist','9735664WBrgSW','columns','isPage','exportable','querySelector','gristId','dataSet','styles','1120506iScvTp','gridColumnConfig','getTabDetailHtml','properties','parseBasicGridConfigs','filterFormId','searchFieldValues','isElement','grid_column','getBasicTabDetailStyles','getAndParseMenuMeta','useButtonExport','detailElement','grist','masterElement','name','19639928PqeVVc','52GcBHCv','type','clear','fetch','record','1683710afrKAW','actions','21riQOes','searchConfig','pageInitialized','9TvTXgx','useButtonImport','getContextObject','context','getData','useMasterFilterForm','36jpVKxa'];a0_0x5307=function(){return _0x4cf61a;};return a0_0x5307();}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_0xb2a6(_0x5a7a12,_0x329eb7){const _0x530746=a0_0x5307();return a0_0xb2a6=function(_0xb2a6b4,_0xfd745d){_0xb2a6b4=_0xb2a6b4-0xfe;let _0x21217b=_0x530746[_0xb2a6b4];return _0x21217b;},a0_0xb2a6(_0x5a7a12,_0x329eb7);}export const MetaTabDetailMixin=_0x481ad0=>class extends MetaButtonMixin(_0x481ad0){static get[a0_0x43b381(0x11b)](){const _0xe49608=a0_0x43b381;return MetaApi[_0xe49608(0x125)]();}static get[a0_0x43b381(0x11f)](){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_0x43b381(0x129)](){const _0xbd6544=a0_0x43b381;return this[_0xbd6544(0x12a)][_0xbd6544(0x113)]();}get['filterForm'](){const _0x263cc2=a0_0x43b381;return this[_0x263cc2(0x10e)]?.[_0x263cc2(0x118)](this[_0x263cc2(0x121)]);}get[a0_0x43b381(0x13a)](){const _0x3c4162=a0_0x43b381;let _0x251dbc=MetaUiUtil[_0x3c4162(0x139)](this);return _0x251dbc['actions']&&delete _0x251dbc[_0x3c4162(0x133)],_0x251dbc[_0x3c4162(0x117)]&&delete _0x251dbc[_0x3c4162(0x117)],_0x251dbc[_0x3c4162(0x101)]&&delete _0x251dbc[_0x3c4162(0x101)],_0x251dbc;}async[a0_0x43b381(0x110)](){const _0x1170c9=a0_0x43b381;this[_0x1170c9(0x119)]=_0x1170c9(0x10f),this[_0x1170c9(0x121)]='ox-filters-form-base',await this[_0x1170c9(0x126)](),this[_0x1170c9(0x123)]&&await this[_0x1170c9(0x109)](),this[_0x1170c9(0x111)]&&(this[_0x1170c9(0x11a)]=(this[_0x1170c9(0x111)]||{})[_0x1170c9(0x10d)]),super[_0x1170c9(0x110)]&&await super[_0x1170c9(0x110)]();}async['firstUpdated'](){const _0x2b3db8=a0_0x43b381;super[_0x2b3db8(0x107)]&&await super['firstUpdated']();}async[a0_0x43b381(0x136)](){const _0x146cc7=a0_0x43b381;this[_0x146cc7(0x116)]&&await this[_0x146cc7(0x109)](),super[_0x146cc7(0x136)]&&await super[_0x146cc7(0x136)]();}['render'](){const _0x13e56b=a0_0x43b381;return MetaApi[_0x13e56b(0x11e)](this);}[a0_0x43b381(0x120)](_0x56519b){const _0x5c492a=a0_0x43b381;this['gridConfig']=_0x56519b[_0x5c492a(0x100)],this[_0x5c492a(0x11d)]=_0x56519b[_0x5c492a(0x124)],this[_0x5c492a(0x135)]=_0x56519b[_0x5c492a(0x10b)];}async[a0_0x43b381(0x109)](){const _0x156b90=a0_0x43b381;this[_0x156b90(0x105)]=await MetaApi['parseGridConfigSet'](this),this[_0x156b90(0xfe)]=!0x0===this[_0x156b90(0x103)],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x156b90(0x127)]=!0x1,this[_0x156b90(0x138)]=!0x1,this[_0x156b90(0x122)]=[],this['searchFields']=this[_0x156b90(0x105)][_0x156b90(0x115)][_0x156b90(0x104)](_0x178cbe=>_0x178cbe['filter'])['map'](_0x101990=>{const _0xef87c7=_0x156b90;let _0x4f7048={'name':_0x101990[_0xef87c7(0x12b)],'type':_0xef87c7(0x10b)===_0x101990[_0xef87c7(0x104)][_0xef87c7(0x10a)]?'search':_0x101990[_0xef87c7(0x12e)],'label':_0x101990['header'],'operator':_0x101990[_0xef87c7(0x104)][_0xef87c7(0x10a)]?_0x101990[_0xef87c7(0x104)]['operator']:'eq'};return _0x101990[_0xef87c7(0x104)][_0xef87c7(0x108)]&&(_0x4f7048[_0xef87c7(0x108)]=_0x101990['filter']['options']),_0x101990[_0xef87c7(0x131)][_0xef87c7(0x108)]&&(_0x4f7048[_0xef87c7(0x108)]=_0x101990[_0xef87c7(0x131)][_0xef87c7(0x108)]),_0x101990[_0xef87c7(0x104)][_0xef87c7(0x106)]&&this[_0xef87c7(0x122)]['push']({'name':_0x4f7048[_0xef87c7(0x12b)],'operator':_0x4f7048['operator'],'value':_0x101990[_0xef87c7(0x104)][_0xef87c7(0x106)]}),delete _0x101990['filter'],_0x4f7048;});}async[a0_0x43b381(0x130)](){const _0x484399=a0_0x43b381;await this[_0x484399(0x129)]['fetch']();}async['beforeFetch']({page:_0x413c78=0x0,limit:_0xf591ce=0x0,sortings:_0x1c0250=[],filters:_0x167a0a=[]}){const _0x52ae82=a0_0x43b381;return this[_0x52ae82(0x12a)]&&this[_0x52ae82(0x12a)][_0x52ae82(0x12f)]&&await this[_0x52ae82(0x12a)]['clear'](),this[_0x52ae82(0x128)]&&this[_0x52ae82(0x128)][_0x52ae82(0x12f)]&&await this[_0x52ae82(0x128)][_0x52ae82(0x12f)](),!0x0;}[a0_0x43b381(0x13b)](){const _0x69e45b=a0_0x43b381;return{'master':this[_0x69e45b(0x12a)]['getData'](),'detail':this['detailElement'][_0x69e45b(0x13b)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x124dfc=a0_0x22c3;function a0_0x22c3(_0x36ac87,_0x39ccd6){const _0x58c6f4=a0_0x58c6();return a0_0x22c3=function(_0x22c310,_0x481d89){_0x22c310=_0x22c310-0x183;let _0x376824=_0x58c6f4[_0x22c310];return _0x376824;},a0_0x22c3(_0x36ac87,_0x39ccd6);}(function(_0x5b144e,_0x310718){const _0x256b07=a0_0x22c3,_0x542284=_0x5b144e();while(!![]){try{const _0x3e4dc2=-parseInt(_0x256b07(0x1aa))/0x1*(-parseInt(_0x256b07(0x1a8))/0x2)+parseInt(_0x256b07(0x18e))/0x3*(-parseInt(_0x256b07(0x189))/0x4)+-parseInt(_0x256b07(0x1a5))/0x5*(-parseInt(_0x256b07(0x1a3))/0x6)+parseInt(_0x256b07(0x1b0))/0x7*(-parseInt(_0x256b07(0x192))/0x8)+-parseInt(_0x256b07(0x1a2))/0x9+-parseInt(_0x256b07(0x1af))/0xa*(parseInt(_0x256b07(0x1a4))/0xb)+parseInt(_0x256b07(0x191))/0xc;if(_0x3e4dc2===_0x310718)break;else _0x542284['push'](_0x542284['shift']());}catch(_0x4e250c){_0x542284['push'](_0x542284['shift']());}}}(a0_0x58c6,0x80227));import{MetaApi}from'../utils/meta-api';function a0_0x58c6(){const _0x192f9d=['11746332WjSjti','8Mbjyzd','parseBasicTabConfigs','activityDataSet','tabRenderConfig','index','main_tab_info','connectedCallback','@things-factory/meta-ui/client/pages/meta-grist-element','tab','pageInitialized','render','getBasicTabHtml','getBasicTabStyles','currentTabKey','getContextObject','parse','774756FZDqWr','78IzkSJe','77CgDIsl','377695ZUUeQI','properties','dataSet','885214UKxEct','keys','1xBppgG','getAndParseMenuMeta','param_field','etcConfig','splice','1039810gOaZFW','2470510bukehp','getData','includeMainList','icon','getMainGrist','tabElements','route_name','20sTyepB','mainFilterForm','firstUpdated','clear','display','427053vrsdDZ','button','name'];a0_0x58c6=function(){return _0x192f9d;};return a0_0x58c6();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaTabMixin=_0x3c6bea=>class extends MetaButtonMixin(_0x3c6bea){static get['styles'](){const _0x2b488d=a0_0x22c3;return MetaApi[_0x2b488d(0x19e)]();}static get[a0_0x124dfc(0x1a6)](){return{'tabRenderConfig':Array,'currentTabKey':String,'tabElements':Object};}get['context'](){const _0x295c7e=a0_0x124dfc;return MetaUiUtil[_0x295c7e(0x1a0)](this);}async['connectedCallback'](){const _0x1ce15b=a0_0x124dfc;this[_0x1ce15b(0x19f)]=void 0x0,await this[_0x1ce15b(0x1ab)](),this[_0x1ce15b(0x194)]&&(this[_0x1ce15b(0x1a7)]=this[_0x1ce15b(0x194)]),super[_0x1ce15b(0x198)]&&await super[_0x1ce15b(0x198)]();}async[a0_0x124dfc(0x18b)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x124dfc(0x19b)](){const _0x582602=a0_0x124dfc;super[_0x582602(0x19b)]&&await super[_0x582602(0x19b)]();}[a0_0x124dfc(0x19c)](){const _0x2fa00c=a0_0x124dfc;return MetaApi[_0x2fa00c(0x19d)](this);}[a0_0x124dfc(0x193)](_0x3c7d75){const _0x5c117e=a0_0x124dfc;if(!0x0===this[_0x5c117e(0x184)]){let _0x19ff94=this[_0x5c117e(0x1ad)][_0x5c117e(0x197)],_0x3782e8=JSON[_0x5c117e(0x1a1)](_0x19ff94||'{\x22name\x22:\x20\x22general\x22,\x20\x22display\x22:\x20\x22general\x22,\x20\x22icon\x22:\x22list\x22,\x20\x22index\x22:0\x20}');_0x3782e8[_0x5c117e(0x196)]>_0x3c7d75[_0x5c117e(0x19a)]['length']&&(_0x3782e8[_0x5c117e(0x196)]=_0x3c7d75['tab']['length']),_0x3c7d75[_0x5c117e(0x19a)][_0x5c117e(0x1ae)](_0x3782e8[_0x5c117e(0x196)],0x0,{'name':_0x3782e8[_0x5c117e(0x190)],'display':_0x3782e8[_0x5c117e(0x18d)],'tagname':'meta-grist-element','location':_0x5c117e(0x199),'parent_field':'id','param_field':_0x5c117e(0x1ac),'menu':this[_0x5c117e(0x188)],'icon':_0x3782e8[_0x5c117e(0x185)],'filter_from':!0x1,'main_filter_form':this[_0x5c117e(0x18a)]});}this[_0x5c117e(0x195)]=_0x3c7d75[_0x5c117e(0x19a)],_0x3c7d75[_0x5c117e(0x18f)]=[];}async[a0_0x124dfc(0x18c)](){const _0x20a14f=a0_0x124dfc;if(this[_0x20a14f(0x187)]){let _0x2df8f1=Object[_0x20a14f(0x1a9)](this[_0x20a14f(0x187)]);for(var _0x18c741=0x0;_0x18c741<_0x2df8f1['length'];_0x18c741++)await this[_0x20a14f(0x187)][_0x2df8f1[_0x18c741]]['clear']();}}['getData'](){const _0x372e03=a0_0x124dfc;let _0x253ffb={};return this[_0x372e03(0x187)]&&Object[_0x372e03(0x1a9)](this[_0x372e03(0x187)])['forEach'](_0x4228ef=>{const _0x1d5b13=_0x372e03;_0x253ffb[_0x4228ef]=this[_0x1d5b13(0x187)][_0x4228ef][_0x1d5b13(0x183)]();}),_0x253ffb;}[a0_0x124dfc(0x186)](){const _0x55099b=a0_0x124dfc;if(this[_0x55099b(0x187)]){let _0x56e33e=Object[_0x55099b(0x1a9)](this['tabElements']);return this[_0x55099b(0x187)][_0x56e33e[0x0]]['grist'];}}};
|