@things-factory/meta-ui 6.1.25 → 6.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +10 -10
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- 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/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +7 -7
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0x587ab5=a0_0x3e22;(function(_0x3557e4,_0x265d30){const _0x1e2732=a0_0x3e22,_0xa0bfba=_0x3557e4();while(!![]){try{const _0x110490=-parseInt(_0x1e2732(0x16a))/0x1*(-parseInt(_0x1e2732(0x168))/0x2)+parseInt(_0x1e2732(0x170))/0x3+parseInt(_0x1e2732(0x175))/0x4*(parseInt(_0x1e2732(0x178))/0x5)+parseInt(_0x1e2732(0x169))/0x6+-parseInt(_0x1e2732(0x162))/0x7*(parseInt(_0x1e2732(0x16b))/0x8)+-parseInt(_0x1e2732(0x171))/0x9+parseInt(_0x1e2732(0x167))/0xa*(-parseInt(_0x1e2732(0x177))/0xb);if(_0x110490===_0x265d30)break;else _0xa0bfba['push'](_0xa0bfba['shift']());}catch(_0x18a65b){_0xa0bfba['push'](_0xa0bfba['shift']());}}}(a0_0x33be,0x91840));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x1d8729 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_0x33be(){const _0x721d4f=['appName','meta[name=\x22application-name\x22]','landscape','238VbQqkm','dispatch','NAVBAR','UPDATE_META_UI','hamburger','14626270LJpHQq','397644BeukZL','5504772Jtvfgq','4mpttgt','77096sJuaIF','data','value','dynamic-menu-part','lite-menu-part','3114618GBGTdP','8551161MXMtMD','query','querySelector','portrait','2341960aOCQgA','FRONT_END','11GopCrQ','5kLKVtp','dynamic-menu','filter','items','rank'];a0_0x33be=function(){return _0x721d4f;};return a0_0x33be();}export const UPDATE_META_UI=a0_0x587ab5(0x165);function a0_0x3e22(_0x541550,_0x19f781){const _0x33becc=a0_0x33be();return a0_0x3e22=function(_0x3e222d,_0xe3ea42){_0x3e222d=_0x3e222d-0x15e;let _0x2ea26f=_0x33becc[_0x3e222d];return _0x2ea26f;},a0_0x3e22(_0x541550,_0x19f781);}export const UPDATE_META_MENU_TEMPLATE='UPDATE_META_MENU_TEMPLATE';var HAMBURGER;export async function setupMenuPart(_0x457473){const _0x4da151=a0_0x587ab5;var {hovering:_0x403e08=!!isMobileDevice(),slotTemplate:_0x1dc4c7,portraitSlotTemplate:_0x1df3ac,landscapeSlotTemplate:_0x3a0f18,position:_0xf3d5c6=VIEWPART_POSITION[_0x4da151(0x164)]}=_0x457473||{};const {hovering:_0x3c487e}=(await clientSettingStore['get'](_0x4da151(0x179)))?.[_0x4da151(0x16d)]||{};void 0x0!==_0x3c487e&&(_0x403e08=_0x3c487e);const _0x9a4065=_0xf3d5c6==VIEWPART_POSITION['HEADERBAR']?_0x4da151(0x161):_0x4da151(0x174),_0x25ca58=(_0x4da151(0x161)==_0x9a4065?_0x3a0f18:_0x1df3ac)||_0x1dc4c7||html``;appendViewpart({'name':_0x4da151(0x16f),'viewpart':{'show':!_0x403e08,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x403e08,'template':html`<dynamic-menu-part .orientation=${_0x9a4065}>${_0x25ca58}</dynamic-menu-part>`},'position':_0xf3d5c6}),_0x403e08&&_0x4da151(0x174)==_0x9a4065?HAMBURGER||(HAMBURGER={'name':_0x4da151(0x166),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x5d39fe=>toggleOverlay(_0x4da151(0x16e),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x4da151(0x176)]},store[_0x4da151(0x163)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x4da151(0x163)]({'type':REMOVE_APP_TOOL,'name':_0x4da151(0x166)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x490c74){const _0x2652d4=a0_0x587ab5;var _0x569aa7=document[_0x2652d4(0x173)](_0x2652d4(0x160))?.['content'],_0xe24955=(await client[_0x2652d4(0x172)]({'query':a0_0x1d8729`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x40cac5=a0_0x30b2;(function(_0x67e98a,_0x3ad8bf){const _0x25ee48=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':'active','operator':'eq','value':!0x0},{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':'active','operator':'eq','value':!0x0},{'name':'appName','operator':'in','value':['',_0x569aa7]}],'sortings':[{'name':_0x2652d4(0x15e),'desc':!0x1}]}}))[_0x2652d4(0x16c)]['liteMenus'][_0x2652d4(0x17b)];store['dispatch']({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0xe24955[_0x2652d4(0x17a)](_0x3fed96=>!_0x3fed96['appName']||_0x3fed96[_0x2652d4(0x15f)]===_0x569aa7),'template':_0x490c74});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c764a,_0x5b2fc9){const _0x413fc5=a0_0x3c0d,_0x429ff2=_0x4c764a();while(!![]){try{const _0x51c72f=-parseInt(_0x413fc5(0x153))/0x1+-parseInt(_0x413fc5(0x155))/0x2+parseInt(_0x413fc5(0x14d))/0x3+parseInt(_0x413fc5(0x152))/0x4*(-parseInt(_0x413fc5(0x145))/0x5)+-parseInt(_0x413fc5(0x140))/0x6+-parseInt(_0x413fc5(0x13d))/0x7+-parseInt(_0x413fc5(0x13b))/0x8*(-parseInt(_0x413fc5(0x151))/0x9);if(_0x51c72f===_0x5b2fc9)break;else _0x429ff2['push'](_0x429ff2['shift']());}catch(_0x266da4){_0x429ff2['push'](_0x429ff2['shift']());}}}(a0_0x3e96,0x62d30));import'../popup/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function a0_0x3c0d(_0xb763cb,_0x33d5a9){const _0x3e96eb=a0_0x3e96();return a0_0x3c0d=function(_0x3c0d37,_0x1135d9){_0x3c0d37=_0x3c0d37-0x13a;let _0x2ed350=_0x3e96eb[_0x3c0d37];return _0x2ed350;},a0_0x3c0d(_0xb763cb,_0x33d5a9);}function openMetaCodeSelector(_0xde925c,_0x2fed13,_0x3a2419){const _0x5f5654=a0_0x3c0d;var _0x39f7b4=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x2fed13}
|
|
4
|
+
.options=${_0xde925c['options']}
|
|
5
|
+
.confirmCallback=${_0x3a2419}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x39f7b4,{'backdrop':!0x0,'size':'large','title':_0xde925c['options']['selectorName']?TermsUtil[_0x5f5654(0x154)](_0xde925c['options'][_0x5f5654(0x13e)]):TermsUtil[_0x5f5654(0x14f)](_0x5f5654(0x143))});}export const FilterFormMetaCodeSelect=(_0x950c30,_0x4d742d,_0x59f2a2)=>{const _0x41a51b=a0_0x3c0d,_0x3d8ca6=_0x950c30[_0x41a51b(0x157)],_0x46a52e=_0x3d8ca6[_0x41a51b(0x13c)]&&_0x3d8ca6[_0x41a51b(0x13c)][_0x41a51b(0x149)]>0x0?_0x3d8ca6[_0x41a51b(0x13c)]:void 0x0,{operator:_0x2a6214='eq'}=_0x950c30;let _0xbad403=_0x4d742d||'',_0x55b74b=_0x4d742d||'';if(_0x3d8ca6[_0x41a51b(0x156)]&&_0x4d742d&&_0x46a52e){let _0x5d25d9=_0x46a52e[_0x41a51b(0x150)](_0x4ea0d3=>_0x4ea0d3[_0x41a51b(0x13a)]==_0x4d742d);_0x5d25d9&&_0x5d25d9['length']>0x0&&(_0x55b74b=_0x5d25d9[0x0][_0x41a51b(0x13f)]);}return'eq'===_0x2a6214?html`
|
|
8
|
+
<input name='${_0x950c30['name']}' .value=${_0xbad403} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x950c30['name']}_disp'
|
|
13
|
+
.value=${_0x55b74b}
|
|
14
|
+
@click=${_0x25b0b9=>{const _0x26fb7a=_0x41a51b;_0x25b0b9[_0x26fb7a(0x141)]();const _0x131db8=_0x25b0b9[_0x26fb7a(0x14b)];openMetaCodeSelector(_0x950c30,_0x4d742d,_0x16bd83=>{const _0x1a9a55=_0x26fb7a;let _0x4b3346=_0x16bd83?_0x16bd83[_0x3d8ca6[_0x1a9a55(0x146)]]:'',_0x14cd87=_0x4b3346;_0x16bd83&&_0x3d8ca6['dispField']&&(_0x14cd87=_0x16bd83[_0x3d8ca6[_0x1a9a55(0x156)]]),_0x131db8[_0x1a9a55(0x13a)]=_0x14cd87,(_0x1a9a55(0x14e)==_0x59f2a2['tagName'][_0x1a9a55(0x147)]()?_0x59f2a2[_0x1a9a55(0x144)]['querySelector'](_0x1a9a55(0x142)+_0x950c30[_0x1a9a55(0x14c)]+'\x22]'):_0x59f2a2[_0x1a9a55(0x144)]['querySelector'](_0x1a9a55(0x148)+_0x950c30[_0x1a9a55(0x14c)]+'\x22]'))['value']=_0x4b3346,_0x131db8[_0x1a9a55(0x14a)](new Event('change',{'bubbles':!0x0})),_0x131db8[_0x1a9a55(0x14a)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x950c30[_0x1a9a55(0x14c)],'operator':_0x2a6214,'value':_0x4b3346}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x3e96(){const _0x577d43=['selectorName','display','125472kpooiF','stopPropagation','[name=\x22','select_item','renderRoot','710FphqEI','codeField','toLowerCase','form\x20[name=\x22','length','dispatchEvent','target','name','758157MNoIXj','ox-grid-header','tTitle','filter','8793SuYDNJ','12868CPobzW','668051qHJBCW','tMenu','643466JGwZIf','dispField','options','value','16040oxXtuf','codes','2375170jWyNny'];a0_0x3e96=function(){return _0x577d43;};return a0_0x3e96();}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d11d3,_0x195cd7){const _0x55bb48=a0_0x4552,_0x515123=_0x1d11d3();while(!![]){try{const _0x64b3c8=-parseInt(_0x55bb48(0x1e3))/0x1*(-parseInt(_0x55bb48(0x1ef))/0x2)+parseInt(_0x55bb48(0x1f4))/0x3*(parseInt(_0x55bb48(0x1f9))/0x4)+-parseInt(_0x55bb48(0x1fd))/0x5*(-parseInt(_0x55bb48(0x1fc))/0x6)+-parseInt(_0x55bb48(0x1ea))/0x7*(parseInt(_0x55bb48(0x1eb))/0x8)+-parseInt(_0x55bb48(0x1fa))/0x9+parseInt(_0x55bb48(0x1e4))/0xa+parseInt(_0x55bb48(0x1f7))/0xb*(parseInt(_0x55bb48(0x1e6))/0xc);if(_0x64b3c8===_0x195cd7)break;else _0x515123['push'](_0x515123['shift']());}catch(_0x2688ac){_0x515123['push'](_0x515123['shift']());}}}(a0_0x35a3,0x8f210));import'../popup/meta-object-selector-popup';import{html}from'lit-html';function a0_0x4552(_0x4d61d5,_0x4ad098){const _0x35a3e4=a0_0x35a3();return a0_0x4552=function(_0x455255,_0x109665){_0x455255=_0x455255-0x1e3;let _0x51ac91=_0x35a3e4[_0x455255];return _0x51ac91;},a0_0x4552(_0x4d61d5,_0x4ad098);}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x540f34,_0x2de477,_0x587f7e){const _0x517597=a0_0x4552;var _0x313ad5=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x2de477}
|
|
4
|
+
.options=${_0x540f34[_0x517597(0x1e5)]}
|
|
5
|
+
.confirmCallback=${_0x587f7e}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x313ad5,{'backdrop':!0x0,'size':_0x517597(0x1e7),'title':_0x540f34[_0x517597(0x1e5)]['selectorName']?TermsUtil[_0x517597(0x1e9)](_0x540f34['options'][_0x517597(0x1e8)]):TermsUtil['tTitle']('select_item')});}export const FilterFormMetaObjectSelect=(_0x59749f,_0x3584f2,_0x12a70e)=>{const _0x4d4adf=a0_0x4552,_0x4b13ce=_0x59749f['options'],{operator:_0x55b5b2='eq'}=_0x59749f;let _0x40fb25=_0x3584f2?_0x3584f2['id']:'',_0x19aabb=_0x3584f2?_0x3584f2[_0x4b13ce[_0x4d4adf(0x1ec)]]:'';return'eq'===_0x55b5b2?html`
|
|
8
|
+
<input name='${_0x59749f['name']}' .value=${_0x40fb25} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x59749f[_0x4d4adf(0x1ee)]}_disp'
|
|
13
|
+
.value=${_0x19aabb}
|
|
14
|
+
@click=${_0x3975dd=>{const _0x57905e=_0x4d4adf;_0x3975dd[_0x57905e(0x1f1)]();const _0x2c6fe0=_0x3975dd['target'];openMetaObjectSelector(_0x59749f,_0x3584f2,_0x3cca61=>{const _0x17cbc3=_0x57905e;let _0x4b129f=_0x3cca61?_0x3cca61['id']:'',_0x5be7be=_0x3cca61?_0x3cca61[_0x4b13ce[_0x17cbc3(0x1ec)]]:'';_0x2c6fe0[_0x17cbc3(0x1f2)]=_0x5be7be,(_0x17cbc3(0x1f8)==_0x12a70e['tagName']['toLowerCase']()?_0x12a70e[_0x17cbc3(0x1f5)][_0x17cbc3(0x1ed)](_0x17cbc3(0x1f3)+_0x59749f[_0x17cbc3(0x1ee)]+'\x22]'):_0x12a70e[_0x17cbc3(0x1f5)]['querySelector'](_0x17cbc3(0x1f6)+_0x59749f[_0x17cbc3(0x1ee)]+'\x22]'))[_0x17cbc3(0x1f2)]=_0x4b129f,_0x2c6fe0[_0x17cbc3(0x1f0)](new Event('change',{'bubbles':!0x0})),_0x2c6fe0[_0x17cbc3(0x1f0)](new CustomEvent(_0x17cbc3(0x1fb),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x59749f['name'],'operator':_0x55b5b2,'value':_0x4b129f}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x35a3(){const _0x56d7f1=['selectorName','tMenu','80059vdWnio','248bZtUQj','nameField','querySelector','name','2WTJDpP','dispatchEvent','stopPropagation','value','[name=\x22','17256nrDyGo','renderRoot','form\x20[name=\x22','77RkXXbN','ox-grid-header','380GrHMkE','6478857XnIEZz','filter-change','198EbtUyS','72805CMmnnH','142459iFLsGn','282560KkOvcJ','options','793728rgmhKr','large'];a0_0x35a3=function(){return _0x56d7f1;};return a0_0x35a3();}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10c0ba,_0xb3f8bb){const _0x2326f5=a0_0x3b55,_0x47dca3=_0x10c0ba();while(!![]){try{const _0xc4ee41=-parseInt(_0x2326f5(0x16c))/0x1+-parseInt(_0x2326f5(0x15e))/0x2+-parseInt(_0x2326f5(0x160))/0x3+-parseInt(_0x2326f5(0x15a))/0x4*(parseInt(_0x2326f5(0x171))/0x5)+parseInt(_0x2326f5(0x158))/0x6+-parseInt(_0x2326f5(0x156))/0x7+parseInt(_0x2326f5(0x15b))/0x8;if(_0xc4ee41===_0xb3f8bb)break;else _0x47dca3['push'](_0x47dca3['shift']());}catch(_0x5cf81f){_0x47dca3['push'](_0x47dca3['shift']());}}}(a0_0x48a0,0x4fb8b));import'../popup/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x48a0(){const _0x476db6=['ox-grid-header','target','dispField','codes','renderRoot','change','640614XabdTL','value','filter','length','stopPropagation','2338905BUqnDn','form\x20[name=\x22','name','tTitle','2268672QYhIAZ','querySelector','1263540HlpNAT','record','4ZgniFA','15478568EJqkLm','[name=\x22','selectorName','528166ovvVoj','filter-change','366894OEvKtN','options','toLowerCase','select_item','tMenu','tagName'];a0_0x48a0=function(){return _0x476db6;};return a0_0x48a0();}import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x25088a,_0x15e157,_0x4507ff){const _0x1dbe69=a0_0x3b55;var _0x2704a9=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x15e157}
|
|
4
|
+
.options=${_0x25088a[_0x1dbe69(0x159)][_0x1dbe69(0x161)]}
|
|
5
|
+
.confirmCallback=${_0x4507ff}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x2704a9,{'backdrop':!0x0,'size':'large','title':_0x25088a['record'][_0x1dbe69(0x161)][_0x1dbe69(0x15d)]?TermsUtil[_0x1dbe69(0x164)](_0x25088a[_0x1dbe69(0x159)][_0x1dbe69(0x161)][_0x1dbe69(0x15d)]):TermsUtil[_0x1dbe69(0x155)](_0x1dbe69(0x163))});}function a0_0x3b55(_0x127c31,_0xe204d5){const _0x48a0de=a0_0x48a0();return a0_0x3b55=function(_0x3b5538,_0x461022){_0x3b5538=_0x3b5538-0x154;let _0x2f90be=_0x48a0de[_0x3b5538];return _0x2f90be;},a0_0x3b55(_0x127c31,_0xe204d5);}export const FilterGristMetaCodeSelect=(_0x569ce0,_0x4d5569,_0x1d9327)=>{const _0x3b319d=a0_0x3b55,_0xfb690b=_0x569ce0['filter'],_0xcd06eb=_0x569ce0['record'][_0x3b319d(0x161)],_0x4c1591=_0xcd06eb['codes']&&_0xcd06eb[_0x3b319d(0x169)][_0x3b319d(0x16f)]>0x0?_0xcd06eb[_0x3b319d(0x169)]:void 0x0,{operator:_0x41e05b='eq'}=_0xfb690b;let _0x55e8ea=_0x4d5569||'',_0x2f7534=_0x4d5569||'';if(_0xcd06eb['dispField']&&_0x4d5569&&_0x4c1591){let _0x88789c=_0x4c1591[_0x3b319d(0x16e)](_0x44d80b=>_0x44d80b[_0x3b319d(0x16d)]==_0x4d5569);_0x88789c&&_0x88789c[_0x3b319d(0x16f)]>0x0&&(_0x2f7534=_0x88789c[0x0]['display']);}return'eq'===_0x41e05b?html`
|
|
8
|
+
<input name='${_0x569ce0[_0x3b319d(0x154)]}' .value=${_0x55e8ea} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x569ce0[_0x3b319d(0x154)]}_disp'
|
|
13
|
+
.value=${_0x2f7534}
|
|
14
|
+
@click=${_0x27eedf=>{const _0x2c14ad=_0x3b319d;_0x27eedf[_0x2c14ad(0x170)]();const _0x411460=_0x27eedf[_0x2c14ad(0x167)];openMetaCodeSelector(_0x569ce0,_0x4d5569,_0x15d342=>{const _0x15d520=_0x2c14ad;let _0x1d70f4=_0x15d342?_0x15d342[_0xcd06eb['codeField']]:'',_0x315386=_0x1d70f4;_0x15d342&&_0xcd06eb[_0x15d520(0x168)]&&(_0x315386=_0x15d342[_0xcd06eb[_0x15d520(0x168)]]),_0x411460[_0x15d520(0x16d)]=_0x315386,(_0x15d520(0x166)==_0x1d9327[_0x15d520(0x165)][_0x15d520(0x162)]()?_0x1d9327['renderRoot'][_0x15d520(0x157)](_0x15d520(0x15c)+_0xfb690b[_0x15d520(0x154)]+'\x22]'):_0x1d9327[_0x15d520(0x16a)][_0x15d520(0x157)](_0x15d520(0x172)+_0xfb690b[_0x15d520(0x154)]+'\x22]'))[_0x15d520(0x16d)]=_0x1d70f4,_0x411460['dispatchEvent'](new Event(_0x15d520(0x16b),{'bubbles':!0x0})),_0x411460['dispatchEvent'](new CustomEvent(_0x15d520(0x15f),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x569ce0[_0x15d520(0x154)],'operator':_0x41e05b,'value':_0x1d70f4}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0xf875(_0x294a16,_0x25a97b){const _0xcbff91=a0_0xcbff();return a0_0xf875=function(_0xf875ec,_0x436ddf){_0xf875ec=_0xf875ec-0x88;let _0x33544e=_0xcbff91[_0xf875ec];return _0x33544e;},a0_0xf875(_0x294a16,_0x25a97b);}(function(_0x1961c0,_0x29326d){const _0x4e2156=a0_0xf875,_0x11b458=_0x1961c0();while(!![]){try{const _0xfa6473=parseInt(_0x4e2156(0x8c))/0x1*(parseInt(_0x4e2156(0x98))/0x2)+parseInt(_0x4e2156(0x91))/0x3+parseInt(_0x4e2156(0x8a))/0x4*(parseInt(_0x4e2156(0x92))/0x5)+parseInt(_0x4e2156(0x95))/0x6+parseInt(_0x4e2156(0xa3))/0x7*(-parseInt(_0x4e2156(0x9b))/0x8)+-parseInt(_0x4e2156(0x8f))/0x9+-parseInt(_0x4e2156(0x89))/0xa*(-parseInt(_0x4e2156(0x94))/0xb);if(_0xfa6473===_0x29326d)break;else _0x11b458['push'](_0x11b458['shift']());}catch(_0x37bf8b){_0x11b458['push'](_0x11b458['shift']());}}}(a0_0xcbff,0x9a4bb));import'../popup/meta-object-selector-popup';function a0_0xcbff(){const _0x5ce91b=['tagName','filter-change','307190JdCyFU','4HvABuU','toLowerCase','25SkPvGB','selectorName','stopPropagation','6370047SdPBRq','value','1198080RABSfY','2565235dPXmJw','name','44KLalzk','3276426MomrDu','renderRoot','ox-grid-header','56762bBXPec','nameField','[name=\x22','8fXdmZB','change','querySelector','record','select_item','options','filter','dispatchEvent','6657707DgmMHa','large','tMenu'];a0_0xcbff=function(){return _0x5ce91b;};return a0_0xcbff();}import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0xde9c38,_0x52bd3f,_0x4b6ff2){const _0x3730b7=a0_0xf875;var _0x1c7143=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x52bd3f}
|
|
4
|
+
.options=${_0xde9c38[_0x3730b7(0x9e)][_0x3730b7(0xa0)]}
|
|
5
|
+
.confirmCallback=${_0x4b6ff2}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x1c7143,{'backdrop':!0x0,'size':_0x3730b7(0xa4),'title':_0xde9c38[_0x3730b7(0x9e)][_0x3730b7(0xa0)][_0x3730b7(0x8d)]?TermsUtil[_0x3730b7(0xa5)](_0xde9c38['record'][_0x3730b7(0xa0)]['selectorName']):TermsUtil['tTitle'](_0x3730b7(0x9f))});}export const FilterGristMetaObjectSelect=(_0x5b4184,_0x569c4e,_0x2c6186)=>{const _0x4df82e=a0_0xf875,_0x5e8267=_0x5b4184[_0x4df82e(0xa1)],{operator:_0xe3b32='eq'}=_0x5e8267,_0x58fde0=_0x5b4184[_0x4df82e(0x9e)][_0x4df82e(0xa0)];let _0xd29623=_0x569c4e?_0x569c4e['id']:'',_0x53419e=_0x569c4e?_0x569c4e[_0x58fde0['nameField']]:'';return'eq'===_0xe3b32?html`
|
|
8
|
+
<input name='${_0x5b4184[_0x4df82e(0x93)]}' .value=${_0xd29623} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x5b4184[_0x4df82e(0x93)]}_disp'
|
|
13
|
+
.value=${_0x53419e}
|
|
14
|
+
@click=${_0x4bc30f=>{const _0x514b5d=_0x4df82e;_0x4bc30f[_0x514b5d(0x8e)]();const _0x32688d=_0x4bc30f['target'];openMetaObjectSelector(_0x5b4184,_0x569c4e,_0x1722d4=>{const _0x17cdbc=_0x514b5d;let _0x238a35=_0x1722d4?_0x1722d4['id']:'',_0x22c1a5=_0x1722d4?_0x1722d4[_0x58fde0[_0x17cdbc(0x99)]]:'';_0x32688d[_0x17cdbc(0x90)]=_0x22c1a5,(_0x17cdbc(0x97)==_0x2c6186[_0x17cdbc(0xa6)][_0x17cdbc(0x8b)]()?_0x2c6186[_0x17cdbc(0x96)][_0x17cdbc(0x9d)](_0x17cdbc(0x9a)+_0x5e8267['name']+'\x22]'):_0x2c6186[_0x17cdbc(0x96)]['querySelector']('form\x20[name=\x22'+_0x5e8267[_0x17cdbc(0x93)]+'\x22]'))[_0x17cdbc(0x90)]=_0x238a35,_0x32688d[_0x17cdbc(0xa2)](new Event(_0x17cdbc(0x9c),{'bubbles':!0x0})),_0x32688d['dispatchEvent'](new CustomEvent(_0x17cdbc(0x88),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x5b4184['name'],'operator':_0xe3b32,'value':_0x238a35}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x1b9939=a0_0x33c6;(function(_0x25859,_0x5053a1){const _0x3db743=a0_0x33c6,_0x52d9a7=_0x25859();while(!![]){try{const _0x41d28d=-parseInt(_0x3db743(0xd7))/0x1+-parseInt(_0x3db743(0xcb))/0x2+-parseInt(_0x3db743(0xc9))/0x3*(parseInt(_0x3db743(0xca))/0x4)+parseInt(_0x3db743(0xcc))/0x5*(parseInt(_0x3db743(0xc1))/0x6)+parseInt(_0x3db743(0xd0))/0x7+-parseInt(_0x3db743(0xc5))/0x8+-parseInt(_0x3db743(0xd2))/0x9*(-parseInt(_0x3db743(0xba))/0xa);if(_0x41d28d===_0x5053a1)break;else _0x52d9a7['push'](_0x52d9a7['shift']());}catch(_0x5104f6){_0x52d9a7['push'](_0x52d9a7['shift']());}}}(a0_0x4fae,0xdc7f3));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';function a0_0x4fae(){const _0xbccbc4=['dispatchEvent','column','stringify','tTitle','812878hCkLgk','substring','290lXMvwx','popup','object','value','large','_onclick','length','89070ZqcZTK','key','openEditor','field-change','11732840pLAfhr','_onkeydown','code-editor','parse','3EehXYR','1533668XIIvcQ','1347640MoZGsV','545jpCQue','...','record','stopPropagation','9294327ThhoEi','row','401589HoryPc'];a0_0x4fae=function(){return _0xbccbc4;};return a0_0x4fae();}import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';function a0_0x33c6(_0x29e97c,_0x1f61e4){const _0x4faefd=a0_0x4fae();return a0_0x33c6=function(_0x33c628,_0x44f32b){_0x33c628=_0x33c628-0xba;let _0x1b8d3f=_0x4faefd[_0x33c628];return _0x1b8d3f;},a0_0x33c6(_0x29e97c,_0x1f61e4);}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['editorTemplate'](){const _0x52e340=a0_0x33c6;let _0xdcd04f;return this[_0x52e340(0xbd)]&&(_0xdcd04f=_0x52e340(0xbc)==typeof this['value']?JSON[_0x52e340(0xd5)](this[_0x52e340(0xbd)],0x0,0x2):this[_0x52e340(0xbd)],_0xdcd04f=_0xdcd04f[_0x52e340(0xc0)]>0x14?_0xdcd04f[_0x52e340(0xd8)](0x0,0x14)+_0x52e340(0xcd):_0xdcd04f),html`
|
|
2
|
+
${_0xdcd04f?html` <span tabindex="0" style="flex:1;">${_0xdcd04f}</span> `:html`<span tabindex="0" ></span>`}
|
|
3
|
+
`;}async['firstUpdated'](){super['firstUpdated']();}[a0_0x1b9939(0xbf)](_0x54438e){const _0xf6868=a0_0x1b9939;_0x54438e[_0xf6868(0xcf)](),this[_0xf6868(0xc3)]();}[a0_0x1b9939(0xc6)](_0x100cb9){const _0x5d6be7=a0_0x1b9939;'Enter'==_0x100cb9[_0x5d6be7(0xc2)]&&(_0x100cb9[_0x5d6be7(0xcf)](),this[_0x5d6be7(0xc3)]());}[a0_0x1b9939(0xc3)](){const _0x177c5c=a0_0x1b9939;this[_0x177c5c(0xbb)]&&delete this['popup'];var _0x14f91c=html`
|
|
4
4
|
<code-input-editor-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x177c5c(0xbd)]}
|
|
6
|
+
.confirmCallback=${(_0x10bcdf=>{const _0x487ef4=_0x177c5c;this[_0x487ef4(0xd3)](new CustomEvent(_0x487ef4(0xc4),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x487ef4(0xbd)],'after':_0x10bcdf?_0x487ef4(0xbc)==typeof this[_0x487ef4(0xbd)]?JSON[_0x487ef4(0xc8)](_0x10bcdf):_0x10bcdf:null,'record':this[_0x487ef4(0xce)],'column':this[_0x487ef4(0xd4)],'row':this[_0x487ef4(0xd1)]}}));})['bind'](this)}
|
|
7
7
|
></code-input-editor-popup>
|
|
8
|
-
`;this[
|
|
8
|
+
`;this[_0x177c5c(0xbb)]=openPopup(_0x14f91c,{'backdrop':!0x0,'size':_0x177c5c(0xbe),'title':TermsUtil[_0x177c5c(0xd6)](_0x177c5c(0xc7))});}}customElements['define']('grist-editor-code-input',GristEditorCodeInput);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x301abb=a0_0x156a;(function(_0x48d8c8,_0x24b461){const _0x5d8d16=a0_0x156a,_0x5e685d=_0x48d8c8();while(!![]){try{const _0x5d9ebf=parseInt(_0x5d8d16(0x18f))/0x1*(-parseInt(_0x5d8d16(0x17c))/0x2)+parseInt(_0x5d8d16(0x1a4))/0x3+-parseInt(_0x5d8d16(0x1a3))/0x4+-parseInt(_0x5d8d16(0x181))/0x5*(-parseInt(_0x5d8d16(0x186))/0x6)+-parseInt(_0x5d8d16(0x17f))/0x7*(parseInt(_0x5d8d16(0x18a))/0x8)+-parseInt(_0x5d8d16(0x19e))/0x9*(-parseInt(_0x5d8d16(0x193))/0xa)+parseInt(_0x5d8d16(0x1a5))/0xb*(-parseInt(_0x5d8d16(0x188))/0xc);if(_0x5d9ebf===_0x24b461)break;else _0x5e685d['push'](_0x5e685d['shift']());}catch(_0xcecc79){_0x5e685d['push'](_0x5e685d['shift']());}}}(a0_0x5c39,0xa75d5));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';function a0_0x156a(_0x200eca,_0x173eb3){const _0x5c39de=a0_0x5c39();return a0_0x156a=function(_0x156a25,_0x30271c){_0x156a25=_0x156a25-0x17c;let _0x320bde=_0x5c39de[_0x156a25];return _0x320bde;},a0_0x156a(_0x200eca,_0x173eb3);}import{TermsUtil}from'../../../utils/terms-util';import'../../popup/meta-object-selector-popup';export class GristEditorMetaCodeSelector extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x301abb(0x19d)](){const _0x45df83=a0_0x301abb;let _0x1478b0='';if(this[_0x45df83(0x191)][_0x45df83(0x192)]&&this['column'][_0x45df83(0x192)][_0x45df83(0x18e)]){if(this[_0x45df83(0x191)]['record'][_0x45df83(0x18e)][_0x45df83(0x199)]){let _0x11b77e=this['column']['record']['options']['codes']||[];if(this[_0x45df83(0x19a)]&&this[_0x45df83(0x19a)][_0x45df83(0x184)]>0x0){let _0x169d57=_0x11b77e[_0x45df83(0x17d)](_0x40006f=>_0x40006f[_0x45df83(0x19a)]===this[_0x45df83(0x19a)]);_0x1478b0=_0x169d57&&_0x169d57[_0x45df83(0x184)]>0x0?_0x169d57[0x0][_0x45df83(0x19c)]:'';}}else _0x1478b0=this[_0x45df83(0x19a)];}else _0x1478b0='';return html`
|
|
2
|
+
${_0x1478b0?html` <span tabindex="0" style="flex:1">${_0x1478b0}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x301abb(0x18d)](){const _0x4ab0f0=a0_0x301abb;super[_0x4ab0f0(0x18d)]();}[a0_0x301abb(0x183)](_0x5d34f6){const _0x30029f=a0_0x301abb;_0x5d34f6[_0x30029f(0x196)](),this[_0x30029f(0x17e)]();}['_onkeydown'](_0x5748b9){const _0x586c1b=a0_0x301abb;_0x586c1b(0x19f)==_0x5748b9[_0x586c1b(0x198)]&&(_0x5748b9[_0x586c1b(0x196)](),this[_0x586c1b(0x17e)]());}[a0_0x301abb(0x17e)](){const _0x5455fc=a0_0x301abb;this[_0x5455fc(0x195)]&&delete this[_0x5455fc(0x195)];var {selectorName:_0x16572e=TermsUtil[_0x5455fc(0x1a0)]('select_item')}=this[_0x5455fc(0x191)][_0x5455fc(0x192)][_0x5455fc(0x18e)]||{},_0x1f97ca=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x5455fc(0x19a)]}
|
|
6
|
+
.options=${this[_0x5455fc(0x191)][_0x5455fc(0x192)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x95e643=>{const _0x306420=_0x5455fc;let _0x4ef151=this[_0x306420(0x191)]['record'][_0x306420(0x18e)][_0x306420(0x1a2)],_0x2e9178=this[_0x306420(0x191)][_0x306420(0x192)][_0x306420(0x18e)][_0x306420(0x199)],_0xede6cd=this[_0x306420(0x191)][_0x306420(0x192)][_0x306420(0x18e)][_0x306420(0x189)]||{};if(this['column'][_0x306420(0x192)][_0x306420(0x18e)]['codes']||(this[_0x306420(0x191)]['record'][_0x306420(0x18e)][_0x306420(0x190)]=[]),_0x95e643){let _0x51c940=this['column'][_0x306420(0x192)][_0x306420(0x18e)]['codes'][_0x306420(0x17d)](_0x39439=>_0x39439['value']==_0x95e643[_0x4ef151]);_0x51c940&&0x0!=_0x51c940['length']||this[_0x306420(0x191)][_0x306420(0x192)]['options'][_0x306420(0x190)][_0x306420(0x187)]({'value':_0x95e643[_0x4ef151],'display':_0x95e643[_0x2e9178]});}this[_0x306420(0x197)](new CustomEvent(_0x306420(0x18b),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x306420(0x19a)],'after':_0x95e643?_0x95e643[_0x4ef151]:null,'record':this['record'],'column':this[_0x306420(0x191)],'row':this[_0x306420(0x185)]}})),Object[_0x306420(0x18c)](_0xede6cd)[_0x306420(0x180)](_0xd91f09=>{const _0xefa8df=_0x306420;this[_0xefa8df(0x197)](new CustomEvent(_0xefa8df(0x18b),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0xefa8df(0x192)][_0xede6cd[_0xd91f09]],'after':_0x95e643?_0x95e643[_0xd91f09]:null,'record':this[_0xefa8df(0x192)],'column':{'name':_0xede6cd[_0xd91f09]},'row':this[_0xefa8df(0x185)]}}));});})[_0x5455fc(0x19b)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this['popup']=openPopup(
|
|
9
|
+
`;this['popup']=openPopup(_0x1f97ca,{'backdrop':!0x0,'size':_0x5455fc(0x194),'title':TermsUtil[_0x5455fc(0x182)](_0x16572e)});}}function a0_0x5c39(){const _0x2fecda=['bind','display','editorTemplate','36sfBnnp','Enter','tTitle','grist-editor-meta-code-selector','codeField','5004304rAZJMz','4050090fWKBGp','330671XcdKmO','8332yHHcRH','filter','openSelector','294BjPKXK','forEach','5aahDmd','tMenu','_onclick','length','row','7794690iCYpmZ','push','168Icvxip','fieldMap','125872IcnNkO','field-change','keys','firstUpdated','options','57hQrskX','codes','column','record','1516500qvLbTm','large','popup','stopPropagation','dispatchEvent','key','dispField','value'];a0_0x5c39=function(){return _0x2fecda;};return a0_0x5c39();}customElements['define'](a0_0x301abb(0x1a1),GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
var a0_0x13e1e9=a0_0x2445;(function(_0x15ed3d,_0x1054fe){var _0x3838f1=a0_0x2445,_0x5a6eea=_0x15ed3d();while(!![]){try{var _0x164697=-parseInt(_0x3838f1(0x174))/0x1+-parseInt(_0x3838f1(0x183))/0x2+parseInt(_0x3838f1(0x16c))/0x3+-parseInt(_0x3838f1(0x173))/0x4*(parseInt(_0x3838f1(0x180))/0x5)+-parseInt(_0x3838f1(0x18a))/0x6*(parseInt(_0x3838f1(0x189))/0x7)+-parseInt(_0x3838f1(0x17c))/0x8*(parseInt(_0x3838f1(0x182))/0x9)+-parseInt(_0x3838f1(0x18d))/0xa*(-parseInt(_0x3838f1(0x179))/0xb);if(_0x164697===_0x1054fe)break;else _0x5a6eea['push'](_0x5a6eea['shift']());}catch(_0x27562b){_0x5a6eea['push'](_0x5a6eea['shift']());}}}(a0_0x1b46,0xd6c2a));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_0x2445(_0x3894c9,_0x11d458){var _0x1b465d=a0_0x1b46();return a0_0x2445=function(_0x244558,_0x41274f){_0x244558=_0x244558-0x16b;var _0x1c2c02=_0x1b465d[_0x244558];return _0x1c2c02;},a0_0x2445(_0x3894c9,_0x11d458);}export class GristEditorMetaObjectSelector extends OxGristEditor{static get[a0_0x13e1e9(0x175)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x13e1e9(0x188)](){var _0x2fd7b1=a0_0x13e1e9;let _0x473256='';return this[_0x2fd7b1(0x16e)]&&this['column'][_0x2fd7b1(0x16b)][_0x2fd7b1(0x16d)]&&(_0x473256=this[_0x2fd7b1(0x16e)][this[_0x2fd7b1(0x16f)]['record']['options'][_0x2fd7b1(0x18c)]]),html`
|
|
2
|
+
${this[_0x2fd7b1(0x16e)]?html` <span tabindex="0" style="flex:1">${_0x473256}</span> `:html`<span tabindex="0">${_0x473256}</span>`}
|
|
3
|
+
`;}async[a0_0x13e1e9(0x176)](){var _0x13a478=a0_0x13e1e9;super[_0x13a478(0x176)]();}[a0_0x13e1e9(0x172)](_0x1188e0){var _0x4df498=a0_0x13e1e9;_0x1188e0[_0x4df498(0x177)](),this[_0x4df498(0x17e)]();}['_onkeydown'](_0x26f1ba){var _0x3eb587=a0_0x13e1e9;_0x3eb587(0x17f)==_0x26f1ba[_0x3eb587(0x184)]&&(_0x26f1ba[_0x3eb587(0x177)](),this[_0x3eb587(0x17e)]());}['openSelector'](){var _0x4d2fb5=a0_0x13e1e9;this[_0x4d2fb5(0x178)]&&delete this[_0x4d2fb5(0x178)];var {selectorName:_0x573c4e=TermsUtil['tTitle'](_0x4d2fb5(0x18b))}=this['column']['record'][_0x4d2fb5(0x16d)]||{},_0x5a5fbc=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x4d2fb5(0x16e)]}
|
|
6
|
+
.options=${this[_0x4d2fb5(0x16f)]['record'][_0x4d2fb5(0x16d)]}
|
|
7
|
+
.confirmCallback=${(_0x306cdc=>{var _0x9f7cdd=_0x4d2fb5;let _0x167ad0=this['column'][_0x9f7cdd(0x16b)][_0x9f7cdd(0x16d)][_0x9f7cdd(0x181)]||{};this[_0x9f7cdd(0x171)](new CustomEvent(_0x9f7cdd(0x187),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x9f7cdd(0x16e)],'after':_0x306cdc||null,'record':this[_0x9f7cdd(0x16b)],'column':this[_0x9f7cdd(0x16f)],'row':this[_0x9f7cdd(0x17b)]}})),Object['keys'](_0x167ad0)[_0x9f7cdd(0x186)](_0x2edfbb=>{var _0x28967b=_0x9f7cdd;this[_0x28967b(0x171)](new CustomEvent(_0x28967b(0x187),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x28967b(0x16b)][_0x167ad0[_0x2edfbb]],'after':_0x306cdc?_0x306cdc[_0x2edfbb]:null,'record':this[_0x28967b(0x16b)],'column':{'name':_0x167ad0[_0x2edfbb]},'row':this[_0x28967b(0x17b)]}}));});})[_0x4d2fb5(0x170)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x4d2fb5(0x178)]=openPopup(_0x5a5fbc,{'backdrop':!0x0,'size':_0x4d2fb5(0x17d),'title':TermsUtil[_0x4d2fb5(0x17a)](_0x573c4e)});}}function a0_0x1b46(){var _0xe10970=['_onclick','316wEkJCV','384187zaPNxv','properties','firstUpdated','stopPropagation','popup','11lOqKmI','tMenu','row','2301944mGjBev','large','openSelector','Enter','12230qaDIWC','fieldMap','9mzMJds','1416240lihMXw','key','grist-editor-meta-object-selector','forEach','field-change','editorTemplate','1343657TgEYvv','6GsqQlt','select_item','nameField','15641090qlnAIB','record','3242352QfdWnq','options','value','column','bind','dispatchEvent'];a0_0x1b46=function(){return _0xe10970;};return a0_0x1b46();}customElements['define'](a0_0x13e1e9(0x185),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x169922,_0xd5ca2b){const _0x37eeaa=a0_0x16b5,_0x224097=_0x169922();while(!![]){try{const _0x2a4365=parseInt(_0x37eeaa(0x1da))/0x1*(-parseInt(_0x37eeaa(0x1db))/0x2)+parseInt(_0x37eeaa(0x1eb))/0x3*(-parseInt(_0x37eeaa(0x1ea))/0x4)+parseInt(_0x37eeaa(0x1e9))/0x5*(-parseInt(_0x37eeaa(0x1e8))/0x6)+parseInt(_0x37eeaa(0x1dc))/0x7+parseInt(_0x37eeaa(0x1de))/0x8+parseInt(_0x37eeaa(0x1e1))/0x9*(parseInt(_0x37eeaa(0x1dd))/0xa)+parseInt(_0x37eeaa(0x1e6))/0xb;if(_0x2a4365===_0xd5ca2b)break;else _0x224097['push'](_0x224097['shift']());}catch(_0x45f864){_0x224097['push'](_0x224097['shift']());}}}(a0_0x2088,0x6a461));import{html}from'lit';function a0_0x16b5(_0x28c78e,_0x28f994){const _0x2088ed=a0_0x2088();return a0_0x16b5=function(_0x16b582,_0x43be75){_0x16b582=_0x16b582-0x1da;let _0x1813f2=_0x2088ed[_0x16b582];return _0x1813f2;},a0_0x16b5(_0x28c78e,_0x28f994);}function a0_0x2088(){const _0x3b12f5=['28pepqEu','3637872lcKCJw','7870dJDftA','2771896GaeEaJ','target','textContent','6453zXfkxr','data-tooltip','removeAttribute','stringify','length','10086010NgxddK','substring','87024oExtqS','260LKfSJN','12qlxvtx','454101HClhjq','50269SLzOSq'];a0_0x2088=function(){return _0x3b12f5;};return a0_0x2088();}import{detectOverflow}from'@operato/utils';function onmouseover(_0x2570e7){const _0x369fff=a0_0x16b5,_0x28e2cb=_0x2570e7[_0x369fff(0x1df)];detectOverflow(_0x28e2cb)&&_0x28e2cb['setAttribute'](_0x369fff(0x1e2),_0x28e2cb[_0x369fff(0x1e0)]);}function onmouseout(_0x32b574){const _0x3ad476=a0_0x16b5;_0x32b574['target'][_0x3ad476(0x1e3)](_0x3ad476(0x1e2));}export const GristRendererCodeInput=(_0x526bdd,_0x88f3d9,_0x1d4a17,_0x11fa21,_0x2b93da)=>{const _0x766f3d=a0_0x16b5;let _0x2eb82a='';return _0x526bdd&&(_0x2eb82a='object'==typeof _0x526bdd?JSON[_0x766f3d(0x1e4)](_0x526bdd,0x0,0x2):_0x526bdd,_0x2eb82a=_0x2eb82a[_0x766f3d(0x1e5)]>0x14?_0x2eb82a[_0x766f3d(0x1e7)](0x0,0x14)+'...':_0x2eb82a),html`<span style='flex:1' @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x2eb82a}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x11bb31,_0x2c9094){const _0x3e5775=a0_0x3c02,_0x139974=_0x11bb31();while(!![]){try{const _0xa8e688=parseInt(_0x3e5775(0x185))/0x1+-parseInt(_0x3e5775(0x17c))/0x2+parseInt(_0x3e5775(0x180))/0x3+parseInt(_0x3e5775(0x188))/0x4+-parseInt(_0x3e5775(0x183))/0x5+-parseInt(_0x3e5775(0x18e))/0x6*(parseInt(_0x3e5775(0x18d))/0x7)+parseInt(_0x3e5775(0x17e))/0x8*(parseInt(_0x3e5775(0x182))/0x9);if(_0xa8e688===_0x2c9094)break;else _0x139974['push'](_0x139974['shift']());}catch(_0x3d0588){_0x139974['push'](_0x139974['shift']());}}}(a0_0x35ae,0xd61bb));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x494c57){const _0x173037=a0_0x3c02,_0x1f00f4=_0x494c57['target'];detectOverflow(_0x1f00f4)&&_0x1f00f4[_0x173037(0x186)]('data-tooltip',_0x1f00f4[_0x173037(0x17d)]);}function onmouseout(_0x384e95){const _0x186aad=a0_0x3c02;_0x384e95[_0x186aad(0x187)]['removeAttribute'](_0x186aad(0x189));}function a0_0x35ae(){const _0x937ed2=['4374825BJQCDN','length','1226208LiPnuR','setAttribute','target','676904dzFllw','data-tooltip','display','record','dispField','715078bbQNeq','48AaHHYn','filter','value','1747258DWlSVp','textContent','112UOfoGv','codes','2351091fQmxwN','options','812367agUzsr'];a0_0x35ae=function(){return _0x937ed2;};return a0_0x35ae();}function a0_0x3c02(_0x58da26,_0x16f6da){const _0x35ae60=a0_0x35ae();return a0_0x3c02=function(_0x3c0205,_0x46564f){_0x3c0205=_0x3c0205-0x17a;let _0xa3141c=_0x35ae60[_0x3c0205];return _0xa3141c;},a0_0x3c02(_0x58da26,_0x16f6da);}export const GristRendererMetaCodeSelector=(_0x9e529c,_0x475827,_0xc7c385,_0x1a76b9,_0x247e8b)=>{const _0x38ec83=a0_0x3c02;let _0x49d6b5='';if(_0x475827[_0x38ec83(0x18b)]&&_0x475827[_0x38ec83(0x18b)][_0x38ec83(0x181)]){if(_0x475827[_0x38ec83(0x18b)]['options'][_0x38ec83(0x18c)]){if(_0x475827['record'][_0x38ec83(0x181)][_0x38ec83(0x17f)]||(_0x475827[_0x38ec83(0x18b)][_0x38ec83(0x181)][_0x38ec83(0x17f)]=[]),_0x9e529c&&_0x9e529c[_0x38ec83(0x184)]>0x0){let _0x5e12b5=_0x475827[_0x38ec83(0x18b)][_0x38ec83(0x181)]['codes'][_0x38ec83(0x17a)](_0x2941f4=>_0x2941f4[_0x38ec83(0x17b)]===_0x9e529c);_0x49d6b5=_0x5e12b5&&_0x5e12b5[_0x38ec83(0x184)]>0x0?_0x5e12b5[0x0][_0x38ec83(0x18a)]:_0x9e529c;}}else _0x49d6b5=_0x9e529c;}else _0x49d6b5='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x49d6b5}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46da37,_0x54d6c6){const _0x355783=a0_0x29bb,_0x283cc4=_0x46da37();while(!![]){try{const _0x2c2118=parseInt(_0x355783(0x1f6))/0x1*(-parseInt(_0x355783(0x1f4))/0x2)+-parseInt(_0x355783(0x1fa))/0x3+-parseInt(_0x355783(0x1ef))/0x4*(-parseInt(_0x355783(0x1ea))/0x5)+-parseInt(_0x355783(0x1ed))/0x6*(-parseInt(_0x355783(0x1f5))/0x7)+parseInt(_0x355783(0x1f9))/0x8+parseInt(_0x355783(0x1f2))/0x9+-parseInt(_0x355783(0x1e8))/0xa*(-parseInt(_0x355783(0x1ec))/0xb);if(_0x2c2118===_0x54d6c6)break;else _0x283cc4['push'](_0x283cc4['shift']());}catch(_0x63b538){_0x283cc4['push'](_0x283cc4['shift']());}}}(a0_0x5212,0x6dff3));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x1dcbeb){const _0x190071=a0_0x29bb,_0xa4fe1d=_0x1dcbeb[_0x190071(0x1f8)];detectOverflow(_0xa4fe1d)&&_0xa4fe1d[_0x190071(0x1e9)]('data-tooltip',_0xa4fe1d[_0x190071(0x1f3)]);}function a0_0x29bb(_0x22b47b,_0x2395ac){const _0x5212bd=a0_0x5212();return a0_0x29bb=function(_0x29bbd9,_0x501e62){_0x29bbd9=_0x29bbd9-0x1e8;let _0x2ab2dd=_0x5212bd[_0x29bbd9];return _0x2ab2dd;},a0_0x29bb(_0x22b47b,_0x2395ac);}function a0_0x5212(){const _0xbe4098=['18JlTMGT','nameField','46812KjbhPj','removeAttribute','data-tooltip','2854044MaVKtq','textContent','383918PeAvOh','715435wptfUs','3GpIuVg','options','target','4087240VGSBej','1560798AIxmdJ','50DmnZIX','setAttribute','15sPrQxV','record','829279HfggXj'];a0_0x5212=function(){return _0xbe4098;};return a0_0x5212();}function onmouseout(_0x4fa64c){const _0x240d9f=a0_0x29bb;_0x4fa64c['target'][_0x240d9f(0x1f0)](_0x240d9f(0x1f1));}export const GristRendererMetaObjectSelector=(_0x1686c9,_0x41f802,_0x22448a,_0x37e216,_0x1198f6)=>{const _0x2d0397=a0_0x29bb;let _0x237498='';return _0x1686c9&&_0x41f802[_0x2d0397(0x1eb)][_0x2d0397(0x1f7)]&&(_0x237498=_0x1686c9[_0x41f802[_0x2d0397(0x1eb)][_0x2d0397(0x1f7)][_0x2d0397(0x1ee)]]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x237498}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x8fd62e=a0_0xa0e5;function a0_0xa0e5(_0x3a1ee7,_0x2f65c3){var _0x31b20b=a0_0x31b2();return a0_0xa0e5=function(_0xa0e52a,_0xe0fe5e){_0xa0e52a=_0xa0e52a-0x1e4;var _0x29dca1=_0x31b20b[_0xa0e52a];return _0x29dca1;},a0_0xa0e5(_0x3a1ee7,_0x2f65c3);}(function(_0x3ff63e,_0x24d667){var _0x38c427=a0_0xa0e5,_0x1da918=_0x3ff63e();while(!![]){try{var _0x24e3d5=-parseInt(_0x38c427(0x1ed))/0x1+parseInt(_0x38c427(0x1f0))/0x2*(parseInt(_0x38c427(0x1f2))/0x3)+-parseInt(_0x38c427(0x201))/0x4+parseInt(_0x38c427(0x1f1))/0x5+parseInt(_0x38c427(0x202))/0x6+parseInt(_0x38c427(0x1ff))/0x7*(parseInt(_0x38c427(0x1ec))/0x8)+parseInt(_0x38c427(0x1e6))/0x9*(-parseInt(_0x38c427(0x1fc))/0xa);if(_0x24e3d5===_0x24d667)break;else _0x1da918['push'](_0x1da918['shift']());}catch(_0x4ec3f4){_0x1da918['push'](_0x1da918['shift']());}}}(a0_0x31b2,0x43290));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_0x8fd62e(0x1f9)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -19,17 +19,17 @@ function a0_0x5e55(){var _0x491929=['confirm','clickConfirm','object','107023yYG
|
|
|
19
19
|
display: flex;
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
|
-
`];async[
|
|
23
|
-
<ox-input-code mode="javascript" value=${this[
|
|
22
|
+
`];async[a0_0x8fd62e(0x1e9)](){var _0x2f349e=a0_0x8fd62e;_0x2f349e(0x1f4)==typeof this[_0x2f349e(0x1ee)]?this[_0x2f349e(0x1fb)]=JSON['stringify'](this[_0x2f349e(0x1ee)],0x0,0x2):this[_0x2f349e(0x1fb)]=this[_0x2f349e(0x1ee)],await super[_0x2f349e(0x1e9)]();}async[a0_0x8fd62e(0x1e8)](){var _0x4204e6=a0_0x8fd62e;await super[_0x4204e6(0x1e8)]();}[a0_0x8fd62e(0x200)](){var _0x10055e=a0_0x8fd62e;return html`
|
|
23
|
+
<ox-input-code mode="javascript" value=${this[_0x10055e(0x1fb)]} 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['tButton']('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
26
|
+
@click=${this[_0x10055e(0x1e7)][_0x10055e(0x1f5)](this)}>
|
|
27
27
|
</mwc-button>
|
|
28
|
-
<mwc-button raised label="${TermsUtil[
|
|
29
|
-
@click=${this[
|
|
28
|
+
<mwc-button raised label="${TermsUtil[_0x10055e(0x1ef)]('cancel')}" style="margin-left:7px;margin-top:7px;"
|
|
29
|
+
@click=${this[_0x10055e(0x1ea)][_0x10055e(0x1f5)](this)}>
|
|
30
30
|
</mwc-button>
|
|
31
|
-
<mwc-button raised label="${TermsUtil[
|
|
32
|
-
@click=${this[
|
|
31
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x10055e(0x1f7))}" style="margin-left:7px;margin-top:7px;"
|
|
32
|
+
@click=${this['clickConfirm'][_0x10055e(0x1f5)](this)}>
|
|
33
33
|
</mwc-button>
|
|
34
34
|
</div>
|
|
35
|
-
`;}get[
|
|
35
|
+
`;}get[a0_0x8fd62e(0x1e4)](){var _0x50072f=a0_0x8fd62e;return this['shadowRoot'][_0x50072f(0x1f3)](_0x50072f(0x1f8));}async['clickEmpty'](_0x6b7185){this['confirmCallback']&&this['confirmCallback'](null),closePopup(this);}async[a0_0x8fd62e(0x1ea)](_0x830c3d){closePopup(this);}async['clickConfirm'](_0x5010a8){var _0x4fe2c9=a0_0x8fd62e;this[_0x4fe2c9(0x1fb)]!==this[_0x4fe2c9(0x1e4)]['value']?this[_0x4fe2c9(0x1fa)](this[_0x4fe2c9(0x1e4)]['value']):MetaApi[_0x4fe2c9(0x1fe)]('info',TermsUtil[_0x4fe2c9(0x1f6)]('NOTHING_CHANGED'));}async[a0_0x8fd62e(0x1fa)](_0x35a831){var _0x4b4d6d=a0_0x8fd62e;this[_0x4b4d6d(0x1e5)]&&this[_0x4b4d6d(0x1e5)](_0x35a831),closePopup(this);}}function a0_0x31b2(){var _0x251936=['tText','confirm','ox-input-code','styles','changedValue','codeVlaue','611770SuxmrW','code-input-editor-popup','showToast','329gddQRN','render','1235552CAVAnh','2661756LgSZLs','codeEditor','confirmCallback','63YFkWkH','clickEmpty','firstUpdated','connectedCallback','clickCancel','define','79880PNdDfa','364730byOSrF','value','tButton','8422QgkFws','193565GcnjAs','303DEBxJY','querySelector','object','bind'];a0_0x31b2=function(){return _0x251936;};return a0_0x31b2();}customElements[a0_0x8fd62e(0x1eb)](a0_0x8fd62e(0x1fd),CodeInputEditorPopup);
|