@things-factory/meta-ui 6.1.72 → 6.1.74
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-code-input.js +5 -5
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- 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/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/index.js +4 -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 +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/button-role/config-button-roles.js +69 -0
- 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/menu/export-menu-popup.js +7 -7
- 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/grist-default-value.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 +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.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/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x2c3586=a0_0x2c3f;(function(_0x174e40,_0xb90625){const _0x40d8ac=a0_0x2c3f,_0x4806e5=_0x174e40();while(!![]){try{const _0x23d238=-parseInt(_0x40d8ac(0x1b7))/0x1+parseInt(_0x40d8ac(0x1a9))/0x2*(-parseInt(_0x40d8ac(0x1b4))/0x3)+parseInt(_0x40d8ac(0x1bc))/0x4+-parseInt(_0x40d8ac(0x1af))/0x5+parseInt(_0x40d8ac(0x1ba))/0x6*(-parseInt(_0x40d8ac(0x1c2))/0x7)+-parseInt(_0x40d8ac(0x1c0))/0x8*(-parseInt(_0x40d8ac(0x1c3))/0x9)+parseInt(_0x40d8ac(0x1bd))/0xa;if(_0x23d238===_0xb90625)break;else _0x4806e5['push'](_0x4806e5['shift']());}catch(_0x59d823){_0x4806e5['push'](_0x4806e5['shift']());}}}(a0_0x9153,0x9fdaa));import'../viewparts/dynamic-menu-part';function a0_0x2c3f(_0x1bc943,_0x4c522b){const _0x9153a3=a0_0x9153();return a0_0x2c3f=function(_0x2c3f44,_0x219498){_0x2c3f44=_0x2c3f44-0x1a9;let _0x4ae4e9=_0x9153a3[_0x2c3f44];return _0x4ae4e9;},a0_0x2c3f(_0x1bc943,_0x4c522b);}import'@material/mwc-icon';import a0_0x3fd509 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';function a0_0x9153(){const _0xf5dd6d=['dispatch','portrait','1506315pHLpwb','items','UPDATE_META_UI','NAVBAR','querySelector','81CjsPGx','rank','meta[name=\x22application-name\x22]','481087QWquBU','data','get','6fgdQul','value','1146680TatDvQ','17824170sceWug','appName','dynamic-menu-part','8cDkRNp','landscape','5057486utHJQg','1563876pLJcjZ','lite-menu-part','active','HEADERBAR','query','6166cwSnlF','content','UPDATE_META_MENU_TEMPLATE','hamburger'];a0_0x9153=function(){return _0xf5dd6d;};return a0_0x9153();}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_0x2c3586(0x1b1);export const UPDATE_META_MENU_TEMPLATE=a0_0x2c3586(0x1ab);var HAMBURGER;export async function setupMenuPart(_0x457fd3){const _0x2bbdbc=a0_0x2c3586;var {hovering:_0x46ecd7=!!isMobileDevice(),slotTemplate:_0x36ed55,portraitSlotTemplate:_0x3948a4,landscapeSlotTemplate:_0x122a7d,position:_0xc0e8aa=VIEWPART_POSITION[_0x2bbdbc(0x1b2)]}=_0x457fd3||{};const {hovering:_0x45c1c0}=(await clientSettingStore[_0x2bbdbc(0x1b9)]('dynamic-menu'))?.[_0x2bbdbc(0x1bb)]||{};void 0x0!==_0x45c1c0&&(_0x46ecd7=_0x45c1c0);const _0x434dd5=_0xc0e8aa==VIEWPART_POSITION[_0x2bbdbc(0x1c6)]?'landscape':'portrait',_0xab878a=(_0x2bbdbc(0x1c1)==_0x434dd5?_0x122a7d:_0x3948a4)||_0x36ed55||html``;appendViewpart({'name':_0x2bbdbc(0x1c4),'viewpart':{'show':!_0x46ecd7,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x46ecd7,'template':html`<dynamic-menu-part .orientation=${_0x434dd5}>${_0xab878a}</dynamic-menu-part>`},'position':_0xc0e8aa}),_0x46ecd7&&_0x2bbdbc(0x1ae)==_0x434dd5?HAMBURGER||(HAMBURGER={'name':'hamburger','template':html`
|
|
2
|
+
<mwc-icon @click=${_0xd87cda=>toggleOverlay(_0x2bbdbc(0x1bf),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION['FRONT_END']},store[_0x2bbdbc(0x1ad)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x2bbdbc(0x1ad)]({'type':REMOVE_APP_TOOL,'name':_0x2bbdbc(0x1ac)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x37fe07){const _0x54e6fb=a0_0x2c3586;var _0x1d007c=document[_0x54e6fb(0x1b3)](_0x54e6fb(0x1b6))?.[_0x54e6fb(0x1aa)],_0x28902f=(await client[_0x54e6fb(0x1c7)]({'query':a0_0x3fd509`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x199450=a0_0x2b19;function a0_0x2b19(_0xd8d30d,_0x325e4a){const _0x56f
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x54e6fb(0x1c5),'operator':'eq','value':!0x0},{'name':_0x54e6fb(0x1be),'operator':'in','value':['',_0x1d007c]}],'sortings':[{'name':_0x54e6fb(0x1b5),'desc':!0x1}]}}))[_0x54e6fb(0x1b8)]['liteMenus'][_0x54e6fb(0x1b0)];store[_0x54e6fb(0x1ad)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x28902f['filter'](_0xe1bb98=>!_0xe1bb98['appName']||_0xe1bb98[_0x54e6fb(0x1be)]===_0x1d007c),'template':_0x37fe07});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x396771,_0x2edf1f){const _0x5e372c=a0_0x6910,_0x3b766c=_0x396771();while(!![]){try{const _0xc59b64=-parseInt(_0x5e372c(0xc9))/0x1*(parseInt(_0x5e372c(0xb2))/0x2)+-parseInt(_0x5e372c(0xc1))/0x3*(-parseInt(_0x5e372c(0xbd))/0x4)+parseInt(_0x5e372c(0xce))/0x5*(parseInt(_0x5e372c(0xcf))/0x6)+-parseInt(_0x5e372c(0xb9))/0x7*(parseInt(_0x5e372c(0xd0))/0x8)+parseInt(_0x5e372c(0xb1))/0x9+-parseInt(_0x5e372c(0xd3))/0xa*(-parseInt(_0x5e372c(0xb3))/0xb)+parseInt(_0x5e372c(0xd6))/0xc*(-parseInt(_0x5e372c(0xbe))/0xd);if(_0xc59b64===_0x2edf1f)break;else _0x3b766c['push'](_0x3b766c['shift']());}catch(_0x25a8c1){_0x3b766c['push'](_0x3b766c['shift']());}}}(a0_0x3ee9,0xee56b));import'../popup/meta-object-selector-popup';function a0_0x6910(_0x361d4b,_0x51226f){const _0x3ee9b0=a0_0x3ee9();return a0_0x6910=function(_0x69103b,_0x5af553){_0x69103b=_0x69103b-0xb0;let _0x29e821=_0x3ee9b0[_0x69103b];return _0x29e821;},a0_0x6910(_0x361d4b,_0x51226f);}import{html}from'lit-html';function a0_0x3ee9(){const _0x21aea4=['5369cSlrvk','join','splice','12uunkMp','codes','tMenu','tagName','dispatchEvent','map','form\x20[name=\x22','toLowerCase','2zZrtNm','target','large','querySelector','[name=\x22','699630MBtAjV','78kTYTSl','3448976hUylxY','selectorName','change','10ZomhlC','stopPropagation','value','24924KNvPvp','length','4297851HELVPC','1033618BOPfEp','9358063TGNVdB','dispField','ox-grid-header','filter-change','filter','tTitle','14FLKnlE','name','options','renderRoot','582588fuPTtA'];a0_0x3ee9=function(){return _0x21aea4;};return a0_0x3ee9();}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x5bc3f0,_0x4e0b3,_0x5c616a){const _0x22313d=a0_0x6910;var _0x2477f1=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x4e0b3}
|
|
4
|
+
.options=${_0x5bc3f0[_0x22313d(0xbb)]}
|
|
5
|
+
.confirmCallback=${_0x5c616a}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x2477f1,{'backdrop':!0x0,'size':_0x22313d(0xcb),'title':_0x5bc3f0['options'][_0x22313d(0xd1)]?TermsUtil[_0x22313d(0xc3)](_0x5bc3f0[_0x22313d(0xbb)][_0x22313d(0xd1)]):TermsUtil[_0x22313d(0xb8)]('select_item')});}export const FilterFormMetaCodeSelect=(_0x5cc504,_0x4b20b1,_0x3a39fe)=>{const _0x211104=a0_0x6910,_0xff9910=_0x5cc504['options'],_0x554fe7=_0xff9910['codes']&&_0xff9910[_0x211104(0xc2)][_0x211104(0xb0)]>0x0?_0xff9910[_0x211104(0xc2)]:void 0x0,{operator:_0xc3e2cd='eq'}=_0x5cc504;let _0x25bfad=_0x4b20b1||'',_0x3cbf5b=_0x4b20b1||'';if(_0xff9910[_0x211104(0xb4)]&&_0x4b20b1&&_0x554fe7){let _0x2c5e32=_0x554fe7[_0x211104(0xb7)](_0x597452=>_0x597452['value']==_0x4b20b1);_0x2c5e32&&_0x2c5e32['length']>0x0&&(_0x3cbf5b=_0x2c5e32[0x0]['display']);}return'eq'===_0xc3e2cd?html`
|
|
8
|
+
<input name='${_0x5cc504[_0x211104(0xba)]}' .value=${_0x25bfad} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x5cc504[_0x211104(0xba)]}_disp'
|
|
13
|
+
.value=${_0x3cbf5b}
|
|
14
|
+
@click=${_0x55c3ce=>{const _0x36a3c6=_0x211104;_0x55c3ce[_0x36a3c6(0xd4)]();const _0x28644b=_0x55c3ce[_0x36a3c6(0xca)];openMetaCodeSelector(_0x5cc504,_0x4b20b1,_0x3fdbaf=>{const _0x2ce3ee=_0x36a3c6;let _0x2d7b7a=_0x3fdbaf?_0x3fdbaf[_0xff9910['codeField']]:'',_0xe92591=_0x2d7b7a;if(_0x3fdbaf&&_0xff9910[_0x2ce3ee(0xb4)]){let _0x21dcba=_0xff9910['dispField']['split'](',');_0xe92591=_0x3fdbaf[_0x21dcba[0x0]],_0x21dcba[_0x2ce3ee(0xb0)]>0x1&&(_0xe92591+='('+_0x21dcba[_0x2ce3ee(0xc0)](0x1)[_0x2ce3ee(0xc6)](_0x837a5f=>_0x3fdbaf[_0x837a5f])[_0x2ce3ee(0xbf)](',')+')');}_0x28644b[_0x2ce3ee(0xd5)]=_0xe92591,(_0x2ce3ee(0xb5)==_0x3a39fe[_0x2ce3ee(0xc4)][_0x2ce3ee(0xc8)]()?_0x3a39fe[_0x2ce3ee(0xbc)][_0x2ce3ee(0xcc)](_0x2ce3ee(0xcd)+_0x5cc504[_0x2ce3ee(0xba)]+'\x22]'):_0x3a39fe[_0x2ce3ee(0xbc)][_0x2ce3ee(0xcc)](_0x2ce3ee(0xc7)+_0x5cc504[_0x2ce3ee(0xba)]+'\x22]'))[_0x2ce3ee(0xd5)]=_0x2d7b7a,_0x28644b[_0x2ce3ee(0xc5)](new Event(_0x2ce3ee(0xd2),{'bubbles':!0x0})),_0x28644b[_0x2ce3ee(0xc5)](new CustomEvent(_0x2ce3ee(0xb6),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x5cc504['name'],'operator':_0xc3e2cd,'value':_0x2d7b7a}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12b963,_0x225ba3){const _0x5ebb4c=a0_0x172a,_0x82faad=_0x12b963();while(!![]){try{const _0x197eab=-parseInt(_0x5ebb4c(0x140))/0x1+-parseInt(_0x5ebb4c(0x143))/0x2+parseInt(_0x5ebb4c(0x153))/0x3+parseInt(_0x5ebb4c(0x15c))/0x4+-parseInt(_0x5ebb4c(0x15b))/0x5+-parseInt(_0x5ebb4c(0x144))/0x6*(-parseInt(_0x5ebb4c(0x15d))/0x7)+parseInt(_0x5ebb4c(0x15a))/0x8;if(_0x197eab===_0x225ba3)break;else _0x82faad['push'](_0x82faad['shift']());}catch(_0x5b33ae){_0x82faad['push'](_0x82faad['shift']());}}}(a0_0x17bb,0x2abdd));function a0_0x172a(_0x5eab3e,_0x4af213){const _0x17bbf2=a0_0x17bb();return a0_0x172a=function(_0x172a68,_0x200815){_0x172a68=_0x172a68-0x140;let _0x58114d=_0x17bbf2[_0x172a68];return _0x58114d;},a0_0x172a(_0x5eab3e,_0x4af213);}import'../popup/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x17bb(){const _0x107c26=['32986IaqJLx','6cLCFXu','selectorName','stopPropagation','[name=\x22','change','renderRoot','join','value','splice','name','nameField','split','options','map','filter-change','590943hagARS','target','length','tMenu','tTitle','large','form\x20[name=\x22','1254848cUMvoY','1112915HrsJCU','910540tzeeUq','1072771WuGYTj','320580pyewWC','querySelector','dispatchEvent'];a0_0x17bb=function(){return _0x107c26;};return a0_0x17bb();}import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x3cc980,_0x3ea623,_0xb75dc0){const _0x5c7b62=a0_0x172a;var _0xdfbde2=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x3ea623}
|
|
4
|
+
.options=${_0x3cc980[_0x5c7b62(0x150)]}
|
|
5
|
+
.confirmCallback=${_0xb75dc0}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0xdfbde2,{'backdrop':!0x0,'size':_0x5c7b62(0x158),'title':_0x3cc980[_0x5c7b62(0x150)][_0x5c7b62(0x145)]?TermsUtil[_0x5c7b62(0x156)](_0x3cc980[_0x5c7b62(0x150)]['selectorName']):TermsUtil[_0x5c7b62(0x157)]('select_item')});}export const FilterFormMetaObjectSelect=(_0x4e4f6b,_0x163b83,_0x5d860e)=>{const _0x274870=a0_0x172a,_0x4461d1=_0x4e4f6b[_0x274870(0x150)],{operator:_0x5added='eq'}=_0x4e4f6b;let _0xa17415=_0x163b83?_0x163b83['id']:'',_0x462e16='';if(_0x163b83){let _0x4ff08b=_0x4461d1[_0x274870(0x14e)][_0x274870(0x14f)](',');_0x462e16=_0x163b83[_0x4ff08b[0x0]],_0x4ff08b[_0x274870(0x155)]>0x1&&(_0x462e16+='('+_0x4ff08b[_0x274870(0x14c)](0x1)[_0x274870(0x151)](_0xbb2ea4=>_0x163b83[_0xbb2ea4])[_0x274870(0x14a)](',')+')');}return'eq'===_0x5added?html`
|
|
8
|
+
<input name='${_0x4e4f6b[_0x274870(0x14d)]}' .value=${_0xa17415} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x4e4f6b[_0x274870(0x14d)]}_disp'
|
|
13
|
+
.value=${_0x462e16}
|
|
14
|
+
@click=${_0x376997=>{const _0x3ecc8a=_0x274870;_0x376997[_0x3ecc8a(0x146)]();const _0x35b6b3=_0x376997[_0x3ecc8a(0x154)];openMetaObjectSelector(_0x4e4f6b,_0x163b83,_0x51793c=>{const _0x4ca0c4=_0x3ecc8a;let _0x5c43f9=_0x51793c?_0x51793c['id']:'',_0x2366bb='';if(_0x51793c){let _0xfc3cc7=_0x4461d1[_0x4ca0c4(0x14e)][_0x4ca0c4(0x14f)](',');_0x2366bb=_0x51793c[_0xfc3cc7[0x0]],_0xfc3cc7[_0x4ca0c4(0x155)]>0x1&&(_0x2366bb+='('+_0xfc3cc7[_0x4ca0c4(0x14c)](0x1)[_0x4ca0c4(0x151)](_0x535434=>_0x51793c[_0x535434])[_0x4ca0c4(0x14a)](',')+')');}_0x35b6b3[_0x4ca0c4(0x14b)]=_0x2366bb,('ox-grid-header'==_0x5d860e['tagName']['toLowerCase']()?_0x5d860e[_0x4ca0c4(0x149)]['querySelector'](_0x4ca0c4(0x147)+_0x4e4f6b['name']+'\x22]'):_0x5d860e[_0x4ca0c4(0x149)][_0x4ca0c4(0x141)](_0x4ca0c4(0x159)+_0x4e4f6b[_0x4ca0c4(0x14d)]+'\x22]'))[_0x4ca0c4(0x14b)]=_0x5c43f9,_0x35b6b3[_0x4ca0c4(0x142)](new Event(_0x4ca0c4(0x148),{'bubbles':!0x0})),_0x35b6b3['dispatchEvent'](new CustomEvent(_0x4ca0c4(0x152),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x4e4f6b[_0x4ca0c4(0x14d)],'operator':_0x5added,'value':_0x5c43f9}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e5dfb,_0x1d7aee){const _0x307d59=a0_0x3c50,_0x12f45c=_0x1e5dfb();while(!![]){try{const _0x3c00ce=parseInt(_0x307d59(0x8c))/0x1+-parseInt(_0x307d59(0xa1))/0x2*(parseInt(_0x307d59(0xa4))/0x3)+-parseInt(_0x307d59(0x9a))/0x4*(parseInt(_0x307d59(0x8f))/0x5)+parseInt(_0x307d59(0xa2))/0x6*(parseInt(_0x307d59(0x9e))/0x7)+-parseInt(_0x307d59(0x94))/0x8+-parseInt(_0x307d59(0x98))/0x9*(-parseInt(_0x307d59(0x93))/0xa)+-parseInt(_0x307d59(0x85))/0xb*(-parseInt(_0x307d59(0x8d))/0xc);if(_0x3c00ce===_0x1d7aee)break;else _0x12f45c['push'](_0x12f45c['shift']());}catch(_0x2b9e8f){_0x12f45c['push'](_0x12f45c['shift']());}}}(a0_0x45c2,0x8ecc4));import'../popup/meta-object-selector-popup';function a0_0x3c50(_0x1ac9c7,_0x5cd06f){const _0x45c2a6=a0_0x45c2();return a0_0x3c50=function(_0x3c5001,_0x2a2c99){_0x3c5001=_0x3c5001-0x7b;let _0x34e0ca=_0x45c2a6[_0x3c5001];return _0x34e0ca;},a0_0x3c50(_0x1ac9c7,_0x5cd06f);}function a0_0x45c2(){const _0x2d048d=['[name=\x22','value','257499JrOHtn','118188hwEIGb','length','195pAoDRP','target','record','selectorName','849730VSiMVY','8908712qIjfyy','querySelector','tagName','name','117zQJtlh','toLowerCase','29320XyHMct','large','splice','map','2768913ZRKLnu','split','filter-change','2acrKDm','6lIpbso','ox-grid-header','1506522SFwdLs','filter','tMenu','codes','codeField','select_item','dispField','display','options','form\x20[name=\x22','dispatchEvent','tTitle','814AwlSHh','join','renderRoot','change','stopPropagation'];a0_0x45c2=function(){return _0x2d048d;};return a0_0x45c2();}import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x158d24,_0x1b5b15,_0x8f4f4a){const _0x3346bd=a0_0x3c50;var _0x13021f=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x1b5b15}
|
|
4
|
+
.options=${_0x158d24[_0x3346bd(0x91)][_0x3346bd(0x81)]}
|
|
5
|
+
.confirmCallback=${_0x8f4f4a}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x13021f,{'backdrop':!0x0,'size':_0x3346bd(0x9b),'title':_0x158d24[_0x3346bd(0x91)][_0x3346bd(0x81)][_0x3346bd(0x92)]?TermsUtil[_0x3346bd(0x7b)](_0x158d24[_0x3346bd(0x91)][_0x3346bd(0x81)][_0x3346bd(0x92)]):TermsUtil[_0x3346bd(0x84)](_0x3346bd(0x7e))});}export const FilterGristMetaCodeSelect=(_0x14ff0d,_0x4d5496,_0x964cca)=>{const _0x13be1d=a0_0x3c50,_0xf19db3=_0x14ff0d[_0x13be1d(0xa5)],_0x2dafdf=_0x14ff0d['record'][_0x13be1d(0x81)],_0x1efc0b=_0x2dafdf['codes']&&_0x2dafdf[_0x13be1d(0x7c)][_0x13be1d(0x8e)]>0x0?_0x2dafdf[_0x13be1d(0x7c)]:void 0x0,{operator:_0x126106='eq'}=_0xf19db3;let _0x160f16=_0x4d5496||'',_0x58a8fb=_0x4d5496||'';if(_0x2dafdf[_0x13be1d(0x7f)]&&_0x4d5496&&_0x1efc0b){let _0x242738=_0x1efc0b[_0x13be1d(0xa5)](_0x1068e8=>_0x1068e8[_0x13be1d(0x8b)]==_0x4d5496);_0x242738&&_0x242738[_0x13be1d(0x8e)]>0x0&&(_0x58a8fb=_0x242738[0x0][_0x13be1d(0x80)]);}return'eq'===_0x126106?html`
|
|
8
|
+
<input name='${_0x14ff0d[_0x13be1d(0x97)]}' .value=${_0x160f16} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x14ff0d['name']}_disp'
|
|
13
|
+
.value=${_0x58a8fb}
|
|
14
|
+
@click=${_0x3656f4=>{const _0x25369a=_0x13be1d;_0x3656f4[_0x25369a(0x89)]();const _0xcb2a04=_0x3656f4[_0x25369a(0x90)];openMetaCodeSelector(_0x14ff0d,_0x4d5496,_0x2627a5=>{const _0x3cf62b=_0x25369a;let _0x2cb08b=_0x2627a5?_0x2627a5[_0x2dafdf[_0x3cf62b(0x7d)]]:'',_0x510a68=_0x2cb08b;if(_0x2627a5&&_0x2dafdf[_0x3cf62b(0x7f)]){let _0x11b72e=_0x2dafdf['dispField'][_0x3cf62b(0x9f)](',');_0x510a68=_0x2627a5[_0x11b72e[0x0]],_0x11b72e[_0x3cf62b(0x8e)]>0x1&&(_0x510a68+='('+_0x11b72e[_0x3cf62b(0x9c)](0x1)[_0x3cf62b(0x9d)](_0x757c5d=>_0x2627a5[_0x757c5d])[_0x3cf62b(0x86)](',')+')');}_0xcb2a04['value']=_0x510a68,(_0x3cf62b(0xa3)==_0x964cca[_0x3cf62b(0x96)][_0x3cf62b(0x99)]()?_0x964cca[_0x3cf62b(0x87)][_0x3cf62b(0x95)](_0x3cf62b(0x8a)+_0xf19db3['name']+'\x22]'):_0x964cca[_0x3cf62b(0x87)][_0x3cf62b(0x95)](_0x3cf62b(0x82)+_0xf19db3[_0x3cf62b(0x97)]+'\x22]'))[_0x3cf62b(0x8b)]=_0x2cb08b,_0xcb2a04['dispatchEvent'](new Event(_0x3cf62b(0x88),{'bubbles':!0x0})),_0xcb2a04[_0x3cf62b(0x83)](new CustomEvent(_0x3cf62b(0xa0),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x14ff0d[_0x3cf62b(0x97)],'operator':_0x126106,'value':_0x2cb08b}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x381836,_0x34c4f8){const _0x54bf66=a0_0x2132,_0x5d3709=_0x381836();while(!![]){try{const _0x542643=parseInt(_0x54bf66(0x132))/0x1*(parseInt(_0x54bf66(0x12f))/0x2)+-parseInt(_0x54bf66(0x14a))/0x3+-parseInt(_0x54bf66(0x146))/0x4*(-parseInt(_0x54bf66(0x134))/0x5)+-parseInt(_0x54bf66(0x144))/0x6*(parseInt(_0x54bf66(0x13e))/0x7)+parseInt(_0x54bf66(0x12d))/0x8+parseInt(_0x54bf66(0x13c))/0x9+-parseInt(_0x54bf66(0x135))/0xa;if(_0x542643===_0x34c4f8)break;else _0x5d3709['push'](_0x5d3709['shift']());}catch(_0x4a1578){_0x5d3709['push'](_0x5d3709['shift']());}}}(a0_0x5c1c,0x63318));import'../popup/meta-object-selector-popup';import{html}from'lit-html';function a0_0x2132(_0x179602,_0x5670a3){const _0x5c1c47=a0_0x5c1c();return a0_0x2132=function(_0x2132cd,_0x141f69){_0x2132cd=_0x2132cd-0x127;let _0x3600df=_0x5c1c47[_0x2132cd];return _0x3600df;},a0_0x2132(_0x179602,_0x5670a3);}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x43fe22,_0x8d3539,_0x44f757){const _0x5270e1=a0_0x2132;var _0x43f599=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x8d3539}
|
|
4
|
+
.options=${_0x43fe22['record'][_0x5270e1(0x140)]}
|
|
5
|
+
.confirmCallback=${_0x44f757}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x43f599,{'backdrop':!0x0,'size':_0x5270e1(0x13f),'title':_0x43fe22['record'][_0x5270e1(0x140)][_0x5270e1(0x141)]?TermsUtil[_0x5270e1(0x137)](_0x43fe22[_0x5270e1(0x139)]['options']['selectorName']):TermsUtil[_0x5270e1(0x133)](_0x5270e1(0x145))});}export const FilterGristMetaObjectSelect=(_0x4f1e96,_0xdff66c,_0x2c47c8)=>{const _0x44beda=a0_0x2132,_0x20d856=_0x4f1e96[_0x44beda(0x149)],{operator:_0x1805dc='eq'}=_0x20d856,_0x586cfe=_0x4f1e96[_0x44beda(0x139)][_0x44beda(0x140)];let _0x380998=_0xdff66c?_0xdff66c['id']:'',_0x48367f='';if(_0xdff66c){let _0x1e23d7=_0x586cfe[_0x44beda(0x13a)][_0x44beda(0x148)](',');_0x48367f=_0xdff66c[_0x1e23d7[0x0]],_0x1e23d7[_0x44beda(0x128)]>0x1&&(_0x48367f+='('+_0x1e23d7[_0x44beda(0x12e)](0x1)[_0x44beda(0x127)](_0x20c811=>_0xdff66c[_0x20c811])[_0x44beda(0x136)](',')+')');}return'eq'===_0x1805dc?html`
|
|
8
|
+
<input name='${_0x4f1e96['name']}' .value=${_0x380998} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x4f1e96[_0x44beda(0x130)]}_disp'
|
|
13
|
+
.value=${_0x48367f}
|
|
14
|
+
@click=${_0x3116c1=>{const _0x62754a=_0x44beda;_0x3116c1[_0x62754a(0x13d)]();const _0x1a393f=_0x3116c1[_0x62754a(0x142)];openMetaObjectSelector(_0x4f1e96,_0xdff66c,_0xa35661=>{const _0x506fd4=_0x62754a;let _0x415fcd=_0xa35661?_0xa35661['id']:'',_0x46f362='';if(_0xa35661){let _0x58a556=_0x586cfe[_0x506fd4(0x13a)]['split'](',');_0x46f362=_0xa35661[_0x58a556[0x0]],_0x58a556['length']>0x1&&(_0x46f362+='('+_0x58a556[_0x506fd4(0x12e)](0x1)['map'](_0x561b50=>_0xa35661[_0x561b50])['join'](',')+')');}_0x1a393f[_0x506fd4(0x143)]=_0x46f362,(_0x506fd4(0x147)==_0x2c47c8[_0x506fd4(0x14b)][_0x506fd4(0x138)]()?_0x2c47c8[_0x506fd4(0x12c)]['querySelector'](_0x506fd4(0x129)+_0x20d856[_0x506fd4(0x130)]+'\x22]'):_0x2c47c8[_0x506fd4(0x12c)][_0x506fd4(0x12b)](_0x506fd4(0x12a)+_0x20d856[_0x506fd4(0x130)]+'\x22]'))[_0x506fd4(0x143)]=_0x415fcd,_0x1a393f[_0x506fd4(0x131)](new Event(_0x506fd4(0x13b),{'bubbles':!0x0})),_0x1a393f['dispatchEvent'](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x4f1e96[_0x506fd4(0x130)],'operator':_0x1805dc,'value':_0x415fcd}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x5c1c(){const _0x6227df=['5YeiSGK','7263400unCWob','join','tMenu','toLowerCase','record','nameField','change','6577533xMnxiz','stopPropagation','14qfKboh','large','options','selectorName','target','value','1273362YyKeQh','select_item','2220628rGlphh','ox-grid-header','split','filter','927855XTGaBm','tagName','map','length','[name=\x22','form\x20[name=\x22','querySelector','renderRoot','1808728cwBFTJ','splice','70858pJoqPA','name','dispatchEvent','10bRTHDL','tTitle'];a0_0x5c1c=function(){return _0x6227df;};return a0_0x5c1c();}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x2eb02e=a0_0x255c;(function(_0x15f501,_0x494830){const _0x220412=a0_0x255c,_0x2b7440=_0x15f501();while(!![]){try{const _0x1fb863=parseInt(_0x220412(0x142))/0x1*(parseInt(_0x220412(0x14f))/0x2)+-parseInt(_0x220412(0x133))/0x3+-parseInt(_0x220412(0x140))/0x4+parseInt(_0x220412(0x13b))/0x5*(-parseInt(_0x220412(0x139))/0x6)+-parseInt(_0x220412(0x14d))/0x7*(parseInt(_0x220412(0x146))/0x8)+parseInt(_0x220412(0x13a))/0x9+parseInt(_0x220412(0x13d))/0xa*(parseInt(_0x220412(0x14e))/0xb);if(_0x1fb863===_0x494830)break;else _0x2b7440['push'](_0x2b7440['shift']());}catch(_0x5b6e08){_0x2b7440['push'](_0x2b7440['shift']());}}}(a0_0x260f,0x6ced8));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';function a0_0x255c(_0x47a7d4,_0x1b963d){const _0x260f20=a0_0x260f();return a0_0x255c=function(_0x255cd8,_0x1e4619){_0x255cd8=_0x255cd8-0x133;let _0x39a2fe=_0x260f20[_0x255cd8];return _0x39a2fe;},a0_0x255c(_0x47a7d4,_0x1b963d);}import{TermsUtil}from'../../../utils/terms-util';function a0_0x260f(){const _0x206ecf=['420fIwRxs','22DQhqVs','18dmpZGq','stringify','object','length','985842yPmQuY','tTitle','parse','column','editorTemplate','stopPropagation','5175438pYyFEx','6390117fWCEAW','5DuvSLC','...','3400940VWrYnG','large','record','322060FCbKUb','row','56321mKGuUf','dispatchEvent','popup','field-change','23896TeHdEo','value','openEditor','key','firstUpdated','_onkeydown','substring'];a0_0x260f=function(){return _0x206ecf;};return a0_0x260f();}import'../../popup/code-input-editor-popup';export class GristEditorCodeInput extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x2eb02e(0x137)](){const _0x477f16=a0_0x2eb02e;let _0x180aae;return this[_0x477f16(0x147)]&&(_0x180aae=_0x477f16(0x151)==typeof this[_0x477f16(0x147)]?JSON[_0x477f16(0x150)](this[_0x477f16(0x147)],0x0,0x2):this[_0x477f16(0x147)],_0x180aae=_0x180aae[_0x477f16(0x152)]>0x14?_0x180aae[_0x477f16(0x14c)](0x0,0x14)+_0x477f16(0x13c):_0x180aae),html`
|
|
2
|
+
${_0x180aae?html` <span tabindex="0" style="flex:1;">${_0x180aae}</span> `:html`<span tabindex="0" ></span>`}
|
|
3
|
+
`;}async[a0_0x2eb02e(0x14a)](){const _0x2657a1=a0_0x2eb02e;super[_0x2657a1(0x14a)]();}['_onclick'](_0x3dff00){const _0x3a99a2=a0_0x2eb02e;_0x3dff00[_0x3a99a2(0x138)](),this['openEditor']();}[a0_0x2eb02e(0x14b)](_0x186140){const _0x44bf36=a0_0x2eb02e;'Enter'==_0x186140[_0x44bf36(0x149)]&&(_0x186140['stopPropagation'](),this[_0x44bf36(0x148)]());}['openEditor'](){const _0x1e038f=a0_0x2eb02e;this[_0x1e038f(0x144)]&&delete this[_0x1e038f(0x144)];var _0x4180df=html`
|
|
4
4
|
<code-input-editor-popup
|
|
5
5
|
.value=${this['value']}
|
|
6
|
-
.confirmCallback=${(
|
|
6
|
+
.confirmCallback=${(_0x43d332=>{const _0xfd4b79=_0x1e038f;this[_0xfd4b79(0x143)](new CustomEvent(_0xfd4b79(0x145),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['value'],'after':_0x43d332?'object'==typeof this[_0xfd4b79(0x147)]?JSON[_0xfd4b79(0x135)](_0x43d332):_0x43d332:null,'record':this[_0xfd4b79(0x13f)],'column':this[_0xfd4b79(0x136)],'row':this[_0xfd4b79(0x141)]}}));})['bind'](this)}
|
|
7
7
|
></code-input-editor-popup>
|
|
8
|
-
`;this[
|
|
8
|
+
`;this[_0x1e038f(0x144)]=openPopup(_0x4180df,{'backdrop':!0x0,'size':_0x1e038f(0x13e),'title':TermsUtil[_0x1e038f(0x134)]('code-editor')});}}customElements['define']('grist-editor-code-input',GristEditorCodeInput);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x2ff689=a0_0x37b9;(function(_0x48916b,_0x51e33e){const _0x3736d4=a0_0x37b9,_0x1bd372=_0x48916b();while(!![]){try{const _0x1ef4e7=parseInt(_0x3736d4(0xf2))/0x1*(parseInt(_0x3736d4(0x100))/0x2)+-parseInt(_0x3736d4(0xfa))/0x3*(parseInt(_0x3736d4(0x117))/0x4)+parseInt(_0x3736d4(0xef))/0x5+-parseInt(_0x3736d4(0xf4))/0x6*(-parseInt(_0x3736d4(0x10b))/0x7)+-parseInt(_0x3736d4(0xfe))/0x8*(-parseInt(_0x3736d4(0x101))/0x9)+parseInt(_0x3736d4(0xf9))/0xa+-parseInt(_0x3736d4(0x102))/0xb;if(_0x1ef4e7===_0x51e33e)break;else _0x1bd372['push'](_0x1bd372['shift']());}catch(_0x57097e){_0x1bd372['push'](_0x1bd372['shift']());}}}(a0_0xdbb1,0xde121));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../../popup/meta-object-selector-popup';function a0_0xdbb1(){const _0x506192=['512872sAyxxO','Enter','14EzmXff','225UHqwsz','37279473kbFIJL','large','stopPropagation','fieldMap','splice','filter','tTitle','display','select_item','7HKciPF','_onclick','field-change','codeField','column','key','define','value','_onkeydown','dispField','dispatchEvent','grist-editor-meta-code-selector','20OPRcht','options','properties','openSelector','editorTemplate','codes','8465930jamobp','join','map','135323ZNaECW','bind','1365768WiLLFf','length','record','row','push','5431890JXGIzz','429207TlqqjJ','popup','firstUpdated','forEach'];a0_0xdbb1=function(){return _0x506192;};return a0_0xdbb1();}export class GristEditorMetaCodeSelector extends OxGristEditor{static get[a0_0x2ff689(0xeb)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x2ff689(0xed)](){const _0x1521b3=a0_0x2ff689;let _0x78e055='';if(this[_0x1521b3(0x10f)][_0x1521b3(0xf6)]&&this[_0x1521b3(0x10f)][_0x1521b3(0xf6)][_0x1521b3(0xea)]){if(this[_0x1521b3(0x10f)]['record']['options'][_0x1521b3(0x114)]){let _0x39dc69=this['column'][_0x1521b3(0xf6)]['options'][_0x1521b3(0xee)]||[];if(this[_0x1521b3(0x112)]&&this[_0x1521b3(0x112)]['length']>0x0){let _0x5bcb90=_0x39dc69[_0x1521b3(0x107)](_0x13523c=>_0x13523c[_0x1521b3(0x112)]===this['value']);_0x78e055=_0x5bcb90&&_0x5bcb90[_0x1521b3(0xf5)]>0x0?_0x5bcb90[0x0][_0x1521b3(0x109)]:'';}}else _0x78e055=this[_0x1521b3(0x112)];}else _0x78e055='';return html`
|
|
2
|
+
${_0x78e055?html` <span tabindex="0" style="flex:1">${_0x78e055}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x2ff689(0xfc)](){super['firstUpdated']();}[a0_0x2ff689(0x10c)](_0x207135){const _0x5c575d=a0_0x2ff689;_0x207135[_0x5c575d(0x104)](),this[_0x5c575d(0xec)]();}[a0_0x2ff689(0x113)](_0x4cb806){const _0x47715b=a0_0x2ff689;_0x47715b(0xff)==_0x4cb806[_0x47715b(0x110)]&&(_0x4cb806[_0x47715b(0x104)](),this[_0x47715b(0xec)]());}[a0_0x2ff689(0xec)](){const _0xe429dd=a0_0x2ff689;this[_0xe429dd(0xfb)]&&delete this['popup'];var {selectorName:_0x453e2d=TermsUtil[_0xe429dd(0x108)](_0xe429dd(0x10a))}=this[_0xe429dd(0x10f)]['record'][_0xe429dd(0xea)]||{},_0x21ab10=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0xe429dd(0x112)]}
|
|
6
|
+
.options=${this[_0xe429dd(0x10f)][_0xe429dd(0xf6)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x121077=>{const _0x31b28c=_0xe429dd;let _0x53eeb9=this[_0x31b28c(0x10f)][_0x31b28c(0xf6)][_0x31b28c(0xea)][_0x31b28c(0x10e)],_0x5f98b4=this[_0x31b28c(0x10f)][_0x31b28c(0xf6)][_0x31b28c(0xea)]['dispField'],_0x412078=this[_0x31b28c(0x10f)][_0x31b28c(0xf6)][_0x31b28c(0xea)][_0x31b28c(0x105)]||{};if(this['column']['record']['options']['codes']||(this[_0x31b28c(0x10f)][_0x31b28c(0xf6)][_0x31b28c(0xea)]['codes']=[]),_0x121077){let _0xffa2a9=this[_0x31b28c(0x10f)]['record'][_0x31b28c(0xea)][_0x31b28c(0xee)][_0x31b28c(0x107)](_0x2d58bd=>_0x2d58bd['value']==_0x121077[_0x53eeb9]);if(!_0xffa2a9||0x0==_0xffa2a9[_0x31b28c(0xf5)]){let _0x1b2628=_0x121077[_0x53eeb9];if(_0x5f98b4){let _0x46f3c2=_0x5f98b4['split'](',');_0x1b2628=_0x121077[_0x46f3c2[0x0]],_0x46f3c2[_0x31b28c(0xf5)]>0x1&&(_0x1b2628+='('+_0x46f3c2[_0x31b28c(0x106)](0x1)[_0x31b28c(0xf1)](_0x176a02=>_0x121077[_0x176a02])[_0x31b28c(0xf0)](',')+')');}this[_0x31b28c(0x10f)][_0x31b28c(0xf6)][_0x31b28c(0xea)][_0x31b28c(0xee)][_0x31b28c(0xf8)]({'value':_0x121077[_0x53eeb9],'display':_0x1b2628});}}this[_0x31b28c(0x115)](new CustomEvent(_0x31b28c(0x10d),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x31b28c(0x112)],'after':_0x121077?_0x121077[_0x53eeb9]:null,'record':this[_0x31b28c(0xf6)],'column':this[_0x31b28c(0x10f)],'row':this[_0x31b28c(0xf7)]}})),Object['keys'](_0x412078)[_0x31b28c(0xfd)](_0x1551fc=>{const _0xbfd021=_0x31b28c;this['dispatchEvent'](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0xbfd021(0xf6)][_0x412078[_0x1551fc]],'after':_0x121077?_0x121077[_0x1551fc]:null,'record':this[_0xbfd021(0xf6)],'column':{'name':_0x412078[_0x1551fc]},'row':this['row']}}));});})[_0xe429dd(0xf3)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0xe429dd(0xfb)]=openPopup(_0x21ab10,{'backdrop':!0x0,'size':_0xe429dd(0x103),'title':TermsUtil['tMenu'](_0x453e2d)});}}function a0_0x37b9(_0x117552,_0x2c4591){const _0xdbb15f=a0_0xdbb1();return a0_0x37b9=function(_0x37b9d7,_0x43d261){_0x37b9d7=_0x37b9d7-0xea;let _0x28e829=_0xdbb15f[_0x37b9d7];return _0x28e829;},a0_0x37b9(_0x117552,_0x2c4591);}customElements[a0_0x2ff689(0x111)](a0_0x2ff689(0x116),GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
function a0_0x5f19(){const _0x5a4935=['fieldMap','254gzJrIt','28485KAOAyV','firstUpdated','row','select_item','length','splice','2975776TxmsWy','tTitle','tMenu','openSelector','Enter','properties','12asqUqP','field-change','map','keys','dispatchEvent','split','define','grist-editor-meta-object-selector','value','join','2589BcMGlb','options','popup','nameField','column','6864050VzBgjD','forEach','large','1343144GkwvhN','3141200nGHJpj','4388811WqHAwG','_onclick','3720EOxLPz','stopPropagation','key','record'];a0_0x5f19=function(){return _0x5a4935;};return a0_0x5f19();}function a0_0x6dec(_0x3a784c,_0xf51b9b){const _0x5f1906=a0_0x5f19();return a0_0x6dec=function(_0x6dec0f,_0x1be420){_0x6dec0f=_0x6dec0f-0x138;let _0x117b64=_0x5f1906[_0x6dec0f];return _0x117b64;},a0_0x6dec(_0x3a784c,_0xf51b9b);}const a0_0x26704d=a0_0x6dec;(function(_0x4d4244,_0x1d754e){const _0x232dc7=a0_0x6dec,_0x2eacdb=_0x4d4244();while(!![]){try{const _0x329cb0=parseInt(_0x232dc7(0x138))/0x1+parseInt(_0x232dc7(0x141))/0x2*(parseInt(_0x232dc7(0x158))/0x3)+-parseInt(_0x232dc7(0x148))/0x4+parseInt(_0x232dc7(0x139))/0x5+-parseInt(_0x232dc7(0x14e))/0x6*(parseInt(_0x232dc7(0x13a))/0x7)+parseInt(_0x232dc7(0x13c))/0x8*(parseInt(_0x232dc7(0x142))/0x9)+-parseInt(_0x232dc7(0x15d))/0xa;if(_0x329cb0===_0x1d754e)break;else _0x2eacdb['push'](_0x2eacdb['shift']());}catch(_0x18fd3c){_0x2eacdb['push'](_0x2eacdb['shift']());}}}(a0_0x5f19,0xd403f));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../../popup/meta-object-selector-popup';export class GristEditorMetaObjectSelector extends OxGristEditor{static get[a0_0x26704d(0x14d)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get['editorTemplate'](){const _0x2bf17f=a0_0x26704d;let _0x4afb5a='';if(this[_0x2bf17f(0x156)]&&this['column'][_0x2bf17f(0x13f)][_0x2bf17f(0x159)]){let _0x6c3a99=this[_0x2bf17f(0x15c)][_0x2bf17f(0x13f)][_0x2bf17f(0x159)][_0x2bf17f(0x15b)][_0x2bf17f(0x153)](',');_0x4afb5a=this[_0x2bf17f(0x156)][_0x6c3a99[0x0]],_0x6c3a99[_0x2bf17f(0x146)]>0x1&&(_0x4afb5a+='('+_0x6c3a99[_0x2bf17f(0x147)](0x1)[_0x2bf17f(0x150)](_0x526f46=>this[_0x2bf17f(0x156)][_0x526f46])[_0x2bf17f(0x157)](',')+')');}return html`
|
|
2
|
+
${this[_0x2bf17f(0x156)]?html` <span tabindex="0" style="flex:1">${_0x4afb5a}</span> `:html`<span tabindex="0">${_0x4afb5a}</span>`}
|
|
3
|
+
`;}async[a0_0x26704d(0x143)](){const _0x36677d=a0_0x26704d;super[_0x36677d(0x143)]();}[a0_0x26704d(0x13b)](_0x323ab5){const _0x1833a5=a0_0x26704d;_0x323ab5[_0x1833a5(0x13d)](),this['openSelector']();}['_onkeydown'](_0x31a254){const _0x5b375d=a0_0x26704d;_0x5b375d(0x14c)==_0x31a254[_0x5b375d(0x13e)]&&(_0x31a254[_0x5b375d(0x13d)](),this[_0x5b375d(0x14b)]());}['openSelector'](){const _0x378184=a0_0x26704d;this['popup']&&delete this['popup'];var {selectorName:_0x3f319a=TermsUtil[_0x378184(0x149)](_0x378184(0x145))}=this[_0x378184(0x15c)][_0x378184(0x13f)]['options']||{},_0x4e45ef=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x378184(0x156)]}
|
|
6
|
+
.options=${this['column'][_0x378184(0x13f)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x2c84d3=>{const _0x2e9131=_0x378184;let _0x2c99c4=this[_0x2e9131(0x15c)][_0x2e9131(0x13f)][_0x2e9131(0x159)][_0x2e9131(0x140)]||{};this[_0x2e9131(0x152)](new CustomEvent(_0x2e9131(0x14f),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['value'],'after':_0x2c84d3||null,'record':this['record'],'column':this[_0x2e9131(0x15c)],'row':this[_0x2e9131(0x144)]}})),Object[_0x2e9131(0x151)](_0x2c99c4)[_0x2e9131(0x15e)](_0xe2df8b=>{const _0x4ce5b8=_0x2e9131;this[_0x4ce5b8(0x152)](new CustomEvent(_0x4ce5b8(0x14f),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x4ce5b8(0x13f)][_0x2c99c4[_0xe2df8b]],'after':_0x2c84d3?_0x2c84d3[_0xe2df8b]:null,'record':this[_0x4ce5b8(0x13f)],'column':{'name':_0x2c99c4[_0xe2df8b]},'row':this[_0x4ce5b8(0x144)]}}));});})['bind'](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x378184(0x15a)]=openPopup(_0x4e45ef,{'backdrop':!0x0,'size':_0x378184(0x15f),'title':TermsUtil[_0x378184(0x14a)](_0x3f319a)});}}customElements[a0_0x26704d(0x154)](a0_0x26704d(0x155),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x214f56,_0x5971e0){const _0x534acb=a0_0x1a6d,_0x52764a=_0x214f56();while(!![]){try{const _0x8052c=-parseInt(_0x534acb(0xe4))/0x1+parseInt(_0x534acb(0xee))/0x2*(parseInt(_0x534acb(0xe2))/0x3)+-parseInt(_0x534acb(0xe1))/0x4+parseInt(_0x534acb(0xe0))/0x5+-parseInt(_0x534acb(0xe8))/0x6+-parseInt(_0x534acb(0xe9))/0x7+parseInt(_0x534acb(0xec))/0x8;if(_0x8052c===_0x5971e0)break;else _0x52764a['push'](_0x52764a['shift']());}catch(_0x2d06ca){_0x52764a['push'](_0x52764a['shift']());}}}(a0_0xfeec,0x89bbb));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x1ac65e){const _0x176159=a0_0x1a6d,_0x1a763a=_0x1ac65e[_0x176159(0xe5)];detectOverflow(_0x1a763a)&&_0x1a763a[_0x176159(0xea)](_0x176159(0xed),_0x1a763a[_0x176159(0xe6)]);}function a0_0xfeec(){const _0x5e9fa7=['...','2156045GYSqbc','244808xpWETb','1011YrCbuY','stringify','302443LYnfSB','target','textContent','length','5620002ExoeoO','4464250CkdxqD','setAttribute','object','15195800DRrmLm','data-tooltip','1018fMbnYl'];a0_0xfeec=function(){return _0x5e9fa7;};return a0_0xfeec();}function a0_0x1a6d(_0x52bfef,_0x5d68ec){const _0xfeec6a=a0_0xfeec();return a0_0x1a6d=function(_0x1a6d94,_0x32667a){_0x1a6d94=_0x1a6d94-0xdf;let _0x41696d=_0xfeec6a[_0x1a6d94];return _0x41696d;},a0_0x1a6d(_0x52bfef,_0x5d68ec);}function onmouseout(_0x2b1731){const _0x4a84cc=a0_0x1a6d;_0x2b1731[_0x4a84cc(0xe5)]['removeAttribute'](_0x4a84cc(0xed));}export const GristRendererCodeInput=(_0x57ccd5,_0x184dbe,_0x22c9c6,_0x37fe28,_0x63606a)=>{const _0x22837a=a0_0x1a6d;let _0x39e661='';return _0x57ccd5&&(_0x39e661=_0x22837a(0xeb)==typeof _0x57ccd5?JSON[_0x22837a(0xe3)](_0x57ccd5,0x0,0x2):_0x57ccd5,_0x39e661=_0x39e661[_0x22837a(0xe7)]>0x14?_0x39e661['substring'](0x0,0x14)+_0x22837a(0xdf):_0x39e661),html`<span style='flex:1' @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x39e661}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x255694,_0x40779c){const _0x5692cf=a0_0x4380,_0x204cb3=_0x255694();while(!![]){try{const _0xb8874b=parseInt(_0x5692cf(0x1ca))/0x1+parseInt(_0x5692cf(0x1ba))/0x2+parseInt(_0x5692cf(0x1c3))/0x3+parseInt(_0x5692cf(0x1c9))/0x4*(parseInt(_0x5692cf(0x1c7))/0x5)+parseInt(_0x5692cf(0x1c0))/0x6+-parseInt(_0x5692cf(0x1cc))/0x7+parseInt(_0x5692cf(0x1c2))/0x8*(-parseInt(_0x5692cf(0x1c8))/0x9);if(_0xb8874b===_0x40779c)break;else _0x204cb3['push'](_0x204cb3['shift']());}catch(_0x1b40ad){_0x204cb3['push'](_0x204cb3['shift']());}}}(a0_0x36d8,0x62bf6));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x255d0e){const _0x2fe373=a0_0x4380,_0x21b224=_0x255d0e[_0x2fe373(0x1cb)];detectOverflow(_0x21b224)&&_0x21b224[_0x2fe373(0x1bb)](_0x2fe373(0x1c6),_0x21b224['textContent']);}function a0_0x4380(_0x5c0522,_0x3a3e71){const _0x36d88e=a0_0x36d8();return a0_0x4380=function(_0x438070,_0x4efa08){_0x438070=_0x438070-0x1b9;let _0x4dc0c2=_0x36d88e[_0x438070];return _0x4dc0c2;},a0_0x4380(_0x5c0522,_0x3a3e71);}function a0_0x36d8(){const _0xa8e028=['dispField','data-tooltip','954185JdsVHt','27351ShiIhp','4wwcgdZ','23349UYSqGF','target','3017742rzGJuV','filter','codes','284166MDaltD','setAttribute','removeAttribute','value','length','options','3303744aLEhNV','record','1512jgEPyL','1509162XhJNjt','display'];a0_0x36d8=function(){return _0xa8e028;};return a0_0x36d8();}function onmouseout(_0x530f18){const _0x547895=a0_0x4380;_0x530f18[_0x547895(0x1cb)][_0x547895(0x1bc)](_0x547895(0x1c6));}export const GristRendererMetaCodeSelector=(_0x1f2665,_0x2a4982,_0xbc6bd1,_0x381c87,_0x480696)=>{const _0x13d3fa=a0_0x4380;let _0x12bd72='';if(_0x2a4982['record']&&_0x2a4982[_0x13d3fa(0x1c1)][_0x13d3fa(0x1bf)]){if(_0x2a4982['record'][_0x13d3fa(0x1bf)][_0x13d3fa(0x1c5)]){if(_0x2a4982[_0x13d3fa(0x1c1)][_0x13d3fa(0x1bf)]['codes']||(_0x2a4982[_0x13d3fa(0x1c1)][_0x13d3fa(0x1bf)][_0x13d3fa(0x1b9)]=[]),_0x1f2665&&_0x1f2665[_0x13d3fa(0x1be)]>0x0){let _0x32ed09=_0x2a4982[_0x13d3fa(0x1c1)][_0x13d3fa(0x1bf)][_0x13d3fa(0x1b9)][_0x13d3fa(0x1cd)](_0x2c0f16=>_0x2c0f16[_0x13d3fa(0x1bd)]===_0x1f2665);_0x12bd72=_0x32ed09&&_0x32ed09[_0x13d3fa(0x1be)]>0x0?_0x32ed09[0x0][_0x13d3fa(0x1c4)]:_0x1f2665;}}else _0x12bd72=_0x1f2665;}else _0x12bd72='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x12bd72}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x3de6(_0x237dce,_0x12cef5){const _0xb18767=a0_0xb187();return a0_0x3de6=function(_0x3de69e,_0x2e44d9){_0x3de69e=_0x3de69e-0x161;let _0xe6ed56=_0xb18767[_0x3de69e];return _0xe6ed56;},a0_0x3de6(_0x237dce,_0x12cef5);}(function(_0x2f150b,_0x55e71b){const _0x5c77e8=a0_0x3de6,_0x3fc615=_0x2f150b();while(!![]){try{const _0x3e60b0=parseInt(_0x5c77e8(0x16b))/0x1+parseInt(_0x5c77e8(0x172))/0x2+parseInt(_0x5c77e8(0x170))/0x3*(parseInt(_0x5c77e8(0x171))/0x4)+-parseInt(_0x5c77e8(0x165))/0x5*(parseInt(_0x5c77e8(0x169))/0x6)+parseInt(_0x5c77e8(0x163))/0x7+-parseInt(_0x5c77e8(0x16d))/0x8+-parseInt(_0x5c77e8(0x164))/0x9*(parseInt(_0x5c77e8(0x161))/0xa);if(_0x3e60b0===_0x55e71b)break;else _0x3fc615['push'](_0x3fc615['shift']());}catch(_0x465c9c){_0x3fc615['push'](_0x3fc615['shift']());}}}(a0_0xb187,0xb7a08));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x17afac){const _0x29567b=a0_0x3de6,_0x1a375e=_0x17afac[_0x29567b(0x173)];detectOverflow(_0x1a375e)&&_0x1a375e['setAttribute'](_0x29567b(0x16e),_0x1a375e[_0x29567b(0x16a)]);}function a0_0xb187(){const _0x9e048b=['removeAttribute','split','1180668rIXDWx','textContent','385355FnXbdN','options','6563696unUkaO','data-tooltip','record','269817NYMTZz','4gImcTK','2926534TGrKqv','target','310rgxyeR','splice','9116555CQEjAx','312966yGIzAl','15cixUuj','join'];a0_0xb187=function(){return _0x9e048b;};return a0_0xb187();}function onmouseout(_0x8d7f41){const _0x1016a7=a0_0x3de6;_0x8d7f41[_0x1016a7(0x173)][_0x1016a7(0x167)](_0x1016a7(0x16e));}export const GristRendererMetaObjectSelector=(_0x209a20,_0xcef6c4,_0x334d0c,_0x49057a,_0x391832)=>{const _0x109f9a=a0_0x3de6;let _0x5c3681='';if(_0x209a20&&_0xcef6c4[_0x109f9a(0x16f)]['options']){let _0x4c22e6=_0xcef6c4['record'][_0x109f9a(0x16c)]['nameField'][_0x109f9a(0x168)](',');_0x5c3681=_0x209a20[_0x4c22e6[0x0]],_0x4c22e6['length']>0x1&&(_0x5c3681+='('+_0x4c22e6[_0x109f9a(0x162)](0x1)['map'](_0xb7c557=>_0x209a20[_0xb7c557])[_0x109f9a(0x166)](',')+')');}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x5c3681}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a0_0x1b2d(_0x38082a,_0xf098e){var _0x1a0b77=a0_0x1a0b();return a0_0x1b2d=function(_0x1b2db3,_0x10f9ca){_0x1b2db3=_0x1b2db3-0x189;var _0xfd849d=_0x1a0b77[_0x1b2db3];return _0xfd849d;},a0_0x1b2d(_0x38082a,_0xf098e);}function a0_0x1a0b(){var _0x47a8f8=['16241540zFkGrS','code-input-editor-popup','2426122rRAvcV','clickConfirm','confirmCallback','clickEmpty','bind','codeEditor','firstUpdated','clickCancel','styles','5860440dQChGz','value','showToast','querySelector','changedValue','codeVlaue','cancel','124yfkFtO','1211kvZhZV','45128Uucqux','define','tButton','NOTHING_CHANGED','stringify','1liDFqX','confirm','shadowRoot','1594284FMvwkY','1299978KzHAQR','157225EKDZwV'];a0_0x1a0b=function(){return _0x47a8f8;};return a0_0x1a0b();}var a0_0x38c00f=a0_0x1b2d;(function(_0x57dbb5,_0x5d0be1){var _0x4b76e2=a0_0x1b2d,_0x330dfb=_0x57dbb5();while(!![]){try{var _0x91cd21=-parseInt(_0x4b76e2(0x1a6))/0x1*(-parseInt(_0x4b76e2(0x18f))/0x2)+-parseInt(_0x4b76e2(0x18a))/0x3+parseInt(_0x4b76e2(0x19f))/0x4*(-parseInt(_0x4b76e2(0x18c))/0x5)+-parseInt(_0x4b76e2(0x18b))/0x6+parseInt(_0x4b76e2(0x1a0))/0x7*(-parseInt(_0x4b76e2(0x1a1))/0x8)+parseInt(_0x4b76e2(0x198))/0x9+parseInt(_0x4b76e2(0x18d))/0xa;if(_0x91cd21===_0x5d0be1)break;else _0x330dfb['push'](_0x330dfb['shift']());}catch(_0x23aff3){_0x330dfb['push'](_0x330dfb['shift']());}}}(a0_0x1a0b,0xc0c5c));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';export class CodeInputEditorPopup extends LitElement{static [a0_0x38c00f(0x197)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -19,17 +19,17 @@ var a0_0x1d039c=a0_0x311d;(function(_0x556371,_0x4c551f){var _0x329ccc=a0_0x311d
|
|
|
19
19
|
display: flex;
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
|
-
`];async[
|
|
23
|
-
<ox-input-code mode="javascript" value=${this[
|
|
22
|
+
`];async['connectedCallback'](){var _0x1bddcb=a0_0x38c00f;'object'==typeof this[_0x1bddcb(0x199)]?this[_0x1bddcb(0x19d)]=JSON[_0x1bddcb(0x1a5)](this[_0x1bddcb(0x199)],0x0,0x2):this['codeVlaue']=this[_0x1bddcb(0x199)],await super['connectedCallback']();}async['firstUpdated'](){var _0x4cb6b6=a0_0x38c00f;await super[_0x4cb6b6(0x195)]();}['render'](){var _0x3b0662=a0_0x38c00f;return html`
|
|
23
|
+
<ox-input-code mode="javascript" value=${this[_0x3b0662(0x19d)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
24
24
|
<div id="button-container" class="button-container">
|
|
25
|
-
<mwc-button raised label="${TermsUtil[
|
|
26
|
-
@click=${this[
|
|
25
|
+
<mwc-button raised label="${TermsUtil[_0x3b0662(0x1a3)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
26
|
+
@click=${this['clickEmpty'][_0x3b0662(0x193)](this)}>
|
|
27
27
|
</mwc-button>
|
|
28
|
-
<mwc-button raised label="${TermsUtil[
|
|
29
|
-
@click=${this[
|
|
28
|
+
<mwc-button raised label="${TermsUtil[_0x3b0662(0x1a3)](_0x3b0662(0x19e))}" style="margin-left:7px;margin-top:7px;"
|
|
29
|
+
@click=${this[_0x3b0662(0x196)]['bind'](this)}>
|
|
30
30
|
</mwc-button>
|
|
31
|
-
<mwc-button raised label="${TermsUtil[
|
|
32
|
-
@click=${this[
|
|
31
|
+
<mwc-button raised label="${TermsUtil[_0x3b0662(0x1a3)](_0x3b0662(0x1a7))}" style="margin-left:7px;margin-top:7px;"
|
|
32
|
+
@click=${this['clickConfirm'][_0x3b0662(0x193)](this)}>
|
|
33
33
|
</mwc-button>
|
|
34
34
|
</div>
|
|
35
|
-
`;}get[
|
|
35
|
+
`;}get[a0_0x38c00f(0x194)](){var _0x3ebfe9=a0_0x38c00f;return this[_0x3ebfe9(0x189)][_0x3ebfe9(0x19b)]('ox-input-code');}async[a0_0x38c00f(0x192)](_0x1187c6){var _0x5b401f=a0_0x38c00f;this['confirmCallback']&&this[_0x5b401f(0x191)](null),closePopup(this);}async[a0_0x38c00f(0x196)](_0x107021){closePopup(this);}async[a0_0x38c00f(0x190)](_0x3ee20f){var _0x2b6882=a0_0x38c00f;this[_0x2b6882(0x19d)]!==this[_0x2b6882(0x194)][_0x2b6882(0x199)]?this[_0x2b6882(0x19c)](this[_0x2b6882(0x194)][_0x2b6882(0x199)]):MetaApi[_0x2b6882(0x19a)]('info',TermsUtil['tText'](_0x2b6882(0x1a4)));}async[a0_0x38c00f(0x19c)](_0x2154a7){var _0x4d18dc=a0_0x38c00f;this[_0x4d18dc(0x191)]&&this[_0x4d18dc(0x191)](_0x2154a7),closePopup(this);}}customElements[a0_0x38c00f(0x1a2)](a0_0x38c00f(0x18e),CodeInputEditorPopup);
|