@things-factory/meta-ui 6.0.121 → 6.0.122
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/bootstrap.js +7 -3
- package/client/component/editor/ox-grist-editor-resource-selector.js +9 -0
- package/client/component/renderer/ox-grist-renderer-resource-column.js +1 -0
- package/client/component/renderer/ox-grist-renderer-resource-selector.js +1 -0
- package/client/component/selector/ox-resource-selector-popup.js +40 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +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-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 +96 -96
- 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 +10 -10
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x3f9b71=a0_0x4186;(function(_0x564824,_0x2979e0){const _0x2338f1=a0_0x4186,_0x5825b2=_0x564824();while(!![]){try{const _0x5787b3=-parseInt(_0x2338f1(0x17f))/0x1+parseInt(_0x2338f1(0x175))/0x2+parseInt(_0x2338f1(0x16c))/0x3+-parseInt(_0x2338f1(0x17a))/0x4*(parseInt(_0x2338f1(0x181))/0x5)+parseInt(_0x2338f1(0x173))/0x6*(parseInt(_0x2338f1(0x170))/0x7)+parseInt(_0x2338f1(0x172))/0x8+-parseInt(_0x2338f1(0x16d))/0x9;if(_0x5787b3===_0x2979e0)break;else _0x5825b2['push'](_0x5825b2['shift']());}catch(_0x1becfb){_0x5825b2['push'](_0x5825b2['shift']());}}}(a0_0x4ac8,0x48756));import'../viewparts/dynamic-menu-part';function a0_0x4ac8(){const _0x90e1dd=['3936bohWTH','query','618794BOJPRi','FRONT_END','portrait','dynamic-menu-part','liteMenus','28516xQBufQ','content','dynamic-menu','meta[name=\x22application-name\x22]','HEADERBAR','277683ZLijLc','UPDATE_META_MENU_TEMPLATE','110mTxBWk','active','dispatch','appName','lite-menu-part','hamburger','UPDATE_META_UI','1019403taZgAi','7702029vWaCnK','items','filter','6118AbkzDM','landscape','2916400kbmyUt'];a0_0x4ac8=function(){return _0x90e1dd;};return a0_0x4ac8();}import'@material/mwc-icon';import a0_0x53cd73 from'graphql-tag';import{html}from'lit';import{client}from'@operato/graphql';function a0_0x4186(_0x19e9f1,_0x10ad55){const _0x4ac877=a0_0x4ac8();return a0_0x4186=function(_0x4186d4,_0x1964a8){_0x4186d4=_0x4186d4-0x169;let _0x2857b0=_0x4ac877[_0x4186d4];return _0x2857b0;},a0_0x4186(_0x19e9f1,_0x10ad55);}import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x3f9b71(0x16b);export const UPDATE_META_MENU_TEMPLATE=a0_0x3f9b71(0x180);var HAMBURGER;export async function setupMenuPart(_0x5c55f2){const _0xcd8669=a0_0x3f9b71;var {hovering:_0x3ff2fd=!!isMobileDevice(),slotTemplate:_0x1b0cd7,portraitSlotTemplate:_0x50fd11,landscapeSlotTemplate:_0x6e52d2,position:_0xbbc367=VIEWPART_POSITION['NAVBAR']}=_0x5c55f2||{};const {hovering:_0x10e705}=(await clientSettingStore['get'](_0xcd8669(0x17c)))?.['value']||{};void 0x0!==_0x10e705&&(_0x3ff2fd=_0x10e705);const _0x328da2=_0xbbc367==VIEWPART_POSITION[_0xcd8669(0x17e)]?_0xcd8669(0x171):_0xcd8669(0x177),_0x1ba207=('landscape'==_0x328da2?_0x6e52d2:_0x50fd11)||_0x1b0cd7||html``;appendViewpart({'name':_0xcd8669(0x169),'viewpart':{'show':!_0x3ff2fd,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x3ff2fd,'template':html`<dynamic-menu-part .orientation=${_0x328da2}>${_0x1ba207}</dynamic-menu-part>`},'position':_0xbbc367}),_0x3ff2fd&&'portrait'==_0x328da2?HAMBURGER||(HAMBURGER={'name':_0xcd8669(0x16a),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x3710da=>toggleOverlay(_0xcd8669(0x178),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0xcd8669(0x176)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0xcd8669(0x183)]({'type':REMOVE_APP_TOOL,'name':_0xcd8669(0x16a)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x588f92){const _0x1626c3=a0_0x3f9b71;var _0x16c850=document['querySelector'](_0x1626c3(0x17d))?.[_0x1626c3(0x17b)],_0x2124dc=(await client[_0x1626c3(0x174)]({'query':a0_0x53cd73`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x5dd88f=a0_0x2dc4;(function(_0x50933f,_0x4f3129){const _0x3b54f9=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x1626c3(0x182),'operator':'eq','value':!0x0},{'name':_0x1626c3(0x184),'operator':'in','value':['',_0x16c850]}],'sortings':[{'name':'rank','desc':!0x1}]}}))['data'][_0x1626c3(0x179)][_0x1626c3(0x16e)];store[_0x1626c3(0x183)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2124dc[_0x1626c3(0x16f)](_0x2308f4=>!_0x2308f4[_0x1626c3(0x184)]||_0x2308f4[_0x1626c3(0x184)]===_0x16c850),'template':_0x588f92});}
|
package/client/bootstrap.js
CHANGED
|
@@ -4,13 +4,17 @@ import { auth } from '@things-factory/auth-base'
|
|
|
4
4
|
import { ADD_MORENDA } from '@things-factory/more-base'
|
|
5
5
|
import { navigate, store } from '@things-factory/shell'
|
|
6
6
|
import { navigateWithSilence, UPDATE_MODULES } from '@operato/shell'
|
|
7
|
-
import { updateMenuTemplate } from './actions/main'
|
|
8
7
|
|
|
9
|
-
import
|
|
8
|
+
import { registerEditor as gristColumnRegisterEditor, registerRenderer as gristColumnRegisterRenderer,
|
|
9
|
+
registerFilterRenderer as gristRegisterFilterRenderer, getFilterRenderer as girstGetFilterRenderer} from '@operato/data-grist'
|
|
10
|
+
import { registerFilterRenderer as formRegisterFilterRenderer, getFilterRenderer as formGetFilterRenderer} from '@operato/form'
|
|
11
|
+
|
|
10
12
|
|
|
13
|
+
import { updateMenuTemplate } from './actions/main'
|
|
14
|
+
import metaUI from './reducers/main'
|
|
11
15
|
import { TermsUtil } from './utils/terms-util'
|
|
12
16
|
import { MetaApi } from './utils/meta-api'
|
|
13
|
-
|
|
17
|
+
|
|
14
18
|
|
|
15
19
|
export default function bootstrap() {
|
|
16
20
|
import(`./pages/activity/meta-activity-writer-element`)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var a0_0x2987b0=a0_0x22e7;(function(_0xb1f9ec,_0xa72e37){var _0x1aa083=a0_0x22e7,_0x17bb64=_0xb1f9ec();while(!![]){try{var _0xb9721f=parseInt(_0x1aa083(0x1b7))/0x1+parseInt(_0x1aa083(0x1b9))/0x2+-parseInt(_0x1aa083(0x1bd))/0x3+parseInt(_0x1aa083(0x1bc))/0x4*(-parseInt(_0x1aa083(0x1c0))/0x5)+-parseInt(_0x1aa083(0x1a8))/0x6*(-parseInt(_0x1aa083(0x1b3))/0x7)+-parseInt(_0x1aa083(0x1ac))/0x8*(parseInt(_0x1aa083(0x1b5))/0x9)+parseInt(_0x1aa083(0x1b6))/0xa;if(_0xb9721f===_0xa72e37)break;else _0x17bb64['push'](_0x17bb64['shift']());}catch(_0x9a6477){_0x17bb64['push'](_0x17bb64['shift']());}}}(a0_0x3cbc,0xd2cfd));function a0_0x22e7(_0xbb45e5,_0x3d812f){var _0x3cbce1=a0_0x3cbc();return a0_0x22e7=function(_0x22e723,_0x457f5c){_0x22e723=_0x22e723-0x1a7;var _0x2ab9ce=_0x3cbce1[_0x22e723];return _0x2ab9ce;},a0_0x22e7(_0xbb45e5,_0x3d812f);}import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../utils/terms-util';function a0_0x3cbc(){var _0x5ce7c0=['2816358JMoHoZ','bind','row','value','368dInzRw','name','openSelector','record','__origin__','firstUpdated','options','7SGNqKR','dispatchEvent','33471borxrF','8821300NgIlbz','867391gdKfDl','_onkeydown','2933922EccQdf','popup','column','4948dcFLal','4087086pnmVzq','meta','editorTemplate','5210tBcLKg','define','stopPropagation','Enter'];a0_0x3cbc=function(){return _0x5ce7c0;};return a0_0x3cbc();}import'../selector/ox-resource-selector-popup';export class OxGristEditorResourceSelector extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x2987b0(0x1bf)](){var _0x2489dd=a0_0x2987b0;let _0x873137,_0x4bf6a1=this[_0x2489dd(0x1bb)][_0x2489dd(0x1af)][_0x2489dd(0x1b2)]['meta'],{id_field:_0x2b9b5c='id',title_field:_0x8bcc8d=_0x2489dd(0x1ad),desc_field:_0x15e550='description'}=_0x4bf6a1;return this['value']&&(_0x873137=null==this['value'][_0x15e550]?'':this[_0x2489dd(0x1ab)][_0x15e550]),html`
|
|
2
|
+
${_0x873137?html` <span tabindex="0" style="flex:1">${_0x873137}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x2987b0(0x1b1)](){var _0x2b7810=a0_0x2987b0;super[_0x2b7810(0x1b1)]();}['_onclick'](_0x44636e){var _0x4932b9=a0_0x2987b0;_0x44636e[_0x4932b9(0x1c2)](),this[_0x4932b9(0x1ae)]();}[a0_0x2987b0(0x1b8)](_0x171280){var _0x5bb9b2=a0_0x2987b0;_0x5bb9b2(0x1a7)==_0x171280['key']&&(_0x171280[_0x5bb9b2(0x1c2)](),this[_0x5bb9b2(0x1ae)]());}['openSelector'](){var _0x3b5242=a0_0x2987b0;this[_0x3b5242(0x1ba)]&&delete this[_0x3b5242(0x1ba)];var {name:_0x14b096=''}=this[_0x3b5242(0x1bb)]['record'][_0x3b5242(0x1b2)][_0x3b5242(0x1be)]||{},_0x424d96=this['value']||{},_0x841da=html`
|
|
4
|
+
<ox-resource-selector-popup
|
|
5
|
+
.value=${_0x424d96}
|
|
6
|
+
.entity_meta=${this['column']['record'][_0x3b5242(0x1b2)][_0x3b5242(0x1be)]}
|
|
7
|
+
.confirmCallback=${(_0x2b350c=>{var _0x1e57f8=_0x3b5242;this[_0x1e57f8(0x1b4)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x1e57f8(0x1ab)],'after':_0x2b350c?_0x2b350c['id']==((this[_0x1e57f8(0x1af)][_0x1e57f8(0x1b0)]?this[_0x1e57f8(0x1af)][_0x1e57f8(0x1b0)]:{})[this['column'][_0x1e57f8(0x1ad)]]||{})['id']?this[_0x1e57f8(0x1af)]['__origin__'][this[_0x1e57f8(0x1bb)][_0x1e57f8(0x1ad)]]:_0x2b350c:null,'record':this[_0x1e57f8(0x1af)],'column':this[_0x1e57f8(0x1bb)],'row':this[_0x1e57f8(0x1aa)]}}));})[_0x3b5242(0x1a9)](this)}
|
|
8
|
+
></ox-resource-selector-popup>
|
|
9
|
+
`;this['popup']=openPopup(_0x841da,{'backdrop':!0x0,'size':'large','title':TermsUtil['tMenu'](_0x14b096)});}}customElements[a0_0x2987b0(0x1c1)]('ox-grist-editor-resource-selector',OxGristEditorResourceSelector);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x262f4e,_0x2a9eff){const _0x44a5b4=a0_0x5245,_0x4d07d3=_0x262f4e();while(!![]){try{const _0x596724=parseInt(_0x44a5b4(0x11c))/0x1+-parseInt(_0x44a5b4(0x11b))/0x2*(parseInt(_0x44a5b4(0x119))/0x3)+parseInt(_0x44a5b4(0x11a))/0x4*(-parseInt(_0x44a5b4(0x114))/0x5)+-parseInt(_0x44a5b4(0x117))/0x6+parseInt(_0x44a5b4(0x11d))/0x7*(parseInt(_0x44a5b4(0x112))/0x8)+-parseInt(_0x44a5b4(0x115))/0x9*(parseInt(_0x44a5b4(0x118))/0xa)+-parseInt(_0x44a5b4(0x110))/0xb*(-parseInt(_0x44a5b4(0x11f))/0xc);if(_0x596724===_0x2a9eff)break;else _0x4d07d3['push'](_0x4d07d3['shift']());}catch(_0x5f0e4f){_0x4d07d3['push'](_0x4d07d3['shift']());}}}(a0_0x32c2,0x90380));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0xfb2873){const _0xb8ccae=a0_0x5245,_0x40f12a=_0xfb2873['target'];detectOverflow(_0x40f12a)&&_0x40f12a['setAttribute'](_0xb8ccae(0x10f),_0x40f12a['textContent']);}function onmouseout(_0x24436a){const _0x468666=a0_0x5245;_0x24436a[_0x468666(0x111)]['removeAttribute'](_0x468666(0x10f));}function a0_0x5245(_0x3c18ba,_0x1a4ba7){const _0x32c254=a0_0x32c2();return a0_0x5245=function(_0x5245a3,_0x24e368){_0x5245a3=_0x5245a3-0x10f;let _0xfcede5=_0x32c254[_0x5245a3];return _0xfcede5;},a0_0x5245(_0x3c18ba,_0x1a4ba7);}function a0_0x32c2(){const _0x42b080=['9UlQAft','name','3218670gpnQNv','265230dZpTCd','72BGldfe','264jEczPd','3868gBMsmJ','735916sIbwxG','115339kWIcPh','options','50736FqyLAw','data-tooltip','1947YbWMyT','target','128jgIbMR','meta','41500pWweCK'];a0_0x32c2=function(){return _0x42b080;};return a0_0x32c2();}export const OxGristRendererResourceColumn=(_0x2895d8,_0x43b65a,_0x497856,_0x17f06e,_0x1048db)=>{const _0x23424c=a0_0x5245;let _0xf3c32f=_0x43b65a['record'][_0x23424c(0x11e)][_0x23424c(0x113)],{id_field:_0x20f32f='id',title_field:_0x4c6b3b=_0x23424c(0x116),desc_field:_0x489ad3='description'}=_0xf3c32f,_0x3f29c5='';return _0x2895d8&&(_0x3f29c5=null==_0x2895d8[_0x489ad3]?'':_0x2895d8[_0x489ad3]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x3f29c5}</span>`;};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x50d31d,_0x1116c4){const _0x2dd23e=a0_0x3a3a,_0x213636=_0x50d31d();while(!![]){try{const _0x88fc62=parseInt(_0x2dd23e(0x1d1))/0x1*(parseInt(_0x2dd23e(0x1ce))/0x2)+-parseInt(_0x2dd23e(0x1c3))/0x3+-parseInt(_0x2dd23e(0x1bf))/0x4*(-parseInt(_0x2dd23e(0x1ca))/0x5)+-parseInt(_0x2dd23e(0x1c5))/0x6+parseInt(_0x2dd23e(0x1cf))/0x7*(-parseInt(_0x2dd23e(0x1cb))/0x8)+-parseInt(_0x2dd23e(0x1c1))/0x9*(parseInt(_0x2dd23e(0x1c7))/0xa)+parseInt(_0x2dd23e(0x1c8))/0xb*(parseInt(_0x2dd23e(0x1c0))/0xc);if(_0x88fc62===_0x1116c4)break;else _0x213636['push'](_0x213636['shift']());}catch(_0xbaf5b5){_0x213636['push'](_0x213636['shift']());}}}(a0_0x2535,0x43554));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x3a3a(_0x123464,_0x5b5e4f){const _0x25359e=a0_0x2535();return a0_0x3a3a=function(_0x3a3a1e,_0x23ece1){_0x3a3a1e=_0x3a3a1e-0x1bf;let _0x31f940=_0x25359e[_0x3a3a1e];return _0x31f940;},a0_0x3a3a(_0x123464,_0x5b5e4f);}function a0_0x2535(){const _0x57c5d0=['meta','1035153NfnhCX','data-tooltip','2850348vOhlkb','target','100TIIkKM','15598YSFfUg','options','5ZfudyY','136xzWADX','removeAttribute','setAttribute','1142luwTuj','215488SuexFj','textContent','102sGxRBY','2050788AOCEzA','13176JXSUJP','457803bjadhb'];a0_0x2535=function(){return _0x57c5d0;};return a0_0x2535();}function onmouseover(_0x340cd9){const _0x1a59b8=a0_0x3a3a,_0x4e0109=_0x340cd9[_0x1a59b8(0x1c6)];detectOverflow(_0x4e0109)&&_0x4e0109[_0x1a59b8(0x1cd)](_0x1a59b8(0x1c4),_0x4e0109[_0x1a59b8(0x1d0)]);}function onmouseout(_0x54f557){const _0x2e65ec=a0_0x3a3a;_0x54f557[_0x2e65ec(0x1c6)][_0x2e65ec(0x1cc)](_0x2e65ec(0x1c4));}export const OxGristRendererResourceSelector=(_0x5aba5d,_0x16a83e,_0x437045,_0xa063ab,_0x1482ec)=>{const _0x2b60e0=a0_0x3a3a;let _0x99ea10=_0x16a83e['record'][_0x2b60e0(0x1c9)][_0x2b60e0(0x1c2)],{id_field:_0x214340='id',title_field:_0xe861a2='name',desc_field:_0x466e91='description'}=_0x99ea10,_0x363534='';return _0x5aba5d&&(_0x363534=null==_0x5aba5d[_0x466e91]?'':_0x5aba5d[_0x466e91]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x363534}</span>`;};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const a0_0x21cb80=a0_0xb37e;(function(_0x23bd4c,_0x3f6b26){const _0x1d9d0e=a0_0xb37e,_0x1efb29=_0x23bd4c();while(!![]){try{const _0x35954f=-parseInt(_0x1d9d0e(0x218))/0x1*(parseInt(_0x1d9d0e(0x200))/0x2)+-parseInt(_0x1d9d0e(0x1d7))/0x3*(-parseInt(_0x1d9d0e(0x23d))/0x4)+-parseInt(_0x1d9d0e(0x22e))/0x5+-parseInt(_0x1d9d0e(0x1fc))/0x6+-parseInt(_0x1d9d0e(0x215))/0x7+-parseInt(_0x1d9d0e(0x228))/0x8*(parseInt(_0x1d9d0e(0x235))/0x9)+parseInt(_0x1d9d0e(0x1e1))/0xa*(parseInt(_0x1d9d0e(0x21a))/0xb);if(_0x35954f===_0x3f6b26)break;else _0x1efb29['push'](_0x1efb29['shift']());}catch(_0x45f305){_0x1efb29['push'](_0x1efb29['shift']());}}}(a0_0x88a1,0xd154e));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0xb37e(_0x4f556d,_0x38f21b){const _0x88a1b5=a0_0x88a1();return a0_0xb37e=function(_0xb37ed6,_0x4cb49f){_0xb37ed6=_0xb37ed6-0x1d6;let _0x3ab379=_0x88a1b5[_0xb37ed6];return _0x3ab379;},a0_0xb37e(_0x4f556d,_0x38f21b);}export class OxResourceSelectorPopup extends LitElement{static [a0_0x21cb80(0x21e)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
|
|
8
|
+
width: var(--overlay-center-normal-width, 50%);
|
|
9
|
+
height: var(--overlay-center-normal-height, 50%);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
ox-grist {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.button-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
margin-left: auto;
|
|
19
|
+
}
|
|
20
|
+
`];async[a0_0x21cb80(0x212)](){const _0x56fd69=a0_0x21cb80;let _0x5dc2c7=this[_0x56fd69(0x1ee)],_0x58ccb6=_0x5dc2c7[_0x56fd69(0x210)][_0x56fd69(0x23b)](_0x248e5b=>'id'==_0x248e5b[_0x56fd69(0x231)]||(_0x248e5b['grid_rank']||0x0)>0x0);_0x58ccb6=ValueUtil['arraySortBy'](_0x58ccb6,_0x56fd69(0x205));let _0x30dd51=[],_0x3c3079=[],_0x5d5736=[],_0x44cc74=[],_0x22a021=[];for(var _0x3cbdbc=0x0;_0x3cbdbc<_0x58ccb6[_0x56fd69(0x1f4)];_0x3cbdbc++){let _0xa68bcd=_0x58ccb6[_0x3cbdbc];if(_0x3c3079[_0x56fd69(0x1e4)](_0xa68bcd[_0x56fd69(0x231)]),'id'==_0xa68bcd[_0x56fd69(0x231)]){_0x22a021['push']({'header':_0xa68bcd['term'],'hidden':!0x0,'name':'id','record':{'align':_0x56fd69(0x1ea)==_0xa68bcd[_0x56fd69(0x1fd)]?_0x56fd69(0x1fe):_0x56fd69(0x201)==_0xa68bcd[_0x56fd69(0x1fd)]?_0x56fd69(0x201):'left','mandatory':!0x1,'editable':!0x1},'sortable':!0x1,'type':_0x56fd69(0x211),'width':0x0});continue;}let _0x494bee={'header':_0xa68bcd['term'],'hidden':_0x56fd69(0x206)==_0xa68bcd[_0x56fd69(0x1de)],'name':_0xa68bcd[_0x56fd69(0x231)],'record':{'align':_0x56fd69(0x1ed),'mandatory':!0x1,'editable':!0x1},'sortable':!0x0,'type':this[_0x56fd69(0x1e7)](_0xa68bcd[_0x56fd69(0x1de)]),'width':_0xa68bcd[_0x56fd69(0x1fb)]};if([_0x56fd69(0x1dd),'resource-selector'][_0x56fd69(0x222)](_0xa68bcd[_0x56fd69(0x1de)])){let _0x2f8bb2=_0xa68bcd[_0x56fd69(0x231)]['substring'](0x0,_0xa68bcd[_0x56fd69(0x231)][_0x56fd69(0x1e0)]('_')),_0x1494e7=_0xa68bcd['ref_name'];_0x3c3079[_0x56fd69(0x1e4)](_0x2f8bb2),_0x494bee[_0x56fd69(0x231)]=_0x2f8bb2,_0x494bee['ref_col_name']=_0xa68bcd[_0x56fd69(0x231)];let _0x35450e=await ServiceUtil[_0x56fd69(0x20d)]('entities/'+_0x1494e7+_0x56fd69(0x208),{});_0x494bee[_0x56fd69(0x20a)][_0x56fd69(0x1ff)]={'meta':_0x35450e};}['select','resource-code',_0x56fd69(0x22d),_0x56fd69(0x217),_0x56fd69(0x1f0)][_0x56fd69(0x222)](_0xa68bcd[_0x56fd69(0x1de)])&&(_0x494bee[_0x56fd69(0x20a)]['options']=_0xa68bcd[_0x56fd69(0x214)][_0x56fd69(0x230)](_0x441e3b=>({'value':_0x441e3b['name'],'name':_0x441e3b['description'],'display':_0x441e3b[_0x56fd69(0x241)]}))),(_0xa68bcd[_0x56fd69(0x1f3)]||0x0)>0x0&&(_0x56fd69(0x206)==_0xa68bcd[_0x56fd69(0x1e9)]?_0x5d5736['push']({'name':_0xa68bcd[_0x56fd69(0x231)],'operator':_0xa68bcd[_0x56fd69(0x1f1)],'value':_0xa68bcd['search_init_val']}):(_0x494bee[_0x56fd69(0x23b)]={'hidden':!0x1,'label':_0xa68bcd[_0x56fd69(0x225)],'name':_0xa68bcd[_0x56fd69(0x231)],'operator':_0xa68bcd[_0x56fd69(0x1f1)],'props':{'searchOper':_0xa68bcd['search_oper'],'placeholder':_0xa68bcd[_0x56fd69(0x231)]},'type':this['getSearchType'](_0xa68bcd[_0x56fd69(0x1e9)])},[_0x56fd69(0x22c),_0x56fd69(0x233),_0x56fd69(0x22d),_0x56fd69(0x217),'code-column'][_0x56fd69(0x222)](_0xa68bcd[_0x56fd69(0x1e9)])&&(_0x56fd69(0x22d)!=_0xa68bcd[_0x56fd69(0x1e9)]&&(_0x494bee[_0x56fd69(0x23b)]['options']=[{'value':'','name':'','display':''}]),_0xa68bcd[_0x56fd69(0x22b)][_0x56fd69(0x227)](_0x1e2210=>{const _0x52c30a=_0x56fd69;_0x494bee[_0x52c30a(0x23b)][_0x52c30a(0x1ff)]['push']({'value':_0x1e2210['name'],'name':_0x1e2210['description'],'display':_0x1e2210[_0x52c30a(0x241)]});})),_0xa68bcd[_0x56fd69(0x23e)]&&_0xa68bcd['search_init_val'][_0x56fd69(0x1f4)]>0x0&&(_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x23a)]=_0xa68bcd[_0x56fd69(0x23e)]),_0x56fd69(0x22d)==_0xa68bcd[_0x56fd69(0x1e9)]&&(_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x1ff)]&&_0x494bee['filter'][_0x56fd69(0x1ff)][_0x56fd69(0x1f4)]>0x0&&(_0x494bee['filter']['value']=_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x1ff)][0x0][_0x56fd69(0x23a)]),_0x44cc74[_0x56fd69(0x1e4)]({'name':_0x494bee[_0x56fd69(0x23b)]['name'],'label':_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x21c)],'options':_0x494bee[_0x56fd69(0x23b)][_0x56fd69(0x1ff)]})),_0x30dd51[_0x56fd69(0x1e4)](_0x494bee[_0x56fd69(0x23b)]))),_0x22a021[_0x56fd69(0x1e4)](_0x494bee);}let _0x54d0de=_0x5dc2c7['items']['filter'](_0x3badd6=>(_0x3badd6['sort_rank']||0x0)>0x0);_0x54d0de=ValueUtil[_0x56fd69(0x204)](_0x54d0de||[],_0x56fd69(0x236));let _0x13f33a=_0x54d0de['map'](_0x41e3fa=>({'name':_0x41e3fa[_0x56fd69(0x231)],'desc':0x1==_0x41e3fa['reserve_sort']})),_0xd1b838=[];_0x5dc2c7[_0x56fd69(0x1ef)]&&_0xd1b838[_0x56fd69(0x1e4)](_0x5dc2c7[_0x56fd69(0x1ef)]),_0x5dc2c7[_0x56fd69(0x1ec)]&&_0xd1b838[_0x56fd69(0x1e4)](_0x5dc2c7[_0x56fd69(0x1ec)]),this[_0x56fd69(0x21d)]={'list':{'fields':[..._0xd1b838]},'pagination':{'pages':[0x32,0x64,0x12c,0x1f4]},'rows':{'selectable':{'multiple':!0x1},'appendable':!0x1,'handlers':{'click':_0x56fd69(0x209),'dblclick':(_0x477bfd,_0x2cf2e3,_0x3bab55,_0x2a8eac,_0xc7b296,_0x176848)=>{this['selectRecord'](_0x2a8eac);}}},'columns':[{'type':_0x56fd69(0x220),'gutterName':'dirty'},{'type':_0x56fd69(0x220),'gutterName':_0x56fd69(0x20c)},{'type':'gutter','gutterName':_0x56fd69(0x21f),'multiple':!0x1},..._0x22a021],'sorters':[..._0x13f33a]},this[_0x56fd69(0x223)]=_0x30dd51,this[_0x56fd69(0x1e2)]=_0x3c3079,this[_0x56fd69(0x240)]=_0x5d5736,this['permit_search_fields']=_0x44cc74,await super[_0x56fd69(0x212)]();}async[a0_0x21cb80(0x1db)](){const _0x21b59e=a0_0x21cb80;await super[_0x21b59e(0x1db)]();}['render'](){const _0x40ced5=a0_0x21cb80;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0x40ced5(0x21d)]} .mode=${isMobileDevice()?_0x40ced5(0x1da):_0x40ced5(0x23f)} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x40ced5(0x1e8)][_0x40ced5(0x224)](this)}>
|
|
23
|
+
<div slot="headroom">
|
|
24
|
+
<div id="filters">
|
|
25
|
+
<ox-filters-form></ox-filters-form>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</ox-grist>
|
|
29
|
+
<div id="button-container" class="button-container">
|
|
30
|
+
<mwc-button raised label="${TermsUtil[_0x40ced5(0x22a)](_0x40ced5(0x20f))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x40ced5(0x232)][_0x40ced5(0x224)](this)}>
|
|
32
|
+
</mwc-button>
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x40ced5(0x22a)](_0x40ced5(0x1d9))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this['clickCancel']['bind'](this)}>
|
|
35
|
+
</mwc-button>
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x40ced5(0x22a)](_0x40ced5(0x22c))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x40ced5(0x221)][_0x40ced5(0x224)](this)}>
|
|
38
|
+
</mwc-button>
|
|
39
|
+
</div>
|
|
40
|
+
`;}get[a0_0x21cb80(0x1e3)](){const _0x2800c5=a0_0x21cb80;return this[_0x2800c5(0x1df)][_0x2800c5(0x20b)](_0x2800c5(0x1e6));}async[a0_0x21cb80(0x1e8)]({page:_0x370887=0x0,limit:_0x461c7d=0x0,sorters:_0x523190=[],filters:_0x270d9b=[]}){const _0x316f21=a0_0x21cb80;let _0x5ae3a0=_0x270d9b['map'](_0x304a3d=>{const _0x16f84e=a0_0xb37e;let _0xc1738b=Object[_0x16f84e(0x226)]({},_0x304a3d);return _0xc1738b['operator']=this[_0x16f84e(0x223)][_0x16f84e(0x23b)](_0x2bb2c6=>_0x2bb2c6[_0x16f84e(0x231)]==_0x304a3d[_0x16f84e(0x231)])[0x0][_0x16f84e(0x216)][_0x16f84e(0x1d6)],_0xc1738b;});if((_0x270d9b=[...this[_0x316f21(0x240)],..._0x5ae3a0])[_0x316f21(0x227)](_0x16b63d=>{const _0x10145a=_0x316f21;Array[_0x10145a(0x1fa)](_0x16b63d[_0x10145a(0x23a)])&&(_0x16b63d[_0x10145a(0x23a)]=_0x16b63d[_0x10145a(0x23a)]['join'](','));}),this[_0x316f21(0x1f8)]&&this['permit_search_fields'][_0x316f21(0x1f4)]>0x0)for(var _0x97c474=0x0;_0x97c474<this['permit_search_fields'][_0x316f21(0x1f4)];_0x97c474++){let _0x561e0d=this['permit_search_fields'][_0x97c474],_0x10c1ca=_0x270d9b['filter'](_0x3fde3e=>_0x3fde3e[_0x316f21(0x231)]==_0x561e0d['name']),{label:_0x38419d=_0x561e0d[_0x316f21(0x21c)],value:_0x3735ce=''}=_0x10c1ca[_0x316f21(0x1f4)]>0x0?_0x10c1ca[0x0]:{};if(0x0==((_0x561e0d[_0x316f21(0x1ff)]||[])[_0x316f21(0x23b)](_0x47b5ae=>_0x47b5ae['value']==_0x3735ce)||[])[_0x316f21(0x1f4)]){let _0x3eb579=TermsUtil['tText'](_0x316f21(0x1dc),[_0x38419d,0x0==_0x3735ce[_0x316f21(0x1f4)]?TermsUtil['tLabel'](_0x316f21(0x239)):_0x3735ce]);throw MetaApi[_0x316f21(0x1e5)](_0x316f21(0x234),_0x3eb579),new Error(_0x3eb579);}}_0x523190=_0x523190[_0x316f21(0x230)](_0x4f554b=>({'field':_0x4f554b[_0x316f21(0x231)],'ascending':!_0x4f554b[_0x316f21(0x203)]}));let _0x556fba=[{'name':_0x316f21(0x22c),'value':encodeURI(this['select_fields']['join'](','))},{'name':'sort','value':encodeURI(JSON[_0x316f21(0x1f7)](_0x523190))},{'name':_0x316f21(0x23c),'value':encodeURI(JSON[_0x316f21(0x1f7)](_0x270d9b))},{'name':_0x316f21(0x21b),'value':_0x370887},{'name':_0x316f21(0x20e),'value':_0x461c7d}],_0x337cc7=await ServiceUtil[_0x316f21(0x20d)](this[_0x316f21(0x1ee)][_0x316f21(0x1f6)],_0x556fba);return{'total':_0x337cc7[_0x316f21(0x22f)],'records':_0x337cc7[_0x316f21(0x210)]};}async['clickEmpty'](_0x326d96){const _0x339694=a0_0x21cb80;this[_0x339694(0x1f5)]&&this[_0x339694(0x1f5)](null),closePopup(this);}async['clickCancel'](_0x133ac1){closePopup(this);}async[a0_0x21cb80(0x221)](_0x278ba1){const _0x40ff2d=a0_0x21cb80;let _0x562469=this[_0x40ff2d(0x1e3)][_0x40ff2d(0x238)];_0x562469&&0x0!=_0x562469[_0x40ff2d(0x1f4)]?this[_0x40ff2d(0x1eb)](_0x562469[0x0]):MetaApi[_0x40ff2d(0x1e5)](_0x40ff2d(0x234),TermsUtil[_0x40ff2d(0x1f9)](_0x40ff2d(0x219)));}async[a0_0x21cb80(0x1eb)](_0x32f641){const _0x1e5170=a0_0x21cb80;this[_0x1e5170(0x1f5)]&&this['confirmCallback'](_0x32f641),closePopup(this);}['getEditorType'](_0x560193){const _0x41fa6e=a0_0x21cb80;if(ValueUtil[_0x41fa6e(0x229)](_0x560193))return _0x41fa6e(0x211);switch(_0x560193){case _0x41fa6e(0x233):case _0x41fa6e(0x22d):case _0x41fa6e(0x217):case _0x41fa6e(0x1f0):return _0x41fa6e(0x22c);case _0x41fa6e(0x237):return'date';case _0x41fa6e(0x1f2):return'datetime';case _0x41fa6e(0x213):return'string';}return _0x560193;}[a0_0x21cb80(0x1d8)](_0x12b761){const _0x3af2b4=a0_0x21cb80;if(ValueUtil['isEmpty'](_0x12b761))return _0x3af2b4(0x211);switch(_0x12b761){case _0x3af2b4(0x233):case _0x3af2b4(0x22d):case _0x3af2b4(0x217):return'select';case _0x3af2b4(0x237):return'date';case'datetime-picker':return _0x3af2b4(0x207);case _0x3af2b4(0x213):return _0x3af2b4(0x211);}return _0x12b761;}}function a0_0x88a1(){const _0xc4ad9b=['2OPJIug','center','ox-resource-selector-popup','desc','arraySortBy','grid_rank','hidden','datetime','/meta','select-row-toggle','record','querySelector','sequence','restGet','limit','empty','items','string','connectedCallback','readonly','grid_code_list','7913535bWkjqB','props','code-combo','528623HQfyad','NOTHING_SELECTED','2298923cvRurc','page','label','gridConfig','styles','row-selector','gutter','clickSelect','includes','search_form_fields','bind','term','assign','forEach','9071128QAEmIS','isEmpty','tButton','search_code_list','select','permit-resource-code','5662685dXSoaC','total','map','name','clickEmpty','resource-code','info','9NsPNtC','sort_rank','date-picker','selected','all','value','filter','query','1671536XQdfip','search_init_val','GRID','search_hidden_fields','description','searchOper','6ptUADD','getSearchType','cancel','LIST','firstUpdated','search-data-permit-error','resource-column','grid_editor','shadowRoot','lastIndexOf','230itYpVp','select_fields','grist','push','showToast','#ox-grist','getEditorType','fetchHandler','search_editor','far','selectRecord','desc_field','left','entity_meta','title_field','code-column','search_oper','datetime-picker','search_rank','length','confirmCallback','search_url','stringify','permit_search_fields','tText','isArray','grid_width','5157774lRlead','grid_align','right','options'];a0_0x88a1=function(){return _0xc4ad9b;};return a0_0x88a1();}customElements['define'](a0_0x21cb80(0x202),OxResourceSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x71c6(_0x2656e8,_0x24acaf){const _0x33484a=a0_0x3348();return a0_0x71c6=function(_0x71c666,_0x5c33ce){_0x71c666=_0x71c666-0x170;let _0xb749a4=_0x33484a[_0x71c666];return _0xb749a4;},a0_0x71c6(_0x2656e8,_0x24acaf);}const a0_0x41c602=a0_0x71c6;(function(_0x10d43a,_0x181d85){const _0x208664=a0_0x71c6,_0x300f91=_0x10d43a();while(!![]){try{const _0x2299b0=-parseInt(_0x208664(0x18a))/0x1*(-parseInt(_0x208664(0x184))/0x2)+-parseInt(_0x208664(0x173))/0x3+-parseInt(_0x208664(0x180))/0x4*(-parseInt(_0x208664(0x175))/0x5)+parseInt(_0x208664(0x181))/0x6+-parseInt(_0x208664(0x187))/0x7*(-parseInt(_0x208664(0x17a))/0x8)+parseInt(_0x208664(0x193))/0x9+parseInt(_0x208664(0x178))/0xa*(-parseInt(_0x208664(0x17b))/0xb);if(_0x2299b0===_0x181d85)break;else _0x300f91['push'](_0x300f91['shift']());}catch(_0x502d07){_0x300f91['push'](_0x300f91['shift']());}}}(a0_0x3348,0xb1f89));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x19f2e5=>class extends _0x19f2e5{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x486a33=>Boolean(_0x486a33)},'is_popup':{'type':Boolean,'converter':_0x2988b0=>Boolean(_0x2988b0)},'is_activity':{'type':Boolean,'converter':_0x5a0346=>Boolean(_0x5a0346)},'is_readonly':{'type':Boolean,'converter':_0x3dd1da=>Boolean(_0x3dd1da)}};}get[a0_0x41c602(0x192)](){const _0x2cf40f=a0_0x41c602;return!0x0===this[_0x2cf40f(0x174)]||!0x0===this[_0x2cf40f(0x189)];}get['isDetail'](){const _0x26c568=a0_0x41c602;return!ValueUtil['isEmpty'](this[_0x26c568(0x174)])&&this[_0x26c568(0x174)];}async[a0_0x41c602(0x17f)](_0x24462c,_0x1db3c6,_0x338374){const _0xebd5b3=a0_0x41c602;let _0x4bbe99=this[_0xebd5b3(0x185)]?.[_0xebd5b3(0x190)]?this['lifecycle'][_0xebd5b3(0x190)]:{};this['isPage']&&this['active']&&0x0==_0x338374[_0xebd5b3(0x182)]&&ValueUtil[_0xebd5b3(0x183)](_0x4bbe99)&&this[_0xebd5b3(0x17d)]();}get[a0_0x41c602(0x186)](){const _0xf5e2b8=a0_0x41c602;return!ValueUtil['isEmpty'](this[_0xf5e2b8(0x189)])&&this[_0xf5e2b8(0x189)];}get[a0_0x41c602(0x17e)](){const _0x1cac32=a0_0x41c602;return!this[_0x1cac32(0x174)]&&!this[_0x1cac32(0x189)];}async['getAndParseMenuMeta'](){const _0x1305df=a0_0x41c602;let _0x1fbed6=await MetaApi['getMenuMeta'](this);_0x1fbed6&&(this[_0x1305df(0x170)]=_0x1fbed6['menu'],this[_0x1305df(0x172)]=_0x1fbed6['etc'],this[_0x1305df(0x171)]&&this[_0x1305df(0x171)](_0x1fbed6),this[_0x1305df(0x18f)]&&this[_0x1305df(0x18f)](_0x1fbed6),this[_0x1305df(0x177)]&&this['parseBasicFormConfigs'](_0x1fbed6),this['parseBasicTabConfigs']&&this[_0x1305df(0x196)](_0x1fbed6),this[_0x1305df(0x176)]&&this[_0x1305df(0x176)](_0x1fbed6));}async[a0_0x41c602(0x17d)](){const _0x21d104=a0_0x41c602;ValueUtil['isNotEmpty'](this[_0x21d104(0x17c)])?this['grist']['fetch']():(ValueUtil['isNotEmpty'](this['filterForm'])||this[_0x21d104(0x195)])&&await this[_0x21d104(0x195)]();}async['excuteOpenPopupButtonClick'](_0x460d3b,_0x1de119,_0x2e8904){const _0x3a8fb9=a0_0x41c602;let _0x5a1598=TermsUtil['tTitle'](_0x460d3b[_0x3a8fb9(0x197)]);ValueUtil[_0x3a8fb9(0x183)](_0x460d3b[_0x3a8fb9(0x188)])&&(_0x5a1598=_0x5a1598+'-'+ValueUtil[_0x3a8fb9(0x194)](_0x1de119,..._0x460d3b[_0x3a8fb9(0x188)][_0x3a8fb9(0x179)]('.'))),MetaApi[_0x3a8fb9(0x18d)](_0x5a1598,_0x460d3b,_0x1de119,_0x2e8904);}async[a0_0x41c602(0x191)](_0x5200ef,_0x49398e,_0x1ba75b){const _0x23dc30=a0_0x41c602;let _0x370e5f=await MetaApi['callScenario'](_0x5200ef['name'],_0x5200ef['name'],_0x49398e);!0x1!==_0x370e5f&&!_0x370e5f['errors']&&ValueUtil[_0x23dc30(0x183)](_0x5200ef[_0x23dc30(0x18b)])&&_0x1ba75b();}[a0_0x41c602(0x18e)](_0x5c1266){const _0x237ca5=a0_0x41c602;this[_0x237ca5(0x18c)]=_0x5c1266,this[_0x237ca5(0x17d)]();}};function a0_0x3348(){const _0x26fcef=['getParams','fetchHandler','parseBasicTabConfigs','title','menuInfo','parseBasicGridConfigs','etcConfig','3418521PIKrhe','is_detail','270hgalai','parseBasicButtonConfigs','parseBasicFormConfigs','7470qbHbRa','split','24bsmvnU','31405WiJLXo','grist','fetch','isPage','pageUpdated','107864iZnGym','3364092xtammk','active','isNotEmpty','651044vZSDUr','lifecycle','isPopup','2863847nanLfE','title_detail','is_popup','1jmTwHg','after','parent_id','openDynamicPopup','setParentId','parseBasicServiceConfigs','params','executeCallScenarioButtonClick','isElement','3882870TJmURy'];a0_0x3348=function(){return _0x26fcef;};return a0_0x3348();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x4e4dc3=a0_0x39f9;(function(_0x41be91,_0x3d3d72){const _0x29aef6=a0_0x39f9,_0x431884=_0x41be91();while(!![]){try{const _0x3381c8=-parseInt(_0x29aef6(0x1f4))/0x1+parseInt(_0x29aef6(0x212))/0x2*(parseInt(_0x29aef6(0x215))/0x3)+-parseInt(_0x29aef6(0x1ff))/0x4+-parseInt(_0x29aef6(0x217))/0x5+parseInt(_0x29aef6(0x20b))/0x6+parseInt(_0x29aef6(0x218))/0x7+parseInt(_0x29aef6(0x1fa))/0x8;if(_0x3381c8===_0x3d3d72)break;else _0x431884['push'](_0x431884['shift']());}catch(_0x1a9499){_0x431884['push'](_0x431884['shift']());}}}(a0_0x3c7d,0x4cd6e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x39f9(_0x2b21d1,_0x4c64b8){const _0x3c7dde=a0_0x3c7d();return a0_0x39f9=function(_0x39f99b,_0x385de9){_0x39f99b=_0x39f99b-0x1ed;let _0x3a99cc=_0x3c7dde[_0x39f99b];return _0x3a99cc;},a0_0x39f9(_0x2b21d1,_0x4c64b8);}function a0_0x3c7d(){const _0x1d3b8d=['updateMultiple','forEach','gristConfigSet','activityDataSet','pageInitialized','gridConfig','isElement','firstUpdated','keys','menuInfo','gristId','398341fCAgpg','shadowRoot','render','parseGristConfigs','dataSet','getBasicGristHtml','3122104MJjlsF','properties','search','getBasicGristStyles','exportableData','1593596CJxZVt','data','fetch','parseGridConfigSet','connectedCallback','querySelector','renderRoot','patchesForUpdateMultiple','filterForm','export','clear','isNotEmpty','1226124UqnFue','filterFormId','startsWith','searchConfig','context','grist','ox-grist','744qTIbXa','import','parse','1719Tkhllx','title','738745XdMJdb','3160150UcmFxs','find','tTitle'];a0_0x3c7d=function(){return _0x1d3b8d;};return a0_0x3c7d();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x20937d=>class extends MetaButtonMixin(_0x20937d){static get['styles'](){const _0x291a71=a0_0x39f9;return MetaApi[_0x291a71(0x1fd)]();}static get[a0_0x4e4dc3(0x1fb)](){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 _0x2fe6c8=a0_0x4e4dc3;return this[_0x2fe6c8(0x205)]?.[_0x2fe6c8(0x204)](this[_0x2fe6c8(0x1f3)]);}get[a0_0x4e4dc3(0x207)](){const _0x39e5cf=a0_0x4e4dc3;return this[_0x39e5cf(0x1f5)]?.[_0x39e5cf(0x204)](this['filterFormId']);}get[a0_0x4e4dc3(0x20f)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x4e4dc3(0x203)](){const _0x23b5cf=a0_0x4e4dc3;this[_0x23b5cf(0x1f3)]=_0x23b5cf(0x211),this[_0x23b5cf(0x20c)]='ox-filters-form',await this['getAndParseMenuMeta'](),this[_0x23b5cf(0x1ef)]&&await this[_0x23b5cf(0x1f7)](),this[_0x23b5cf(0x21e)]&&(this[_0x23b5cf(0x1f8)]=this[_0x23b5cf(0x21e)]),super['connectedCallback']&&await super[_0x23b5cf(0x203)]();}async[a0_0x4e4dc3(0x1f0)](){const _0x48f1a2=a0_0x4e4dc3;super['firstUpdated']&&await super[_0x48f1a2(0x1f0)]();}async[a0_0x4e4dc3(0x1ed)](){const _0x1d45e6=a0_0x4e4dc3;this['isPage']&&await this[_0x1d45e6(0x1f7)](),super['pageInitialized']&&await super[_0x1d45e6(0x1ed)]();}[a0_0x4e4dc3(0x1f6)](){const _0x26daa1=a0_0x4e4dc3;return html`
|
|
2
|
+
${MetaApi[_0x26daa1(0x1f9)](this)}
|
|
3
|
+
${this['isPage']?html``:MetaUiUtil['getButtonContainer'](this)}
|
|
4
|
+
`;}['parseBasicGridConfigs'](_0x4dc716){const _0x55ec11=a0_0x4e4dc3;this[_0x55ec11(0x1ee)]=_0x4dc716['grid'],this['gridColumnConfig']=_0x4dc716['grid_column'],this[_0x55ec11(0x20e)]=_0x4dc716[_0x55ec11(0x1fc)];}async[a0_0x4e4dc3(0x1f7)](){const _0x29f2e0=a0_0x4e4dc3;this[_0x29f2e0(0x21d)]=await MetaApi[_0x29f2e0(0x202)](this);}async[a0_0x4e4dc3(0x201)](){const _0x375369=a0_0x4e4dc3;await this[_0x375369(0x210)]['fetch']();}async['save'](){const _0x21483c=a0_0x4e4dc3;let _0x3f8c94=MetaApi[_0x21483c(0x206)](this[_0x21483c(0x210)]);!!ValueUtil[_0x21483c(0x20a)](_0x3f8c94)&&await this[_0x21483c(0x21b)](_0x3f8c94)&&this[_0x21483c(0x201)]();}async[a0_0x4e4dc3(0x219)](){const _0x308db1=a0_0x4e4dc3;let _0x150e22=MetaApi['getSelectedIdList'](this[_0x308db1(0x210)],!0x0);return ValueUtil['isNotEmpty'](_0x150e22)?await this['findOne'](_0x150e22[0x0]):{};}async['delete'](){const _0x37b205=a0_0x4e4dc3;let _0x249e91=MetaApi['getSelectedIdList'](this[_0x37b205(0x210)],!0x0);!!ValueUtil[_0x37b205(0x20a)](_0x249e91)&&await this['deleteByIds'](_0x249e91)&&this[_0x37b205(0x201)]();}async[a0_0x4e4dc3(0x208)](){const _0x2b01d6=a0_0x4e4dc3;let _0x11ead7=TermsUtil[_0x2b01d6(0x21a)](ValueUtil['getParams'](this[_0x2b01d6(0x1f2)],_0x2b01d6(0x216)));return await MetaApi[_0x2b01d6(0x1fe)](this[_0x2b01d6(0x1ef)],_0x11ead7,this['grist']);}async[a0_0x4e4dc3(0x213)](){}async[a0_0x4e4dc3(0x209)](){const _0x323a3e=a0_0x4e4dc3;this['grist']&&(this[_0x323a3e(0x210)][_0x323a3e(0x200)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x3ecf77=a0_0x4e4dc3;let _0xa9a4c=this[_0x3ecf77(0x210)]['___data']['records'];return _0xa9a4c=JSON[_0x3ecf77(0x214)](JSON['stringify'](_0xa9a4c)),_0xa9a4c['forEach'](_0x320dcd=>{const _0x53dbff=_0x3ecf77;Object[_0x53dbff(0x1f1)](_0x320dcd)[_0x53dbff(0x21c)](_0x6075ab=>{const _0xef11b3=_0x53dbff;_0x6075ab[_0xef11b3(0x20d)]('__')&&delete _0x320dcd[_0x6075ab];});}),_0xa9a4c;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x1e8a(){const _0x2b88f8=['customButtonHandler','255454EAineF','getButtonActionHandler','useButtonImport','3421184lBXZHR','getContextButtons','isPage','getBasicButtonHandler','gristButtonHandler','useButtonAdd','530499CBlVnn','buttonConfig','parseBasicButtonConfigs','139776NbRNKh','getButtonContainer','isButtonExist','getCustomButtonContainerStyles','2359790FqNpsS','getCustomButtonContainerStyle','1241628ZIjyZn','useButtonExport','813648XBQZsW','1Pqkcyb','export'];a0_0x1e8a=function(){return _0x2b88f8;};return a0_0x1e8a();}const a0_0x341700=a0_0x2766;function a0_0x2766(_0x2c6f4b,_0x3a0be0){const _0x1e8adf=a0_0x1e8a();return a0_0x2766=function(_0x276692,_0x19e2ac){_0x276692=_0x276692-0xf3;let _0x503aa9=_0x1e8adf[_0x276692];return _0x503aa9;},a0_0x2766(_0x2c6f4b,_0x3a0be0);}(function(_0x2bc4ab,_0x59b2ae){const _0x568d78=a0_0x2766,_0x588ae1=_0x2bc4ab();while(!![]){try{const _0x44bd87=-parseInt(_0x568d78(0xf6))/0x1*(-parseInt(_0x568d78(0xf9))/0x2)+parseInt(_0x568d78(0x102))/0x3+parseInt(_0x568d78(0xf5))/0x4+-parseInt(_0x568d78(0x109))/0x5+-parseInt(_0x568d78(0xf3))/0x6+-parseInt(_0x568d78(0x105))/0x7+parseInt(_0x568d78(0xfc))/0x8;if(_0x44bd87===_0x59b2ae)break;else _0x588ae1['push'](_0x588ae1['shift']());}catch(_0x48138c){_0x588ae1['push'](_0x588ae1['shift']());}}}(a0_0x1e8a,0x39cd4));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2c3ccd=>class extends MetaServiceMixin(_0x2c3ccd){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x341700(0x10a)](){const _0x16913b=a0_0x341700;return MetaUiUtil[_0x16913b(0x108)]();}[a0_0x341700(0xfd)](){const _0x370f12=a0_0x341700;return MetaUiUtil[_0x370f12(0xfd)](this);}[a0_0x341700(0x106)](){const _0x75bf03=a0_0x341700;return this[_0x75bf03(0xfe)]?html``:MetaUiUtil[_0x75bf03(0x106)](this);}async[a0_0x341700(0xff)](_0x2c9c2c,_0x1cd897,_0x475e66){const _0x1b9532=a0_0x341700;return await MetaUiUtil[_0x1b9532(0xfa)](this,_0x2c9c2c,_0x1cd897,_0x475e66);}async[a0_0x341700(0xf8)](_0x96ea58){const _0x4af98c=a0_0x341700;await MetaUiUtil[_0x4af98c(0xf8)](this,_0x96ea58);}async['gristButtonHandler'](_0x2fd219,_0x3c2d2c){const _0x3817be=a0_0x341700;await MetaUiUtil[_0x3817be(0x100)](this,_0x2fd219,_0x3c2d2c);}[a0_0x341700(0x104)](_0x182126){const _0x2d927b=a0_0x341700;this[_0x2d927b(0x103)]=_0x182126['button'],this[_0x2d927b(0xfb)]=MetaUiUtil[_0x2d927b(0x107)](this[_0x2d927b(0x103)],'import'),this[_0x2d927b(0xf4)]=MetaUiUtil['isButtonExist'](this[_0x2d927b(0x103)],_0x2d927b(0xf7)),this[_0x2d927b(0x101)]=MetaUiUtil[_0x2d927b(0x107)](this[_0x2d927b(0x103)],'add');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x57e15a=a0_0xa0d2;(function(_0x567578,_0x3f51e7){const _0x1e8e50=a0_0xa0d2,_0x5516ba=_0x567578();while(!![]){try{const _0x2ac892=-parseInt(_0x1e8e50(0x212))/0x1*(-parseInt(_0x1e8e50(0x1df))/0x2)+parseInt(_0x1e8e50(0x1f6))/0x3+-parseInt(_0x1e8e50(0x202))/0x4*(parseInt(_0x1e8e50(0x209))/0x5)+parseInt(_0x1e8e50(0x1d9))/0x6*(parseInt(_0x1e8e50(0x215))/0x7)+-parseInt(_0x1e8e50(0x210))/0x8+-parseInt(_0x1e8e50(0x214))/0x9+parseInt(_0x1e8e50(0x1f2))/0xa*(-parseInt(_0x1e8e50(0x1e2))/0xb);if(_0x2ac892===_0x3f51e7)break;else _0x5516ba['push'](_0x5516ba['shift']());}catch(_0x506747){_0x5516ba['push'](_0x5516ba['shift']());}}}(a0_0x2992,0xa8f36));import{MetaApi}from'../utils/meta-api';function a0_0xa0d2(_0xb56a06,_0x5bdd1b){const _0x2992f5=a0_0x2992();return a0_0xa0d2=function(_0xa0d27,_0x47bd87){_0xa0d27=_0xa0d27-0x1cd;let _0x245af0=_0x2992f5[_0xa0d27];return _0x245af0;},a0_0xa0d2(_0xb56a06,_0x5bdd1b);}function a0_0x2992(){const _0x25e3b3=['209BrafyT','record','640422uGzpDr','21iyQHNb','Escape','after','orgData','keydown','focus','assign','function','filter','grid_column','__origin__','button','removeGarbageData','context','getAndParseMenuMeta','renderRoot','save','editable','formConfigSet','entries','activityDataSet','activity','column','text.NOTHING_CHANGED','parseFormConfigs','2265204vpWJQn','detail','OX-GRID-FIELD','connectedCallback','editing','dirtyData','11302JNPqmb','__seq__','render','17138396xEPbkw','call','currentTarget','isEquals','Enter','keys','key','addEventListener','firstUpdated','dataSet','setAttribute','isNotEmpty','pageInitialized','removeAttribute','showAlertPopup','parseBasicFormConfigs','10ctYQCI','isPage','currentData','formColumnConfig','3456897XVoWVH','isEmpty','form','validation','true','cuFlag','clear','styles','properties','getBasicFormHtml','startsWith','stopPropagation','927356EYZinN','parent_id','getBasicFormStyles','click','before','fetch','name','5CxvbwA','isElement','__dirtyfields__','findOne','__dirty__','tagName','getData','7303240sfOBLv','formRenderConfig'];a0_0x2992=function(){return _0x25e3b3;};return a0_0x2992();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x29aba3=>class extends MetaButtonMixin(_0x29aba3){static get[a0_0x57e15a(0x1fd)](){const _0x2ea0c3=a0_0x57e15a;return MetaApi[_0x2ea0c3(0x204)]();}static get[a0_0x57e15a(0x1fe)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x57e15a(0x1cd)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x57e15a(0x1dc)](){const _0x3cff3e=a0_0x57e15a;await this[_0x3cff3e(0x1ce)](),this['isElement']&&await this[_0x3cff3e(0x1d8)](),this[_0x3cff3e(0x1d4)]&&(this[_0x3cff3e(0x1eb)]=this[_0x3cff3e(0x1d4)]),!0x0!==this['is_activity']||this[_0x3cff3e(0x203)]||(this['parent_id']=_0x3cff3e(0x1d5)),super['connectedCallback']&&await super['connectedCallback'](),this[_0x3cff3e(0x20a)]&&await this['fetch'](),this[_0x3cff3e(0x1cf)][_0x3cff3e(0x1e9)](_0x3cff3e(0x219),_0x3eb479=>{const _0x1847b4=_0x3cff3e;switch(_0x3eb479[_0x1847b4(0x1e8)]){case'Esc':case _0x1847b4(0x216):case _0x1847b4(0x1e6):this['focus'](),this[_0x1847b4(0x1e4)]&&this[_0x1847b4(0x1e4)]['removeAttribute'](_0x1847b4(0x1dd)),this[_0x1847b4(0x1e4)]=null;}}),this['renderRoot'][_0x3cff3e(0x1e9)](_0x3cff3e(0x205),_0x38a439=>{const _0xfb142=_0x3cff3e;_0x38a439[_0xfb142(0x201)]();let _0x4272f9=_0x38a439['target'];if(this[_0xfb142(0x1e4)]&&(this[_0xfb142(0x21a)](),this['currentTarget'][_0xfb142(0x1ef)]('editing')),_0xfb142(0x1db)!==_0x4272f9[_0xfb142(0x20e)]||!_0x4272f9[_0xfb142(0x1d6)][_0xfb142(0x213)][_0xfb142(0x1d1)])return this[_0xfb142(0x21a)](),void(this[_0xfb142(0x1e4)]=null);this[_0xfb142(0x1e4)]=_0x4272f9,_0x4272f9[_0xfb142(0x1ec)]('editing',_0xfb142(0x1fa));}),this['addEventListener']('field-change',_0x281a6a=>{const _0x552e72=_0x3cff3e;var {after:_0x364a4f,before:_0x599002,column:_0x4c8cc5,record:_0x1d1ad3,row:_0x196cef}=_0x281a6a[_0x552e72(0x1da)];if(ValueUtil[_0x552e72(0x1e5)](_0x364a4f,_0x599002))return;var _0x467472=_0x4c8cc5[_0x552e72(0x1f9)];if(_0x467472&&_0x552e72(0x21c)==typeof _0x467472&&!_0x467472[_0x552e72(0x1e3)](this,_0x364a4f,_0x599002,_0x1d1ad3,_0x4c8cc5))return;let _0x321e4e=_0x4c8cc5[_0x552e72(0x208)];_0x1d1ad3[_0x321e4e]=_0x364a4f,_0x1d1ad3['__dirtyfields__']=_0x1d1ad3[_0x552e72(0x20b)]||{},_0x1d1ad3[_0x552e72(0x21f)]=_0x1d1ad3[_0x552e72(0x21f)]||{},_0x1d1ad3[_0x552e72(0x20b)][_0x321e4e]={'before':_0x1d1ad3[_0x552e72(0x21f)][_0x321e4e],'after':_0x1d1ad3[_0x321e4e]},ValueUtil[_0x552e72(0x1e5)](_0x1d1ad3[_0x552e72(0x20b)][_0x321e4e][_0x552e72(0x206)],_0x1d1ad3[_0x552e72(0x20b)][_0x321e4e]['after'])&&delete _0x1d1ad3[_0x552e72(0x20b)][_0x321e4e],ValueUtil[_0x552e72(0x1ed)](_0x1d1ad3[_0x552e72(0x20b)])?_0x1d1ad3[_0x552e72(0x20d)]='M':_0x1d1ad3[_0x552e72(0x20d)]='',this[_0x552e72(0x213)]={..._0x1d1ad3};});}async[a0_0x57e15a(0x1ea)](){const _0x2a734c=a0_0x57e15a;super['firstUpdated']&&await super[_0x2a734c(0x1ea)]();}async[a0_0x57e15a(0x1ee)](){const _0x42d3fd=a0_0x57e15a;this[_0x42d3fd(0x1f3)]&&await this['parseFormConfigs'](),super[_0x42d3fd(0x1ee)]&&await super[_0x42d3fd(0x1ee)](),this[_0x42d3fd(0x1f3)]&&await this[_0x42d3fd(0x207)]();}[a0_0x57e15a(0x1e1)](){const _0x3a479d=a0_0x57e15a;return MetaApi[_0x3a479d(0x1ff)](this);}[a0_0x57e15a(0x1f1)](_0x395b8e){const _0x1cef9b=a0_0x57e15a;this[_0x1cef9b(0x1f5)]=_0x395b8e[_0x1cef9b(0x21e)],this[_0x1cef9b(0x211)]=_0x395b8e[_0x1cef9b(0x1f8)],_0x395b8e[_0x1cef9b(0x220)]=_0x395b8e['button'][_0x1cef9b(0x21d)](_0x111ef4=>_0x1cef9b(0x1d0)==_0x111ef4[_0x1cef9b(0x208)]);}async[a0_0x57e15a(0x1d8)](){const _0x2c7fd9=a0_0x57e15a;this[_0x2c7fd9(0x1d2)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x57e15a(0x218)](){const _0x54c480=a0_0x57e15a;return this[_0x54c480(0x221)](this[_0x54c480(0x213)]['__origin__']);}get[a0_0x57e15a(0x1de)](){const _0x118657=a0_0x57e15a;if(ValueUtil[_0x118657(0x1f7)](this['record'][_0x118657(0x20b)]))return{};let _0x2b0a4a={};return Object[_0x118657(0x1d3)](this[_0x118657(0x213)]['__dirtyfields__'])['map'](([_0x4fd115,_0x10b5f7])=>{const _0x3d04e2=_0x118657;0x0==_0x4fd115[_0x3d04e2(0x200)]('__')&&(_0x2b0a4a[_0x4fd115]=_0x10b5f7[_0x3d04e2(0x217)]);}),_0x2b0a4a;}get[a0_0x57e15a(0x1f4)](){const _0x5d35c6=a0_0x57e15a;return this[_0x5d35c6(0x221)](this[_0x5d35c6(0x213)]);}['removeGarbageData'](_0x24bcd8){const _0x4065b8=a0_0x57e15a;let _0x12f054={};if(_0x24bcd8)return Object[_0x4065b8(0x1d3)](_0x24bcd8)['map'](([_0x5cce46,_0x273c6c])=>{const _0x256226=_0x4065b8;0x0==_0x5cce46[_0x256226(0x200)]('__')&&(_0x12f054[_0x5cce46]=_0x273c6c);}),_0x12f054;}get['patchData'](){const _0x5637b2=a0_0x57e15a;let _0x10dbaf=this[_0x5637b2(0x1de)],_0x25d9fd=this[_0x5637b2(0x213)];return ValueUtil[_0x5637b2(0x1f7)](_0x10dbaf)?[]:(ValueUtil[_0x5637b2(0x1ed)](_0x25d9fd['id'])?(_0x10dbaf['id']=_0x25d9fd['id'],_0x10dbaf[_0x5637b2(0x1fb)]='M'):_0x10dbaf[_0x5637b2(0x1fb)]='+',Object[_0x5637b2(0x1e7)](_0x10dbaf)['forEach'](_0x24f341=>{'object'==typeof _0x10dbaf[_0x24f341]&&(_0x10dbaf[_0x24f341]={'id':_0x10dbaf[_0x24f341]['id']});}),[_0x10dbaf]);}async[a0_0x57e15a(0x207)](){const _0x5800ab=a0_0x57e15a;if(ValueUtil['isEmpty'](this[_0x5800ab(0x203)]))return;let _0x3c22cd=await this[_0x5800ab(0x20c)](this[_0x5800ab(0x203)]);_0x3c22cd[_0x5800ab(0x1e0)]=0x1;let _0x22769a={};Object[_0x5800ab(0x21b)](_0x22769a,_0x3c22cd),_0x3c22cd[_0x5800ab(0x21f)]=_0x22769a,this['record']={..._0x3c22cd};}async['save'](){const _0x5d1f38=a0_0x57e15a;let _0x41d278=this['patchData'];if(ValueUtil['isEmpty'](_0x41d278))return void MetaApi[_0x5d1f38(0x1f0)]('title.info',_0x5d1f38(0x1d7));let _0x3c82f8=await this['updateMultiple'](_0x41d278);return _0x3c82f8&&await this[_0x5d1f38(0x207)](),_0x3c82f8;}async[a0_0x57e15a(0x1fc)](){const _0x179c3e=a0_0x57e15a;this[_0x179c3e(0x213)]&&(this[_0x179c3e(0x213)]={});}[a0_0x57e15a(0x20f)](){const _0x345606=a0_0x57e15a;return this[_0x345606(0x1f4)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x9dbe31=a0_0x4c52;(function(_0x155601,_0x5c6222){const _0x2df4e2=a0_0x4c52,_0x21510b=_0x155601();while(!![]){try{const _0x5870b9=parseInt(_0x2df4e2(0x9f))/0x1*(parseInt(_0x2df4e2(0xba))/0x2)+-parseInt(_0x2df4e2(0xc9))/0x3+-parseInt(_0x2df4e2(0xbe))/0x4+parseInt(_0x2df4e2(0xb8))/0x5+parseInt(_0x2df4e2(0xa4))/0x6*(parseInt(_0x2df4e2(0xaa))/0x7)+parseInt(_0x2df4e2(0xa5))/0x8+-parseInt(_0x2df4e2(0xc6))/0x9;if(_0x5870b9===_0x5c6222)break;else _0x21510b['push'](_0x21510b['shift']());}catch(_0x4ceb74){_0x21510b['push'](_0x21510b['shift']());}}}(a0_0x4375,0xe6919));import{html}from'lit';function a0_0x4375(){const _0x22f3f7=['searchFieldValues','forEach','record','exportable','gridConfig','actions','deleteByIds','querySelector','filter','type','7677485FZNDvP','search','10SKkDiW','startsWith','importable','records','3904592emwaut','gristId','isNotEmpty','grist','getData','ox-grist','connectedCallback','meta-tab-element','11691711XLOPVV','firstUpdated','gristConfigSet','3943734rATPsh','patchesForUpdateMultiple','searchFields','pageInitialized','properties','filterForm','title','tTitle','dataSet','getSelectedIdList','find','export','main','#detail','clear','parseGridConfigSet','getContextObject','ox-filters-form-base','save','operator','options','parseGristConfigs','isElement','parseBasicGridConfigs','filterFormId','name','keys','shadowRoot','menuInfo','updateMultiple','262623rGbZgx','getAndParseMenuMeta','import','getBasicGristTabStyles','gridColumnConfig','12WppnQl','10621152zLUpcP','value','header','grid_column','delete','1252853ezWIgC','beforeFetch','activityDataSet','fetch'];a0_0x4375=function(){return _0x22f3f7;};return a0_0x4375();}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_0x4c52(_0x133733,_0x5715c3){const _0x43751d=a0_0x4375();return a0_0x4c52=function(_0x4c5284,_0x179040){_0x4c5284=_0x4c5284-0x85;let _0x1da896=_0x43751d[_0x4c5284];return _0x1da896;},a0_0x4c52(_0x133733,_0x5715c3);}export const MetaGristTabMixin=_0x47aee9=>class extends MetaButtonMixin(_0x47aee9){static get['styles'](){const _0x2730e9=a0_0x4c52;return MetaApi[_0x2730e9(0xa2)]();}static get[a0_0x9dbe31(0x85)](){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_0x9dbe31(0xc1)](){const _0x172272=a0_0x9dbe31;return this['renderRoot'][_0x172272(0xb5)](this['gristId']);}get[a0_0x9dbe31(0x86)](){const _0xbc4a82=a0_0x9dbe31;return this[_0xbc4a82(0x9c)]?.[_0xbc4a82(0xb5)](this['filterFormId']);}get['detailElement'](){const _0x189dd6=a0_0x9dbe31;return this[_0x189dd6(0x9c)][_0x189dd6(0xb5)](_0x189dd6(0x8e));}get['context'](){const _0x457b9d=a0_0x9dbe31;let _0x12ba02=MetaUiUtil[_0x457b9d(0x91)](this);return _0x12ba02[_0x457b9d(0xb3)]&&delete _0x12ba02['actions'],_0x12ba02[_0x457b9d(0xb1)]&&delete _0x12ba02[_0x457b9d(0xb1)],_0x12ba02[_0x457b9d(0xbc)]&&delete _0x12ba02[_0x457b9d(0xbc)],_0x12ba02;}async[a0_0x9dbe31(0xc4)](){const _0xdec14d=a0_0x9dbe31;this[_0xdec14d(0xbf)]=_0xdec14d(0xc3),this[_0xdec14d(0x99)]=_0xdec14d(0x92),await this[_0xdec14d(0xa0)](),this[_0xdec14d(0x97)]&&await this[_0xdec14d(0x96)](),this[_0xdec14d(0xac)]&&(this[_0xdec14d(0x89)]=(this[_0xdec14d(0xac)]||{})[_0xdec14d(0x8d)]),super[_0xdec14d(0xc4)]&&await super['connectedCallback']();}async[a0_0x9dbe31(0xc7)](){const _0x436e6a=a0_0x9dbe31;super['firstUpdated']&&await super[_0x436e6a(0xc7)]();}async[a0_0x9dbe31(0xcc)](){this['isPage']&&await this['parseGristConfigs'](),super['pageInitialized']&&await super['pageInitialized']();}['render'](){return MetaApi['getGristTabHtml'](this);}[a0_0x9dbe31(0x98)](_0x566237){const _0x10ed80=a0_0x9dbe31;this[_0x10ed80(0xb2)]=_0x566237['grid'],this[_0x10ed80(0xa3)]=_0x566237[_0x10ed80(0xa8)],this['searchConfig']=_0x566237[_0x10ed80(0xb9)];}async[a0_0x9dbe31(0x96)](){const _0x25fbff=a0_0x9dbe31;this['gristConfigSet']=await MetaApi[_0x25fbff(0x90)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x25fbff(0xae)]=[],this[_0x25fbff(0xcb)]=this[_0x25fbff(0xc8)]['columns'][_0x25fbff(0xb6)](_0x1d842e=>_0x1d842e[_0x25fbff(0xb6)])['map'](_0xd5a7df=>{const _0x375edd=_0x25fbff;let _0x568197={'name':_0xd5a7df[_0x375edd(0x9a)],'type':_0xd5a7df[_0x375edd(0xb7)],'label':_0xd5a7df[_0x375edd(0xa7)],'operator':_0xd5a7df['filter'][_0x375edd(0x94)]?_0xd5a7df[_0x375edd(0xb6)][_0x375edd(0x94)]:'eq'};return _0xd5a7df['record'][_0x375edd(0x95)]&&(_0x568197[_0x375edd(0x95)]=_0xd5a7df[_0x375edd(0xb0)][_0x375edd(0x95)]),_0xd5a7df[_0x375edd(0xb6)][_0x375edd(0xa6)]&&this[_0x375edd(0xae)]['push']({'name':_0x568197[_0x375edd(0x9a)],'operator':_0x568197[_0x375edd(0x94)],'value':_0xd5a7df[_0x375edd(0xb6)][_0x375edd(0xa6)]}),_0x568197;});}async[a0_0x9dbe31(0xad)](){const _0x406d6c=a0_0x9dbe31;await this[_0x406d6c(0xc1)][_0x406d6c(0xad)]();}async[a0_0x9dbe31(0xab)]({page:_0x5bdfc9=0x0,limit:_0x5ee683=0x0,sortings:_0x397c0f=[],filters:_0x5740d5=[]}){const _0x4324bc=a0_0x9dbe31;let _0x13cbd1=this['renderRoot'][_0x4324bc(0xb5)]('meta-tab-element');return await _0x13cbd1[_0x4324bc(0x8f)](),!0x0;}async[a0_0x9dbe31(0x93)](){const _0x383f55=a0_0x9dbe31;let _0x114732=MetaApi[_0x383f55(0xca)](this[_0x383f55(0xc1)]);!!ValueUtil[_0x383f55(0xc0)](_0x114732)&&await this[_0x383f55(0x9e)](_0x114732)&&this[_0x383f55(0xad)]();}async[a0_0x9dbe31(0x8b)](){const _0x5c1b89=a0_0x9dbe31;let _0x5506a4=MetaApi[_0x5c1b89(0x8a)](this[_0x5c1b89(0xc1)],!0x0);return ValueUtil['isNotEmpty'](_0x5506a4)?await this['findOne'](_0x5506a4[0x0]):{};}async[a0_0x9dbe31(0xa9)](){const _0x208898=a0_0x9dbe31;let _0x5b2a4a=MetaApi[_0x208898(0x8a)](this[_0x208898(0xc1)],!0x0);!!ValueUtil[_0x208898(0xc0)](_0x5b2a4a)&&await this[_0x208898(0xb4)](_0x5b2a4a)&&this['fetch']();}async[a0_0x9dbe31(0x8c)](){const _0x148a58=a0_0x9dbe31;let _0x343056=TermsUtil[_0x148a58(0x88)](ValueUtil['getParams'](this[_0x148a58(0x9d)],_0x148a58(0x87)));return await MetaApi['exportableData'](this['isElement'],_0x343056,this['grist']);}async[a0_0x9dbe31(0xa1)](){}['getData'](){const _0x2f24eb=a0_0x9dbe31;let _0xa951bb=this[_0x2f24eb(0xc1)]['___data'][_0x2f24eb(0xbd)];return _0xa951bb=JSON['parse'](JSON['stringify'](_0xa951bb)),_0xa951bb[_0x2f24eb(0xaf)](_0x3c3ec0=>{const _0x549cd9=_0x2f24eb;Object[_0x549cd9(0x9b)](_0x3c3ec0)[_0x549cd9(0xaf)](_0x2d5a91=>{const _0x40c811=_0x549cd9;_0x2d5a91[_0x40c811(0xbb)]('__')&&delete _0x3c3ec0[_0x2d5a91];});}),{'main':_0xa951bb,'detail':this['renderRoot']['querySelector'](_0x2f24eb(0xc5))[_0x2f24eb(0xc2)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x45725b=a0_0x11fa;(function(_0x4568e3,_0x59d9dc){const _0x4f9372=a0_0x11fa,_0x53d96b=_0x4568e3();while(!![]){try{const _0x51367e=parseInt(_0x4f9372(0x178))/0x1*(parseInt(_0x4f9372(0x15a))/0x2)+parseInt(_0x4f9372(0x143))/0x3*(-parseInt(_0x4f9372(0x150))/0x4)+parseInt(_0x4f9372(0x13d))/0x5+-parseInt(_0x4f9372(0x155))/0x6*(-parseInt(_0x4f9372(0x16a))/0x7)+parseInt(_0x4f9372(0x14e))/0x8+-parseInt(_0x4f9372(0x15d))/0x9*(-parseInt(_0x4f9372(0x142))/0xa)+parseInt(_0x4f9372(0x151))/0xb*(-parseInt(_0x4f9372(0x164))/0xc);if(_0x51367e===_0x59d9dc)break;else _0x53d96b['push'](_0x53d96b['shift']());}catch(_0x522ccc){_0x53d96b['push'](_0x53d96b['shift']());}}}(a0_0x2eb1,0x92db2));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x11fa(_0x3a06da,_0x12d585){const _0x2eb1e4=a0_0x2eb1();return a0_0x11fa=function(_0x11fa7,_0x3d0815){_0x11fa7=_0x11fa7-0x130;let _0x18eeb5=_0x2eb1e4[_0x11fa7];return _0x18eeb5;},a0_0x11fa(_0x3a06da,_0x12d585);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x2eb1(){const _0x3fd8d4=['import','grid','clear','3653750YKPikm','exportable','isElement','beforeFetch','push','317180AzaerE','15909LpMKHi','export','updateMultiple','gridConfig','delete','search','render','options','records','getData','isPage','4299984XlPhHN','fetch','484mrNngE','15094101NByyfm','actions','ox-filters-form-base','save','16770NzXROP','shadowRoot','type','querySelector','getMasterDetailHtml','84202vDkSTo','gristConfigSet','ox-grist','9UHYSia','detailElement','searchFields','map','parseBasicGridConfigs','findOne','getAndParseMenuMeta','12zWZMZY','forEach','gristId','patchesForUpdateMultiple','getSelectedIdList','filter','2240JUbPQx','record','useFilterForm','getParams','firstUpdated','operator','connectedCallback','importable','name','find','filterFormId','isNotEmpty','parse','parseGridConfigSet','10bBhrVM','searchFieldValues','renderRoot','pageInitialized','activityDataSet','styles','columns','context','keys','menuInfo','grist','dataSet','searchConfig','value','properties','grid_column'];a0_0x2eb1=function(){return _0x3fd8d4;};return a0_0x2eb1();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x2e0266=>class extends MetaButtonMixin(_0x2e0266){static get[a0_0x45725b(0x17d)](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x45725b(0x138)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get['grist'](){const _0x4c5a6c=a0_0x45725b;return this[_0x4c5a6c(0x17a)][_0x4c5a6c(0x158)](this[_0x4c5a6c(0x166)]);}get['filterForm'](){const _0x2ffe1b=a0_0x45725b;return this[_0x2ffe1b(0x156)]?.[_0x2ffe1b(0x158)](this[_0x2ffe1b(0x174)]);}get[a0_0x45725b(0x131)](){const _0x493064=a0_0x45725b;let _0x5f5266=MetaUiUtil['getContextObject'](this);return _0x5f5266[_0x493064(0x152)]&&delete _0x5f5266[_0x493064(0x152)],_0x5f5266['exportable']&&delete _0x5f5266[_0x493064(0x13e)],_0x5f5266[_0x493064(0x171)]&&delete _0x5f5266[_0x493064(0x171)],_0x5f5266;}async[a0_0x45725b(0x170)](){const _0x1406f5=a0_0x45725b;this['gristId']=_0x1406f5(0x15c),this[_0x1406f5(0x174)]=_0x1406f5(0x153),await this[_0x1406f5(0x163)](),this[_0x1406f5(0x13f)]&&await this['parseGristConfigs'](),this[_0x1406f5(0x17c)]&&(this[_0x1406f5(0x135)]=(this[_0x1406f5(0x17c)]||{})['main']),super[_0x1406f5(0x170)]&&await super[_0x1406f5(0x170)]();}async[a0_0x45725b(0x16e)](){const _0x13b065=a0_0x45725b;super[_0x13b065(0x16e)]&&await super[_0x13b065(0x16e)]();}async['pageInitialized'](){const _0x16fa35=a0_0x45725b;this[_0x16fa35(0x14d)]&&await this['parseGristConfigs'](),super[_0x16fa35(0x17b)]&&await super['pageInitialized']();}[a0_0x45725b(0x149)](){const _0x591587=a0_0x45725b;return MetaApi[_0x591587(0x159)](this);}[a0_0x45725b(0x161)](_0x380fa9){const _0x868176=a0_0x45725b;this[_0x868176(0x146)]=_0x380fa9[_0x868176(0x13b)],this['gridColumnConfig']=_0x380fa9[_0x868176(0x139)],this[_0x868176(0x136)]=_0x380fa9[_0x868176(0x148)];}async['parseGristConfigs'](){const _0x3dd057=a0_0x45725b;this[_0x3dd057(0x15b)]=await MetaApi[_0x3dd057(0x177)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this[_0x3dd057(0x16c)]=!0x1,this[_0x3dd057(0x179)]=[],this[_0x3dd057(0x15f)]=this[_0x3dd057(0x15b)][_0x3dd057(0x130)][_0x3dd057(0x169)](_0x24cc14=>_0x24cc14[_0x3dd057(0x169)])[_0x3dd057(0x160)](_0x583346=>{const _0x11a2d2=_0x3dd057;let _0x5e72bf={'name':_0x583346[_0x11a2d2(0x172)],'type':_0x583346[_0x11a2d2(0x157)],'label':_0x583346['header'],'operator':_0x583346[_0x11a2d2(0x169)][_0x11a2d2(0x16f)]?_0x583346[_0x11a2d2(0x169)][_0x11a2d2(0x16f)]:'eq'};return _0x583346[_0x11a2d2(0x16b)]['options']&&(_0x5e72bf[_0x11a2d2(0x14a)]=_0x583346['record'][_0x11a2d2(0x14a)]),_0x583346[_0x11a2d2(0x169)][_0x11a2d2(0x137)]&&this[_0x11a2d2(0x179)][_0x11a2d2(0x141)]({'name':_0x5e72bf['name'],'operator':_0x5e72bf[_0x11a2d2(0x16f)],'value':_0x583346[_0x11a2d2(0x169)][_0x11a2d2(0x137)]}),_0x5e72bf;});}async[a0_0x45725b(0x14f)](){const _0x2f3491=a0_0x45725b;await this[_0x2f3491(0x134)][_0x2f3491(0x14f)]();}async[a0_0x45725b(0x140)]({page:_0x1d3f0c=0x0,limit:_0x59da5a=0x0,sortings:_0x4c051=[],filters:_0x84208b=[]}){const _0x2350e0=a0_0x45725b;return this['detailElement']&&this[_0x2350e0(0x15e)][_0x2350e0(0x13c)]&&await this['detailElement']['clear'](),!0x0;}async[a0_0x45725b(0x154)](){const _0x56ad74=a0_0x45725b;let _0x2f26a0=MetaApi[_0x56ad74(0x167)](this[_0x56ad74(0x134)]);!!ValueUtil[_0x56ad74(0x175)](_0x2f26a0)&&await this[_0x56ad74(0x145)](_0x2f26a0)&&this[_0x56ad74(0x14f)]();}async[a0_0x45725b(0x173)](){const _0x101d1b=a0_0x45725b;let _0x2ba684=MetaApi[_0x101d1b(0x168)](this[_0x101d1b(0x134)],!0x0);return ValueUtil[_0x101d1b(0x175)](_0x2ba684)?await this[_0x101d1b(0x162)](_0x2ba684[0x0]):{};}async[a0_0x45725b(0x147)](){const _0x4206d3=a0_0x45725b;let _0x3fec4c=MetaApi[_0x4206d3(0x168)](this[_0x4206d3(0x134)],!0x0);!!ValueUtil[_0x4206d3(0x175)](_0x3fec4c)&&await this['deleteByIds'](_0x3fec4c)&&this[_0x4206d3(0x14f)]();}async[a0_0x45725b(0x144)](){const _0x48f9c0=a0_0x45725b;let _0x195306=TermsUtil['tTitle'](ValueUtil[_0x48f9c0(0x16d)](this[_0x48f9c0(0x133)],'title'));return await MetaApi['exportableData'](this['isElement'],_0x195306,this[_0x48f9c0(0x134)]);}async[a0_0x45725b(0x13a)](){}[a0_0x45725b(0x14c)](){const _0x898092=a0_0x45725b;let _0x4300e8=this[_0x898092(0x134)]['___data'][_0x898092(0x14b)];return _0x4300e8=JSON[_0x898092(0x176)](JSON['stringify'](_0x4300e8)),_0x4300e8[_0x898092(0x165)](_0x17286c=>{const _0x3413c9=_0x898092;Object[_0x3413c9(0x132)](_0x17286c)['forEach'](_0x4a1d1d=>{_0x4a1d1d['startsWith']('__')&&delete _0x17286c[_0x4a1d1d];});}),{'main':_0x4300e8,'detail':this['detailElement']['getData']()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x58b049=a0_0x7789;(function(_0x275c30,_0x341cc9){const _0x45a293=a0_0x7789,_0x380464=_0x275c30();while(!![]){try{const _0x4e23c1=-parseInt(_0x45a293(0x1f1))/0x1*(-parseInt(_0x45a293(0x1ea))/0x2)+-parseInt(_0x45a293(0x211))/0x3+-parseInt(_0x45a293(0x202))/0x4+-parseInt(_0x45a293(0x1f2))/0x5+parseInt(_0x45a293(0x1de))/0x6*(-parseInt(_0x45a293(0x208))/0x7)+-parseInt(_0x45a293(0x1e5))/0x8+-parseInt(_0x45a293(0x20c))/0x9*(-parseInt(_0x45a293(0x20f))/0xa);if(_0x4e23c1===_0x341cc9)break;else _0x380464['push'](_0x380464['shift']());}catch(_0x30e52e){_0x380464['push'](_0x380464['shift']());}}}(a0_0x3e68,0xee585));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x7789(_0x12f32d,_0x20a310){const _0x3e6867=a0_0x3e68();return a0_0x7789=function(_0x778965,_0x3286a8){_0x778965=_0x778965-0x1dc;let _0x454cc1=_0x3e6867[_0x778965];return _0x454cc1;},a0_0x7789(_0x12f32d,_0x20a310);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x5b129a=>class extends MetaBaseMixin(_0x5b129a){static get[a0_0x58b049(0x20a)](){return{'gqlInfo':Object};}[a0_0x58b049(0x1dd)](_0x421ba7){const _0x50d4d6=a0_0x58b049;this[_0x50d4d6(0x206)]=_0x421ba7[_0x50d4d6(0x1ef)];}async[a0_0x58b049(0x203)]({page:_0x2556f5=0x0,limit:_0x186b09=0x0,sortings:_0x181644=[],filters:_0x512f43=[]}){const _0xb6fb30=a0_0x58b049;if(this[_0xb6fb30(0x1e0)])return{'total':0x0,'records':this[_0xb6fb30(0x201)]||[]};if(!0x0===this[_0xb6fb30(0x200)]&&(_0x2556f5=0x0,_0x186b09=0x0),this[_0xb6fb30(0x1fc)]&&0x0==await this['beforeFetch']({'page':_0x2556f5,'limit':_0x186b09,'sortings':_0x181644,'filters':_0x512f43}))return;if(!this[_0xb6fb30(0x213)])return{'total':0x0,'records':[]};let _0x4b200b=ValueUtil[_0xb6fb30(0x204)](_0x512f43)?this[_0xb6fb30(0x1df)]?await this['mainFilterForm'][_0xb6fb30(0x1f3)]()||[]:await this[_0xb6fb30(0x216)]?.[_0xb6fb30(0x1f3)]()||[]:_0x512f43,_0x591582=ValueUtil['getParams'](this[_0xb6fb30(0x206)],_0xb6fb30(0x1e1),_0xb6fb30(0x20d)),_0x50dfd4=ValueUtil[_0xb6fb30(0x210)](this['gqlInfo'],_0xb6fb30(0x1e1),'filters'),_0x4f7a6e=ValueUtil['getParams'](this[_0xb6fb30(0x206)],_0xb6fb30(0x1e1),_0xb6fb30(0x1f0));if(ValueUtil[_0xb6fb30(0x1f5)](_0x50dfd4)&&(_0x4b200b=adjustFilters(_0x4b200b,_0x50dfd4)),_0x4b200b['push'](...this[_0xb6fb30(0x205)]()),this['isElement']&&!this[_0xb6fb30(0x1df)]){let _0x3dd568=ValueUtil[_0xb6fb30(0x210)](this[_0xb6fb30(0x206)],_0xb6fb30(0x1e1),_0xb6fb30(0x1dc));if(!ValueUtil[_0xb6fb30(0x1f5)](_0x3dd568)||!ValueUtil[_0xb6fb30(0x1f5)](this[_0xb6fb30(0x1dc)]))return{'total':0x0,'records':[]};_0x4b200b=adjustFilters(_0x4b200b,[{'name':_0x3dd568,'operator':'eq','value':this[_0xb6fb30(0x1dc)]}]);}let _0x5a4453=Object[_0xb6fb30(0x1fb)](_0x4f7a6e||{}),_0x417bbc=MetaApi['getSelectColumns'](this[_0xb6fb30(0x213)][_0xb6fb30(0x1e2)]['filter'](_0x4101df=>!_0x5a4453['includes'](_0x4101df['name']))),_0x9ec4ef=await MetaApi['searchByPagination'](_0x591582,_0x4b200b,_0x181644,_0x2556f5,_0x186b09,_0x417bbc);if(this['afterFetch']){let _0x45d336=await this[_0xb6fb30(0x1e6)]({'page':_0x2556f5,'limit':_0x186b09,'sortings':_0x181644,'filters':_0x512f43},_0x9ec4ef);if(_0x45d336)return _0x45d336;}return ValueUtil[_0xb6fb30(0x1f5)](_0x4f7a6e)&&ValueUtil[_0xb6fb30(0x1f5)](_0x9ec4ef)&&ValueUtil['isNotEmpty'](_0x9ec4ef[_0xb6fb30(0x20e)])&&_0x9ec4ef[_0xb6fb30(0x20e)][_0xb6fb30(0x215)](_0x2b466f=>(_0x5a4453[_0xb6fb30(0x1f9)](_0xebb9b5=>{const _0x12ca67=_0xb6fb30;_0x2b466f[_0xebb9b5]=ValueUtil[_0x12ca67(0x210)](_0x2b466f,..._0x4f7a6e[_0xebb9b5]['split']('.'));}),_0x2b466f)),_0x9ec4ef;}[a0_0x58b049(0x205)](){const _0x12ec5a=a0_0x58b049;if(0x0==this[_0x12ec5a(0x1e4)])return[];let _0x4fdf78=this[_0x12ec5a(0x1f4)]?.['params']?this[_0x12ec5a(0x1f4)][_0x12ec5a(0x1f8)]:{};if(!_0x4fdf78[_0x12ec5a(0x1eb)])return[];let _0x11fe06=_0x4fdf78[_0x12ec5a(0x1eb)],_0x4a890c=JSON[_0x12ec5a(0x1fa)](_0x11fe06),_0xab78c8=0x1==_0x4a890c[_0x12ec5a(0x1f6)]?'eq':'in',_0x20bc5d={},_0x4f6e4e=[];return Object['keys'](_0x4a890c[0x0])[_0x12ec5a(0x1f9)](_0x1434f7=>{_0x20bc5d[_0x1434f7]={'name':_0x1434f7,'operator':_0xab78c8,'value':'eq'===_0xab78c8?_0x4a890c[0x0][_0x1434f7]:[]};}),_0x4a890c[_0x12ec5a(0x1f6)]>0x1&&_0x4a890c[_0x12ec5a(0x1f9)](_0x58493a=>{const _0x2e2272=_0x12ec5a;Object[_0x2e2272(0x1fb)](_0x58493a)[_0x2e2272(0x1f9)](_0x10dcd1=>{const _0x26c56f=_0x2e2272;_0x20bc5d[_0x10dcd1][_0x26c56f(0x1e8)][_0x26c56f(0x1fe)](_0x58493a[_0x10dcd1]);});}),Object[_0x12ec5a(0x1fb)](_0x20bc5d)[_0x12ec5a(0x1f9)](_0x141a84=>{const _0x2ef1cc=_0x12ec5a;_0x4f6e4e[_0x2ef1cc(0x1fe)](_0x20bc5d[_0x141a84]);}),_0x4f6e4e;}async[a0_0x58b049(0x1ff)](_0x14e383){const _0x2af97d=a0_0x58b049;if(this[_0x2af97d(0x1e0)])return this['dataSet']||{};let _0x198222=ValueUtil[_0x2af97d(0x210)](this[_0x2af97d(0x206)],_0x2af97d(0x1e1),_0x2af97d(0x207)),_0x38eb48=ValueUtil[_0x2af97d(0x210)](this['gqlInfo'],'query',_0x2af97d(0x1f0)),_0x399038=Object[_0x2af97d(0x1fb)](_0x38eb48||{}),_0x4f6d6b=MetaApi['getSelectColumns']((this[_0x2af97d(0x213)]?this[_0x2af97d(0x213)]:{'columns':this[_0x2af97d(0x1e7)]})[_0x2af97d(0x1e2)][_0x2af97d(0x1e9)](_0x3d859e=>!_0x399038['includes'](_0x3d859e[_0x2af97d(0x1e3)]))),_0x2ccc53=await MetaApi[_0x2af97d(0x1ff)](_0x198222,_0x14e383,_0x4f6d6b);return ValueUtil[_0x2af97d(0x1f5)](_0x38eb48)&&ValueUtil[_0x2af97d(0x1f5)](_0x2ccc53)&&_0x399038[_0x2af97d(0x1f9)](_0x250de1=>{const _0x1b8870=_0x2af97d;_0x2ccc53[_0x250de1]=ValueUtil[_0x1b8870(0x210)](_0x2ccc53,..._0x38eb48[_0x250de1]['split']('.'));}),_0x2ccc53;}async[a0_0x58b049(0x214)](_0x563789){const _0x439eaf=a0_0x58b049;let _0x4e2e1d=ValueUtil[_0x439eaf(0x210)](this[_0x439eaf(0x206)],_0x439eaf(0x209),_0x439eaf(0x20b),'func');return await MetaApi[_0x439eaf(0x1f7)](_0x563789,_0x4e2e1d);}async[a0_0x58b049(0x212)](_0x147fe8){const _0x22add2=a0_0x58b049;let _0x55c9ad=ValueUtil[_0x22add2(0x210)](this['gqlInfo'],_0x22add2(0x209),'multiple','func'),_0xdec491=ValueUtil[_0x22add2(0x210)](this[_0x22add2(0x206)],_0x22add2(0x209),_0x22add2(0x1ec),_0x22add2(0x1fd));if(ValueUtil[_0x22add2(0x1f5)](_0xdec491)&&(_0xdec491=_0xdec491[_0x22add2(0x215)](_0x116e09=>_0x116e09[_0x22add2(0x1ee)]('.')?_0x116e09['split']('.'):_0x116e09),_0x147fe8=_0x147fe8[_0x22add2(0x215)](_0x240c7f=>(_0xdec491[_0x22add2(0x1f9)](_0x2d9d20=>{Array['isArray'](_0x2d9d20)?delete _0x240c7f[_0x2d9d20[0x0]][_0x2d9d20[0x1]]:delete _0x240c7f[_0x2d9d20];}),_0x240c7f))),this['isElement']&&ValueUtil[_0x22add2(0x1f5)](this['parent_id'])){let _0x2d2ee4=ValueUtil[_0x22add2(0x210)](this[_0x22add2(0x206)],_0x22add2(0x209),_0x22add2(0x1ec),'parent_id');ValueUtil[_0x22add2(0x1f5)](_0x2d2ee4)&&_0x147fe8[_0x22add2(0x1f9)](_0x1b7000=>{const _0x38eb6d=_0x22add2;if(_0x2d2ee4[_0x38eb6d(0x1ee)]('.')){let _0x150b4f=_0x2d2ee4[_0x38eb6d(0x1ed)]('.');_0x1b7000[_0x150b4f[0x0]]={},_0x1b7000[_0x150b4f[0x0]][_0x150b4f[0x1]]=this['parent_id'];}else _0x1b7000[_0x2d2ee4]=this[_0x38eb6d(0x1dc)];});}return await MetaApi[_0x22add2(0x212)](_0x55c9ad,_0x147fe8);}};function a0_0x3e68(){const _0xcfb365=['findOne','infinityPage','dataSet','4125964TDCWZb','fetchHandler','isEmpty','getPageNavigateParams','gqlInfo','find_one_func','983759eCNynB','mutation','properties','delete','9JGeVYj','list_func','records','30735470UruErK','getParams','550485rlafaw','updateMultiple','gristConfigSet','deleteByIds','map','filterForm','parent_id','parseBasicServiceConfigs','12ETnODk','mainFilterForm','is_activity','query','columns','name','isPage','3509288CpsfjU','afterFetch','formConfigSet','value','filter','2816342INbTMr','pass','multiple','split','includes','gql','after_set_fields','1BdxCpi','7853680gqwZWw','getQueryFilters','lifecycle','isNotEmpty','length','deleteListByIds','params','forEach','parse','keys','beforeFetch','skip_fields','push'];a0_0x3e68=function(){return _0xcfb365;};return a0_0x3e68();}
|