@things-factory/meta-ui 6.0.135 → 6.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/bootstrap.js +31 -11
- package/client/component/filter/filter-form-meta-code-select.js +16 -0
- package/client/component/filter/filter-form-meta-object-select.js +16 -0
- package/client/component/filter/filter-grist-meta-code-select.js +16 -0
- package/client/component/filter/filter-grist-meta-object-select.js +16 -0
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +9 -0
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +9 -0
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -0
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -0
- package/client/component/selector/meta-object-selector-popup.js +40 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-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 +2 -2
- 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 +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/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/component/filter/filter-form-resource-code-select.js +0 -16
- package/client/component/filter/filter-grist-resource-code-select.js +0 -16
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +0 -11
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +0 -1
- package/client/component/selector/ox-resource-code-selector-popup.js +0 -40
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0xb4e2a=a0_0x2582;(function(_0x5aa580,_0xc991da){const _0x267c96=a0_0x2582,_0x4b1406=_0x5aa580();while(!![]){try{const _0x62263=-parseInt(_0x267c96(0x71))/0x1+parseInt(_0x267c96(0x89))/0x2*(parseInt(_0x267c96(0x7e))/0x3)+parseInt(_0x267c96(0x8a))/0x4+parseInt(_0x267c96(0x8e))/0x5*(parseInt(_0x267c96(0x79))/0x6)+-parseInt(_0x267c96(0x80))/0x7+parseInt(_0x267c96(0x74))/0x8+parseInt(_0x267c96(0x84))/0x9*(-parseInt(_0x267c96(0x81))/0xa);if(_0x62263===_0xc991da)break;else _0x4b1406['push'](_0x4b1406['shift']());}catch(_0x28c634){_0x4b1406['push'](_0x4b1406['shift']());}}}(a0_0xa0f2,0x2bfcf));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x463382 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';function a0_0x2582(_0x4e9cda,_0x54ad58){const _0xa0f214=a0_0xa0f2();return a0_0x2582=function(_0x258216,_0x30e541){_0x258216=_0x258216-0x71;let _0x115327=_0xa0f214[_0x258216];return _0x115327;},a0_0x2582(_0x4e9cda,_0x54ad58);}export const UPDATE_META_UI='UPDATE_META_UI';export const UPDATE_META_MENU_TEMPLATE=a0_0xb4e2a(0x73);var HAMBURGER;export async function setupMenuPart(_0x20e823){const _0x495d8b=a0_0xb4e2a;var {hovering:_0x5f5522=!!isMobileDevice(),slotTemplate:_0x5d72cd,portraitSlotTemplate:_0x53fe1e,landscapeSlotTemplate:_0x1df28a,position:_0xa90fdf=VIEWPART_POSITION['NAVBAR']}=_0x20e823||{};const {hovering:_0x53430a}=(await clientSettingStore[_0x495d8b(0x8c)](_0x495d8b(0x85)))?.[_0x495d8b(0x76)]||{};void 0x0!==_0x53430a&&(_0x5f5522=_0x53430a);const _0x2a4d17=_0xa90fdf==VIEWPART_POSITION[_0x495d8b(0x8d)]?_0x495d8b(0x8b):_0x495d8b(0x72),_0x565025=(_0x495d8b(0x8b)==_0x2a4d17?_0x1df28a:_0x53fe1e)||_0x5d72cd||html``;appendViewpart({'name':_0x495d8b(0x82),'viewpart':{'show':!_0x5f5522,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x5f5522,'template':html`<dynamic-menu-part .orientation=${_0x2a4d17}>${_0x565025}</dynamic-menu-part>`},'position':_0xa90fdf}),_0x5f5522&&_0x495d8b(0x72)==_0x2a4d17?HAMBURGER||(HAMBURGER={'name':'hamburger','template':html`
|
|
2
|
+
<mwc-icon @click=${_0x39394f=>toggleOverlay(_0x495d8b(0x75),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x495d8b(0x87)]},store[_0x495d8b(0x7b)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x495d8b(0x7b)]({'type':REMOVE_APP_TOOL,'name':_0x495d8b(0x7d)}),HAMBURGER=null);}function a0_0xa0f2(){const _0xacf7f=['596029TXTYnM','310hdFZtL','lite-menu-part','items','15696cawFDR','dynamic-menu','active','FRONT_END','meta[name=\x22application-name\x22]','46KOOOhu','346040XgwhLA','landscape','get','HEADERBAR','15FfEfso','180953jSyUCd','portrait','UPDATE_META_MENU_TEMPLATE','2488728LKAoxa','dynamic-menu-part','value','filter','content','3858OJrCBm','rank','dispatch','appName','hamburger','13149QFIzqk','querySelector'];a0_0xa0f2=function(){return _0xacf7f;};return a0_0xa0f2();}export async function updateMenuTemplate(_0x1ddea0){const _0x2dbe0d=a0_0xb4e2a;var _0x950810=document[_0x2dbe0d(0x7f)](_0x2dbe0d(0x88))?.[_0x2dbe0d(0x78)],_0x4ad368=(await client['query']({'query':a0_0x463382`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x34d395=a0_0x9245;(function(_0x75581c,_0x3e0eb3){const _0x11d609=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x2dbe0d(0x86),'operator':'eq','value':!0x0},{'name':'appName','operator':'in','value':['',_0x950810]}],'sortings':[{'name':_0x2dbe0d(0x7a),'desc':!0x1}]}}))['data']['liteMenus'][_0x2dbe0d(0x83)];store[_0x2dbe0d(0x7b)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x4ad368[_0x2dbe0d(0x77)](_0x62e3af=>!_0x62e3af[_0x2dbe0d(0x7c)]||_0x62e3af['appName']===_0x950810),'template':_0x1ddea0});}
|
package/client/bootstrap.js
CHANGED
|
@@ -17,25 +17,45 @@ import { registerEditor as gristColumnRegisterEditor,
|
|
|
17
17
|
import { registerFilterRenderer as formRegisterFilterRenderer,
|
|
18
18
|
getFilterRenderers as formGetFilterRenderers } from '@operato/form'
|
|
19
19
|
|
|
20
|
-
import { OxGristRendererResourceCodeSelector } from './component/grist/renderer/ox-grist-renderer-resource-code-selector'
|
|
21
|
-
import { OxGristEditorResourceCodeSelector } from './component/grist/editor/ox-grist-editor-resource-code-selector'
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
import {
|
|
21
|
+
/** GRIST Renderer Compoment */
|
|
22
|
+
import { GristRendererMetaCodeSelector } from './component/grist/renderer/grist-renderer-meta-code-selector'
|
|
23
|
+
import { GristRendererMetaObjectSelector } from './component/grist/renderer/grist-renderer-meta-object-selector'
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
import '
|
|
25
|
+
/** GRIST Editor Component */
|
|
26
|
+
import { GristEditorMetaCodeSelector } from './component/grist/editor/grist-editor-meta-code-selector'
|
|
27
|
+
import { GristEditorMetaObjectSelector } from './component/grist/editor/grist-editor-meta-object-selector'
|
|
28
|
+
|
|
29
|
+
/** Grist Filter Compoment */
|
|
30
|
+
import { FilterGristMetaCodeSelect } from './component/filter/filter-grist-meta-code-select'
|
|
31
|
+
import { FilterGristMetaObjectSelect } from './component/filter/filter-grist-meta-object-select'
|
|
32
|
+
|
|
33
|
+
/** Filter Form Component */
|
|
34
|
+
import { FilterFormMetaCodeSelect } from './component/filter/filter-form-meta-code-select'
|
|
35
|
+
import { FilterFormMetaObjectSelect } from './component/filter/filter-form-meta-object-select'
|
|
36
|
+
|
|
37
|
+
// import '@operato/app/filter-renderer.js'
|
|
38
|
+
// import '@operato/app/filters-form.js'
|
|
28
39
|
|
|
29
40
|
export default function bootstrap() {
|
|
30
41
|
import(`./pages/activity/meta-activity-writer-element`)
|
|
31
42
|
import(`./pages/activity/meta-activity-viewer-element`)
|
|
32
43
|
|
|
33
|
-
//
|
|
34
|
-
gristColumnRegisterRenderer('
|
|
35
|
-
|
|
44
|
+
// GRIST Renderer
|
|
45
|
+
gristColumnRegisterRenderer('meta-code-selector',GristRendererMetaCodeSelector);
|
|
46
|
+
gristColumnRegisterRenderer('meta-object-selector',GristRendererMetaObjectSelector);
|
|
47
|
+
|
|
48
|
+
// GRIST Editor
|
|
49
|
+
gristColumnRegisterEditor('meta-code-selector', GristEditorMetaCodeSelector);
|
|
50
|
+
gristColumnRegisterEditor('meta-object-selector', GristEditorMetaObjectSelector);
|
|
51
|
+
|
|
52
|
+
// Grist Filter Renderer
|
|
53
|
+
gristRegisterFilterRenderer('meta-code-selector',[FilterGristMetaCodeSelect]);
|
|
54
|
+
gristRegisterFilterRenderer('meta-object-selector',[FilterGristMetaObjectSelect]);
|
|
36
55
|
|
|
37
|
-
|
|
38
|
-
formRegisterFilterRenderer('
|
|
56
|
+
// Filter Form Renderer
|
|
57
|
+
formRegisterFilterRenderer('meta-code-selector',[FilterFormMetaCodeSelect]);
|
|
58
|
+
formRegisterFilterRenderer('meta-object-selector',[FilterFormMetaObjectSelect]);
|
|
39
59
|
|
|
40
60
|
store.addReducers({
|
|
41
61
|
metaUI
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(function(_0xa11b82,_0xd0cbc3){const _0x214964=a0_0x1110,_0x39c916=_0xa11b82();while(!![]){try{const _0x247012=-parseInt(_0x214964(0x192))/0x1+parseInt(_0x214964(0x1a3))/0x2*(parseInt(_0x214964(0x1a1))/0x3)+-parseInt(_0x214964(0x198))/0x4*(parseInt(_0x214964(0x199))/0x5)+parseInt(_0x214964(0x1a6))/0x6*(-parseInt(_0x214964(0x19a))/0x7)+-parseInt(_0x214964(0x1ab))/0x8+parseInt(_0x214964(0x193))/0x9+parseInt(_0x214964(0x1af))/0xa;if(_0x247012===_0xd0cbc3)break;else _0x39c916['push'](_0x39c916['shift']());}catch(_0x10b2e7){_0x39c916['push'](_0x39c916['shift']());}}}(a0_0xa013,0xd92d0));import'../selector/meta-object-selector-popup';function a0_0xa013(){const _0x1ed98f=['selectorName','tTitle','codeField','6775656iRVqqI','filter','tagName','renderRoot','30529170nVnkmN','display','1038637xiTDOE','9690480wkvujD','large','querySelector','dispatchEvent','select_item','17452JapQEM','1040aTwSWu','7hvFNcr','tMenu','ox-grid-header','name','target','dispField','options','41550eJNaCu','toLowerCase','148vcEGEZ','length','codes','8831322ykncHK','value'];a0_0xa013=function(){return _0x1ed98f;};return a0_0xa013();}import{html}from'lit-html';function a0_0x1110(_0x353490,_0x382175){const _0xa01390=a0_0xa013();return a0_0x1110=function(_0x11105c,_0x1872c5){_0x11105c=_0x11105c-0x192;let _0x5c8c38=_0xa01390[_0x11105c];return _0x5c8c38;},a0_0x1110(_0x353490,_0x382175);}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x8bb7fb,_0x5ab0e0,_0x258513){const _0x47cfb7=a0_0x1110;var _0x17ae57=html`
|
|
2
|
+
<meta-object-selector-popup
|
|
3
|
+
.value=${_0x5ab0e0}
|
|
4
|
+
.options=${_0x8bb7fb[_0x47cfb7(0x1a0)]}
|
|
5
|
+
.confirmCallback=${_0x258513}
|
|
6
|
+
></meta-object-selector-popup>
|
|
7
|
+
`;openPopup(_0x17ae57,{'backdrop':!0x0,'size':_0x47cfb7(0x194),'title':_0x8bb7fb[_0x47cfb7(0x1a0)]['selectorName']?TermsUtil[_0x47cfb7(0x19b)](_0x8bb7fb['options'][_0x47cfb7(0x1a8)]):TermsUtil[_0x47cfb7(0x1a9)](_0x47cfb7(0x197))});}export const FilterFormMetaCodeSelect=(_0x234bb2,_0x1d2561,_0xee8cf9)=>{const _0x21bc7f=a0_0x1110,_0x42432c=_0x234bb2['options'],_0x1b559e=_0x42432c['codes']&&_0x42432c[_0x21bc7f(0x1a5)][_0x21bc7f(0x1a4)]>0x0?_0x42432c[_0x21bc7f(0x1a5)]:void 0x0,{operator:_0x5ddf15='eq'}=_0x234bb2;let _0x55146e=_0x1d2561||'',_0x181b6a=_0x1d2561||'';if(_0x42432c[_0x21bc7f(0x19f)]&&_0x1d2561&&_0x1b559e){let _0xd1ef85=_0x1b559e[_0x21bc7f(0x1ac)](_0xfc7fd6=>_0xfc7fd6[_0x21bc7f(0x1a7)]==_0x1d2561);_0xd1ef85&&_0xd1ef85['length']>0x0&&(_0x181b6a=_0xd1ef85[0x0][_0x21bc7f(0x1b0)]);}return'eq'===_0x5ddf15?html`
|
|
8
|
+
<input name='${_0x234bb2[_0x21bc7f(0x19d)]}' .value=${_0x55146e} type="text" hidden></input>
|
|
9
|
+
<input
|
|
10
|
+
type="text"
|
|
11
|
+
readonly
|
|
12
|
+
name='${_0x234bb2[_0x21bc7f(0x19d)]}_disp'
|
|
13
|
+
.value=${_0x181b6a}
|
|
14
|
+
@click=${_0x5504e4=>{const _0x42ddbf=_0x21bc7f;_0x5504e4['stopPropagation']();const _0x5392eb=_0x5504e4[_0x42ddbf(0x19e)];openMetaCodeSelector(_0x234bb2,_0x1d2561,_0x5d33a3=>{const _0x3ba9e1=_0x42ddbf;let _0x344ab3=_0x5d33a3?_0x5d33a3[_0x42432c[_0x3ba9e1(0x1aa)]]:'',_0x171ca1=_0x344ab3;_0x5d33a3&&_0x42432c[_0x3ba9e1(0x19f)]&&(_0x171ca1=_0x5d33a3[_0x42432c[_0x3ba9e1(0x19f)]]),_0x5392eb['value']=_0x171ca1,(_0x3ba9e1(0x19c)==_0xee8cf9[_0x3ba9e1(0x1ad)][_0x3ba9e1(0x1a2)]()?_0xee8cf9[_0x3ba9e1(0x1ae)][_0x3ba9e1(0x195)]('[name=\x22'+_0x234bb2[_0x3ba9e1(0x19d)]+'\x22]'):_0xee8cf9[_0x3ba9e1(0x1ae)]['querySelector']('form\x20[name=\x22'+_0x234bb2[_0x3ba9e1(0x19d)]+'\x22]'))[_0x3ba9e1(0x1a7)]=_0x344ab3,_0x5392eb[_0x3ba9e1(0x196)](new Event('change',{'bubbles':!0x0})),_0x5392eb[_0x3ba9e1(0x196)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x234bb2[_0x3ba9e1(0x19d)],'operator':_0x5ddf15,'value':_0x344ab3}}));});}}
|
|
15
|
+
/>
|
|
16
|
+
`:html``;};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(function(_0x4e74c2,_0x32f3a7){const _0x135159=a0_0x2a83,_0x43c312=_0x4e74c2();while(!![]){try{const _0x4ac4ee=-parseInt(_0x135159(0x199))/0x1+-parseInt(_0x135159(0x1a3))/0x2+-parseInt(_0x135159(0x198))/0x3+parseInt(_0x135159(0x19b))/0x4*(-parseInt(_0x135159(0x193))/0x5)+-parseInt(_0x135159(0x19e))/0x6*(parseInt(_0x135159(0x1a1))/0x7)+parseInt(_0x135159(0x19d))/0x8*(parseInt(_0x135159(0x1a7))/0x9)+parseInt(_0x135159(0x1a5))/0xa;if(_0x4ac4ee===_0x32f3a7)break;else _0x43c312['push'](_0x43c312['shift']());}catch(_0x2a8733){_0x43c312['push'](_0x43c312['shift']());}}}(a0_0x44be,0xdea65));function a0_0x2a83(_0x5dfdfb,_0x197fdf){const _0x44be03=a0_0x44be();return a0_0x2a83=function(_0x2a831e,_0x36424a){_0x2a831e=_0x2a831e-0x191;let _0x3855ab=_0x44be03[_0x2a831e];return _0x3855ab;},a0_0x2a83(_0x5dfdfb,_0x197fdf);}import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function a0_0x44be(){const _0x36e8c6=['toLowerCase','3178kVOkBU','querySelector','420888sJfPQc','form\x20[name=\x22','44530490NBqnIX','ox-grid-header','9TvJMVz','value','options','stopPropagation','renderRoot','name','selectorName','dispatchEvent','775HSHFcn','select_item','large','tMenu','target','3809526lVEyha','1245496hnOsDA','[name=\x22','8740dAOEHg','filter-change','6109672QTWyAy','16392jUwwgz','nameField'];a0_0x44be=function(){return _0x36e8c6;};return a0_0x44be();}function openMetaObjectSelector(_0x23fc29,_0x4321bf,_0x87d247){const _0x421dd9=a0_0x2a83;var _0x5cf628=html`
|
|
2
|
+
<meta-object-selector-popup
|
|
3
|
+
.value=${_0x4321bf}
|
|
4
|
+
.options=${_0x23fc29[_0x421dd9(0x1a9)]}
|
|
5
|
+
.confirmCallback=${_0x87d247}
|
|
6
|
+
></meta-object-selector-popup>
|
|
7
|
+
`;openPopup(_0x5cf628,{'backdrop':!0x0,'size':_0x421dd9(0x195),'title':_0x23fc29[_0x421dd9(0x1a9)][_0x421dd9(0x191)]?TermsUtil[_0x421dd9(0x196)](_0x23fc29[_0x421dd9(0x1a9)][_0x421dd9(0x191)]):TermsUtil['tTitle'](_0x421dd9(0x194))});}export const FilterFormMetaObjectSelect=(_0x59e102,_0x2845c9,_0x245fef)=>{const _0x19f449=a0_0x2a83,_0x568f58=_0x59e102[_0x19f449(0x1a9)],{operator:_0x482b66='eq'}=_0x59e102;let _0x31bdcd=_0x2845c9?_0x2845c9['id']:'',_0x2f7170=_0x2845c9?_0x2845c9[_0x568f58[_0x19f449(0x19f)]]:'';return'eq'===_0x482b66?html`
|
|
8
|
+
<input name='${_0x59e102[_0x19f449(0x1ac)]}' .value=${_0x31bdcd} type="text" hidden></input>
|
|
9
|
+
<input
|
|
10
|
+
type="text"
|
|
11
|
+
readonly
|
|
12
|
+
name='${_0x59e102[_0x19f449(0x1ac)]}_disp'
|
|
13
|
+
.value=${_0x2f7170}
|
|
14
|
+
@click=${_0x522ed0=>{const _0xcfc052=_0x19f449;_0x522ed0[_0xcfc052(0x1aa)]();const _0x258cba=_0x522ed0[_0xcfc052(0x197)];openMetaObjectSelector(_0x59e102,_0x2845c9,_0x3bff3b=>{const _0x202330=_0xcfc052;let _0x5a04ad=_0x3bff3b?_0x3bff3b['id']:'',_0x460dd9=_0x3bff3b?_0x3bff3b[_0x568f58[_0x202330(0x19f)]]:'';_0x258cba[_0x202330(0x1a8)]=_0x460dd9,(_0x202330(0x1a6)==_0x245fef['tagName'][_0x202330(0x1a0)]()?_0x245fef['renderRoot'][_0x202330(0x1a2)](_0x202330(0x19a)+_0x59e102[_0x202330(0x1ac)]+'\x22]'):_0x245fef[_0x202330(0x1ab)]['querySelector'](_0x202330(0x1a4)+_0x59e102['name']+'\x22]'))['value']=_0x5a04ad,_0x258cba[_0x202330(0x192)](new Event('change',{'bubbles':!0x0})),_0x258cba[_0x202330(0x192)](new CustomEvent(_0x202330(0x19c),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x59e102[_0x202330(0x1ac)],'operator':_0x482b66,'value':_0x5a04ad}}));});}}
|
|
15
|
+
/>
|
|
16
|
+
`:html``;};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a0_0x3d2a(_0x3f7de4,_0x56a575){const _0x27f094=a0_0x27f0();return a0_0x3d2a=function(_0x3d2a83,_0x525f49){_0x3d2a83=_0x3d2a83-0x1e8;let _0x382db2=_0x27f094[_0x3d2a83];return _0x382db2;},a0_0x3d2a(_0x3f7de4,_0x56a575);}(function(_0x4e3125,_0x5348d3){const _0x136cc2=a0_0x3d2a,_0x46750b=_0x4e3125();while(!![]){try{const _0x5edd31=-parseInt(_0x136cc2(0x1e9))/0x1+parseInt(_0x136cc2(0x205))/0x2*(-parseInt(_0x136cc2(0x1e8))/0x3)+-parseInt(_0x136cc2(0x206))/0x4*(parseInt(_0x136cc2(0x1fb))/0x5)+-parseInt(_0x136cc2(0x1f1))/0x6+-parseInt(_0x136cc2(0x1f3))/0x7*(-parseInt(_0x136cc2(0x1ef))/0x8)+parseInt(_0x136cc2(0x1eb))/0x9+parseInt(_0x136cc2(0x201))/0xa;if(_0x5edd31===_0x5348d3)break;else _0x46750b['push'](_0x46750b['shift']());}catch(_0x286462){_0x46750b['push'](_0x46750b['shift']());}}}(a0_0x27f0,0x2b707));function a0_0x27f0(){const _0xecdb00=['[name=\x22','form\x20[name=\x22','dispatchEvent','85NvwqFD','tagName','filter-change','renderRoot','toLowerCase','select_item','7804500npdLNU','name','target','tMenu','287788pnGSez','53876VQcBvr','options','3KozJWM','279818WUDjWp','record','1107693yAXJPE','selectorName','codes','value','2091800uNbZNt','querySelector','2006340hmfNaM','ox-grid-header','7ySLZIo','tTitle','dispField','filter','large'];a0_0x27f0=function(){return _0xecdb00;};return a0_0x27f0();}import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x468233,_0x46c17c,_0x13f073){const _0x3838d1=a0_0x3d2a;var _0x438b79=html`
|
|
2
|
+
<meta-object-selector-popup
|
|
3
|
+
.value=${_0x46c17c}
|
|
4
|
+
.options=${_0x468233[_0x3838d1(0x1ea)][_0x3838d1(0x207)]}
|
|
5
|
+
.confirmCallback=${_0x13f073}
|
|
6
|
+
></meta-object-selector-popup>
|
|
7
|
+
`;openPopup(_0x438b79,{'backdrop':!0x0,'size':_0x3838d1(0x1f7),'title':_0x468233[_0x3838d1(0x1ea)]['options'][_0x3838d1(0x1ec)]?TermsUtil[_0x3838d1(0x204)](_0x468233[_0x3838d1(0x1ea)]['options']['selectorName']):TermsUtil[_0x3838d1(0x1f4)](_0x3838d1(0x200))});}export const FilterGristMetaCodeSelect=(_0x302610,_0x8cd570,_0x21f60c)=>{const _0x20718e=a0_0x3d2a,_0x401c87=_0x302610['filter'],_0x33be58=_0x302610[_0x20718e(0x1ea)]['options'],_0x2f786e=_0x33be58['codes']&&_0x33be58['codes']['length']>0x0?_0x33be58[_0x20718e(0x1ed)]:void 0x0,{operator:_0x11d686='eq'}=_0x401c87;let _0x5a6304=_0x8cd570||'',_0x46525f=_0x8cd570||'';if(_0x33be58[_0x20718e(0x1f5)]&&_0x8cd570&&_0x2f786e){let _0x39202d=_0x2f786e[_0x20718e(0x1f6)](_0x282582=>_0x282582[_0x20718e(0x1ee)]==_0x8cd570);_0x39202d&&_0x39202d['length']>0x0&&(_0x46525f=_0x39202d[0x0]['display']);}return'eq'===_0x11d686?html`
|
|
8
|
+
<input name='${_0x302610['name']}' .value=${_0x5a6304} type="text" hidden></input>
|
|
9
|
+
<input
|
|
10
|
+
type="text"
|
|
11
|
+
readonly
|
|
12
|
+
name='${_0x302610['name']}_disp'
|
|
13
|
+
.value=${_0x46525f}
|
|
14
|
+
@click=${_0x5d497a=>{const _0x1583a6=_0x20718e;_0x5d497a['stopPropagation']();const _0x404a5a=_0x5d497a[_0x1583a6(0x203)];openMetaCodeSelector(_0x302610,_0x8cd570,_0x32a541=>{const _0x120bdb=_0x1583a6;let _0x348d7c=_0x32a541?_0x32a541[_0x33be58['codeField']]:'',_0x3d14bb=_0x348d7c;_0x32a541&&_0x33be58[_0x120bdb(0x1f5)]&&(_0x3d14bb=_0x32a541[_0x33be58[_0x120bdb(0x1f5)]]),_0x404a5a[_0x120bdb(0x1ee)]=_0x3d14bb,(_0x120bdb(0x1f2)==_0x21f60c[_0x120bdb(0x1fc)][_0x120bdb(0x1ff)]()?_0x21f60c[_0x120bdb(0x1fe)]['querySelector'](_0x120bdb(0x1f8)+_0x401c87[_0x120bdb(0x202)]+'\x22]'):_0x21f60c[_0x120bdb(0x1fe)][_0x120bdb(0x1f0)](_0x120bdb(0x1f9)+_0x401c87[_0x120bdb(0x202)]+'\x22]'))['value']=_0x348d7c,_0x404a5a['dispatchEvent'](new Event('change',{'bubbles':!0x0})),_0x404a5a[_0x120bdb(0x1fa)](new CustomEvent(_0x120bdb(0x1fd),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x302610[_0x120bdb(0x202)],'operator':_0x11d686,'value':_0x348d7c}}));});}}
|
|
15
|
+
/>
|
|
16
|
+
`:html``;};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a0_0x3aa6(){const _0x476767=['record','524948YGwapG','2454leuqbS','30PyyyOd','select_item','1573755vMaGJa','1429659nLQUhY','target','large','nameField','options','ox-grid-header','filter','value','dispatchEvent','1504HmRjtE','stopPropagation','8221310lXasYU','name','[name=\x22','renderRoot','selectorName','2952313XpPodl','form\x20[name=\x22','5580747TRcNdB','tMenu','filter-change','tTitle','change','32xHDNvx'];a0_0x3aa6=function(){return _0x476767;};return a0_0x3aa6();}(function(_0x1f1386,_0x32f0c9){const _0xbd60fe=a0_0x11b8,_0x4676cd=_0x1f1386();while(!![]){try{const _0x1ab569=parseInt(_0xbd60fe(0xb3))/0x1+parseInt(_0xbd60fe(0xbc))/0x2*(parseInt(_0xbd60fe(0xcd))/0x3)+parseInt(_0xbd60fe(0xcc))/0x4+-parseInt(_0xbd60fe(0xb2))/0x5*(parseInt(_0xbd60fe(0xce))/0x6)+-parseInt(_0xbd60fe(0xc3))/0x7*(-parseInt(_0xbd60fe(0xca))/0x8)+-parseInt(_0xbd60fe(0xc5))/0x9+-parseInt(_0xbd60fe(0xbe))/0xa;if(_0x1ab569===_0x32f0c9)break;else _0x4676cd['push'](_0x4676cd['shift']());}catch(_0x42faad){_0x4676cd['push'](_0x4676cd['shift']());}}}(a0_0x3aa6,0xcecfb));import'../selector/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x4cc485,_0x2b3a10,_0x61b2ca){const _0x265c36=a0_0x11b8;var _0x27fd29=html`
|
|
2
|
+
<meta-object-selector-popup
|
|
3
|
+
.value=${_0x2b3a10}
|
|
4
|
+
.options=${_0x4cc485[_0x265c36(0xcb)][_0x265c36(0xb7)]}
|
|
5
|
+
.confirmCallback=${_0x61b2ca}
|
|
6
|
+
></meta-object-selector-popup>
|
|
7
|
+
`;openPopup(_0x27fd29,{'backdrop':!0x0,'size':_0x265c36(0xb5),'title':_0x4cc485[_0x265c36(0xcb)][_0x265c36(0xb7)][_0x265c36(0xc2)]?TermsUtil[_0x265c36(0xc6)](_0x4cc485[_0x265c36(0xcb)]['options'][_0x265c36(0xc2)]):TermsUtil[_0x265c36(0xc8)](_0x265c36(0xcf))});}function a0_0x11b8(_0x3f211d,_0x81c8de){const _0x3aa649=a0_0x3aa6();return a0_0x11b8=function(_0x11b8ff,_0x318c59){_0x11b8ff=_0x11b8ff-0xb2;let _0x587ff2=_0x3aa649[_0x11b8ff];return _0x587ff2;},a0_0x11b8(_0x3f211d,_0x81c8de);}export const FilterGristMetaObjectSelect=(_0x870aa4,_0xb13ce,_0x2c660b)=>{const _0x2dc096=a0_0x11b8,_0xc36d85=_0x870aa4[_0x2dc096(0xb9)],{operator:_0x2292ad='eq'}=_0xc36d85,_0x2280ac=_0x870aa4[_0x2dc096(0xcb)][_0x2dc096(0xb7)];let _0x3c60ef=_0xb13ce?_0xb13ce['id']:'',_0x3e297d=_0xb13ce?_0xb13ce[_0x2280ac['nameField']]:'';return'eq'===_0x2292ad?html`
|
|
8
|
+
<input name='${_0x870aa4['name']}' .value=${_0x3c60ef} type="text" hidden></input>
|
|
9
|
+
<input
|
|
10
|
+
type="text"
|
|
11
|
+
readonly
|
|
12
|
+
name='${_0x870aa4[_0x2dc096(0xbf)]}_disp'
|
|
13
|
+
.value=${_0x3e297d}
|
|
14
|
+
@click=${_0x57bce2=>{const _0xf3b29c=_0x2dc096;_0x57bce2[_0xf3b29c(0xbd)]();const _0x3d24b5=_0x57bce2[_0xf3b29c(0xb4)];openMetaObjectSelector(_0x870aa4,_0xb13ce,_0x26934b=>{const _0x5cf7c7=_0xf3b29c;let _0x1c31c8=_0x26934b?_0x26934b['id']:'',_0x14e035=_0x26934b?_0x26934b[_0x2280ac[_0x5cf7c7(0xb6)]]:'';_0x3d24b5[_0x5cf7c7(0xba)]=_0x14e035,(_0x5cf7c7(0xb8)==_0x2c660b['tagName']['toLowerCase']()?_0x2c660b['renderRoot']['querySelector'](_0x5cf7c7(0xc0)+_0xc36d85['name']+'\x22]'):_0x2c660b[_0x5cf7c7(0xc1)]['querySelector'](_0x5cf7c7(0xc4)+_0xc36d85['name']+'\x22]'))[_0x5cf7c7(0xba)]=_0x1c31c8,_0x3d24b5[_0x5cf7c7(0xbb)](new Event(_0x5cf7c7(0xc9),{'bubbles':!0x0})),_0x3d24b5['dispatchEvent'](new CustomEvent(_0x5cf7c7(0xc7),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x870aa4[_0x5cf7c7(0xbf)],'operator':_0x2292ad,'value':_0x1c31c8}}));});}}
|
|
15
|
+
/>
|
|
16
|
+
`:html``;};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const a0_0x169919=a0_0x28b8;(function(_0x26a763,_0x2406a5){const _0xbea397=a0_0x28b8,_0x33df24=_0x26a763();while(!![]){try{const _0x1d0112=parseInt(_0xbea397(0x70))/0x1*(parseInt(_0xbea397(0x8d))/0x2)+parseInt(_0xbea397(0x7d))/0x3+parseInt(_0xbea397(0x71))/0x4+-parseInt(_0xbea397(0x80))/0x5+-parseInt(_0xbea397(0x78))/0x6+parseInt(_0xbea397(0x89))/0x7+-parseInt(_0xbea397(0x82))/0x8;if(_0x1d0112===_0x2406a5)break;else _0x33df24['push'](_0x33df24['shift']());}catch(_0x1ef46b){_0x33df24['push'](_0x33df24['shift']());}}}(a0_0x21ea,0x2805b));function a0_0x28b8(_0x5d7f46,_0x4c572c){const _0x21ea04=a0_0x21ea();return a0_0x28b8=function(_0x28b8d5,_0x563104){_0x28b8d5=_0x28b8d5-0x6e;let _0x18110c=_0x21ea04[_0x28b8d5];return _0x18110c;},a0_0x28b8(_0x5d7f46,_0x4c572c);}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_0x169919(0x91)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x169919(0x81)](){const _0x231bf8=a0_0x169919;let _0x55f73f='';if(this['column']['record']&&this[_0x231bf8(0x8f)][_0x231bf8(0x73)]['options']){if(this['column'][_0x231bf8(0x73)][_0x231bf8(0x84)][_0x231bf8(0x8a)]){let _0x22aa8e=this['column'][_0x231bf8(0x73)][_0x231bf8(0x84)][_0x231bf8(0x85)]||[];if(this[_0x231bf8(0x79)]&&this[_0x231bf8(0x79)][_0x231bf8(0x75)]>0x0){let _0x38cb04=_0x22aa8e[_0x231bf8(0x7e)](_0x9f7fb5=>_0x9f7fb5[_0x231bf8(0x79)]===this[_0x231bf8(0x79)]);_0x55f73f=_0x38cb04&&_0x38cb04['length']>0x0?_0x38cb04[0x0][_0x231bf8(0x8e)]:'';}}else _0x55f73f=this[_0x231bf8(0x79)];}else _0x55f73f='';return html`
|
|
2
|
+
${_0x55f73f?html` <span tabindex="0" style="flex:1">${_0x55f73f}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async['firstUpdated'](){super['firstUpdated']();}[a0_0x169919(0x88)](_0x56c443){const _0xf5ff17=a0_0x169919;_0x56c443[_0xf5ff17(0x86)](),this[_0xf5ff17(0x83)]();}[a0_0x169919(0x72)](_0xe07d22){const _0x41e2bd=a0_0x169919;_0x41e2bd(0x7b)==_0xe07d22[_0x41e2bd(0x87)]&&(_0xe07d22[_0x41e2bd(0x86)](),this[_0x41e2bd(0x83)]());}[a0_0x169919(0x83)](){const _0x2fd63f=a0_0x169919;this[_0x2fd63f(0x7a)]&&delete this[_0x2fd63f(0x7a)];var {selectorName:_0x13b918=TermsUtil[_0x2fd63f(0x74)](_0x2fd63f(0x6e))}=this['column'][_0x2fd63f(0x73)][_0x2fd63f(0x84)]||{},_0xf6081f=html`
|
|
4
|
+
<meta-object-selector-popup
|
|
5
|
+
.value=${this[_0x2fd63f(0x79)]}
|
|
6
|
+
.options=${this[_0x2fd63f(0x8f)][_0x2fd63f(0x73)][_0x2fd63f(0x84)]}
|
|
7
|
+
.confirmCallback=${(_0x56601f=>{const _0x41f39d=_0x2fd63f;let _0x34d096=this[_0x41f39d(0x8f)]['record']['options'][_0x41f39d(0x8c)],_0x212fc5=this['column'][_0x41f39d(0x73)][_0x41f39d(0x84)][_0x41f39d(0x8a)];this['column'][_0x41f39d(0x73)]['options']['codes']||(this[_0x41f39d(0x8f)]['record'][_0x41f39d(0x84)][_0x41f39d(0x85)]=[]);let _0x165b39=this[_0x41f39d(0x8f)][_0x41f39d(0x73)]['options'][_0x41f39d(0x85)][_0x41f39d(0x7e)](_0x5293f3=>_0x5293f3[_0x41f39d(0x79)]==_0x56601f[_0x34d096]);_0x165b39&&0x0!=_0x165b39['length']||this[_0x41f39d(0x8f)][_0x41f39d(0x73)]['options'][_0x41f39d(0x85)][_0x41f39d(0x77)]({'value':_0x56601f[_0x34d096],'display':_0x56601f[_0x212fc5]}),this[_0x41f39d(0x7f)](new CustomEvent(_0x41f39d(0x6f),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x41f39d(0x79)],'after':_0x56601f?_0x56601f[_0x34d096]:null,'record':this['record'],'column':this[_0x41f39d(0x8f)],'row':this[_0x41f39d(0x90)]}}));})[_0x2fd63f(0x8b)](this)}
|
|
8
|
+
></meta-object-selector-popup>
|
|
9
|
+
`;this[_0x2fd63f(0x7a)]=openPopup(_0xf6081f,{'backdrop':!0x0,'size':'large','title':TermsUtil[_0x2fd63f(0x7c)](_0x13b918)});}}function a0_0x21ea(){const _0x38ea28=['4784168vBChNg','openSelector','options','codes','stopPropagation','key','_onclick','2183538ZzlLGR','dispField','bind','codeField','2BQXVVw','display','column','row','properties','grist-editor-meta-code-selector','select_item','field-change','220123ICKHTt','626280inQfWg','_onkeydown','record','tTitle','length','define','push','99276rERTuZ','value','popup','Enter','tMenu','572001uiEiaG','filter','dispatchEvent','503980wjFGHK','editorTemplate'];a0_0x21ea=function(){return _0x38ea28;};return a0_0x21ea();}customElements[a0_0x169919(0x76)](a0_0x169919(0x92),GristEditorMetaCodeSelector);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var a0_0x2777a1=a0_0x1e82;(function(_0xd0825e,_0x59a0fa){var _0xc64586=a0_0x1e82,_0x634e=_0xd0825e();while(!![]){try{var _0x33d121=-parseInt(_0xc64586(0xbe))/0x1+parseInt(_0xc64586(0xcb))/0x2*(-parseInt(_0xc64586(0xcd))/0x3)+parseInt(_0xc64586(0xd5))/0x4*(parseInt(_0xc64586(0xc0))/0x5)+parseInt(_0xc64586(0xd6))/0x6*(-parseInt(_0xc64586(0xd7))/0x7)+-parseInt(_0xc64586(0xba))/0x8*(parseInt(_0xc64586(0xc6))/0x9)+-parseInt(_0xc64586(0xc2))/0xa*(parseInt(_0xc64586(0xbd))/0xb)+parseInt(_0xc64586(0xd0))/0xc;if(_0x33d121===_0x59a0fa)break;else _0x634e['push'](_0x634e['shift']());}catch(_0x2921f9){_0x634e['push'](_0x634e['shift']());}}}(a0_0x4bd7,0xc654d));import{html}from'lit';function a0_0x4bd7(){var _0x2196b4=['24886kBEdcB','bind','207eroMcd','popup','firstUpdated','51364332SUANLT','tTitle','record','properties','value','24itEzob','36mcSTlK','150927hlwyxS','key','_onclick','stopPropagation','large','112efzhrX','row','column','31856UNeTkj','55609rMUOmw','define','40085pggVOm','Enter','5170nIcTIo','_onkeydown','tMenu','select_item','626994VkWNro','grist-editor-meta-object-selector','field-change','dispatchEvent','options'];a0_0x4bd7=function(){return _0x2196b4;};return a0_0x4bd7();}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[a0_0x2777a1(0xd3)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get['editorTemplate'](){var _0x755bef=a0_0x2777a1;let _0xb19039='';return this['value']&&this[_0x755bef(0xbc)]['record'][_0x755bef(0xca)]&&(_0xb19039=this[_0x755bef(0xd4)][this[_0x755bef(0xbc)][_0x755bef(0xd2)][_0x755bef(0xca)]['nameField']]),html`
|
|
2
|
+
${this['value']?html` <span tabindex="0" style="flex:1">${_0xb19039}</span> `:html`<span tabindex="0">${_0xb19039}</span>`}
|
|
3
|
+
`;}async[a0_0x2777a1(0xcf)](){var _0xecce13=a0_0x2777a1;super[_0xecce13(0xcf)]();}[a0_0x2777a1(0xb7)](_0x1ec931){var _0x5858ae=a0_0x2777a1;_0x1ec931[_0x5858ae(0xb8)](),this['openSelector']();}[a0_0x2777a1(0xc3)](_0x47f12f){var _0x57ef68=a0_0x2777a1;_0x57ef68(0xc1)==_0x47f12f[_0x57ef68(0xb6)]&&(_0x47f12f[_0x57ef68(0xb8)](),this['openSelector']());}['openSelector'](){var _0x5cc6f7=a0_0x2777a1;this[_0x5cc6f7(0xce)]&&delete this[_0x5cc6f7(0xce)];var {selectorName:_0x2e4809=TermsUtil[_0x5cc6f7(0xd1)](_0x5cc6f7(0xc5))}=this['column'][_0x5cc6f7(0xd2)][_0x5cc6f7(0xca)]||{},_0x2b8fc7=html`
|
|
4
|
+
<meta-object-selector-popup
|
|
5
|
+
.value=${this[_0x5cc6f7(0xd4)]}
|
|
6
|
+
.options=${this['column'][_0x5cc6f7(0xd2)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x2b1d25=>{var _0x3d356b=_0x5cc6f7;this[_0x3d356b(0xc9)](new CustomEvent(_0x3d356b(0xc8),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x3d356b(0xd4)],'after':_0x2b1d25||null,'record':this[_0x3d356b(0xd2)],'column':this[_0x3d356b(0xbc)],'row':this[_0x3d356b(0xbb)]}}));})[_0x5cc6f7(0xcc)](this)}
|
|
8
|
+
></meta-object-selector-popup>
|
|
9
|
+
`;this[_0x5cc6f7(0xce)]=openPopup(_0x2b8fc7,{'backdrop':!0x0,'size':_0x5cc6f7(0xb9),'title':TermsUtil[_0x5cc6f7(0xc4)](_0x2e4809)});}}function a0_0x1e82(_0x2d833c,_0x554f86){var _0x4bd73b=a0_0x4bd7();return a0_0x1e82=function(_0x1e825b,_0x478667){_0x1e825b=_0x1e825b-0xb6;var _0x560b53=_0x4bd73b[_0x1e825b];return _0x560b53;},a0_0x1e82(_0x2d833c,_0x554f86);}customElements[a0_0x2777a1(0xbf)](a0_0x2777a1(0xc7),GristEditorMetaObjectSelector);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x1e3e03,_0x38a96f){const _0x206f24=a0_0x129d,_0x4fa949=_0x1e3e03();while(!![]){try{const _0x43c1a1=parseInt(_0x206f24(0x119))/0x1*(parseInt(_0x206f24(0x11f))/0x2)+parseInt(_0x206f24(0x115))/0x3*(-parseInt(_0x206f24(0x120))/0x4)+-parseInt(_0x206f24(0x111))/0x5+-parseInt(_0x206f24(0x11c))/0x6*(parseInt(_0x206f24(0x118))/0x7)+-parseInt(_0x206f24(0x122))/0x8+-parseInt(_0x206f24(0x117))/0x9+parseInt(_0x206f24(0x11a))/0xa*(parseInt(_0x206f24(0x11d))/0xb);if(_0x43c1a1===_0x38a96f)break;else _0x4fa949['push'](_0x4fa949['shift']());}catch(_0x255145){_0x4fa949['push'](_0x4fa949['shift']());}}}(a0_0x2dc7,0x9df6c));import{html}from'lit';function a0_0x2dc7(){const _0x116f3e=['data-tooltip','7130052rwISAv','514920aTCDpM','1cRtVUc','27910dyvMox','target','6iLvAxl','5412buzgkm','filter','2483302XmKBOL','172YwOBRx','options','1357296SvNMIP','record','removeAttribute','textContent','2691935YNKHDP','display','setAttribute','length','27486oIgMdA'];a0_0x2dc7=function(){return _0x116f3e;};return a0_0x2dc7();}function a0_0x129d(_0x1c0a21,_0x3a863d){const _0x2dc791=a0_0x2dc7();return a0_0x129d=function(_0x129dda,_0x3f0dfd){_0x129dda=_0x129dda-0x10e;let _0x1c5ee0=_0x2dc791[_0x129dda];return _0x1c5ee0;},a0_0x129d(_0x1c0a21,_0x3a863d);}import{detectOverflow}from'@operato/utils';function onmouseover(_0x5b2d3b){const _0x429be6=a0_0x129d,_0x30613a=_0x5b2d3b[_0x429be6(0x11b)];detectOverflow(_0x30613a)&&_0x30613a[_0x429be6(0x113)](_0x429be6(0x116),_0x30613a[_0x429be6(0x110)]);}function onmouseout(_0x5e055c){const _0x1cbd8c=a0_0x129d;_0x5e055c[_0x1cbd8c(0x11b)][_0x1cbd8c(0x10f)](_0x1cbd8c(0x116));}export const GristRendererMetaCodeSelector=(_0x225ab7,_0x5198b3,_0x1188fd,_0x7f34da,_0x1d2643)=>{const _0x3e54df=a0_0x129d;let _0x13d107='';if(_0x5198b3['record']&&_0x5198b3['record']['options']){if(_0x5198b3[_0x3e54df(0x10e)]['options']['dispField']){if(_0x5198b3['record'][_0x3e54df(0x121)]['codes']||(_0x5198b3[_0x3e54df(0x10e)][_0x3e54df(0x121)]['codes']=[]),_0x225ab7&&_0x225ab7['length']>0x0){let _0x4fdde=_0x5198b3['record'][_0x3e54df(0x121)]['codes'][_0x3e54df(0x11e)](_0x13281d=>_0x13281d['value']===_0x225ab7);_0x13d107=_0x4fdde&&_0x4fdde[_0x3e54df(0x114)]>0x0?_0x4fdde[0x0][_0x3e54df(0x112)]:_0x225ab7;}}else _0x13d107=_0x225ab7;}else _0x13d107='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x13d107}</span>`;};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2dbbb8,_0x4cf04c){const _0x2c1baf=a0_0x12ee,_0x5a5027=_0x2dbbb8();while(!![]){try{const _0xab5cdd=parseInt(_0x2c1baf(0x128))/0x1*(parseInt(_0x2c1baf(0x12b))/0x2)+-parseInt(_0x2c1baf(0x133))/0x3+-parseInt(_0x2c1baf(0x121))/0x4+-parseInt(_0x2c1baf(0x124))/0x5*(-parseInt(_0x2c1baf(0x129))/0x6)+parseInt(_0x2c1baf(0x132))/0x7*(parseInt(_0x2c1baf(0x130))/0x8)+parseInt(_0x2c1baf(0x126))/0x9*(parseInt(_0x2c1baf(0x12c))/0xa)+-parseInt(_0x2c1baf(0x122))/0xb*(-parseInt(_0x2c1baf(0x127))/0xc);if(_0xab5cdd===_0x4cf04c)break;else _0x5a5027['push'](_0x5a5027['shift']());}catch(_0x2359ef){_0x5a5027['push'](_0x5a5027['shift']());}}}(a0_0x22a5,0xd0528));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x344002){const _0x13a463=a0_0x12ee,_0x438486=_0x344002['target'];detectOverflow(_0x438486)&&_0x438486[_0x13a463(0x125)](_0x13a463(0x12e),_0x438486[_0x13a463(0x131)]);}function a0_0x12ee(_0x398b89,_0x574007){const _0x22a53e=a0_0x22a5();return a0_0x12ee=function(_0x12ee48,_0x2ecca0){_0x12ee48=_0x12ee48-0x121;let _0x5ee000=_0x22a53e[_0x12ee48];return _0x5ee000;},a0_0x12ee(_0x398b89,_0x574007);}function a0_0x22a5(){const _0x306172=['72fzpXpB','textContent','563682gsFYgl','4493388ktAzUb','6797032aXeXRJ','22958353TrsMer','record','1465YUWcuO','setAttribute','9ovrVYe','12mGyqOs','1awzUzx','10194PdpiBc','target','1434094OsEXQg','236310SjpXbC','nameField','data-tooltip','options'];a0_0x22a5=function(){return _0x306172;};return a0_0x22a5();}function onmouseout(_0x5882f3){const _0xb4a351=a0_0x12ee;_0x5882f3[_0xb4a351(0x12a)]['removeAttribute'](_0xb4a351(0x12e));}export const GristRendererMetaObjectSelector=(_0x428470,_0x5e19db,_0x5e0846,_0x2859ee,_0x4fdf37)=>{const _0x58a2e7=a0_0x12ee;let _0xefd6e8='';return _0x428470&&_0x5e19db[_0x58a2e7(0x123)][_0x58a2e7(0x12f)]&&(_0xefd6e8=_0x428470[_0x5e19db['record'][_0x58a2e7(0x12f)][_0x58a2e7(0x12d)]]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0xefd6e8}</span>`;};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const a0_0x1bab1b=a0_0x44ef;(function(_0x38249b,_0x2aa9d1){const _0x49c7b4=a0_0x44ef,_0x1b495d=_0x38249b();while(!![]){try{const _0x5c3fe2=parseInt(_0x49c7b4(0x1d5))/0x1+-parseInt(_0x49c7b4(0x1ee))/0x2*(parseInt(_0x49c7b4(0x1cc))/0x3)+parseInt(_0x49c7b4(0x1ce))/0x4*(-parseInt(_0x49c7b4(0x1bb))/0x5)+parseInt(_0x49c7b4(0x1d7))/0x6*(parseInt(_0x49c7b4(0x1ef))/0x7)+parseInt(_0x49c7b4(0x1c2))/0x8+parseInt(_0x49c7b4(0x1b5))/0x9+-parseInt(_0x49c7b4(0x1cf))/0xa*(-parseInt(_0x49c7b4(0x1af))/0xb);if(_0x5c3fe2===_0x2aa9d1)break;else _0x1b495d['push'](_0x1b495d['shift']());}catch(_0x5828f2){_0x1b495d['push'](_0x1b495d['shift']());}}}(a0_0x2f32,0xba8f9));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x2f32(){const _0x2b9efa=['shadowRoot','columns','select','search_hidden_fields','record','confirmCallback','tText','403509oMyEbz','getCodeByScenario','55724jZikMj','1250LHCNND','length','options','filters','showToast','grist','1331851gxPIHM','getSelectColumns','48450bPZqSf','scenario','left','codeField','nameField','align','clickEmpty','define','handlers','gridConfig','LIST','meta-code-selector','tButton','firstUpdated','type','basicArgs','getGristColumnConfig2','push','rows','render','string','filter','searchByPagination','22nQgLuO','539JvqFjS','#ox-grist','isArray','fetchHandler','getCodeByEntity','codes','meta-object-selector-popup','queryName','values','appendable','info','select-row-toggle','124267UguqAV','name','cancel','selected','querySelector','getGristGuttersConfig','1773063YFSphC','selectRecord','sorters','filterFields','forEach','clickSelect','505bmXOJS','bind','getCodeSelectorData','NOTHING_SELECTED','dispField','header','tLabel','703672iOySZI','connectedCallback','args'];a0_0x2f32=function(){return _0x2b9efa;};return a0_0x2f32();}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';function a0_0x44ef(_0x44054b,_0x159452){const _0x2f3218=a0_0x2f32();return a0_0x44ef=function(_0x44ef24,_0x366e47){_0x44ef24=_0x44ef24-0x1ac;let _0x5aa51a=_0x2f3218[_0x44ef24];return _0x5aa51a;},a0_0x44ef(_0x44054b,_0x159452);}import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
|
+
:host {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
|
|
8
|
+
width: var(--overlay-center-normal-width, 50%);
|
|
9
|
+
height: var(--overlay-center-normal-height, 50%);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
ox-grist {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.button-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
margin-left: auto;
|
|
19
|
+
}
|
|
20
|
+
`];async[a0_0x1bab1b(0x1c3)](){const _0x4c2c46=a0_0x1bab1b;this[_0x4c2c46(0x1c8)]=this['options'][_0x4c2c46(0x1d2)]?this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1d2)]:this['basicArgs']&&this['basicArgs']['filters']?this['basicArgs'][_0x4c2c46(0x1d2)]:[];let _0xfaa8e=this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1b7)]?this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1b7)]:this['basicArgs']&&this[_0x4c2c46(0x1e6)][_0x4c2c46(0x1b7)]?this[_0x4c2c46(0x1e6)][_0x4c2c46(0x1b7)]:[],_0x42e67a=[...MetaApi[_0x4c2c46(0x1b4)](!0x0,!0x1)],_0xa9c259=[];if(this['options'][_0x4c2c46(0x1b8)]&&this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1b8)][_0x4c2c46(0x1d0)]>0x0)_0xa9c259=this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1b8)];else{let _0x5df632;this['options'][_0x4c2c46(0x1da)]&&(_0x5df632=this[_0x4c2c46(0x1d1)]['codeField']),this['options'][_0x4c2c46(0x1db)]&&(_0x5df632=this['options']['nameField']),_0x5df632&&_0xa9c259[_0x4c2c46(0x1e8)]({'name':_0x5df632,'operator':'eq'});}if(this['options'][_0x4c2c46(0x1c7)]&&this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1c7)][_0x4c2c46(0x1d0)]>0x0)for(let _0x247fec=0x0;_0x247fec<this[_0x4c2c46(0x1d1)]['select'][_0x4c2c46(0x1d0)];_0x247fec++){let {type:_0x2cf10f=_0x4c2c46(0x1eb),name:_0x3cb657,hidden:_0x5cfa08=!0x1,record:_0x13847b={'align':_0x4c2c46(0x1d9)},header:_0x419267,sortable:_0x2e8fa9=!0x1,width:_0x1e7eab=0x87,options:_0x24a2cb}=this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1c7)][_0x247fec];if(0x1==_0x5cfa08)_0x42e67a['push']({'type':'string','name':_0x3cb657,'hidden':!0x0});else{let _0x1228f3=MetaApi[_0x4c2c46(0x1e7)](_0x2cf10f,_0x3cb657,_0x419267||_0x3cb657,_0x13847b[_0x4c2c46(0x1dc)]?_0x13847b[_0x4c2c46(0x1dc)]:_0x4c2c46(0x1d9),!0x1,_0x2e8fa9,_0x1e7eab);_0x4c2c46(0x1c7)===_0x2cf10f?Array[_0x4c2c46(0x1f1)](_0x24a2cb)?_0x1228f3['record']['options']=_0x24a2cb:'code'===_0x24a2cb[_0x4c2c46(0x1e5)]?_0x1228f3[_0x4c2c46(0x1c9)]['options']=await ServiceUtil[_0x4c2c46(0x1bd)](_0x24a2cb[_0x4c2c46(0x1f7)]?_0x24a2cb[_0x4c2c46(0x1f7)]:_0x24a2cb[_0x4c2c46(0x1b0)]):_0x4c2c46(0x1d8)===_0x24a2cb[_0x4c2c46(0x1e5)]?_0x1228f3[_0x4c2c46(0x1c9)][_0x4c2c46(0x1d1)]=await ServiceUtil[_0x4c2c46(0x1cd)](_0x24a2cb[_0x4c2c46(0x1b0)],_0x24a2cb[_0x4c2c46(0x1c4)]):'entity'===_0x24a2cb[_0x4c2c46(0x1e5)]&&(_0x1228f3[_0x4c2c46(0x1c9)][_0x4c2c46(0x1d1)]=await ServiceUtil[_0x4c2c46(0x1f3)](_0x24a2cb[_0x4c2c46(0x1c4)])):'meta-object-selector'===_0x2cf10f?(_0x24a2cb[_0x4c2c46(0x1c7)]&&_0x24a2cb[_0x4c2c46(0x1c7)][_0x4c2c46(0x1b9)](_0x3c530a=>{const _0x74fbea=_0x4c2c46;_0x3c530a[_0x74fbea(0x1c0)]||(_0x3c530a[_0x74fbea(0x1c0)]=_0x3c530a['name']),_0x3c530a[_0x74fbea(0x1c0)]=TermsUtil[_0x74fbea(0x1c1)](_0x3c530a[_0x74fbea(0x1c0)]);}),_0x1228f3[_0x4c2c46(0x1c9)][_0x4c2c46(0x1d1)]=_0x24a2cb):_0x4c2c46(0x1e2)==_0x2cf10f&&(_0x1228f3['record'][_0x4c2c46(0x1d1)]=object_opt,object_opt[_0x4c2c46(0x1bf)]&&(_0x1228f3[_0x4c2c46(0x1c9)][_0x4c2c46(0x1d1)][_0x4c2c46(0x1f4)]=await ServiceUtil[_0x4c2c46(0x1f3)](object_opt))),_0x42e67a[_0x4c2c46(0x1e8)](_0x1228f3);}}else _0x42e67a['push'](MetaApi['getGristColumnConfig2'](_0x4c2c46(0x1eb),this['options']['codeField'],this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1da)],_0x4c2c46(0x1d9),!0x1,!0x0,0xb4)),this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1bf)]&&_0x42e67a[_0x4c2c46(0x1e8)](MetaApi[_0x4c2c46(0x1e7)](_0x4c2c46(0x1eb),this[_0x4c2c46(0x1d1)][_0x4c2c46(0x1bf)],this[_0x4c2c46(0x1d1)]['dispField'],_0x4c2c46(0x1d9),!0x1,!0x0,0x12c));_0x42e67a[_0x4c2c46(0x1b9)](_0x2b4daf=>{const _0x4209bf=_0x4c2c46;let _0x4915e5=_0xa9c259[_0x4209bf(0x1ec)](_0x5ad7ce=>_0x2b4daf[_0x4209bf(0x1b0)]==_0x5ad7ce[_0x4209bf(0x1b0)]);_0x4915e5&&_0x4915e5['length']>0x0&&(_0x2b4daf[_0x4209bf(0x1ec)]=_0x4915e5);});let _0x4adede={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x42e67a,'sorters':[..._0xfaa8e]};_0x4adede[_0x4c2c46(0x1e9)][_0x4c2c46(0x1df)]={'click':_0x4c2c46(0x1ae),'dblclick':(_0x51cfbb,_0x17d295,_0x30648a,_0x6d5f53,_0x3b10a5,_0x3f7a56)=>{this['selectRecord'](_0x6d5f53);}},_0x4adede[_0x4c2c46(0x1e9)][_0x4c2c46(0x1ac)]=!0x1,this[_0x4c2c46(0x1e0)]=_0x4adede,await super[_0x4c2c46(0x1c3)]();}async[a0_0x1bab1b(0x1e4)](){const _0x2c690d=a0_0x1bab1b;await super[_0x2c690d(0x1e4)]();}[a0_0x1bab1b(0x1ea)](){const _0x55284b=a0_0x1bab1b;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?_0x55284b(0x1e1):'GRID'} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x55284b(0x1f2)][_0x55284b(0x1bc)](this)}>
|
|
23
|
+
<div slot="headroom">
|
|
24
|
+
<div id="filters">
|
|
25
|
+
<ox-filters-form></ox-filters-form>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</ox-grist>
|
|
29
|
+
<div id="button-container" class="button-container">
|
|
30
|
+
<mwc-button raised label="${TermsUtil[_0x55284b(0x1e3)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x55284b(0x1dd)][_0x55284b(0x1bc)](this)}>
|
|
32
|
+
</mwc-button>
|
|
33
|
+
<mwc-button raised label="${TermsUtil[_0x55284b(0x1e3)](_0x55284b(0x1b1))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this['clickCancel']['bind'](this)}>
|
|
35
|
+
</mwc-button>
|
|
36
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x55284b(0x1c7))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x55284b(0x1ba)][_0x55284b(0x1bc)](this)}>
|
|
38
|
+
</mwc-button>
|
|
39
|
+
</div>
|
|
40
|
+
`;}get[a0_0x1bab1b(0x1d4)](){const _0x1588f7=a0_0x1bab1b;return this[_0x1588f7(0x1c5)][_0x1588f7(0x1b3)](_0x1588f7(0x1f0));}async[a0_0x1bab1b(0x1f2)]({page:_0x2bcfa3=0x0,limit:_0x56aca2=0x0,sorters:_0xdc43f=[],filters:_0x226e1d=[]}){const _0x3a718b=a0_0x1bab1b;let _0x2d83ef=[...this[_0x3a718b(0x1c8)]];_0x226e1d[_0x3a718b(0x1b9)](_0x597d8f=>{const _0x52c4c9=_0x3a718b;let _0x2611b0=_0x2d83ef['filter'](_0x1e2336=>_0x597d8f['name']==_0x1e2336[_0x52c4c9(0x1b0)]);_0x2611b0&&_0x2611b0[_0x52c4c9(0x1d0)]>0x0&&delete _0x2d83ef[_0x597d8f[_0x52c4c9(0x1b0)]],_0x2d83ef[_0x52c4c9(0x1e8)](_0x597d8f);});let _0x82ac35=MetaApi[_0x3a718b(0x1d6)](this[_0x3a718b(0x1e0)][_0x3a718b(0x1c6)]);return await MetaApi[_0x3a718b(0x1ed)](this['options'][_0x3a718b(0x1f6)],_0x2d83ef,_0xdc43f,_0x2bcfa3,_0x56aca2,_0x82ac35);}async[a0_0x1bab1b(0x1dd)](_0x49e383){const _0x587056=a0_0x1bab1b;this[_0x587056(0x1ca)]&&this[_0x587056(0x1ca)](null),closePopup(this);}async['clickCancel'](_0x4592f6){closePopup(this);}async[a0_0x1bab1b(0x1ba)](_0x9b6460){const _0x90018f=a0_0x1bab1b;let _0x192cdb=this[_0x90018f(0x1d4)][_0x90018f(0x1b2)];_0x192cdb&&0x0!=_0x192cdb[_0x90018f(0x1d0)]?this[_0x90018f(0x1b6)](_0x192cdb[0x0]):MetaApi[_0x90018f(0x1d3)](_0x90018f(0x1ad),TermsUtil[_0x90018f(0x1cb)](_0x90018f(0x1be)));}async[a0_0x1bab1b(0x1b6)](_0x5331de){const _0x378522=a0_0x1bab1b;this[_0x378522(0x1ca)]&&this['confirmCallback'](_0x5331de),closePopup(this);}}customElements[a0_0x1bab1b(0x1de)](a0_0x1bab1b(0x1f5),MetaObjectSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x51cf(){const _0x5c3445=['1435965CkTHPt','params','isNotEmpty','split','active','tTitle','parseBasicTabConfigs','5024075BWDnHZ','909DJqGVM','grist','openDynamicPopup','parseBasicButtonConfigs','is_popup','executeCallScenarioButtonClick','pageUpdated','isPage','getParams','isElement','getMenuMeta','name','properties','parseBasicGridConfigs','parseBasicFormConfigs','is_detail','excuteOpenPopupButtonClick','15534auGEwY','title_detail','callScenario','13280GSuAUB','fetch','etcConfig','filterForm','8902610HjlFxa','fetchHandler','508cizhQh','85nxAZAW','after','lifecycle','etc','isEmpty','5565612CCcfLN','parent_id','isPopup','21171WDgdMN'];a0_0x51cf=function(){return _0x5c3445;};return a0_0x51cf();}const a0_0x38b29d=a0_0x984c;function a0_0x984c(_0x46e49d,_0x28b7fe){const _0x51cf5a=a0_0x51cf();return a0_0x984c=function(_0x984c83,_0x2882c1){_0x984c83=_0x984c83-0x1c6;let _0x17d065=_0x51cf5a[_0x984c83];return _0x17d065;},a0_0x984c(_0x46e49d,_0x28b7fe);}(function(_0x3e155c,_0x35cb15){const _0x4a08dc=a0_0x984c,_0x59929c=_0x3e155c();while(!![]){try{const _0x2d7cfe=parseInt(_0x4a08dc(0x1e6))/0x1*(parseInt(_0x4a08dc(0x1dc))/0x2)+parseInt(_0x4a08dc(0x1ee))/0x3*(-parseInt(_0x4a08dc(0x1e5))/0x4)+parseInt(_0x4a08dc(0x1ef))/0x5+-parseInt(_0x4a08dc(0x1eb))/0x6+parseInt(_0x4a08dc(0x1ca))/0x7+parseInt(_0x4a08dc(0x1df))/0x8*(-parseInt(_0x4a08dc(0x1cb))/0x9)+parseInt(_0x4a08dc(0x1e3))/0xa;if(_0x2d7cfe===_0x35cb15)break;else _0x59929c['push'](_0x59929c['shift']());}catch(_0x2cbc22){_0x59929c['push'](_0x59929c['shift']());}}}(a0_0x51cf,0x89aa1));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x199328=>class extends _0x199328{static get[a0_0x38b29d(0x1d7)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x4c6600=>Boolean(_0x4c6600)},'is_popup':{'type':Boolean,'converter':_0x5d3c46=>Boolean(_0x5d3c46)},'is_activity':{'type':Boolean,'converter':_0x526758=>Boolean(_0x526758)},'is_readonly':{'type':Boolean,'converter':_0x38df21=>Boolean(_0x38df21)}};}get[a0_0x38b29d(0x1d4)](){const _0x35b5d8=a0_0x38b29d;return!0x0===this[_0x35b5d8(0x1da)]||!0x0===this[_0x35b5d8(0x1cf)];}get['isDetail'](){const _0x50945e=a0_0x38b29d;return!ValueUtil[_0x50945e(0x1ea)](this['is_detail'])&&this[_0x50945e(0x1da)];}async[a0_0x38b29d(0x1d1)](_0x490141,_0x5bd375,_0x37e037){const _0x4a3e41=a0_0x38b29d;let _0xca2990=this[_0x4a3e41(0x1e8)]?.['params']?this[_0x4a3e41(0x1e8)][_0x4a3e41(0x1f0)]:{};this[_0x4a3e41(0x1d2)]&&this[_0x4a3e41(0x1c7)]&&0x0==_0x37e037[_0x4a3e41(0x1c7)]&&ValueUtil['isNotEmpty'](_0xca2990)&&this[_0x4a3e41(0x1e0)]();}get[a0_0x38b29d(0x1ed)](){return!ValueUtil['isEmpty'](this['is_popup'])&&this['is_popup'];}get['isPage'](){const _0x311fe8=a0_0x38b29d;return!this[_0x311fe8(0x1da)]&&!this[_0x311fe8(0x1cf)];}async['getAndParseMenuMeta'](){const _0xe78327=a0_0x38b29d;let _0x43d234=await MetaApi[_0xe78327(0x1d5)](this);_0x43d234&&(this['menuInfo']=_0x43d234['menu'],this[_0xe78327(0x1e1)]=_0x43d234[_0xe78327(0x1e9)],this['parseBasicGridConfigs']&&this[_0xe78327(0x1d8)](_0x43d234),this['parseBasicServiceConfigs']&&this['parseBasicServiceConfigs'](_0x43d234),this[_0xe78327(0x1d9)]&&this[_0xe78327(0x1d9)](_0x43d234),this[_0xe78327(0x1c9)]&&this['parseBasicTabConfigs'](_0x43d234),this[_0xe78327(0x1ce)]&&this[_0xe78327(0x1ce)](_0x43d234));}async[a0_0x38b29d(0x1e0)](){const _0x545480=a0_0x38b29d;ValueUtil['isNotEmpty'](this[_0x545480(0x1cc)])?this[_0x545480(0x1cc)][_0x545480(0x1e0)]():(ValueUtil['isNotEmpty'](this[_0x545480(0x1e2)])||this[_0x545480(0x1e4)])&&await this[_0x545480(0x1e4)]();}async[a0_0x38b29d(0x1db)](_0x3bf844,_0x5bc224,_0x29eb13){const _0x4ab80c=a0_0x38b29d;let _0x53184c=TermsUtil[_0x4ab80c(0x1c8)](_0x3bf844['title']);ValueUtil[_0x4ab80c(0x1f1)](_0x3bf844[_0x4ab80c(0x1dd)])&&(_0x53184c=_0x53184c+'-'+ValueUtil[_0x4ab80c(0x1d3)](_0x5bc224,..._0x3bf844[_0x4ab80c(0x1dd)][_0x4ab80c(0x1c6)]('.'))),MetaApi[_0x4ab80c(0x1cd)](_0x53184c,_0x3bf844,_0x5bc224,_0x29eb13);}async[a0_0x38b29d(0x1d0)](_0x39fb37,_0xdba9ea,_0x577014){const _0x5ed753=a0_0x38b29d;let _0x3f7cb3=await MetaApi[_0x5ed753(0x1de)](_0x39fb37[_0x5ed753(0x1d6)],_0x39fb37[_0x5ed753(0x1d6)],_0xdba9ea);!0x1!==_0x3f7cb3&&!_0x3f7cb3['errors']&&ValueUtil[_0x5ed753(0x1f1)](_0x39fb37[_0x5ed753(0x1e7)])&&_0x577014();}['setParentId'](_0x5c14c2){const _0xd41048=a0_0x38b29d;this[_0xd41048(0x1ec)]=_0x5c14c2,this[_0xd41048(0x1e0)]();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x39c79f=a0_0x2e94;(function(_0xa48f66,_0x92e29b){const _0x4485a0=a0_0x2e94,_0x576286=_0xa48f66();while(!![]){try{const _0x58e0be=parseInt(_0x4485a0(0x1bf))/0x1+-parseInt(_0x4485a0(0x197))/0x2+-parseInt(_0x4485a0(0x1b9))/0x3*(parseInt(_0x4485a0(0x1bb))/0x4)+-parseInt(_0x4485a0(0x1ac))/0x5*(-parseInt(_0x4485a0(0x192))/0x6)+parseInt(_0x4485a0(0x1c2))/0x7*(parseInt(_0x4485a0(0x1bc))/0x8)+-parseInt(_0x4485a0(0x195))/0x9*(parseInt(_0x4485a0(0x194))/0xa)+-parseInt(_0x4485a0(0x193))/0xb*(-parseInt(_0x4485a0(0x1c0))/0xc);if(_0x58e0be===_0x92e29b)break;else _0x576286['push'](_0x576286['shift']());}catch(_0x53b091){_0x576286['push'](_0x576286['shift']());}}}(a0_0x1e1a,0xd38a2));function a0_0x1e1a(){const _0x7bcd66=['clear','gristId','gridConfig','170lgbaRs','gristConfigSet','keys','grid_column','parse','querySelector','properties','export','getBasicGristHtml','firstUpdated','parseGristConfigs','getSelectedIdList','exportableData','21awEjrF','styles','508196RjQWaB','6315664OrPATD','search','dataSet','343458bKCifL','32868yWOgvv','getBasicGristStyles','7rHyoMm','tTitle','gridColumnConfig','connectedCallback','isNotEmpty','shadowRoot','getData','ox-grist','pageInitialized','40062StsIem','14960JvNNLY','9290lQMUvQ','16641xBAUXm','filterFormId','3222888GkKMQt','title','getAndParseMenuMeta','parseBasicGridConfigs','fetch','save','updateMultiple','getContextObject','findOne','forEach','getButtonContainer','filterForm','menuInfo','activityDataSet','records','grist','data','patchesForUpdateMultiple'];a0_0x1e1a=function(){return _0x7bcd66;};return a0_0x1e1a();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x2e94(_0xfa689e,_0x5e0015){const _0x1e1a82=a0_0x1e1a();return a0_0x2e94=function(_0x2e9495,_0x134205){_0x2e9495=_0x2e9495-0x18c;let _0x1f9572=_0x1e1a82[_0x2e9495];return _0x1f9572;},a0_0x2e94(_0xfa689e,_0x5e0015);}export const MetaBasicGristMixin=_0x4dfe76=>class extends MetaButtonMixin(_0x4dfe76){static get[a0_0x39c79f(0x1ba)](){const _0x1efb74=a0_0x39c79f;return MetaApi[_0x1efb74(0x1c1)]();}static get[a0_0x39c79f(0x1b2)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x4a74b9=a0_0x39c79f;return this['renderRoot']?.[_0x4a74b9(0x1b1)](this[_0x4a74b9(0x1aa)]);}get[a0_0x39c79f(0x1a2)](){const _0x2eb68b=a0_0x39c79f;return this[_0x2eb68b(0x18e)]?.[_0x2eb68b(0x1b1)](this[_0x2eb68b(0x196)]);}get['context'](){const _0x110891=a0_0x39c79f;return MetaUiUtil[_0x110891(0x19e)](this);}async[a0_0x39c79f(0x18c)](){const _0xaab34b=a0_0x39c79f;this[_0xaab34b(0x1aa)]=_0xaab34b(0x190),this['filterFormId']='ox-filters-form',await this[_0xaab34b(0x199)](),this['isElement']&&await this[_0xaab34b(0x1b6)](),this[_0xaab34b(0x1a4)]&&(this[_0xaab34b(0x1be)]=this[_0xaab34b(0x1a4)]),super['connectedCallback']&&await super[_0xaab34b(0x18c)]();}async[a0_0x39c79f(0x1b5)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x39c79f(0x191)](){const _0xf67d8e=a0_0x39c79f;this['isPage']&&await this[_0xf67d8e(0x1b6)](),super['pageInitialized']&&await super[_0xf67d8e(0x191)]();}['render'](){const _0x596083=a0_0x39c79f;return html`
|
|
2
|
+
${MetaApi[_0x596083(0x1b4)](this)}
|
|
3
|
+
${this['isPage']?html``:MetaUiUtil[_0x596083(0x1a1)](this)}
|
|
4
|
+
`;}[a0_0x39c79f(0x19a)](_0x42969c){const _0x38c8b4=a0_0x39c79f;this[_0x38c8b4(0x1ab)]=_0x42969c['grid'],this[_0x38c8b4(0x1c4)]=_0x42969c[_0x38c8b4(0x1af)],this['searchConfig']=_0x42969c[_0x38c8b4(0x1bd)];}async[a0_0x39c79f(0x1b6)](){const _0x36df57=a0_0x39c79f;this[_0x36df57(0x1ad)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x39c79f(0x19b)](){const _0x1ed2b7=a0_0x39c79f;await this[_0x1ed2b7(0x1a6)]['fetch']();}async[a0_0x39c79f(0x19c)](){const _0xf32194=a0_0x39c79f;let _0x5b90f5=MetaApi[_0xf32194(0x1a8)](this[_0xf32194(0x1a6)]);!!ValueUtil[_0xf32194(0x18d)](_0x5b90f5)&&await this[_0xf32194(0x19d)](_0x5b90f5)&&this[_0xf32194(0x19b)]();}async['find'](){const _0xb72af6=a0_0x39c79f;let _0x16df1a=MetaApi[_0xb72af6(0x1b7)](this[_0xb72af6(0x1a6)],!0x0);return ValueUtil['isNotEmpty'](_0x16df1a)?await this[_0xb72af6(0x19f)](_0x16df1a[0x0]):{};}async['delete'](){const _0x352e7a=a0_0x39c79f;let _0x5e08ee=MetaApi['getSelectedIdList'](this[_0x352e7a(0x1a6)],!0x0);!!ValueUtil[_0x352e7a(0x18d)](_0x5e08ee)&&await this['deleteByIds'](_0x5e08ee)&&this[_0x352e7a(0x19b)]();}async[a0_0x39c79f(0x1b3)](){const _0x58f78c=a0_0x39c79f;let _0x4d6106=TermsUtil[_0x58f78c(0x1c3)](ValueUtil['getParams'](this[_0x58f78c(0x1a3)],_0x58f78c(0x198)));return await MetaApi[_0x58f78c(0x1b8)](this['isElement'],_0x4d6106,this[_0x58f78c(0x1a6)]);}async['import'](){}async[a0_0x39c79f(0x1a9)](){const _0x10cc42=a0_0x39c79f;this['grist']&&(this['grist'][_0x10cc42(0x1a7)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x39c79f(0x18f)](){const _0x372b72=a0_0x39c79f;let _0x1de5e3=this[_0x372b72(0x1a6)]['___data'][_0x372b72(0x1a5)];return _0x1de5e3=JSON[_0x372b72(0x1b0)](JSON['stringify'](_0x1de5e3)),_0x1de5e3[_0x372b72(0x1a0)](_0x1b1bb8=>{const _0x467ec8=_0x372b72;Object[_0x467ec8(0x1ae)](_0x1b1bb8)[_0x467ec8(0x1a0)](_0x4811ce=>{_0x4811ce['startsWith']('__')&&delete _0x1b1bb8[_0x4811ce];});}),_0x1de5e3;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x374ea6=a0_0x1df5;(function(_0x123c31,_0x5d8d1c){const _0x5eb841=a0_0x1df5,_0x1e2c26=_0x123c31();while(!![]){try{const _0x49098e=-parseInt(_0x5eb841(0xed))/0x1+parseInt(_0x5eb841(0xe5))/0x2+-parseInt(_0x5eb841(0xe9))/0x3+parseInt(_0x5eb841(0xf0))/0x4+-parseInt(_0x5eb841(0xfc))/0x5+parseInt(_0x5eb841(0xea))/0x6*(-parseInt(_0x5eb841(0xec))/0x7)+-parseInt(_0x5eb841(0xf5))/0x8*(-parseInt(_0x5eb841(0xf4))/0x9);if(_0x49098e===_0x5d8d1c)break;else _0x1e2c26['push'](_0x1e2c26['shift']());}catch(_0x14904a){_0x1e2c26['push'](_0x1e2c26['shift']());}}}(a0_0x10ea,0xb95f4));function a0_0x10ea(){const _0x12fad4=['1715004tAzWEY','useButtonImport','customButtonHandler','gristButtonHandler','9APAvRF','14282192ZLzMfp','properties','isPage','getCustomButtonContainerStyles','import','getButtonContainer','useButtonExport','1953425wsULYd','getBasicButtonHandler','1542354yTjWFK','buttonConfig','parseBasicButtonConfigs','useButtonAdd','2146329lfFRvf','174rJzadt','getCustomButtonContainerStyle','267715UBYuOt','10685yBxmHD','getContextButtons','isButtonExist'];a0_0x10ea=function(){return _0x12fad4;};return a0_0x10ea();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x1df5(_0x623632,_0x19620e){const _0x10ea84=a0_0x10ea();return a0_0x1df5=function(_0x1df5b0,_0x40be7b){_0x1df5b0=_0x1df5b0-0xe4;let _0x437bb6=_0x10ea84[_0x1df5b0];return _0x437bb6;},a0_0x1df5(_0x623632,_0x19620e);}export const MetaButtonMixin=_0x54ba3e=>class extends MetaServiceMixin(_0x54ba3e){static get[a0_0x374ea6(0xf6)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x374ea6(0xeb)](){const _0x3efb19=a0_0x374ea6;return MetaUiUtil[_0x3efb19(0xf8)]();}[a0_0x374ea6(0xee)](){const _0x96046e=a0_0x374ea6;return MetaUiUtil[_0x96046e(0xee)](this);}['getButtonContainer'](){const _0x1f7a58=a0_0x374ea6;return this[_0x1f7a58(0xf7)]?html``:MetaUiUtil[_0x1f7a58(0xfa)](this);}async[a0_0x374ea6(0xe4)](_0x3fa013,_0x1df310,_0x3689f0){return await MetaUiUtil['getButtonActionHandler'](this,_0x3fa013,_0x1df310,_0x3689f0);}async[a0_0x374ea6(0xf2)](_0x5d030c){const _0x4b96da=a0_0x374ea6;await MetaUiUtil[_0x4b96da(0xf2)](this,_0x5d030c);}async['gristButtonHandler'](_0x2f2325,_0x1c57e1){const _0x543d85=a0_0x374ea6;await MetaUiUtil[_0x543d85(0xf3)](this,_0x2f2325,_0x1c57e1);}[a0_0x374ea6(0xe7)](_0x2b7bf2){const _0x3356bd=a0_0x374ea6;this[_0x3356bd(0xe6)]=_0x2b7bf2['button'],this[_0x3356bd(0xf1)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x3356bd(0xf9)),this[_0x3356bd(0xfb)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],'export'),this[_0x3356bd(0xe8)]=MetaUiUtil[_0x3356bd(0xef)](this['buttonConfig'],'add');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4220d1=a0_0x3d6f;(function(_0x439ed5,_0x5a19e5){const _0x172025=a0_0x3d6f,_0x1bdd0c=_0x439ed5();while(!![]){try{const _0x5bd52f=-parseInt(_0x172025(0xb0))/0x1*(-parseInt(_0x172025(0xb3))/0x2)+-parseInt(_0x172025(0x9b))/0x3*(-parseInt(_0x172025(0x8d))/0x4)+parseInt(_0x172025(0x80))/0x5+parseInt(_0x172025(0x9f))/0x6+parseInt(_0x172025(0xbc))/0x7+parseInt(_0x172025(0x89))/0x8+parseInt(_0x172025(0xb8))/0x9*(-parseInt(_0x172025(0x6c))/0xa);if(_0x5bd52f===_0x5a19e5)break;else _0x1bdd0c['push'](_0x1bdd0c['shift']());}catch(_0x238520){_0x1bdd0c['push'](_0x1bdd0c['shift']());}}}(a0_0x4b92,0x9a32b));function a0_0x4b92(){const _0x58b8a6=['isNotEmpty','assign','editable','click','entries','Escape','showAlertPopup','function','forEach','activityDataSet','getBasicFormStyles','dataSet','parseFormConfigs','21xiDSFs','is_activity','grid_column','formRenderConfig','4950312QJxneY','pageInitialized','filter','findOne','tagName','isPage','__seq__','object','currentData','call','editing','updateMultiple','text.NOTHING_CHANGED','removeAttribute','dirtyData','formConfigSet','save','487869arMzfz','getContextObject','currentTarget','4fosPfe','setAttribute','isEmpty','properties','fetch','34137351krFHlf','parent_id','styles','validation','3694537Ajcdus','after','__dirtyfields__','keydown','detail','removeGarbageData','10fSSkhm','clear','map','OX-GRID-FIELD','render','true','__dirty__','connectedCallback','activity','parseFormConfigSet','__origin__','isEquals','getBasicFormHtml','patchData','getData','button','startsWith','renderRoot','key','field-change','4283735skwgXB','name','stopPropagation','focus','record','isElement','addEventListener','formColumnConfig','context','3904360hLoXrJ','keys','firstUpdated','cuFlag','429292eRWqbH'];a0_0x4b92=function(){return _0x58b8a6;};return a0_0x4b92();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3d6f(_0x47e7aa,_0x23de36){const _0x4b9250=a0_0x4b92();return a0_0x3d6f=function(_0x3d6f39,_0x4f3ccc){_0x3d6f39=_0x3d6f39-0x6b;let _0x1f5722=_0x4b9250[_0x3d6f39];return _0x1f5722;},a0_0x3d6f(_0x47e7aa,_0x23de36);}export const MetaFormMixin=_0x1358b8=>class extends MetaButtonMixin(_0x1358b8){static get[a0_0x4220d1(0xba)](){const _0x31b5b4=a0_0x4220d1;return MetaApi[_0x31b5b4(0x98)]();}static get[a0_0x4220d1(0xb6)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x4220d1(0x88)](){const _0x4f5106=a0_0x4220d1;return MetaUiUtil[_0x4f5106(0xb1)](this);}async[a0_0x4220d1(0x73)](){const _0x21b6df=a0_0x4220d1;await this['getAndParseMenuMeta'](),this[_0x21b6df(0x85)]&&await this[_0x21b6df(0x9a)](),this[_0x21b6df(0x97)]&&(this[_0x21b6df(0x99)]=this[_0x21b6df(0x97)]),!0x0!==this[_0x21b6df(0x9c)]||this[_0x21b6df(0xb9)]||(this[_0x21b6df(0xb9)]=_0x21b6df(0x74)),super[_0x21b6df(0x73)]&&await super[_0x21b6df(0x73)](),this[_0x21b6df(0x85)]&&await this['fetch'](),this[_0x21b6df(0x7d)][_0x21b6df(0x86)](_0x21b6df(0xbf),_0x47d256=>{const _0x5f5816=_0x21b6df;switch(_0x47d256[_0x5f5816(0x7e)]){case'Esc':case _0x5f5816(0x93):case'Enter':this[_0x5f5816(0x83)](),this[_0x5f5816(0xb2)]&&this[_0x5f5816(0xb2)][_0x5f5816(0xac)](_0x5f5816(0xa9)),this[_0x5f5816(0xb2)]=null;}}),this['renderRoot']['addEventListener'](_0x21b6df(0x91),_0x398504=>{const _0x3b2cf1=_0x21b6df;_0x398504[_0x3b2cf1(0x82)]();let _0x217bdc=_0x398504['target'];if(this[_0x3b2cf1(0xb2)]&&(this['focus'](),this[_0x3b2cf1(0xb2)]['removeAttribute'](_0x3b2cf1(0xa9))),_0x3b2cf1(0x6f)!==_0x217bdc[_0x3b2cf1(0xa3)]||!_0x217bdc['column'][_0x3b2cf1(0x84)][_0x3b2cf1(0x90)])return this[_0x3b2cf1(0x83)](),void(this[_0x3b2cf1(0xb2)]=null);this['currentTarget']=_0x217bdc,_0x217bdc[_0x3b2cf1(0xb4)](_0x3b2cf1(0xa9),_0x3b2cf1(0x71));}),this['addEventListener'](_0x21b6df(0x7f),_0xe93071=>{const _0x576f9c=_0x21b6df;var {after:_0x5ce838,before:_0x39fa92,column:_0x16490e,record:_0x20cde0,row:_0x2dbed4}=_0xe93071[_0x576f9c(0xc0)];if(ValueUtil[_0x576f9c(0x77)](_0x5ce838,_0x39fa92))return;var _0x223838=_0x16490e[_0x576f9c(0xbb)];if(_0x223838&&_0x576f9c(0x95)==typeof _0x223838&&!_0x223838[_0x576f9c(0xa8)](this,_0x5ce838,_0x39fa92,_0x20cde0,_0x16490e))return;let _0x538923=_0x16490e[_0x576f9c(0x81)];_0x20cde0[_0x538923]=_0x5ce838,_0x20cde0[_0x576f9c(0xbe)]=_0x20cde0[_0x576f9c(0xbe)]||{},_0x20cde0[_0x576f9c(0x76)]=_0x20cde0[_0x576f9c(0x76)]||{},_0x20cde0[_0x576f9c(0xbe)][_0x538923]={'before':_0x20cde0['__origin__'][_0x538923],'after':_0x20cde0[_0x538923]},ValueUtil[_0x576f9c(0x77)](_0x20cde0['__dirtyfields__'][_0x538923]['before'],_0x20cde0['__dirtyfields__'][_0x538923]['after'])&&delete _0x20cde0[_0x576f9c(0xbe)][_0x538923],ValueUtil[_0x576f9c(0x8e)](_0x20cde0['__dirtyfields__'])?_0x20cde0['__dirty__']='M':_0x20cde0[_0x576f9c(0x72)]='',this[_0x576f9c(0x84)]={..._0x20cde0};});}async[a0_0x4220d1(0x8b)](){const _0x314e3d=a0_0x4220d1;super[_0x314e3d(0x8b)]&&await super['firstUpdated']();}async[a0_0x4220d1(0xa0)](){const _0x5258d7=a0_0x4220d1;this[_0x5258d7(0xa4)]&&await this['parseFormConfigs'](),super[_0x5258d7(0xa0)]&&await super[_0x5258d7(0xa0)](),this['isPage']&&await this[_0x5258d7(0xb7)]();}[a0_0x4220d1(0x70)](){const _0x263282=a0_0x4220d1;return MetaApi[_0x263282(0x78)](this);}['parseBasicFormConfigs'](_0x4892c5){const _0x2ec894=a0_0x4220d1;this[_0x2ec894(0x87)]=_0x4892c5[_0x2ec894(0x9d)],this[_0x2ec894(0x9e)]=_0x4892c5['form'],_0x4892c5[_0x2ec894(0x7b)]=_0x4892c5[_0x2ec894(0x7b)][_0x2ec894(0xa1)](_0x5acdf3=>_0x2ec894(0xaf)==_0x5acdf3[_0x2ec894(0x81)]);}async[a0_0x4220d1(0x9a)](){const _0x47511b=a0_0x4220d1;this[_0x47511b(0xae)]=await MetaApi[_0x47511b(0x75)](this);}get['orgData'](){const _0x315423=a0_0x4220d1;return this[_0x315423(0x6b)](this[_0x315423(0x84)][_0x315423(0x76)]);}get[a0_0x4220d1(0xad)](){const _0x36d587=a0_0x4220d1;if(ValueUtil[_0x36d587(0xb5)](this['record'][_0x36d587(0xbe)]))return{};let _0x380726={};return Object[_0x36d587(0x92)](this[_0x36d587(0x84)]['__dirtyfields__'])[_0x36d587(0x6e)](([_0x45b3b1,_0x54a5a3])=>{const _0x30ebf5=_0x36d587;0x0==_0x45b3b1[_0x30ebf5(0x7c)]('__')&&(_0x380726[_0x45b3b1]=_0x54a5a3[_0x30ebf5(0xbd)]);}),_0x380726;}get[a0_0x4220d1(0xa7)](){const _0x6e7413=a0_0x4220d1;return this[_0x6e7413(0x6b)](this[_0x6e7413(0x84)]);}[a0_0x4220d1(0x6b)](_0xa074c5){const _0x5bba77=a0_0x4220d1;let _0x6dac27={};if(_0xa074c5)return Object[_0x5bba77(0x92)](_0xa074c5)['map'](([_0x10c7ae,_0x53ab63])=>{const _0x5c5af5=_0x5bba77;0x0==_0x10c7ae[_0x5c5af5(0x7c)]('__')&&(_0x6dac27[_0x10c7ae]=_0x53ab63);}),_0x6dac27;}get['patchData'](){const _0x142587=a0_0x4220d1;let _0x427141=this[_0x142587(0xad)],_0x35ce8a=this[_0x142587(0x84)];return ValueUtil[_0x142587(0xb5)](_0x427141)?[]:(ValueUtil['isNotEmpty'](_0x35ce8a['id'])?(_0x427141['id']=_0x35ce8a['id'],_0x427141[_0x142587(0x8c)]='M'):_0x427141[_0x142587(0x8c)]='+',Object[_0x142587(0x8a)](_0x427141)[_0x142587(0x96)](_0x142a55=>{const _0x56d5e9=_0x142587;_0x56d5e9(0xa6)==typeof _0x427141[_0x142a55]&&(_0x427141[_0x142a55]={'id':_0x427141[_0x142a55]['id']});}),[_0x427141]);}async[a0_0x4220d1(0xb7)](){const _0x21d01b=a0_0x4220d1;if(ValueUtil[_0x21d01b(0xb5)](this[_0x21d01b(0xb9)]))return;let _0x5bafc0=await this[_0x21d01b(0xa2)](this['parent_id']);_0x5bafc0[_0x21d01b(0xa5)]=0x1;let _0x3df816={};Object[_0x21d01b(0x8f)](_0x3df816,_0x5bafc0),_0x5bafc0['__origin__']=_0x3df816,this[_0x21d01b(0x84)]={..._0x5bafc0};}async[a0_0x4220d1(0xaf)](){const _0x4974de=a0_0x4220d1;let _0x59a25e=this[_0x4974de(0x79)];if(ValueUtil[_0x4974de(0xb5)](_0x59a25e))return void MetaApi[_0x4974de(0x94)]('title.info',_0x4974de(0xab));let _0x3aa80d=await this[_0x4974de(0xaa)](_0x59a25e);return _0x3aa80d&&await this[_0x4974de(0xb7)](),_0x3aa80d;}async[a0_0x4220d1(0x6d)](){const _0x59e596=a0_0x4220d1;this[_0x59e596(0x84)]&&(this['record']={});}[a0_0x4220d1(0x7a)](){return this['currentData']||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x52c47f=a0_0x2f32;(function(_0x193202,_0x39f398){const _0xe72dbf=a0_0x2f32,_0x2edc02=_0x193202();while(!![]){try{const _0xb77dd0=parseInt(_0xe72dbf(0x1cf))/0x1*(parseInt(_0xe72dbf(0x201))/0x2)+parseInt(_0xe72dbf(0x1f7))/0x3+-parseInt(_0xe72dbf(0x1bb))/0x4+parseInt(_0xe72dbf(0x1f9))/0x5+-parseInt(_0xe72dbf(0x1b9))/0x6*(parseInt(_0xe72dbf(0x1c4))/0x7)+parseInt(_0xe72dbf(0x1d9))/0x8*(parseInt(_0xe72dbf(0x1b2))/0x9)+-parseInt(_0xe72dbf(0x1c8))/0xa;if(_0xb77dd0===_0x39f398)break;else _0x2edc02['push'](_0x2edc02['shift']());}catch(_0x119a83){_0x2edc02['push'](_0x2edc02['shift']());}}}(a0_0x361a,0x6e7cb));function a0_0x2f32(_0x12ed52,_0x598766){const _0x361a7e=a0_0x361a();return a0_0x2f32=function(_0x2f32c4,_0x186509){_0x2f32c4=_0x2f32c4-0x1b1;let _0x264ff1=_0x361a7e[_0x2f32c4];return _0x264ff1;},a0_0x2f32(_0x12ed52,_0x598766);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x27825e=>class extends MetaButtonMixin(_0x27825e){static get['styles'](){const _0x4eb731=a0_0x2f32;return MetaApi[_0x4eb731(0x1e7)]();}static get[a0_0x52c47f(0x1e8)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x52c47f(0x1ee)](){const _0x23c390=a0_0x52c47f;return this['renderRoot'][_0x23c390(0x1bd)](this[_0x23c390(0x1be)]);}get['filterForm'](){const _0x1d9a4d=a0_0x52c47f;return this[_0x1d9a4d(0x1c9)]?.[_0x1d9a4d(0x1bd)](this[_0x1d9a4d(0x1d8)]);}get[a0_0x52c47f(0x1d2)](){const _0x292dc4=a0_0x52c47f;return this[_0x292dc4(0x1c9)]['querySelector'](_0x292dc4(0x1cb));}get[a0_0x52c47f(0x1c1)](){const _0x550798=a0_0x52c47f;let _0x1d62e8=MetaUiUtil[_0x550798(0x1b3)](this);return _0x1d62e8[_0x550798(0x1bf)]&&delete _0x1d62e8['actions'],_0x1d62e8[_0x550798(0x1fe)]&&delete _0x1d62e8[_0x550798(0x1fe)],_0x1d62e8[_0x550798(0x1e4)]&&delete _0x1d62e8['importable'],_0x1d62e8;}async[a0_0x52c47f(0x1fb)](){const _0x32b6c2=a0_0x52c47f;this[_0x32b6c2(0x1be)]=_0x32b6c2(0x1f0),this[_0x32b6c2(0x1d8)]=_0x32b6c2(0x1d4),await this['getAndParseMenuMeta'](),this[_0x32b6c2(0x1da)]&&await this[_0x32b6c2(0x1b1)](),this['activityDataSet']&&(this['dataSet']=(this[_0x32b6c2(0x1ba)]||{})[_0x32b6c2(0x1b5)]),super[_0x32b6c2(0x1fb)]&&await super[_0x32b6c2(0x1fb)]();}async[a0_0x52c47f(0x1c7)](){const _0xb5f866=a0_0x52c47f;super[_0xb5f866(0x1c7)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x34efcb=a0_0x52c47f;this[_0x34efcb(0x1ec)]&&await this[_0x34efcb(0x1b1)](),super[_0x34efcb(0x1e2)]&&await super[_0x34efcb(0x1e2)]();}[a0_0x52c47f(0x1c0)](){const _0x287aec=a0_0x52c47f;return MetaApi[_0x287aec(0x1d5)](this);}[a0_0x52c47f(0x1b8)](_0x101349){const _0x5674e3=a0_0x52c47f;this[_0x5674e3(0x1c5)]=_0x101349[_0x5674e3(0x1ea)],this[_0x5674e3(0x1b4)]=_0x101349[_0x5674e3(0x1f8)],this[_0x5674e3(0x1e9)]=_0x101349['search'];}async[a0_0x52c47f(0x1b1)](){const _0x15ee2b=a0_0x52c47f;this[_0x15ee2b(0x1e0)]=await MetaApi['parseGridConfigSet'](this),this[_0x15ee2b(0x1ce)]=!0x0===this[_0x15ee2b(0x1bc)],this[_0x15ee2b(0x1bc)]=!0x1,this[_0x15ee2b(0x1fa)]=[],this[_0x15ee2b(0x1b6)]=this[_0x15ee2b(0x1e0)][_0x15ee2b(0x1f2)][_0x15ee2b(0x1f1)](_0x39c4a8=>_0x39c4a8[_0x15ee2b(0x1f1)])[_0x15ee2b(0x1b7)](_0x305b4f=>{const _0x178947=_0x15ee2b;let _0xc2df28={'name':_0x305b4f[_0x178947(0x1cd)],'type':'search'===_0x305b4f[_0x178947(0x1f1)][_0x178947(0x1cc)]?_0x178947(0x1d6):_0x305b4f['type'],'label':_0x305b4f[_0x178947(0x1d3)],'operator':_0x305b4f['filter'][_0x178947(0x1cc)]?_0x305b4f[_0x178947(0x1f1)]['operator']:'eq'};return _0x305b4f[_0x178947(0x1f1)][_0x178947(0x1e5)]&&(_0xc2df28[_0x178947(0x1e5)]=_0x305b4f[_0x178947(0x1f1)][_0x178947(0x1e5)]),_0x305b4f[_0x178947(0x1ff)][_0x178947(0x1e5)]&&(_0xc2df28['options']=_0x305b4f['record']['options']),_0x305b4f['filter']['value']&&this['searchFieldValues'][_0x178947(0x1f6)]({'name':_0xc2df28['name'],'operator':_0xc2df28[_0x178947(0x1cc)],'value':_0x305b4f['filter'][_0x178947(0x1dd)]}),delete _0x305b4f[_0x178947(0x1f1)],_0xc2df28;});}async[a0_0x52c47f(0x1fc)](){const _0x19e22a=a0_0x52c47f;await this[_0x19e22a(0x1ee)][_0x19e22a(0x1fc)]();}async[a0_0x52c47f(0x1c3)]({page:_0x558542=0x0,limit:_0x17e442=0x0,sortings:_0x586df5=[],filters:_0x164a77=[]}){const _0x8f82c0=a0_0x52c47f;let _0x274cb9=this[_0x8f82c0(0x1d0)]['querySelector'](_0x8f82c0(0x202));return await _0x274cb9[_0x8f82c0(0x1c6)](),!0x0;}async[a0_0x52c47f(0x1d7)](){const _0x1b5cfa=a0_0x52c47f;let _0x129dce=MetaApi[_0x1b5cfa(0x1ca)](this[_0x1b5cfa(0x1ee)]);!!ValueUtil[_0x1b5cfa(0x1df)](_0x129dce)&&await this[_0x1b5cfa(0x200)](_0x129dce)&&this[_0x1b5cfa(0x1fc)]();}async[a0_0x52c47f(0x1e6)](){const _0x239b30=a0_0x52c47f;let _0x43fe21=MetaApi[_0x239b30(0x1c2)](this['grist'],!0x0);return ValueUtil[_0x239b30(0x1df)](_0x43fe21)?await this[_0x239b30(0x1eb)](_0x43fe21[0x0]):{};}async[a0_0x52c47f(0x1fd)](){const _0x3cbfe4=a0_0x52c47f;let _0x5aecb2=MetaApi[_0x3cbfe4(0x1c2)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x5aecb2)&&await this['deleteByIds'](_0x5aecb2)&&this[_0x3cbfe4(0x1fc)]();}async['export'](){const _0x278dd4=a0_0x52c47f;let _0x4d1404=TermsUtil['tTitle'](ValueUtil[_0x278dd4(0x1f3)](this[_0x278dd4(0x1f5)],_0x278dd4(0x1dc)));return await MetaApi[_0x278dd4(0x1d1)](this[_0x278dd4(0x1da)],_0x4d1404,this[_0x278dd4(0x1ee)]);}async['import'](){}[a0_0x52c47f(0x1e1)](){const _0xd5ee29=a0_0x52c47f;let _0x308cdc=this[_0xd5ee29(0x1ee)][_0xd5ee29(0x1f4)][_0xd5ee29(0x1db)];return _0x308cdc=JSON['parse'](JSON[_0xd5ee29(0x1de)](_0x308cdc)),_0x308cdc[_0xd5ee29(0x1e3)](_0x2e09a3=>{const _0x1200a6=_0xd5ee29;Object[_0x1200a6(0x1ef)](_0x2e09a3)['forEach'](_0x3bffc9=>{const _0x76948e=_0x1200a6;_0x3bffc9[_0x76948e(0x1ed)]('__')&&delete _0x2e09a3[_0x3bffc9];});}),{'main':_0x308cdc,'detail':this[_0xd5ee29(0x1d0)][_0xd5ee29(0x1bd)](_0xd5ee29(0x202))[_0xd5ee29(0x1e1)]()};}};function a0_0x361a(){const _0x392469=['484316pXnkRT','useFilterForm','querySelector','gristId','actions','render','context','getSelectedIdList','beforeFetch','4529zvdybv','gridConfig','clear','firstUpdated','16456580uMbSLY','shadowRoot','patchesForUpdateMultiple','#detail','operator','name','useMasterFilterForm','13rwaJtg','renderRoot','exportableData','detailElement','header','ox-filters-form-base','getGristTabHtml','search','save','filterFormId','56jQByYt','isElement','records','title','value','stringify','isNotEmpty','gristConfigSet','getData','pageInitialized','forEach','importable','options','find','getBasicGristTabStyles','properties','searchConfig','grid','findOne','isPage','startsWith','grist','keys','ox-grist','filter','columns','getParams','___data','menuInfo','push','1910358ICNHSg','grid_column','2725440OHjRIj','searchFieldValues','connectedCallback','fetch','delete','exportable','record','updateMultiple','58012zEIJxW','meta-tab-element','parseGristConfigs','869805nIzCIj','getContextObject','gridColumnConfig','main','searchFields','map','parseBasicGridConfigs','150jWlxWW','activityDataSet'];a0_0x361a=function(){return _0x392469;};return a0_0x361a();}
|