@things-factory/meta-ui 6.1.84 → 6.1.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +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 +8 -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/file-upload-popup.js +11 -11
- 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-define-page.js +13 -13
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/button-role/button-role-detail.js +1 -1
- package/client/pages/button-role/button-role-page.js +1 -1
- 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 +5 -5
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/menu/export-menu-popup.js +7 -7
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +10 -10
- 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 +3 -3
- 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/button-role/button-role-mutation.js +1 -1
- package/server/service/button-role/button-role-query.js +1 -1
- package/server/service/button-role/button-role-type.js +1 -1
- package/server/service/button-role/button-role.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/menu-button-auth/menu-button-auth-mutation.js +1 -1
- package/server/service/menu-button-auth/menu-button-auth-query.js +1 -1
- package/server/service/menu-button-auth/menu-button-auth-type.js +1 -1
- package/server/service/menu-button-auth/menu-button-auth.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_0x6e6a72=a0_0x58e6;(function(_0x4e4913,_0x57fd7c){const _0x413709=a0_0x58e6,_0x4c9d4f=_0x4e4913();while(!![]){try{const _0x5f3e85=-parseInt(_0x413709(0x202))/0x1*(-parseInt(_0x413709(0x1ee))/0x2)+parseInt(_0x413709(0x1ed))/0x3+parseInt(_0x413709(0x1f8))/0x4+parseInt(_0x413709(0x1fd))/0x5+-parseInt(_0x413709(0x1f1))/0x6*(parseInt(_0x413709(0x207))/0x7)+-parseInt(_0x413709(0x209))/0x8+parseInt(_0x413709(0x1fe))/0x9*(-parseInt(_0x413709(0x206))/0xa);if(_0x5f3e85===_0x57fd7c)break;else _0x4c9d4f['push'](_0x4c9d4f['shift']());}catch(_0x35bccb){_0x4c9d4f['push'](_0x4c9d4f['shift']());}}}(a0_0xa265,0x69c32));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x66eb22 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';function a0_0xa265(){const _0x5ba52f=['dynamic-menu-part','235gkrZGW','HEADERBAR','portrait','value','7199810ReEpyF','7iuFwrt','meta[name=\x22application-name\x22]','3380624gAlQWu','landscape','appName','items','133059MCBUFb','6782YGjCgm','dynamic-menu','filter','2250852iTqjBz','NAVBAR','data','liteMenus','FRONT_END','query','UPDATE_META_UI','2349784FhXuVK','active','content','rank','querySelector','2611095wTGLlj','9CJSoZR','hamburger','UPDATE_META_MENU_TEMPLATE'];a0_0xa265=function(){return _0x5ba52f;};return a0_0xa265();}import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x6e6a72(0x1f7);export const UPDATE_META_MENU_TEMPLATE=a0_0x6e6a72(0x200);var HAMBURGER;export async function setupMenuPart(_0x3fdde5){const _0x467353=a0_0x6e6a72;var {hovering:_0x4bdbaa=!!isMobileDevice(),slotTemplate:_0x4ae25e,portraitSlotTemplate:_0x5bfffb,landscapeSlotTemplate:_0xb40949,position:_0x25d508=VIEWPART_POSITION[_0x467353(0x1f2)]}=_0x3fdde5||{};const {hovering:_0x2b2763}=(await clientSettingStore['get'](_0x467353(0x1ef)))?.[_0x467353(0x205)]||{};void 0x0!==_0x2b2763&&(_0x4bdbaa=_0x2b2763);const _0x48761a=_0x25d508==VIEWPART_POSITION[_0x467353(0x203)]?_0x467353(0x20a):_0x467353(0x204),_0x29ad14=(_0x467353(0x20a)==_0x48761a?_0xb40949:_0x5bfffb)||_0x4ae25e||html``;appendViewpart({'name':_0x467353(0x201),'viewpart':{'show':!_0x4bdbaa,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x4bdbaa,'template':html`<dynamic-menu-part .orientation=${_0x48761a}>${_0x29ad14}</dynamic-menu-part>`},'position':_0x25d508}),_0x4bdbaa&&_0x467353(0x204)==_0x48761a?HAMBURGER||(HAMBURGER={'name':_0x467353(0x1ff),'template':html`
|
|
2
|
+
<mwc-icon @click=${_0x400fa2=>toggleOverlay(_0x467353(0x201),{'backdrop':!0x0})}
|
|
3
3
|
>view_headline</mwc-icon>
|
|
4
|
-
`,'position':TOOL_POSITION[
|
|
4
|
+
`,'position':TOOL_POSITION[_0x467353(0x1f5)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store['dispatch']({'type':REMOVE_APP_TOOL,'name':_0x467353(0x1ff)}),HAMBURGER=null);}function a0_0x58e6(_0x41c1b4,_0x212d64){const _0xa2659a=a0_0xa265();return a0_0x58e6=function(_0x58e682,_0x15b100){_0x58e682=_0x58e682-0x1ed;let _0x582e3d=_0xa2659a[_0x58e682];return _0x582e3d;},a0_0x58e6(_0x41c1b4,_0x212d64);}export async function updateMenuTemplate(_0x2d1053){const _0x200814=a0_0x6e6a72;var _0x55b838=document[_0x200814(0x1fc)](_0x200814(0x208))?.[_0x200814(0x1fa)],_0x546fdb=(await client[_0x200814(0x1f6)]({'query':a0_0x66eb22`
|
|
5
5
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
6
6
|
liteMenus: liteMenus(filters: $filters
|
|
7
7
|
sortings: $sortings) {
|
|
@@ -20,4 +20,4 @@ const a0_0x23a9f8=a0_0x4cd4;(function(_0x390089,_0x2042e9){const _0x8ca68b=a0_0x
|
|
|
20
20
|
total
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,'variables':{'filters':[{'name':
|
|
23
|
+
`,'variables':{'filters':[{'name':_0x200814(0x1f9),'operator':'eq','value':!0x0},{'name':_0x200814(0x20b),'operator':'in','value':['',_0x55b838]}],'sortings':[{'name':_0x200814(0x1fb),'desc':!0x1}]}}))[_0x200814(0x1f3)][_0x200814(0x1f4)][_0x200814(0x20c)];store['dispatch']({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x546fdb[_0x200814(0x1f0)](_0x3525c8=>!_0x3525c8[_0x200814(0x20b)]||_0x3525c8[_0x200814(0x20b)]===_0x55b838),'template':_0x2d1053});}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x305e93,_0x5ce791){const _0x2b7276=a0_0x34e5,_0x37c29d=_0x305e93();while(!![]){try{const _0x2027d4=parseInt(_0x2b7276(0xa0))/0x1+-parseInt(_0x2b7276(0xa8))/0x2*(-parseInt(_0x2b7276(0xa3))/0x3)+-parseInt(_0x2b7276(0x97))/0x4*(-parseInt(_0x2b7276(0x94))/0x5)+parseInt(_0x2b7276(0x9e))/0x6*(parseInt(_0x2b7276(0x96))/0x7)+-parseInt(_0x2b7276(0x9b))/0x8+-parseInt(_0x2b7276(0xa6))/0x9*(parseInt(_0x2b7276(0x9a))/0xa)+-parseInt(_0x2b7276(0x91))/0xb*(-parseInt(_0x2b7276(0xab))/0xc);if(_0x2027d4===_0x5ce791)break;else _0x37c29d['push'](_0x37c29d['shift']());}catch(_0x8a70c9){_0x37c29d['push'](_0x37c29d['shift']());}}}(a0_0xba66,0x62f0e));import'../popup/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x34e5(_0x5442cd,_0x41fda8){const _0xba6610=a0_0xba66();return a0_0x34e5=function(_0x34e5a7,_0x52687e){_0x34e5a7=_0x34e5a7-0x8c;let _0x5dbcf3=_0xba6610[_0x34e5a7];return _0x5dbcf3;},a0_0x34e5(_0x5442cd,_0x41fda8);}import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x502a51,_0x24449f,_0x4abccc){const _0x53e11b=a0_0x34e5;var _0x578211=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x24449f}
|
|
4
|
+
.options=${_0x502a51['options']}
|
|
5
|
+
.confirmCallback=${_0x4abccc}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x578211,{'backdrop':!0x0,'size':_0x53e11b(0x8d),'title':_0x502a51[_0x53e11b(0xb1)][_0x53e11b(0xac)]?TermsUtil[_0x53e11b(0x9d)](_0x502a51[_0x53e11b(0xb1)][_0x53e11b(0xac)]):TermsUtil['tTitle']('select_item')});}function a0_0xba66(){const _0x38a49f=['80WvoqYj','4350904GSYdUN','dispField','tMenu','3943446qhiDfs','join','416403zDhtxw','codeField','target','96YSDisA','ox-grid-header','toLowerCase','827766KsOkqm','filter','14114xnoVzS','map','splice','1983312ERysFh','selectorName','[name=\x22','tagName','codes','split','options','dispatchEvent','large','display','name','querySelector','11kwNDAy','form\x20[name=\x22','change','366955OZeHPR','value','7apyxln','12wkXWHi','length','stopPropagation'];a0_0xba66=function(){return _0x38a49f;};return a0_0xba66();}export const FilterFormMetaCodeSelect=(_0x22d793,_0x28773a,_0xbf5426)=>{const _0x473d64=a0_0x34e5,_0x20e5c7=_0x22d793[_0x473d64(0xb1)],_0x49e2be=_0x20e5c7[_0x473d64(0xaf)]&&_0x20e5c7['codes']['length']>0x0?_0x20e5c7[_0x473d64(0xaf)]:void 0x0,{operator:_0x4fe795='eq'}=_0x22d793;let _0x1160d0=_0x28773a||'',_0x93f24a=_0x28773a||'';if(_0x20e5c7[_0x473d64(0x9c)]&&_0x28773a&&_0x49e2be){let _0x4cceb0=_0x49e2be[_0x473d64(0xa7)](_0x38d740=>_0x38d740[_0x473d64(0x95)]==_0x28773a);_0x4cceb0&&_0x4cceb0['length']>0x0&&(_0x93f24a=_0x4cceb0[0x0][_0x473d64(0x8e)]);}return'eq'===_0x4fe795?html`
|
|
8
|
+
<input name='${_0x22d793[_0x473d64(0x8f)]}' .value=${_0x1160d0} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x22d793['name']}_disp'
|
|
13
|
+
.value=${_0x93f24a}
|
|
14
|
+
@click=${_0x426bd1=>{const _0x17aae0=_0x473d64;_0x426bd1[_0x17aae0(0x99)]();const _0x1b51c5=_0x426bd1[_0x17aae0(0xa2)];openMetaCodeSelector(_0x22d793,_0x28773a,_0x18148c=>{const _0x556b9a=_0x17aae0;let _0x190bf4=_0x18148c?_0x18148c[_0x20e5c7[_0x556b9a(0xa1)]]:'',_0x438763=_0x190bf4;if(_0x18148c&&_0x20e5c7['dispField']){let _0x33a4f9=_0x20e5c7[_0x556b9a(0x9c)][_0x556b9a(0xb0)](',');_0x438763=_0x18148c[_0x33a4f9[0x0]],_0x33a4f9[_0x556b9a(0x98)]>0x1&&(_0x438763+='('+_0x33a4f9[_0x556b9a(0xaa)](0x1)[_0x556b9a(0xa9)](_0x692a40=>_0x18148c[_0x692a40])[_0x556b9a(0x9f)](',')+')');}_0x1b51c5[_0x556b9a(0x95)]=_0x438763,(_0x556b9a(0xa4)==_0xbf5426[_0x556b9a(0xae)][_0x556b9a(0xa5)]()?_0xbf5426['renderRoot'][_0x556b9a(0x90)](_0x556b9a(0xad)+_0x22d793['name']+'\x22]'):_0xbf5426['renderRoot'][_0x556b9a(0x90)](_0x556b9a(0x92)+_0x22d793[_0x556b9a(0x8f)]+'\x22]'))[_0x556b9a(0x95)]=_0x190bf4,_0x1b51c5[_0x556b9a(0x8c)](new Event(_0x556b9a(0x93),{'bubbles':!0x0})),_0x1b51c5[_0x556b9a(0x8c)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x22d793[_0x556b9a(0x8f)],'operator':_0x4fe795,'value':_0x190bf4}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x59f1(_0x5238c6,_0x423495){const _0x1c0db8=a0_0x1c0d();return a0_0x59f1=function(_0x59f1d0,_0x13e552){_0x59f1d0=_0x59f1d0-0x139;let _0x510c41=_0x1c0db8[_0x59f1d0];return _0x510c41;},a0_0x59f1(_0x5238c6,_0x423495);}function a0_0x1c0d(){const _0x174f4c=['renderRoot','5998860ZkcvyD','change','164790kNKvHJ','tagName','filter-change','target','nameField','25391190yBYCyd','querySelector','options','name','map','dispatchEvent','1672XkVmlQ','select_item','selectorName','282037wyCjFB','value','8kdauXn','splice','length','toLowerCase','23841ZkKrTZ','1002139aPPPxe','join','large','72Ewqjeh','ox-grid-header','split','90dUMouo','630408twYGZM'];a0_0x1c0d=function(){return _0x174f4c;};return a0_0x1c0d();}(function(_0x1911d7,_0x55e1b7){const _0x10439d=a0_0x59f1,_0x49338d=_0x1911d7();while(!![]){try{const _0x1b44f4=-parseInt(_0x10439d(0x14f))/0x1+parseInt(_0x10439d(0x14a))/0x2*(-parseInt(_0x10439d(0x156))/0x3)+parseInt(_0x10439d(0x152))/0x4*(-parseInt(_0x10439d(0x13a))/0x5)+-parseInt(_0x10439d(0x155))/0x6*(-parseInt(_0x10439d(0x148))/0x7)+-parseInt(_0x10439d(0x145))/0x8*(parseInt(_0x10439d(0x14e))/0x9)+parseInt(_0x10439d(0x158))/0xa+parseInt(_0x10439d(0x13f))/0xb;if(_0x1b44f4===_0x55e1b7)break;else _0x49338d['push'](_0x49338d['shift']());}catch(_0x4246ad){_0x49338d['push'](_0x49338d['shift']());}}}(a0_0x1c0d,0x7fadd));import'../popup/meta-object-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x5464a2,_0x37691b,_0x5e2a4f){const _0x253b12=a0_0x59f1;var _0x560045=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x37691b}
|
|
4
|
+
.options=${_0x5464a2[_0x253b12(0x141)]}
|
|
5
|
+
.confirmCallback=${_0x5e2a4f}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x560045,{'backdrop':!0x0,'size':_0x253b12(0x151),'title':_0x5464a2[_0x253b12(0x141)][_0x253b12(0x147)]?TermsUtil['tMenu'](_0x5464a2[_0x253b12(0x141)][_0x253b12(0x147)]):TermsUtil['tTitle'](_0x253b12(0x146))});}export const FilterFormMetaObjectSelect=(_0x44ad62,_0x1b9562,_0x27d3b0)=>{const _0xd91420=a0_0x59f1,_0x3797e7=_0x44ad62[_0xd91420(0x141)],{operator:_0x12e874='eq'}=_0x44ad62;let _0x58fb19=_0x1b9562?_0x1b9562['id']:'',_0x40f069='';if(_0x1b9562){let _0x14728b=_0x3797e7[_0xd91420(0x13e)][_0xd91420(0x154)](',');_0x40f069=_0x1b9562[_0x14728b[0x0]],_0x14728b[_0xd91420(0x14c)]>0x1&&(_0x40f069+='('+_0x14728b[_0xd91420(0x14b)](0x1)[_0xd91420(0x143)](_0x4084f0=>_0x1b9562[_0x4084f0])[_0xd91420(0x150)](',')+')');}return'eq'===_0x12e874?html`
|
|
8
|
+
<input name='${_0x44ad62[_0xd91420(0x142)]}' .value=${_0x58fb19} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x44ad62[_0xd91420(0x142)]}_disp'
|
|
13
|
+
.value=${_0x40f069}
|
|
14
|
+
@click=${_0x41fbe5=>{const _0x401c25=_0xd91420;_0x41fbe5['stopPropagation']();const _0x1eabd0=_0x41fbe5[_0x401c25(0x13d)];openMetaObjectSelector(_0x44ad62,_0x1b9562,_0x5e477d=>{const _0x32b227=_0x401c25;let _0x4ecb68=_0x5e477d?_0x5e477d['id']:'',_0xd2ca89='';if(_0x5e477d){let _0xbeee69=_0x3797e7[_0x32b227(0x13e)]['split'](',');_0xd2ca89=_0x5e477d[_0xbeee69[0x0]],_0xbeee69[_0x32b227(0x14c)]>0x1&&(_0xd2ca89+='('+_0xbeee69[_0x32b227(0x14b)](0x1)[_0x32b227(0x143)](_0x2a7209=>_0x5e477d[_0x2a7209])[_0x32b227(0x150)](',')+')');}_0x1eabd0[_0x32b227(0x149)]=_0xd2ca89,(_0x32b227(0x153)==_0x27d3b0[_0x32b227(0x13b)][_0x32b227(0x14d)]()?_0x27d3b0['renderRoot'][_0x32b227(0x140)]('[name=\x22'+_0x44ad62[_0x32b227(0x142)]+'\x22]'):_0x27d3b0[_0x32b227(0x157)]['querySelector']('form\x20[name=\x22'+_0x44ad62[_0x32b227(0x142)]+'\x22]'))[_0x32b227(0x149)]=_0x4ecb68,_0x1eabd0[_0x32b227(0x144)](new Event(_0x32b227(0x139),{'bubbles':!0x0})),_0x1eabd0['dispatchEvent'](new CustomEvent(_0x32b227(0x13c),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x44ad62[_0x32b227(0x142)],'operator':_0x12e874,'value':_0x4ecb68}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18a811,_0x36a8ea){const _0x11bdbd=a0_0x468c,_0x78df9f=_0x18a811();while(!![]){try{const _0x636a89=-parseInt(_0x11bdbd(0xed))/0x1*(-parseInt(_0x11bdbd(0xfc))/0x2)+parseInt(_0x11bdbd(0xeb))/0x3*(parseInt(_0x11bdbd(0x10c))/0x4)+-parseInt(_0x11bdbd(0x102))/0x5+parseInt(_0x11bdbd(0x105))/0x6*(-parseInt(_0x11bdbd(0xfb))/0x7)+parseInt(_0x11bdbd(0xfa))/0x8*(parseInt(_0x11bdbd(0xf2))/0x9)+-parseInt(_0x11bdbd(0x108))/0xa+parseInt(_0x11bdbd(0xe7))/0xb*(parseInt(_0x11bdbd(0x10a))/0xc);if(_0x636a89===_0x36a8ea)break;else _0x78df9f['push'](_0x78df9f['shift']());}catch(_0x5a6cf5){_0x78df9f['push'](_0x78df9f['shift']());}}}(a0_0x9465,0xba75e));import'../popup/meta-object-selector-popup';function a0_0x468c(_0x3c6bf3,_0x511c5c){const _0x946523=a0_0x9465();return a0_0x468c=function(_0x468c94,_0xb8b5a6){_0x468c94=_0x468c94-0xe7;let _0x3fcb57=_0x946523[_0x468c94];return _0x3fcb57;},a0_0x468c(_0x3c6bf3,_0x511c5c);}import{html}from'lit-html';function a0_0x9465(){const _0x4affb1=['renderRoot','splice','querySelector','change','ox-grid-header','4510955UoKPca','codes','codeField','47220jSIyWU','display','split','8490090BfRUZj','name','57768BlXTut','tagName','322116aitZtF','1243xFTbMT','map','length','record','18KXGeCd','target','263xNkPeI','join','options','select_item','dispatchEvent','639gigqMk','tMenu','filter-change','[name=\x22','filter','selectorName','value','dispField','118056IWcjFu','14YzQGDt','3466AyBfgG'];a0_0x9465=function(){return _0x4affb1;};return a0_0x9465();}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openMetaCodeSelector(_0x5dd7af,_0x117c0e,_0x43eae7){const _0x475a0b=a0_0x468c;var _0x35049e=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x117c0e}
|
|
4
|
+
.options=${_0x5dd7af['record']['options']}
|
|
5
|
+
.confirmCallback=${_0x43eae7}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x35049e,{'backdrop':!0x0,'size':'large','title':_0x5dd7af[_0x475a0b(0xea)][_0x475a0b(0xef)][_0x475a0b(0xf7)]?TermsUtil[_0x475a0b(0xf3)](_0x5dd7af[_0x475a0b(0xea)][_0x475a0b(0xef)][_0x475a0b(0xf7)]):TermsUtil['tTitle'](_0x475a0b(0xf0))});}export const FilterGristMetaCodeSelect=(_0x39bbe4,_0x4361f5,_0xeb0254)=>{const _0x12505b=a0_0x468c,_0x527e55=_0x39bbe4[_0x12505b(0xf6)],_0x854cc5=_0x39bbe4[_0x12505b(0xea)][_0x12505b(0xef)],_0xc806fb=_0x854cc5[_0x12505b(0x103)]&&_0x854cc5[_0x12505b(0x103)][_0x12505b(0xe9)]>0x0?_0x854cc5[_0x12505b(0x103)]:void 0x0,{operator:_0x26ae2e='eq'}=_0x527e55;let _0x5ed2ea=_0x4361f5||'',_0x39ec79=_0x4361f5||'';if(_0x854cc5[_0x12505b(0xf9)]&&_0x4361f5&&_0xc806fb){let _0x331059=_0xc806fb[_0x12505b(0xf6)](_0x47a3ea=>_0x47a3ea[_0x12505b(0xf8)]==_0x4361f5);_0x331059&&_0x331059[_0x12505b(0xe9)]>0x0&&(_0x39ec79=_0x331059[0x0][_0x12505b(0x106)]);}return'eq'===_0x26ae2e?html`
|
|
8
|
+
<input name='${_0x39bbe4[_0x12505b(0x109)]}' .value=${_0x5ed2ea} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x39bbe4['name']}_disp'
|
|
13
|
+
.value=${_0x39ec79}
|
|
14
|
+
@click=${_0x295868=>{const _0x2c2724=_0x12505b;_0x295868['stopPropagation']();const _0x20079f=_0x295868[_0x2c2724(0xec)];openMetaCodeSelector(_0x39bbe4,_0x4361f5,_0x2e6900=>{const _0x6bc653=_0x2c2724;let _0x15d3bf=_0x2e6900?_0x2e6900[_0x854cc5[_0x6bc653(0x104)]]:'',_0x4b8cef=_0x15d3bf;if(_0x2e6900&&_0x854cc5['dispField']){let _0x1d3fe3=_0x854cc5[_0x6bc653(0xf9)][_0x6bc653(0x107)](',');_0x4b8cef=_0x2e6900[_0x1d3fe3[0x0]],_0x1d3fe3[_0x6bc653(0xe9)]>0x1&&(_0x4b8cef+='('+_0x1d3fe3[_0x6bc653(0xfe)](0x1)[_0x6bc653(0xe8)](_0x7ae772=>_0x2e6900[_0x7ae772])[_0x6bc653(0xee)](',')+')');}_0x20079f[_0x6bc653(0xf8)]=_0x4b8cef,(_0x6bc653(0x101)==_0xeb0254[_0x6bc653(0x10b)]['toLowerCase']()?_0xeb0254[_0x6bc653(0xfd)][_0x6bc653(0xff)](_0x6bc653(0xf5)+_0x527e55[_0x6bc653(0x109)]+'\x22]'):_0xeb0254[_0x6bc653(0xfd)][_0x6bc653(0xff)]('form\x20[name=\x22'+_0x527e55[_0x6bc653(0x109)]+'\x22]'))[_0x6bc653(0xf8)]=_0x15d3bf,_0x20079f[_0x6bc653(0xf1)](new Event(_0x6bc653(0x100),{'bubbles':!0x0})),_0x20079f[_0x6bc653(0xf1)](new CustomEvent(_0x6bc653(0xf4),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x39bbe4[_0x6bc653(0x109)],'operator':_0x26ae2e,'value':_0x15d3bf}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3416e4,_0x12a2dc){const _0x5c7ec6=a0_0x4ca6,_0x465d2f=_0x3416e4();while(!![]){try{const _0x3840c9=parseInt(_0x5c7ec6(0x95))/0x1*(parseInt(_0x5c7ec6(0x97))/0x2)+-parseInt(_0x5c7ec6(0x92))/0x3+parseInt(_0x5c7ec6(0xa3))/0x4+parseInt(_0x5c7ec6(0xa0))/0x5*(parseInt(_0x5c7ec6(0xb0))/0x6)+parseInt(_0x5c7ec6(0x99))/0x7+-parseInt(_0x5c7ec6(0xac))/0x8*(parseInt(_0x5c7ec6(0xa9))/0x9)+parseInt(_0x5c7ec6(0x9f))/0xa;if(_0x3840c9===_0x12a2dc)break;else _0x465d2f['push'](_0x465d2f['shift']());}catch(_0x46b5de){_0x465d2f['push'](_0x465d2f['shift']());}}}(a0_0x1658,0x733f9));import'../popup/meta-object-selector-popup';function a0_0x1658(){const _0x6a1464=['options','name','large','split','map','7911860LQMJHh','5jzidmw','toLowerCase','join','1204960nXKHtX','tagName','tMenu','selectorName','splice','stopPropagation','9tKiSVK','record','querySelector','7105936fkpOeo','nameField','select_item','dispatchEvent','2068650uKyciq','change','ox-grid-header','tTitle','target','1268799mtmxnA','value','length','11393JWMjLS','renderRoot','56etNEzq','form\x20[name=\x22','189189siayfj'];a0_0x1658=function(){return _0x6a1464;};return a0_0x1658();}import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x4ca6(_0x10c155,_0x3ede45){const _0x165804=a0_0x1658();return a0_0x4ca6=function(_0x4ca6e9,_0x2bd131){_0x4ca6e9=_0x4ca6e9-0x8e;let _0x970e0f=_0x165804[_0x4ca6e9];return _0x970e0f;},a0_0x4ca6(_0x10c155,_0x3ede45);}import{TermsUtil}from'./../../utils/terms-util';function openMetaObjectSelector(_0x85305,_0x58c0c0,_0x579af0){const _0x42b256=a0_0x4ca6;var _0x2db85d=html`
|
|
2
2
|
<meta-object-selector-popup
|
|
3
|
-
.value=${
|
|
4
|
-
.options=${
|
|
5
|
-
.confirmCallback=${
|
|
3
|
+
.value=${_0x58c0c0}
|
|
4
|
+
.options=${_0x85305[_0x42b256(0xaa)][_0x42b256(0x9a)]}
|
|
5
|
+
.confirmCallback=${_0x579af0}
|
|
6
6
|
></meta-object-selector-popup>
|
|
7
|
-
`;openPopup(
|
|
8
|
-
<input name='${
|
|
7
|
+
`;openPopup(_0x2db85d,{'backdrop':!0x0,'size':_0x42b256(0x9c),'title':_0x85305[_0x42b256(0xaa)]['options'][_0x42b256(0xa6)]?TermsUtil[_0x42b256(0xa5)](_0x85305[_0x42b256(0xaa)]['options'][_0x42b256(0xa6)]):TermsUtil[_0x42b256(0x90)](_0x42b256(0xae))});}export const FilterGristMetaObjectSelect=(_0x35f709,_0x2b3b7e,_0x17fbcf)=>{const _0x26c216=a0_0x4ca6,_0x553f29=_0x35f709['filter'],{operator:_0x533bad='eq'}=_0x553f29,_0x105ed7=_0x35f709[_0x26c216(0xaa)][_0x26c216(0x9a)];let _0x494849=_0x2b3b7e?_0x2b3b7e['id']:'',_0x4d399f='';if(_0x2b3b7e){let _0x42c6f8=_0x105ed7['nameField'][_0x26c216(0x9d)](',');_0x4d399f=_0x2b3b7e[_0x42c6f8[0x0]],_0x42c6f8[_0x26c216(0x94)]>0x1&&(_0x4d399f+='('+_0x42c6f8[_0x26c216(0xa7)](0x1)[_0x26c216(0x9e)](_0x4e350d=>_0x2b3b7e[_0x4e350d])[_0x26c216(0xa2)](',')+')');}return'eq'===_0x533bad?html`
|
|
8
|
+
<input name='${_0x35f709[_0x26c216(0x9b)]}' .value=${_0x494849} type="text" hidden></input>
|
|
9
9
|
<input
|
|
10
10
|
type="text"
|
|
11
11
|
readonly
|
|
12
|
-
name='${
|
|
13
|
-
.value=${
|
|
14
|
-
@click=${
|
|
12
|
+
name='${_0x35f709[_0x26c216(0x9b)]}_disp'
|
|
13
|
+
.value=${_0x4d399f}
|
|
14
|
+
@click=${_0x2fcbf9=>{const _0x15f946=_0x26c216;_0x2fcbf9[_0x15f946(0xa8)]();const _0x23e577=_0x2fcbf9[_0x15f946(0x91)];openMetaObjectSelector(_0x35f709,_0x2b3b7e,_0x14b0b6=>{const _0x173a5d=_0x15f946;let _0x13bbe5=_0x14b0b6?_0x14b0b6['id']:'',_0x1340b9='';if(_0x14b0b6){let _0x137b1b=_0x105ed7[_0x173a5d(0xad)][_0x173a5d(0x9d)](',');_0x1340b9=_0x14b0b6[_0x137b1b[0x0]],_0x137b1b[_0x173a5d(0x94)]>0x1&&(_0x1340b9+='('+_0x137b1b[_0x173a5d(0xa7)](0x1)['map'](_0x36ab42=>_0x14b0b6[_0x36ab42])['join'](',')+')');}_0x23e577[_0x173a5d(0x93)]=_0x1340b9,(_0x173a5d(0x8f)==_0x17fbcf[_0x173a5d(0xa4)][_0x173a5d(0xa1)]()?_0x17fbcf[_0x173a5d(0x96)][_0x173a5d(0xab)]('[name=\x22'+_0x553f29[_0x173a5d(0x9b)]+'\x22]'):_0x17fbcf[_0x173a5d(0x96)][_0x173a5d(0xab)](_0x173a5d(0x98)+_0x553f29[_0x173a5d(0x9b)]+'\x22]'))[_0x173a5d(0x93)]=_0x13bbe5,_0x23e577[_0x173a5d(0xaf)](new Event(_0x173a5d(0x8e),{'bubbles':!0x0})),_0x23e577[_0x173a5d(0xaf)](new CustomEvent('filter-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x35f709[_0x173a5d(0x9b)],'operator':_0x533bad,'value':_0x13bbe5}}));});}}
|
|
15
15
|
/>
|
|
16
16
|
`:html``;};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x2f1bbc=a0_0x597f;function a0_0x39c7(){const _0x25d662=['openEditor','6220670WLLJSZ','key','663663RHdMRF','_onkeydown','value','column','substring','stopPropagation','3677949rYczOE','popup','code-editor','...','length','107513bMNjSM','400492YUTlHw','dispatchEvent','211353qnIavN','grist-editor-code-input','2WQnlJR','record','tTitle','parse','properties','75JsShSI','row','firstUpdated','49116aTATGe','8qAvrYA','stringify','object','_onclick','Enter'];a0_0x39c7=function(){return _0x25d662;};return a0_0x39c7();}(function(_0x33e0c4,_0xf3f274){const _0x709dd5=a0_0x597f,_0x1125b5=_0x33e0c4();while(!![]){try{const _0x173942=-parseInt(_0x709dd5(0xb4))/0x1+parseInt(_0x709dd5(0xb6))/0x2*(parseInt(_0x709dd5(0xc7))/0x3)+-parseInt(_0x709dd5(0xb2))/0x4+parseInt(_0x709dd5(0xbb))/0x5*(parseInt(_0x709dd5(0xbe))/0x6)+-parseInt(_0x709dd5(0xd2))/0x7*(-parseInt(_0x709dd5(0xbf))/0x8)+-parseInt(_0x709dd5(0xcd))/0x9+parseInt(_0x709dd5(0xc5))/0xa;if(_0x173942===_0xf3f274)break;else _0x1125b5['push'](_0x1125b5['shift']());}catch(_0x2dc971){_0x1125b5['push'](_0x1125b5['shift']());}}}(a0_0x39c7,0x3fcb4));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';function a0_0x597f(_0x42ebe0,_0x2221a0){const _0x39c741=a0_0x39c7();return a0_0x597f=function(_0x597f5f,_0x518d45){_0x597f5f=_0x597f5f-0xb2;let _0x3fc1aa=_0x39c741[_0x597f5f];return _0x3fc1aa;},a0_0x597f(_0x42ebe0,_0x2221a0);}import'../../popup/code-input-editor-popup';export class GristEditorCodeInput extends OxGristEditor{static get[a0_0x2f1bbc(0xba)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get['editorTemplate'](){const _0x2c34ea=a0_0x2f1bbc;let _0x2dd267;return this[_0x2c34ea(0xc9)]&&(_0x2dd267='object'==typeof this['value']?JSON[_0x2c34ea(0xc0)](this[_0x2c34ea(0xc9)],0x0,0x2):this[_0x2c34ea(0xc9)],_0x2dd267=_0x2dd267[_0x2c34ea(0xd1)]>0x14?_0x2dd267[_0x2c34ea(0xcb)](0x0,0x14)+_0x2c34ea(0xd0):_0x2dd267),html`
|
|
2
|
+
${_0x2dd267?html` <span tabindex="0" style="flex:1;">${_0x2dd267}</span> `:html`<span tabindex="0" ></span>`}
|
|
3
|
+
`;}async[a0_0x2f1bbc(0xbd)](){const _0x838e28=a0_0x2f1bbc;super[_0x838e28(0xbd)]();}[a0_0x2f1bbc(0xc2)](_0x33ddf4){const _0x154fee=a0_0x2f1bbc;_0x33ddf4[_0x154fee(0xcc)](),this['openEditor']();}[a0_0x2f1bbc(0xc8)](_0x568b9f){const _0x20f56f=a0_0x2f1bbc;_0x20f56f(0xc3)==_0x568b9f[_0x20f56f(0xc6)]&&(_0x568b9f[_0x20f56f(0xcc)](),this[_0x20f56f(0xc4)]());}['openEditor'](){const _0x397e87=a0_0x2f1bbc;this[_0x397e87(0xce)]&&delete this['popup'];var _0x16a731=html`
|
|
4
4
|
<code-input-editor-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x397e87(0xc9)]}
|
|
6
|
+
.confirmCallback=${(_0x5d2a6a=>{const _0x108669=_0x397e87;this[_0x108669(0xb3)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x108669(0xc9)],'after':_0x5d2a6a?_0x108669(0xc1)==typeof this[_0x108669(0xc9)]?JSON[_0x108669(0xb9)](_0x5d2a6a):_0x5d2a6a:null,'record':this[_0x108669(0xb7)],'column':this[_0x108669(0xca)],'row':this[_0x108669(0xbc)]}}));})['bind'](this)}
|
|
7
7
|
></code-input-editor-popup>
|
|
8
|
-
`;this[
|
|
8
|
+
`;this[_0x397e87(0xce)]=openPopup(_0x16a731,{'backdrop':!0x0,'size':'large','title':TermsUtil[_0x397e87(0xb8)](_0x397e87(0xcf))});}}customElements['define'](a0_0x2f1bbc(0xb5),GristEditorCodeInput);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
${
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0x39ada2=a0_0x57d7;function a0_0x57d7(_0x5ddf84,_0x26ae58){const _0x21c503=a0_0x21c5();return a0_0x57d7=function(_0x57d749,_0x558551){_0x57d749=_0x57d749-0x1ca;let _0x1fcd86=_0x21c503[_0x57d749];return _0x1fcd86;},a0_0x57d7(_0x5ddf84,_0x26ae58);}(function(_0x4e1b78,_0x3caba3){const _0x514b58=a0_0x57d7,_0x2493d7=_0x4e1b78();while(!![]){try{const _0x44798b=parseInt(_0x514b58(0x1cb))/0x1*(parseInt(_0x514b58(0x1d6))/0x2)+parseInt(_0x514b58(0x1eb))/0x3*(parseInt(_0x514b58(0x1d2))/0x4)+parseInt(_0x514b58(0x1cd))/0x5*(parseInt(_0x514b58(0x1e3))/0x6)+-parseInt(_0x514b58(0x1e1))/0x7*(parseInt(_0x514b58(0x1cf))/0x8)+-parseInt(_0x514b58(0x1de))/0x9+parseInt(_0x514b58(0x1d3))/0xa+-parseInt(_0x514b58(0x1f2))/0xb;if(_0x44798b===_0x3caba3)break;else _0x2493d7['push'](_0x2493d7['shift']());}catch(_0x5b34c3){_0x2493d7['push'](_0x2493d7['shift']());}}}(a0_0x21c5,0xa3bc1));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 GristEditorMetaCodeSelector extends OxGristEditor{static get['properties'](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x39ada2(0x1d5)](){const _0x99c5a3=a0_0x39ada2;let _0x30c43b='';if(this[_0x99c5a3(0x1d0)][_0x99c5a3(0x1e0)]&&this['column'][_0x99c5a3(0x1e0)][_0x99c5a3(0x1dd)]){if(this[_0x99c5a3(0x1d0)]['record']['options'][_0x99c5a3(0x1e9)]){let _0x528d18=this[_0x99c5a3(0x1d0)][_0x99c5a3(0x1e0)]['options'][_0x99c5a3(0x1f4)]||[];if(this[_0x99c5a3(0x1ca)]&&this[_0x99c5a3(0x1ca)][_0x99c5a3(0x1ef)]>0x0){let _0x353909=_0x528d18['filter'](_0x2f055b=>_0x2f055b[_0x99c5a3(0x1ca)]===this[_0x99c5a3(0x1ca)]);_0x30c43b=_0x353909&&_0x353909[_0x99c5a3(0x1ef)]>0x0?_0x353909[0x0][_0x99c5a3(0x1ed)]:'';}}else _0x30c43b=this[_0x99c5a3(0x1ca)];}else _0x30c43b='';return html`
|
|
2
|
+
${_0x30c43b?html` <span tabindex="0" style="flex:1">${_0x30c43b}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
+
`;}async[a0_0x39ada2(0x1f5)](){const _0x60bd0=a0_0x39ada2;super[_0x60bd0(0x1f5)]();}[a0_0x39ada2(0x1d7)](_0x5e0f9a){const _0x219e24=a0_0x39ada2;_0x5e0f9a[_0x219e24(0x1ee)](),this['openSelector']();}['_onkeydown'](_0x4aa22c){const _0x99faf=a0_0x39ada2;_0x99faf(0x1da)==_0x4aa22c[_0x99faf(0x1cc)]&&(_0x4aa22c[_0x99faf(0x1ee)](),this[_0x99faf(0x1d8)]());}['openSelector'](){const _0x4027c0=a0_0x39ada2;this['popup']&&delete this[_0x4027c0(0x1f6)];var {selectorName:_0x1725bc=TermsUtil['tTitle'](_0x4027c0(0x1e8))}=this[_0x4027c0(0x1d0)][_0x4027c0(0x1e0)]['options']||{},_0x27ed22=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.confirmCallback=${(
|
|
5
|
+
.value=${this[_0x4027c0(0x1ca)]}
|
|
6
|
+
.options=${this[_0x4027c0(0x1d0)][_0x4027c0(0x1e0)][_0x4027c0(0x1dd)]}
|
|
7
|
+
.confirmCallback=${(_0x1ae5c9=>{const _0x4e3d90=_0x4027c0;let _0x41b981=this[_0x4e3d90(0x1d0)][_0x4e3d90(0x1e0)][_0x4e3d90(0x1dd)][_0x4e3d90(0x1f1)],_0x17c250=this[_0x4e3d90(0x1d0)]['record'][_0x4e3d90(0x1dd)][_0x4e3d90(0x1e9)],_0x261e37=this[_0x4e3d90(0x1d0)]['record']['options'][_0x4e3d90(0x1df)]||{};if(this[_0x4e3d90(0x1d0)]['record']['options'][_0x4e3d90(0x1f4)]||(this['column'][_0x4e3d90(0x1e0)][_0x4e3d90(0x1dd)][_0x4e3d90(0x1f4)]=[]),_0x1ae5c9){let _0x12af70=this[_0x4e3d90(0x1d0)][_0x4e3d90(0x1e0)]['options'][_0x4e3d90(0x1f4)][_0x4e3d90(0x1d9)](_0x156b1a=>_0x156b1a[_0x4e3d90(0x1ca)]==_0x1ae5c9[_0x41b981]);if(!_0x12af70||0x0==_0x12af70['length']){let _0x5ea399=_0x1ae5c9[_0x41b981];if(_0x17c250){let _0x477672=_0x17c250[_0x4e3d90(0x1e6)](',');_0x5ea399=_0x1ae5c9[_0x477672[0x0]],_0x477672[_0x4e3d90(0x1ef)]>0x1&&(_0x5ea399+='('+_0x477672[_0x4e3d90(0x1e2)](0x1)[_0x4e3d90(0x1ce)](_0x3cd909=>_0x1ae5c9[_0x3cd909])[_0x4e3d90(0x1e4)](',')+')');}this[_0x4e3d90(0x1d0)]['record'][_0x4e3d90(0x1dd)][_0x4e3d90(0x1f4)]['push']({'value':_0x1ae5c9[_0x41b981],'display':_0x5ea399});}}this[_0x4e3d90(0x1db)](new CustomEvent(_0x4e3d90(0x1d1),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x4e3d90(0x1ca)],'after':_0x1ae5c9?_0x1ae5c9[_0x41b981]:null,'record':this[_0x4e3d90(0x1e0)],'column':this['column'],'row':this[_0x4e3d90(0x1e7)]}})),Object[_0x4e3d90(0x1ea)](_0x261e37)[_0x4e3d90(0x1dc)](_0x35eb90=>{const _0x5eb04f=_0x4e3d90;this[_0x5eb04f(0x1db)](new CustomEvent(_0x5eb04f(0x1d1),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x5eb04f(0x1e0)][_0x261e37[_0x35eb90]],'after':_0x1ae5c9?_0x1ae5c9[_0x35eb90]:null,'record':this[_0x5eb04f(0x1e0)],'column':{'name':_0x261e37[_0x35eb90]},'row':this[_0x5eb04f(0x1e7)]}}));});})[_0x4027c0(0x1e5)](this)}
|
|
8
8
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
9
|
+
`;this['popup']=openPopup(_0x27ed22,{'backdrop':!0x0,'size':_0x4027c0(0x1ec),'title':TermsUtil[_0x4027c0(0x1f3)](_0x1725bc)});}}function a0_0x21c5(){const _0x37d07f=['record','189cBsQxw','splice','51402EWCTvc','join','bind','split','row','select_item','dispField','keys','39945OVGNcY','large','display','stopPropagation','length','define','codeField','8649311RdrzKm','tMenu','codes','firstUpdated','popup','value','39VioADX','key','305VZfUdv','map','101096YZeiMc','column','field-change','216OokAML','7432410szjyJV','grist-editor-meta-code-selector','editorTemplate','25294DtvVZm','_onclick','openSelector','filter','Enter','dispatchEvent','forEach','options','6119226tWeIyY','fieldMap'];a0_0x21c5=function(){return _0x37d07f;};return a0_0x21c5();}customElements[a0_0x39ada2(0x1f0)](a0_0x39ada2(0x1d4),GristEditorMetaCodeSelector);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
${this[
|
|
3
|
-
`;}async[
|
|
1
|
+
const a0_0xe2bef=a0_0x3553;(function(_0x7bca27,_0x38af68){const _0x434847=a0_0x3553,_0x5e4eea=_0x7bca27();while(!![]){try{const _0x4ad180=parseInt(_0x434847(0x100))/0x1*(-parseInt(_0x434847(0x115))/0x2)+-parseInt(_0x434847(0xf9))/0x3*(parseInt(_0x434847(0x104))/0x4)+-parseInt(_0x434847(0xff))/0x5*(parseInt(_0x434847(0x110))/0x6)+parseInt(_0x434847(0xfc))/0x7*(-parseInt(_0x434847(0xf3))/0x8)+parseInt(_0x434847(0x102))/0x9+parseInt(_0x434847(0x114))/0xa+parseInt(_0x434847(0xf4))/0xb;if(_0x4ad180===_0x38af68)break;else _0x5e4eea['push'](_0x5e4eea['shift']());}catch(_0x3a462d){_0x5e4eea['push'](_0x5e4eea['shift']());}}}(a0_0x5640,0xe6d9a));function a0_0x3553(_0x36fc2c,_0xfa6b8b){const _0x56406d=a0_0x5640();return a0_0x3553=function(_0x3553f7,_0x48365f){_0x3553f7=_0x3553f7-0xf0;let _0x442170=_0x56406d[_0x3553f7];return _0x442170;},a0_0x3553(_0x36fc2c,_0xfa6b8b);}import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';function a0_0x5640(){const _0x1e67a7=['properties','tMenu','keys','_onclick','value','select_item','define','firstUpdated','map','openSelector','618NRiQur','popup','_onkeydown','length','18312680gAjstL','1046uyvlXK','nameField','column','record','split','744ErBtiz','25864729eUTben','Enter','grist-editor-meta-object-selector','row','splice','1017147EcYNKY','fieldMap','key','35553fZoDiX','field-change','large','25830XoPmad','3263FxbAba','dispatchEvent','1368423rMZFlf','stopPropagation','8hUCsmP','bind'];a0_0x5640=function(){return _0x1e67a7;};return a0_0x5640();}import{TermsUtil}from'../../../utils/terms-util';import'../../popup/meta-object-selector-popup';export class GristEditorMetaObjectSelector extends OxGristEditor{static get[a0_0xe2bef(0x106)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get['editorTemplate'](){const _0x1dfb5e=a0_0xe2bef;let _0x2c3f26='';if(this['value']&&this[_0x1dfb5e(0xf0)][_0x1dfb5e(0xf1)]['options']){let _0x27a6c0=this[_0x1dfb5e(0xf0)][_0x1dfb5e(0xf1)]['options'][_0x1dfb5e(0x116)][_0x1dfb5e(0xf2)](',');_0x2c3f26=this[_0x1dfb5e(0x10a)][_0x27a6c0[0x0]],_0x27a6c0[_0x1dfb5e(0x113)]>0x1&&(_0x2c3f26+='('+_0x27a6c0[_0x1dfb5e(0xf8)](0x1)[_0x1dfb5e(0x10e)](_0x279d2d=>this[_0x1dfb5e(0x10a)][_0x279d2d])['join'](',')+')');}return html`
|
|
2
|
+
${this[_0x1dfb5e(0x10a)]?html` <span tabindex="0" style="flex:1">${_0x2c3f26}</span> `:html`<span tabindex="0">${_0x2c3f26}</span>`}
|
|
3
|
+
`;}async[a0_0xe2bef(0x10d)](){const _0x3a1bc7=a0_0xe2bef;super[_0x3a1bc7(0x10d)]();}[a0_0xe2bef(0x109)](_0x28815f){_0x28815f['stopPropagation'](),this['openSelector']();}[a0_0xe2bef(0x112)](_0x35ba6f){const _0x137676=a0_0xe2bef;_0x137676(0xf5)==_0x35ba6f[_0x137676(0xfb)]&&(_0x35ba6f[_0x137676(0x103)](),this[_0x137676(0x10f)]());}[a0_0xe2bef(0x10f)](){const _0x1ff92b=a0_0xe2bef;this[_0x1ff92b(0x111)]&&delete this[_0x1ff92b(0x111)];var {selectorName:_0x34b87a=TermsUtil['tTitle'](_0x1ff92b(0x10b))}=this[_0x1ff92b(0xf0)][_0x1ff92b(0xf1)]['options']||{},_0x2988b4=html`
|
|
4
4
|
<meta-object-selector-popup
|
|
5
|
-
.value=${this[
|
|
6
|
-
.options=${this[
|
|
7
|
-
.
|
|
5
|
+
.value=${this[_0x1ff92b(0x10a)]}
|
|
6
|
+
.options=${this[_0x1ff92b(0xf0)][_0x1ff92b(0xf1)]['options']}
|
|
7
|
+
.record=${this[_0x1ff92b(0xf1)]}
|
|
8
|
+
.confirmCallback=${(_0xdca57=>{const _0x5d2528=_0x1ff92b;let _0x4e159b=this['column'][_0x5d2528(0xf1)]['options'][_0x5d2528(0xfa)]||{};this['dispatchEvent'](new CustomEvent(_0x5d2528(0xfd),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x5d2528(0x10a)],'after':_0xdca57||null,'record':this[_0x5d2528(0xf1)],'column':this[_0x5d2528(0xf0)],'row':this['row']}})),Object[_0x5d2528(0x108)](_0x4e159b)['forEach'](_0x2e0b2f=>{const _0x2a4555=_0x5d2528;this[_0x2a4555(0x101)](new CustomEvent(_0x2a4555(0xfd),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x2a4555(0xf1)][_0x4e159b[_0x2e0b2f]],'after':_0xdca57?_0xdca57[_0x2e0b2f]:null,'record':this['record'],'column':{'name':_0x4e159b[_0x2e0b2f]},'row':this[_0x2a4555(0xf7)]}}));});})[_0x1ff92b(0x105)](this)}
|
|
8
9
|
></meta-object-selector-popup>
|
|
9
|
-
`;this[
|
|
10
|
+
`;this['popup']=openPopup(_0x2988b4,{'backdrop':!0x0,'size':_0x1ff92b(0xfe),'title':TermsUtil[_0x1ff92b(0x107)](_0x34b87a)});}}customElements[a0_0xe2bef(0x10c)](a0_0xe2bef(0xf6),GristEditorMetaObjectSelector);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x8247(_0x309216,_0xcea9fc){const _0x48f998=a0_0x48f9();return a0_0x8247=function(_0x8247b,_0xc2c79c){_0x8247b=_0x8247b-0xea;let _0x1a7e6e=_0x48f998[_0x8247b];return _0x1a7e6e;},a0_0x8247(_0x309216,_0xcea9fc);}(function(_0x48069c,_0xd18279){const _0x184f76=a0_0x8247,_0xfbbb3c=_0x48069c();while(!![]){try{const _0x10b825=-parseInt(_0x184f76(0xfd))/0x1*(-parseInt(_0x184f76(0xef))/0x2)+-parseInt(_0x184f76(0xec))/0x3+parseInt(_0x184f76(0xfb))/0x4*(-parseInt(_0x184f76(0xf2))/0x5)+-parseInt(_0x184f76(0xfa))/0x6+parseInt(_0x184f76(0xfc))/0x7*(parseInt(_0x184f76(0xf7))/0x8)+parseInt(_0x184f76(0xed))/0x9+parseInt(_0x184f76(0xf6))/0xa*(parseInt(_0x184f76(0xf3))/0xb);if(_0x10b825===_0xd18279)break;else _0xfbbb3c['push'](_0xfbbb3c['shift']());}catch(_0x5234ae){_0xfbbb3c['push'](_0xfbbb3c['shift']());}}}(a0_0x48f9,0x3c8ea));import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0x651f6a){const _0x136acd=a0_0x8247,_0x3e0476=_0x651f6a[_0x136acd(0xf0)];detectOverflow(_0x3e0476)&&_0x3e0476[_0x136acd(0xee)](_0x136acd(0xf1),_0x3e0476[_0x136acd(0xeb)]);}function onmouseout(_0x344b72){const _0x3b87bb=a0_0x8247;_0x344b72[_0x3b87bb(0xf0)][_0x3b87bb(0xf5)](_0x3b87bb(0xf1));}export const GristRendererCodeInput=(_0x423963,_0x534cf8,_0x698599,_0x5d8596,_0x55665e)=>{const _0x1f9ef8=a0_0x8247;let _0x253958='';return _0x423963&&(_0x253958='object'==typeof _0x423963?JSON[_0x1f9ef8(0xf8)](_0x423963,0x0,0x2):_0x423963,_0x253958=_0x253958[_0x1f9ef8(0xf4)]>0x14?_0x253958[_0x1f9ef8(0xf9)](0x0,0x14)+_0x1f9ef8(0xea):_0x253958),html`<span style='flex:1' @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x253958}</span>`;};function a0_0x48f9(){const _0x166ec7=['65SvpzKO','1331LgcjCk','length','removeAttribute','33760UjiWLw','136fFPBUk','stringify','substring','980196vBvBdN','96004XLxoFi','34846EMixXm','301DHGUCU','...','textContent','737595OgbZjC','1839249nliHom','setAttribute','1806NKTESp','target','data-tooltip'];a0_0x48f9=function(){return _0x166ec7;};return a0_0x48f9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc95ab5,_0xb6971a){const _0x4d806b=a0_0x2279,_0x1d0eb9=_0xc95ab5();while(!![]){try{const _0x266240=-parseInt(_0x4d806b(0x191))/0x1*(parseInt(_0x4d806b(0x18f))/0x2)+-parseInt(_0x4d806b(0x189))/0x3*(parseInt(_0x4d806b(0x180))/0x4)+parseInt(_0x4d806b(0x192))/0x5+-parseInt(_0x4d806b(0x182))/0x6*(-parseInt(_0x4d806b(0x188))/0x7)+-parseInt(_0x4d806b(0x18c))/0x8*(parseInt(_0x4d806b(0x17e))/0x9)+-parseInt(_0x4d806b(0x17d))/0xa+parseInt(_0x4d806b(0x187))/0xb*(parseInt(_0x4d806b(0x18a))/0xc);if(_0x266240===_0xb6971a)break;else _0x1d0eb9['push'](_0x1d0eb9['shift']());}catch(_0x4c82a7){_0x1d0eb9['push'](_0x1d0eb9['shift']());}}}(a0_0x51e7,0x3ea01));function a0_0x2279(_0x167e9d,_0x4bbba0){const _0x51e746=a0_0x51e7();return a0_0x2279=function(_0x2279d6,_0x5de3d4){_0x2279d6=_0x2279d6-0x17d;let _0x3e68da=_0x51e746[_0x2279d6];return _0x3e68da;},a0_0x2279(_0x167e9d,_0x4bbba0);}import{html}from'lit';function a0_0x51e7(){const _0x2facb8=['9616woufkn','target','removeAttribute','32282nNxzmb','setAttribute','8WVzZYk','96150CFiXPi','textContent','120420YxkXwY','3114PIzOuU','display','20ebUfgj','codes','150hMNqPZ','options','record','filter','data-tooltip','8929470HGVLXy','15330egbWAw','43305HPKQml','12LSAmhf','value'];a0_0x51e7=function(){return _0x2facb8;};return a0_0x51e7();}import{detectOverflow}from'@operato/utils';function onmouseover(_0x4d7055){const _0xf905a1=a0_0x2279,_0x131234=_0x4d7055[_0xf905a1(0x18d)];detectOverflow(_0x131234)&&_0x131234[_0xf905a1(0x190)](_0xf905a1(0x186),_0x131234[_0xf905a1(0x193)]);}function onmouseout(_0x152ec7){const _0x300d50=a0_0x2279;_0x152ec7[_0x300d50(0x18d)][_0x300d50(0x18e)](_0x300d50(0x186));}export const GristRendererMetaCodeSelector=(_0x5d6b69,_0x293e2a,_0x103011,_0x7f6e4,_0x1951da)=>{const _0x3041f5=a0_0x2279;let _0x1686fa='';if(_0x293e2a[_0x3041f5(0x184)]&&_0x293e2a[_0x3041f5(0x184)][_0x3041f5(0x183)]){if(_0x293e2a['record'][_0x3041f5(0x183)]['dispField']){if(_0x293e2a[_0x3041f5(0x184)][_0x3041f5(0x183)][_0x3041f5(0x181)]||(_0x293e2a[_0x3041f5(0x184)]['options'][_0x3041f5(0x181)]=[]),_0x5d6b69&&_0x5d6b69['length']>0x0){let _0x59a2d4=_0x293e2a[_0x3041f5(0x184)][_0x3041f5(0x183)][_0x3041f5(0x181)][_0x3041f5(0x185)](_0x23ceeb=>_0x23ceeb[_0x3041f5(0x18b)]===_0x5d6b69);_0x1686fa=_0x59a2d4&&_0x59a2d4['length']>0x0?_0x59a2d4[0x0][_0x3041f5(0x17f)]:_0x5d6b69;}}else _0x1686fa=_0x5d6b69;}else _0x1686fa='';return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x1686fa}</span>`;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa7f1e1,_0x19c0ce){const _0x1b3c52=a0_0x3040,_0x2f9efc=_0xa7f1e1();while(!![]){try{const _0x46ca2a=parseInt(_0x1b3c52(0x1eb))/0x1+parseInt(_0x1b3c52(0x1f4))/0x2*(parseInt(_0x1b3c52(0x1f5))/0x3)+-parseInt(_0x1b3c52(0x1f1))/0x4*(parseInt(_0x1b3c52(0x1f6))/0x5)+-parseInt(_0x1b3c52(0x1ee))/0x6*(parseInt(_0x1b3c52(0x1ef))/0x7)+parseInt(_0x1b3c52(0x1f8))/0x8+-parseInt(_0x1b3c52(0x1fb))/0x9+-parseInt(_0x1b3c52(0x1f0))/0xa*(-parseInt(_0x1b3c52(0x1f2))/0xb);if(_0x46ca2a===_0x19c0ce)break;else _0x2f9efc['push'](_0x2f9efc['shift']());}catch(_0x3e7357){_0x2f9efc['push'](_0x2f9efc['shift']());}}}(a0_0x4822,0x4aa68));import{html}from'lit';function a0_0x4822(){const _0x238404=['5060bSLdaR','record','108DrhBwe','5373KoYwea','9650ErbpOa','length','3471512JGyZkt','textContent','join','4103658RNfohi','target','nameField','343258EnOPuu','data-tooltip','removeAttribute','6EDeaSM','3817037RVLyBI','22380flfIIx','1236SdvikQ'];a0_0x4822=function(){return _0x238404;};return a0_0x4822();}import{detectOverflow}from'@operato/utils';function a0_0x3040(_0x246382,_0x28d413){const _0x482274=a0_0x4822();return a0_0x3040=function(_0x304028,_0x29af40){_0x304028=_0x304028-0x1ea;let _0x4e6907=_0x482274[_0x304028];return _0x4e6907;},a0_0x3040(_0x246382,_0x28d413);}function onmouseover(_0x4e347b){const _0x37b8d9=a0_0x3040,_0x1cefc5=_0x4e347b['target'];detectOverflow(_0x1cefc5)&&_0x1cefc5['setAttribute'](_0x37b8d9(0x1ec),_0x1cefc5[_0x37b8d9(0x1f9)]);}function onmouseout(_0x41e193){const _0x4b33c7=a0_0x3040;_0x41e193[_0x4b33c7(0x1fc)][_0x4b33c7(0x1ed)]('data-tooltip');}export const GristRendererMetaObjectSelector=(_0x2f4248,_0x2e1901,_0x650eb7,_0x52f4e1,_0x989266)=>{const _0x51bf69=a0_0x3040;let _0x2ed9b1='';if(_0x2f4248&&_0x2e1901[_0x51bf69(0x1f3)]['options']){let _0x3b1dd5=_0x2e1901[_0x51bf69(0x1f3)]['options'][_0x51bf69(0x1ea)]['split'](',');_0x2ed9b1=_0x2f4248[_0x3b1dd5[0x0]],_0x3b1dd5[_0x51bf69(0x1f7)]>0x1&&(_0x2ed9b1+='('+_0x3b1dd5['splice'](0x1)['map'](_0x5f273c=>_0x2f4248[_0x5f273c])[_0x51bf69(0x1fa)](',')+')');}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x2ed9b1}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x2efc38=a0_0x5457;(function(_0x3550c8,_0x347262){var _0x45e6ce=a0_0x5457,_0x30e34e=_0x3550c8();while(!![]){try{var _0x5219b5=parseInt(_0x45e6ce(0x179))/0x1+-parseInt(_0x45e6ce(0x187))/0x2*(-parseInt(_0x45e6ce(0x181))/0x3)+parseInt(_0x45e6ce(0x18a))/0x4*(-parseInt(_0x45e6ce(0x16d))/0x5)+parseInt(_0x45e6ce(0x176))/0x6*(-parseInt(_0x45e6ce(0x171))/0x7)+parseInt(_0x45e6ce(0x188))/0x8*(parseInt(_0x45e6ce(0x189))/0x9)+-parseInt(_0x45e6ce(0x180))/0xa+parseInt(_0x45e6ce(0x16f))/0xb;if(_0x5219b5===_0x347262)break;else _0x30e34e['push'](_0x30e34e['shift']());}catch(_0x31d787){_0x30e34e['push'](_0x30e34e['shift']());}}}(a0_0xecbe,0xe4ef5));import{css,html,LitElement}from'lit';function a0_0x5457(_0x21b876,_0x15b6c2){var _0xecbe1d=a0_0xecbe();return a0_0x5457=function(_0x5457fd,_0x106ce5){_0x5457fd=_0x5457fd-0x16c;var _0x2e5a25=_0xecbe1d[_0x5457fd];return _0x2e5a25;},a0_0x5457(_0x21b876,_0x15b6c2);}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';function a0_0xecbe(){var _0x1da5b2=['6Rflmxa','clickConfirm','firstUpdated','708570SopDrw','confirmCallback','codeEditor','ox-input-code','tButton','stringify','tText','829760JxOgEZ','3CSgrJH','confirm','changedValue','info','value','codeVlaue','912494GooUhW','10361584UPiBzJ','9CXQDHa','172dXTZjd','bind','107755UGbBKw','clickEmpty','3592864wKhLGM','code-input-editor-popup','5874771KFjKSN','clickCancel','NOTHING_CHANGED','connectedCallback','render'];a0_0xecbe=function(){return _0x1da5b2;};return a0_0xecbe();}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_0x4f4789=a0_0x596c;(function(_0x23fc7f,_0x37f8e4){var _0x1edf3f=a0_0x596c
|
|
|
19
19
|
display: flex;
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
|
-
`];async[
|
|
23
|
-
<ox-input-code mode="javascript" value=${this[
|
|
22
|
+
`];async[a0_0x2efc38(0x174)](){var _0x5474f3=a0_0x2efc38;'object'==typeof this[_0x5474f3(0x185)]?this[_0x5474f3(0x186)]=JSON[_0x5474f3(0x17e)](this['value'],0x0,0x2):this[_0x5474f3(0x186)]=this['value'],await super['connectedCallback']();}async['firstUpdated'](){var _0x4294aa=a0_0x2efc38;await super[_0x4294aa(0x178)]();}[a0_0x2efc38(0x175)](){var _0x28c96b=a0_0x2efc38;return html`
|
|
23
|
+
<ox-input-code mode="javascript" value=${this[_0x28c96b(0x186)]} 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[_0x28c96b(0x17d)]('empty')}" style="margin-left:7px;margin-top:7px;"
|
|
26
|
+
@click=${this[_0x28c96b(0x16e)][_0x28c96b(0x16c)](this)}>
|
|
27
27
|
</mwc-button>
|
|
28
|
-
<mwc-button raised label="${TermsUtil['tButton'](
|
|
29
|
-
@click=${this[
|
|
28
|
+
<mwc-button raised label="${TermsUtil['tButton']('cancel')}" style="margin-left:7px;margin-top:7px;"
|
|
29
|
+
@click=${this['clickCancel']['bind'](this)}>
|
|
30
30
|
</mwc-button>
|
|
31
|
-
<mwc-button raised label="${TermsUtil[
|
|
32
|
-
@click=${this[
|
|
31
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x28c96b(0x182))}" style="margin-left:7px;margin-top:7px;"
|
|
32
|
+
@click=${this[_0x28c96b(0x177)][_0x28c96b(0x16c)](this)}>
|
|
33
33
|
</mwc-button>
|
|
34
34
|
</div>
|
|
35
|
-
`;}get[
|
|
35
|
+
`;}get[a0_0x2efc38(0x17b)](){var _0x581f5c=a0_0x2efc38;return this['shadowRoot']['querySelector'](_0x581f5c(0x17c));}async['clickEmpty'](_0x52f79c){var _0x315bf5=a0_0x2efc38;this['confirmCallback']&&this[_0x315bf5(0x17a)](null),closePopup(this);}async[a0_0x2efc38(0x172)](_0x1f73a6){closePopup(this);}async[a0_0x2efc38(0x177)](_0x578a68){var _0x1d7355=a0_0x2efc38;this[_0x1d7355(0x186)]!==this['codeEditor'][_0x1d7355(0x185)]?this[_0x1d7355(0x183)](this[_0x1d7355(0x17b)][_0x1d7355(0x185)]):MetaApi['showToast'](_0x1d7355(0x184),TermsUtil[_0x1d7355(0x17f)](_0x1d7355(0x173)));}async[a0_0x2efc38(0x183)](_0x477601){var _0x4fa5c2=a0_0x2efc38;this[_0x4fa5c2(0x17a)]&&this[_0x4fa5c2(0x17a)](_0x477601),closePopup(this);}}customElements['define'](a0_0x2efc38(0x170),CodeInputEditorPopup);
|