@things-factory/meta-ui 6.0.134 → 6.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/bootstrap.js +31 -11
- package/client/component/filter/filter-form-meta-code-select.js +16 -0
- package/client/component/filter/filter-form-meta-object-select.js +16 -0
- package/client/component/filter/filter-grist-meta-code-select.js +16 -0
- package/client/component/filter/filter-grist-meta-object-select.js +16 -0
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +9 -0
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +9 -0
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -0
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -0
- package/client/component/selector/meta-object-selector-popup.js +40 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +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 +4 -4
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
- package/client/component/filter/filter-form-resource-code-select.js +0 -16
- package/client/component/filter/filter-grist-resource-code-select.js +0 -16
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +0 -11
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +0 -1
- package/client/component/selector/ox-resource-code-selector-popup.js +0 -40
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
(function(_0x3d2ce3,_0xd8fa56){const _0x1fa3ee=a0_0xdf2c,_0x12d8e2=_0x3d2ce3();while(!![]){try{const _0x4b7e07=parseInt(_0x1fa3ee(0x187))/0x1*(-parseInt(_0x1fa3ee(0x182))/0x2)+-parseInt(_0x1fa3ee(0x189))/0x3*(parseInt(_0x1fa3ee(0x18f))/0x4)+parseInt(_0x1fa3ee(0x190))/0x5*(parseInt(_0x1fa3ee(0x185))/0x6)+parseInt(_0x1fa3ee(0x18a))/0x7+-parseInt(_0x1fa3ee(0x180))/0x8+parseInt(_0x1fa3ee(0x18b))/0x9+-parseInt(_0x1fa3ee(0x184))/0xa*(-parseInt(_0x1fa3ee(0x194))/0xb);if(_0x4b7e07===_0xd8fa56)break;else _0x12d8e2['push'](_0x12d8e2['shift']());}catch(_0x284576){_0x12d8e2['push'](_0x12d8e2['shift']());}}}(a0_0x349f,0x7c377));import'../selector/ox-resource-code-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openResourceCodeSelector(_0x5c8024,_0x8160c0,_0x3229e8){const _0x262bed=a0_0xdf2c;var _0x49447d=html`
|
|
2
|
-
<ox-resource-code-selector-popup
|
|
3
|
-
.value=${_0x8160c0}
|
|
4
|
-
.options=${_0x5c8024[_0x262bed(0x17f)]}
|
|
5
|
-
.confirmCallback=${_0x3229e8}
|
|
6
|
-
></ox-resource-code-selector-popup>
|
|
7
|
-
`;openPopup(_0x49447d,{'backdrop':!0x0,'size':_0x262bed(0x198),'title':TermsUtil[_0x262bed(0x186)](_0x5c8024[_0x262bed(0x17f)][_0x262bed(0x18c)])});}function a0_0x349f(){const _0x170310=['selectorName','filter','ox-grid-header','573856JczdnW','5lKMJHh','length','form\x20[name=\x22','name','11QDoETB','target','codeField','dispField','large','renderRoot','filter-change','change','stopPropagation','tagName','options','6269104wkxBNZ','querySelector','2ubtobA','codes','4306090NiXoms','3454422xoXRgd','tMenu','280153boMuVb','value','3sIHNmt','3410232oaqkXl','2002716VjIzfu'];a0_0x349f=function(){return _0x170310;};return a0_0x349f();}function a0_0xdf2c(_0x418cc3,_0x593a82){const _0x349f62=a0_0x349f();return a0_0xdf2c=function(_0xdf2cf7,_0x3182fc){_0xdf2cf7=_0xdf2cf7-0x17f;let _0x2ea458=_0x349f62[_0xdf2cf7];return _0x2ea458;},a0_0xdf2c(_0x418cc3,_0x593a82);}export const FilterFormResourceCodeSelect=(_0xda5827,_0x18ddd4,_0x3872da)=>{const _0x142480=a0_0xdf2c,_0x25222a=_0xda5827['options'],_0x12340e=_0x25222a['codes']&&_0x25222a[_0x142480(0x183)]['length']>0x0?_0x25222a[_0x142480(0x183)]:void 0x0,{operator:_0x23092d='eq'}=_0xda5827;let _0x5d1093=_0x18ddd4?_0x18ddd4[_0x25222a[_0x142480(0x196)]]:'',_0x430895=_0x18ddd4?_0x18ddd4[_0x25222a[_0x142480(0x196)]]:'';if(_0x25222a['dispField']&&_0x18ddd4&&_0x12340e){let _0x918b71=_0x12340e[_0x142480(0x18d)](_0x2588ea=>_0x2588ea[_0x142480(0x188)]==_0x18ddd4);_0x918b71&&_0x918b71[_0x142480(0x191)]>0x0&&(_0x430895=_0x918b71[0x0][_0x25222a['dispField']]);}return'eq'===_0x23092d?html`
|
|
8
|
-
<input name='${_0xda5827['name']}' .value=${_0x5d1093} type="text" hidden></input>
|
|
9
|
-
<input
|
|
10
|
-
type="text"
|
|
11
|
-
readonly
|
|
12
|
-
name='${_0xda5827[_0x142480(0x193)]}_disp'
|
|
13
|
-
.value=${_0x430895}
|
|
14
|
-
@click=${_0x47240e=>{const _0x13cf8b=_0x142480;_0x47240e[_0x13cf8b(0x19c)]();const _0x3d31f3=_0x47240e[_0x13cf8b(0x195)];openResourceCodeSelector(_0xda5827,_0x18ddd4,_0x1c2d5c=>{const _0x2973df=_0x13cf8b;let _0x14f07a=_0x1c2d5c?_0x1c2d5c[_0x25222a['codeField']]:'',_0x300ff4=_0x14f07a;_0x1c2d5c&&_0x25222a[_0x2973df(0x197)]&&(_0x300ff4=_0x1c2d5c[_0x25222a[_0x2973df(0x197)]]),_0x3d31f3[_0x2973df(0x188)]=_0x300ff4,(_0x2973df(0x18e)==_0x3872da[_0x2973df(0x19d)]['toLowerCase']()?_0x3872da['renderRoot']['querySelector']('[name=\x22'+_0xda5827[_0x2973df(0x193)]+'\x22]'):_0x3872da[_0x2973df(0x199)][_0x2973df(0x181)](_0x2973df(0x192)+_0xda5827[_0x2973df(0x193)]+'\x22]'))['value']=_0x14f07a,_0x3d31f3['dispatchEvent'](new Event(_0x2973df(0x19b),{'bubbles':!0x0})),_0x3d31f3['dispatchEvent'](new CustomEvent(_0x2973df(0x19a),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0xda5827[_0x2973df(0x193)],'operator':_0x23092d,'value':_0x14f07a}}));});}}
|
|
15
|
-
/>
|
|
16
|
-
`:html``;};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function a0_0x3376(){const _0x5d0d2e=['length','tagName','target','querySelector','codeField','1444980RKfcEf','3238010fQYksS','stopPropagation','[name=\x22','value','name','9yELMzs','2130TFXlPZ','renderRoot','dispatchEvent','record','change','dispField','3492965kUmdRG','options','codes','382xyhJTU','form\x20[name=\x22','filter','17164kymMWc','filter-change','1468Jcwqkv','3491784zkOcLc','1446VfNaQv','11ROCIFT'];a0_0x3376=function(){return _0x5d0d2e;};return a0_0x3376();}(function(_0x43ef1e,_0x5661fc){const _0x2031e2=a0_0x345f,_0x14ac0b=_0x43ef1e();while(!![]){try{const _0x1622da=-parseInt(_0x2031e2(0x151))/0x1*(-parseInt(_0x2031e2(0x156))/0x2)+parseInt(_0x2031e2(0x15f))/0x3+parseInt(_0x2031e2(0x154))/0x4+parseInt(_0x2031e2(0x148))/0x5*(parseInt(_0x2031e2(0x158))/0x6)+-parseInt(_0x2031e2(0x14e))/0x7+parseInt(_0x2031e2(0x157))/0x8*(-parseInt(_0x2031e2(0x147))/0x9)+-parseInt(_0x2031e2(0x160))/0xa*(-parseInt(_0x2031e2(0x159))/0xb);if(_0x1622da===_0x5661fc)break;else _0x14ac0b['push'](_0x14ac0b['shift']());}catch(_0x12f75d){_0x14ac0b['push'](_0x14ac0b['shift']());}}}(a0_0x3376,0x3ed3a));import'../selector/ox-resource-code-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function a0_0x345f(_0x19bb87,_0x328f26){const _0x3376f3=a0_0x3376();return a0_0x345f=function(_0x345f75,_0xaa00ea){_0x345f75=_0x345f75-0x147;let _0x472e22=_0x3376f3[_0x345f75];return _0x472e22;},a0_0x345f(_0x19bb87,_0x328f26);}function openResourceCodeSelector(_0x50d9d7,_0x1d1a20,_0x516135){const _0x15e839=a0_0x345f;var _0x1d17c8=html`
|
|
2
|
-
<ox-resource-code-selector-popup
|
|
3
|
-
.value=${_0x1d1a20}
|
|
4
|
-
.options=${_0x50d9d7['record'][_0x15e839(0x14f)]}
|
|
5
|
-
.confirmCallback=${_0x516135}
|
|
6
|
-
></ox-resource-code-selector-popup>
|
|
7
|
-
`;openPopup(_0x1d17c8,{'backdrop':!0x0,'size':'large','title':TermsUtil['tMenu'](_0x50d9d7[_0x15e839(0x14b)][_0x15e839(0x14f)]['selectorName'])});}export const FilterGristResourceCodeSelect=(_0x1af138,_0x4c6ecd,_0x25ed59)=>{const _0x3c05df=a0_0x345f,_0xf6b41f=_0x1af138[_0x3c05df(0x153)],_0x7a32f0=_0x1af138[_0x3c05df(0x14b)][_0x3c05df(0x14f)],_0x30f6c4=_0x7a32f0['codes']&&_0x7a32f0[_0x3c05df(0x150)][_0x3c05df(0x15a)]>0x0?_0x7a32f0['codes']:void 0x0,{operator:_0x42b68a='eq'}=_0xf6b41f;let _0x35fd04=_0x4c6ecd?_0x4c6ecd[_0x7a32f0['codeField']]:'',_0x2aa178=_0x4c6ecd?_0x4c6ecd[_0x7a32f0[_0x3c05df(0x15e)]]:'';if(_0x7a32f0[_0x3c05df(0x14d)]&&_0x4c6ecd&&_0x30f6c4){let _0x37c97f=_0x30f6c4[_0x3c05df(0x153)](_0x97db53=>_0x97db53[_0x3c05df(0x163)]==_0x4c6ecd);_0x37c97f&&_0x37c97f['length']>0x0&&(_0x2aa178=_0x37c97f[0x0][_0x7a32f0['dispField']]);}return'eq'===_0x42b68a?html`
|
|
8
|
-
<input name='${_0x1af138[_0x3c05df(0x164)]}' .value=${_0x35fd04} type="text" hidden></input>
|
|
9
|
-
<input
|
|
10
|
-
type="text"
|
|
11
|
-
readonly
|
|
12
|
-
name='${_0x1af138[_0x3c05df(0x164)]}_disp'
|
|
13
|
-
.value=${_0x2aa178}
|
|
14
|
-
@click=${_0x1dc8bc=>{const _0x511a9d=_0x3c05df;_0x1dc8bc[_0x511a9d(0x161)]();const _0x3972d3=_0x1dc8bc[_0x511a9d(0x15c)];openResourceCodeSelector(_0x1af138,_0x4c6ecd,_0x3036f9=>{const _0x47939a=_0x511a9d;let _0x42a6bc=_0x3036f9?_0x3036f9[_0x7a32f0['codeField']]:'',_0x2dd29e=_0x42a6bc;_0x3036f9&&_0x7a32f0[_0x47939a(0x14d)]&&(_0x2dd29e=_0x3036f9[_0x7a32f0['dispField']]),_0x3972d3[_0x47939a(0x163)]=_0x2dd29e,('ox-grid-header'==_0x25ed59[_0x47939a(0x15b)]['toLowerCase']()?_0x25ed59[_0x47939a(0x149)][_0x47939a(0x15d)](_0x47939a(0x162)+_0xf6b41f[_0x47939a(0x164)]+'\x22]'):_0x25ed59[_0x47939a(0x149)]['querySelector'](_0x47939a(0x152)+_0xf6b41f[_0x47939a(0x164)]+'\x22]'))['value']=_0x42a6bc,_0x3972d3[_0x47939a(0x14a)](new Event(_0x47939a(0x14c),{'bubbles':!0x0})),_0x3972d3[_0x47939a(0x14a)](new CustomEvent(_0x47939a(0x155),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x1af138['name'],'operator':_0x42b68a,'value':_0x42a6bc}}));});}}
|
|
15
|
-
/>
|
|
16
|
-
`:html``;};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const a0_0x404b11=a0_0x145e;function a0_0x2b15(){const _0x5ac9d4=['280fFwnqg','dispField','3KXQzuU','stopPropagation','_onkeydown','length','10iNbMyx','5605039uodjgI','properties','7034MLKpmg','popup','36mJhuKi','large','filter','row','value','field-change','364013teIWRY','options','firstUpdated','7816dnqqbu','6859265WbLaPg','openSelector','Enter','record','codeField','2740236XkwNnK','column','564EzWYuq','codes','key','bind','1001020GpgkIy','5589msWfKZ','tMenu','editorTemplate'];a0_0x2b15=function(){return _0x5ac9d4;};return a0_0x2b15();}function a0_0x145e(_0x40f87c,_0x2ce658){const _0x2b1528=a0_0x2b15();return a0_0x145e=function(_0x145e59,_0x198c4b){_0x145e59=_0x145e59-0x120;let _0x1aabb4=_0x2b1528[_0x145e59];return _0x1aabb4;},a0_0x145e(_0x40f87c,_0x2ce658);}(function(_0x5901f7,_0x3d0291){const _0x17ecc4=a0_0x145e,_0x49663a=_0x5901f7();while(!![]){try{const _0xc8a3bb=-parseInt(_0x17ecc4(0x140))/0x1*(parseInt(_0x17ecc4(0x137))/0x2)+-parseInt(_0x17ecc4(0x139))/0x3*(parseInt(_0x17ecc4(0x12d))/0x4)+-parseInt(_0x17ecc4(0x133))/0x5*(-parseInt(_0x17ecc4(0x142))/0x6)+parseInt(_0x17ecc4(0x128))/0x7+parseInt(_0x17ecc4(0x127))/0x8*(-parseInt(_0x17ecc4(0x134))/0x9)+-parseInt(_0x17ecc4(0x13d))/0xa*(parseInt(_0x17ecc4(0x13e))/0xb)+parseInt(_0x17ecc4(0x12f))/0xc*(parseInt(_0x17ecc4(0x124))/0xd);if(_0xc8a3bb===_0x3d0291)break;else _0x49663a['push'](_0x49663a['shift']());}catch(_0x339679){_0x49663a['push'](_0x49663a['shift']());}}}(a0_0x2b15,0xad9a9));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../../selector/ox-resource-code-selector-popup';export class OxGristEditorResourceCodeSelector extends OxGristEditor{static get[a0_0x404b11(0x13f)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x404b11(0x136)](){const _0x45e22e=a0_0x404b11;let _0x52236b,_0x51e15d=this[_0x45e22e(0x12e)]['record'][_0x45e22e(0x125)][_0x45e22e(0x130)]||[];if(!this[_0x45e22e(0x12e)][_0x45e22e(0x12b)][_0x45e22e(0x125)]['dispField'])return html`
|
|
2
|
-
${this[_0x45e22e(0x122)]?html` <span tabindex="0" style="flex:1">${this[_0x45e22e(0x122)]}</span> `:html`<span tabindex="0"></span>`}
|
|
3
|
-
`;if(this['value']&&this[_0x45e22e(0x122)]['length']>0x0){let _0x3015f2=_0x51e15d[_0x45e22e(0x120)](_0xbd4e29=>_0xbd4e29[_0x45e22e(0x122)]===this[_0x45e22e(0x122)]);_0x52236b=_0x3015f2&&_0x3015f2[_0x45e22e(0x13c)]>0x0?_0x3015f2[0x0]['display']:'';}return html`
|
|
4
|
-
${_0x52236b?html` <span tabindex="0" style="flex:1">${_0x52236b}</span> `:html`<span tabindex="0"></span>`}
|
|
5
|
-
`;}async[a0_0x404b11(0x126)](){const _0x1c46d7=a0_0x404b11;super[_0x1c46d7(0x126)]();}['_onclick'](_0x1c4066){const _0x26613e=a0_0x404b11;_0x1c4066[_0x26613e(0x13a)](),this[_0x26613e(0x129)]();}[a0_0x404b11(0x13b)](_0x279745){const _0x522b57=a0_0x404b11;_0x522b57(0x12a)==_0x279745[_0x522b57(0x131)]&&(_0x279745[_0x522b57(0x13a)](),this[_0x522b57(0x129)]());}[a0_0x404b11(0x129)](){const _0xbc6d80=a0_0x404b11;this[_0xbc6d80(0x141)]&&delete this[_0xbc6d80(0x141)];var {selectorName:_0x5d18a2=''}=this[_0xbc6d80(0x12e)][_0xbc6d80(0x12b)]['options']||{},_0x45cde5=html`
|
|
6
|
-
<ox-resource-code-selector-popup
|
|
7
|
-
.value=${this[_0xbc6d80(0x122)]}
|
|
8
|
-
.options=${this[_0xbc6d80(0x12e)][_0xbc6d80(0x12b)][_0xbc6d80(0x125)]}
|
|
9
|
-
.confirmCallback=${(_0x3a0e08=>{const _0xf06984=_0xbc6d80;let _0x4fdd0c=this[_0xf06984(0x12e)]['record'][_0xf06984(0x125)][_0xf06984(0x12c)],_0x1cda69=this[_0xf06984(0x12e)]['record'][_0xf06984(0x125)][_0xf06984(0x138)];this[_0xf06984(0x12e)]['record']['options'][_0xf06984(0x130)]||(this['column']['record']['options'][_0xf06984(0x130)]=[]);let _0x5c09d2=this[_0xf06984(0x12e)][_0xf06984(0x12b)][_0xf06984(0x125)][_0xf06984(0x130)][_0xf06984(0x120)](_0x5f0383=>_0x5f0383['value']==_0x3a0e08[_0x4fdd0c]);_0x5c09d2&&0x0!=_0x5c09d2[_0xf06984(0x13c)]||this[_0xf06984(0x12e)][_0xf06984(0x12b)][_0xf06984(0x125)][_0xf06984(0x130)]['push']({'value':_0x3a0e08[_0x4fdd0c],'display':_0x3a0e08[_0x1cda69]}),this['dispatchEvent'](new CustomEvent(_0xf06984(0x123),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0xf06984(0x122)],'after':_0x3a0e08?_0x3a0e08[_0x4fdd0c]:null,'record':this[_0xf06984(0x12b)],'column':this[_0xf06984(0x12e)],'row':this[_0xf06984(0x121)]}}));})[_0xbc6d80(0x132)](this)}
|
|
10
|
-
></ox-resource-code-selector-popup>
|
|
11
|
-
`;this['popup']=openPopup(_0x45cde5,{'backdrop':!0x0,'size':_0xbc6d80(0x143),'title':TermsUtil[_0xbc6d80(0x135)](_0x5d18a2)});}}customElements['define']('ox-grist-editor-resource-code-selector',OxGristEditorResourceCodeSelector);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x5f2766,_0x252b38){const _0x5bc5d2=a0_0x4c47,_0x550021=_0x5f2766();while(!![]){try{const _0x2e5712=parseInt(_0x5bc5d2(0x1e9))/0x1*(-parseInt(_0x5bc5d2(0x1d7))/0x2)+-parseInt(_0x5bc5d2(0x1da))/0x3+-parseInt(_0x5bc5d2(0x1d9))/0x4+-parseInt(_0x5bc5d2(0x1e4))/0x5*(-parseInt(_0x5bc5d2(0x1dc))/0x6)+-parseInt(_0x5bc5d2(0x1e5))/0x7+-parseInt(_0x5bc5d2(0x1e6))/0x8+parseInt(_0x5bc5d2(0x1de))/0x9;if(_0x2e5712===_0x252b38)break;else _0x550021['push'](_0x550021['shift']());}catch(_0x4fe2ff){_0x550021['push'](_0x550021['shift']());}}}(a0_0x2379,0xbcbce));function a0_0x2379(){const _0x2b02c2=['5220460lwjvLz','6340688yGaZQa','target','data-tooltip','31118DXSmBt','value','84aFAczv','record','143396eseOuL','1556619GzSkup','codes','3960xEgOeh','removeAttribute','24454386TUzgQM','display','dispField','setAttribute','options','length','11030uVVhCe'];a0_0x2379=function(){return _0x2b02c2;};return a0_0x2379();}function a0_0x4c47(_0xbab5d6,_0x540702){const _0x237923=a0_0x2379();return a0_0x4c47=function(_0x4c47ce,_0x595776){_0x4c47ce=_0x4c47ce-0x1d7;let _0x2c147f=_0x237923[_0x4c47ce];return _0x2c147f;},a0_0x4c47(_0xbab5d6,_0x540702);}import{html}from'lit';import{detectOverflow}from'@operato/utils';function onmouseover(_0xe85e01){const _0xea1d67=a0_0x4c47,_0x146521=_0xe85e01[_0xea1d67(0x1e7)];detectOverflow(_0x146521)&&_0x146521[_0xea1d67(0x1e1)](_0xea1d67(0x1e8),_0x146521['textContent']);}function onmouseout(_0x545f2a){const _0x23c491=a0_0x4c47;_0x545f2a['target'][_0x23c491(0x1dd)]('data-tooltip');}export const OxGristRendererResourceCodeSelector=(_0x48abba,_0x5e9302,_0x907820,_0x51c521,_0x26a9d2)=>{const _0x4c8da6=a0_0x4c47;if(!_0x5e9302['record'][_0x4c8da6(0x1e2)][_0x4c8da6(0x1e0)])return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x48abba}</span>`;_0x5e9302[_0x4c8da6(0x1d8)]['options']['codes']||(_0x5e9302[_0x4c8da6(0x1d8)][_0x4c8da6(0x1e2)][_0x4c8da6(0x1db)]=[]);let _0x2778d1='';if(_0x48abba&&_0x48abba[_0x4c8da6(0x1e3)]>0x0){let _0xf0d299=_0x5e9302[_0x4c8da6(0x1d8)]['options'][_0x4c8da6(0x1db)]['filter'](_0x5609dc=>_0x5609dc[_0x4c8da6(0x1ea)]===_0x48abba);_0x2778d1=_0xf0d299&&_0xf0d299['length']>0x0?_0xf0d299[0x0][_0x4c8da6(0x1df)]:_0x48abba;}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x2778d1}</span>`;};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const a0_0x57d356=a0_0x291e;(function(_0x31cbbf,_0x3c553a){const _0x4a420f=a0_0x291e,_0x2ef191=_0x31cbbf();while(!![]){try{const _0x284c61=-parseInt(_0x4a420f(0xad))/0x1*(parseInt(_0x4a420f(0xb8))/0x2)+-parseInt(_0x4a420f(0x7f))/0x3*(-parseInt(_0x4a420f(0x8a))/0x4)+-parseInt(_0x4a420f(0xbd))/0x5*(-parseInt(_0x4a420f(0x9f))/0x6)+-parseInt(_0x4a420f(0xb0))/0x7*(parseInt(_0x4a420f(0x92))/0x8)+-parseInt(_0x4a420f(0x74))/0x9*(-parseInt(_0x4a420f(0x78))/0xa)+-parseInt(_0x4a420f(0xa4))/0xb+-parseInt(_0x4a420f(0xaa))/0xc*(parseInt(_0x4a420f(0x97))/0xd);if(_0x284c61===_0x3c553a)break;else _0x2ef191['push'](_0x2ef191['shift']());}catch(_0x21c0f7){_0x2ef191['push'](_0x2ef191['shift']());}}}(a0_0x4525,0x2445a));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';function a0_0x291e(_0x5c93c9,_0xcdf7db){const _0x4525ac=a0_0x4525();return a0_0x291e=function(_0x291ec6,_0x75251e){_0x291ec6=_0x291ec6-0x72;let _0x17b101=_0x4525ac[_0x291ec6];return _0x17b101;},a0_0x291e(_0x5c93c9,_0xcdf7db);}import{MetaApi}from'../../utils/meta-api';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class OxResourceCodeSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
|
-
:host {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
|
|
6
|
-
background-color: #fff;
|
|
7
|
-
|
|
8
|
-
width: var(--overlay-center-normal-width, 50%);
|
|
9
|
-
height: var(--overlay-center-normal-height, 50%);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
ox-grist {
|
|
13
|
-
flex: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.button-container {
|
|
17
|
-
display: flex;
|
|
18
|
-
margin-left: auto;
|
|
19
|
-
}
|
|
20
|
-
`];async['connectedCallback'](){const _0x42a681=a0_0x291e;this[_0x42a681(0x87)]=this['options'][_0x42a681(0x9d)]||[];let _0x399b23=[...MetaApi[_0x42a681(0x7a)](!0x0,!0x1)],_0x136fb7=(this[_0x42a681(0x86)][_0x42a681(0x94)]&&this[_0x42a681(0x86)][_0x42a681(0x94)][_0x42a681(0x88)]>0x0?this['options'][_0x42a681(0x94)]:[this[_0x42a681(0x86)][_0x42a681(0xb7)]])[_0x42a681(0xbc)](_0x4e9b20=>{const _0x3d3ce4=_0x42a681;let {name:_0x32040d,operator:_0x1da66a='eq'}=_0x3d3ce4(0x75)==typeof _0x4e9b20?_0x4e9b20:{'name':_0x4e9b20};return{'name':_0x32040d,'operator':_0x1da66a};});if(this[_0x42a681(0x86)][_0x42a681(0x84)]&&this['options']['select'][_0x42a681(0x88)]>0x0)for(let _0xf7cada=0x0;_0xf7cada<this[_0x42a681(0x86)][_0x42a681(0x84)][_0x42a681(0x88)];_0xf7cada++){let {type:_0x14402d=_0x42a681(0x85),name:_0x3c3a9e,hidden:_0x201b83=!0x1,record:_0x5ccf91={'align':_0x42a681(0x8f)},header:_0x153855,sortable:_0x1e213a=!0x1,width:_0x2d0734=0x87,options:_0x5b3d10}=this[_0x42a681(0x86)][_0x42a681(0x84)][_0xf7cada];if(0x1==_0x201b83)_0x399b23[_0x42a681(0x82)]({'type':_0x42a681(0x85),'name':_0x3c3a9e,'hidden':!0x0});else{let _0x1386c2=MetaApi[_0x42a681(0xbe)](_0x14402d,_0x3c3a9e,_0x153855||_0x3c3a9e,_0x5ccf91['align']?_0x5ccf91[_0x42a681(0xac)]:_0x42a681(0x8f),!0x1,_0x1e213a,_0x2d0734);'select'===_0x14402d?Array[_0x42a681(0xae)](_0x5b3d10)?_0x1386c2[_0x42a681(0x91)][_0x42a681(0x86)]=_0x5b3d10:_0x42a681(0x72)===_0x5b3d10[_0x42a681(0xc1)]?_0x1386c2[_0x42a681(0x91)][_0x42a681(0x86)]=await ServiceUtil[_0x42a681(0xa2)](_0x5b3d10[_0x42a681(0xa7)]?_0x5b3d10[_0x42a681(0xa7)]:_0x5b3d10[_0x42a681(0x79)]):_0x42a681(0x8b)===_0x5b3d10[_0x42a681(0xc1)]?_0x1386c2[_0x42a681(0x91)][_0x42a681(0x86)]=await ServiceUtil[_0x42a681(0x7b)](_0x5b3d10['name'],_0x5b3d10[_0x42a681(0xa0)]):_0x42a681(0x77)===_0x5b3d10[_0x42a681(0xc1)]&&(_0x1386c2['record'][_0x42a681(0x86)]=await ServiceUtil[_0x42a681(0xb1)](_0x5b3d10[_0x42a681(0xa0)])):_0x42a681(0x75)===_0x14402d||_0x42a681(0x8c)===_0x14402d?(_0x5b3d10[_0x42a681(0x84)]&&_0x5b3d10[_0x42a681(0x84)][_0x42a681(0x81)](_0x49e024=>{const _0x4c3bf0=_0x42a681;_0x49e024[_0x4c3bf0(0x8e)]||(_0x49e024[_0x4c3bf0(0x8e)]=_0x49e024[_0x4c3bf0(0x79)]),_0x49e024[_0x4c3bf0(0x8e)]=TermsUtil['tLabel'](_0x49e024[_0x4c3bf0(0x8e)]);}),_0x1386c2[_0x42a681(0x91)]['options']=_0x5b3d10):_0x42a681(0x8d)==_0x14402d&&(_0x1386c2[_0x42a681(0x91)][_0x42a681(0x86)]=object_opt,_0x1386c2['record']['options'][_0x42a681(0x9e)]=await ServiceUtil[_0x42a681(0xb1)](object_opt)),_0x399b23['push'](_0x1386c2);}}else _0x399b23[_0x42a681(0x82)](MetaApi[_0x42a681(0xbe)](_0x42a681(0x85),this[_0x42a681(0x86)][_0x42a681(0xb7)],this[_0x42a681(0x86)][_0x42a681(0xb7)],_0x42a681(0x8f),!0x1,!0x0,0xb4)),this[_0x42a681(0x86)][_0x42a681(0xb9)]&&_0x399b23[_0x42a681(0x82)](MetaApi[_0x42a681(0xbe)](_0x42a681(0x85),this[_0x42a681(0x86)]['dispField'],this['options']['dispField'],_0x42a681(0x8f),!0x1,!0x0,0x12c));_0x399b23[_0x42a681(0x81)](_0x652026=>{const _0x1a5f07=_0x42a681;let _0x16c66e=_0x136fb7[_0x1a5f07(0x73)](_0x2c950a=>_0x652026[_0x1a5f07(0x79)]==_0x2c950a[_0x1a5f07(0x79)]);_0x16c66e&&_0x16c66e[_0x1a5f07(0x88)]>0x0&&(_0x652026[_0x1a5f07(0x73)]=_0x16c66e);});let _0x28b636={'rows':MetaApi[_0x42a681(0xbf)](!0x1),'pagination':MetaApi[_0x42a681(0xbb)](),'appendable':!0x1,'columns':_0x399b23,'sorters':[...this[_0x42a681(0x86)][_0x42a681(0x83)]||[]]};_0x28b636['rows'][_0x42a681(0x76)]={'click':_0x42a681(0xa9),'dblclick':(_0x1faefa,_0x334c70,_0x3882b8,_0x1b0779,_0x12e78e,_0x4e73c8)=>{const _0x36fdec=_0x42a681;this[_0x36fdec(0x95)](_0x1b0779);}},this[_0x42a681(0xb5)]=_0x28b636,await super[_0x42a681(0xa5)]();}async[a0_0x57d356(0x80)](){const _0x3106d1=a0_0x57d356;await super[_0x3106d1(0x80)]();}[a0_0x57d356(0xc0)](){const _0x28bfba=a0_0x57d356;return html`
|
|
21
|
-
<ox-grist id="ox-grist" .config=${this[_0x28bfba(0xb5)]} .mode=${isMobileDevice()?_0x28bfba(0x7c):_0x28bfba(0x99)} auto-fetch
|
|
22
|
-
.fetchHandler=${this[_0x28bfba(0xb3)][_0x28bfba(0x93)](this)}>
|
|
23
|
-
<div slot="headroom">
|
|
24
|
-
<div id="filters">
|
|
25
|
-
<ox-filters-form></ox-filters-form>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</ox-grist>
|
|
29
|
-
<div id="button-container" class="button-container">
|
|
30
|
-
<mwc-button raised label="${TermsUtil[_0x28bfba(0xb4)](_0x28bfba(0x9c))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
-
@click=${this[_0x28bfba(0xb6)][_0x28bfba(0x93)](this)}>
|
|
32
|
-
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[_0x28bfba(0xb4)](_0x28bfba(0xaf))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
-
@click=${this[_0x28bfba(0x98)][_0x28bfba(0x93)](this)}>
|
|
35
|
-
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[_0x28bfba(0xb4)](_0x28bfba(0x84))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
-
@click=${this[_0x28bfba(0x9a)][_0x28bfba(0x93)](this)}>
|
|
38
|
-
</mwc-button>
|
|
39
|
-
</div>
|
|
40
|
-
`;}get[a0_0x57d356(0xab)](){const _0x99aaef=a0_0x57d356;return this[_0x99aaef(0x90)][_0x99aaef(0xa8)]('#ox-grist');}async[a0_0x57d356(0xb3)]({page:_0x36a5aa=0x0,limit:_0x1c9c50=0x0,sorters:_0x496a50=[],filters:_0x5be8cf=[]}){const _0x198148=a0_0x57d356;let _0x5e4604=[...this[_0x198148(0x87)]];_0x5be8cf['forEach'](_0x32c17d=>{const _0x51ebbe=_0x198148;let _0x2c6173=_0x5e4604['filter'](_0x41ee9e=>_0x32c17d[_0x51ebbe(0x79)]==_0x41ee9e[_0x51ebbe(0x79)]);_0x2c6173&&_0x2c6173[_0x51ebbe(0x88)]>0x0&&delete _0x5e4604[_0x32c17d[_0x51ebbe(0x79)]],_0x5e4604[_0x51ebbe(0x82)](_0x32c17d);});let _0x46d99e=MetaApi[_0x198148(0x9b)](this['gridConfig'][_0x198148(0x7e)]);return await MetaApi[_0x198148(0xa3)](this[_0x198148(0x86)][_0x198148(0xa1)],_0x5e4604,_0x496a50,_0x36a5aa,_0x1c9c50,_0x46d99e);}async[a0_0x57d356(0xb6)](_0x1d70dd){const _0x19f71a=a0_0x57d356;this[_0x19f71a(0x96)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x57d356(0x98)](_0x4d1f99){closePopup(this);}async[a0_0x57d356(0x9a)](_0x8a2796){const _0x3f3673=a0_0x57d356;let _0x2f8437=this['grist']['selected'];_0x2f8437&&0x0!=_0x2f8437[_0x3f3673(0x88)]?this[_0x3f3673(0x95)](_0x2f8437[0x0]):MetaApi[_0x3f3673(0xba)](_0x3f3673(0x7d),TermsUtil[_0x3f3673(0x89)]('NOTHING_SELECTED'));}async[a0_0x57d356(0x95)](_0x1f0fa5){const _0x4c327f=a0_0x57d356;this[_0x4c327f(0x96)]&&this[_0x4c327f(0x96)](_0x1f0fa5),closePopup(this);}}function a0_0x4525(){const _0x545474=['showToast','getGristPagination100Config','map','5gruuHN','getGristColumnConfig2','getGristSelectableConfig','render','type','code','filter','1268361LMVXts','object','handlers','entity','10lroSZB','name','getGristGuttersConfig','getCodeByScenario','LIST','info','columns','780411RDLGXL','firstUpdated','forEach','push','sorters','select','string','options','search_hidden_fields','length','tText','4xLHPNZ','scenario','resource-object','resource-code-selector','header','left','shadowRoot','record','778432ZiRlDr','bind','filterFields','selectRecord','confirmCallback','117siedoF','clickCancel','GRID','clickSelect','getSelectColumns','empty','filters','codes','541446WojAaO','args','queryName','getCodeSelectorData','searchByPagination','382041tjciEk','connectedCallback','ox-resource-code-selector-popup','values','querySelector','select-row-toggle','48876ekBuRg','grist','align','577JZsARz','isArray','cancel','14cTRSKa','getCodeByEntity','define','fetchHandler','tButton','gridConfig','clickEmpty','codeField','266VPbleO','dispField'];a0_0x4525=function(){return _0x545474;};return a0_0x4525();}customElements[a0_0x57d356(0xb2)](a0_0x57d356(0xa6),OxResourceCodeSelectorPopup);
|