@things-factory/meta-ui 6.0.147 → 6.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +10 -10
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +10 -10
- 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 +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +102 -102
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- 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
|
-
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
(function(_0x2ecf99,_0x32fe54){const _0x58774d=a0_0x2721,_0x27a528=_0x2ecf99();while(!![]){try{const _0xe1d81b=parseInt(_0x58774d(0xa8))/0x1+-parseInt(_0x58774d(0xaa))/0x2*(-parseInt(_0x58774d(0xb6))/0x3)+-parseInt(_0x58774d(0xa4))/0x4+parseInt(_0x58774d(0xba))/0x5*(parseInt(_0x58774d(0xa3))/0x6)+-parseInt(_0x58774d(0xb7))/0x7*(-parseInt(_0x58774d(0xab))/0x8)+parseInt(_0x58774d(0x9f))/0x9+-parseInt(_0x58774d(0xa9))/0xa*(parseInt(_0x58774d(0xb9))/0xb);if(_0xe1d81b===_0x32fe54)break;else _0x27a528['push'](_0x27a528['shift']());}catch(_0x3b6e23){_0x27a528['push'](_0x27a528['shift']());}}}(a0_0x4ef0,0xdc213));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x2e351e from'graphql-tag';import{html}from'lit';function a0_0x4ef0(){const _0x4d3f65=['HEADERBAR','lite-menu-part','dispatch','appName','hamburger','NAVBAR','5193300jHSEgv','1351vcugLQ','query','3977545LOViYn','355XqnPgi','querySelector','content','11276784khgdXx','FRONT_END','landscape','items','48018uLRywQ','2618532gIquFc','portrait','dynamic-menu','data','901232qonxbA','120fjpyOt','2WVrkIj','59768VXkQik','meta[name=\x22application-name\x22]','value','get','dynamic-menu-part'];a0_0x4ef0=function(){return _0x4d3f65;};return a0_0x4ef0();}import{client}from'@operato/graphql';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='UPDATE_META_UI';export const UPDATE_META_MENU_TEMPLATE='UPDATE_META_MENU_TEMPLATE';var HAMBURGER;export async function setupMenuPart(_0xc83a49){const _0x5973a3=a0_0x2721;var {hovering:_0x1fe29e=!!isMobileDevice(),slotTemplate:_0x252d3f,portraitSlotTemplate:_0x504480,landscapeSlotTemplate:_0x2b8e27,position:_0x122cc9=VIEWPART_POSITION[_0x5973a3(0xb5)]}=_0xc83a49||{};const {hovering:_0x3e99d7}=(await clientSettingStore[_0x5973a3(0xae)](_0x5973a3(0xa6)))?.[_0x5973a3(0xad)]||{};void 0x0!==_0x3e99d7&&(_0x1fe29e=_0x3e99d7);const _0x41c0d1=_0x122cc9==VIEWPART_POSITION[_0x5973a3(0xb0)]?_0x5973a3(0xa1):_0x5973a3(0xa5),_0x29185b=(_0x5973a3(0xa1)==_0x41c0d1?_0x2b8e27:_0x504480)||_0x252d3f||html``;appendViewpart({'name':_0x5973a3(0xb1),'viewpart':{'show':!_0x1fe29e,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x1fe29e,'template':html`<dynamic-menu-part .orientation=${_0x41c0d1}>${_0x29185b}</dynamic-menu-part>`},'position':_0x122cc9}),_0x1fe29e&&_0x5973a3(0xa5)==_0x41c0d1?HAMBURGER||(HAMBURGER={'name':_0x5973a3(0xb4),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x31ba9e=>toggleOverlay(_0x5973a3(0xaf),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x5973a3(0xa0)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x5973a3(0xb2)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}function a0_0x2721(_0x460879,_0x2f8760){const _0x4ef0d5=a0_0x4ef0();return a0_0x2721=function(_0x272190,_0x278b20){_0x272190=_0x272190-0x9d;let _0xd94c75=_0x4ef0d5[_0x272190];return _0xd94c75;},a0_0x2721(_0x460879,_0x2f8760);}export async function updateMenuTemplate(_0x57c6d7){const _0x1154d6=a0_0x2721;var _0x4bb359=document[_0x1154d6(0x9d)](_0x1154d6(0xac))?.[_0x1154d6(0x9e)],_0x5c172=(await client[_0x1154d6(0xb8)]({'query':a0_0x2e351e`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x523973=a0_0x5747;(function(_0x205ec4,_0x2058f8){const _0x2f4e16=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':'active','operator':'eq','value':!0x0},{'name':'appName','operator':'in','value':['',_0x4bb359]}],'sortings':[{'name':'rank','desc':!0x1}]}}))[_0x1154d6(0xa7)]['liteMenus'][_0x1154d6(0xa2)];store[_0x1154d6(0xb2)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x5c172['filter'](_0x32453f=>!_0x32453f[_0x1154d6(0xb3)]||_0x32453f[_0x1154d6(0xb3)]===_0x4bb359),'template':_0x57c6d7});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x569a(_0x5e37e8,_0x5643ea){const _0x3f8ce1=a0_0x3f8c();return a0_0x569a=function(_0x569a78,_0x460f2c){_0x569a78=_0x569a78-0x185;let _0x2acf82=_0x3f8ce1[_0x569a78];return _0x2acf82;},a0_0x569a(_0x5e37e8,_0x5643ea);}(function(_0x5928e5,_0x2fe7cf){const _0x42a452=a0_0x569a,_0x28bfcf=_0x5928e5();while(!![]){try{const _0x57718d=-parseInt(_0x42a452(0x1a1))/0x1+-parseInt(_0x42a452(0x19d))/0x2*(parseInt(_0x42a452(0x19e))/0x3)+parseInt(_0x42a452(0x193))/0x4*(-parseInt(_0x42a452(0x19b))/0x5)+parseInt(_0x42a452(0x19c))/0x6+-parseInt(_0x42a452(0x19f))/0x7*(-parseInt(_0x42a452(0x18c))/0x8)+-parseInt(_0x42a452(0x185))/0x9+parseInt(_0x42a452(0x18b))/0xa;if(_0x57718d===_0x2fe7cf)break;else _0x28bfcf['push'](_0x28bfcf['shift']());}catch(_0x298f18){_0x28bfcf['push'](_0x28bfcf['shift']());}}}(a0_0x3f8c,0x9b5e7));import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x2c3910,_0xc82651,_0x544c1c){const _0x3f5720=a0_0x569a;var _0x32bb1b=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0xc82651}
|
|
4
|
+
.options=${_0x2c3910['options']}
|
|
5
|
+
.confirmCallback=${_0x544c1c}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x32bb1b,{'backdrop':!0x0,'size':'large','title':_0x2c3910['options']['selectorName']?TermsUtil['tMenu'](_0x2c3910[_0x3f5720(0x189)][_0x3f5720(0x191)]):TermsUtil[_0x3f5720(0x199)]('select_item')});}export const FilterFormMetaCodeSelect=(_0x1af507,_0x32e07f,_0x3b2a55)=>{const _0x5cbd68=a0_0x569a,_0x274848=_0x1af507[_0x5cbd68(0x189)],_0x51af36=_0x274848[_0x5cbd68(0x19a)]&&_0x274848[_0x5cbd68(0x19a)][_0x5cbd68(0x1a0)]>0x0?_0x274848[_0x5cbd68(0x19a)]:void 0x0,{operator:_0x40a8c3='eq'}=_0x1af507;let _0xa46e8=_0x32e07f||'',_0x44cd39=_0x32e07f||'';if(_0x274848[_0x5cbd68(0x197)]&&_0x32e07f&&_0x51af36){let _0x777c05=_0x51af36[_0x5cbd68(0x186)](_0x4ae45e=>_0x4ae45e[_0x5cbd68(0x187)]==_0x32e07f);_0x777c05&&_0x777c05[_0x5cbd68(0x1a0)]>0x0&&(_0x44cd39=_0x777c05[0x0][_0x5cbd68(0x196)]);}return'eq'===_0x40a8c3?html`
|
|
8
|
+
<input name='${_0x1af507[_0x5cbd68(0x198)]}' .value=${_0xa46e8} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x1af507[_0x5cbd68(0x198)]}_disp'
|
|
13
|
+
.value=${_0x44cd39}
|
|
14
|
+
@click=${_0x4bb868=>{const _0x5ec6a9=_0x5cbd68;_0x4bb868['stopPropagation']();const _0x173632=_0x4bb868[_0x5ec6a9(0x18d)];openMetaCodeSelector(_0x1af507,_0x32e07f,_0x748825=>{const _0x5a2f34=_0x5ec6a9;let _0x1c4577=_0x748825?_0x748825[_0x274848[_0x5a2f34(0x190)]]:'',_0x280197=_0x1c4577;_0x748825&&_0x274848[_0x5a2f34(0x197)]&&(_0x280197=_0x748825[_0x274848[_0x5a2f34(0x197)]]),_0x173632[_0x5a2f34(0x187)]=_0x280197,(_0x5a2f34(0x18f)==_0x3b2a55[_0x5a2f34(0x1a2)]['toLowerCase']()?_0x3b2a55[_0x5a2f34(0x18a)][_0x5a2f34(0x195)](_0x5a2f34(0x18e)+_0x1af507['name']+'\x22]'):_0x3b2a55['renderRoot'][_0x5a2f34(0x195)](_0x5a2f34(0x188)+_0x1af507[_0x5a2f34(0x198)]+'\x22]'))['value']=_0x1c4577,_0x173632[_0x5a2f34(0x194)](new Event('change',{'bubbles':!0x0})),_0x173632[_0x5a2f34(0x194)](new CustomEvent(_0x5a2f34(0x192),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x1af507[_0x5a2f34(0x198)],'operator':_0x40a8c3,'value':_0x1c4577}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x3f8c(){const _0x237683=['selectorName','filter-change','1061656dbCgdN','dispatchEvent','querySelector','display','dispField','name','tTitle','codes','15eBTbwD','4507632pOVPwn','1094IqKmsw','3063Bbdpvb','743267AMLpQR','length','207341GotWMa','tagName','3749085YxUNdO','filter','value','form\x20[name=\x22','options','renderRoot','9081250ScjZVH','72MnGVvp','target','[name=\x22','ox-grid-header','codeField'];a0_0x3f8c=function(){return _0x237683;};return a0_0x3f8c();}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x421a45,_0xabe59c){const _0x5b5b25=a0_0x365d,_0x19f33a=_0x421a45();while(!![]){try{const _0x3f46ce=parseInt(_0x5b5b25(0x10a))/0x1+parseInt(_0x5b5b25(0x104))/0x2*(-parseInt(_0x5b5b25(0x100))/0x3)+-parseInt(_0x5b5b25(0x10f))/0x4*(-parseInt(_0x5b5b25(0xf0))/0x5)+-parseInt(_0x5b5b25(0xf6))/0x6*(parseInt(_0x5b5b25(0xf5))/0x7)+-parseInt(_0x5b5b25(0x108))/0x8*(parseInt(_0x5b5b25(0xf3))/0x9)+parseInt(_0x5b5b25(0x10d))/0xa*(-parseInt(_0x5b5b25(0x101))/0xb)+-parseInt(_0x5b5b25(0xfc))/0xc*(-parseInt(_0x5b5b25(0x106))/0xd);if(_0x3f46ce===_0xabe59c)break;else _0x19f33a['push'](_0x19f33a['shift']());}catch(_0x5619e0){_0x19f33a['push'](_0x19f33a['shift']());}}}(a0_0x38b3,0x4032a));function a0_0x38b3(){const _0x36ce2a=['28BeUxNP','renderRoot','364390wRNYcj','form\x20[name=\x22','stopPropagation','466497tHlDRO','selectorName','7UOvKKL','2523678KCdpTw','tagName','toLowerCase','change','querySelector','dispatchEvent','1433652vWzYYP','value','tMenu','large','271893LrQUjV','88XbGSbI','[name=\x22','options','2JTNmJT','target','39gkuunQ','nameField','16VvQWQQ','tTitle','162033UYvhuH','select_item','ox-grid-header','190910nYZwcC','name'];a0_0x38b3=function(){return _0x36ce2a;};return a0_0x38b3();}function a0_0x365d(_0x2f8546,_0x40e86f){const _0x38b3b9=a0_0x38b3();return a0_0x365d=function(_0x365d29,_0x4b23a6){_0x365d29=_0x365d29-0xf0;let _0x318765=_0x38b3b9[_0x365d29];return _0x318765;},a0_0x365d(_0x2f8546,_0x40e86f);}import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x3d60bb,_0x5fc1ad,_0x456da1){const _0x1db9eb=a0_0x365d;var _0x1ca630=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x5fc1ad}
|
|
4
|
+
.options=${_0x3d60bb[_0x1db9eb(0x103)]}
|
|
5
|
+
.confirmCallback=${_0x456da1}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x1ca630,{'backdrop':!0x0,'size':_0x1db9eb(0xff),'title':_0x3d60bb[_0x1db9eb(0x103)][_0x1db9eb(0xf4)]?TermsUtil[_0x1db9eb(0xfe)](_0x3d60bb[_0x1db9eb(0x103)][_0x1db9eb(0xf4)]):TermsUtil[_0x1db9eb(0x109)](_0x1db9eb(0x10b))});}export const FilterFormMetaObjectSelect=(_0x3c96f3,_0x22ce2f,_0x2b3c6c)=>{const _0x121d92=a0_0x365d,_0x223727=_0x3c96f3['options'],{operator:_0x43a81d='eq'}=_0x3c96f3;let _0x5c9e20=_0x22ce2f?_0x22ce2f['id']:'',_0x201d1f=_0x22ce2f?_0x22ce2f[_0x223727[_0x121d92(0x107)]]:'';return'eq'===_0x43a81d?html`
|
|
8
|
+
<input name='${_0x3c96f3[_0x121d92(0x10e)]}' .value=${_0x5c9e20} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x3c96f3[_0x121d92(0x10e)]}_disp'
|
|
13
|
+
.value=${_0x201d1f}
|
|
14
|
+
@click=${_0x21df2e=>{const _0x1f19f5=_0x121d92;_0x21df2e[_0x1f19f5(0xf2)]();const _0x3c5011=_0x21df2e[_0x1f19f5(0x105)];openMetaObjectSelector(_0x3c96f3,_0x22ce2f,_0x2482b1=>{const _0x15b872=_0x1f19f5;let _0x507ea0=_0x2482b1?_0x2482b1['id']:'',_0x4a17d8=_0x2482b1?_0x2482b1[_0x223727[_0x15b872(0x107)]]:'';_0x3c5011[_0x15b872(0xfd)]=_0x4a17d8,(_0x15b872(0x10c)==_0x2b3c6c[_0x15b872(0xf7)][_0x15b872(0xf8)]()?_0x2b3c6c['renderRoot'][_0x15b872(0xfa)](_0x15b872(0x102)+_0x3c96f3[_0x15b872(0x10e)]+'\x22]'):_0x2b3c6c[_0x15b872(0x110)][_0x15b872(0xfa)](_0x15b872(0xf1)+_0x3c96f3[_0x15b872(0x10e)]+'\x22]'))[_0x15b872(0xfd)]=_0x507ea0,_0x3c5011['dispatchEvent'](new Event(_0x15b872(0xf9),{'bubbles':!0x0})),_0x3c5011[_0x15b872(0xfb)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x3c96f3['name'],'operator':_0x43a81d,'value':_0x507ea0}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a86ed,_0x486003){const _0x419ef2=a0_0x12ba,_0x52b386=_0x3a86ed();while(!![]){try{const _0x2782ef=-parseInt(_0x419ef2(0xa1))/0x1*(parseInt(_0x419ef2(0x9b))/0x2)+-parseInt(_0x419ef2(0xa0))/0x3*(parseInt(_0x419ef2(0x85))/0x4)+parseInt(_0x419ef2(0x91))/0x5+parseInt(_0x419ef2(0x81))/0x6*(parseInt(_0x419ef2(0x9c))/0x7)+parseInt(_0x419ef2(0x88))/0x8*(-parseInt(_0x419ef2(0x82))/0x9)+-parseInt(_0x419ef2(0x89))/0xa+-parseInt(_0x419ef2(0x9f))/0xb*(-parseInt(_0x419ef2(0x97))/0xc);if(_0x2782ef===_0x486003)break;else _0x52b386['push'](_0x52b386['shift']());}catch(_0x45e3db){_0x52b386['push'](_0x52b386['shift']());}}}(a0_0x274e,0x4d403));import'../selector/meta-object-selector-popup';function a0_0x12ba(_0x26bfc3,_0x572273){const _0x274e4c=a0_0x274e();return a0_0x12ba=function(_0x12baa5,_0x50be9d){_0x12baa5=_0x12baa5-0x7e;let _0x17cef9=_0x274e4c[_0x12baa5];return _0x17cef9;},a0_0x12ba(_0x26bfc3,_0x572273);}import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x2f0cdc,_0x1ab99c,_0xfbd71d){const _0x5a789e=a0_0x12ba;var _0x5d19ec=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x1ab99c}
|
|
4
|
+
.options=${_0x2f0cdc['record'][_0x5a789e(0x8c)]}
|
|
5
|
+
.confirmCallback=${_0xfbd71d}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x5d19ec,{'backdrop':!0x0,'size':_0x5a789e(0x7e),'title':_0x2f0cdc[_0x5a789e(0x8e)][_0x5a789e(0x8c)][_0x5a789e(0x7f)]?TermsUtil[_0x5a789e(0x92)](_0x2f0cdc['record'][_0x5a789e(0x8c)][_0x5a789e(0x7f)]):TermsUtil[_0x5a789e(0x9a)](_0x5a789e(0xa2))});}export const FilterGristMetaCodeSelect=(_0x235040,_0x283e06,_0x5d38b1)=>{const _0x4524b5=a0_0x12ba,_0x5136b2=_0x235040['filter'],_0x51bceb=_0x235040[_0x4524b5(0x8e)]['options'],_0x663047=_0x51bceb[_0x4524b5(0x9d)]&&_0x51bceb[_0x4524b5(0x9d)][_0x4524b5(0x87)]>0x0?_0x51bceb['codes']:void 0x0,{operator:_0x4ad8bc='eq'}=_0x5136b2;let _0x17919f=_0x283e06||'',_0x30549c=_0x283e06||'';if(_0x51bceb[_0x4524b5(0x8b)]&&_0x283e06&&_0x663047){let _0x41e6d6=_0x663047[_0x4524b5(0x95)](_0x4fa6fe=>_0x4fa6fe[_0x4524b5(0x8f)]==_0x283e06);_0x41e6d6&&_0x41e6d6[_0x4524b5(0x87)]>0x0&&(_0x30549c=_0x41e6d6[0x0][_0x4524b5(0x8a)]);}return'eq'===_0x4ad8bc?html`
|
|
8
|
+
<input name='${_0x235040[_0x4524b5(0x83)]}' .value=${_0x17919f} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x235040[_0x4524b5(0x83)]}_disp'
|
|
13
|
+
.value=${_0x30549c}
|
|
14
|
+
@click=${_0x489a9f=>{const _0x58a525=_0x4524b5;_0x489a9f['stopPropagation']();const _0x4f4af5=_0x489a9f[_0x58a525(0x90)];openMetaCodeSelector(_0x235040,_0x283e06,_0x318440=>{const _0x528d7b=_0x58a525;let _0x3389e2=_0x318440?_0x318440[_0x51bceb[_0x528d7b(0x94)]]:'',_0x431c2d=_0x3389e2;_0x318440&&_0x51bceb[_0x528d7b(0x8b)]&&(_0x431c2d=_0x318440[_0x51bceb[_0x528d7b(0x8b)]]),_0x4f4af5[_0x528d7b(0x8f)]=_0x431c2d,(_0x528d7b(0x8d)==_0x5d38b1['tagName'][_0x528d7b(0x99)]()?_0x5d38b1[_0x528d7b(0x86)][_0x528d7b(0x80)](_0x528d7b(0x93)+_0x5136b2[_0x528d7b(0x83)]+'\x22]'):_0x5d38b1[_0x528d7b(0x86)]['querySelector'](_0x528d7b(0x98)+_0x5136b2['name']+'\x22]'))[_0x528d7b(0x8f)]=_0x3389e2,_0x4f4af5[_0x528d7b(0x9e)](new Event(_0x528d7b(0x96),{'bubbles':!0x0})),_0x4f4af5[_0x528d7b(0x9e)](new CustomEvent(_0x528d7b(0x84),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x235040[_0x528d7b(0x83)],'operator':_0x4ad8bc,'value':_0x3389e2}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x274e(){const _0x41b0e3=['tMenu','[name=\x22','codeField','filter','change','996ZcSjBr','form\x20[name=\x22','toLowerCase','tTitle','2XkIEFC','1308706ImUaaA','codes','dispatchEvent','210155pIUGwE','992148XqMyKN','632268mgFNeb','select_item','large','selectorName','querySelector','12mCmVSY','5057163OOSzJk','name','filter-change','4oBstuZ','renderRoot','length','8qrIqyW','4776710ImtWPt','display','dispField','options','ox-grid-header','record','value','target','1796750bHAVXa'];a0_0x274e=function(){return _0x41b0e3;};return a0_0x274e();}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x871e3,_0xa38ca9){const _0x44fe74=a0_0x23b4,_0x3e824b=_0x871e3();while(!![]){try{const _0x4a90aa=parseInt(_0x44fe74(0xdd))/0x1+parseInt(_0x44fe74(0xe1))/0x2*(parseInt(_0x44fe74(0xdc))/0x3)+parseInt(_0x44fe74(0xd8))/0x4+parseInt(_0x44fe74(0xd3))/0x5*(-parseInt(_0x44fe74(0xe0))/0x6)+-parseInt(_0x44fe74(0xd1))/0x7*(-parseInt(_0x44fe74(0xcf))/0x8)+-parseInt(_0x44fe74(0xd7))/0x9*(parseInt(_0x44fe74(0xe5))/0xa)+-parseInt(_0x44fe74(0xd2))/0xb*(parseInt(_0x44fe74(0xe2))/0xc);if(_0x4a90aa===_0xa38ca9)break;else _0x3e824b['push'](_0x3e824b['shift']());}catch(_0x939b4f){_0x3e824b['push'](_0x3e824b['shift']());}}}(a0_0x4e8e,0xb380e));function a0_0x23b4(_0x5359bc,_0x2150a7){const _0x4e8e62=a0_0x4e8e();return a0_0x23b4=function(_0x23b453,_0x57dc2d){_0x23b453=_0x23b453-0xc6;let _0x1cdf01=_0x4e8e62[_0x23b453];return _0x1cdf01;},a0_0x23b4(_0x5359bc,_0x2150a7);}import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x4e8e(){const _0x24347f=['nameField','tMenu','form\x20[name=\x22','select_item','change','filter-change','renderRoot','80EoIshy','target','767690JMvztZ','99apGWhG','55NnltJr','toLowerCase','dispatchEvent','[name=\x22','9IhRalC','1667948izbPfz','name','value','large','15zUyRcN','226875hUAtUI','record','ox-grid-header','640194gYVqsM','248090NEjYwj','102252ZOtaMC','tTitle','tagName','3751630qxyxTK','selectorName','options'];a0_0x4e8e=function(){return _0x24347f;};return a0_0x4e8e();}import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x558028,_0x1b61f2,_0x45fd4c){const _0x5852b4=a0_0x23b4;var _0x4faea8=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x1b61f2}
|
|
4
|
+
.options=${_0x558028['record'][_0x5852b4(0xc7)]}
|
|
5
|
+
.confirmCallback=${_0x45fd4c}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x4faea8,{'backdrop':!0x0,'size':_0x5852b4(0xdb),'title':_0x558028[_0x5852b4(0xde)][_0x5852b4(0xc7)][_0x5852b4(0xc6)]?TermsUtil[_0x5852b4(0xc9)](_0x558028[_0x5852b4(0xde)]['options'][_0x5852b4(0xc6)]):TermsUtil[_0x5852b4(0xe3)](_0x5852b4(0xcb))});}export const FilterGristMetaObjectSelect=(_0x1817f5,_0x2457d3,_0x196a3d)=>{const _0x2f53fe=a0_0x23b4,_0x320ee5=_0x1817f5['filter'],{operator:_0x49cdb0='eq'}=_0x320ee5,_0x1eda80=_0x1817f5[_0x2f53fe(0xde)]['options'];let _0x301f94=_0x2457d3?_0x2457d3['id']:'',_0x26c61e=_0x2457d3?_0x2457d3[_0x1eda80[_0x2f53fe(0xc8)]]:'';return'eq'===_0x49cdb0?html`
|
|
8
|
+
<input name='${_0x1817f5[_0x2f53fe(0xd9)]}' .value=${_0x301f94} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x1817f5['name']}_disp'
|
|
13
|
+
.value=${_0x26c61e}
|
|
14
|
+
@click=${_0x1aa27c=>{const _0x4e89a7=_0x2f53fe;_0x1aa27c['stopPropagation']();const _0x31b1ec=_0x1aa27c[_0x4e89a7(0xd0)];openMetaObjectSelector(_0x1817f5,_0x2457d3,_0x227e46=>{const _0x181e3f=_0x4e89a7;let _0x399fd6=_0x227e46?_0x227e46['id']:'',_0x49a9bc=_0x227e46?_0x227e46[_0x1eda80[_0x181e3f(0xc8)]]:'';_0x31b1ec[_0x181e3f(0xda)]=_0x49a9bc,(_0x181e3f(0xdf)==_0x196a3d[_0x181e3f(0xe4)][_0x181e3f(0xd4)]()?_0x196a3d[_0x181e3f(0xce)]['querySelector'](_0x181e3f(0xd6)+_0x320ee5[_0x181e3f(0xd9)]+'\x22]'):_0x196a3d['renderRoot']['querySelector'](_0x181e3f(0xca)+_0x320ee5[_0x181e3f(0xd9)]+'\x22]'))[_0x181e3f(0xda)]=_0x399fd6,_0x31b1ec[_0x181e3f(0xd5)](new Event(_0x181e3f(0xcc),{'bubbles':!0x0})),_0x31b1ec['dispatchEvent'](new CustomEvent(_0x181e3f(0xcd),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x1817f5[_0x181e3f(0xd9)],'operator':_0x49cdb0,'value':_0x399fd6}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x1c7d03=a0_0x5777;(function(_0x331983,_0x4c42c2){const _0x536dca=a0_0x5777,_0x14b824=_0x331983();while(!![]){try{const _0x498adc=parseInt(_0x536dca(0x1c8))/0x1+parseInt(_0x536dca(0x1af))/0x2*(-parseInt(_0x536dca(0x1bd))/0x3)+-parseInt(_0x536dca(0x1c6))/0x4+-parseInt(_0x536dca(0x1c4))/0x5*(parseInt(_0x536dca(0x1ca))/0x6)+parseInt(_0x536dca(0x1b5))/0x7+parseInt(_0x536dca(0x1b8))/0x8*(parseInt(_0x536dca(0x1ba))/0x9)+parseInt(_0x536dca(0x1c2))/0xa;if(_0x498adc===_0x4c42c2)break;else _0x14b824['push'](_0x14b824['shift']());}catch(_0x37834f){_0x14b824['push'](_0x14b824['shift']());}}}(a0_0x5439,0xd0c20));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';function a0_0x5777(_0x22e0da,_0x122aa6){const _0x54399c=a0_0x5439();return a0_0x5777=function(_0x577795,_0x8d5db9){_0x577795=_0x577795-0x1a5;let _0xa0678e=_0x54399c[_0x577795];return _0xa0678e;},a0_0x5777(_0x22e0da,_0x122aa6);}import'../../selector/meta-object-selector-popup';export class GristEditorMetaCodeSelector extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x1c7d03(0x1c1)](){const _0x6220ae=a0_0x1c7d03;let _0x13763a='';if(this[_0x6220ae(0x1c3)][_0x6220ae(0x1a5)]&&this['column'][_0x6220ae(0x1a5)][_0x6220ae(0x1c0)]){if(this[_0x6220ae(0x1c3)]['record'][_0x6220ae(0x1c0)][_0x6220ae(0x1b4)]){let _0x3553eb=this[_0x6220ae(0x1c3)]['record']['options']['codes']||[];if(this['value']&&this[_0x6220ae(0x1c7)][_0x6220ae(0x1be)]>0x0){let _0x189bd1=_0x3553eb[_0x6220ae(0x1b1)](_0x4f2ec3=>_0x4f2ec3[_0x6220ae(0x1c7)]===this['value']);_0x13763a=_0x189bd1&&_0x189bd1[_0x6220ae(0x1be)]>0x0?_0x189bd1[0x0][_0x6220ae(0x1a6)]:'';}}else _0x13763a=this[_0x6220ae(0x1c7)];}else _0x13763a='';return html`
|
|
2
|
+
${_0x13763a?html` <span tabindex="0" style="flex:1">${_0x13763a}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x1c7d03(0x1bb)](){super['firstUpdated']();}[a0_0x1c7d03(0x1a9)](_0x289b12){const _0x574d31=a0_0x1c7d03;_0x289b12[_0x574d31(0x1b0)](),this[_0x574d31(0x1ac)]();}[a0_0x1c7d03(0x1b7)](_0xcbcba1){const _0x4c7334=a0_0x1c7d03;_0x4c7334(0x1ae)==_0xcbcba1[_0x4c7334(0x1b6)]&&(_0xcbcba1[_0x4c7334(0x1b0)](),this[_0x4c7334(0x1ac)]());}[a0_0x1c7d03(0x1ac)](){const _0x53774e=a0_0x1c7d03;this['popup']&&delete this[_0x53774e(0x1c9)];var {selectorName:_0x3489f7=TermsUtil[_0x53774e(0x1b9)](_0x53774e(0x1b2))}=this['column']['record'][_0x53774e(0x1c0)]||{},_0xe53387=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x53774e(0x1c7)]}
|
|
6
|
+
.options=${this[_0x53774e(0x1c3)][_0x53774e(0x1a5)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x57ab86=>{const _0x9375b4=_0x53774e;let _0x42ce64=this['column'][_0x9375b4(0x1a5)][_0x9375b4(0x1c0)]['codeField'],_0xd06f0f=this[_0x9375b4(0x1c3)][_0x9375b4(0x1a5)][_0x9375b4(0x1c0)][_0x9375b4(0x1b4)],_0x5dac8f=this['column'][_0x9375b4(0x1a5)][_0x9375b4(0x1c0)][_0x9375b4(0x1ab)]||{};if(this[_0x9375b4(0x1c3)]['record'][_0x9375b4(0x1c0)][_0x9375b4(0x1a7)]||(this[_0x9375b4(0x1c3)][_0x9375b4(0x1a5)][_0x9375b4(0x1c0)]['codes']=[]),_0x57ab86){let _0x113d6f=this[_0x9375b4(0x1c3)][_0x9375b4(0x1a5)][_0x9375b4(0x1c0)][_0x9375b4(0x1a7)]['filter'](_0x2844aa=>_0x2844aa[_0x9375b4(0x1c7)]==_0x57ab86[_0x42ce64]);_0x113d6f&&0x0!=_0x113d6f[_0x9375b4(0x1be)]||this[_0x9375b4(0x1c3)][_0x9375b4(0x1a5)]['options'][_0x9375b4(0x1a7)]['push']({'value':_0x57ab86[_0x42ce64],'display':_0x57ab86[_0xd06f0f]});}this['dispatchEvent'](new CustomEvent(_0x9375b4(0x1aa),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x9375b4(0x1c7)],'after':_0x57ab86?_0x57ab86[_0x42ce64]:null,'record':this[_0x9375b4(0x1a5)],'column':this['column'],'row':this[_0x9375b4(0x1bc)]}})),Object[_0x9375b4(0x1a8)](_0x5dac8f)[_0x9375b4(0x1b3)](_0x40f1eb=>{const _0x4b5466=_0x9375b4;this['dispatchEvent'](new CustomEvent(_0x4b5466(0x1aa),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x4b5466(0x1a5)][_0x5dac8f[_0x40f1eb]],'after':_0x57ab86?_0x57ab86[_0x40f1eb]:null,'record':this[_0x4b5466(0x1a5)],'column':{'name':_0x5dac8f[_0x40f1eb]},'row':this[_0x4b5466(0x1bc)]}}));});})['bind'](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this['popup']=openPopup(_0xe53387,{'backdrop':!0x0,'size':_0x53774e(0x1cb),'title':TermsUtil[_0x53774e(0x1ad)](_0x3489f7)});}}function a0_0x5439(){const _0x1d6eed=['options','editorTemplate','4894110JnnOFV','column','561705EWNRgr','define','6226212YuQzvd','value','810537ARWRyI','popup','30bIulCM','large','record','display','codes','keys','_onclick','field-change','fieldMap','openSelector','tMenu','Enter','2480074HAJgCt','stopPropagation','filter','select_item','forEach','dispField','11168731mxaqTB','key','_onkeydown','16tgVMzK','tTitle','5930487wIiUfo','firstUpdated','row','3zVdzbg','length','grist-editor-meta-code-selector'];a0_0x5439=function(){return _0x1d6eed;};return a0_0x5439();}customElements[a0_0x1c7d03(0x1c5)](a0_0x1c7d03(0x1bf),GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
var a0_0x382eea=a0_0x160b;(function(_0xdf3a02,_0x737d5d){var _0x110745=a0_0x160b,_0x469dc2=_0xdf3a02();while(!![]){try{var _0x56cc5b=-parseInt(_0x110745(0x96))/0x1+parseInt(_0x110745(0x8d))/0x2*(-parseInt(_0x110745(0x8c))/0x3)+parseInt(_0x110745(0xa0))/0x4+parseInt(_0x110745(0x87))/0x5*(-parseInt(_0x110745(0xa4))/0x6)+-parseInt(_0x110745(0x9c))/0x7*(parseInt(_0x110745(0x95))/0x8)+-parseInt(_0x110745(0x85))/0x9*(parseInt(_0x110745(0x9b))/0xa)+-parseInt(_0x110745(0x92))/0xb*(-parseInt(_0x110745(0xa3))/0xc);if(_0x56cc5b===_0x737d5d)break;else _0x469dc2['push'](_0x469dc2['shift']());}catch(_0x2705f2){_0x469dc2['push'](_0x469dc2['shift']());}}}(a0_0x10ea,0xd4d22));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';function a0_0x160b(_0x343298,_0x1ce4db){var _0x10ea51=a0_0x10ea();return a0_0x160b=function(_0x160b62,_0x2774a7){_0x160b62=_0x160b62-0x83;var _0x28f0e5=_0x10ea51[_0x160b62];return _0x28f0e5;},a0_0x160b(_0x343298,_0x1ce4db);}function a0_0x10ea(){var _0x2bf178=['record','2833920ctRbUr','stopPropagation','firstUpdated','180QPakIR','1938jtknro','row','forEach','tTitle','dispatchEvent','tMenu','18kcxaEZ','editorTemplate','895JVCjEd','grist-editor-meta-object-selector','Enter','fieldMap','keys','480534PnkBfS','6kvpLOQ','define','options','key','popup','2519044WogwzT','openSelector','select_item','40ckJBGK','703220jMZwgb','field-change','nameField','_onclick','column','6234950SflKjP','1096571tgGxSZ','large','value'];a0_0x10ea=function(){return _0x2bf178;};return a0_0x10ea();}import{TermsUtil}from'../../../utils/terms-util';import'../../selector/meta-object-selector-popup';export class GristEditorMetaObjectSelector extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x382eea(0x86)](){var _0x1caa4d=a0_0x382eea;let _0x22f377='';return this[_0x1caa4d(0x9e)]&&this['column']['record'][_0x1caa4d(0x8f)]&&(_0x22f377=this[_0x1caa4d(0x9e)][this[_0x1caa4d(0x9a)]['record'][_0x1caa4d(0x8f)][_0x1caa4d(0x98)]]),html`
|
|
2
|
+
${this[_0x1caa4d(0x9e)]?html` <span tabindex="0" style="flex:1">${_0x22f377}</span> `:html`<span tabindex="0">${_0x22f377}</span>`}
|
|
3
|
+
`;}async['firstUpdated'](){var _0x565d5f=a0_0x382eea;super[_0x565d5f(0xa2)]();}[a0_0x382eea(0x99)](_0xdac2b){_0xdac2b['stopPropagation'](),this['openSelector']();}['_onkeydown'](_0x548082){var _0x2ec95e=a0_0x382eea;_0x2ec95e(0x89)==_0x548082[_0x2ec95e(0x90)]&&(_0x548082[_0x2ec95e(0xa1)](),this[_0x2ec95e(0x93)]());}[a0_0x382eea(0x93)](){var _0x232e98=a0_0x382eea;this[_0x232e98(0x91)]&&delete this[_0x232e98(0x91)];var {selectorName:_0x573081=TermsUtil[_0x232e98(0xa7)](_0x232e98(0x94))}=this[_0x232e98(0x9a)]['record']['options']||{},_0x270327=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x232e98(0x9e)]}
|
|
6
|
+
.options=${this[_0x232e98(0x9a)][_0x232e98(0x9f)][_0x232e98(0x8f)]}
|
|
7
|
+
.confirmCallback=${(_0xcf727f=>{var _0x24c577=_0x232e98;let _0x134d76=this[_0x24c577(0x9a)]['record'][_0x24c577(0x8f)][_0x24c577(0x8a)]||{};this[_0x24c577(0x83)](new CustomEvent(_0x24c577(0x97),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x24c577(0x9e)],'after':_0xcf727f||null,'record':this[_0x24c577(0x9f)],'column':this[_0x24c577(0x9a)],'row':this[_0x24c577(0xa5)]}})),Object[_0x24c577(0x8b)](_0x134d76)[_0x24c577(0xa6)](_0x54ddad=>{var _0x4e7645=_0x24c577;this[_0x4e7645(0x83)](new CustomEvent(_0x4e7645(0x97),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x4e7645(0x9f)][_0x134d76[_0x54ddad]],'after':_0xcf727f?_0xcf727f[_0x54ddad]:null,'record':this[_0x4e7645(0x9f)],'column':{'name':_0x134d76[_0x54ddad]},'row':this[_0x4e7645(0xa5)]}}));});})['bind'](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x232e98(0x91)]=openPopup(_0x270327,{'backdrop':!0x0,'size':_0x232e98(0x9d),'title':TermsUtil[_0x232e98(0x84)](_0x573081)});}}customElements[a0_0x382eea(0x8e)](a0_0x382eea(0x88),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f9fc9,_0x14229b){const _0x1001ec=a0_0x7bc0,_0x49f93a=_0x1f9fc9();while(!![]){try{const _0x1aa1d9=-parseInt(_0x1001ec(0x162))/0x1*(parseInt(_0x1001ec(0x15e))/0x2)+-parseInt(_0x1001ec(0x170))/0x3+parseInt(_0x1001ec(0x171))/0x4*(parseInt(_0x1001ec(0x165))/0x5)+parseInt(_0x1001ec(0x15f))/0x6*(parseInt(_0x1001ec(0x16f))/0x7)+-parseInt(_0x1001ec(0x16b))/0x8*(parseInt(_0x1001ec(0x166))/0x9)+parseInt(_0x1001ec(0x169))/0xa*(parseInt(_0x1001ec(0x16d))/0xb)+-parseInt(_0x1001ec(0x163))/0xc;if(_0x1aa1d9===_0x14229b)break;else _0x49f93a['push'](_0x49f93a['shift']());}catch(_0x458bd7){_0x49f93a['push'](_0x49f93a['shift']());}}}(a0_0x2ec2,0x6905f));import{html}from'lit';function a0_0x7bc0(_0x48f440,_0x1997fe){const _0x2ec246=a0_0x2ec2();return a0_0x7bc0=function(_0x7bc00a,_0x4f7c26){_0x7bc00a=_0x7bc00a-0x159;let _0x4b4b07=_0x2ec246[_0x7bc00a];return _0x4b4b07;},a0_0x7bc0(_0x48f440,_0x1997fe);}import{detectOverflow}from'@operato/utils';function onmouseover(_0x435483){const _0x4c96d5=a0_0x7bc0,_0x299760=_0x435483['target'];detectOverflow(_0x299760)&&_0x299760[_0x4c96d5(0x161)](_0x4c96d5(0x15a),_0x299760[_0x4c96d5(0x15c)]);}function onmouseout(_0x2986e2){const _0x3f9530=a0_0x7bc0;_0x2986e2[_0x3f9530(0x159)][_0x3f9530(0x16c)](_0x3f9530(0x15a));}function a0_0x2ec2(){const _0x1045a6=['textContent','options','202702NkNBpY','1688514SyCwfn','value','setAttribute','3cfsuqk','720036PAKhgZ','record','106445eBHtPg','21339SMvhnP','codes','filter','1360pcKiFw','length','1208dUMhis','removeAttribute','60346oyGIck','display','7OysTXg','264459PZoqnw','40IaoAMa','target','data-tooltip','dispField'];a0_0x2ec2=function(){return _0x1045a6;};return a0_0x2ec2();}export const GristRendererMetaCodeSelector=(_0x3ddf68,_0x486997,_0x4439a5,_0x41280f,_0x184b24)=>{const _0x1c6a0b=a0_0x7bc0;let _0x24ec32='';if(_0x486997['record']&&_0x486997[_0x1c6a0b(0x164)][_0x1c6a0b(0x15d)]){if(_0x486997[_0x1c6a0b(0x164)][_0x1c6a0b(0x15d)][_0x1c6a0b(0x15b)]){if(_0x486997[_0x1c6a0b(0x164)][_0x1c6a0b(0x15d)][_0x1c6a0b(0x167)]||(_0x486997['record'][_0x1c6a0b(0x15d)][_0x1c6a0b(0x167)]=[]),_0x3ddf68&&_0x3ddf68['length']>0x0){let _0x491647=_0x486997[_0x1c6a0b(0x164)][_0x1c6a0b(0x15d)][_0x1c6a0b(0x167)][_0x1c6a0b(0x168)](_0x5e68a0=>_0x5e68a0[_0x1c6a0b(0x160)]===_0x3ddf68);_0x24ec32=_0x491647&&_0x491647[_0x1c6a0b(0x16a)]>0x0?_0x491647[0x0][_0x1c6a0b(0x16e)]:_0x3ddf68;}}else _0x24ec32=_0x3ddf68;}else _0x24ec32='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x24ec32}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x4de7(_0x418004,_0x170e99){const _0x2104cd=a0_0x2104();return a0_0x4de7=function(_0x4de7f8,_0x1ee6de){_0x4de7f8=_0x4de7f8-0x1bd;let _0x3a25f4=_0x2104cd[_0x4de7f8];return _0x3a25f4;},a0_0x4de7(_0x418004,_0x170e99);}(function(_0x491a6e,_0x44c7cc){const _0x163918=a0_0x4de7,_0x339f73=_0x491a6e();while(!![]){try{const _0x39edb4=-parseInt(_0x163918(0x1c6))/0x1+-parseInt(_0x163918(0x1cb))/0x2*(-parseInt(_0x163918(0x1cc))/0x3)+-parseInt(_0x163918(0x1c5))/0x4*(-parseInt(_0x163918(0x1bf))/0x5)+parseInt(_0x163918(0x1c1))/0x6+-parseInt(_0x163918(0x1be))/0x7+parseInt(_0x163918(0x1ca))/0x8*(parseInt(_0x163918(0x1c4))/0x9)+-parseInt(_0x163918(0x1c3))/0xa;if(_0x39edb4===_0x44c7cc)break;else _0x339f73['push'](_0x339f73['shift']());}catch(_0x5532ca){_0x339f73['push'](_0x339f73['shift']());}}}(a0_0x2104,0x79125));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x2104(){const _0x2846f6=['textContent','data-tooltip','removeAttribute','151248yMOiMD','2gVxcNs','69147nsNWGh','options','1982519yiYvHf','3093290usenEq','target','3622206pCBufg','record','6691400XWIuId','261xdZfLp','4YBVdex','345416gqrVTr'];a0_0x2104=function(){return _0x2846f6;};return a0_0x2104();}function onmouseover(_0x4996fe){const _0x4c1e8a=a0_0x4de7,_0x1545bf=_0x4996fe[_0x4c1e8a(0x1c0)];detectOverflow(_0x1545bf)&&_0x1545bf['setAttribute'](_0x4c1e8a(0x1c8),_0x1545bf[_0x4c1e8a(0x1c7)]);}function onmouseout(_0x1fd4ec){const _0x523c6f=a0_0x4de7;_0x1fd4ec[_0x523c6f(0x1c0)][_0x523c6f(0x1c9)]('data-tooltip');}export const GristRendererMetaObjectSelector=(_0x19eeb7,_0x10f2f3,_0x5a1095,_0x2250a7,_0x2dc43d)=>{const _0x203db7=a0_0x4de7;let _0x1fba98='';return _0x19eeb7&&_0x10f2f3[_0x203db7(0x1c2)]['options']&&(_0x1fba98=_0x19eeb7[_0x10f2f3[_0x203db7(0x1c2)][_0x203db7(0x1bd)]['nameField']]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x1fba98}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3027bc=a0_0x5388;(function(_0x1f9558,_0x27a136){const _0xff5923=a0_0x5388,_0x517976=_0x1f9558();while(!![]){try{const _0x5a9bf6=-parseInt(_0xff5923(0x1ee))/0x1*(parseInt(_0xff5923(0x21f))/0x2)+parseInt(_0xff5923(0x214))/0x3+parseInt(_0xff5923(0x215))/0x4+parseInt(_0xff5923(0x216))/0x5*(-parseInt(_0xff5923(0x20d))/0x6)+parseInt(_0xff5923(0x1f4))/0x7+-parseInt(_0xff5923(0x1e5))/0x8+-parseInt(_0xff5923(0x1da))/0x9*(-parseInt(_0xff5923(0x1db))/0xa);if(_0x5a9bf6===_0x27a136)break;else _0x517976['push'](_0x517976['shift']());}catch(_0x5004fd){_0x517976['push'](_0x517976['shift']());}}}(a0_0x4d32,0x1ce6c));function a0_0x4d32(){const _0x4fd604=['options','select-row-toggle','nameField','render','getGristMetaObjectOptions','getCodeByEntity','resource-object','423mGinHx','81610CmFiPV','meta-','fetchHandler','tButton','menu_template','NOTHING_SELECTED','record','push','left','confirmCallback','631352PwKJai','menu','getGristColumnConfig2','cancel','filterFields','getGristSelectableConfig','filters','connectedCallback','columns','2SZegAk','info','resource-code-selector','tText','align','getCodeSelectorData','985222kKuDtT','name','code','length','selected','define','getParams','codeField','gridConfig','clickEmpty','meta-object-selector','meta-object-selector-popup','includes','values','meta-code-selector','query','isArray','keys','bind','codes','sorters','search_hidden_fields','getSelectColumns','dispField','LIST','250458kRmKSQ','search','clickSelect','filter','#ox-grist','basicArgs','forEach','258465woXFRv','98760VVqyqY','25hLSSGI','entity','startsWith','queryName','querySelector','string','selectRecord','scenario','after_set_fields','229144vDVyHL','styles','select','args','shadowRoot','firstUpdated','grist','clickCancel','type','rows'];a0_0x4d32=function(){return _0x4fd604;};return a0_0x4d32();}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_0x5388(_0x4ce81b,_0x5c5585){const _0x4d3259=a0_0x4d32();return a0_0x5388=function(_0x5388fe,_0x168129){_0x5388fe=_0x5388fe-0x1d9;let _0x583420=_0x4d3259[_0x5388fe];return _0x583420;},a0_0x5388(_0x4ce81b,_0x5c5585);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x3027bc(0x220)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x3194c0=a0_0x401a;(function(_0xb2972,_0x3a16f5){const _0x3ff902=a0_0x4
|
|
|
17
17
|
display: flex;
|
|
18
18
|
margin-left: auto;
|
|
19
19
|
}
|
|
20
|
-
`];async[
|
|
21
|
-
<ox-grist id="ox-grist" .config=${this[
|
|
22
|
-
.fetchHandler=${this[
|
|
20
|
+
`];async[a0_0x3027bc(0x1ec)](){const _0x4b5086=a0_0x3027bc;this[_0x4b5086(0x209)]=this[_0x4b5086(0x229)][_0x4b5086(0x1eb)]?this[_0x4b5086(0x229)][_0x4b5086(0x1eb)]:this[_0x4b5086(0x212)]&&this[_0x4b5086(0x212)][_0x4b5086(0x1eb)]?this['basicArgs']['filters']:[];let _0x15455c=this[_0x4b5086(0x229)][_0x4b5086(0x208)]?this[_0x4b5086(0x229)][_0x4b5086(0x208)]:this[_0x4b5086(0x212)]&&this['basicArgs'][_0x4b5086(0x208)]?this['basicArgs']['sorters']:[],_0x184e21=this['options'][_0x4b5086(0x1e9)]?this[_0x4b5086(0x229)][_0x4b5086(0x1e9)]:this[_0x4b5086(0x229)][_0x4b5086(0x1df)]?.[_0x4b5086(0x20e)]&&this['options'][_0x4b5086(0x1df)]?.[_0x4b5086(0x20e)][_0x4b5086(0x1f7)]>0x0?this[_0x4b5086(0x229)][_0x4b5086(0x1df)][_0x4b5086(0x20e)]:[],_0x248950=this[_0x4b5086(0x229)][_0x4b5086(0x221)];if(!_0x184e21||0x0==_0x184e21['length']){let _0xd09fe5;this[_0x4b5086(0x229)][_0x4b5086(0x1fb)]&&(_0xd09fe5=this[_0x4b5086(0x229)][_0x4b5086(0x1fb)]),this[_0x4b5086(0x229)][_0x4b5086(0x22b)]&&(_0xd09fe5=this[_0x4b5086(0x229)][_0x4b5086(0x22b)]),_0xd09fe5&&_0x184e21[_0x4b5086(0x1e2)]({'name':_0xd09fe5,'operator':'eq'});}let _0x5d0cd6=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x248950&&_0x248950[_0x4b5086(0x1f7)]>0x0)for(let _0x54fa9f=0x0;_0x54fa9f<_0x248950[_0x4b5086(0x1f7)];_0x54fa9f++){let {type:_0x12dcaa=_0x4b5086(0x21b),name:_0x51a909,hidden:_0x54f33=!0x1,record:_0x59f643={'align':_0x4b5086(0x1e3)},header:_0x3f2f3a,sortable:_0x470a7e=!0x1,width:_0x31e568=0x87,options:_0x585418,select_opt:_0x382a40,object_opt:_0x980231}=_0x248950[_0x54fa9f];if(_0x382a40&&(_0x585418=_0x382a40),_0x980231&&(_0x585418=_0x980231),[_0x4b5086(0x1d9),'object'][_0x4b5086(0x200)](_0x12dcaa)?_0x12dcaa=_0x4b5086(0x1fe):[_0x4b5086(0x1f0)][_0x4b5086(0x200)](_0x12dcaa)&&(_0x12dcaa=_0x4b5086(0x202)),'id'==_0x51a909)_0x5d0cd6['push']({'type':_0x4b5086(0x21b),'name':_0x51a909,'hidden':!0x0});else{let _0xe2d3b7=MetaApi[_0x4b5086(0x1e7)](_0x12dcaa,_0x51a909,_0x3f2f3a||_0x51a909,_0x59f643[_0x4b5086(0x1f2)]?_0x59f643[_0x4b5086(0x1f2)]:_0x4b5086(0x1e3),!0x1,_0x470a7e,_0x31e568);_0x12dcaa[_0x4b5086(0x218)](_0x4b5086(0x1dc))&&_0x980231&&_0x980231[_0x4b5086(0x1e6)]&&(_0x585418=await MetaUiUtil[_0x4b5086(0x22d)](_0x12dcaa,_0x585418)),_0x4b5086(0x221)===_0x12dcaa?Array[_0x4b5086(0x204)](_0x585418)?_0xe2d3b7['record'][_0x4b5086(0x229)]=_0x585418:_0x4b5086(0x1f6)===_0x585418[_0x4b5086(0x227)]?_0xe2d3b7['record'][_0x4b5086(0x229)]=await ServiceUtil[_0x4b5086(0x1f3)](_0x585418[_0x4b5086(0x201)]?_0x585418[_0x4b5086(0x201)]:_0x585418[_0x4b5086(0x1f5)]):_0x4b5086(0x21d)===_0x585418[_0x4b5086(0x227)]?_0xe2d3b7[_0x4b5086(0x1e1)][_0x4b5086(0x229)]=await ServiceUtil['getCodeByScenario'](_0x585418[_0x4b5086(0x1f5)],_0x585418[_0x4b5086(0x222)]):_0x4b5086(0x217)===_0x585418['type']&&(_0xe2d3b7[_0x4b5086(0x1e1)][_0x4b5086(0x229)]=await ServiceUtil[_0x4b5086(0x22e)](_0x585418[_0x4b5086(0x222)])):_0x4b5086(0x1fe)===_0x12dcaa?_0xe2d3b7[_0x4b5086(0x1e1)][_0x4b5086(0x229)]={..._0x585418}:_0x4b5086(0x202)==_0x12dcaa&&(_0x585418[_0x4b5086(0x20b)]&&(_0x585418[_0x4b5086(0x207)]=await ServiceUtil['getCodeByEntity'](_0x585418)),_0xe2d3b7[_0x4b5086(0x1e1)][_0x4b5086(0x229)]={..._0x585418}),_0xe2d3b7['hidden']=_0x54f33,_0x5d0cd6[_0x4b5086(0x1e2)](_0xe2d3b7);}}else _0x5d0cd6[_0x4b5086(0x1e2)](MetaApi[_0x4b5086(0x1e7)](_0x4b5086(0x21b),this[_0x4b5086(0x229)][_0x4b5086(0x1fb)],this[_0x4b5086(0x229)][_0x4b5086(0x1fb)],_0x4b5086(0x1e3),!0x1,!0x0,0xb4)),this[_0x4b5086(0x229)]['dispField']&&_0x5d0cd6['push'](MetaApi[_0x4b5086(0x1e7)]('string',this[_0x4b5086(0x229)]['dispField'],this[_0x4b5086(0x229)][_0x4b5086(0x20b)],_0x4b5086(0x1e3),!0x1,!0x0,0x12c));_0x5d0cd6[_0x4b5086(0x213)](_0xa50442=>{const _0xd5f0ec=_0x4b5086;let _0x53d7b0=_0x184e21[_0xd5f0ec(0x210)](_0x1d9784=>'string'==typeof _0x1d9784?_0xa50442['name']==_0x1d9784:_0xa50442[_0xd5f0ec(0x1f5)]==_0x1d9784[_0xd5f0ec(0x1f5)]);_0x53d7b0&&_0x53d7b0[_0xd5f0ec(0x1f7)]>0x0&&(_0xa50442['filter']=_0xd5f0ec(0x21b)==typeof _0x53d7b0[0x0]?_0xd5f0ec(0x20e):_0x53d7b0[0x0]);});let _0xdd75b2={'rows':MetaApi[_0x4b5086(0x1ea)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x5d0cd6,'sorters':[..._0x15455c]};_0xdd75b2[_0x4b5086(0x228)]['handlers']={'click':_0x4b5086(0x22a),'dblclick':(_0x4b2a9d,_0x1d9ddd,_0x1c1f7b,_0x2500dc,_0x39de5f,_0x26ec60)=>{const _0x375439=_0x4b5086;this[_0x375439(0x21c)](_0x2500dc);}},_0xdd75b2[_0x4b5086(0x228)]['appendable']=!0x1,this[_0x4b5086(0x1fc)]=_0xdd75b2,await super[_0x4b5086(0x1ec)]();}async['firstUpdated'](){const _0x133c5b=a0_0x3027bc;await super[_0x133c5b(0x224)]();}[a0_0x3027bc(0x22c)](){const _0x5ce8e3=a0_0x3027bc;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?_0x5ce8e3(0x20c):'GRID'} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x5ce8e3(0x1dd)]['bind'](this)}>
|
|
23
23
|
<div slot="headroom">
|
|
24
24
|
<div id="filters">
|
|
25
25
|
<ox-filters-form></ox-filters-form>
|
|
@@ -27,14 +27,14 @@ const a0_0x3194c0=a0_0x401a;(function(_0xb2972,_0x3a16f5){const _0x3ff902=a0_0x4
|
|
|
27
27
|
</div>
|
|
28
28
|
</ox-grist>
|
|
29
29
|
<div id="button-container" class="button-container">
|
|
30
|
-
<mwc-button raised label="${TermsUtil[
|
|
31
|
-
@click=${this[
|
|
30
|
+
<mwc-button raised label="${TermsUtil[_0x5ce8e3(0x1de)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x5ce8e3(0x1fd)]['bind'](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x5ce8e3(0x1de)](_0x5ce8e3(0x1e8))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this['clickCancel'][_0x5ce8e3(0x206)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x5ce8e3(0x1de)](_0x5ce8e3(0x221))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x5ce8e3(0x20f)][_0x5ce8e3(0x206)](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x3027bc(0x225)](){const _0x6aedae=a0_0x3027bc;return this[_0x6aedae(0x223)][_0x6aedae(0x21a)](_0x6aedae(0x211));}async[a0_0x3027bc(0x1dd)]({page:_0x120a77=0x0,limit:_0x51d952=0x0,sorters:_0x53872d=[],filters:_0x366647=[]}){const _0x42e77f=a0_0x3027bc;let _0x1f65d7=[...this[_0x42e77f(0x209)]];_0x366647['forEach'](_0x5e6d14=>{const _0x517bc3=_0x42e77f;let _0x3954b6=_0x1f65d7[_0x517bc3(0x210)](_0x563f74=>_0x5e6d14[_0x517bc3(0x1f5)]==_0x563f74['name']);_0x3954b6&&_0x3954b6[_0x517bc3(0x1f7)]>0x0&&delete _0x1f65d7[_0x5e6d14[_0x517bc3(0x1f5)]],_0x1f65d7['push'](_0x5e6d14);});let _0xd9a8e0=ValueUtil[_0x42e77f(0x1fa)](this[_0x42e77f(0x229)][_0x42e77f(0x1df)]&&this[_0x42e77f(0x229)]['menu_template']['gql']||{},_0x42e77f(0x203),_0x42e77f(0x21e)),_0x2b21d0=Object[_0x42e77f(0x205)](_0xd9a8e0||{}),_0x4c06be=MetaApi[_0x42e77f(0x20a)](this[_0x42e77f(0x1fc)][_0x42e77f(0x1ed)][_0x42e77f(0x210)](_0x10cc70=>!_0x2b21d0['includes'](_0x10cc70[_0x42e77f(0x1f5)])));return await MetaApi['searchByPagination'](this['options'][_0x42e77f(0x219)],_0x1f65d7,_0x53872d,_0x120a77,_0x51d952,_0x4c06be);}async['clickEmpty'](_0xb52568){const _0x18ddeb=a0_0x3027bc;this[_0x18ddeb(0x1e4)]&&this[_0x18ddeb(0x1e4)](null),closePopup(this);}async[a0_0x3027bc(0x226)](_0x3c1868){closePopup(this);}async['clickSelect'](_0x39fade){const _0x4a5747=a0_0x3027bc;let _0x64cff5=this['grist'][_0x4a5747(0x1f8)];_0x64cff5&&0x0!=_0x64cff5[_0x4a5747(0x1f7)]?this[_0x4a5747(0x21c)](_0x64cff5[0x0]):MetaApi['showToast'](_0x4a5747(0x1ef),TermsUtil[_0x4a5747(0x1f1)](_0x4a5747(0x1e0)));}async[a0_0x3027bc(0x21c)](_0x48d8d9){const _0x168e9a=a0_0x3027bc;this[_0x168e9a(0x1e4)]&&this[_0x168e9a(0x1e4)](_0x48d8d9),closePopup(this);}}customElements[a0_0x3027bc(0x1f9)](a0_0x3027bc(0x1ff),MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x24f794=a0_0x2725;function a0_0x54bf(){const _0x2dc4b3=['getParams','413791oPiysq','4268480RhpCVa','fetchHandler','parseBasicFormConfigs','lifecycle','active','menuInfo','executeCallScenarioButtonClick','isPopup','after','openDynamicPopup','708035GwrnUo','grist','etcConfig','params','24cygFWn','isPage','parseBasicGridConfigs','setParentId','204664fCTjSK','parent_id','parseBasicTabConfigs','parseBasicServiceConfigs','split','117Ptaksd','isEmpty','title_detail','getMenuMeta','excuteOpenPopupButtonClick','2126663pbtlLG','7LmVnLo','is_detail','filterForm','getAndParseMenuMeta','parseBasicButtonConfigs','is_popup','5057556nfNsqr','16958fquuUq','pageUpdated','isDetail','159QpZaqU','properties','name','fetch','isNotEmpty','96FcCTEb'];a0_0x54bf=function(){return _0x2dc4b3;};return a0_0x54bf();}function a0_0x2725(_0x25ca34,_0x2df683){const _0x54bf0a=a0_0x54bf();return a0_0x2725=function(_0x27259e,_0x3937d8){_0x27259e=_0x27259e-0xb2;let _0xe8049c=_0x54bf0a[_0x27259e];return _0xe8049c;},a0_0x2725(_0x25ca34,_0x2df683);}(function(_0x792cd3,_0x57163d){const _0x1c7907=a0_0x2725,_0x4967fc=_0x792cd3();while(!![]){try{const _0x47fa93=parseInt(_0x1c7907(0xd3))/0x1+-parseInt(_0x1c7907(0xc9))/0x2*(parseInt(_0x1c7907(0xcc))/0x3)+-parseInt(_0x1c7907(0xb3))/0x4*(parseInt(_0x1c7907(0xde))/0x5)+parseInt(_0x1c7907(0xc8))/0x6*(-parseInt(_0x1c7907(0xc2))/0x7)+parseInt(_0x1c7907(0xb7))/0x8*(parseInt(_0x1c7907(0xbc))/0x9)+parseInt(_0x1c7907(0xd4))/0xa+parseInt(_0x1c7907(0xc1))/0xb*(parseInt(_0x1c7907(0xd1))/0xc);if(_0x47fa93===_0x57163d)break;else _0x4967fc['push'](_0x4967fc['shift']());}catch(_0x5ddd0f){_0x4967fc['push'](_0x4967fc['shift']());}}}(a0_0x54bf,0x8d187));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0xcdd130=>class extends _0xcdd130{static get[a0_0x24f794(0xcd)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x3b2c6e=>Boolean(_0x3b2c6e)},'is_popup':{'type':Boolean,'converter':_0x224c7c=>Boolean(_0x224c7c)},'is_activity':{'type':Boolean,'converter':_0x21232b=>Boolean(_0x21232b)},'is_readonly':{'type':Boolean,'converter':_0x21b9a5=>Boolean(_0x21b9a5)}};}get['isElement'](){const _0x224a7d=a0_0x24f794;return!0x0===this[_0x224a7d(0xc3)]||!0x0===this['is_popup'];}get[a0_0x24f794(0xcb)](){return!ValueUtil['isEmpty'](this['is_detail'])&&this['is_detail'];}async[a0_0x24f794(0xca)](_0x1b6d06,_0x2de138,_0x41d818){const _0x527869=a0_0x24f794;let _0x166888=this[_0x527869(0xd7)]?.[_0x527869(0xb2)]?this[_0x527869(0xd7)][_0x527869(0xb2)]:{};this[_0x527869(0xb4)]&&this[_0x527869(0xd8)]&&0x0==_0x41d818[_0x527869(0xd8)]&&ValueUtil[_0x527869(0xd0)](_0x166888)&&this[_0x527869(0xcf)]();}get[a0_0x24f794(0xdb)](){const _0x32a9a7=a0_0x24f794;return!ValueUtil[_0x32a9a7(0xbd)](this[_0x32a9a7(0xc7)])&&this['is_popup'];}get[a0_0x24f794(0xb4)](){const _0x11eade=a0_0x24f794;return!this['is_detail']&&!this[_0x11eade(0xc7)];}async[a0_0x24f794(0xc5)](){const _0x2ae1eb=a0_0x24f794;let _0x271d5d=await MetaApi[_0x2ae1eb(0xbf)](this);_0x271d5d&&(this[_0x2ae1eb(0xd9)]=_0x271d5d['menu'],this[_0x2ae1eb(0xe0)]=_0x271d5d['etc'],this[_0x2ae1eb(0xb5)]&&this['parseBasicGridConfigs'](_0x271d5d),this[_0x2ae1eb(0xba)]&&this[_0x2ae1eb(0xba)](_0x271d5d),this[_0x2ae1eb(0xd6)]&&this['parseBasicFormConfigs'](_0x271d5d),this[_0x2ae1eb(0xb9)]&&this[_0x2ae1eb(0xb9)](_0x271d5d),this[_0x2ae1eb(0xc6)]&&this['parseBasicButtonConfigs'](_0x271d5d));}async[a0_0x24f794(0xcf)](){const _0x5e81c6=a0_0x24f794;ValueUtil[_0x5e81c6(0xd0)](this[_0x5e81c6(0xdf)])?this[_0x5e81c6(0xdf)][_0x5e81c6(0xcf)]():(ValueUtil[_0x5e81c6(0xd0)](this[_0x5e81c6(0xc4)])||this[_0x5e81c6(0xd5)])&&await this[_0x5e81c6(0xd5)]();}async[a0_0x24f794(0xc0)](_0x14233a,_0x4a839e,_0x372847){const _0x3e6a6b=a0_0x24f794;let _0x102f26=TermsUtil['tTitle'](_0x14233a['title']);ValueUtil['isNotEmpty'](_0x14233a['title_detail'])&&(_0x102f26=_0x102f26+'-'+ValueUtil[_0x3e6a6b(0xd2)](_0x4a839e,..._0x14233a[_0x3e6a6b(0xbe)][_0x3e6a6b(0xbb)]('.'))),MetaApi[_0x3e6a6b(0xdd)](_0x102f26,_0x14233a,_0x4a839e,_0x372847);}async[a0_0x24f794(0xda)](_0x4d98be,_0xf5fb08,_0x4a15d9){const _0x55c9c5=a0_0x24f794;let _0x346ff2=await MetaApi['callScenario'](_0x4d98be[_0x55c9c5(0xce)],_0x4d98be['name'],_0xf5fb08);!0x1!==_0x346ff2&&!_0x346ff2['errors']&&ValueUtil[_0x55c9c5(0xd0)](_0x4d98be[_0x55c9c5(0xdc)])&&_0x4a15d9();}[a0_0x24f794(0xb6)](_0x534b70){const _0x1ebe9d=a0_0x24f794;this[_0x1ebe9d(0xb8)]=_0x534b70,this[_0x1ebe9d(0xcf)]();}};
|