@things-factory/meta-ui 6.1.23 → 6.1.24
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 +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +10 -10
- 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 +9 -9
- 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 +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +14 -14
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +10 -10
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
package/client/actions/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
<mwc-icon @click=${
|
|
1
|
+
const a0_0xc16d9a=a0_0x1de7;function a0_0x1de7(_0x34e0cb,_0x5cc45b){const _0x4f41c7=a0_0x4f41();return a0_0x1de7=function(_0x1de776,_0x16ee09){_0x1de776=_0x1de776-0x1d3;let _0x134074=_0x4f41c7[_0x1de776];return _0x134074;},a0_0x1de7(_0x34e0cb,_0x5cc45b);}(function(_0x81647a,_0x8ea65e){const _0x3a9a69=a0_0x1de7,_0x360271=_0x81647a();while(!![]){try{const _0x4d5cc7=-parseInt(_0x3a9a69(0x1de))/0x1+-parseInt(_0x3a9a69(0x1d8))/0x2*(parseInt(_0x3a9a69(0x1e5))/0x3)+-parseInt(_0x3a9a69(0x1ee))/0x4*(parseInt(_0x3a9a69(0x1d5))/0x5)+parseInt(_0x3a9a69(0x1d9))/0x6*(parseInt(_0x3a9a69(0x1ea))/0x7)+-parseInt(_0x3a9a69(0x1e0))/0x8+-parseInt(_0x3a9a69(0x1d3))/0x9+parseInt(_0x3a9a69(0x1e6))/0xa;if(_0x4d5cc7===_0x8ea65e)break;else _0x360271['push'](_0x360271['shift']());}catch(_0x42cba7){_0x360271['push'](_0x360271['shift']());}}}(a0_0x4f41,0xb3d6e));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x1f2ac8 from'graphql-tag';import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI='UPDATE_META_UI';export const UPDATE_META_MENU_TEMPLATE=a0_0xc16d9a(0x1d4);var HAMBURGER;function a0_0x4f41(){const _0x1988e8=['hamburger','18770lRBQux','24vJgsHt','meta[name=\x22application-name\x22]','dispatch','value','items','1415936LtHlcv','liteMenus','6354208xONRfO','lite-menu-part','portrait','landscape','FRONT_END','39uKAtwL','30371780fhDuNr','get','content','NAVBAR','1435931rVQaGM','filter','active','query','36djneiC','appName','2234574EVVsft','UPDATE_META_MENU_TEMPLATE','300325kQCXGe','rank'];a0_0x4f41=function(){return _0x1988e8;};return a0_0x4f41();}export async function setupMenuPart(_0x4d3362){const _0x55a1fd=a0_0xc16d9a;var {hovering:_0x71ec62=!!isMobileDevice(),slotTemplate:_0x40b91d,portraitSlotTemplate:_0x3587f6,landscapeSlotTemplate:_0x1fe82d,position:_0x44d572=VIEWPART_POSITION[_0x55a1fd(0x1e9)]}=_0x4d3362||{};const {hovering:_0x4d4f1f}=(await clientSettingStore[_0x55a1fd(0x1e7)]('dynamic-menu'))?.[_0x55a1fd(0x1dc)]||{};void 0x0!==_0x4d4f1f&&(_0x71ec62=_0x4d4f1f);const _0x2e11e1=_0x44d572==VIEWPART_POSITION['HEADERBAR']?_0x55a1fd(0x1e3):_0x55a1fd(0x1e2),_0x507534=(_0x55a1fd(0x1e3)==_0x2e11e1?_0x1fe82d:_0x3587f6)||_0x40b91d||html``;appendViewpart({'name':_0x55a1fd(0x1e1),'viewpart':{'show':!_0x71ec62,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x71ec62,'template':html`<dynamic-menu-part .orientation=${_0x2e11e1}>${_0x507534}</dynamic-menu-part>`},'position':_0x44d572}),_0x71ec62&&'portrait'==_0x2e11e1?HAMBURGER||(HAMBURGER={'name':_0x55a1fd(0x1d7),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0xbc6f7e=>toggleOverlay('dynamic-menu-part',{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x55a1fd(0x1e4)]},store[_0x55a1fd(0x1db)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x55a1fd(0x1db)]({'type':REMOVE_APP_TOOL,'name':_0x55a1fd(0x1d7)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x1db42e){const _0x12d1c6=a0_0xc16d9a;var _0x495df6=document['querySelector'](_0x12d1c6(0x1da))?.[_0x12d1c6(0x1e8)],_0x5b128a=(await client[_0x12d1c6(0x1ed)]({'query':a0_0x1f2ac8`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x9c7175=a0_0x43ca;(function(_0xc94ddc,_0x4e4a6c){const _0x163db8=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x12d1c6(0x1ec),'operator':'eq','value':!0x0},{'name':_0x12d1c6(0x1ef),'operator':'in','value':['',_0x495df6]}],'sortings':[{'name':_0x12d1c6(0x1d6),'desc':!0x1}]}}))['data'][_0x12d1c6(0x1df)][_0x12d1c6(0x1dd)];store[_0x12d1c6(0x1db)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x5b128a[_0x12d1c6(0x1eb)](_0x52ea7b=>!_0x52ea7b[_0x12d1c6(0x1ef)]||_0x52ea7b['appName']===_0x495df6),'template':_0x1db42e});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a7926,_0xa5ba32){const _0x7cc16b=a0_0x2c58,_0x437c97=_0x4a7926();while(!![]){try{const _0x1c5b5a=parseInt(_0x7cc16b(0x17f))/0x1+parseInt(_0x7cc16b(0x172))/0x2*(parseInt(_0x7cc16b(0x16f))/0x3)+parseInt(_0x7cc16b(0x17b))/0x4*(parseInt(_0x7cc16b(0x178))/0x5)+parseInt(_0x7cc16b(0x175))/0x6+parseInt(_0x7cc16b(0x171))/0x7*(-parseInt(_0x7cc16b(0x16b))/0x8)+parseInt(_0x7cc16b(0x17d))/0x9*(-parseInt(_0x7cc16b(0x169))/0xa)+-parseInt(_0x7cc16b(0x187))/0xb*(-parseInt(_0x7cc16b(0x16a))/0xc);if(_0x1c5b5a===_0xa5ba32)break;else _0x437c97['push'](_0x437c97['shift']());}catch(_0x58644b){_0x437c97['push'](_0x437c97['shift']());}}}(a0_0x823f,0x22066));function a0_0x823f(){const _0x3c2ea8=['target','filter','toLowerCase','170cPsrWQ','204edldXo','359248XQtmZg','large','length','tagName','24ZTYmEe','value','35DCzpID','47776aVofay','querySelector','change','19380ZaQDhr','selectorName','renderRoot','82335cKjwRP','name','dispField','52hRuZHi','dispatchEvent','102591YxRsjQ','select_item','100875YKOXtF','filter-change','codes','display','[name=\x22','ox-grid-header','options','tTitle','31317klMqdb','codeField'];a0_0x823f=function(){return _0x3c2ea8;};return a0_0x823f();}import'../popup/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x2c58(_0x431a45,_0x55876e){const _0x823f57=a0_0x823f();return a0_0x2c58=function(_0x2c580e,_0x15d486){_0x2c580e=_0x2c580e-0x166;let _0x1319a3=_0x823f57[_0x2c580e];return _0x1319a3;},a0_0x2c58(_0x431a45,_0x55876e);}import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0xe927a8,_0x160c33,_0x94afeb){const _0x397520=a0_0x2c58;var _0x487921=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x160c33}
|
|
4
|
+
.options=${_0xe927a8['options']}
|
|
5
|
+
.confirmCallback=${_0x94afeb}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x487921,{'backdrop':!0x0,'size':_0x397520(0x16c),'title':_0xe927a8[_0x397520(0x185)][_0x397520(0x176)]?TermsUtil['tMenu'](_0xe927a8[_0x397520(0x185)][_0x397520(0x176)]):TermsUtil[_0x397520(0x186)](_0x397520(0x17e))});}export const FilterFormMetaCodeSelect=(_0x153031,_0x7fedca,_0x5c79b1)=>{const _0x894aeb=a0_0x2c58,_0x1d3118=_0x153031['options'],_0x4583cf=_0x1d3118[_0x894aeb(0x181)]&&_0x1d3118[_0x894aeb(0x181)]['length']>0x0?_0x1d3118[_0x894aeb(0x181)]:void 0x0,{operator:_0x159494='eq'}=_0x153031;let _0x2e9a5e=_0x7fedca||'',_0x4e8b40=_0x7fedca||'';if(_0x1d3118['dispField']&&_0x7fedca&&_0x4583cf){let _0x5cc4e0=_0x4583cf[_0x894aeb(0x167)](_0x2cedf5=>_0x2cedf5[_0x894aeb(0x170)]==_0x7fedca);_0x5cc4e0&&_0x5cc4e0[_0x894aeb(0x16d)]>0x0&&(_0x4e8b40=_0x5cc4e0[0x0][_0x894aeb(0x182)]);}return'eq'===_0x159494?html`
|
|
8
|
+
<input name='${_0x153031[_0x894aeb(0x179)]}' .value=${_0x2e9a5e} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x153031['name']}_disp'
|
|
13
|
+
.value=${_0x4e8b40}
|
|
14
|
+
@click=${_0x3975db=>{const _0x276a42=_0x894aeb;_0x3975db['stopPropagation']();const _0x580392=_0x3975db[_0x276a42(0x166)];openMetaCodeSelector(_0x153031,_0x7fedca,_0x28b1d9=>{const _0x205833=_0x276a42;let _0x1099e3=_0x28b1d9?_0x28b1d9[_0x1d3118[_0x205833(0x188)]]:'',_0x5c87a5=_0x1099e3;_0x28b1d9&&_0x1d3118['dispField']&&(_0x5c87a5=_0x28b1d9[_0x1d3118[_0x205833(0x17a)]]),_0x580392[_0x205833(0x170)]=_0x5c87a5,(_0x205833(0x184)==_0x5c79b1[_0x205833(0x16e)][_0x205833(0x168)]()?_0x5c79b1['renderRoot'][_0x205833(0x173)](_0x205833(0x183)+_0x153031[_0x205833(0x179)]+'\x22]'):_0x5c79b1[_0x205833(0x177)][_0x205833(0x173)]('form\x20[name=\x22'+_0x153031['name']+'\x22]'))['value']=_0x1099e3,_0x580392[_0x205833(0x17c)](new Event(_0x205833(0x174),{'bubbles':!0x0})),_0x580392[_0x205833(0x17c)](new CustomEvent(_0x205833(0x180),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x153031['name'],'operator':_0x159494,'value':_0x1099e3}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x269974,_0x56ba02){const _0x5c322d=a0_0x263a,_0x56f690=_0x269974();while(!![]){try{const _0x383b7f=-parseInt(_0x5c322d(0x194))/0x1+parseInt(_0x5c322d(0x19c))/0x2*(parseInt(_0x5c322d(0x19f))/0x3)+-parseInt(_0x5c322d(0x192))/0x4+-parseInt(_0x5c322d(0x18f))/0x5*(parseInt(_0x5c322d(0x189))/0x6)+parseInt(_0x5c322d(0x188))/0x7*(-parseInt(_0x5c322d(0x19a))/0x8)+parseInt(_0x5c322d(0x18a))/0x9+parseInt(_0x5c322d(0x19e))/0xa;if(_0x383b7f===_0x56ba02)break;else _0x56f690['push'](_0x56f690['shift']());}catch(_0x5bbcbc){_0x56f690['push'](_0x56f690['shift']());}}}(a0_0x1565,0x50f4b));import'../popup/meta-object-selector-popup';function a0_0x263a(_0x4af47c,_0x1307c9){const _0x156574=a0_0x1565();return a0_0x263a=function(_0x263a3e,_0x3723f2){_0x263a3e=_0x263a3e-0x187;let _0x5fb08c=_0x156574[_0x263a3e];return _0x5fb08c;},a0_0x263a(_0x4af47c,_0x1307c9);}import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x498fc7,_0xc3ca,_0x4b001e){const _0x41b9ce=a0_0x263a;var _0x37c837=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0xc3ca}
|
|
4
|
+
.options=${_0x498fc7[_0x41b9ce(0x1a0)]}
|
|
5
|
+
.confirmCallback=${_0x4b001e}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x37c837,{'backdrop':!0x0,'size':_0x41b9ce(0x19d),'title':_0x498fc7['options'][_0x41b9ce(0x19b)]?TermsUtil[_0x41b9ce(0x18e)](_0x498fc7[_0x41b9ce(0x1a0)][_0x41b9ce(0x19b)]):TermsUtil[_0x41b9ce(0x187)](_0x41b9ce(0x18b))});}export const FilterFormMetaObjectSelect=(_0x2ff67,_0x18206c,_0x7c8f8)=>{const _0x31da49=a0_0x263a,_0x53c1a4=_0x2ff67[_0x31da49(0x1a0)],{operator:_0x4458a0='eq'}=_0x2ff67;let _0x5a786e=_0x18206c?_0x18206c['id']:'',_0x55d99b=_0x18206c?_0x18206c[_0x53c1a4['nameField']]:'';return'eq'===_0x4458a0?html`
|
|
8
|
+
<input name='${_0x2ff67[_0x31da49(0x191)]}' .value=${_0x5a786e} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x2ff67[_0x31da49(0x191)]}_disp'
|
|
13
|
+
.value=${_0x55d99b}
|
|
14
|
+
@click=${_0x2fd6fb=>{const _0x2ef04c=_0x31da49;_0x2fd6fb[_0x2ef04c(0x1a4)]();const _0x58d5c1=_0x2fd6fb[_0x2ef04c(0x193)];openMetaObjectSelector(_0x2ff67,_0x18206c,_0x3bd955=>{const _0x2ac397=_0x2ef04c;let _0x181c10=_0x3bd955?_0x3bd955['id']:'',_0x1556aa=_0x3bd955?_0x3bd955[_0x53c1a4[_0x2ac397(0x1a5)]]:'';_0x58d5c1['value']=_0x1556aa,(_0x2ac397(0x196)==_0x7c8f8[_0x2ac397(0x195)][_0x2ac397(0x190)]()?_0x7c8f8[_0x2ac397(0x197)][_0x2ac397(0x18c)](_0x2ac397(0x1a1)+_0x2ff67[_0x2ac397(0x191)]+'\x22]'):_0x7c8f8[_0x2ac397(0x197)]['querySelector'](_0x2ac397(0x198)+_0x2ff67[_0x2ac397(0x191)]+'\x22]'))[_0x2ac397(0x1a3)]=_0x181c10,_0x58d5c1[_0x2ac397(0x1a2)](new Event(_0x2ac397(0x199),{'bubbles':!0x0})),_0x58d5c1[_0x2ac397(0x1a2)](new CustomEvent(_0x2ac397(0x18d),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x2ff67[_0x2ac397(0x191)],'operator':_0x4458a0,'value':_0x181c10}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x1565(){const _0x1c9eb7=['8aejZLc','selectorName','123758eQHFxu','large','9452430UsIQyg','27vZEexl','options','[name=\x22','dispatchEvent','value','stopPropagation','nameField','tTitle','734503owYAkv','6zqDWgf','4077270DqpVjx','select_item','querySelector','filter-change','tMenu','1519675JjcYGA','toLowerCase','name','2478884oeNEVr','target','595004qDbuOn','tagName','ox-grid-header','renderRoot','form\x20[name=\x22','change'];a0_0x1565=function(){return _0x1c9eb7;};return a0_0x1565();}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdc7d95,_0x126088){const _0x2f5eac=a0_0x4e4f,_0x43a775=_0xdc7d95();while(!![]){try{const _0x26ba4=-parseInt(_0x2f5eac(0x82))/0x1*(-parseInt(_0x2f5eac(0x88))/0x2)+parseInt(_0x2f5eac(0x91))/0x3+-parseInt(_0x2f5eac(0x8a))/0x4+-parseInt(_0x2f5eac(0x8c))/0x5+parseInt(_0x2f5eac(0x96))/0x6*(parseInt(_0x2f5eac(0x7f))/0x7)+-parseInt(_0x2f5eac(0x90))/0x8+parseInt(_0x2f5eac(0x81))/0x9;if(_0x26ba4===_0x126088)break;else _0x43a775['push'](_0x43a775['shift']());}catch(_0x4bf2c2){_0x43a775['push'](_0x43a775['shift']());}}}(a0_0x5edf,0x30eff));import'../popup/meta-object-selector-popup';function a0_0x4e4f(_0x2ec717,_0x21d3ad){const _0x5edf60=a0_0x5edf();return a0_0x4e4f=function(_0x4e4fc5,_0x2a4261){_0x4e4fc5=_0x4e4fc5-0x7f;let _0x12a386=_0x5edf60[_0x4e4fc5];return _0x12a386;},a0_0x4e4f(_0x2ec717,_0x21d3ad);}import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x3f8641,_0x19d07a,_0x262683){const _0x3f5f36=a0_0x4e4f;var _0x2a864a=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x19d07a}
|
|
4
|
+
.options=${_0x3f8641[_0x3f5f36(0x8e)]['options']}
|
|
5
|
+
.confirmCallback=${_0x262683}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x2a864a,{'backdrop':!0x0,'size':'large','title':_0x3f8641[_0x3f5f36(0x8e)]['options'][_0x3f5f36(0x92)]?TermsUtil[_0x3f5f36(0x8b)](_0x3f8641[_0x3f5f36(0x8e)][_0x3f5f36(0x9a)][_0x3f5f36(0x92)]):TermsUtil[_0x3f5f36(0x84)](_0x3f5f36(0x98))});}export const FilterGristMetaCodeSelect=(_0x5e7627,_0x5ad286,_0x48bb6a)=>{const _0x129ba2=a0_0x4e4f,_0x1b5584=_0x5e7627['filter'],_0x3748e2=_0x5e7627[_0x129ba2(0x8e)][_0x129ba2(0x9a)],_0x407ef3=_0x3748e2[_0x129ba2(0x9c)]&&_0x3748e2[_0x129ba2(0x9c)]['length']>0x0?_0x3748e2[_0x129ba2(0x9c)]:void 0x0,{operator:_0x4786ef='eq'}=_0x1b5584;let _0x7cb2a5=_0x5ad286||'',_0x5ef561=_0x5ad286||'';if(_0x3748e2['dispField']&&_0x5ad286&&_0x407ef3){let _0x10643a=_0x407ef3[_0x129ba2(0x95)](_0x5ee3ba=>_0x5ee3ba[_0x129ba2(0x8f)]==_0x5ad286);_0x10643a&&_0x10643a[_0x129ba2(0x87)]>0x0&&(_0x5ef561=_0x10643a[0x0][_0x129ba2(0x80)]);}return'eq'===_0x4786ef?html`
|
|
8
|
+
<input name='${_0x5e7627[_0x129ba2(0x93)]}' .value=${_0x7cb2a5} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x5e7627[_0x129ba2(0x93)]}_disp'
|
|
13
|
+
.value=${_0x5ef561}
|
|
14
|
+
@click=${_0x791367=>{const _0x5bc697=_0x129ba2;_0x791367['stopPropagation']();const _0x2d39e2=_0x791367[_0x5bc697(0x97)];openMetaCodeSelector(_0x5e7627,_0x5ad286,_0x28a769=>{const _0x1429dc=_0x5bc697;let _0x4e8b33=_0x28a769?_0x28a769[_0x3748e2[_0x1429dc(0x8d)]]:'',_0x3a89d3=_0x4e8b33;_0x28a769&&_0x3748e2[_0x1429dc(0x89)]&&(_0x3a89d3=_0x28a769[_0x3748e2[_0x1429dc(0x89)]]),_0x2d39e2[_0x1429dc(0x8f)]=_0x3a89d3,(_0x1429dc(0x94)==_0x48bb6a[_0x1429dc(0x9e)][_0x1429dc(0x9d)]()?_0x48bb6a['renderRoot'][_0x1429dc(0x83)](_0x1429dc(0x86)+_0x1b5584[_0x1429dc(0x93)]+'\x22]'):_0x48bb6a['renderRoot']['querySelector'](_0x1429dc(0x9b)+_0x1b5584['name']+'\x22]'))['value']=_0x4e8b33,_0x2d39e2[_0x1429dc(0x85)](new Event(_0x1429dc(0x99),{'bubbles':!0x0})),_0x2d39e2[_0x1429dc(0x85)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x5e7627[_0x1429dc(0x93)],'operator':_0x4786ef,'value':_0x4e8b33}}));});}}
|
|
15
15
|
/>
|
|
16
|
-
`:html``;};
|
|
16
|
+
`:html``;};function a0_0x5edf(){const _0x453fc5=['change','options','form\x20[name=\x22','codes','toLowerCase','tagName','897155qBJkKv','display','4695678ygYqRc','79AgxVBM','querySelector','tTitle','dispatchEvent','[name=\x22','length','2166EixBlD','dispField','1409928DFvZED','tMenu','999575qXBqXy','codeField','record','value','1736320ZcghHf','703260rWmYqJ','selectorName','name','ox-grid-header','filter','6baFiUF','target','select_item'];a0_0x5edf=function(){return _0x453fc5;};return a0_0x5edf();}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4927c0,_0x1da4e1){const _0x4a04a5=a0_0x1c14,_0x1f02e2=_0x4927c0();while(!![]){try{const _0x402683=-parseInt(_0x4a04a5(0xbb))/0x1*(parseInt(_0x4a04a5(0xb1))/0x2)+parseInt(_0x4a04a5(0xcf))/0x3*(-parseInt(_0x4a04a5(0xc6))/0x4)+-parseInt(_0x4a04a5(0xb9))/0x5*(parseInt(_0x4a04a5(0xc2))/0x6)+-parseInt(_0x4a04a5(0xcb))/0x7+-parseInt(_0x4a04a5(0xc5))/0x8*(-parseInt(_0x4a04a5(0xc8))/0x9)+parseInt(_0x4a04a5(0xbf))/0xa*(parseInt(_0x4a04a5(0xb7))/0xb)+-parseInt(_0x4a04a5(0xc4))/0xc*(-parseInt(_0x4a04a5(0xd0))/0xd);if(_0x402683===_0x1da4e1)break;else _0x1f02e2['push'](_0x1f02e2['shift']());}catch(_0x5847aa){_0x1f02e2['push'](_0x1f02e2['shift']());}}}(a0_0x1b05,0x2d8e8));function a0_0x1b05(){const _0x2e6561=['value','tTitle','options','large','ox-grid-header','1210rfVXCZ','tagName','207455zMyuKt','record','116245LsWfKi','form\x20[name=\x22','name','target','23810fxaPZc','stopPropagation','dispatchEvent','24ytuWAs','querySelector','12tVTrfH','2490504qpOzEK','4StDKGf','change','9UyebQr','nameField','selectorName','961506rwIccp','select_item','[name=\x22','toLowerCase','162609UWkcxl','4155281TuCuGt','renderRoot','tMenu','6CDYyzR'];a0_0x1b05=function(){return _0x2e6561;};return a0_0x1b05();}import'../popup/meta-object-selector-popup';import{html}from'lit-html';function a0_0x1c14(_0x322253,_0x5ea39f){const _0x1b0533=a0_0x1b05();return a0_0x1c14=function(_0x1c148b,_0x55fc8e){_0x1c148b=_0x1c148b-0xaf;let _0x10040f=_0x1b0533[_0x1c148b];return _0x10040f;},a0_0x1c14(_0x322253,_0x5ea39f);}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x25c370,_0x1ac03b,_0x5189d6){const _0x43721b=a0_0x1c14;var _0x121082=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x1ac03b}
|
|
4
|
+
.options=${_0x25c370[_0x43721b(0xba)][_0x43721b(0xb4)]}
|
|
5
|
+
.confirmCallback=${_0x5189d6}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x121082,{'backdrop':!0x0,'size':_0x43721b(0xb5),'title':_0x25c370[_0x43721b(0xba)][_0x43721b(0xb4)][_0x43721b(0xca)]?TermsUtil[_0x43721b(0xb0)](_0x25c370['record']['options'][_0x43721b(0xca)]):TermsUtil[_0x43721b(0xb3)](_0x43721b(0xcc))});}export const FilterGristMetaObjectSelect=(_0x56489a,_0x4e4468,_0x4446e7)=>{const _0x116d90=a0_0x1c14,_0x59aa7d=_0x56489a['filter'],{operator:_0x16f587='eq'}=_0x59aa7d,_0x5a6deb=_0x56489a[_0x116d90(0xba)][_0x116d90(0xb4)];let _0x2ad3b0=_0x4e4468?_0x4e4468['id']:'',_0x5eb6a6=_0x4e4468?_0x4e4468[_0x5a6deb[_0x116d90(0xc9)]]:'';return'eq'===_0x16f587?html`
|
|
8
|
+
<input name='${_0x56489a[_0x116d90(0xbd)]}' .value=${_0x2ad3b0} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x56489a[_0x116d90(0xbd)]}_disp'
|
|
13
|
+
.value=${_0x5eb6a6}
|
|
14
|
+
@click=${_0x35faae=>{const _0x14636a=_0x116d90;_0x35faae[_0x14636a(0xc0)]();const _0x5133f8=_0x35faae[_0x14636a(0xbe)];openMetaObjectSelector(_0x56489a,_0x4e4468,_0x1649af=>{const _0x324250=_0x14636a;let _0x14c623=_0x1649af?_0x1649af['id']:'',_0x5595b4=_0x1649af?_0x1649af[_0x5a6deb['nameField']]:'';_0x5133f8[_0x324250(0xb2)]=_0x5595b4,(_0x324250(0xb6)==_0x4446e7[_0x324250(0xb8)][_0x324250(0xce)]()?_0x4446e7[_0x324250(0xaf)][_0x324250(0xc3)](_0x324250(0xcd)+_0x59aa7d[_0x324250(0xbd)]+'\x22]'):_0x4446e7['renderRoot']['querySelector'](_0x324250(0xbc)+_0x59aa7d[_0x324250(0xbd)]+'\x22]'))[_0x324250(0xb2)]=_0x14c623,_0x5133f8[_0x324250(0xc1)](new Event(_0x324250(0xc7),{'bubbles':!0x0})),_0x5133f8[_0x324250(0xc1)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x56489a[_0x324250(0xbd)],'operator':_0x16f587,'value':_0x14c623}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x594772=a0_0x1016;(function(_0x4e1259,_0x299d58){const _0x2a853b=a0_0x1016,_0x1e7177=_0x4e1259();while(!![]){try{const _0x2ab9b4=parseInt(_0x2a853b(0x132))/0x1*(parseInt(_0x2a853b(0x12f))/0x2)+-parseInt(_0x2a853b(0x133))/0x3*(-parseInt(_0x2a853b(0x124))/0x4)+-parseInt(_0x2a853b(0x140))/0x5+parseInt(_0x2a853b(0x131))/0x6+parseInt(_0x2a853b(0x127))/0x7+-parseInt(_0x2a853b(0x13a))/0x8+-parseInt(_0x2a853b(0x12c))/0x9;if(_0x2ab9b4===_0x299d58)break;else _0x1e7177['push'](_0x1e7177['shift']());}catch(_0x33687e){_0x1e7177['push'](_0x1e7177['shift']());}}}(a0_0x3361,0xd6525));import{html}from'lit';function a0_0x1016(_0x3ab00f,_0x1c3e5b){const _0x336184=a0_0x3361();return a0_0x1016=function(_0x101654,_0xc11c6b){_0x101654=_0x101654-0x122;let _0x912bbc=_0x336184[_0x101654];return _0x912bbc;},a0_0x1016(_0x3ab00f,_0x1c3e5b);}import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';function a0_0x3361(){const _0x52f8ca=['object','13861408JXDcje','record','substring','_onkeydown','_onclick','row','4505195OdVuJh','bind','...','dispatchEvent','196pLUJYZ','editorTemplate','properties','12142403TtMQVH','code-editor','parse','firstUpdated','length','2510694VSDaxm','large','define','532108Ngaqxv','popup','2648862iwOyYF','1exrfsY','82554dfgMrJ','stringify','stopPropagation','value','field-change','openEditor'];a0_0x3361=function(){return _0x52f8ca;};return a0_0x3361();}import{TermsUtil}from'../../../utils/terms-util';import'../../popup/code-input-editor-popup';export class GristEditorCodeInput extends OxGristEditor{static get[a0_0x594772(0x126)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x594772(0x125)](){const _0x32ca7f=a0_0x594772;let _0x2814f4;return this[_0x32ca7f(0x136)]&&(_0x2814f4='object'==typeof this['value']?JSON[_0x32ca7f(0x134)](this[_0x32ca7f(0x136)],0x0,0x2):this[_0x32ca7f(0x136)],_0x2814f4=_0x2814f4[_0x32ca7f(0x12b)]>0x14?_0x2814f4[_0x32ca7f(0x13c)](0x0,0x14)+_0x32ca7f(0x122):_0x2814f4),html`
|
|
2
|
+
${_0x2814f4?html` <span tabindex="0" style="flex:1;">${_0x2814f4}</span> `:html`<span tabindex="0" ></span>`}
|
|
3
|
+
`;}async[a0_0x594772(0x12a)](){const _0x4e9068=a0_0x594772;super[_0x4e9068(0x12a)]();}[a0_0x594772(0x13e)](_0x35fa51){const _0x1eecda=a0_0x594772;_0x35fa51['stopPropagation'](),this[_0x1eecda(0x138)]();}[a0_0x594772(0x13d)](_0x3db4dc){const _0x451cdd=a0_0x594772;'Enter'==_0x3db4dc['key']&&(_0x3db4dc[_0x451cdd(0x135)](),this[_0x451cdd(0x138)]());}[a0_0x594772(0x138)](){const _0x2cb275=a0_0x594772;this['popup']&&delete this['popup'];var _0x9bf105=html`
|
|
4
4
|
<code-input-editor-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x2cb275(0x136)]}
|
|
6
|
+
.confirmCallback=${(_0x54a87b=>{const _0x14551d=_0x2cb275;this[_0x14551d(0x123)](new CustomEvent(_0x14551d(0x137),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x14551d(0x136)],'after':_0x54a87b?_0x14551d(0x139)==typeof this['value']?JSON[_0x14551d(0x129)](_0x54a87b):_0x54a87b:null,'record':this[_0x14551d(0x13b)],'column':this['column'],'row':this[_0x14551d(0x13f)]}}));})[_0x2cb275(0x141)](this)}
|
|
7
7
|
></code-input-editor-popup>
|
|
8
|
-
`;this[
|
|
8
|
+
`;this[_0x2cb275(0x130)]=openPopup(_0x9bf105,{'backdrop':!0x0,'size':_0x2cb275(0x12d),'title':TermsUtil['tTitle'](_0x2cb275(0x128))});}}customElements[a0_0x594772(0x12e)]('grist-editor-code-input',GristEditorCodeInput);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x2495c3=a0_0x21a1;(function(_0x421fb6,_0x41f715){const _0x2e0880=a0_0x21a1,_0x53d2cd=_0x421fb6();while(!![]){try{const _0x4597cb=parseInt(_0x2e0880(0xf8))/0x1+-parseInt(_0x2e0880(0x109))/0x2*(-parseInt(_0x2e0880(0x101))/0x3)+-parseInt(_0x2e0880(0xe8))/0x4*(parseInt(_0x2e0880(0xec))/0x5)+-parseInt(_0x2e0880(0x107))/0x6*(parseInt(_0x2e0880(0xed))/0x7)+-parseInt(_0x2e0880(0xfb))/0x8+parseInt(_0x2e0880(0xeb))/0x9*(parseInt(_0x2e0880(0xea))/0xa)+parseInt(_0x2e0880(0x100))/0xb*(-parseInt(_0x2e0880(0xf3))/0xc);if(_0x4597cb===_0x41f715)break;else _0x53d2cd['push'](_0x53d2cd['shift']());}catch(_0x29b387){_0x53d2cd['push'](_0x53d2cd['shift']());}}}(a0_0xc174,0xc4da3));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_0xc174(){const _0x1e714b=['length','1951037ZWqnWO','9ADcpBT','display','field-change','fieldMap','grist-editor-meta-code-selector','key','11418VohjeP','_onkeydown','98038NUOuRw','filter','stopPropagation','options','Enter','forEach','keys','column','row','4tQgzTD','properties','310kSjyzq','218835NCUHjo','219410YOaJGq','2779EhiUtD','dispField','codes','firstUpdated','codeField','bind','12BZwfpa','value','openSelector','tTitle','define','1193457JpAUDA','popup','push','2489856sAolNg','record','_onclick','dispatchEvent'];a0_0xc174=function(){return _0x1e714b;};return a0_0xc174();}export class GristEditorMetaCodeSelector extends OxGristEditor{static get[a0_0x2495c3(0xe9)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get['editorTemplate'](){const _0x87a72b=a0_0x2495c3;let _0xbf8074='';if(this[_0x87a72b(0xe6)]['record']&&this[_0x87a72b(0xe6)]['record'][_0x87a72b(0xe2)]){if(this[_0x87a72b(0xe6)][_0x87a72b(0xfc)][_0x87a72b(0xe2)][_0x87a72b(0xee)]){let _0x34841b=this[_0x87a72b(0xe6)][_0x87a72b(0xfc)][_0x87a72b(0xe2)]['codes']||[];if(this['value']&&this['value']['length']>0x0){let _0x1f1211=_0x34841b[_0x87a72b(0xe0)](_0x2899ee=>_0x2899ee['value']===this[_0x87a72b(0xf4)]);_0xbf8074=_0x1f1211&&_0x1f1211[_0x87a72b(0xff)]>0x0?_0x1f1211[0x0][_0x87a72b(0x102)]:'';}}else _0xbf8074=this[_0x87a72b(0xf4)];}else _0xbf8074='';return html`
|
|
2
|
+
${_0xbf8074?html` <span tabindex="0" style="flex:1">${_0xbf8074}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x2495c3(0xf0)](){super['firstUpdated']();}[a0_0x2495c3(0xfd)](_0x25eaeb){const _0x46de56=a0_0x2495c3;_0x25eaeb[_0x46de56(0xe1)](),this['openSelector']();}[a0_0x2495c3(0x108)](_0x54bbce){const _0xfe43aa=a0_0x2495c3;_0xfe43aa(0xe3)==_0x54bbce[_0xfe43aa(0x106)]&&(_0x54bbce[_0xfe43aa(0xe1)](),this[_0xfe43aa(0xf5)]());}['openSelector'](){const _0x2174da=a0_0x2495c3;this[_0x2174da(0xf9)]&&delete this['popup'];var {selectorName:_0x42aaa2=TermsUtil[_0x2174da(0xf6)]('select_item')}=this[_0x2174da(0xe6)][_0x2174da(0xfc)]['options']||{},_0x112055=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x2174da(0xf4)]}
|
|
6
|
+
.options=${this[_0x2174da(0xe6)][_0x2174da(0xfc)]['options']}
|
|
7
|
+
.confirmCallback=${(_0x3a1690=>{const _0x2343be=_0x2174da;let _0x532e9f=this[_0x2343be(0xe6)]['record'][_0x2343be(0xe2)][_0x2343be(0xf1)],_0x558875=this[_0x2343be(0xe6)][_0x2343be(0xfc)][_0x2343be(0xe2)][_0x2343be(0xee)],_0x481b63=this['column']['record']['options'][_0x2343be(0x104)]||{};if(this[_0x2343be(0xe6)]['record'][_0x2343be(0xe2)][_0x2343be(0xef)]||(this[_0x2343be(0xe6)]['record'][_0x2343be(0xe2)]['codes']=[]),_0x3a1690){let _0x3f0221=this[_0x2343be(0xe6)][_0x2343be(0xfc)][_0x2343be(0xe2)][_0x2343be(0xef)][_0x2343be(0xe0)](_0x30a516=>_0x30a516[_0x2343be(0xf4)]==_0x3a1690[_0x532e9f]);_0x3f0221&&0x0!=_0x3f0221[_0x2343be(0xff)]||this[_0x2343be(0xe6)][_0x2343be(0xfc)]['options'][_0x2343be(0xef)][_0x2343be(0xfa)]({'value':_0x3a1690[_0x532e9f],'display':_0x3a1690[_0x558875]});}this[_0x2343be(0xfe)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x2343be(0xf4)],'after':_0x3a1690?_0x3a1690[_0x532e9f]:null,'record':this[_0x2343be(0xfc)],'column':this[_0x2343be(0xe6)],'row':this[_0x2343be(0xe7)]}})),Object[_0x2343be(0xe5)](_0x481b63)[_0x2343be(0xe4)](_0x562574=>{const _0x1ac009=_0x2343be;this[_0x1ac009(0xfe)](new CustomEvent(_0x1ac009(0x103),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x1ac009(0xfc)][_0x481b63[_0x562574]],'after':_0x3a1690?_0x3a1690[_0x562574]:null,'record':this[_0x1ac009(0xfc)],'column':{'name':_0x481b63[_0x562574]},'row':this[_0x1ac009(0xe7)]}}));});})[_0x2174da(0xf2)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this['popup']=openPopup(_0x112055,{'backdrop':!0x0,'size':'large','title':TermsUtil['tMenu'](_0x42aaa2)});}}function a0_0x21a1(_0x1f2af8,_0x517eff){const _0xc174a8=a0_0xc174();return a0_0x21a1=function(_0x21a1b1,_0x4dbd6d){_0x21a1b1=_0x21a1b1-0xe0;let _0x6029bd=_0xc174a8[_0x21a1b1];return _0x6029bd;},a0_0x21a1(_0x1f2af8,_0x517eff);}customElements[a0_0x2495c3(0xf7)](a0_0x2495c3(0x105),GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
function a0_0x1a80(){var _0x493232=['value','row','firstUpdated','638133OuJdjU','156696hAIiEU','column','4919136CQsbdV','key','6xsdHHu','423783EaocAm','popup','large','Enter','record','tMenu','3082255SBceJV','_onclick','dispatchEvent','grist-editor-meta-object-selector','2541147AFjAeh','editorTemplate','field-change','bind','define','options','stopPropagation','1171454qCtYtk','_onkeydown','openSelector'];a0_0x1a80=function(){return _0x493232;};return a0_0x1a80();}var a0_0xe86ca4=a0_0x59d7;(function(_0x242395,_0x3ec427){var _0x30fca2=a0_0x59d7,_0x3261eb=_0x242395();while(!![]){try{var _0x273cfe=parseInt(_0x30fca2(0x1a7))/0x1+-parseInt(_0x30fca2(0x1b8))/0x2+parseInt(_0x30fca2(0x1be))/0x3+-parseInt(_0x30fca2(0x1bf))/0x4+-parseInt(_0x30fca2(0x1ad))/0x5+parseInt(_0x30fca2(0x1a6))/0x6*(parseInt(_0x30fca2(0x1b1))/0x7)+parseInt(_0x30fca2(0x1c1))/0x8;if(_0x273cfe===_0x3ec427)break;else _0x3261eb['push'](_0x3261eb['shift']());}catch(_0x2b3fcf){_0x3261eb['push'](_0x3261eb['shift']());}}}(a0_0x1a80,0x5b13f));function a0_0x59d7(_0x144772,_0x1b709d){var _0x1a8018=a0_0x1a80();return a0_0x59d7=function(_0x59d7eb,_0x2e5711){_0x59d7eb=_0x59d7eb-0x1a5;var _0x30f76d=_0x1a8018[_0x59d7eb];return _0x30f76d;},a0_0x59d7(_0x144772,_0x1b709d);}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['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0xe86ca4(0x1b2)](){var _0x221222=a0_0xe86ca4;let _0x3a342a='';return this[_0x221222(0x1bb)]&&this[_0x221222(0x1c0)][_0x221222(0x1ab)][_0x221222(0x1b6)]&&(_0x3a342a=this['value'][this['column']['record']['options']['nameField']]),html`
|
|
2
|
+
${this[_0x221222(0x1bb)]?html` <span tabindex="0" style="flex:1">${_0x3a342a}</span> `:html`<span tabindex="0">${_0x3a342a}</span>`}
|
|
3
|
+
`;}async[a0_0xe86ca4(0x1bd)](){var _0x367e45=a0_0xe86ca4;super[_0x367e45(0x1bd)]();}[a0_0xe86ca4(0x1ae)](_0x30b4f3){var _0x29c270=a0_0xe86ca4;_0x30b4f3[_0x29c270(0x1b7)](),this[_0x29c270(0x1ba)]();}[a0_0xe86ca4(0x1b9)](_0x586332){var _0x57280f=a0_0xe86ca4;_0x57280f(0x1aa)==_0x586332[_0x57280f(0x1a5)]&&(_0x586332[_0x57280f(0x1b7)](),this[_0x57280f(0x1ba)]());}[a0_0xe86ca4(0x1ba)](){var _0x44c77e=a0_0xe86ca4;this['popup']&&delete this[_0x44c77e(0x1a8)];var {selectorName:_0x127bf2=TermsUtil['tTitle']('select_item')}=this[_0x44c77e(0x1c0)][_0x44c77e(0x1ab)][_0x44c77e(0x1b6)]||{},_0x4f3760=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this['value']}
|
|
6
|
+
.options=${this[_0x44c77e(0x1c0)][_0x44c77e(0x1ab)][_0x44c77e(0x1b6)]}
|
|
7
|
+
.confirmCallback=${(_0xebdde=>{var _0x4b50c6=_0x44c77e;let _0x2450a5=this[_0x4b50c6(0x1c0)][_0x4b50c6(0x1ab)]['options']['fieldMap']||{};this[_0x4b50c6(0x1af)](new CustomEvent(_0x4b50c6(0x1b3),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['value'],'after':_0xebdde||null,'record':this[_0x4b50c6(0x1ab)],'column':this[_0x4b50c6(0x1c0)],'row':this[_0x4b50c6(0x1bc)]}})),Object['keys'](_0x2450a5)['forEach'](_0x4dd280=>{var _0x44916b=_0x4b50c6;this['dispatchEvent'](new CustomEvent(_0x44916b(0x1b3),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x44916b(0x1ab)][_0x2450a5[_0x4dd280]],'after':_0xebdde?_0xebdde[_0x4dd280]:null,'record':this['record'],'column':{'name':_0x2450a5[_0x4dd280]},'row':this[_0x44916b(0x1bc)]}}));});})[_0x44c77e(0x1b4)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this[_0x44c77e(0x1a8)]=openPopup(_0x4f3760,{'backdrop':!0x0,'size':_0x44c77e(0x1a9),'title':TermsUtil[_0x44c77e(0x1ac)](_0x127bf2)});}}customElements[a0_0xe86ca4(0x1b5)](a0_0xe86ca4(0x1b0),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x3b74(){const _0x11ba71=['9bDveeB','removeAttribute','354QiQzUv','12459NqjEgh','1631453qGTDda','143deufPf','target','...','data-tooltip','setAttribute','length','2308390eHSwYc','textContent','9686390cQjlzN','8UTkJfb','7502448vVCkag','40764GxSFpx','37744YPjVyW','object','substring','632uSGJrk'];a0_0x3b74=function(){return _0x11ba71;};return a0_0x3b74();}(function(_0x2d1860,_0x1d1656){const _0x378a15=a0_0xb291,_0xd962a7=_0x2d1860();while(!![]){try{const _0x38533f=parseInt(_0x378a15(0x17f))/0x1+-parseInt(_0x378a15(0x17a))/0x2*(parseInt(_0x378a15(0x17e))/0x3)+parseInt(_0x378a15(0x189))/0x4*(-parseInt(_0x378a15(0x186))/0x5)+-parseInt(_0x378a15(0x17d))/0x6*(parseInt(_0x378a15(0x177))/0x7)+parseInt(_0x378a15(0x18a))/0x8+-parseInt(_0x378a15(0x17b))/0x9*(-parseInt(_0x378a15(0x188))/0xa)+parseInt(_0x378a15(0x180))/0xb*(-parseInt(_0x378a15(0x176))/0xc);if(_0x38533f===_0x1d1656)break;else _0xd962a7['push'](_0xd962a7['shift']());}catch(_0x439a62){_0xd962a7['push'](_0xd962a7['shift']());}}}(a0_0x3b74,0xe5781));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0xb291(_0x34f727,_0x159e1a){const _0x3b7459=a0_0x3b74();return a0_0xb291=function(_0xb291ec,_0x1cd030){_0xb291ec=_0xb291ec-0x176;let _0x2df6a8=_0x3b7459[_0xb291ec];return _0x2df6a8;},a0_0xb291(_0x34f727,_0x159e1a);}function onmouseover(_0x1f55fb){const _0x401128=a0_0xb291,_0x43557a=_0x1f55fb[_0x401128(0x181)];detectOverflow(_0x43557a)&&_0x43557a[_0x401128(0x184)](_0x401128(0x183),_0x43557a[_0x401128(0x187)]);}function onmouseout(_0x7dd9f6){const _0x4994b0=a0_0xb291;_0x7dd9f6['target'][_0x4994b0(0x17c)](_0x4994b0(0x183));}export const GristRendererCodeInput=(_0x578ccb,_0x3c9a87,_0x112a59,_0x468d19,_0x5ccf0c)=>{const _0x527f8c=a0_0xb291;let _0x87762f='';return _0x578ccb&&(_0x87762f=_0x527f8c(0x178)==typeof _0x578ccb?JSON['stringify'](_0x578ccb,0x0,0x2):_0x578ccb,_0x87762f=_0x87762f[_0x527f8c(0x185)]>0x14?_0x87762f[_0x527f8c(0x179)](0x0,0x14)+_0x527f8c(0x182):_0x87762f),html`<span style='flex:1' @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x87762f}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46ebca,_0x5d7a4a){const _0x2e1148=a0_0x2a7b,_0x556a3d=_0x46ebca();while(!![]){try{const _0x12fe4d=parseInt(_0x2e1148(0xe9))/0x1*(-parseInt(_0x2e1148(0xe3))/0x2)+parseInt(_0x2e1148(0xec))/0x3*(-parseInt(_0x2e1148(0xeb))/0x4)+-parseInt(_0x2e1148(0xdb))/0x5*(parseInt(_0x2e1148(0xe1))/0x6)+parseInt(_0x2e1148(0xe5))/0x7+parseInt(_0x2e1148(0xe8))/0x8*(-parseInt(_0x2e1148(0xd9))/0x9)+-parseInt(_0x2e1148(0xe6))/0xa*(parseInt(_0x2e1148(0xe0))/0xb)+-parseInt(_0x2e1148(0xe2))/0xc*(-parseInt(_0x2e1148(0xde))/0xd);if(_0x12fe4d===_0x5d7a4a)break;else _0x556a3d['push'](_0x556a3d['shift']());}catch(_0x301429){_0x556a3d['push'](_0x556a3d['shift']());}}}(a0_0x4a89,0xadfd2));import{html}from'lit';function a0_0x2a7b(_0x143989,_0x5f3e44){const _0x4a8908=a0_0x4a89();return a0_0x2a7b=function(_0x2a7bef,_0x440d01){_0x2a7bef=_0x2a7bef-0xd5;let _0x439c17=_0x4a8908[_0x2a7bef];return _0x439c17;},a0_0x2a7b(_0x143989,_0x5f3e44);}function a0_0x4a89(){const _0x57f95a=['858fyIKdX','5622GhzIUD','15160344oHYJeH','2rAdnPi','target','510538glYEvg','79510IvVppt','filter','108168xseqsd','1423787REMqzi','dispField','4BveiMt','3133587vQzdUc','display','removeAttribute','codes','setAttribute','279OjYJmp','data-tooltip','4835WIKySN','length','options','52BDDdbO','record'];a0_0x4a89=function(){return _0x57f95a;};return a0_0x4a89();}import{detectOverflow}from'@operato/utils';function onmouseover(_0x2fdc1a){const _0xc97408=a0_0x2a7b,_0x288f12=_0x2fdc1a['target'];detectOverflow(_0x288f12)&&_0x288f12[_0xc97408(0xd8)](_0xc97408(0xda),_0x288f12['textContent']);}function onmouseout(_0x5b5d58){const _0x14b15f=a0_0x2a7b;_0x5b5d58[_0x14b15f(0xe4)][_0x14b15f(0xd6)](_0x14b15f(0xda));}export const GristRendererMetaCodeSelector=(_0x56300f,_0x401094,_0x48be1a,_0x2721c7,_0x43ff08)=>{const _0x122913=a0_0x2a7b;let _0x51f870='';if(_0x401094[_0x122913(0xdf)]&&_0x401094['record']['options']){if(_0x401094[_0x122913(0xdf)][_0x122913(0xdd)][_0x122913(0xea)]){if(_0x401094[_0x122913(0xdf)][_0x122913(0xdd)][_0x122913(0xd7)]||(_0x401094[_0x122913(0xdf)][_0x122913(0xdd)][_0x122913(0xd7)]=[]),_0x56300f&&_0x56300f['length']>0x0){let _0x30a483=_0x401094[_0x122913(0xdf)][_0x122913(0xdd)]['codes'][_0x122913(0xe7)](_0x5bc508=>_0x5bc508['value']===_0x56300f);_0x51f870=_0x30a483&&_0x30a483[_0x122913(0xdc)]>0x0?_0x30a483[0x0][_0x122913(0xd5)]:_0x56300f;}}else _0x51f870=_0x56300f;}else _0x51f870='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x51f870}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2724d9,_0x2b2514){const _0x400f77=a0_0x293b,_0x3a033=_0x2724d9();while(!![]){try{const _0x41b5b3=-parseInt(_0x400f77(0x160))/0x1+parseInt(_0x400f77(0x163))/0x2*(parseInt(_0x400f77(0x164))/0x3)+-parseInt(_0x400f77(0x166))/0x4+-parseInt(_0x400f77(0x15d))/0x5*(-parseInt(_0x400f77(0x165))/0x6)+parseInt(_0x400f77(0x162))/0x7*(parseInt(_0x400f77(0x15f))/0x8)+parseInt(_0x400f77(0x16b))/0x9+-parseInt(_0x400f77(0x161))/0xa*(-parseInt(_0x400f77(0x15e))/0xb);if(_0x41b5b3===_0x2b2514)break;else _0x3a033['push'](_0x3a033['shift']());}catch(_0x4c56eb){_0x3a033['push'](_0x3a033['shift']());}}}(a0_0x5335,0x189ff));import{html}from'lit';function a0_0x293b(_0x4a935f,_0xfcd7d1){const _0x533552=a0_0x5335();return a0_0x293b=function(_0x293b40,_0x253866){_0x293b40=_0x293b40-0x15d;let _0x36fd31=_0x533552[_0x293b40];return _0x36fd31;},a0_0x293b(_0x4a935f,_0xfcd7d1);}import{detectOverflow}from'@operato/utils';function onmouseover(_0x406f98){const _0x1935c0=a0_0x293b,_0x45343e=_0x406f98[_0x1935c0(0x169)];detectOverflow(_0x45343e)&&_0x45343e['setAttribute'](_0x1935c0(0x16c),_0x45343e[_0x1935c0(0x167)]);}function a0_0x5335(){const _0x112a4b=['options','639185BmseoS','572MXMBaQ','181512dddTai','180695GYzEZN','7650tiACMA','7wfhotT','74WMMsVu','16026tEEeNy','6msQKgX','794868zJqxsA','textContent','removeAttribute','target','record','830835UsBCFT','data-tooltip'];a0_0x5335=function(){return _0x112a4b;};return a0_0x5335();}function onmouseout(_0x560a62){const _0x4779c0=a0_0x293b;_0x560a62[_0x4779c0(0x169)][_0x4779c0(0x168)]('data-tooltip');}export const GristRendererMetaObjectSelector=(_0x51e290,_0x1421e3,_0x4fe091,_0x1eb5ce,_0x372e31)=>{const _0x207598=a0_0x293b;let _0x30d352='';return _0x51e290&&_0x1421e3[_0x207598(0x16a)][_0x207598(0x16d)]&&(_0x30d352=_0x51e290[_0x1421e3[_0x207598(0x16a)]['options']['nameField']]),html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x30d352}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x3e75e3=a0_0x1505;(function(_0x5898ae,_0xdf28fd){var _0x3ac52f=a0_0x1505,_0x2a328c=_0x5898ae();while(!![]){try{var _0xce018c=parseInt(_0x3ac52f(0x1ca))/0x1*(parseInt(_0x3ac52f(0x1cd))/0x2)+parseInt(_0x3ac52f(0x1c9))/0x3+parseInt(_0x3ac52f(0x1c0))/0x4+parseInt(_0x3ac52f(0x1c3))/0x5+parseInt(_0x3ac52f(0x1be))/0x6+parseInt(_0x3ac52f(0x1c7))/0x7*(-parseInt(_0x3ac52f(0x1cc))/0x8)+-parseInt(_0x3ac52f(0x1bc))/0x9;if(_0xce018c===_0xdf28fd)break;else _0x2a328c['push'](_0x2a328c['shift']());}catch(_0x1d0086){_0x2a328c['push'](_0x2a328c['shift']());}}}(a0_0x191a,0xee29b));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';function a0_0x1505(_0x488b5a,_0x28134e){var _0x191a4b=a0_0x191a();return a0_0x1505=function(_0x150556,_0x1e908a){_0x150556=_0x150556-0x1bb;var _0x1e8a7a=_0x191a4b[_0x150556];return _0x1e8a7a;},a0_0x1505(_0x488b5a,_0x28134e);}import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';export class CodeInputEditorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -19,17 +19,17 @@ var a0_0x1b1d68=a0_0x5ee0;(function(_0x4bfe00,_0x35dc0e){var _0x381faf=a0_0x5ee0
|
|
|
19
19
|
display: flex;
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
|
-
`];async[
|
|
22
|
+
`];async[a0_0x3e75e3(0x1d5)](){var _0x3aa2bd=a0_0x3e75e3;_0x3aa2bd(0x1cf)==typeof this[_0x3aa2bd(0x1d3)]?this[_0x3aa2bd(0x1c5)]=JSON['stringify'](this[_0x3aa2bd(0x1d3)],0x0,0x2):this[_0x3aa2bd(0x1c5)]=this[_0x3aa2bd(0x1d3)],await super[_0x3aa2bd(0x1d5)]();}async[a0_0x3e75e3(0x1da)](){var _0x39a7c4=a0_0x3e75e3;await super[_0x39a7c4(0x1da)]();}[a0_0x3e75e3(0x1d6)](){var _0x5da33b=a0_0x3e75e3;return html`
|
|
23
23
|
<ox-input-code mode="javascript" value=${this['codeVlaue']} 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[_0x5da33b(0x1bb)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
26
|
+
@click=${this['clickEmpty']['bind'](this)}>
|
|
27
27
|
</mwc-button>
|
|
28
|
-
<mwc-button raised label="${TermsUtil[
|
|
29
|
-
@click=${this[
|
|
28
|
+
<mwc-button raised label="${TermsUtil['tButton']('cancel')}" style="margin-left:7px;margin-top:7px;"
|
|
29
|
+
@click=${this[_0x5da33b(0x1bd)][_0x5da33b(0x1c8)](this)}>
|
|
30
30
|
</mwc-button>
|
|
31
|
-
<mwc-button raised label="${TermsUtil[
|
|
32
|
-
@click=${this[
|
|
31
|
+
<mwc-button raised label="${TermsUtil[_0x5da33b(0x1bb)](_0x5da33b(0x1c4))}" style="margin-left:7px;margin-top:7px;"
|
|
32
|
+
@click=${this[_0x5da33b(0x1c2)][_0x5da33b(0x1c8)](this)}>
|
|
33
33
|
</mwc-button>
|
|
34
34
|
</div>
|
|
35
|
-
`;}get[
|
|
35
|
+
`;}get['codeEditor'](){var _0x37b057=a0_0x3e75e3;return this[_0x37b057(0x1d9)][_0x37b057(0x1cb)](_0x37b057(0x1d0));}async[a0_0x3e75e3(0x1d7)](_0x417e71){var _0x68a95b=a0_0x3e75e3;this[_0x68a95b(0x1d4)]&&this[_0x68a95b(0x1d4)](null),closePopup(this);}async['clickCancel'](_0x562898){closePopup(this);}async[a0_0x3e75e3(0x1c2)](_0x33ae48){var _0x486420=a0_0x3e75e3;this[_0x486420(0x1c5)]!==this[_0x486420(0x1c1)][_0x486420(0x1d3)]?this[_0x486420(0x1d2)](this['codeEditor']['value']):MetaApi[_0x486420(0x1c6)](_0x486420(0x1d8),TermsUtil[_0x486420(0x1d1)](_0x486420(0x1ce)));}async[a0_0x3e75e3(0x1d2)](_0x597bca){this['confirmCallback']&&this['confirmCallback'](_0x597bca),closePopup(this);}}function a0_0x191a(){var _0x537736=['1028708oszaOG','NOTHING_CHANGED','object','ox-input-code','tText','changedValue','value','confirmCallback','connectedCallback','render','clickEmpty','info','shadowRoot','firstUpdated','tButton','21290058xEywEc','clickCancel','4558584xpaCWE','code-input-editor-popup','934672LbEycm','codeEditor','clickConfirm','2509755pDZQKd','confirm','codeVlaue','showToast','10949722ChqCMw','bind','5600634HhNEYD','3CGxPbh','querySelector','8fXbjqO'];a0_0x191a=function(){return _0x537736;};return a0_0x191a();}customElements['define'](a0_0x3e75e3(0x1bf),CodeInputEditorPopup);
|