@things-factory/meta-ui 6.1.5 → 6.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/selector/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/index.js +3 -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/translations/en.json +2 -1
- package/translations/ko.json +2 -1
- package/translations/ms.json +2 -1
- package/translations/zh.json +2 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x2beef4=a0_0x5161;function a0_0x1702(){const _0x2fef61=['items','querySelector','appName','608055ZkeMjx','dispatch','dynamic-menu-part','rank','1286920gjIyMr','active','445698OBUQWb','portrait','landscape','value','7xrmagb','NAVBAR','data','3eJfVrH','312453oOvPWw','1675218FZfFhq','8mMAEWw','14890220vrbnWT','4354137aUTeTB','lite-menu-part','get','content','UPDATE_META_UI','UPDATE_META_MENU_TEMPLATE','FRONT_END','meta[name=\x22application-name\x22]'];a0_0x1702=function(){return _0x2fef61;};return a0_0x1702();}(function(_0x3d28ab,_0xa766f3){const _0x26a814=a0_0x5161,_0x6bfaa0=_0x3d28ab();while(!![]){try{const _0x21c557=-parseInt(_0x26a814(0x8d))/0x1+-parseInt(_0x26a814(0xa2))/0x2*(parseInt(_0x26a814(0x8c))/0x3)+-parseInt(_0x26a814(0xa0))/0x4+-parseInt(_0x26a814(0x9c))/0x5+-parseInt(_0x26a814(0x8e))/0x6*(-parseInt(_0x26a814(0x89))/0x7)+-parseInt(_0x26a814(0x8f))/0x8*(parseInt(_0x26a814(0x91))/0x9)+parseInt(_0x26a814(0x90))/0xa;if(_0x21c557===_0xa766f3)break;else _0x6bfaa0['push'](_0x6bfaa0['shift']());}catch(_0x185b2e){_0x6bfaa0['push'](_0x6bfaa0['shift']());}}}(a0_0x1702,0x4aa7d));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x4c8428 from'graphql-tag';import{html}from'lit';import{client}from'@operato/graphql';function a0_0x5161(_0x1acb4c,_0xea8051){const _0x1702b8=a0_0x1702();return a0_0x5161=function(_0x51615a,_0xe0f257){_0x51615a=_0x51615a-0x86;let _0xfdd49f=_0x1702b8[_0x51615a];return _0xfdd49f;},a0_0x5161(_0x1acb4c,_0xea8051);}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_0x2beef4(0x95);export const UPDATE_META_MENU_TEMPLATE=a0_0x2beef4(0x96);var HAMBURGER;export async function setupMenuPart(_0x186506){const _0x2790b6=a0_0x2beef4;var {hovering:_0x5762e3=!!isMobileDevice(),slotTemplate:_0x243652,portraitSlotTemplate:_0x4830e3,landscapeSlotTemplate:_0x50fd7e,position:_0x4188a9=VIEWPART_POSITION[_0x2790b6(0x8a)]}=_0x186506||{};const {hovering:_0x310046}=(await clientSettingStore[_0x2790b6(0x93)]('dynamic-menu'))?.[_0x2790b6(0x88)]||{};void 0x0!==_0x310046&&(_0x5762e3=_0x310046);const _0xa55db4=_0x4188a9==VIEWPART_POSITION['HEADERBAR']?_0x2790b6(0x87):_0x2790b6(0x86),_0x5157c0=('landscape'==_0xa55db4?_0x50fd7e:_0x4830e3)||_0x243652||html``;appendViewpart({'name':_0x2790b6(0x92),'viewpart':{'show':!_0x5762e3,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x5762e3,'template':html`<dynamic-menu-part .orientation=${_0xa55db4}>${_0x5157c0}</dynamic-menu-part>`},'position':_0x4188a9}),_0x5762e3&&_0x2790b6(0x86)==_0xa55db4?HAMBURGER||(HAMBURGER={'name':'hamburger','template':html`
|
|
2
|
+
<mwc-icon @click=${_0xf5bb5e=>toggleOverlay(_0x2790b6(0x9e),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x2790b6(0x97)]},store[_0x2790b6(0x9d)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x5ea1d9){const _0x13f764=a0_0x2beef4;var _0x4ff3ed=document[_0x13f764(0x9a)](_0x13f764(0x98))?.[_0x13f764(0x94)],_0x536fab=(await client['query']({'query':a0_0x4c8428`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x3d7a05=a0_0x2f5b;(function(_0x272ee8,_0x4e0922){const _0x2abbca=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x13f764(0xa1),'operator':'eq','value':!0x0},{'name':_0x13f764(0x9b),'operator':'in','value':['',_0x4ff3ed]}],'sortings':[{'name':_0x13f764(0x9f),'desc':!0x1}]}}))[_0x13f764(0x8b)]['liteMenus'][_0x13f764(0x99)];store[_0x13f764(0x9d)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x536fab['filter'](_0x47d11c=>!_0x47d11c[_0x13f764(0x9b)]||_0x47d11c['appName']===_0x4ff3ed),'template':_0x5ea1d9});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d669b,_0x27aae8){const _0x4ccc77=a0_0x2a30,_0x430d76=_0x4d669b();while(!![]){try{const _0x2e8535=parseInt(_0x4ccc77(0x19e))/0x1*(-parseInt(_0x4ccc77(0x19d))/0x2)+-parseInt(_0x4ccc77(0x1b2))/0x3+parseInt(_0x4ccc77(0x1a0))/0x4*(-parseInt(_0x4ccc77(0x1b4))/0x5)+-parseInt(_0x4ccc77(0x1a4))/0x6*(parseInt(_0x4ccc77(0x1ac))/0x7)+parseInt(_0x4ccc77(0x1b1))/0x8+-parseInt(_0x4ccc77(0x1bb))/0x9*(parseInt(_0x4ccc77(0x1b8))/0xa)+parseInt(_0x4ccc77(0x1a5))/0xb;if(_0x2e8535===_0x27aae8)break;else _0x430d76['push'](_0x430d76['shift']());}catch(_0x5e99e7){_0x430d76['push'](_0x430d76['shift']());}}}(a0_0x15bb,0xddcd0));import'../selector/meta-object-selector-popup';import{html}from'lit-html';function a0_0x15bb(){const _0x19c130=['72NkMISZ','form\x20[name=\x22','value','tagName','6YafLRA','67681801BmYAyD','selectorName','codes','target','toLowerCase','change','stopPropagation','9173759qrbLqy','options','renderRoot','querySelector','dispField','3313400pOTjDC','4995636EcfOSu','select_item','69780DWYmca','filter','length','display','11840orEHDr','large','tMenu','12375vQQwpp','name','535742MkaVRv','3yIffkZ','dispatchEvent'];a0_0x15bb=function(){return _0x19c130;};return a0_0x15bb();}import{openPopup}from'@operato/layout';function a0_0x2a30(_0x4aa78a,_0x5e0cf1){const _0x15bbcd=a0_0x15bb();return a0_0x2a30=function(_0x2a3088,_0x8d8b9d){_0x2a3088=_0x2a3088-0x19d;let _0x4b3e56=_0x15bbcd[_0x2a3088];return _0x4b3e56;},a0_0x2a30(_0x4aa78a,_0x5e0cf1);}import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x7bc74f,_0x3a454b,_0x1f3060){const _0x5ac2a2=a0_0x2a30;var _0x3f4a1d=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x3a454b}
|
|
4
|
+
.options=${_0x7bc74f[_0x5ac2a2(0x1ad)]}
|
|
5
|
+
.confirmCallback=${_0x1f3060}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x3f4a1d,{'backdrop':!0x0,'size':_0x5ac2a2(0x1b9),'title':_0x7bc74f[_0x5ac2a2(0x1ad)][_0x5ac2a2(0x1a6)]?TermsUtil[_0x5ac2a2(0x1ba)](_0x7bc74f[_0x5ac2a2(0x1ad)][_0x5ac2a2(0x1a6)]):TermsUtil['tTitle'](_0x5ac2a2(0x1b3))});}export const FilterFormMetaCodeSelect=(_0x1a74b9,_0x332a94,_0x180776)=>{const _0x4e51f1=a0_0x2a30,_0x20e151=_0x1a74b9[_0x4e51f1(0x1ad)],_0x2905df=_0x20e151['codes']&&_0x20e151[_0x4e51f1(0x1a7)][_0x4e51f1(0x1b6)]>0x0?_0x20e151[_0x4e51f1(0x1a7)]:void 0x0,{operator:_0x43dc20='eq'}=_0x1a74b9;let _0x162c08=_0x332a94||'',_0x5dc6fd=_0x332a94||'';if(_0x20e151[_0x4e51f1(0x1b0)]&&_0x332a94&&_0x2905df){let _0x31da21=_0x2905df[_0x4e51f1(0x1b5)](_0x1afb26=>_0x1afb26[_0x4e51f1(0x1a2)]==_0x332a94);_0x31da21&&_0x31da21['length']>0x0&&(_0x5dc6fd=_0x31da21[0x0][_0x4e51f1(0x1b7)]);}return'eq'===_0x43dc20?html`
|
|
8
|
+
<input name='${_0x1a74b9['name']}' .value=${_0x162c08} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x1a74b9[_0x4e51f1(0x1bc)]}_disp'
|
|
13
|
+
.value=${_0x5dc6fd}
|
|
14
|
+
@click=${_0x28c3ad=>{const _0x4bc65e=_0x4e51f1;_0x28c3ad[_0x4bc65e(0x1ab)]();const _0x343701=_0x28c3ad[_0x4bc65e(0x1a8)];openMetaCodeSelector(_0x1a74b9,_0x332a94,_0x39f2a5=>{const _0x35290c=_0x4bc65e;let _0x25ae6c=_0x39f2a5?_0x39f2a5[_0x20e151['codeField']]:'',_0x95c53d=_0x25ae6c;_0x39f2a5&&_0x20e151[_0x35290c(0x1b0)]&&(_0x95c53d=_0x39f2a5[_0x20e151['dispField']]),_0x343701[_0x35290c(0x1a2)]=_0x95c53d,('ox-grid-header'==_0x180776[_0x35290c(0x1a3)][_0x35290c(0x1a9)]()?_0x180776['renderRoot'][_0x35290c(0x1af)]('[name=\x22'+_0x1a74b9[_0x35290c(0x1bc)]+'\x22]'):_0x180776[_0x35290c(0x1ae)][_0x35290c(0x1af)](_0x35290c(0x1a1)+_0x1a74b9[_0x35290c(0x1bc)]+'\x22]'))['value']=_0x25ae6c,_0x343701[_0x35290c(0x19f)](new Event(_0x35290c(0x1aa),{'bubbles':!0x0})),_0x343701['dispatchEvent'](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x1a74b9['name'],'operator':_0x43dc20,'value':_0x25ae6c}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x125981,_0x190faf){const _0x172aa3=a0_0x4322,_0x2eb238=_0x125981();while(!![]){try{const _0x2cec61=-parseInt(_0x172aa3(0x165))/0x1+-parseInt(_0x172aa3(0x15e))/0x2+parseInt(_0x172aa3(0x164))/0x3*(parseInt(_0x172aa3(0x162))/0x4)+-parseInt(_0x172aa3(0x15f))/0x5+parseInt(_0x172aa3(0x157))/0x6*(parseInt(_0x172aa3(0x15a))/0x7)+parseInt(_0x172aa3(0x158))/0x8*(parseInt(_0x172aa3(0x159))/0x9)+parseInt(_0x172aa3(0x152))/0xa;if(_0x2cec61===_0x190faf)break;else _0x2eb238['push'](_0x2eb238['shift']());}catch(_0xd14e80){_0x2eb238['push'](_0x2eb238['shift']());}}}(a0_0x4e3b,0xc01c7));import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x4e3b(){const _0x1665d2=['toLowerCase','17624440JFXLJJ','tMenu','stopPropagation','tagName','selectorName','898374WeaCVN','32BKhnQv','2249847yqhXWs','7RLySRo','change','large','value','2581974oDmuVo','5109700sqglXM','[name=\x22','select_item','356IKITUz','tTitle','8163mQxUOI','54460JHjFWZ','filter-change','ox-grid-header','form\x20[name=\x22','options','target','name','nameField','dispatchEvent'];a0_0x4e3b=function(){return _0x1665d2;};return a0_0x4e3b();}import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x588a15,_0x437b15,_0x2da9c4){const _0x4dec62=a0_0x4322;var _0x59d71=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x437b15}
|
|
4
|
+
.options=${_0x588a15[_0x4dec62(0x169)]}
|
|
5
|
+
.confirmCallback=${_0x2da9c4}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x59d71,{'backdrop':!0x0,'size':_0x4dec62(0x15c),'title':_0x588a15['options'][_0x4dec62(0x156)]?TermsUtil[_0x4dec62(0x153)](_0x588a15[_0x4dec62(0x169)]['selectorName']):TermsUtil[_0x4dec62(0x163)](_0x4dec62(0x161))});}function a0_0x4322(_0x1e92a8,_0x51593d){const _0x4e3b55=a0_0x4e3b();return a0_0x4322=function(_0x43222e,_0x300196){_0x43222e=_0x43222e-0x14e;let _0xaa3d12=_0x4e3b55[_0x43222e];return _0xaa3d12;},a0_0x4322(_0x1e92a8,_0x51593d);}export const FilterFormMetaObjectSelect=(_0x3831b6,_0x576052,_0x5350af)=>{const _0x291797=a0_0x4322,_0x52d979=_0x3831b6[_0x291797(0x169)],{operator:_0x55e9c5='eq'}=_0x3831b6;let _0x5077cd=_0x576052?_0x576052['id']:'',_0x1905ad=_0x576052?_0x576052[_0x52d979[_0x291797(0x14f)]]:'';return'eq'===_0x55e9c5?html`
|
|
8
|
+
<input name='${_0x3831b6['name']}' .value=${_0x5077cd} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x3831b6['name']}_disp'
|
|
13
|
+
.value=${_0x1905ad}
|
|
14
|
+
@click=${_0x425eef=>{const _0x5e3b2a=_0x291797;_0x425eef[_0x5e3b2a(0x154)]();const _0x56d423=_0x425eef[_0x5e3b2a(0x16a)];openMetaObjectSelector(_0x3831b6,_0x576052,_0x1edb2e=>{const _0xae3372=_0x5e3b2a;let _0x46ba62=_0x1edb2e?_0x1edb2e['id']:'',_0x3d0ade=_0x1edb2e?_0x1edb2e[_0x52d979[_0xae3372(0x14f)]]:'';_0x56d423[_0xae3372(0x15d)]=_0x3d0ade,(_0xae3372(0x167)==_0x5350af[_0xae3372(0x155)][_0xae3372(0x151)]()?_0x5350af['renderRoot']['querySelector'](_0xae3372(0x160)+_0x3831b6[_0xae3372(0x14e)]+'\x22]'):_0x5350af['renderRoot']['querySelector'](_0xae3372(0x168)+_0x3831b6[_0xae3372(0x14e)]+'\x22]'))[_0xae3372(0x15d)]=_0x46ba62,_0x56d423[_0xae3372(0x150)](new Event(_0xae3372(0x15b),{'bubbles':!0x0})),_0x56d423[_0xae3372(0x150)](new CustomEvent(_0xae3372(0x166),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x3831b6[_0xae3372(0x14e)],'operator':_0x55e9c5,'value':_0x46ba62}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x4a73(){const _0x479423=['large','codes','options','17677800TmVvIU','form\x20[name=\x22','268517fSMmrx','tagName','display','4124615QAvzQd','dispField','filter','2841tgNsam','281974dNbXur','codeField','9DgbmTn','record','value','renderRoot','2hQjlps','querySelector','[name=\x22','ox-grid-header','target','select_item','toLowerCase','name','length','1144CttXeb','tMenu','dispatchEvent','125DkJQuo','selectorName','8RNqeix','change','5131270AHiJml','77130vUPrBB'];a0_0x4a73=function(){return _0x479423;};return a0_0x4a73();}(function(_0x21c967,_0x101a8e){const _0x32dd26=a0_0x409c,_0x37880d=_0x21c967();while(!![]){try{const _0x628f3b=parseInt(_0x32dd26(0x1af))/0x1*(-parseInt(_0x32dd26(0x1bc))/0x2)+-parseInt(_0x32dd26(0x1b5))/0x3*(parseInt(_0x32dd26(0x1a1))/0x4)+parseInt(_0x32dd26(0x1a4))/0x5*(parseInt(_0x32dd26(0x1a9))/0x6)+-parseInt(_0x32dd26(0x1b6))/0x7*(parseInt(_0x32dd26(0x1a6))/0x8)+parseInt(_0x32dd26(0x1b8))/0x9*(-parseInt(_0x32dd26(0x1a8))/0xa)+-parseInt(_0x32dd26(0x1b2))/0xb+parseInt(_0x32dd26(0x1ad))/0xc;if(_0x628f3b===_0x101a8e)break;else _0x37880d['push'](_0x37880d['shift']());}catch(_0x30eccd){_0x37880d['push'](_0x37880d['shift']());}}}(a0_0x4a73,0x4fc88));function a0_0x409c(_0x3b1d38,_0x3490e0){const _0x4a7351=a0_0x4a73();return a0_0x409c=function(_0x409c2c,_0x29497a){_0x409c2c=_0x409c2c-0x1a1;let _0x1f847a=_0x4a7351[_0x409c2c];return _0x1f847a;},a0_0x409c(_0x3b1d38,_0x3490e0);}import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x3ddd50,_0x9af169,_0x37a4aa){const _0x305250=a0_0x409c;var _0x331f5c=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x9af169}
|
|
4
|
+
.options=${_0x3ddd50[_0x305250(0x1b9)]['options']}
|
|
5
|
+
.confirmCallback=${_0x37a4aa}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x331f5c,{'backdrop':!0x0,'size':_0x305250(0x1aa),'title':_0x3ddd50[_0x305250(0x1b9)]['options']['selectorName']?TermsUtil[_0x305250(0x1a2)](_0x3ddd50[_0x305250(0x1b9)][_0x305250(0x1ac)][_0x305250(0x1a5)]):TermsUtil['tTitle'](_0x305250(0x1c1))});}export const FilterGristMetaCodeSelect=(_0x5baa73,_0x5b7788,_0x1e7f30)=>{const _0x1c506b=a0_0x409c,_0x39a674=_0x5baa73[_0x1c506b(0x1b4)],_0x3ff8bf=_0x5baa73['record']['options'],_0x55f4a0=_0x3ff8bf[_0x1c506b(0x1ab)]&&_0x3ff8bf[_0x1c506b(0x1ab)][_0x1c506b(0x1c4)]>0x0?_0x3ff8bf[_0x1c506b(0x1ab)]:void 0x0,{operator:_0x40ecb5='eq'}=_0x39a674;let _0xfbe4b0=_0x5b7788||'',_0x4a53dd=_0x5b7788||'';if(_0x3ff8bf[_0x1c506b(0x1b3)]&&_0x5b7788&&_0x55f4a0){let _0x4d175e=_0x55f4a0[_0x1c506b(0x1b4)](_0x3409b7=>_0x3409b7['value']==_0x5b7788);_0x4d175e&&_0x4d175e[_0x1c506b(0x1c4)]>0x0&&(_0x4a53dd=_0x4d175e[0x0][_0x1c506b(0x1b1)]);}return'eq'===_0x40ecb5?html`
|
|
8
|
+
<input name='${_0x5baa73[_0x1c506b(0x1c3)]}' .value=${_0xfbe4b0} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x5baa73[_0x1c506b(0x1c3)]}_disp'
|
|
13
|
+
.value=${_0x4a53dd}
|
|
14
|
+
@click=${_0x2a1dc6=>{const _0x574dd7=_0x1c506b;_0x2a1dc6['stopPropagation']();const _0xf81eaf=_0x2a1dc6[_0x574dd7(0x1c0)];openMetaCodeSelector(_0x5baa73,_0x5b7788,_0xe46dae=>{const _0x5b47ff=_0x574dd7;let _0x4b316f=_0xe46dae?_0xe46dae[_0x3ff8bf[_0x5b47ff(0x1b7)]]:'',_0xb63839=_0x4b316f;_0xe46dae&&_0x3ff8bf[_0x5b47ff(0x1b3)]&&(_0xb63839=_0xe46dae[_0x3ff8bf[_0x5b47ff(0x1b3)]]),_0xf81eaf[_0x5b47ff(0x1ba)]=_0xb63839,(_0x5b47ff(0x1bf)==_0x1e7f30[_0x5b47ff(0x1b0)][_0x5b47ff(0x1c2)]()?_0x1e7f30['renderRoot'][_0x5b47ff(0x1bd)](_0x5b47ff(0x1be)+_0x39a674[_0x5b47ff(0x1c3)]+'\x22]'):_0x1e7f30[_0x5b47ff(0x1bb)][_0x5b47ff(0x1bd)](_0x5b47ff(0x1ae)+_0x39a674[_0x5b47ff(0x1c3)]+'\x22]'))[_0x5b47ff(0x1ba)]=_0x4b316f,_0xf81eaf[_0x5b47ff(0x1a3)](new Event(_0x5b47ff(0x1a7),{'bubbles':!0x0})),_0xf81eaf[_0x5b47ff(0x1a3)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x5baa73[_0x5b47ff(0x1c3)],'operator':_0x40ecb5,'value':_0x4b316f}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x571565,_0x3aefa0){const _0x24b334=a0_0x10c5,_0x5d0b17=_0x571565();while(!![]){try{const _0x2e4ef6=-parseInt(_0x24b334(0x138))/0x1*(-parseInt(_0x24b334(0x131))/0x2)+-parseInt(_0x24b334(0x12a))/0x3*(parseInt(_0x24b334(0x121))/0x4)+parseInt(_0x24b334(0x135))/0x5+-parseInt(_0x24b334(0x132))/0x6*(parseInt(_0x24b334(0x129))/0x7)+parseInt(_0x24b334(0x12f))/0x8*(parseInt(_0x24b334(0x128))/0x9)+-parseInt(_0x24b334(0x137))/0xa+parseInt(_0x24b334(0x12c))/0xb;if(_0x2e4ef6===_0x3aefa0)break;else _0x5d0b17['push'](_0x5d0b17['shift']());}catch(_0x78215){_0x5d0b17['push'](_0x5d0b17['shift']());}}}(a0_0x2574,0x7ee82));import'../selector/meta-object-selector-popup';function a0_0x10c5(_0x557029,_0x51bb82){const _0x257480=a0_0x2574();return a0_0x10c5=function(_0x10c5e8,_0x36bd18){_0x10c5e8=_0x10c5e8-0x121;let _0x28f95b=_0x257480[_0x10c5e8];return _0x28f95b;},a0_0x10c5(_0x557029,_0x51bb82);}import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x2574(){const _0x166cf9=['filter-change','10549935tSRcPO','options','renderRoot','8XRcwTg','name','4AJuaYY','84cgKsQL','toLowerCase','change','2856470YigsBp','filter','5958970ZkhiVu','288718RaVLMs','selectorName','value','dispatchEvent','340Uswyyl','tTitle','large','[name=\x22','nameField','record','stopPropagation','4631373baRrWj','381605iatGhj','26241jugEYj'];a0_0x2574=function(){return _0x166cf9;};return a0_0x2574();}import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x131b7b,_0xc7c7a2,_0x115fdf){const _0x3c4310=a0_0x10c5;var _0x3f8587=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0xc7c7a2}
|
|
4
|
+
.options=${_0x131b7b['record'][_0x3c4310(0x12d)]}
|
|
5
|
+
.confirmCallback=${_0x115fdf}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x3f8587,{'backdrop':!0x0,'size':_0x3c4310(0x123),'title':_0x131b7b[_0x3c4310(0x126)][_0x3c4310(0x12d)][_0x3c4310(0x139)]?TermsUtil['tMenu'](_0x131b7b[_0x3c4310(0x126)][_0x3c4310(0x12d)][_0x3c4310(0x139)]):TermsUtil[_0x3c4310(0x122)]('select_item')});}export const FilterGristMetaObjectSelect=(_0x5f0f90,_0x4240aa,_0x578185)=>{const _0x5133e8=a0_0x10c5,_0x444888=_0x5f0f90[_0x5133e8(0x136)],{operator:_0x1aa074='eq'}=_0x444888,_0x38bd6c=_0x5f0f90[_0x5133e8(0x126)][_0x5133e8(0x12d)];let _0x68aa7b=_0x4240aa?_0x4240aa['id']:'',_0x58fe72=_0x4240aa?_0x4240aa[_0x38bd6c['nameField']]:'';return'eq'===_0x1aa074?html`
|
|
8
|
+
<input name='${_0x5f0f90[_0x5133e8(0x130)]}' .value=${_0x68aa7b} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x5f0f90[_0x5133e8(0x130)]}_disp'
|
|
13
|
+
.value=${_0x58fe72}
|
|
14
|
+
@click=${_0x7e4695=>{const _0x17182f=_0x5133e8;_0x7e4695[_0x17182f(0x127)]();const _0x5f04c8=_0x7e4695['target'];openMetaObjectSelector(_0x5f0f90,_0x4240aa,_0x3e4d36=>{const _0x347a2d=_0x17182f;let _0x20c068=_0x3e4d36?_0x3e4d36['id']:'',_0x20673d=_0x3e4d36?_0x3e4d36[_0x38bd6c[_0x347a2d(0x125)]]:'';_0x5f04c8[_0x347a2d(0x13a)]=_0x20673d,('ox-grid-header'==_0x578185['tagName'][_0x347a2d(0x133)]()?_0x578185[_0x347a2d(0x12e)]['querySelector'](_0x347a2d(0x124)+_0x444888['name']+'\x22]'):_0x578185[_0x347a2d(0x12e)]['querySelector']('form\x20[name=\x22'+_0x444888[_0x347a2d(0x130)]+'\x22]'))[_0x347a2d(0x13a)]=_0x20c068,_0x5f04c8['dispatchEvent'](new Event(_0x347a2d(0x134),{'bubbles':!0x0})),_0x5f04c8[_0x347a2d(0x13b)](new CustomEvent(_0x347a2d(0x12b),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x5f0f90['name'],'operator':_0x1aa074,'value':_0x20c068}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x3a08d7=a0_0x3456;function a0_0x3456(_0x13d608,_0x249e69){const _0x1a9f15=a0_0x1a9f();return a0_0x3456=function(_0x3456b3,_0x3d59e7){_0x3456b3=_0x3456b3-0x8e;let _0x3192d6=_0x1a9f15[_0x3456b3];return _0x3192d6;},a0_0x3456(_0x13d608,_0x249e69);}(function(_0x476502,_0x1557ea){const _0x50a138=a0_0x3456,_0x942bba=_0x476502();while(!![]){try{const _0x4744a7=parseInt(_0x50a138(0xb3))/0x1*(parseInt(_0x50a138(0xa6))/0x2)+parseInt(_0x50a138(0x9c))/0x3*(parseInt(_0x50a138(0x90))/0x4)+-parseInt(_0x50a138(0x8e))/0x5*(-parseInt(_0x50a138(0xa9))/0x6)+-parseInt(_0x50a138(0xa5))/0x7+-parseInt(_0x50a138(0xb7))/0x8*(parseInt(_0x50a138(0xaa))/0x9)+-parseInt(_0x50a138(0x9b))/0xa+-parseInt(_0x50a138(0xb5))/0xb;if(_0x4744a7===_0x1557ea)break;else _0x942bba['push'](_0x942bba['shift']());}catch(_0xd91e96){_0x942bba['push'](_0x942bba['shift']());}}}(a0_0x1a9f,0x3930a));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';function a0_0x1a9f(){const _0x1072d9=['filter','dispField','column','field-change','318490aMKugP','12YZdMVL','tMenu','key','push','large','properties','select_item','_onclick','row','153125UDlUXM','151918XTFdmQ','codeField','display','654mFGFzC','36sFzsbU','editorTemplate','define','options','popup','length','_onkeydown','Enter','grist-editor-meta-code-selector','5aVclKf','stopPropagation','1419748BbqEkm','keys','859592eWbWze','8035sUGkHi','record','291880sClqnx','openSelector','value','dispatchEvent','fieldMap','codes','firstUpdated'];a0_0x1a9f=function(){return _0x1072d9;};return a0_0x1a9f();}import{TermsUtil}from'../../../utils/terms-util';import'../../selector/meta-object-selector-popup';export class GristEditorMetaCodeSelector extends OxGristEditor{static get[a0_0x3a08d7(0xa1)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x3a08d7(0xab)](){const _0x354efa=a0_0x3a08d7;let _0x48c05b='';if(this[_0x354efa(0x99)][_0x354efa(0x8f)]&&this[_0x354efa(0x99)][_0x354efa(0x8f)][_0x354efa(0xad)]){if(this[_0x354efa(0x99)]['record']['options'][_0x354efa(0x98)]){let _0x43f600=this[_0x354efa(0x99)][_0x354efa(0x8f)][_0x354efa(0xad)][_0x354efa(0x95)]||[];if(this['value']&&this['value']['length']>0x0){let _0x26b836=_0x43f600[_0x354efa(0x97)](_0x2182cd=>_0x2182cd[_0x354efa(0x92)]===this['value']);_0x48c05b=_0x26b836&&_0x26b836['length']>0x0?_0x26b836[0x0][_0x354efa(0xa8)]:'';}}else _0x48c05b=this[_0x354efa(0x92)];}else _0x48c05b='';return html`
|
|
2
|
+
${_0x48c05b?html` <span tabindex="0" style="flex:1">${_0x48c05b}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x3a08d7(0x96)](){const _0x14f754=a0_0x3a08d7;super[_0x14f754(0x96)]();}[a0_0x3a08d7(0xa3)](_0x3a6efe){const _0x2d4162=a0_0x3a08d7;_0x3a6efe['stopPropagation'](),this[_0x2d4162(0x91)]();}[a0_0x3a08d7(0xb0)](_0x5b44ca){const _0x4c8a61=a0_0x3a08d7;_0x4c8a61(0xb1)==_0x5b44ca[_0x4c8a61(0x9e)]&&(_0x5b44ca[_0x4c8a61(0xb4)](),this[_0x4c8a61(0x91)]());}[a0_0x3a08d7(0x91)](){const _0x279986=a0_0x3a08d7;this[_0x279986(0xae)]&&delete this[_0x279986(0xae)];var {selectorName:_0x49b229=TermsUtil['tTitle'](_0x279986(0xa2))}=this['column']['record'][_0x279986(0xad)]||{},_0x5c2941=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x279986(0x92)]}
|
|
6
|
+
.options=${this[_0x279986(0x99)][_0x279986(0x8f)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x458a81=>{const _0x5e03a6=_0x279986;let _0x450011=this[_0x5e03a6(0x99)][_0x5e03a6(0x8f)][_0x5e03a6(0xad)][_0x5e03a6(0xa7)],_0x29296f=this['column'][_0x5e03a6(0x8f)]['options']['dispField'],_0x2fac7c=this[_0x5e03a6(0x99)][_0x5e03a6(0x8f)][_0x5e03a6(0xad)][_0x5e03a6(0x94)]||{};if(this[_0x5e03a6(0x99)]['record'][_0x5e03a6(0xad)][_0x5e03a6(0x95)]||(this['column'][_0x5e03a6(0x8f)][_0x5e03a6(0xad)][_0x5e03a6(0x95)]=[]),_0x458a81){let _0x3ee785=this[_0x5e03a6(0x99)][_0x5e03a6(0x8f)][_0x5e03a6(0xad)][_0x5e03a6(0x95)][_0x5e03a6(0x97)](_0x820b98=>_0x820b98[_0x5e03a6(0x92)]==_0x458a81[_0x450011]);_0x3ee785&&0x0!=_0x3ee785[_0x5e03a6(0xaf)]||this[_0x5e03a6(0x99)][_0x5e03a6(0x8f)][_0x5e03a6(0xad)][_0x5e03a6(0x95)][_0x5e03a6(0x9f)]({'value':_0x458a81[_0x450011],'display':_0x458a81[_0x29296f]});}this[_0x5e03a6(0x93)](new CustomEvent(_0x5e03a6(0x9a),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x5e03a6(0x92)],'after':_0x458a81?_0x458a81[_0x450011]:null,'record':this[_0x5e03a6(0x8f)],'column':this[_0x5e03a6(0x99)],'row':this[_0x5e03a6(0xa4)]}})),Object[_0x5e03a6(0xb6)](_0x2fac7c)['forEach'](_0x446af9=>{const _0x1c0abe=_0x5e03a6;this[_0x1c0abe(0x93)](new CustomEvent(_0x1c0abe(0x9a),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x1c0abe(0x8f)][_0x2fac7c[_0x446af9]],'after':_0x458a81?_0x458a81[_0x446af9]:null,'record':this['record'],'column':{'name':_0x2fac7c[_0x446af9]},'row':this['row']}}));});})['bind'](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x279986(0xae)]=openPopup(_0x5c2941,{'backdrop':!0x0,'size':_0x279986(0xa0),'title':TermsUtil[_0x279986(0x9d)](_0x49b229)});}}customElements[a0_0x3a08d7(0xac)](a0_0x3a08d7(0xb2),GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
var a0_0x136982=a0_0x3e44;(function(_0x47f71a,_0x30ef06){var _0x2cbaf6=a0_0x3e44,_0x4e96ed=_0x47f71a();while(!![]){try{var _0xa1a3dc=-parseInt(_0x2cbaf6(0x168))/0x1*(-parseInt(_0x2cbaf6(0x173))/0x2)+-parseInt(_0x2cbaf6(0x15b))/0x3+-parseInt(_0x2cbaf6(0x15a))/0x4+-parseInt(_0x2cbaf6(0x162))/0x5*(parseInt(_0x2cbaf6(0x177))/0x6)+-parseInt(_0x2cbaf6(0x167))/0x7*(parseInt(_0x2cbaf6(0x16f))/0x8)+parseInt(_0x2cbaf6(0x15f))/0x9+-parseInt(_0x2cbaf6(0x172))/0xa*(-parseInt(_0x2cbaf6(0x174))/0xb);if(_0xa1a3dc===_0x30ef06)break;else _0x4e96ed['push'](_0x4e96ed['shift']());}catch(_0x4158be){_0x4e96ed['push'](_0x4e96ed['shift']());}}}(a0_0x6531,0x53f78));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';function a0_0x6531(){var _0x11e34a=['popup','fieldMap','define','tMenu','Enter','56432MYIRLI','properties','keys','10zqizvi','22rtkzFF','5330006LcntUk','value','row','79902CmGBiB','_onkeydown','grist-editor-meta-object-selector','bind','tTitle','editorTemplate','select_item','2254164DchThV','760497VWbLLO','options','openSelector','firstUpdated','5198049ylGsfW','stopPropagation','field-change','55NifKXf','record','column','_onclick','dispatchEvent','119sLFtVP','33206ncTWra','nameField'];a0_0x6531=function(){return _0x11e34a;};return a0_0x6531();}import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';function a0_0x3e44(_0x4a2d8d,_0x4822f4){var _0x653143=a0_0x6531();return a0_0x3e44=function(_0x3e44e0,_0x446d03){_0x3e44e0=_0x3e44e0-0x155;var _0xd2cc81=_0x653143[_0x3e44e0];return _0xd2cc81;},a0_0x3e44(_0x4a2d8d,_0x4822f4);}import'../../selector/meta-object-selector-popup';export class GristEditorMetaObjectSelector extends OxGristEditor{static get[a0_0x136982(0x170)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x136982(0x158)](){var _0x44a3cf=a0_0x136982;let _0x4e194b='';return this['value']&&this[_0x44a3cf(0x164)]['record'][_0x44a3cf(0x15c)]&&(_0x4e194b=this[_0x44a3cf(0x175)][this[_0x44a3cf(0x164)][_0x44a3cf(0x163)][_0x44a3cf(0x15c)][_0x44a3cf(0x169)]]),html`
|
|
2
|
+
${this[_0x44a3cf(0x175)]?html` <span tabindex="0" style="flex:1">${_0x4e194b}</span> `:html`<span tabindex="0">${_0x4e194b}</span>`}
|
|
3
|
+
`;}async[a0_0x136982(0x15e)](){var _0x2215bb=a0_0x136982;super[_0x2215bb(0x15e)]();}[a0_0x136982(0x165)](_0x15b50c){var _0x88c768=a0_0x136982;_0x15b50c[_0x88c768(0x160)](),this[_0x88c768(0x15d)]();}[a0_0x136982(0x178)](_0x59f89f){var _0x2a2978=a0_0x136982;_0x2a2978(0x16e)==_0x59f89f['key']&&(_0x59f89f[_0x2a2978(0x160)](),this['openSelector']());}['openSelector'](){var _0x15017f=a0_0x136982;this[_0x15017f(0x16a)]&&delete this['popup'];var {selectorName:_0x2a40ab=TermsUtil[_0x15017f(0x157)](_0x15017f(0x159))}=this[_0x15017f(0x164)][_0x15017f(0x163)][_0x15017f(0x15c)]||{},_0x5e65d2=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this['value']}
|
|
6
|
+
.options=${this[_0x15017f(0x164)][_0x15017f(0x163)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x50f02a=>{var _0x23d2ce=_0x15017f;let _0x2cca5d=this[_0x23d2ce(0x164)]['record']['options'][_0x23d2ce(0x16b)]||{};this[_0x23d2ce(0x166)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x23d2ce(0x175)],'after':_0x50f02a||null,'record':this[_0x23d2ce(0x163)],'column':this['column'],'row':this['row']}})),Object[_0x23d2ce(0x171)](_0x2cca5d)['forEach'](_0x3532c3=>{var _0x2d823b=_0x23d2ce;this[_0x2d823b(0x166)](new CustomEvent(_0x2d823b(0x161),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['record'][_0x2cca5d[_0x3532c3]],'after':_0x50f02a?_0x50f02a[_0x3532c3]:null,'record':this[_0x2d823b(0x163)],'column':{'name':_0x2cca5d[_0x3532c3]},'row':this[_0x2d823b(0x176)]}}));});})[_0x15017f(0x156)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this['popup']=openPopup(_0x5e65d2,{'backdrop':!0x0,'size':'large','title':TermsUtil[_0x15017f(0x16d)](_0x2a40ab)});}}customElements[a0_0x136982(0x16c)](a0_0x136982(0x155),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42b69a,_0x5b1021){const _0x2f035d=a0_0x8ebb,_0x4cfae1=_0x42b69a();while(!![]){try{const _0x31bf07=parseInt(_0x2f035d(0xbd))/0x1+parseInt(_0x2f035d(0xc1))/0x2*(parseInt(_0x2f035d(0xc3))/0x3)+-parseInt(_0x2f035d(0xc0))/0x4*(parseInt(_0x2f035d(0xb7))/0x5)+parseInt(_0x2f035d(0xb6))/0x6*(-parseInt(_0x2f035d(0xbf))/0x7)+-parseInt(_0x2f035d(0xb8))/0x8+parseInt(_0x2f035d(0xc4))/0x9*(parseInt(_0x2f035d(0xbc))/0xa)+parseInt(_0x2f035d(0xb0))/0xb;if(_0x31bf07===_0x5b1021)break;else _0x4cfae1['push'](_0x4cfae1['shift']());}catch(_0x3d37e9){_0x4cfae1['push'](_0x4cfae1['shift']());}}}(a0_0x4b3b,0x1b4f7));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x55078d){const _0x5b52a7=a0_0x8ebb,_0x383d92=_0x55078d['target'];detectOverflow(_0x383d92)&&_0x383d92[_0x5b52a7(0xb3)](_0x5b52a7(0xb2),_0x383d92[_0x5b52a7(0xbe)]);}function onmouseout(_0x4ee2ca){const _0x535046=a0_0x8ebb;_0x4ee2ca[_0x535046(0xb9)]['removeAttribute'](_0x535046(0xb2));}function a0_0x4b3b(){const _0x2054c1=['data-tooltip','setAttribute','length','display','548508Uhkwrb','10ImWgrZ','742360WTbOgI','target','record','options','30890wqqkyK','114331oYJWWS','textContent','7aVNvbM','335000byMnNn','25648iciVWx','filter','6KuovJa','531RIeSYE','codes','1554806dtzKNZ','dispField'];a0_0x4b3b=function(){return _0x2054c1;};return a0_0x4b3b();}function a0_0x8ebb(_0x5eeaba,_0x210cad){const _0x4b3ba3=a0_0x4b3b();return a0_0x8ebb=function(_0x8ebbd9,_0x2ab5f5){_0x8ebbd9=_0x8ebbd9-0xb0;let _0x44c182=_0x4b3ba3[_0x8ebbd9];return _0x44c182;},a0_0x8ebb(_0x5eeaba,_0x210cad);}export const GristRendererMetaCodeSelector=(_0xdcbe5b,_0x36f22e,_0x4b4b47,_0x201cca,_0x12e111)=>{const _0x440547=a0_0x8ebb;let _0x393d6c='';if(_0x36f22e[_0x440547(0xba)]&&_0x36f22e[_0x440547(0xba)][_0x440547(0xbb)]){if(_0x36f22e['record'][_0x440547(0xbb)][_0x440547(0xb1)]){if(_0x36f22e[_0x440547(0xba)][_0x440547(0xbb)]['codes']||(_0x36f22e[_0x440547(0xba)][_0x440547(0xbb)]['codes']=[]),_0xdcbe5b&&_0xdcbe5b[_0x440547(0xb4)]>0x0){let _0x4131b6=_0x36f22e['record'][_0x440547(0xbb)][_0x440547(0xc5)][_0x440547(0xc2)](_0x436f2c=>_0x436f2c['value']===_0xdcbe5b);_0x393d6c=_0x4131b6&&_0x4131b6['length']>0x0?_0x4131b6[0x0][_0x440547(0xb5)]:_0xdcbe5b;}}else _0x393d6c=_0xdcbe5b;}else _0x393d6c='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x393d6c}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3332a9,_0x252a89){const _0x4fe7bf=a0_0x2f74,_0x1acacc=_0x3332a9();while(!![]){try{const _0x10d394=-parseInt(_0x4fe7bf(0xa2))/0x1+parseInt(_0x4fe7bf(0x97))/0x2+parseInt(_0x4fe7bf(0x94))/0x3+-parseInt(_0x4fe7bf(0x9a))/0x4*(-parseInt(_0x4fe7bf(0x9e))/0x5)+parseInt(_0x4fe7bf(0x9c))/0x6*(parseInt(_0x4fe7bf(0x95))/0x7)+-parseInt(_0x4fe7bf(0x9d))/0x8*(-parseInt(_0x4fe7bf(0x92))/0x9)+-parseInt(_0x4fe7bf(0xa0))/0xa;if(_0x10d394===_0x252a89)break;else _0x1acacc['push'](_0x1acacc['shift']());}catch(_0x1c4253){_0x1acacc['push'](_0x1acacc['shift']());}}}(a0_0x1b4c,0xbf3ec));import{html}from'lit';function a0_0x2f74(_0x4c0bfa,_0x18bd08){const _0x1b4cf9=a0_0x1b4c();return a0_0x2f74=function(_0x2f74ba,_0x488a48){_0x2f74ba=_0x2f74ba-0x92;let _0x6d048f=_0x1b4cf9[_0x2f74ba];return _0x6d048f;},a0_0x2f74(_0x4c0bfa,_0x18bd08);}import{detectOverflow}from'@operato/utils';function onmouseover(_0x43d5d3){const _0x27fe0e=a0_0x2f74,_0x30012c=_0x43d5d3[_0x27fe0e(0x9f)];detectOverflow(_0x30012c)&&_0x30012c[_0x27fe0e(0x98)](_0x27fe0e(0x99),_0x30012c[_0x27fe0e(0x96)]);}function a0_0x1b4c(){const _0x22f734=['7GldFIp','textContent','257858qffqaw','setAttribute','data-tooltip','59208frAafH','record','665082bQuyxd','3512kakoqO','205NbzmTW','target','8289430qreARJ','options','1103793luOGVZ','19449dKkgKk','removeAttribute','2762217IfQcKm'];a0_0x1b4c=function(){return _0x22f734;};return a0_0x1b4c();}function onmouseout(_0x7002d){const _0x4d07c0=a0_0x2f74;_0x7002d[_0x4d07c0(0x9f)][_0x4d07c0(0x93)](_0x4d07c0(0x99));}export const GristRendererMetaObjectSelector=(_0x12342f,_0x2071aa,_0x194393,_0x57fc40,_0x1be4e9)=>{const _0x3ce5c9=a0_0x2f74;let _0x53cf3e='';return _0x12342f&&_0x2071aa[_0x3ce5c9(0x9b)][_0x3ce5c9(0xa1)]&&(_0x53cf3e=_0x12342f[_0x2071aa[_0x3ce5c9(0x9b)][_0x3ce5c9(0xa1)]['nameField']]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x53cf3e}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xfb152e=a0_0x4913;(function(_0x56f30e,_0x56ade6){const _0x304579=a0_0x4913,_0x3d243d=_0x56f30e();while(!![]){try{const _0x4be2ff=-parseInt(_0x304579(0x199))/0x1*(parseInt(_0x304579(0x184))/0x2)+-parseInt(_0x304579(0x175))/0x3*(-parseInt(_0x304579(0x198))/0x4)+-parseInt(_0x304579(0x16c))/0x5+-parseInt(_0x304579(0x192))/0x6+-parseInt(_0x304579(0x1be))/0x7*(-parseInt(_0x304579(0x1a3))/0x8)+parseInt(_0x304579(0x1a5))/0x9+parseInt(_0x304579(0x1a0))/0xa;if(_0x4be2ff===_0x56ade6)break;else _0x3d243d['push'](_0x3d243d['shift']());}catch(_0x5b2c1b){_0x3d243d['push'](_0x3d243d['shift']());}}}(a0_0xed61,0xdf898));import{css,html,LitElement}from'lit';function a0_0xed61(){const _0x118008=['clickSelect','getParams','filters','14CloBeY','gridConfig','options','handlers','record','push','getCodeByEntity','rows','9146890DRypSo','GRID','meta-code-selector','after_set_fields','meta-object-selector','selectRecord','empty','entity','filter','41511OhLuUE','info','type','object','scenario','grist','keys','NOTHING_SELECTED','firstUpdated','search','meta-','showToast','search_hidden_fields','getGristColumnConfig2','render','60934iFVdCz','tText','menu_template','getSelectColumns','values','startsWith','left','tButton','fetchHandler','meta-object-selector-popup','basicArgs','sorters','forEach','getGristSelectableConfig','10037364CeVVDo','align','gql','bind','appendable','select-row-toggle','28zvqiSV','31qbBtmO','codeField','queryName','includes','resource-code-selector','string','name','40370350MgqVpa','isArray','resource-object','2467488gZDZRw','confirmCallback','5504319grRfrh','dispField','getGristMetaObjectOptions','clickEmpty','getGristGuttersConfig','connectedCallback','length','select','styles','searchByPagination','code','getCodeSelectorData','filterFields','codes','columns','#ox-grist','clickCancel','args','LIST','query','nameField','querySelector'];a0_0xed61=function(){return _0x118008;};return a0_0xed61();}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';function a0_0x4913(_0x58e81e,_0x3ef4ec){const _0xed6184=a0_0xed61();return a0_0x4913=function(_0x491363,_0x2017d1){_0x491363=_0x491363-0x169;let _0x296dc8=_0xed6184[_0x491363];return _0x296dc8;},a0_0x4913(_0x58e81e,_0x3ef4ec);}import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0xfb152e(0x1ad)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x42c108=a0_0x1fa7;(function(_0x19dc3f,_0x51c7a1){const _0x40c450=a0_0x
|
|
|
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_0xfb152e(0x1aa)](){const _0xff9636=a0_0xfb152e;this[_0xff9636(0x181)]=this[_0xff9636(0x1c0)][_0xff9636(0x1bd)]?this[_0xff9636(0x1c0)][_0xff9636(0x1bd)]:this[_0xff9636(0x18e)]&&this[_0xff9636(0x18e)]['filters']?this[_0xff9636(0x18e)][_0xff9636(0x1bd)]:[];let _0x526f90=this[_0xff9636(0x1c0)][_0xff9636(0x18f)]?this[_0xff9636(0x1c0)][_0xff9636(0x18f)]:this['basicArgs']&&this['basicArgs']['sorters']?this['basicArgs'][_0xff9636(0x18f)]:[],_0x258d2c=this[_0xff9636(0x1c0)][_0xff9636(0x1b1)]?this['options'][_0xff9636(0x1b1)]:this[_0xff9636(0x1c0)]['menu_template']?.[_0xff9636(0x17e)]&&this[_0xff9636(0x1c0)][_0xff9636(0x186)]?.[_0xff9636(0x17e)][_0xff9636(0x1ab)]>0x0?this[_0xff9636(0x1c0)][_0xff9636(0x186)][_0xff9636(0x17e)]:[],_0x20abde=this['options'][_0xff9636(0x1ac)];if(!_0x258d2c||0x0==_0x258d2c[_0xff9636(0x1ab)]){let _0x51d52a;this[_0xff9636(0x1c0)][_0xff9636(0x19a)]&&(_0x51d52a=this[_0xff9636(0x1c0)][_0xff9636(0x19a)]),this[_0xff9636(0x1c0)][_0xff9636(0x1b9)]&&(_0x51d52a=this[_0xff9636(0x1c0)][_0xff9636(0x1b9)]),_0x51d52a&&_0x258d2c[_0xff9636(0x169)]({'name':_0x51d52a,'operator':'eq'});}let _0x478ef5=[...MetaApi[_0xff9636(0x1a9)](!0x0,!0x1)];if(_0x20abde&&_0x20abde[_0xff9636(0x1ab)]>0x0)for(let _0x1ae5de=0x0;_0x1ae5de<_0x20abde[_0xff9636(0x1ab)];_0x1ae5de++){let {type:_0x3182b0=_0xff9636(0x19e),name:_0x4bd535,hidden:_0x5cd64e=!0x1,record:_0x35d478={'align':_0xff9636(0x18a)},header:_0x10cbe0,sortable:_0x4bce34=!0x1,width:_0x360c9d=0x87,options:_0x18aae1,select_opt:_0x196aab,object_opt:_0x3ea399}=_0x20abde[_0x1ae5de];if(_0x196aab&&(_0x18aae1=_0x196aab),_0x3ea399&&(_0x18aae1=_0x3ea399),[_0xff9636(0x1a2),_0xff9636(0x178)][_0xff9636(0x19c)](_0x3182b0)?_0x3182b0='meta-object-selector':[_0xff9636(0x19d)][_0xff9636(0x19c)](_0x3182b0)&&(_0x3182b0=_0xff9636(0x16e)),'id'==_0x4bd535)_0x478ef5[_0xff9636(0x169)]({'type':'string','name':_0x4bd535,'hidden':!0x0});else{let _0x27260a=MetaApi[_0xff9636(0x182)](_0x3182b0,_0x4bd535,_0x10cbe0||_0x4bd535,_0x35d478[_0xff9636(0x193)]?_0x35d478[_0xff9636(0x193)]:_0xff9636(0x18a),!0x1,_0x4bce34,_0x360c9d);_0x3182b0[_0xff9636(0x189)](_0xff9636(0x17f))&&_0x3ea399&&_0x3ea399['menu']&&(_0x18aae1=await MetaUiUtil[_0xff9636(0x1a7)](_0x3182b0,_0x18aae1)),_0xff9636(0x1ac)===_0x3182b0?Array[_0xff9636(0x1a1)](_0x18aae1)?_0x27260a[_0xff9636(0x1c2)][_0xff9636(0x1c0)]=_0x18aae1:_0xff9636(0x1af)===_0x18aae1[_0xff9636(0x177)]?_0x27260a[_0xff9636(0x1c2)][_0xff9636(0x1c0)]=await ServiceUtil[_0xff9636(0x1b0)](_0x18aae1['values']?_0x18aae1[_0xff9636(0x188)]:_0x18aae1['name']):_0xff9636(0x179)===_0x18aae1['type']?_0x27260a[_0xff9636(0x1c2)][_0xff9636(0x1c0)]=await ServiceUtil['getCodeByScenario'](_0x18aae1[_0xff9636(0x19f)],_0x18aae1[_0xff9636(0x1b6)]):_0xff9636(0x173)===_0x18aae1['type']&&(_0x27260a['record']['options']=await ServiceUtil[_0xff9636(0x16a)](_0x18aae1['args'])):_0xff9636(0x170)===_0x3182b0?_0x27260a[_0xff9636(0x1c2)][_0xff9636(0x1c0)]={..._0x18aae1}:_0xff9636(0x16e)==_0x3182b0&&(_0x18aae1['dispField']&&(_0x18aae1[_0xff9636(0x1b2)]=await ServiceUtil[_0xff9636(0x16a)](_0x18aae1)),_0x27260a[_0xff9636(0x1c2)]['options']={..._0x18aae1}),_0x27260a['hidden']=_0x5cd64e,_0x478ef5[_0xff9636(0x169)](_0x27260a);}}else _0x478ef5[_0xff9636(0x169)](MetaApi[_0xff9636(0x182)](_0xff9636(0x19e),this[_0xff9636(0x1c0)][_0xff9636(0x19a)],this[_0xff9636(0x1c0)][_0xff9636(0x19a)],_0xff9636(0x18a),!0x1,!0x0,0xb4)),this[_0xff9636(0x1c0)][_0xff9636(0x1a6)]&&_0x478ef5['push'](MetaApi['getGristColumnConfig2'](_0xff9636(0x19e),this[_0xff9636(0x1c0)][_0xff9636(0x1a6)],this[_0xff9636(0x1c0)][_0xff9636(0x1a6)],_0xff9636(0x18a),!0x1,!0x0,0x12c));_0x478ef5['forEach'](_0x39f65e=>{const _0x5bf422=_0xff9636;let _0x286f1b=_0x258d2c['filter'](_0x1b12ce=>_0x5bf422(0x19e)==typeof _0x1b12ce?_0x39f65e['name']==_0x1b12ce:_0x39f65e['name']==_0x1b12ce[_0x5bf422(0x19f)]);_0x286f1b&&_0x286f1b[_0x5bf422(0x1ab)]>0x0&&(_0x39f65e[_0x5bf422(0x174)]=_0x5bf422(0x19e)==typeof _0x286f1b[0x0]?'search':_0x286f1b[0x0]);});let _0x72e955={'rows':MetaApi[_0xff9636(0x191)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x478ef5,'sorters':[..._0x526f90]};_0x72e955['rows'][_0xff9636(0x1c1)]={'click':_0xff9636(0x197),'dblclick':(_0x119c3e,_0xbe17c0,_0x116844,_0xc1d0e0,_0x5a0d93,_0x2ae610)=>{const _0x284f0a=_0xff9636;this[_0x284f0a(0x171)](_0xc1d0e0);}},_0x72e955[_0xff9636(0x16b)][_0xff9636(0x196)]=!0x1,this[_0xff9636(0x1bf)]=_0x72e955,await super[_0xff9636(0x1aa)]();}async[a0_0xfb152e(0x17d)](){const _0x212be7=a0_0xfb152e;await super[_0x212be7(0x17d)]();}[a0_0xfb152e(0x183)](){const _0x2ac5e4=a0_0xfb152e;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0x2ac5e4(0x1bf)]} .mode=${isMobileDevice()?_0x2ac5e4(0x1b7):_0x2ac5e4(0x16d)} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x2ac5e4(0x18c)]['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_0x42c108=a0_0x1fa7;(function(_0x19dc3f,_0x51c7a1){const _0x40c450=a0_0x
|
|
|
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[_0x2ac5e4(0x18b)](_0x2ac5e4(0x172))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x2ac5e4(0x1a8)]['bind'](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil['
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x2ac5e4(0x18b)]('cancel')}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0x2ac5e4(0x1b5)][_0x2ac5e4(0x195)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x2ac5e4(0x18b)](_0x2ac5e4(0x1ac))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x2ac5e4(0x1bb)][_0x2ac5e4(0x195)](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0xfb152e(0x17a)](){const _0x221747=a0_0xfb152e;return this['shadowRoot'][_0x221747(0x1ba)](_0x221747(0x1b4));}async[a0_0xfb152e(0x18c)]({page:_0x408f13=0x0,limit:_0x2249b5=0x0,sorters:_0x2bdd2c=[],filters:_0x1d0f8e=[]}){const _0x93dc4f=a0_0xfb152e;let _0x3f9877=[...this[_0x93dc4f(0x181)]];_0x1d0f8e[_0x93dc4f(0x190)](_0x40c43f=>{const _0x12b1ba=_0x93dc4f;let _0x2ebf9a=_0x3f9877[_0x12b1ba(0x174)](_0x206cf1=>_0x40c43f['name']==_0x206cf1[_0x12b1ba(0x19f)]);_0x2ebf9a&&_0x2ebf9a[_0x12b1ba(0x1ab)]>0x0&&delete _0x3f9877[_0x40c43f[_0x12b1ba(0x19f)]],_0x3f9877['push'](_0x40c43f);});let _0x73ca11=ValueUtil[_0x93dc4f(0x1bc)](this[_0x93dc4f(0x1c0)][_0x93dc4f(0x186)]&&this[_0x93dc4f(0x1c0)][_0x93dc4f(0x186)][_0x93dc4f(0x194)]||{},_0x93dc4f(0x1b8),_0x93dc4f(0x16f)),_0x479dab=Object[_0x93dc4f(0x17b)](_0x73ca11||{}),_0x4dd387=MetaApi[_0x93dc4f(0x187)](this[_0x93dc4f(0x1bf)][_0x93dc4f(0x1b3)][_0x93dc4f(0x174)](_0x5dc126=>!_0x479dab[_0x93dc4f(0x19c)](_0x5dc126[_0x93dc4f(0x19f)])));return await MetaApi[_0x93dc4f(0x1ae)](this[_0x93dc4f(0x1c0)][_0x93dc4f(0x19b)],_0x3f9877,_0x2bdd2c,_0x408f13,_0x2249b5,_0x4dd387);}async[a0_0xfb152e(0x1a8)](_0x149eae){const _0x2eb580=a0_0xfb152e;this[_0x2eb580(0x1a4)]&&this[_0x2eb580(0x1a4)](null),closePopup(this);}async['clickCancel'](_0x43fb5f){closePopup(this);}async[a0_0xfb152e(0x1bb)](_0x377db0){const _0x9b75dd=a0_0xfb152e;let _0x44459a=this[_0x9b75dd(0x17a)]['selected'];_0x44459a&&0x0!=_0x44459a['length']?this[_0x9b75dd(0x171)](_0x44459a[0x0]):MetaApi[_0x9b75dd(0x180)](_0x9b75dd(0x176),TermsUtil[_0x9b75dd(0x185)](_0x9b75dd(0x17c)));}async['selectRecord'](_0x4e88b1){const _0x1b38bb=a0_0xfb152e;this['confirmCallback']&&this[_0x1b38bb(0x1a4)](_0x4e88b1),closePopup(this);}}customElements['define'](a0_0xfb152e(0x18d),MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1ae09b=a0_0x3a29;(function(_0x2f0d17,_0x50c38a){const _0xfba859=a0_0x3a29,_0x42f2d4=_0x2f0d17();while(!![]){try{const _0x366d99=parseInt(_0xfba859(0x1e7))/0x1*(parseInt(_0xfba859(0x1dc))/0x2)+-parseInt(_0xfba859(0x1cf))/0x3*(-parseInt(_0xfba859(0x1ca))/0x4)+-parseInt(_0xfba859(0x1c1))/0x5+parseInt(_0xfba859(0x1c8))/0x6+-parseInt(_0xfba859(0x1ed))/0x7+-parseInt(_0xfba859(0x1d1))/0x8*(-parseInt(_0xfba859(0x1ee))/0x9)+parseInt(_0xfba859(0x1bc))/0xa*(parseInt(_0xfba859(0x1d5))/0xb);if(_0x366d99===_0x50c38a)break;else _0x42f2d4['push'](_0x42f2d4['shift']());}catch(_0x29c1c8){_0x42f2d4['push'](_0x42f2d4['shift']());}}}(a0_0x1343,0x81e4e));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x4009d3=>class extends _0x4009d3{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x292785=>Boolean(_0x292785)},'is_popup':{'type':Boolean,'converter':_0x3eada1=>Boolean(_0x3eada1)},'is_activity':{'type':Boolean,'converter':_0x41b1b1=>Boolean(_0x41b1b1)},'is_readonly':{'type':Boolean,'converter':_0x513848=>Boolean(_0x513848)}};}get[a0_0x1ae09b(0x1b4)](){const _0x5df337=a0_0x1ae09b;return!0x0===this['is_detail']||!0x0===this[_0x5df337(0x1e6)];}get[a0_0x1ae09b(0x1e8)](){const _0x52c7e2=a0_0x1ae09b;return!ValueUtil[_0x52c7e2(0x1d3)](this['is_detail'])&&this[_0x52c7e2(0x1df)];}async[a0_0x1ae09b(0x1cb)](){const _0x8be9ec=a0_0x1ae09b;super[_0x8be9ec(0x1cb)]&&await super[_0x8be9ec(0x1cb)](),this[_0x8be9ec(0x1d0)](_0x8be9ec(0x1c0),async _0x36adbf=>{const _0x1169a6=_0x8be9ec;_0x36adbf[_0x1169a6(0x1d7)](),this['dispatchEvent'](new CustomEvent(_0x1169a6(0x1eb),{'bubbles':!0x0,'composed':!0x0,'detail':_0x36adbf[_0x1169a6(0x1c2)]}));let {after:_0x2ec37e,before:_0x1ab823,column:_0x1ea13d,record:_0x89324f,row:_0x429ff3}=_0x36adbf['detail'],_0x4c67de=_0x1ea13d[_0x1169a6(0x1bd)];if(Object[_0x1169a6(0x1c6)](this[_0x1169a6(0x1cd)]||{})[_0x1169a6(0x1c4)](_0x4c67de)){let _0x2d6a89,_0x54bbc0=(await MetaApi[_0x1169a6(0x1d9)](void 0x0,this[_0x1169a6(0x1cd)][_0x4c67de],{'columnName':_0x4c67de,'column':_0x1ea13d,'record':_0x89324f,'after':_0x2ec37e,'before':_0x1ab823,'row':_0x429ff3},!0x1))['data'][_0x1169a6(0x1d6)][_0x1169a6(0x1d2)]['result'];if(!_0x54bbc0)return;_0x2d6a89=this['grist']?this[_0x1169a6(0x1dd)][_0x1169a6(0x1dd)][_0x1169a6(0x1d4)]:this,Object[_0x1169a6(0x1c6)](_0x54bbc0)[_0x1169a6(0x1ea)](_0x8bf7f8=>{const _0x2ba01c=_0x1169a6;_0x2d6a89[_0x2ba01c(0x1e4)](new CustomEvent(_0x2ba01c(0x1c0),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x89324f,'row':_0x429ff3,'after':_0x54bbc0[_0x8bf7f8],'before':_0x89324f[_0x8bf7f8],'column':{'name':_0x8bf7f8}}}));});}});}async[a0_0x1ae09b(0x1ec)](_0x35da54,_0x2bb2e2,_0x52b0f7){const _0xa9caf1=a0_0x1ae09b;let _0x555454=this[_0xa9caf1(0x1b8)]?.[_0xa9caf1(0x1bb)]?this[_0xa9caf1(0x1b8)][_0xa9caf1(0x1bb)]:{};this[_0xa9caf1(0x1c3)]&&this[_0xa9caf1(0x1e5)]&&0x0==_0x52b0f7[_0xa9caf1(0x1e5)]&&ValueUtil[_0xa9caf1(0x1be)](_0x555454)&&this[_0xa9caf1(0x1e1)]();}get[a0_0x1ae09b(0x1b5)](){const _0x22f4d1=a0_0x1ae09b;return!ValueUtil[_0x22f4d1(0x1d3)](this['is_popup'])&&this['is_popup'];}get[a0_0x1ae09b(0x1c3)](){const _0x577de9=a0_0x1ae09b;return!this['is_detail']&&!this[_0x577de9(0x1e6)];}async[a0_0x1ae09b(0x1b7)](){const _0x4c6e3e=a0_0x1ae09b;let _0x166fd0=await MetaApi[_0x4c6e3e(0x1d8)](this);_0x166fd0&&(this[_0x4c6e3e(0x1db)]=_0x166fd0[_0x4c6e3e(0x1b6)],this['etcConfig']=_0x166fd0['etc'],this['parseBasicGridConfigs']&&this['parseBasicGridConfigs'](_0x166fd0),this['parseBasicServiceConfigs']&&this['parseBasicServiceConfigs'](_0x166fd0),this['parseBasicFormConfigs']&&this[_0x4c6e3e(0x1c9)](_0x166fd0),this[_0x4c6e3e(0x1de)]&&this[_0x4c6e3e(0x1de)](_0x166fd0),this['parseBasicButtonConfigs']&&this['parseBasicButtonConfigs'](_0x166fd0));}async[a0_0x1ae09b(0x1e1)](){const _0x3ff49e=a0_0x1ae09b;ValueUtil[_0x3ff49e(0x1be)](this[_0x3ff49e(0x1dd)])?this[_0x3ff49e(0x1dd)]['fetch']():(ValueUtil[_0x3ff49e(0x1be)](this[_0x3ff49e(0x1e9)])||this[_0x3ff49e(0x1e0)])&&await this[_0x3ff49e(0x1e0)]();}async[a0_0x1ae09b(0x1e3)](_0x45e2de,_0x429529,_0x42b004){const _0x5f4408=a0_0x1ae09b;let _0x4d8bba=TermsUtil[_0x5f4408(0x1e2)](_0x45e2de[_0x5f4408(0x1ce)]);ValueUtil['isNotEmpty'](_0x45e2de[_0x5f4408(0x1c7)])&&(_0x4d8bba=_0x4d8bba+'-'+ValueUtil[_0x5f4408(0x1bf)](_0x429529,..._0x45e2de[_0x5f4408(0x1c7)][_0x5f4408(0x1b9)]('.'))),MetaApi['openDynamicPopup'](_0x4d8bba,_0x45e2de,_0x429529,_0x42b004);}async[a0_0x1ae09b(0x1cc)](_0x3ca63d,_0x3ec3c5,_0xcacff1){const _0x33b09a=a0_0x1ae09b;let _0x9435ab=await MetaApi[_0x33b09a(0x1d9)](_0x3ca63d[_0x33b09a(0x1bd)],_0x3ca63d[_0x33b09a(0x1bd)],_0x3ec3c5);!0x1!==_0x9435ab&&!_0x9435ab[_0x33b09a(0x1c5)]&&ValueUtil['isNotEmpty'](_0x3ca63d[_0x33b09a(0x1ba)])&&_0xcacff1();}['setParentId'](_0x1607c2){const _0x386c4b=a0_0x1ae09b;this[_0x386c4b(0x1da)]=_0x1607c2,this[_0x386c4b(0x1e1)]();}};function a0_0x3a29(_0x131b55,_0x4707aa){const _0x134327=a0_0x1343();return a0_0x3a29=function(_0x3a29d8,_0x351398){_0x3a29d8=_0x3a29d8-0x1b4;let _0x139fc5=_0x134327[_0x3a29d8];return _0x139fc5;},a0_0x3a29(_0x131b55,_0x4707aa);}function a0_0x1343(){const _0x288923=['isPopup','menu','getAndParseMenuMeta','lifecycle','split','after','params','3566290QmeZoP','name','isNotEmpty','getParams','field-change','4006625tCDEIr','detail','isPage','includes','errors','keys','title_detail','5444574iOQcNa','parseBasicFormConfigs','39636nxeYiw','connectedCallback','executeCallScenarioButtonClick','fieldChangeHandlers','title','15sLbxhu','addEventListener','8fJGrWQ','data','isEmpty','body','11hsPhyZ','runScenario','stopPropagation','getMenuMeta','callScenario','parent_id','menuInfo','496918AQrsBS','grist','parseBasicTabConfigs','is_detail','fetchHandler','fetch','tTitle','excuteOpenPopupButtonClick','dispatchEvent','active','is_popup','1VkhKfC','isDetail','filterForm','forEach','data-change','pageUpdated','7196364PBTXgE','7194249NhqAZn','isElement'];a0_0x1343=function(){return _0x288923;};return a0_0x1343();}
|