@things-factory/meta-ui 6.1.12 → 6.1.14
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 +10 -10
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +6 -6
- 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 +5 -5
- 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 +177 -176
- 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 +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -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 a0_0xb946(){const _0xff650b=['filter','4571VWpleO','portrait','2464640rCFTyo','dynamic-menu-part','appName','dynamic-menu','lite-menu-part','data','meta[name=\x22application-name\x22]','get','rank','8136wKHTNc','content','628838xjrihL','query','41231832CZvwAc','UPDATE_META_MENU_TEMPLATE','hamburger','FRONT_END','dispatch','996SRsQtj','4941360nzDxNl','querySelector','UPDATE_META_UI','1PHyStf','30CrHfbf','11XHZsmi','4770IVDBOV','NAVBAR','92151dbKzIu','liteMenus'];a0_0xb946=function(){return _0xff650b;};return a0_0xb946();}function a0_0x4bb8(_0x35e46d,_0x4325f8){const _0xb946fb=a0_0xb946();return a0_0x4bb8=function(_0x4bb85f,_0x44bbe8){_0x4bb85f=_0x4bb85f-0xbd;let _0x497450=_0xb946fb[_0x4bb85f];return _0x497450;},a0_0x4bb8(_0x35e46d,_0x4325f8);}const a0_0x33c06a=a0_0x4bb8;(function(_0x4ed99c,_0x16212b){const _0x5a4f6c=a0_0x4bb8,_0x5ba8ee=_0x4ed99c();while(!![]){try{const _0x853638=-parseInt(_0x5a4f6c(0xbf))/0x1*(parseInt(_0x5a4f6c(0xd4))/0x2)+parseInt(_0x5a4f6c(0xc2))/0x3*(-parseInt(_0x5a4f6c(0xdb))/0x4)+-parseInt(_0x5a4f6c(0xdc))/0x5+parseInt(_0x5a4f6c(0xd2))/0x6*(-parseInt(_0x5a4f6c(0xc7))/0x7)+-parseInt(_0x5a4f6c(0xc9))/0x8+parseInt(_0x5a4f6c(0xc4))/0x9*(parseInt(_0x5a4f6c(0xc0))/0xa)+parseInt(_0x5a4f6c(0xc1))/0xb*(parseInt(_0x5a4f6c(0xd6))/0xc);if(_0x853638===_0x16212b)break;else _0x5ba8ee['push'](_0x5ba8ee['shift']());}catch(_0x394c5c){_0x5ba8ee['push'](_0x5ba8ee['shift']());}}}(a0_0xb946,0x8c45a));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x178a1c from'graphql-tag';import{html}from'lit';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=a0_0x33c06a(0xbe);export const UPDATE_META_MENU_TEMPLATE=a0_0x33c06a(0xd7);var HAMBURGER;export async function setupMenuPart(_0x5c5590){const _0x1a1b8a=a0_0x33c06a;var {hovering:_0xe7bcb4=!!isMobileDevice(),slotTemplate:_0x49a165,portraitSlotTemplate:_0x3eea47,landscapeSlotTemplate:_0x278d1a,position:_0x51645c=VIEWPART_POSITION[_0x1a1b8a(0xc3)]}=_0x5c5590||{};const {hovering:_0x17f1b4}=(await clientSettingStore[_0x1a1b8a(0xd0)](_0x1a1b8a(0xcc)))?.['value']||{};void 0x0!==_0x17f1b4&&(_0xe7bcb4=_0x17f1b4);const _0x418248=_0x51645c==VIEWPART_POSITION['HEADERBAR']?'landscape':_0x1a1b8a(0xc8),_0x570b40=('landscape'==_0x418248?_0x278d1a:_0x3eea47)||_0x49a165||html``;appendViewpart({'name':_0x1a1b8a(0xcd),'viewpart':{'show':!_0xe7bcb4,'resizable':!0x0,'hovering':!!isMobileDevice()||_0xe7bcb4,'template':html`<dynamic-menu-part .orientation=${_0x418248}>${_0x570b40}</dynamic-menu-part>`},'position':_0x51645c}),_0xe7bcb4&&_0x1a1b8a(0xc8)==_0x418248?HAMBURGER||(HAMBURGER={'name':_0x1a1b8a(0xd8),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x59d8bd=>toggleOverlay(_0x1a1b8a(0xca),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x1a1b8a(0xd9)]},store[_0x1a1b8a(0xda)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x1a1b8a(0xda)]({'type':REMOVE_APP_TOOL,'name':_0x1a1b8a(0xd8)}),HAMBURGER=null);}export async function updateMenuTemplate(_0xd0114b){const _0x221819=a0_0x33c06a;var _0x32dbb5=document[_0x221819(0xbd)](_0x221819(0xcf))?.[_0x221819(0xd3)],_0x26ee24=(await client[_0x221819(0xd5)]({'query':a0_0x178a1c`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x2beef4=a0_0x5161;function a0_0x1702(){const _0x2fef61=['items','query
|
|
|
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':['',_0x32dbb5]}],'sortings':[{'name':_0x221819(0xd1),'desc':!0x1}]}}))[_0x221819(0xce)][_0x221819(0xc5)]['items'];store[_0x221819(0xda)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x26ee24[_0x221819(0xc6)](_0x477fcc=>!_0x477fcc[_0x221819(0xcb)]||_0x477fcc['appName']===_0x32dbb5),'template':_0xd0114b});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x4a9b(_0x4143a4,_0x941e54){const _0x3cae65=a0_0x3cae();return a0_0x4a9b=function(_0x4a9b47,_0x246921){_0x4a9b47=_0x4a9b47-0x9c;let _0x17b139=_0x3cae65[_0x4a9b47];return _0x17b139;},a0_0x4a9b(_0x4143a4,_0x941e54);}(function(_0x23b4ef,_0x450cc8){const _0x25dea0=a0_0x4a9b,_0x358971=_0x23b4ef();while(!![]){try{const _0x4da60b=-parseInt(_0x25dea0(0xa3))/0x1+parseInt(_0x25dea0(0xb2))/0x2+-parseInt(_0x25dea0(0xad))/0x3*(parseInt(_0x25dea0(0xa2))/0x4)+parseInt(_0x25dea0(0xa4))/0x5*(-parseInt(_0x25dea0(0xba))/0x6)+-parseInt(_0x25dea0(0xb1))/0x7+-parseInt(_0x25dea0(0xa5))/0x8+-parseInt(_0x25dea0(0xa7))/0x9*(-parseInt(_0x25dea0(0xb8))/0xa);if(_0x4da60b===_0x450cc8)break;else _0x358971['push'](_0x358971['shift']());}catch(_0x1f9a95){_0x358971['push'](_0x358971['shift']());}}}(a0_0x3cae,0x1fa56));import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x3cae(){const _0x86c862=['filter-change','display','name','tTitle','9251300ZkuTYM','toLowerCase','186LoOJmd','codes','dispatchEvent','options','querySelector','filter','tMenu','dispField','453636BFaZai','46289cySszQ','40295MNkmNq','1861952XXLRIG','tagName','9FOlAit','change','renderRoot','ox-grid-header','length','stopPropagation','3yUyXAs','value','selectorName','[name=\x22','1558578fzCwDD','138834OROeeR','codeField'];a0_0x3cae=function(){return _0x86c862;};return a0_0x3cae();}import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x81f6f1,_0x6b82b9,_0x33eedd){const _0x4b251f=a0_0x4a9b;var _0x2afb50=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x6b82b9}
|
|
4
|
+
.options=${_0x81f6f1[_0x4b251f(0x9d)]}
|
|
5
|
+
.confirmCallback=${_0x33eedd}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x2afb50,{'backdrop':!0x0,'size':'large','title':_0x81f6f1[_0x4b251f(0x9d)][_0x4b251f(0xaf)]?TermsUtil[_0x4b251f(0xa0)](_0x81f6f1[_0x4b251f(0x9d)][_0x4b251f(0xaf)]):TermsUtil[_0x4b251f(0xb7)]('select_item')});}export const FilterFormMetaCodeSelect=(_0xf394af,_0x2bda4f,_0x6c7d33)=>{const _0x18da7d=a0_0x4a9b,_0x1e3ab4=_0xf394af[_0x18da7d(0x9d)],_0x4e25ce=_0x1e3ab4[_0x18da7d(0xbb)]&&_0x1e3ab4[_0x18da7d(0xbb)][_0x18da7d(0xab)]>0x0?_0x1e3ab4[_0x18da7d(0xbb)]:void 0x0,{operator:_0x1403c1='eq'}=_0xf394af;let _0x258d32=_0x2bda4f||'',_0x91585a=_0x2bda4f||'';if(_0x1e3ab4[_0x18da7d(0xa1)]&&_0x2bda4f&&_0x4e25ce){let _0x2aa6d9=_0x4e25ce[_0x18da7d(0x9f)](_0x4aef22=>_0x4aef22[_0x18da7d(0xae)]==_0x2bda4f);_0x2aa6d9&&_0x2aa6d9[_0x18da7d(0xab)]>0x0&&(_0x91585a=_0x2aa6d9[0x0][_0x18da7d(0xb5)]);}return'eq'===_0x1403c1?html`
|
|
8
|
+
<input name='${_0xf394af[_0x18da7d(0xb6)]}' .value=${_0x258d32} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0xf394af[_0x18da7d(0xb6)]}_disp'
|
|
13
|
+
.value=${_0x91585a}
|
|
14
|
+
@click=${_0x43df9e=>{const _0x8ac2f5=_0x18da7d;_0x43df9e[_0x8ac2f5(0xac)]();const _0x53ea4d=_0x43df9e['target'];openMetaCodeSelector(_0xf394af,_0x2bda4f,_0x316dd5=>{const _0x5d0156=_0x8ac2f5;let _0x19ec87=_0x316dd5?_0x316dd5[_0x1e3ab4[_0x5d0156(0xb3)]]:'',_0x5b4d65=_0x19ec87;_0x316dd5&&_0x1e3ab4[_0x5d0156(0xa1)]&&(_0x5b4d65=_0x316dd5[_0x1e3ab4[_0x5d0156(0xa1)]]),_0x53ea4d[_0x5d0156(0xae)]=_0x5b4d65,(_0x5d0156(0xaa)==_0x6c7d33[_0x5d0156(0xa6)][_0x5d0156(0xb9)]()?_0x6c7d33[_0x5d0156(0xa9)]['querySelector'](_0x5d0156(0xb0)+_0xf394af[_0x5d0156(0xb6)]+'\x22]'):_0x6c7d33[_0x5d0156(0xa9)][_0x5d0156(0x9e)]('form\x20[name=\x22'+_0xf394af[_0x5d0156(0xb6)]+'\x22]'))[_0x5d0156(0xae)]=_0x19ec87,_0x53ea4d[_0x5d0156(0x9c)](new Event(_0x5d0156(0xa8),{'bubbles':!0x0})),_0x53ea4d[_0x5d0156(0x9c)](new CustomEvent(_0x5d0156(0xb4),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0xf394af['name'],'operator':_0x1403c1,'value':_0x19ec87}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x3355(_0x3fde97,_0x42b95f){const _0x177303=a0_0x1773();return a0_0x3355=function(_0x3355c4,_0x4e6081){_0x3355c4=_0x3355c4-0xd4;let _0xb227e=_0x177303[_0x3355c4];return _0xb227e;},a0_0x3355(_0x3fde97,_0x42b95f);}(function(_0x17ba91,_0x22ae17){const _0x38cf9a=a0_0x3355,_0x207faf=_0x17ba91();while(!![]){try{const _0x1359ca=parseInt(_0x38cf9a(0xf0))/0x1*(-parseInt(_0x38cf9a(0xeb))/0x2)+-parseInt(_0x38cf9a(0xe9))/0x3*(parseInt(_0x38cf9a(0xd8))/0x4)+-parseInt(_0x38cf9a(0xd4))/0x5+parseInt(_0x38cf9a(0xe6))/0x6*(parseInt(_0x38cf9a(0xee))/0x7)+parseInt(_0x38cf9a(0xed))/0x8*(parseInt(_0x38cf9a(0xd6))/0x9)+-parseInt(_0x38cf9a(0xef))/0xa+parseInt(_0x38cf9a(0xe5))/0xb*(parseInt(_0x38cf9a(0xe7))/0xc);if(_0x1359ca===_0x22ae17)break;else _0x207faf['push'](_0x207faf['shift']());}catch(_0x42796a){_0x207faf['push'](_0x207faf['shift']());}}}(a0_0x1773,0xbef81));import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function a0_0x1773(){const _0x2c9dc9=['23496YFSCWZ','6UOdmUv','17568wMCLtv','form\x20[name=\x22','69EeAAnB','ox-grid-header','1340038WiBGIG','target','88mWuRDa','5117133gMQwqh','7276390HlYCPo','1NKdrbv','6468060xWqVpz','tMenu','391293BiyosM','querySelector','150068FZxidL','toLowerCase','tagName','dispatchEvent','stopPropagation','nameField','tTitle','change','options','name','select_item','renderRoot','value'];a0_0x1773=function(){return _0x2c9dc9;};return a0_0x1773();}function openMetaObjectSelector(_0x1fed25,_0x548a59,_0x46c8cc){const _0x37cfef=a0_0x3355;var _0x3cbcca=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x548a59}
|
|
4
|
+
.options=${_0x1fed25['options']}
|
|
5
|
+
.confirmCallback=${_0x46c8cc}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x3cbcca,{'backdrop':!0x0,'size':'large','title':_0x1fed25[_0x37cfef(0xe0)]['selectorName']?TermsUtil[_0x37cfef(0xd5)](_0x1fed25[_0x37cfef(0xe0)]['selectorName']):TermsUtil[_0x37cfef(0xde)](_0x37cfef(0xe2))});}export const FilterFormMetaObjectSelect=(_0xc2f30f,_0x30acaf,_0x307cff)=>{const _0x6ff552=a0_0x3355,_0x37febb=_0xc2f30f[_0x6ff552(0xe0)],{operator:_0x35bb60='eq'}=_0xc2f30f;let _0x4a1d49=_0x30acaf?_0x30acaf['id']:'',_0x3748ec=_0x30acaf?_0x30acaf[_0x37febb[_0x6ff552(0xdd)]]:'';return'eq'===_0x35bb60?html`
|
|
8
|
+
<input name='${_0xc2f30f[_0x6ff552(0xe1)]}' .value=${_0x4a1d49} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0xc2f30f[_0x6ff552(0xe1)]}_disp'
|
|
13
|
+
.value=${_0x3748ec}
|
|
14
|
+
@click=${_0x4f3040=>{const _0x2e385c=_0x6ff552;_0x4f3040[_0x2e385c(0xdc)]();const _0x503499=_0x4f3040[_0x2e385c(0xec)];openMetaObjectSelector(_0xc2f30f,_0x30acaf,_0x37aa48=>{const _0x22390b=_0x2e385c;let _0x5b5942=_0x37aa48?_0x37aa48['id']:'',_0x1d514e=_0x37aa48?_0x37aa48[_0x37febb['nameField']]:'';_0x503499[_0x22390b(0xe4)]=_0x1d514e,(_0x22390b(0xea)==_0x307cff[_0x22390b(0xda)][_0x22390b(0xd9)]()?_0x307cff[_0x22390b(0xe3)][_0x22390b(0xd7)]('[name=\x22'+_0xc2f30f[_0x22390b(0xe1)]+'\x22]'):_0x307cff['renderRoot'][_0x22390b(0xd7)](_0x22390b(0xe8)+_0xc2f30f[_0x22390b(0xe1)]+'\x22]'))['value']=_0x5b5942,_0x503499[_0x22390b(0xdb)](new Event(_0x22390b(0xdf),{'bubbles':!0x0})),_0x503499[_0x22390b(0xdb)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0xc2f30f['name'],'operator':_0x35bb60,'value':_0x5b5942}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2dd906,_0x4e0779){const _0x5240c4=a0_0x2ed7,_0x484003=_0x2dd906();while(!![]){try{const _0x4cfaa8=parseInt(_0x5240c4(0xb8))/0x1*(parseInt(_0x5240c4(0xc9))/0x2)+parseInt(_0x5240c4(0xc4))/0x3*(-parseInt(_0x5240c4(0xc8))/0x4)+-parseInt(_0x5240c4(0xca))/0x5*(parseInt(_0x5240c4(0xbe))/0x6)+-parseInt(_0x5240c4(0xcc))/0x7+parseInt(_0x5240c4(0xba))/0x8*(parseInt(_0x5240c4(0xaf))/0x9)+parseInt(_0x5240c4(0xcb))/0xa+parseInt(_0x5240c4(0xbf))/0xb*(parseInt(_0x5240c4(0xb2))/0xc);if(_0x4cfaa8===_0x4e0779)break;else _0x484003['push'](_0x484003['shift']());}catch(_0x4452f4){_0x484003['push'](_0x484003['shift']());}}}(a0_0x364c,0x6a6bf));import'../selector/meta-object-selector-popup';function a0_0x2ed7(_0x1d6ea1,_0x2d74fd){const _0x364c45=a0_0x364c();return a0_0x2ed7=function(_0x2ed75a,_0x1a7ace){_0x2ed75a=_0x2ed75a-0xae;let _0x5f0cec=_0x364c45[_0x2ed75a];return _0x5f0cec;},a0_0x2ed7(_0x1d6ea1,_0x2d74fd);}import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x364c(){const _0x3cb2bd=['large','tagName','10CGZjRf','filter','88LQGpFD','renderRoot','selectorName','tMenu','6PXlYfb','2497fPBJsV','value','record','tTitle','stopPropagation','2444703ZrIxZr','display','querySelector','change','4PgOYvf','110490jqcLeD','3679765lhEXPh','5054720SrsbVT','3086328lLnZxF','select_item','options','[name=\x22','codes','dispField','346770PKbtiu','dispatchEvent','form\x20[name=\x22','50004pWzKrY','length','name','target'];a0_0x364c=function(){return _0x3cb2bd;};return a0_0x364c();}import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x150029,_0x12efd2,_0x4e7456){const _0x4b82c4=a0_0x2ed7;var _0x237d9d=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x12efd2}
|
|
4
|
+
.options=${_0x150029[_0x4b82c4(0xc1)][_0x4b82c4(0xce)]}
|
|
5
|
+
.confirmCallback=${_0x4e7456}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x237d9d,{'backdrop':!0x0,'size':_0x4b82c4(0xb6),'title':_0x150029[_0x4b82c4(0xc1)][_0x4b82c4(0xce)]['selectorName']?TermsUtil[_0x4b82c4(0xbd)](_0x150029[_0x4b82c4(0xc1)][_0x4b82c4(0xce)][_0x4b82c4(0xbc)]):TermsUtil[_0x4b82c4(0xc2)](_0x4b82c4(0xcd))});}export const FilterGristMetaCodeSelect=(_0xb4ca12,_0x3aabfc,_0xbcb122)=>{const _0x5d6eae=a0_0x2ed7,_0x214d2e=_0xb4ca12[_0x5d6eae(0xb9)],_0x461329=_0xb4ca12[_0x5d6eae(0xc1)][_0x5d6eae(0xce)],_0x408be3=_0x461329['codes']&&_0x461329[_0x5d6eae(0xd0)][_0x5d6eae(0xb3)]>0x0?_0x461329[_0x5d6eae(0xd0)]:void 0x0,{operator:_0x1d35a4='eq'}=_0x214d2e;let _0x485a00=_0x3aabfc||'',_0x144d7a=_0x3aabfc||'';if(_0x461329['dispField']&&_0x3aabfc&&_0x408be3){let _0xe87ba1=_0x408be3[_0x5d6eae(0xb9)](_0x26e4e9=>_0x26e4e9[_0x5d6eae(0xc0)]==_0x3aabfc);_0xe87ba1&&_0xe87ba1[_0x5d6eae(0xb3)]>0x0&&(_0x144d7a=_0xe87ba1[0x0][_0x5d6eae(0xc5)]);}return'eq'===_0x1d35a4?html`
|
|
8
|
+
<input name='${_0xb4ca12['name']}' .value=${_0x485a00} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0xb4ca12[_0x5d6eae(0xb4)]}_disp'
|
|
13
|
+
.value=${_0x144d7a}
|
|
14
|
+
@click=${_0x1fd359=>{const _0x351394=_0x5d6eae;_0x1fd359[_0x351394(0xc3)]();const _0x27f239=_0x1fd359[_0x351394(0xb5)];openMetaCodeSelector(_0xb4ca12,_0x3aabfc,_0x1adda2=>{const _0xa69849=_0x351394;let _0x2efb3=_0x1adda2?_0x1adda2[_0x461329['codeField']]:'',_0x58b852=_0x2efb3;_0x1adda2&&_0x461329['dispField']&&(_0x58b852=_0x1adda2[_0x461329[_0xa69849(0xae)]]),_0x27f239[_0xa69849(0xc0)]=_0x58b852,('ox-grid-header'==_0xbcb122[_0xa69849(0xb7)]['toLowerCase']()?_0xbcb122[_0xa69849(0xbb)]['querySelector'](_0xa69849(0xcf)+_0x214d2e['name']+'\x22]'):_0xbcb122[_0xa69849(0xbb)][_0xa69849(0xc6)](_0xa69849(0xb1)+_0x214d2e[_0xa69849(0xb4)]+'\x22]'))[_0xa69849(0xc0)]=_0x2efb3,_0x27f239['dispatchEvent'](new Event(_0xa69849(0xc7),{'bubbles':!0x0})),_0x27f239[_0xa69849(0xb0)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0xb4ca12[_0xa69849(0xb4)],'operator':_0x1d35a4,'value':_0x2efb3}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d2ae3,_0x31459d){const _0x28b59a=a0_0x1221,_0x3d7e6e=_0x1d2ae3();while(!![]){try{const _0x112f25=-parseInt(_0x28b59a(0xd8))/0x1+-parseInt(_0x28b59a(0xca))/0x2+parseInt(_0x28b59a(0xe3))/0x3+-parseInt(_0x28b59a(0xe0))/0x4*(-parseInt(_0x28b59a(0xda))/0x5)+parseInt(_0x28b59a(0xd7))/0x6*(parseInt(_0x28b59a(0xe1))/0x7)+-parseInt(_0x28b59a(0xdb))/0x8*(parseInt(_0x28b59a(0xcd))/0x9)+parseInt(_0x28b59a(0xe2))/0xa*(-parseInt(_0x28b59a(0xd6))/0xb);if(_0x112f25===_0x31459d)break;else _0x3d7e6e['push'](_0x3d7e6e['shift']());}catch(_0x48f7e3){_0x3d7e6e['push'](_0x3d7e6e['shift']());}}}(a0_0x1dec,0x9a13d));import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function a0_0x1221(_0x1bfa4c,_0x4b8ae1){const _0x1dec33=a0_0x1dec();return a0_0x1221=function(_0x1221cc,_0x542b7f){_0x1221cc=_0x1221cc-0xc9;let _0x476c92=_0x1dec33[_0x1221cc];return _0x476c92;},a0_0x1221(_0x1bfa4c,_0x4b8ae1);}function openMetaObjectSelector(_0x275a32,_0x3cb714,_0x317712){const _0x48d60e=a0_0x1221;var _0x3074d7=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x3cb714}
|
|
4
|
+
.options=${_0x275a32[_0x48d60e(0xd3)][_0x48d60e(0xdf)]}
|
|
5
|
+
.confirmCallback=${_0x317712}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x3074d7,{'backdrop':!0x0,'size':'large','title':_0x275a32[_0x48d60e(0xd3)]['options'][_0x48d60e(0xd2)]?TermsUtil['tMenu'](_0x275a32['record'][_0x48d60e(0xdf)][_0x48d60e(0xd2)]):TermsUtil[_0x48d60e(0xcf)](_0x48d60e(0xcc))});}export const FilterGristMetaObjectSelect=(_0x179f0f,_0x492d3a,_0x3db280)=>{const _0x2886c3=a0_0x1221,_0x39f9ea=_0x179f0f['filter'],{operator:_0x32a2f9='eq'}=_0x39f9ea,_0x3d0af3=_0x179f0f[_0x2886c3(0xd3)][_0x2886c3(0xdf)];let _0x55f721=_0x492d3a?_0x492d3a['id']:'',_0x43635d=_0x492d3a?_0x492d3a[_0x3d0af3['nameField']]:'';return'eq'===_0x32a2f9?html`
|
|
8
|
+
<input name='${_0x179f0f[_0x2886c3(0xcb)]}' .value=${_0x55f721} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x179f0f[_0x2886c3(0xcb)]}_disp'
|
|
13
|
+
.value=${_0x43635d}
|
|
14
|
+
@click=${_0x55dbd1=>{const _0x5e3287=_0x2886c3;_0x55dbd1[_0x5e3287(0xd1)]();const _0x175169=_0x55dbd1[_0x5e3287(0xd5)];openMetaObjectSelector(_0x179f0f,_0x492d3a,_0xac4653=>{const _0xd411e2=_0x5e3287;let _0x37c7b1=_0xac4653?_0xac4653['id']:'',_0x5d49b7=_0xac4653?_0xac4653[_0x3d0af3[_0xd411e2(0xce)]]:'';_0x175169[_0xd411e2(0xc9)]=_0x5d49b7,('ox-grid-header'==_0x3db280[_0xd411e2(0xdc)]['toLowerCase']()?_0x3db280[_0xd411e2(0xdd)][_0xd411e2(0xde)]('[name=\x22'+_0x39f9ea[_0xd411e2(0xcb)]+'\x22]'):_0x3db280[_0xd411e2(0xdd)][_0xd411e2(0xde)](_0xd411e2(0xd0)+_0x39f9ea[_0xd411e2(0xcb)]+'\x22]'))[_0xd411e2(0xc9)]=_0x37c7b1,_0x175169[_0xd411e2(0xd9)](new Event(_0xd411e2(0xd4),{'bubbles':!0x0})),_0x175169[_0xd411e2(0xd9)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x179f0f[_0xd411e2(0xcb)],'operator':_0x32a2f9,'value':_0x37c7b1}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x1dec(){const _0x2170d6=['renderRoot','querySelector','options','8zuvBdc','7lHIyto','380eLmfsV','3270006byDkoJ','value','696590spihLI','name','select_item','2940579dWBWDJ','nameField','tTitle','form\x20[name=\x22','stopPropagation','selectorName','record','change','target','172513zqrMTZ','6005850vqKFUA','215490EPpfRu','dispatchEvent','66485qjpCCw','8ARXwxQ','tagName'];a0_0x1dec=function(){return _0x2170d6;};return a0_0x1dec();}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
function a0_0x2c4e(_0x45f3f1,_0x16b41d){const _0x4557bd=a0_0x4557();return a0_0x2c4e=function(_0x2c4ebc,_0x1bc164){_0x2c4ebc=_0x2c4ebc-0x73;let _0x3e0325=_0x4557bd[_0x2c4ebc];return _0x3e0325;},a0_0x2c4e(_0x45f3f1,_0x16b41d);}const a0_0x4823cb=a0_0x2c4e;function a0_0x4557(){const _0x5a1817=['keys','editorTemplate','3414980McRtVO','column','options','record','stopPropagation','codes','select_item','214866KWDNPK','1371336xYIhLL','value','1563XzahKK','display','tTitle','22mxQXzf','define','openSelector','fieldMap','2351838cBbDGc','length','150JEPORI','filter','bind','dispatchEvent','popup','properties','5OTVjBz','forEach','large','_onkeydown','dispField','7kKbZZV','row','335682jTHSBd','3975376uTQhEu','push'];a0_0x4557=function(){return _0x5a1817;};return a0_0x4557();}(function(_0x4b0e52,_0x2f54c0){const _0x7eb822=a0_0x2c4e,_0xbcefa8=_0x4b0e52();while(!![]){try{const _0x555717=-parseInt(_0x7eb822(0x77))/0x1+-parseInt(_0x7eb822(0x83))/0x2*(parseInt(_0x7eb822(0x7a))/0x3)+-parseInt(_0x7eb822(0x78))/0x4*(-parseInt(_0x7eb822(0x89))/0x5)+parseInt(_0x7eb822(0x81))/0x6+parseInt(_0x7eb822(0x8e))/0x7*(parseInt(_0x7eb822(0x91))/0x8)+parseInt(_0x7eb822(0x90))/0x9+-parseInt(_0x7eb822(0x95))/0xa*(parseInt(_0x7eb822(0x7d))/0xb);if(_0x555717===_0x2f54c0)break;else _0xbcefa8['push'](_0xbcefa8['shift']());}catch(_0x304438){_0xbcefa8['push'](_0xbcefa8['shift']());}}}(a0_0x4557,0x5113a));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../../selector/meta-object-selector-popup';export class GristEditorMetaCodeSelector extends OxGristEditor{static get[a0_0x4823cb(0x88)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x4823cb(0x94)](){const _0x58faa6=a0_0x4823cb;let _0x38bf2e='';if(this[_0x58faa6(0x96)][_0x58faa6(0x73)]&&this[_0x58faa6(0x96)][_0x58faa6(0x73)][_0x58faa6(0x97)]){if(this[_0x58faa6(0x96)]['record'][_0x58faa6(0x97)][_0x58faa6(0x8d)]){let _0x249273=this[_0x58faa6(0x96)][_0x58faa6(0x73)][_0x58faa6(0x97)]['codes']||[];if(this['value']&&this[_0x58faa6(0x79)][_0x58faa6(0x82)]>0x0){let _0x29aba9=_0x249273[_0x58faa6(0x84)](_0x334d96=>_0x334d96['value']===this[_0x58faa6(0x79)]);_0x38bf2e=_0x29aba9&&_0x29aba9[_0x58faa6(0x82)]>0x0?_0x29aba9[0x0][_0x58faa6(0x7b)]:'';}}else _0x38bf2e=this[_0x58faa6(0x79)];}else _0x38bf2e='';return html`
|
|
2
|
+
${_0x38bf2e?html` <span tabindex="0" style="flex:1">${_0x38bf2e}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async['firstUpdated'](){super['firstUpdated']();}['_onclick'](_0x2a70f7){const _0x5105e9=a0_0x4823cb;_0x2a70f7[_0x5105e9(0x74)](),this[_0x5105e9(0x7f)]();}[a0_0x4823cb(0x8c)](_0x51c961){const _0x4a4d82=a0_0x4823cb;'Enter'==_0x51c961['key']&&(_0x51c961[_0x4a4d82(0x74)](),this[_0x4a4d82(0x7f)]());}['openSelector'](){const _0x21635d=a0_0x4823cb;this[_0x21635d(0x87)]&&delete this[_0x21635d(0x87)];var {selectorName:_0x864d0=TermsUtil[_0x21635d(0x7c)](_0x21635d(0x76))}=this[_0x21635d(0x96)]['record'][_0x21635d(0x97)]||{},_0x1e1d83=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this['value']}
|
|
6
|
+
.options=${this[_0x21635d(0x96)][_0x21635d(0x73)][_0x21635d(0x97)]}
|
|
7
|
+
.confirmCallback=${(_0x559bbb=>{const _0x350856=_0x21635d;let _0x45ebb5=this[_0x350856(0x96)][_0x350856(0x73)][_0x350856(0x97)]['codeField'],_0x35b9e8=this[_0x350856(0x96)][_0x350856(0x73)][_0x350856(0x97)]['dispField'],_0x216156=this[_0x350856(0x96)]['record'][_0x350856(0x97)][_0x350856(0x80)]||{};if(this[_0x350856(0x96)][_0x350856(0x73)][_0x350856(0x97)][_0x350856(0x75)]||(this[_0x350856(0x96)][_0x350856(0x73)][_0x350856(0x97)][_0x350856(0x75)]=[]),_0x559bbb){let _0x32e12c=this[_0x350856(0x96)]['record'][_0x350856(0x97)]['codes'][_0x350856(0x84)](_0x59720a=>_0x59720a['value']==_0x559bbb[_0x45ebb5]);_0x32e12c&&0x0!=_0x32e12c[_0x350856(0x82)]||this['column']['record'][_0x350856(0x97)]['codes'][_0x350856(0x92)]({'value':_0x559bbb[_0x45ebb5],'display':_0x559bbb[_0x35b9e8]});}this[_0x350856(0x86)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['value'],'after':_0x559bbb?_0x559bbb[_0x45ebb5]:null,'record':this[_0x350856(0x73)],'column':this[_0x350856(0x96)],'row':this[_0x350856(0x8f)]}})),Object[_0x350856(0x93)](_0x216156)[_0x350856(0x8a)](_0x3630ba=>{const _0x37970a=_0x350856;this[_0x37970a(0x86)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['record'][_0x216156[_0x3630ba]],'after':_0x559bbb?_0x559bbb[_0x3630ba]:null,'record':this['record'],'column':{'name':_0x216156[_0x3630ba]},'row':this['row']}}));});})[_0x21635d(0x85)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x21635d(0x87)]=openPopup(_0x1e1d83,{'backdrop':!0x0,'size':_0x21635d(0x8b),'title':TermsUtil['tMenu'](_0x864d0)});}}customElements[a0_0x4823cb(0x7e)]('grist-editor-meta-code-selector',GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
var a0_0x280b9e=a0_0x2e5a;(function(_0x234994,_0x341cd6){var _0x9488b6=a0_0x2e5a,_0x107167=_0x234994();while(!![]){try{var _0x238e05=-parseInt(_0x9488b6(0xc0))/0x1+-parseInt(_0x9488b6(0xb0))/0x2*(parseInt(_0x9488b6(0xb9))/0x3)+-parseInt(_0x9488b6(0xb1))/0x4+-parseInt(_0x9488b6(0xad))/0x5*(parseInt(_0x9488b6(0xa5))/0x6)+-parseInt(_0x9488b6(0xb8))/0x7*(parseInt(_0x9488b6(0xb3))/0x8)+parseInt(_0x9488b6(0xa7))/0x9+parseInt(_0x9488b6(0xba))/0xa*(parseInt(_0x9488b6(0xbd))/0xb);if(_0x238e05===_0x341cd6)break;else _0x107167['push'](_0x107167['shift']());}catch(_0x501843){_0x107167['push'](_0x107167['shift']());}}}(a0_0x4b38,0x4bd4b));import{html}from'lit';function a0_0x4b38(){var _0x32a172=['forEach','2209329DJxAeS','column','grist-editor-meta-object-selector','value','openSelector','_onkeydown','25AAsxMf','row','tTitle','2uOdfuv','2468880czNSyU','nameField','1392296vTMwYx','editorTemplate','firstUpdated','select_item','stopPropagation','21BScsWX','1718649lXeOQt','5953070ngHxVN','_onclick','field-change','44aIJfDl','define','bind','443187GHPPUX','popup','options','fieldMap','record','192846dQcWqn'];a0_0x4b38=function(){return _0x32a172;};return a0_0x4b38();}import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';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_0x280b9e(0xb4)](){var _0x62eb1b=a0_0x280b9e;let _0x44d184='';return this[_0x62eb1b(0xaa)]&&this[_0x62eb1b(0xa8)][_0x62eb1b(0xa4)]['options']&&(_0x44d184=this['value'][this[_0x62eb1b(0xa8)]['record'][_0x62eb1b(0xa2)][_0x62eb1b(0xb2)]]),html`
|
|
2
|
+
${this['value']?html` <span tabindex="0" style="flex:1">${_0x44d184}</span> `:html`<span tabindex="0">${_0x44d184}</span>`}
|
|
3
|
+
`;}async[a0_0x280b9e(0xb5)](){super['firstUpdated']();}[a0_0x280b9e(0xbb)](_0x4c2400){var _0x1ba919=a0_0x280b9e;_0x4c2400[_0x1ba919(0xb7)](),this[_0x1ba919(0xab)]();}[a0_0x280b9e(0xac)](_0x35db2a){var _0x116a12=a0_0x280b9e;'Enter'==_0x35db2a['key']&&(_0x35db2a[_0x116a12(0xb7)](),this[_0x116a12(0xab)]());}[a0_0x280b9e(0xab)](){var _0x535610=a0_0x280b9e;this['popup']&&delete this['popup'];var {selectorName:_0x2acd8b=TermsUtil[_0x535610(0xaf)](_0x535610(0xb6))}=this['column'][_0x535610(0xa4)][_0x535610(0xa2)]||{},_0x467d32=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
5
|
.value=${this['value']}
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
6
|
+
.options=${this[_0x535610(0xa8)][_0x535610(0xa4)][_0x535610(0xa2)]}
|
|
7
|
+
.confirmCallback=${(_0x57e87f=>{var _0x3843f6=_0x535610;let _0x3c24fd=this['column'][_0x3843f6(0xa4)][_0x3843f6(0xa2)][_0x3843f6(0xa3)]||{};this['dispatchEvent'](new CustomEvent(_0x3843f6(0xbc),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x3843f6(0xaa)],'after':_0x57e87f||null,'record':this[_0x3843f6(0xa4)],'column':this['column'],'row':this[_0x3843f6(0xae)]}})),Object['keys'](_0x3c24fd)[_0x3843f6(0xa6)](_0x4fef0c=>{var _0x2850ce=_0x3843f6;this['dispatchEvent'](new CustomEvent(_0x2850ce(0xbc),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x2850ce(0xa4)][_0x3c24fd[_0x4fef0c]],'after':_0x57e87f?_0x57e87f[_0x4fef0c]:null,'record':this['record'],'column':{'name':_0x3c24fd[_0x4fef0c]},'row':this[_0x2850ce(0xae)]}}));});})[_0x535610(0xbf)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x535610(0xc1)]=openPopup(_0x467d32,{'backdrop':!0x0,'size':'large','title':TermsUtil['tMenu'](_0x2acd8b)});}}function a0_0x2e5a(_0x509e54,_0x173db9){var _0x4b3869=a0_0x4b38();return a0_0x2e5a=function(_0x2e5a4f,_0x48666a){_0x2e5a4f=_0x2e5a4f-0xa2;var _0xa46970=_0x4b3869[_0x2e5a4f];return _0xa46970;},a0_0x2e5a(_0x509e54,_0x173db9);}customElements[a0_0x280b9e(0xbe)](a0_0x280b9e(0xa9),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a6c4f,_0x1658a9){const _0x37d5e0=a0_0x4b50,_0x45b607=_0x5a6c4f();while(!![]){try{const _0x37aa1b=parseInt(_0x37d5e0(0x107))/0x1+-parseInt(_0x37d5e0(0x11a))/0x2*(-parseInt(_0x37d5e0(0x112))/0x3)+parseInt(_0x37d5e0(0x10a))/0x4*(-parseInt(_0x37d5e0(0x106))/0x5)+parseInt(_0x37d5e0(0x108))/0x6+-parseInt(_0x37d5e0(0x10f))/0x7+parseInt(_0x37d5e0(0x10b))/0x8+parseInt(_0x37d5e0(0x115))/0x9*(parseInt(_0x37d5e0(0x10e))/0xa);if(_0x37aa1b===_0x1658a9)break;else _0x45b607['push'](_0x45b607['shift']());}catch(_0x9b07da){_0x45b607['push'](_0x45b607['shift']());}}}(a0_0x3a5e,0x60319));function a0_0x4b50(_0x1f168e,_0x1a5969){const _0x3a5ebf=a0_0x3a5e();return a0_0x4b50=function(_0x4b5069,_0x3fe3e3){_0x4b5069=_0x4b5069-0x106;let _0x4a9972=_0x3a5ebf[_0x4b5069];return _0x4a9972;},a0_0x4b50(_0x1f168e,_0x1a5969);}import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x3a5e(){const _0x24b50d=['95UNuknc','574815TkIheh','212328FEZWuw','dispField','143272DnZBoy','453184MloTtL','length','target','10RuDTtY','3270120KzjxjJ','options','record','90tGxVWX','value','display','2785050yyMNXk','codes','setAttribute','textContent','removeAttribute','37694MZSvzp'];a0_0x3a5e=function(){return _0x24b50d;};return a0_0x3a5e();}function onmouseover(_0xabb3ab){const _0x3ab886=a0_0x4b50,_0x14a44f=_0xabb3ab['target'];detectOverflow(_0x14a44f)&&_0x14a44f[_0x3ab886(0x117)]('data-tooltip',_0x14a44f[_0x3ab886(0x118)]);}function onmouseout(_0x10c71c){const _0x3ad92f=a0_0x4b50;_0x10c71c[_0x3ad92f(0x10d)][_0x3ad92f(0x119)]('data-tooltip');}export const GristRendererMetaCodeSelector=(_0x1b348f,_0x1aa9af,_0x2fa454,_0x346a60,_0x67a608)=>{const _0x3d9939=a0_0x4b50;let _0x17fb75='';if(_0x1aa9af[_0x3d9939(0x111)]&&_0x1aa9af[_0x3d9939(0x111)][_0x3d9939(0x110)]){if(_0x1aa9af[_0x3d9939(0x111)][_0x3d9939(0x110)][_0x3d9939(0x109)]){if(_0x1aa9af[_0x3d9939(0x111)]['options'][_0x3d9939(0x116)]||(_0x1aa9af[_0x3d9939(0x111)][_0x3d9939(0x110)]['codes']=[]),_0x1b348f&&_0x1b348f['length']>0x0){let _0x51a15a=_0x1aa9af['record'][_0x3d9939(0x110)][_0x3d9939(0x116)]['filter'](_0x151f18=>_0x151f18[_0x3d9939(0x113)]===_0x1b348f);_0x17fb75=_0x51a15a&&_0x51a15a[_0x3d9939(0x10c)]>0x0?_0x51a15a[0x0][_0x3d9939(0x114)]:_0x1b348f;}}else _0x17fb75=_0x1b348f;}else _0x17fb75='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x17fb75}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x343842,_0x1b2d36){const _0x184405=a0_0x553f,_0x27439e=_0x343842();while(!![]){try{const _0x3934ac=-parseInt(_0x184405(0x1b5))/0x1+-parseInt(_0x184405(0x1ac))/0x2*(parseInt(_0x184405(0x1ad))/0x3)+parseInt(_0x184405(0x1b7))/0x4+parseInt(_0x184405(0x1b8))/0x5+parseInt(_0x184405(0x1b4))/0x6*(parseInt(_0x184405(0x1a7))/0x7)+-parseInt(_0x184405(0x1af))/0x8*(-parseInt(_0x184405(0x1ae))/0x9)+-parseInt(_0x184405(0x1b6))/0xa*(parseInt(_0x184405(0x1a8))/0xb);if(_0x3934ac===_0x1b2d36)break;else _0x27439e['push'](_0x27439e['shift']());}catch(_0x1904d6){_0x27439e['push'](_0x27439e['shift']());}}}(a0_0x541b,0x9933f));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x459e15){const _0x1c225c=a0_0x553f,_0x244f96=_0x459e15[_0x1c225c(0x1ab)];detectOverflow(_0x244f96)&&_0x244f96['setAttribute'](_0x1c225c(0x1b1),_0x244f96[_0x1c225c(0x1aa)]);}function a0_0x541b(){const _0x30cf34=['5312087JCYEZs','options','textContent','target','178sUUGuJ','18807afQJBI','4566411wlQVcT','8cgdEJN','record','data-tooltip','removeAttribute','nameField','109680YgpTjL','280956ftrAbd','30AGUHdH','4039764OnzadD','3333235rIplnJ','280gIYnNb'];a0_0x541b=function(){return _0x30cf34;};return a0_0x541b();}function onmouseout(_0x3d7a06){const _0x23e1f1=a0_0x553f;_0x3d7a06[_0x23e1f1(0x1ab)][_0x23e1f1(0x1b2)]('data-tooltip');}function a0_0x553f(_0x5739e7,_0x24a983){const _0x541bcc=a0_0x541b();return a0_0x553f=function(_0x553fbc,_0xe248ca){_0x553fbc=_0x553fbc-0x1a7;let _0x2e7ca9=_0x541bcc[_0x553fbc];return _0x2e7ca9;},a0_0x553f(_0x5739e7,_0x24a983);}export const GristRendererMetaObjectSelector=(_0x2a8e54,_0x16acbe,_0x30938d,_0x2a6f9e,_0x5e804e)=>{const _0x52726b=a0_0x553f;let _0x2f4ba9='';return _0x2a8e54&&_0x16acbe[_0x52726b(0x1b0)][_0x52726b(0x1a9)]&&(_0x2f4ba9=_0x2a8e54[_0x16acbe[_0x52726b(0x1b0)][_0x52726b(0x1a9)][_0x52726b(0x1b3)]]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x2f4ba9}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4f99e5=a0_0x1cec;(function(_0x543953,_0x126f40){const _0x165324=a0_0x1cec,_0x5a2a50=_0x543953();while(!![]){try{const _0x500a6e=parseInt(_0x165324(0x15a))/0x1+-parseInt(_0x165324(0x168))/0x2*(-parseInt(_0x165324(0x138))/0x3)+parseInt(_0x165324(0x16a))/0x4+-parseInt(_0x165324(0x11b))/0x5+-parseInt(_0x165324(0x162))/0x6+parseInt(_0x165324(0x123))/0x7*(-parseInt(_0x165324(0x120))/0x8)+-parseInt(_0x165324(0x139))/0x9*(-parseInt(_0x165324(0x167))/0xa);if(_0x500a6e===_0x126f40)break;else _0x5a2a50['push'](_0x5a2a50['shift']());}catch(_0x3c5626){_0x5a2a50['push'](_0x5a2a50['shift']());}}}(a0_0x4e6c,0x21bb0));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{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x1cec(_0x2252fb,_0x51037c){const _0x4e6c18=a0_0x4e6c();return a0_0x1cec=function(_0x1cecd5,_0x3e520c){_0x1cecd5=_0x1cecd5-0x115;let _0x37936c=_0x4e6c18[_0x1cecd5];return _0x37936c;},a0_0x1cec(_0x2252fb,_0x51037c);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x4f99e5(0x11c)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0xfb152e=a0_0x4913;(function(_0x56f30e,_0x56ade6){const _0x304579=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_0x4f99e5(0x126)](){const _0x21b329=a0_0x4f99e5;this[_0x21b329(0x15f)]=this[_0x21b329(0x156)]['filters']?this['options'][_0x21b329(0x121)]:this[_0x21b329(0x148)]&&this['basicArgs'][_0x21b329(0x121)]?this[_0x21b329(0x148)]['filters']:[];let _0x1190b8=this[_0x21b329(0x156)][_0x21b329(0x152)]?this[_0x21b329(0x156)][_0x21b329(0x152)]:this['basicArgs']&&this['basicArgs'][_0x21b329(0x152)]?this[_0x21b329(0x148)]['sorters']:[],_0x2dc014=this[_0x21b329(0x156)][_0x21b329(0x147)]?this['options']['filterFields']:this[_0x21b329(0x156)][_0x21b329(0x157)]?.[_0x21b329(0x117)]&&this[_0x21b329(0x156)][_0x21b329(0x157)]?.[_0x21b329(0x117)][_0x21b329(0x155)]>0x0?this[_0x21b329(0x156)][_0x21b329(0x157)][_0x21b329(0x117)]:[],_0x329f7f=this['options']['select'];if(!_0x2dc014||0x0==_0x2dc014[_0x21b329(0x155)]){let _0xc1e3d0;this[_0x21b329(0x156)][_0x21b329(0x143)]&&(_0xc1e3d0=this[_0x21b329(0x156)][_0x21b329(0x143)]),this[_0x21b329(0x156)][_0x21b329(0x146)]&&(_0xc1e3d0=this['options']['nameField']),_0xc1e3d0&&_0x2dc014[_0x21b329(0x131)]({'name':_0xc1e3d0,'operator':'eq'});}let _0x4c49b6=[...MetaApi[_0x21b329(0x160)](!0x0,!0x1)];if(_0x329f7f&&_0x329f7f[_0x21b329(0x155)]>0x0)for(let _0x261518=0x0;_0x261518<_0x329f7f['length'];_0x261518++){let {type:_0x529932='string',name:_0x536afb,hidden:_0x33ccee=!0x1,record:_0x41d66c={'align':_0x21b329(0x119)},header:_0xc9e51d,sortable:_0x42c79e=!0x1,width:_0x50c0fb=0x87,options:_0x36d276,select_opt:_0x43504c,object_opt:_0x15728a}=_0x329f7f[_0x261518];if(_0x43504c&&(_0x36d276=_0x43504c),_0x15728a&&(_0x36d276=_0x15728a),[_0x21b329(0x12c),_0x21b329(0x144)][_0x21b329(0x140)](_0x529932)?_0x529932=_0x21b329(0x12a):[_0x21b329(0x14d)][_0x21b329(0x140)](_0x529932)&&(_0x529932=_0x21b329(0x14b)),'id'==_0x536afb)_0x4c49b6['push']({'type':'string','name':_0x536afb,'hidden':!0x0});else{let _0x206791=MetaApi[_0x21b329(0x164)](_0x529932,_0x536afb,_0xc9e51d||_0x536afb,_0x41d66c[_0x21b329(0x134)]?_0x41d66c['align']:_0x21b329(0x119),!0x1,_0x42c79e,_0x50c0fb);_0x529932[_0x21b329(0x151)](_0x21b329(0x12d))&&_0x15728a&&_0x15728a[_0x21b329(0x124)]&&(_0x36d276=await MetaUiUtil[_0x21b329(0x122)](_0x529932,_0x36d276)),_0x21b329(0x129)===_0x529932?Array[_0x21b329(0x154)](_0x36d276)?_0x206791[_0x21b329(0x13b)][_0x21b329(0x156)]=_0x36d276:_0x21b329(0x125)===_0x36d276[_0x21b329(0x135)]?_0x206791[_0x21b329(0x13b)][_0x21b329(0x156)]=await ServiceUtil[_0x21b329(0x141)](_0x36d276[_0x21b329(0x16b)]?_0x36d276[_0x21b329(0x16b)]:_0x36d276[_0x21b329(0x142)]):_0x21b329(0x13a)===_0x36d276[_0x21b329(0x135)]?_0x206791[_0x21b329(0x13b)]['options']=await ServiceUtil[_0x21b329(0x161)](_0x36d276[_0x21b329(0x142)],_0x36d276['args']):'entity'===_0x36d276['type']&&(_0x206791[_0x21b329(0x13b)][_0x21b329(0x156)]=await ServiceUtil[_0x21b329(0x118)](_0x36d276[_0x21b329(0x13d)])):_0x21b329(0x12a)===_0x529932?_0x206791[_0x21b329(0x13b)][_0x21b329(0x156)]={..._0x36d276}:_0x21b329(0x14b)==_0x529932&&(_0x36d276[_0x21b329(0x16c)]&&(_0x36d276[_0x21b329(0x169)]=await ServiceUtil['getCodeByEntity'](_0x36d276)),_0x206791['record']['options']={..._0x36d276}),_0x206791[_0x21b329(0x165)]=_0x33ccee,_0x4c49b6[_0x21b329(0x131)](_0x206791);}}else _0x4c49b6[_0x21b329(0x131)](MetaApi['getGristColumnConfig2']('string',this['options']['codeField'],this[_0x21b329(0x156)]['codeField'],_0x21b329(0x119),!0x1,!0x0,0xb4)),this['options']['dispField']&&_0x4c49b6[_0x21b329(0x131)](MetaApi['getGristColumnConfig2'](_0x21b329(0x132),this[_0x21b329(0x156)][_0x21b329(0x16c)],this['options'][_0x21b329(0x16c)],_0x21b329(0x119),!0x1,!0x0,0x12c));_0x4c49b6[_0x21b329(0x13c)](_0x328dc0=>{const _0x473879=_0x21b329;let _0x3c50df=_0x2dc014[_0x473879(0x133)](_0xee3b1a=>_0x473879(0x132)==typeof _0xee3b1a?_0x328dc0[_0x473879(0x142)]==_0xee3b1a:_0x328dc0[_0x473879(0x142)]==_0xee3b1a[_0x473879(0x142)]);_0x3c50df&&_0x3c50df['length']>0x0&&(_0x328dc0[_0x473879(0x133)]=_0x473879(0x132)==typeof _0x3c50df[0x0]?_0x473879(0x117):_0x3c50df[0x0]);});let _0x582226={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0x21b329(0x163)](),'columns':_0x4c49b6,'sorters':[..._0x1190b8]};_0x582226[_0x21b329(0x11d)][_0x21b329(0x128)]={'click':_0x21b329(0x15c),'dblclick':(_0x1f7a9f,_0x5cf843,_0x353c1d,_0x17862b,_0x111663,_0x1033da)=>{const _0x2b8864=_0x21b329;this[_0x2b8864(0x12f)](_0x17862b);}},_0x582226[_0x21b329(0x11d)]['appendable']=!0x1,this['gridConfig']=_0x582226,await super['connectedCallback']();}async['firstUpdated'](){await super['firstUpdated']();}[a0_0x4f99e5(0x12e)](){const _0xb074bc=a0_0x4f99e5;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0xb074bc(0x145)]} .mode=${isMobileDevice()?_0xb074bc(0x166):'GRID'} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0xb074bc(0x150)][_0xb074bc(0x136)](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_0xfb152e=a0_0x4913;(function(_0x56f30e,_0x56ade6){const _0x304579=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[_0xb074bc(0x14a)](_0xb074bc(0x14c))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0xb074bc(0x15d)][_0xb074bc(0x136)](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0xb074bc(0x14a)](_0xb074bc(0x149))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0xb074bc(0x116)][_0xb074bc(0x136)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0xb074bc(0x129))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0xb074bc(0x11e)]['bind'](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x4f99e5(0x127)](){const _0x5bdd7a=a0_0x4f99e5;return this['shadowRoot'][_0x5bdd7a(0x158)]('#ox-grist');}async[a0_0x4f99e5(0x150)]({page:_0x54aa1a=0x0,limit:_0x313c56=0x0,sorters:_0xe1dd08=[],filters:_0x13679c=[]}){const _0x2c61ea=a0_0x4f99e5;let _0x1760e9=[...this['search_hidden_fields']];_0x13679c[_0x2c61ea(0x13c)](_0xadf0e7=>{const _0x5a661f=_0x2c61ea;let _0x5b5bad=_0x1760e9[_0x5a661f(0x133)](_0x567f8f=>_0xadf0e7['name']==_0x567f8f[_0x5a661f(0x142)]);_0x5b5bad&&_0x5b5bad[_0x5a661f(0x155)]>0x0&&delete _0x1760e9[_0xadf0e7[_0x5a661f(0x142)]],_0x1760e9[_0x5a661f(0x131)](_0xadf0e7);});let _0x2bb955=ValueUtil[_0x2c61ea(0x153)](this['options'][_0x2c61ea(0x157)]&&this[_0x2c61ea(0x156)][_0x2c61ea(0x157)][_0x2c61ea(0x13f)]||{},_0x2c61ea(0x14f),'after_set_fields'),_0x57d550=Object[_0x2c61ea(0x11a)](_0x2bb955||{}),_0x28b900=MetaApi[_0x2c61ea(0x13e)](this['gridConfig'][_0x2c61ea(0x137)][_0x2c61ea(0x133)](_0x5a40da=>!_0x57d550[_0x2c61ea(0x140)](_0x5a40da['name'])));return await MetaApi[_0x2c61ea(0x12b)](this[_0x2c61ea(0x156)][_0x2c61ea(0x14e)],_0x1760e9,_0xe1dd08,_0x54aa1a,_0x313c56,_0x28b900);}async[a0_0x4f99e5(0x15d)](_0x4d70e6){const _0x53d5c6=a0_0x4f99e5;this[_0x53d5c6(0x11f)]&&this[_0x53d5c6(0x11f)](null),closePopup(this);}async[a0_0x4f99e5(0x116)](_0x2618c6){closePopup(this);}async[a0_0x4f99e5(0x11e)](_0x498feb){const _0x65a33a=a0_0x4f99e5;let _0x38e5c7=this[_0x65a33a(0x127)][_0x65a33a(0x130)];_0x38e5c7&&0x0!=_0x38e5c7['length']?this[_0x65a33a(0x12f)](_0x38e5c7[0x0]):MetaApi['showToast'](_0x65a33a(0x15e),TermsUtil[_0x65a33a(0x159)](_0x65a33a(0x15b)));}async[a0_0x4f99e5(0x12f)](_0x2de240){const _0x1a8b9a=a0_0x4f99e5;this['confirmCallback']&&this[_0x1a8b9a(0x11f)](_0x2de240),closePopup(this);}}function a0_0x4e6c(){const _0x5327cc=['search_hidden_fields','getGristGuttersConfig','getCodeByScenario','199044DHaLlE','getGristPagination100Config','getGristColumnConfig2','hidden','LIST','3570bMmBDb','2092lxTMzi','codes','576228XWxotj','values','dispField','define','clickCancel','search','getCodeByEntity','left','keys','1216565CyKmoA','styles','rows','clickSelect','confirmCallback','18664GlFytd','filters','getGristMetaObjectOptions','455ZIzCLI','menu','code','connectedCallback','grist','handlers','select','meta-object-selector','searchByPagination','resource-object','meta-','render','selectRecord','selected','push','string','filter','align','type','bind','columns','24LWWeNN','6543knAYSl','scenario','record','forEach','args','getSelectColumns','gql','includes','getCodeSelectorData','name','codeField','object','gridConfig','nameField','filterFields','basicArgs','cancel','tButton','meta-code-selector','empty','resource-code-selector','queryName','query','fetchHandler','startsWith','sorters','getParams','isArray','length','options','menu_template','querySelector','tText','154328NKaceA','NOTHING_SELECTED','select-row-toggle','clickEmpty','info'];a0_0x4e6c=function(){return _0x5327cc;};return a0_0x4e6c();}customElements[a0_0x4f99e5(0x115)]('meta-object-selector-popup',MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x295e60=a0_0x4ec9;function a0_0x5d5c(){const _0x11f32a=['connectedCallback','578486NPnIvf','27280ljJYow','isDetail','data','getMenuMeta','2YyWUFe','parseBasicButtonConfigs','grist','filterForm','114394bgWsiO','isPage','after','runScenario','params','tTitle','dispatchEvent','split','forEach','field-change','fieldChangeHandlers','callScenario','parent_id','keys','pageUpdated','parseBasicServiceConfigs','is_popup','parseBasicTabConfigs','getParams','menuInfo','setParentId','4558240dfwXeA','executeCallScenarioButtonClick','parseBasicGridConfigs','30HaxtyK','lifecycle','fetchHandler','detail','isEmpty','3396177RVsVFO','body','name','title','excuteOpenPopupButtonClick','includes','etc','is_detail','properties','fetch','title_detail','1579674wQcWqV','openDynamicPopup','parseBasicFormConfigs','menu','active','isNotEmpty','getAndParseMenuMeta','611436ELIaYM','isElement','488BDKShg','addEventListener','etcConfig'];a0_0x5d5c=function(){return _0x11f32a;};return a0_0x5d5c();}(function(_0x46aceb,_0x1f9611){const _0x24f10b=a0_0x4ec9,_0x28485d=_0x46aceb();while(!![]){try{const _0x472755=parseInt(_0x24f10b(0x146))/0x1*(-parseInt(_0x24f10b(0x14b))/0x2)+parseInt(_0x24f10b(0x140))/0x3+parseInt(_0x24f10b(0x164))/0x4+-parseInt(_0x24f10b(0x147))/0x5+-parseInt(_0x24f10b(0x177))/0x6+-parseInt(_0x24f10b(0x14f))/0x7*(parseInt(_0x24f10b(0x142))/0x8)+parseInt(_0x24f10b(0x16c))/0x9*(parseInt(_0x24f10b(0x167))/0xa);if(_0x472755===_0x1f9611)break;else _0x28485d['push'](_0x28485d['shift']());}catch(_0x4ba5ac){_0x28485d['push'](_0x28485d['shift']());}}}(a0_0x5d5c,0x9a234));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x4ec9(_0x357cdd,_0x4817ea){const _0x5d5c3b=a0_0x5d5c();return a0_0x4ec9=function(_0x4ec9ca,_0x2ba84d){_0x4ec9ca=_0x4ec9ca-0x13b;let _0x43385e=_0x5d5c3b[_0x4ec9ca];return _0x43385e;},a0_0x4ec9(_0x357cdd,_0x4817ea);}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x6a69dd=>class extends _0x6a69dd{static get[a0_0x295e60(0x174)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x284c94=>Boolean(_0x284c94)},'is_popup':{'type':Boolean,'converter':_0x4e7e42=>Boolean(_0x4e7e42)},'is_activity':{'type':Boolean,'converter':_0xde7932=>Boolean(_0xde7932)},'is_readonly':{'type':Boolean,'converter':_0x4d27d5=>Boolean(_0x4d27d5)}};}get[a0_0x295e60(0x141)](){return!0x0===this['is_detail']||!0x0===this['is_popup'];}get[a0_0x295e60(0x148)](){const _0x103656=a0_0x295e60;return!ValueUtil[_0x103656(0x16b)](this[_0x103656(0x173)])&&this[_0x103656(0x173)];}async['connectedCallback'](){const _0x15896b=a0_0x295e60;super['connectedCallback']&&await super[_0x15896b(0x145)](),this[_0x15896b(0x143)](_0x15896b(0x158),async _0x84458a=>{const _0x26301a=_0x15896b;let {after:_0x2ddaa5,before:_0x518f76,column:_0x2a8a45,record:_0x22679b,row:_0x592b3d}=_0x84458a[_0x26301a(0x16a)],_0x32de1a=_0x2a8a45[_0x26301a(0x16e)];if(Object[_0x26301a(0x15c)](this[_0x26301a(0x159)]||{})[_0x26301a(0x171)](_0x32de1a)){let _0x4ad492,_0x596baf=(await MetaApi[_0x26301a(0x15a)](void 0x0,this[_0x26301a(0x159)][_0x32de1a],{'columnName':_0x32de1a,'column':_0x2a8a45,'record':_0x22679b,'after':_0x2ddaa5,'before':_0x518f76,'row':_0x592b3d},!0x1))[_0x26301a(0x149)][_0x26301a(0x152)]['data']['result'];if(!_0x596baf)return;_0x4ad492=this[_0x26301a(0x14d)]?this['grist'][_0x26301a(0x14d)][_0x26301a(0x16d)]:this,Object[_0x26301a(0x15c)](_0x596baf)[_0x26301a(0x157)](_0x4650dc=>{const _0x1b50d4=_0x26301a;_0x4ad492[_0x1b50d4(0x155)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x22679b,'row':_0x592b3d,'after':_0x596baf[_0x4650dc],'before':_0x22679b[_0x4650dc],'column':{'name':_0x4650dc}}}));});}});}async[a0_0x295e60(0x15d)](_0x353343,_0x2f6482,_0x5013e7){const _0x2a9800=a0_0x295e60;let _0x103a16=this['lifecycle']?.[_0x2a9800(0x153)]?this[_0x2a9800(0x168)][_0x2a9800(0x153)]:{};this[_0x2a9800(0x150)]&&this[_0x2a9800(0x13d)]&&0x0==_0x5013e7[_0x2a9800(0x13d)]&&ValueUtil[_0x2a9800(0x13e)](_0x103a16)&&this['fetch']();}get['isPopup'](){const _0x108ea2=a0_0x295e60;return!ValueUtil[_0x108ea2(0x16b)](this[_0x108ea2(0x15f)])&&this[_0x108ea2(0x15f)];}get[a0_0x295e60(0x150)](){const _0x341264=a0_0x295e60;return!this[_0x341264(0x173)]&&!this[_0x341264(0x15f)];}async[a0_0x295e60(0x13f)](){const _0x470dfa=a0_0x295e60;let _0x2195d9=await MetaApi[_0x470dfa(0x14a)](this);_0x2195d9&&(this[_0x470dfa(0x162)]=_0x2195d9[_0x470dfa(0x13c)],this[_0x470dfa(0x144)]=_0x2195d9[_0x470dfa(0x172)],this['parseBasicGridConfigs']&&this[_0x470dfa(0x166)](_0x2195d9),this['parseBasicServiceConfigs']&&this[_0x470dfa(0x15e)](_0x2195d9),this['parseBasicFormConfigs']&&this[_0x470dfa(0x13b)](_0x2195d9),this[_0x470dfa(0x160)]&&this[_0x470dfa(0x160)](_0x2195d9),this[_0x470dfa(0x14c)]&&this[_0x470dfa(0x14c)](_0x2195d9));}async[a0_0x295e60(0x175)](){const _0xd18ed7=a0_0x295e60;ValueUtil[_0xd18ed7(0x13e)](this[_0xd18ed7(0x14d)])?this['grist']['fetch']():(ValueUtil[_0xd18ed7(0x13e)](this[_0xd18ed7(0x14e)])||this[_0xd18ed7(0x169)])&&await this[_0xd18ed7(0x169)]();}async[a0_0x295e60(0x170)](_0x454beb,_0x3ad60d,_0x3b4200){const _0x4a0840=a0_0x295e60;let _0x2cad48=TermsUtil[_0x4a0840(0x154)](_0x454beb[_0x4a0840(0x16f)]);ValueUtil[_0x4a0840(0x13e)](_0x454beb[_0x4a0840(0x176)])&&(_0x2cad48=_0x2cad48+'-'+ValueUtil[_0x4a0840(0x161)](_0x3ad60d,..._0x454beb['title_detail'][_0x4a0840(0x156)]('.'))),MetaApi[_0x4a0840(0x178)](_0x2cad48,_0x454beb,_0x3ad60d,_0x3b4200);}async[a0_0x295e60(0x165)](_0x52ef36,_0x1f69c2,_0x4998d2){const _0x33bfb9=a0_0x295e60;let _0x39cf0f=await MetaApi[_0x33bfb9(0x15a)](_0x52ef36[_0x33bfb9(0x16e)],_0x52ef36[_0x33bfb9(0x16e)],_0x1f69c2);!0x1!==_0x39cf0f&&!_0x39cf0f['errors']&&ValueUtil[_0x33bfb9(0x13e)](_0x52ef36[_0x33bfb9(0x151)])&&_0x4998d2();}[a0_0x295e60(0x163)](_0x5c4fdf){const _0x304417=a0_0x295e60;this[_0x304417(0x15b)]=_0x5c4fdf,this[_0x304417(0x175)]();}};
|