@things-factory/meta-ui 6.1.80 → 6.1.82
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 +26 -0
- 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 +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/file-upload-popup.js +11 -11
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/index.js +0 -2
- 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 +127 -0
- package/client/pages/activity/meta-activity-list-page.js +7 -7
- 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 -0
- package/client/pages/button-role/button-role-page.js +1 -0
- package/client/pages/entity/config-entity.js +28 -28
- 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 +16 -16
- package/client/pages/menu/export-menu-popup.js +6 -6
- 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 +5 -5
- 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/route.js +10 -0
- 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 +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/button-role/button-role-mutation.js +1 -0
- package/server/service/button-role/button-role-query.js +1 -0
- package/server/service/button-role/button-role-type.js +1 -0
- package/server/service/button-role/button-role.js +1 -0
- package/server/service/button-role/index.js +9 -0
- 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/index.js +8 -0
- package/server/service/menu-button-auth/index.js +9 -0
- package/server/service/menu-button-auth/menu-button-auth-mutation.js +1 -0
- package/server/service/menu-button-auth/menu-button-auth-query.js +1 -0
- package/server/service/menu-button-auth/menu-button-auth-type.js +1 -0
- package/server/service/menu-button-auth/menu-button-auth.js +1 -0
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
- package/translations/en.json +1 -0
- package/translations/ko.json +2 -1
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x525fe8=a0_0x169b;(function(_0x2d1af8,_0x1b365a){const _0x1f231a=a0_0x169b,_0x86a6e6=_0x2d1af8();while(!![]){try{const _0x1c108b=-parseInt(_0x1f231a(0x16c))/0x1*(-parseInt(_0x1f231a(0x162))/0x2)+parseInt(_0x1f231a(0x174))/0x3+-parseInt(_0x1f231a(0x183))/0x4+parseInt(_0x1f231a(0x17e))/0x5+-parseInt(_0x1f231a(0x167))/0x6+parseInt(_0x1f231a(0x16d))/0x7+parseInt(_0x1f231a(0x175))/0x8*(-parseInt(_0x1f231a(0x173))/0x9);if(_0x1c108b===_0x1b365a)break;else _0x86a6e6['push'](_0x86a6e6['shift']());}catch(_0x171b49){_0x86a6e6['push'](_0x86a6e6['shift']());}}}(a0_0x5054,0xe1cd1));function a0_0x5054(){const _0x44e397=['category','label.error','tText','5184520RufcLG','mutate','define','tButton','properties','1827380WSUfkq','_template','showAlertPopup','tLabel','TEMPLATE_TYPES','dispatchEvent','_createAttachment','querySelector','description','file_upload','connectedCallback','],\x20input[name=','checkValidity','template-uploaded','confirm','4fHzWkq','_getAttachmentInfo','_getInputByName','templateTypes','codeItems','66090zaYnWA','render','renderRoot','create','customElements','801677sImbxl','9387567lawwKI','error','files','styles','file-upload-popup','back','8586054dvViOu','3682278EmaxfJ','32XpejtA','map','errors','message','please_select_upload_category','select[name='];a0_0x5054=function(){return _0x44e397;};return a0_0x5054();}import{client,gqlContext}from'@things-factory/shell';import{css,html,LitElement}from'lit';import{SingleColumnFormStyles}from'@things-factory/form-ui';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import a0_0x29a7b3 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';function a0_0x169b(_0x4ce2a4,_0x37478a){const _0x50540d=a0_0x5054();return a0_0x169b=function(_0x169b8b,_0x4d5db6){_0x169b8b=_0x169b8b-0x156;let _0x1f50c9=_0x50540d[_0x169b8b];return _0x1f50c9;},a0_0x169b(_0x4ce2a4,_0x37478a);}import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';class FileUploadPopup extends LitElement{static get[a0_0x525fe8(0x170)](){return[SingleColumnFormStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
padding: 10px;
|
|
4
4
|
display: flex;
|
|
@@ -27,30 +27,30 @@ const a0_0x58449d=a0_0x1152;(function(_0x2ac567,_0x457466){const _0x205cd3=a0_0x
|
|
|
27
27
|
.button-container > button:active {
|
|
28
28
|
background-color: var(--button-background-focus-color);
|
|
29
29
|
}
|
|
30
|
-
`];}static get[
|
|
30
|
+
`];}static get[a0_0x525fe8(0x182)](){return{'templateTypes':Array};}async[a0_0x525fe8(0x15d)](){const _0x5da027=a0_0x525fe8;super[_0x5da027(0x15d)](),this[_0x5da027(0x165)]=await ServiceUtil[_0x5da027(0x166)](_0x5da027(0x157));}[a0_0x525fe8(0x168)](){const _0x3e7eca=a0_0x525fe8;return html`
|
|
31
31
|
<div>
|
|
32
32
|
<form id="input-form" class="single-column-form">
|
|
33
33
|
<fieldset>
|
|
34
|
-
<legend>${TermsUtil[
|
|
35
|
-
<label>${TermsUtil[
|
|
34
|
+
<legend>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x15c))}</legend>
|
|
35
|
+
<label>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x15c))}</label>
|
|
36
36
|
<file-uploader custom-input id="uploadTemplate" name="attachments"></file-uploader>
|
|
37
37
|
|
|
38
|
-
<label>${TermsUtil[
|
|
38
|
+
<label>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x17b))}</label>
|
|
39
39
|
<select name="category" required>
|
|
40
|
-
<option value="">${TermsUtil[
|
|
41
|
-
${(this[
|
|
40
|
+
<option value="">${TermsUtil[_0x3e7eca(0x17d)](_0x3e7eca(0x179))}</option>
|
|
41
|
+
${(this[_0x3e7eca(0x165)]||[])[_0x3e7eca(0x176)](_0x186977=>{const {name:_0x12e0d7,description:_0x3f9482}=_0x186977;return html` <option value="${_0x12e0d7}">${_0x12e0d7} ${_0x3f9482?'\x20('+_0x3f9482+')':''}</option> `;})}
|
|
42
42
|
</select>
|
|
43
43
|
|
|
44
|
-
<label>${TermsUtil[
|
|
44
|
+
<label>${TermsUtil['tLabel'](_0x3e7eca(0x15b))}</label>
|
|
45
45
|
<input name="description" />
|
|
46
46
|
</fieldset>
|
|
47
47
|
</form>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
50
50
|
<div class="button-container">
|
|
51
|
-
<mwc-button raised @click="${this[
|
|
51
|
+
<mwc-button raised @click="${this[_0x3e7eca(0x159)]}" label="${TermsUtil[_0x3e7eca(0x181)](_0x3e7eca(0x16a))}"></mwc-button>
|
|
52
52
|
</div>
|
|
53
|
-
`;}get[
|
|
53
|
+
`;}get['_template'](){const _0xca5449=a0_0x525fe8;return this[_0xca5449(0x169)][_0xca5449(0x15a)]('#uploadTemplate');}async[a0_0x525fe8(0x159)](){const _0x56e78e=a0_0x525fe8;try{const _0x1f4729=this['_getAttachmentInfo']();(await client[_0x56e78e(0x17f)]({'mutation':a0_0x29a7b3`
|
|
54
54
|
mutation ($attachment: NewAttachment!) {
|
|
55
55
|
createAttachment(attachment: $attachment) {
|
|
56
56
|
id
|
|
@@ -58,4 +58,4 @@ const a0_0x58449d=a0_0x1152;(function(_0x2ac567,_0x457466){const _0x205cd3=a0_0x
|
|
|
58
58
|
path
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
`,'variables':{'attachment':
|
|
61
|
+
`,'variables':{'attachment':_0x1f4729},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x56e78e(0x177)]||(history[_0x56e78e(0x172)](),this[_0x56e78e(0x158)](new CustomEvent(_0x56e78e(0x160),{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x348785){MetaApi[_0x56e78e(0x185)](_0x56e78e(0x17c),_0x348785[_0x56e78e(0x178)],_0x56e78e(0x16e),_0x56e78e(0x161));}}[a0_0x525fe8(0x163)](){const _0x4f8bd1=a0_0x525fe8;if(this['renderRoot'][_0x4f8bd1(0x15a)]('form')[_0x4f8bd1(0x15f)]())return{'file':this[_0x4f8bd1(0x184)][_0x4f8bd1(0x16f)][0x0],'category':this[_0x4f8bd1(0x164)](_0x4f8bd1(0x17b))['value'],'description':this[_0x4f8bd1(0x164)](_0x4f8bd1(0x15b))['value']};throw new Error(TermsUtil['tText']('text.attachment_info_not_valid'));}[a0_0x525fe8(0x164)](_0x4a0e47){const _0x579605=a0_0x525fe8;return this[_0x579605(0x169)][_0x579605(0x15a)](_0x579605(0x17a)+_0x4a0e47+_0x579605(0x15e)+_0x4a0e47+']');}}window[a0_0x525fe8(0x16b)][a0_0x525fe8(0x180)](a0_0x525fe8(0x171),FileUploadPopup);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x482a6f=a0_0x61aa;(function(_0x21141a,_0x41f7c8){const _0x14560a=a0_0x61aa,_0x4030fc=_0x21141a();while(!![]){try{const _0x1c5884=parseInt(_0x14560a(0x13c))/0x1*(parseInt(_0x14560a(0x14e))/0x2)+parseInt(_0x14560a(0x15c))/0x3*(-parseInt(_0x14560a(0x13e))/0x4)+parseInt(_0x14560a(0x139))/0x5*(parseInt(_0x14560a(0x15e))/0x6)+-parseInt(_0x14560a(0x179))/0x7*(parseInt(_0x14560a(0x155))/0x8)+parseInt(_0x14560a(0x163))/0x9+-parseInt(_0x14560a(0x12e))/0xa+parseInt(_0x14560a(0x14d))/0xb*(parseInt(_0x14560a(0x12d))/0xc);if(_0x1c5884===_0x41f7c8)break;else _0x4030fc['push'](_0x4030fc['shift']());}catch(_0x35a101){_0x4030fc['push'](_0x4030fc['shift']());}}}(a0_0x4069,0x3eb04));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';import{MetaApi}from'../../utils/meta-api';function a0_0x4069(){const _0x4670a8=['getGristMetaObjectOptions','resource-code-selector','clickCancel','info','2666466tsbTEl','styles','search','rows','queryName','push','filter','forEach','includes','appendable','bind','record','handlers','connectedCallback','dispField','searchByPagination','tButton','getCodeByEntity','showToast','#ox-grist','type','GRID','113197XwTDFH','meta-object-selector-popup','render','grist','query','querySelector','meta-object-selector','object','search_hidden_fields','codeField','entity','sorters','after_set_fields','clickEmpty','276Syvopa','4302540DRKvBD','NOTHING_SELECTED','getSelectColumns','keys','startsWith','columns','left','isArray','tText','gql','gridConfig','5AkiBnH','align','args','2417YgPBvT','getCodeSelectorData','4PqsRrV','shadowRoot','menu_template','string','filters','values','confirmCallback','select','empty','getGristPagination100Config','hidden','options','basicArgs','length','define','41261wDqlOk','254HcctVE','getGristColumnConfig2','scenario','LIST','getParams','fetchHandler','selectRecord','72ZmiSXY','cancel','clickSelect','filterFields','nameField','getGristGuttersConfig','meta-code-selector','13263rhgWrd','name','884880aofATF'];a0_0x4069=function(){return _0x4670a8;};return a0_0x4069();}import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x61aa(_0x39c41d,_0x5dd4f1){const _0x406909=a0_0x4069();return a0_0x61aa=function(_0x61aa2e,_0x56971a){_0x61aa2e=_0x61aa2e-0x129;let _0x41c83a=_0x406909[_0x61aa2e];return _0x41c83a;},a0_0x61aa(_0x39c41d,_0x5dd4f1);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x482a6f(0x164)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x727778=a0_0x345b;(function(_0x5d5e54,_0x508bec){const _0x3663ad=a0_0x
|
|
|
17
17
|
display: flex;
|
|
18
18
|
margin-left: auto;
|
|
19
19
|
}
|
|
20
|
-
`];async[
|
|
21
|
-
<ox-grist id="ox-grist" .config=${this[
|
|
22
|
-
.fetchHandler=${this[
|
|
20
|
+
`];async['connectedCallback'](){const _0xc11901=a0_0x482a6f;this[_0xc11901(0x181)]=this[_0xc11901(0x149)][_0xc11901(0x142)]?this[_0xc11901(0x149)][_0xc11901(0x142)]:this[_0xc11901(0x14a)]&&this[_0xc11901(0x14a)][_0xc11901(0x142)]?this[_0xc11901(0x14a)][_0xc11901(0x142)]:[];let _0x108cc5=this[_0xc11901(0x149)][_0xc11901(0x12a)]?this[_0xc11901(0x149)]['sorters']:this[_0xc11901(0x14a)]&&this['basicArgs']['sorters']?this[_0xc11901(0x14a)][_0xc11901(0x12a)]:[],_0x4a4250=this[_0xc11901(0x149)][_0xc11901(0x158)]?this[_0xc11901(0x149)]['filterFields']:this[_0xc11901(0x149)][_0xc11901(0x140)]?.[_0xc11901(0x165)]&&this['options']['menu_template']?.[_0xc11901(0x165)][_0xc11901(0x14b)]>0x0?this[_0xc11901(0x149)][_0xc11901(0x140)][_0xc11901(0x165)]:[],_0xed435b=this['options']['select'];if(!_0x4a4250||0x0==_0x4a4250[_0xc11901(0x14b)]){let _0x8981ae;this[_0xc11901(0x149)][_0xc11901(0x182)]&&(_0x8981ae=this['options'][_0xc11901(0x182)]),this[_0xc11901(0x149)][_0xc11901(0x159)]&&(_0x8981ae=this[_0xc11901(0x149)]['nameField']),_0x8981ae&&_0x4a4250[_0xc11901(0x168)]({'name':_0x8981ae,'operator':'eq'});}let _0x1463af=[...MetaApi[_0xc11901(0x15a)](!0x0,!0x1)];if(_0xed435b&&_0xed435b['length']>0x0)for(let _0x54754a=0x0;_0x54754a<_0xed435b['length'];_0x54754a++){let {type:_0x4c8346=_0xc11901(0x141),name:_0x312d2b,hidden:_0x36f511=!0x1,record:_0x3087f1={'align':_0xc11901(0x134)},header:_0x3dc260,sortable:_0x51052f=!0x1,width:_0x5e1fc8=0x87,options:_0x3a35ed,select_opt:_0x23e499,object_opt:_0x28f425}=_0xed435b[_0x54754a];if(_0x23e499&&(_0x3a35ed=_0x23e499),_0x28f425&&(_0x3a35ed=_0x28f425),['resource-object',_0xc11901(0x180)][_0xc11901(0x16b)](_0x4c8346)?_0x4c8346=_0xc11901(0x17f):[_0xc11901(0x160)]['includes'](_0x4c8346)&&(_0x4c8346=_0xc11901(0x15b)),'id'==_0x312d2b)_0x1463af['push']({'type':_0xc11901(0x141),'name':_0x312d2b,'hidden':!0x0});else{let _0x2ae799=MetaApi[_0xc11901(0x14f)](_0x4c8346,_0x312d2b,_0x3dc260||_0x312d2b,_0x3087f1[_0xc11901(0x13a)]?_0x3087f1[_0xc11901(0x13a)]:'left',!0x1,_0x51052f,_0x5e1fc8);_0x4c8346[_0xc11901(0x132)]('meta-')&&_0x28f425&&_0x28f425['menu']&&(_0x3a35ed=await MetaUiUtil[_0xc11901(0x15f)](_0x4c8346,_0x3a35ed)),_0xc11901(0x145)===_0x4c8346?Array[_0xc11901(0x135)](_0x3a35ed)?_0x2ae799['record'][_0xc11901(0x149)]=_0x3a35ed:'code'===_0x3a35ed[_0xc11901(0x177)]?_0x2ae799[_0xc11901(0x16e)][_0xc11901(0x149)]=await ServiceUtil[_0xc11901(0x13d)](_0x3a35ed[_0xc11901(0x143)]?_0x3a35ed[_0xc11901(0x143)]:_0x3a35ed['name']):_0xc11901(0x150)===_0x3a35ed[_0xc11901(0x177)]?_0x2ae799[_0xc11901(0x16e)][_0xc11901(0x149)]=await ServiceUtil['getCodeByScenario'](_0x3a35ed[_0xc11901(0x15d)],_0x3a35ed[_0xc11901(0x13b)]):_0xc11901(0x129)===_0x3a35ed['type']&&(_0x2ae799['record']['options']=await ServiceUtil[_0xc11901(0x174)](_0x3a35ed[_0xc11901(0x13b)])):'meta-object-selector'===_0x4c8346?_0x2ae799[_0xc11901(0x16e)]['options']={..._0x3a35ed}:_0xc11901(0x15b)==_0x4c8346&&(_0x3a35ed[_0xc11901(0x171)]&&(_0x3a35ed['codes']=await ServiceUtil[_0xc11901(0x174)](_0x3a35ed)),_0x2ae799[_0xc11901(0x16e)]['options']={..._0x3a35ed}),_0x2ae799[_0xc11901(0x148)]=_0x36f511,_0x1463af['push'](_0x2ae799);}}else _0x1463af['push'](MetaApi['getGristColumnConfig2'](_0xc11901(0x141),this[_0xc11901(0x149)][_0xc11901(0x182)],this[_0xc11901(0x149)]['codeField'],_0xc11901(0x134),!0x1,!0x0,0xb4)),this[_0xc11901(0x149)][_0xc11901(0x171)]&&_0x1463af[_0xc11901(0x168)](MetaApi[_0xc11901(0x14f)](_0xc11901(0x141),this['options'][_0xc11901(0x171)],this['options'][_0xc11901(0x171)],_0xc11901(0x134),!0x1,!0x0,0x12c));_0x1463af[_0xc11901(0x16a)](_0x1b2291=>{const _0x2dd886=_0xc11901;let _0x5e0ec2=_0x4a4250['filter'](_0x3217df=>_0x2dd886(0x141)==typeof _0x3217df?_0x1b2291[_0x2dd886(0x15d)]==_0x3217df:_0x1b2291[_0x2dd886(0x15d)]==_0x3217df[_0x2dd886(0x15d)]);_0x5e0ec2&&_0x5e0ec2[_0x2dd886(0x14b)]>0x0&&(_0x1b2291[_0x2dd886(0x169)]=_0x2dd886(0x141)==typeof _0x5e0ec2[0x0]?'search':_0x5e0ec2[0x0]);});let _0x5f0f62={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0xc11901(0x147)](),'columns':_0x1463af,'sorters':[..._0x108cc5]};_0x5f0f62[_0xc11901(0x166)][_0xc11901(0x16f)]={'click':'select-row-toggle','dblclick':(_0x19fcf,_0x531044,_0x1400ac,_0x50d235,_0x5ea1b2,_0x2e5443)=>{const _0x54b591=_0xc11901;this[_0x54b591(0x154)](_0x50d235);}},_0x5f0f62[_0xc11901(0x166)][_0xc11901(0x16c)]=!0x1,this[_0xc11901(0x138)]=_0x5f0f62,await super[_0xc11901(0x170)]();}async['firstUpdated'](){await super['firstUpdated']();}[a0_0x482a6f(0x17b)](){const _0x58d632=a0_0x482a6f;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0x58d632(0x138)]} .mode=${isMobileDevice()?_0x58d632(0x151):_0x58d632(0x178)} auto-fetch
|
|
22
|
+
.fetchHandler=${this['fetchHandler']['bind'](this)}>
|
|
23
23
|
<div slot="headroom">
|
|
24
24
|
<div id="filters">
|
|
25
25
|
<ox-filters-form></ox-filters-form>
|
|
@@ -27,14 +27,14 @@ const a0_0x727778=a0_0x345b;(function(_0x5d5e54,_0x508bec){const _0x3663ad=a0_0x
|
|
|
27
27
|
</div>
|
|
28
28
|
</ox-grist>
|
|
29
29
|
<div id="button-container" class="button-container">
|
|
30
|
-
<mwc-button raised label="${TermsUtil[
|
|
31
|
-
@click=${this[
|
|
30
|
+
<mwc-button raised label="${TermsUtil[_0x58d632(0x173)](_0x58d632(0x146))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x58d632(0x12c)]['bind'](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x58d632(0x156))}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0x58d632(0x161)][_0x58d632(0x16d)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x58d632(0x173)](_0x58d632(0x145))}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this['clickSelect']['bind'](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x482a6f(0x17c)](){const _0x2d1755=a0_0x482a6f;return this[_0x2d1755(0x13f)][_0x2d1755(0x17e)](_0x2d1755(0x176));}async[a0_0x482a6f(0x153)]({page:_0x34dac5=0x0,limit:_0x3098aa=0x0,sorters:_0x415c55=[],filters:_0x29b3b=[]}){const _0x2e7c9b=a0_0x482a6f;let _0x3223af=[...this[_0x2e7c9b(0x181)]];_0x29b3b[_0x2e7c9b(0x16a)](_0x39a940=>{const _0x411ad5=_0x2e7c9b;let _0x4902a1=_0x3223af['filter'](_0x12d28a=>_0x39a940['name']==_0x12d28a[_0x411ad5(0x15d)]);_0x4902a1&&_0x4902a1[_0x411ad5(0x14b)]>0x0&&delete _0x3223af[_0x39a940[_0x411ad5(0x15d)]],_0x3223af[_0x411ad5(0x168)](_0x39a940);});let _0xf84fee=ValueUtil[_0x2e7c9b(0x152)](this[_0x2e7c9b(0x149)][_0x2e7c9b(0x140)]&&this[_0x2e7c9b(0x149)][_0x2e7c9b(0x140)][_0x2e7c9b(0x137)]||{},_0x2e7c9b(0x17d),_0x2e7c9b(0x12b)),_0x582249=Object[_0x2e7c9b(0x131)](_0xf84fee||{}),_0x380e27=MetaApi[_0x2e7c9b(0x130)](this[_0x2e7c9b(0x138)][_0x2e7c9b(0x133)][_0x2e7c9b(0x169)](_0x16e2e6=>!_0x582249[_0x2e7c9b(0x16b)](_0x16e2e6[_0x2e7c9b(0x15d)])));return await MetaApi[_0x2e7c9b(0x172)](this[_0x2e7c9b(0x149)][_0x2e7c9b(0x167)],_0x3223af,_0x415c55,_0x34dac5,_0x3098aa,_0x380e27);}async[a0_0x482a6f(0x12c)](_0x277cd2){const _0x596b47=a0_0x482a6f;this[_0x596b47(0x144)]&&this[_0x596b47(0x144)](null),closePopup(this);}async[a0_0x482a6f(0x161)](_0x1e2688){closePopup(this);}async[a0_0x482a6f(0x157)](_0x595893){const _0x566d03=a0_0x482a6f;let _0x47e341=this[_0x566d03(0x17c)]['selected'];_0x47e341&&0x0!=_0x47e341[_0x566d03(0x14b)]?this[_0x566d03(0x154)](_0x47e341[0x0]):MetaApi[_0x566d03(0x175)](_0x566d03(0x162),TermsUtil[_0x566d03(0x136)](_0x566d03(0x12f)));}async[a0_0x482a6f(0x154)](_0x32f47b){const _0x6f93e8=a0_0x482a6f;this[_0x6f93e8(0x144)]&&this[_0x6f93e8(0x144)](_0x32f47b),closePopup(this);}}customElements[a0_0x482a6f(0x14c)](a0_0x482a6f(0x17a),MetaObjectSelectorPopup);
|
package/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x101b42=a0_0x30cb;(function(_0x520e4c,_0x58f984){const _0x4e5aba=a0_0x30cb,_0x1e28ae=_0x520e4c();while(!![]){try{const _0x3d5c72=-parseInt(_0x4e5aba(0x183))/0x1+-parseInt(_0x4e5aba(0x156))/0x2+parseInt(_0x4e5aba(0x189))/0x3*(parseInt(_0x4e5aba(0x184))/0x4)+parseInt(_0x4e5aba(0x154))/0x5*(-parseInt(_0x4e5aba(0x15c))/0x6)+parseInt(_0x4e5aba(0x188))/0x7+-parseInt(_0x4e5aba(0x16c))/0x8*(parseInt(_0x4e5aba(0x170))/0x9)+parseInt(_0x4e5aba(0x166))/0xa*(parseInt(_0x4e5aba(0x182))/0xb);if(_0x3d5c72===_0x58f984)break;else _0x1e28ae['push'](_0x1e28ae['shift']());}catch(_0x37595e){_0x1e28ae['push'](_0x1e28ae['shift']());}}}(a0_0x5498,0xec646));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x30cb(_0x3d83b7,_0xa958bf){const _0x54985d=a0_0x5498();return a0_0x30cb=function(_0x30cb47,_0x5d58c5){_0x30cb47=_0x30cb47-0x152;let _0x24701c=_0x54985d[_0x30cb47];return _0x24701c;},a0_0x30cb(_0x3d83b7,_0xa958bf);}export const MetaBaseMixin=_0x3ba3cd=>class extends _0x3ba3cd{static get[a0_0x101b42(0x176)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x4a1223=>Boolean(_0x4a1223)},'is_popup':{'type':Boolean,'converter':_0x459f2e=>Boolean(_0x459f2e)},'is_activity':{'type':Boolean,'converter':_0x551100=>Boolean(_0x551100)},'is_readonly':{'type':Boolean,'converter':_0x5c84e2=>Boolean(_0x5c84e2)}};}get[a0_0x101b42(0x17e)](){const _0x138554=a0_0x101b42;return!0x0===this[_0x138554(0x15d)]||!0x0===this[_0x138554(0x152)];}get[a0_0x101b42(0x15b)](){const _0x389a29=a0_0x101b42;return!ValueUtil[_0x389a29(0x17a)](this[_0x389a29(0x15d)])&&this[_0x389a29(0x15d)];}async[a0_0x101b42(0x168)](_0x1f50cb){const _0x401ac3=a0_0x101b42;let {after:_0x2ae337,before:_0x41146e,column:_0x517230,record:_0x48c515,row:_0x1fd782}=_0x1f50cb[_0x401ac3(0x179)],_0x1088e9=_0x517230['name'];if(Object[_0x401ac3(0x163)](this[_0x401ac3(0x15a)]||{})[_0x401ac3(0x17c)](_0x1088e9)){let _0x69d19,_0x2fd2c7=(await MetaApi[_0x401ac3(0x162)](void 0x0,this[_0x401ac3(0x15a)][_0x1088e9],{'columnName':_0x1088e9,'column':_0x517230,'record':_0x48c515,'after':_0x2ae337,'before':_0x41146e,'row':_0x1fd782,'parentId':this[_0x401ac3(0x160)]?this['parent_id']:''},!0x1))[_0x401ac3(0x190)][_0x401ac3(0x153)][_0x401ac3(0x16e)][_0x401ac3(0x16e)];if(!_0x2fd2c7)return;_0x69d19=this[_0x401ac3(0x191)]?this[_0x401ac3(0x191)][_0x401ac3(0x191)][_0x401ac3(0x186)]:this,Object[_0x401ac3(0x163)](_0x2fd2c7)[_0x401ac3(0x175)](_0x38d5dd=>{const _0x2faf4c=_0x401ac3;_0x69d19[_0x2faf4c(0x17d)](new CustomEvent(_0x2faf4c(0x16a),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x48c515,'row':_0x1fd782,'after':_0x2fd2c7[_0x38d5dd],'before':_0x48c515[_0x38d5dd],'column':{'name':_0x38d5dd}}}));});}this[_0x401ac3(0x17d)](new CustomEvent(_0x401ac3(0x181),{'bubbles':!0x0,'composed':!0x0,'detail':_0x1f50cb[_0x401ac3(0x179)]}));}async[a0_0x101b42(0x185)](){const _0x428a17=a0_0x101b42;super[_0x428a17(0x185)]&&await super[_0x428a17(0x185)](),this['tagName']['toLowerCase']()[_0x428a17(0x18b)](_0x428a17(0x164))?this[_0x428a17(0x18d)](_0x428a17(0x180),async _0x390d75=>{const _0x1d29ec=_0x428a17;await this[_0x1d29ec(0x168)](_0x390d75);}):this['addEventListener'](_0x428a17(0x16a),async _0x4f9465=>{const _0x27f618=_0x428a17;await this[_0x27f618(0x168)](_0x4f9465);});}async[a0_0x101b42(0x16b)](_0x1f85ac,_0x5e0399,_0xd965ba){const _0x36788e=a0_0x101b42;let _0x575db4=this[_0x36788e(0x169)]?.[_0x36788e(0x173)]?this[_0x36788e(0x169)][_0x36788e(0x173)]:{};this[_0x36788e(0x167)]&&this[_0x36788e(0x18e)]&&0x0==_0xd965ba[_0x36788e(0x18e)]&&ValueUtil[_0x36788e(0x15e)](_0x575db4)&&this[_0x36788e(0x172)]();}get[a0_0x101b42(0x17f)](){const _0x55356c=a0_0x101b42;return!ValueUtil[_0x55356c(0x17a)](this[_0x55356c(0x152)])&&this[_0x55356c(0x152)];}get[a0_0x101b42(0x167)](){const _0x551df4=a0_0x101b42;return!this[_0x551df4(0x15d)]&&!this[_0x551df4(0x152)];}async['getAndParseMenuMeta'](){const _0x57a26e=a0_0x101b42;let _0x105ed5=await MetaApi[_0x57a26e(0x177)](this);_0x105ed5&&(this[_0x57a26e(0x16f)]=_0x105ed5['menu'],this[_0x57a26e(0x16d)]=_0x105ed5[_0x57a26e(0x187)],this[_0x57a26e(0x155)]&&this['parseBasicGridConfigs'](_0x105ed5),this[_0x57a26e(0x178)]&&this[_0x57a26e(0x178)](_0x105ed5),this[_0x57a26e(0x174)]&&this[_0x57a26e(0x174)](_0x105ed5),this[_0x57a26e(0x171)]&&this[_0x57a26e(0x171)](_0x105ed5),this['parseBasicButtonConfigs']&&this[_0x57a26e(0x15f)](_0x105ed5));}async[a0_0x101b42(0x172)](){const _0x5737de=a0_0x101b42;ValueUtil[_0x5737de(0x15e)](this[_0x5737de(0x191)])?this[_0x5737de(0x191)][_0x5737de(0x172)]():(ValueUtil[_0x5737de(0x15e)](this[_0x5737de(0x18c)])||this[_0x5737de(0x159)])&&await this[_0x5737de(0x159)]();}async['excuteOpenPopupButtonClick'](_0x2d3cd8,_0x518ec3,_0x35fd8c){const _0x34a635=a0_0x101b42;let _0x3eb88b=TermsUtil[_0x34a635(0x17b)](_0x2d3cd8[_0x34a635(0x157)]);ValueUtil['isNotEmpty'](_0x2d3cd8['title_detail'])&&(_0x3eb88b=_0x3eb88b+'-'+ValueUtil[_0x34a635(0x158)](_0x518ec3,..._0x2d3cd8['title_detail']['split']('.'))),MetaApi[_0x34a635(0x18a)](_0x3eb88b,_0x2d3cd8,_0x518ec3,_0x35fd8c);}async['executeCallScenarioButtonClick'](_0x27ec13,_0x4255e5,_0x8a9f8b){const _0x2fa7f2=a0_0x101b42;let _0x5d73de=await MetaApi['callScenario'](_0x27ec13[_0x2fa7f2(0x165)],_0x27ec13[_0x2fa7f2(0x165)],_0x4255e5);!0x1!==_0x5d73de&&!_0x5d73de[_0x2fa7f2(0x18f)]&&ValueUtil[_0x2fa7f2(0x15e)](_0x27ec13['after'])&&_0x8a9f8b();}[a0_0x101b42(0x161)](_0x5a2944){const _0x3a7062=a0_0x101b42;this[_0x3a7062(0x160)]=_0x5a2944,this[_0x3a7062(0x172)]();}};function a0_0x5498(){const _0x455ea7=['result','menuInfo','18rzSbBh','parseBasicTabConfigs','fetch','params','parseBasicFormConfigs','forEach','properties','getMenuMeta','parseBasicServiceConfigs','detail','isEmpty','tTitle','includes','dispatchEvent','isElement','isPopup','form-field-change','data-changed','11WKaHne','384796gzuILt','27484WCfMao','connectedCallback','body','etc','11292848YOaKeN','726LKQHNJ','openDynamicPopup','startsWith','filterForm','addEventListener','active','errors','data','grist','is_popup','runScenario','5smrjJg','parseBasicGridConfigs','786890cKGgtP','title','getParams','fetchHandler','fieldChangeHandlers','isDetail','10527282JsIRgg','is_detail','isNotEmpty','parseBasicButtonConfigs','parent_id','setParentId','callScenario','keys','meta-form-','name','6257480CQHKWT','isPage','dataChangeEventHandler','lifecycle','field-change','pageUpdated','1602976UsEDaE','etcConfig'];a0_0x5498=function(){return _0x455ea7;};return a0_0x5498();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x112169=a0_0x3f12;(function(_0x3ca5d5,_0x4302e4){const _0x5549ec=a0_0x3f12,_0xd4efcb=_0x3ca5d5();while(!![]){try{const _0x13263f=parseInt(_0x5549ec(0x184))/0x1*(-parseInt(_0x5549ec(0x156))/0x2)+-parseInt(_0x5549ec(0x153))/0x3*(-parseInt(_0x5549ec(0x15e))/0x4)+parseInt(_0x5549ec(0x16d))/0x5*(parseInt(_0x5549ec(0x17c))/0x6)+-parseInt(_0x5549ec(0x15d))/0x7+parseInt(_0x5549ec(0x159))/0x8+parseInt(_0x5549ec(0x169))/0x9+parseInt(_0x5549ec(0x179))/0xa;if(_0x13263f===_0x4302e4)break;else _0xd4efcb['push'](_0xd4efcb['shift']());}catch(_0x19e989){_0xd4efcb['push'](_0xd4efcb['shift']());}}}(a0_0x5730,0x75850));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x3f12(_0x44ffaf,_0x2d3907){const _0x573019=a0_0x5730();return a0_0x3f12=function(_0x3f1281,_0x6a97c0){_0x3f1281=_0x3f1281-0x14d;let _0x2868db=_0x573019[_0x3f1281];return _0x2868db;},a0_0x3f12(_0x44ffaf,_0x2d3907);}import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x5730(){const _0x29f54d=['1PqQnWC','isPage','keys','renderRoot','shadowRoot','forEach','ox-grist','grid','parseGristConfigs','gridEmphasized','2645499SvJfsT','getContextObject','connectedCallback','1064002RUyFSY','parseBasicGridConfigs','activityDataSet','918616AtneAb','gridColumnConfig','import','menuInfo','5148654qDgiix','4tdNjVi','render','find','searchConfig','gristId','getBasicGristHtml','isNotEmpty','fetch','updateMultiple','save','pageInitialized','5106051uoFmuz','grist','exportableData','filterForm','107225GRkwQS','records','filterFormId','title','delete','firstUpdated','getButtonContainer','patchesForUpdateMultiple','data','startsWith','stringify','deleteByIds','1205490fBKUrc','getParams','parse','18dbTEeG','getSelectedIdList','findOne','properties','getAndParseMenuMeta','querySelector','isElement','tTitle'];a0_0x5730=function(){return _0x29f54d;};return a0_0x5730();}export const MetaBasicGristMixin=_0x49b4da=>class extends MetaButtonMixin(_0x49b4da){static get['styles'](){return MetaApi['getBasicGristStyles']();}static get[a0_0x112169(0x17f)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x5254b9=a0_0x112169;return this[_0x5254b9(0x187)]?.['querySelector'](this[_0x5254b9(0x162)]);}get[a0_0x112169(0x16c)](){const _0x4fc905=a0_0x112169;return this[_0x4fc905(0x14d)]?.[_0x4fc905(0x181)](this[_0x4fc905(0x16f)]);}get['context'](){const _0xdc964f=a0_0x112169;return MetaUiUtil[_0xdc964f(0x154)](this);}async[a0_0x112169(0x155)](){const _0x653088=a0_0x112169;this[_0x653088(0x162)]=_0x653088(0x14f),this[_0x653088(0x16f)]='ox-filters-form',await this[_0x653088(0x180)](),this[_0x653088(0x182)]&&await this[_0x653088(0x151)](),this[_0x653088(0x158)]&&(this['dataSet']=this['activityDataSet']),super[_0x653088(0x155)]&&await super[_0x653088(0x155)]();}async['firstUpdated'](){const _0x517047=a0_0x112169;super[_0x517047(0x172)]&&await super[_0x517047(0x172)]();}async[a0_0x112169(0x168)](){const _0x4028a1=a0_0x112169;this['isPage']&&await this[_0x4028a1(0x151)](),super[_0x4028a1(0x168)]&&await super[_0x4028a1(0x168)]();}[a0_0x112169(0x15f)](){const _0x1c53bb=a0_0x112169;return html`
|
|
2
|
+
${MetaApi[_0x1c53bb(0x163)](this)}
|
|
3
|
+
${this[_0x1c53bb(0x185)]?html``:MetaUiUtil[_0x1c53bb(0x173)](this)}
|
|
4
|
+
`;}[a0_0x112169(0x157)](_0x5a9e70){const _0x51fe5e=a0_0x112169;this['gridConfig']=_0x5a9e70[_0x51fe5e(0x150)],this[_0x51fe5e(0x15a)]=_0x5a9e70['grid_column'],this[_0x51fe5e(0x161)]=_0x5a9e70['search'],this[_0x51fe5e(0x152)]=_0x5a9e70[_0x51fe5e(0x152)];}async[a0_0x112169(0x151)](){this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this);}async[a0_0x112169(0x165)](){const _0x17518f=a0_0x112169;await this[_0x17518f(0x16a)][_0x17518f(0x165)]();}async[a0_0x112169(0x167)](){const _0x2c0123=a0_0x112169;let _0x2b0de2=MetaApi[_0x2c0123(0x174)](this[_0x2c0123(0x16a)]);!!ValueUtil[_0x2c0123(0x164)](_0x2b0de2)&&await this[_0x2c0123(0x166)](_0x2b0de2)&&this[_0x2c0123(0x165)]();}async[a0_0x112169(0x160)](){const _0x15c303=a0_0x112169;let _0x6a4677=MetaApi[_0x15c303(0x17d)](this[_0x15c303(0x16a)],!0x0);return ValueUtil[_0x15c303(0x164)](_0x6a4677)?await this[_0x15c303(0x17e)](_0x6a4677[0x0]):{};}async[a0_0x112169(0x171)](){const _0x5e2868=a0_0x112169;let _0x3447ce=MetaApi[_0x5e2868(0x17d)](this[_0x5e2868(0x16a)],!0x0);!!ValueUtil[_0x5e2868(0x164)](_0x3447ce)&&await this[_0x5e2868(0x178)](_0x3447ce)&&this[_0x5e2868(0x165)]();}async['export'](){const _0x3c1413=a0_0x112169;let _0x30bfc3=TermsUtil[_0x3c1413(0x183)](ValueUtil[_0x3c1413(0x17a)](this[_0x3c1413(0x15c)],_0x3c1413(0x170)));return await MetaApi[_0x3c1413(0x16b)](this['isElement'],_0x30bfc3,this[_0x3c1413(0x16a)]);}async[a0_0x112169(0x15b)](){}async['clear'](){const _0x35686a=a0_0x112169;this[_0x35686a(0x16a)]&&(this[_0x35686a(0x16a)][_0x35686a(0x175)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x2b2cf5=a0_0x112169;let _0x12afbd=this[_0x2b2cf5(0x16a)]['___data'][_0x2b2cf5(0x16e)];return _0x12afbd=JSON[_0x2b2cf5(0x17b)](JSON[_0x2b2cf5(0x177)](_0x12afbd)),_0x12afbd[_0x2b2cf5(0x14e)](_0x23065c=>{const _0x2ea601=_0x2b2cf5;Object[_0x2ea601(0x186)](_0x23065c)[_0x2ea601(0x14e)](_0x5c0066=>{const _0x4c22ba=_0x2ea601;_0x5c0066[_0x4c22ba(0x176)]('__')&&delete _0x23065c[_0x5c0066];});}),_0x12afbd;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2a22b7=a0_0x3622;(function(_0x317c89,_0x40920b){const _0x2c3ff6=a0_0x3622,_0x543be4=_0x317c89();while(!![]){try{const _0x5f4240=parseInt(_0x2c3ff6(0x193))/0x1+parseInt(_0x2c3ff6(0x187))/0x2*(-parseInt(_0x2c3ff6(0x188))/0x3)+-parseInt(_0x2c3ff6(0x182))/0x4+parseInt(_0x2c3ff6(0x180))/0x5*(-parseInt(_0x2c3ff6(0x192))/0x6)+-parseInt(_0x2c3ff6(0x18e))/0x7+-parseInt(_0x2c3ff6(0x195))/0x8+parseInt(_0x2c3ff6(0x197))/0x9;if(_0x5f4240===_0x40920b)break;else _0x543be4['push'](_0x543be4['shift']());}catch(_0x58c68e){_0x543be4['push'](_0x543be4['shift']());}}}(a0_0x345e,0xda5df));function a0_0x3622(_0x1d3d09,_0x1b46a7){const _0x345e83=a0_0x345e();return a0_0x3622=function(_0x36222c,_0x3b370e){_0x36222c=_0x36222c-0x180;let _0x3be2bb=_0x345e83[_0x36222c];return _0x3be2bb;},a0_0x3622(_0x1d3d09,_0x1b46a7);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x345e(){const _0x4e12f2=['1882348DdPuoW','isButtonExist','useButtonImport','getButtonActionHandler','getButtonContainer','412072GZtkZQ','18pAoZEZ','getCustomButtonContainerStyle','getBasicButtonHandler','getContextButtons','isPage','useButtonExport','12055456yNdFYA','buttonConfig','button','export','1211982qWaERN','677332EitBnp','parseBasicButtonConfigs','7908040xdaavw','useButtonAdd','56255319okJowQ','gristButtonHandler','40YbTCVl','add'];a0_0x345e=function(){return _0x4e12f2;};return a0_0x345e();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x52505e=>class extends MetaServiceMixin(_0x52505e){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x2a22b7(0x189)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x2a22b7(0x18b)](){return MetaUiUtil['getContextButtons'](this);}['getButtonContainer'](){const _0x101ff6=a0_0x2a22b7;return this[_0x101ff6(0x18c)]?html``:MetaUiUtil[_0x101ff6(0x186)](this);}async[a0_0x2a22b7(0x18a)](_0xfa2bba,_0x38d4dd,_0x445249){const _0x2b68f6=a0_0x2a22b7;return await MetaUiUtil[_0x2b68f6(0x185)](this,_0xfa2bba,_0x38d4dd,_0x445249);}async['customButtonHandler'](_0x3b9989){await MetaUiUtil['customButtonHandler'](this,_0x3b9989);}async[a0_0x2a22b7(0x198)](_0x4c4c2e,_0x49cd7c){const _0x3dfee4=a0_0x2a22b7;await MetaUiUtil[_0x3dfee4(0x198)](this,_0x4c4c2e,_0x49cd7c);}[a0_0x2a22b7(0x194)](_0x2da72b){const _0x2ce2bd=a0_0x2a22b7;this[_0x2ce2bd(0x18f)]=_0x2da72b[_0x2ce2bd(0x190)],this[_0x2ce2bd(0x184)]=MetaUiUtil[_0x2ce2bd(0x183)](this[_0x2ce2bd(0x18f)],'import'),this[_0x2ce2bd(0x18d)]=MetaUiUtil[_0x2ce2bd(0x183)](this[_0x2ce2bd(0x18f)],_0x2ce2bd(0x191)),this[_0x2ce2bd(0x196)]=MetaUiUtil[_0x2ce2bd(0x183)](this[_0x2ce2bd(0x18f)],_0x2ce2bd(0x181));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xcae413=a0_0x3991;(function(_0x356fb4,_0xe7cc08){const _0x220d04=a0_0x3991,_0x61f875=_0x356fb4();while(!![]){try{const _0x3d4532=parseInt(_0x220d04(0x1a6))/0x1*(parseInt(_0x220d04(0x19d))/0x2)+-parseInt(_0x220d04(0x19b))/0x3+parseInt(_0x220d04(0x194))/0x4*(-parseInt(_0x220d04(0x180))/0x5)+parseInt(_0x220d04(0x1ab))/0x6+-parseInt(_0x220d04(0x1a4))/0x7+-parseInt(_0x220d04(0x193))/0x8+parseInt(_0x220d04(0x196))/0x9;if(_0x3d4532===_0xe7cc08)break;else _0x61f875['push'](_0x61f875['shift']());}catch(_0x1518b3){_0x61f875['push'](_0x61f875['shift']());}}}(a0_0x393a,0xd634d));import{MetaApi}from'../utils/meta-api';function a0_0x393a(){const _0x5d6097=['isPage','validation','__origin__','function','currentTarget','code-input','save','formRenderConfig','showAlertPopup','patchData','true','removeGarbageData','connectedCallback','getContextObject','map','editing','__seq__','fetch','info','tLabel','after','activity','getAndParseMenuMeta','focus','isNotEmpty','__dirtyfields__','click','cuFlag','renderRoot','filter','tText','Escape','activityDataSet','2810330fmuXbj','tagName','pageInitialized','__dirty__','name','properties','entries','styles','field-change','orgData','header','firstUpdated','currentData','column','parseFormConfigSet','includes','text.check-mandatory','before','dirtyData','13737664macRXc','8GIVrCg','parseFormConfigs','39334059oJrGwf','addEventListener','render','getBasicFormStyles','forEach','5141190MbOCgl','type','44lqdljF','setAttribute','detail','stopPropagation','text.NOTHING_CHANGED','parseBasicFormConfigs','getBasicFormHtml','2932328LIpAjH','formConfigSet','63881iqlqny','call','title.info','keys','parent_id','453180VrCkqP','record','startsWith','isEmpty','findOne','clear','form-field-change','formColumnConfig'];a0_0x393a=function(){return _0x5d6097;};return a0_0x393a();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3991(_0x3d4330,_0x714a13){const _0x393a6c=a0_0x393a();return a0_0x3991=function(_0x39915f,_0x31dab6){_0x39915f=_0x39915f-0x175;let _0x141803=_0x393a6c[_0x39915f];return _0x141803;},a0_0x3991(_0x3d4330,_0x714a13);}export const MetaFormMixin=_0x54d0b5=>class extends MetaButtonMixin(_0x54d0b5){static get[a0_0xcae413(0x187)](){const _0x4b35e0=a0_0xcae413;return MetaApi[_0x4b35e0(0x199)]();}static get[a0_0xcae413(0x185)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x580024=a0_0xcae413;return MetaUiUtil[_0x580024(0x1c0)](this);}async[a0_0xcae413(0x1bf)](){const _0x52e7d0=a0_0xcae413;await this[_0x52e7d0(0x175)](),this['isElement']&&await this[_0x52e7d0(0x195)](),this['activityDataSet']&&(this['dataSet']=this[_0x52e7d0(0x17f)]),!0x0!==this['is_activity']||this['parent_id']||(this[_0x52e7d0(0x1aa)]=_0x52e7d0(0x1c8)),super['connectedCallback']&&await super[_0x52e7d0(0x1bf)](),this['isElement']&&await this[_0x52e7d0(0x1c4)](),this['renderRoot'][_0x52e7d0(0x197)]('keydown',_0x5ec713=>{const _0x2c81af=_0x52e7d0;switch(_0x5ec713['key']){case'Esc':case _0x2c81af(0x17e):case'Enter':this[_0x2c81af(0x176)](),this[_0x2c81af(0x1b7)]&&this[_0x2c81af(0x1b7)]['removeAttribute'](_0x2c81af(0x1c2)),this['currentTarget']=null;}}),this[_0x52e7d0(0x17b)][_0x52e7d0(0x197)](_0x52e7d0(0x179),_0xcdd142=>{const _0x25f5ed=_0x52e7d0;_0xcdd142[_0x25f5ed(0x1a0)]();let _0x56d18a=_0xcdd142['target'];if(this[_0x25f5ed(0x1b7)]&&(this[_0x25f5ed(0x176)](),this[_0x25f5ed(0x1b7)]['removeAttribute'](_0x25f5ed(0x1c2))),'OX-GRID-FIELD'!==_0x56d18a[_0x25f5ed(0x181)]||!_0x56d18a[_0x25f5ed(0x18d)][_0x25f5ed(0x1ac)]['editable'])return this[_0x25f5ed(0x176)](),void(this[_0x25f5ed(0x1b7)]=null);this[_0x25f5ed(0x1b7)]=_0x56d18a,_0x56d18a[_0x25f5ed(0x19e)](_0x25f5ed(0x1c2),_0x25f5ed(0x1bd));}),this[_0x52e7d0(0x197)](_0x52e7d0(0x188),_0x154805=>{const _0x151fb0=_0x52e7d0;var {after:_0x24e44b,before:_0x22f41f,column:_0xd1d92f,record:_0x3bfa8d,row:_0x1cc11a}=_0x154805[_0x151fb0(0x19f)];if(ValueUtil['isEquals'](_0x24e44b,_0x22f41f))return;var _0x1e254e=_0xd1d92f[_0x151fb0(0x1b4)];if(_0x1e254e&&_0x151fb0(0x1b6)==typeof _0x1e254e&&!_0x1e254e[_0x151fb0(0x1a7)](this,_0x24e44b,_0x22f41f,_0x3bfa8d,_0xd1d92f))return;let _0x1ecc10=_0xd1d92f['name'];_0x3bfa8d[_0x1ecc10]=_0x24e44b,_0x3bfa8d[_0x151fb0(0x178)]=_0x3bfa8d[_0x151fb0(0x178)]||{},_0x3bfa8d['__origin__']=_0x3bfa8d['__origin__']||{},_0x3bfa8d[_0x151fb0(0x178)][_0x1ecc10]={'before':_0x3bfa8d[_0x151fb0(0x1b5)][_0x1ecc10],'after':_0x3bfa8d[_0x1ecc10]},ValueUtil['isEquals'](_0x3bfa8d[_0x151fb0(0x178)][_0x1ecc10][_0x151fb0(0x191)],_0x3bfa8d[_0x151fb0(0x178)][_0x1ecc10][_0x151fb0(0x1c7)])&&delete _0x3bfa8d['__dirtyfields__'][_0x1ecc10],ValueUtil[_0x151fb0(0x177)](_0x3bfa8d[_0x151fb0(0x178)])?_0x3bfa8d['__dirty__']='M':_0x3bfa8d[_0x151fb0(0x183)]='',this[_0x151fb0(0x1ac)]={..._0x3bfa8d},this['dispatchEvent'](new CustomEvent(_0x151fb0(0x1b1),{'bubbles':!0x0,'composed':!0x0,'detail':_0x154805['detail']}));});}async[a0_0xcae413(0x18b)](){const _0x153c81=a0_0xcae413;super[_0x153c81(0x18b)]&&await super['firstUpdated']();}async[a0_0xcae413(0x182)](){const _0x3257b1=a0_0xcae413;this['isPage']&&await this['parseFormConfigs'](),super[_0x3257b1(0x182)]&&await super[_0x3257b1(0x182)](),this[_0x3257b1(0x1b3)]&&await this[_0x3257b1(0x1c4)]();}[a0_0xcae413(0x198)](){const _0xe2fd54=a0_0xcae413;return MetaApi[_0xe2fd54(0x1a3)](this);}[a0_0xcae413(0x1a2)](_0x4aa2ad){const _0x41a6ec=a0_0xcae413;this[_0x41a6ec(0x1b2)]=_0x4aa2ad['grid_column'],this[_0x41a6ec(0x1ba)]=_0x4aa2ad['form'],_0x4aa2ad['button']=_0x4aa2ad['button'][_0x41a6ec(0x17c)](_0x35de36=>_0x41a6ec(0x1b9)==_0x35de36['name']);}async[a0_0xcae413(0x195)](){const _0x1ccb14=a0_0xcae413;this[_0x1ccb14(0x1a5)]=await MetaApi[_0x1ccb14(0x18e)](this);}get[a0_0xcae413(0x189)](){const _0x96600c=a0_0xcae413;return this[_0x96600c(0x1be)](this['record'][_0x96600c(0x1b5)]);}get['dirtyData'](){const _0x46e0a2=a0_0xcae413;if(ValueUtil[_0x46e0a2(0x1ae)]((this[_0x46e0a2(0x1ac)]||{})[_0x46e0a2(0x178)]))return{};let _0x41049b={};return Object['entries'](this['record']['__dirtyfields__'])[_0x46e0a2(0x1c1)](([_0x1ca7fd,_0x5b2561])=>{const _0x241cb8=_0x46e0a2;0x0==_0x1ca7fd[_0x241cb8(0x1ad)]('__')&&(_0x41049b[_0x1ca7fd]=_0x5b2561[_0x241cb8(0x1c7)]);}),_0x41049b;}get['currentData'](){const _0x5b9f3d=a0_0xcae413;return this[_0x5b9f3d(0x1be)](this['record']);}[a0_0xcae413(0x1be)](_0x299e15){const _0x2215f6=a0_0xcae413;let _0x59c8bc={};if(_0x299e15)return Object[_0x2215f6(0x186)](_0x299e15)['map'](([_0x2538de,_0xb0bcfd])=>{const _0x3b2944=_0x2215f6;0x0==_0x2538de[_0x3b2944(0x1ad)]('__')&&(_0x59c8bc[_0x2538de]=_0xb0bcfd);}),_0x59c8bc;}get[a0_0xcae413(0x1bc)](){const _0x31378a=a0_0xcae413;let _0x404439=this[_0x31378a(0x192)],_0x41b8e4=this[_0x31378a(0x1ac)],_0xe90dde=(this[_0x31378a(0x1b2)]||[])[_0x31378a(0x17c)](_0x4b1d22=>_0x31378a(0x1b8)===_0x4b1d22[_0x31378a(0x19c)])[_0x31378a(0x1c1)](_0x34fb0f=>_0x34fb0f[_0x31378a(0x184)]);if(!ValueUtil['isEmpty'](_0x404439))return ValueUtil[_0x31378a(0x177)](_0x41b8e4['id'])?(_0x404439['id']=_0x41b8e4['id'],_0x404439[_0x31378a(0x17a)]='M'):_0x404439[_0x31378a(0x17a)]='+',Object[_0x31378a(0x1a9)](_0x404439)[_0x31378a(0x19a)](_0x44cfe6=>{const _0x11abd9=_0x31378a;'object'==typeof _0x404439[_0x44cfe6]&&0x0==_0xe90dde[_0x11abd9(0x18f)](_0x44cfe6)&&(_0x404439[_0x44cfe6]={'id':_0x404439[_0x44cfe6]['id']});}),[_0x404439];}async['fetch'](){const _0x275d00=a0_0xcae413;if(ValueUtil[_0x275d00(0x1ae)](this[_0x275d00(0x1aa)]))return;let _0x3d9347=await this[_0x275d00(0x1af)](this['parent_id']);_0x3d9347[_0x275d00(0x1c3)]=0x1;let _0xfc74e={};Object['assign'](_0xfc74e,_0x3d9347),_0x3d9347['__origin__']=_0xfc74e,this[_0x275d00(0x1ac)]={..._0x3d9347};}async['save'](){const _0x216076=a0_0xcae413;let _0x471d21=this[_0x216076(0x1bc)];if(ValueUtil[_0x216076(0x1ae)](_0x471d21))return void MetaApi[_0x216076(0x1bb)](_0x216076(0x1a8),_0x216076(0x1a1));let _0x43fa49={};(this[_0x216076(0x1b2)]||[])[_0x216076(0x17c)](_0x2feb6a=>!0x0===_0x2feb6a['mandatory'])['forEach'](_0x32ba9a=>{const _0x35078f=_0x216076;_0x43fa49[_0x32ba9a[_0x35078f(0x184)]]=_0x32ba9a[_0x35078f(0x18a)];});let _0x24f6a5=this[_0x216076(0x18c)];for(let _0x5ccec4 in _0x43fa49)if(void 0x0===_0x24f6a5[_0x5ccec4]||''==_0x24f6a5[_0x5ccec4])return void UiUtil[_0x216076(0x1bb)](_0x216076(0x190),TermsUtil[_0x216076(0x17d)]('check-mandatory-field',{'x':TermsUtil[_0x216076(0x1c6)](_0x43fa49[_0x5ccec4])}),_0x216076(0x1c5),'confirm');let _0x339cc1=await this['updateMultiple'](_0x471d21);return _0x339cc1&&await this[_0x216076(0x1c4)](),_0x339cc1;}async[a0_0xcae413(0x1b0)](){const _0x30d125=a0_0xcae413;this[_0x30d125(0x1ac)]&&(this[_0x30d125(0x1ac)]={});}['getData'](){const _0x47f83f=a0_0xcae413;return this[_0x47f83f(0x18c)]||{};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x144d(){const _0x2f9ebf=['delete','___data','544XCHsJW','getGristTabHtml','meta-tab-element','menuInfo','forEach','columns','connectedCallback','getData','718KDxcKM','gridColumnConfig','311026qFcMIP','pageInitialized','gristId','renderRoot','deleteByIds','1061628NClpcG','2685POjVZe','useFilterForm','fetch','gridConfig','header','activityDataSet','searchFieldValues','options','context','updateMultiple','2729055oZNHWA','5792418AqPBRU','detailElement','gristConfigSet','search','isPage','grid_column','961146AIOdnv','patchesForUpdateMultiple','ox-filters-form-base','save','parse','dataSet','parseBasicGridConfigs','push','value','name','filterForm','querySelector','getContextObject','firstUpdated','tTitle','getAndParseMenuMeta','filter','grist','1337YBPISF','getParams','map','styles','isNotEmpty','#detail','type','actions','title','getSelectedIdList','find','export','shadowRoot','operator','render','clear','importable','stringify','searchConfig','parseGridConfigSet','import','records','isElement','getBasicGristTabStyles','exportableData','useMasterFilterForm','gridEmphasized','findOne','filterFormId','keys'];a0_0x144d=function(){return _0x2f9ebf;};return a0_0x144d();}const a0_0x5c0530=a0_0x5ee5;(function(_0x455fcc,_0x3daea9){const _0x116ccc=a0_0x5ee5,_0x4fce2e=_0x455fcc();while(!![]){try{const _0x1003d2=-parseInt(_0x116ccc(0x14d))/0x1+parseInt(_0x116ccc(0x14b))/0x2*(parseInt(_0x116ccc(0x153))/0x3)+parseInt(_0x116ccc(0x152))/0x4+-parseInt(_0x116ccc(0x15d))/0x5+parseInt(_0x116ccc(0x15e))/0x6+parseInt(_0x116ccc(0x176))/0x7*(-parseInt(_0x116ccc(0x196))/0x8)+parseInt(_0x116ccc(0x164))/0x9;if(_0x1003d2===_0x3daea9)break;else _0x4fce2e['push'](_0x4fce2e['shift']());}catch(_0x14d571){_0x4fce2e['push'](_0x4fce2e['shift']());}}}(a0_0x144d,0xc0a5c));import{html}from'lit';function a0_0x5ee5(_0x15c6b9,_0xcc76ef){const _0x144d23=a0_0x144d();return a0_0x5ee5=function(_0x5ee585,_0x44ce98){_0x5ee585=_0x5ee585-0x145;let _0x4cacc9=_0x144d23[_0x5ee585];return _0x4cacc9;},a0_0x5ee5(_0x15c6b9,_0xcc76ef);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x2fd39c=>class extends MetaButtonMixin(_0x2fd39c){static get[a0_0x5c0530(0x179)](){const _0x2f2a52=a0_0x5c0530;return MetaApi[_0x2f2a52(0x18d)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x5c0530(0x175)](){const _0x44073d=a0_0x5c0530;return this['renderRoot'][_0x44073d(0x16f)](this[_0x44073d(0x14f)]);}get[a0_0x5c0530(0x16e)](){const _0x525cc5=a0_0x5c0530;return this[_0x525cc5(0x182)]?.[_0x525cc5(0x16f)](this[_0x525cc5(0x192)]);}get[a0_0x5c0530(0x15f)](){const _0x343c0e=a0_0x5c0530;return this[_0x343c0e(0x182)][_0x343c0e(0x16f)](_0x343c0e(0x17b));}get[a0_0x5c0530(0x15b)](){const _0x5a16cd=a0_0x5c0530;let _0x2db3d8=MetaUiUtil[_0x5a16cd(0x170)](this);return _0x2db3d8[_0x5a16cd(0x17d)]&&delete _0x2db3d8['actions'],_0x2db3d8['exportable']&&delete _0x2db3d8['exportable'],_0x2db3d8[_0x5a16cd(0x186)]&&delete _0x2db3d8[_0x5a16cd(0x186)],_0x2db3d8;}async['connectedCallback'](){const _0x218624=a0_0x5c0530;this[_0x218624(0x14f)]='ox-grist',this[_0x218624(0x192)]=_0x218624(0x166),await this[_0x218624(0x173)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x218624(0x158)]&&(this[_0x218624(0x169)]=(this['activityDataSet']||{})['main']),super[_0x218624(0x149)]&&await super['connectedCallback']();}async[a0_0x5c0530(0x171)](){const _0xa09c5b=a0_0x5c0530;super[_0xa09c5b(0x171)]&&await super[_0xa09c5b(0x171)]();}async[a0_0x5c0530(0x14e)](){const _0x1a8435=a0_0x5c0530;this[_0x1a8435(0x162)]&&await this['parseGristConfigs'](),super[_0x1a8435(0x14e)]&&await super[_0x1a8435(0x14e)]();}[a0_0x5c0530(0x184)](){const _0x59311b=a0_0x5c0530;return MetaApi[_0x59311b(0x197)](this);}[a0_0x5c0530(0x16a)](_0x596482){const _0x1b9d68=a0_0x5c0530;this[_0x1b9d68(0x156)]=_0x596482['grid'],this[_0x1b9d68(0x14c)]=_0x596482[_0x1b9d68(0x163)],this[_0x1b9d68(0x188)]=_0x596482['search'],this[_0x1b9d68(0x190)]=_0x596482[_0x1b9d68(0x190)];}async['parseGristConfigs'](){const _0x323782=a0_0x5c0530;this[_0x323782(0x160)]=await MetaApi[_0x323782(0x189)](this),this[_0x323782(0x18f)]=!0x0===this['useFilterForm'],this[_0x323782(0x154)]=!0x1,this[_0x323782(0x159)]=[],this['searchFields']=this[_0x323782(0x160)][_0x323782(0x148)][_0x323782(0x174)](_0x233f55=>_0x233f55['filter'])[_0x323782(0x178)](_0x27fe22=>{const _0x45c014=_0x323782;let _0x197852={'name':_0x27fe22[_0x45c014(0x16d)],'type':_0x45c014(0x161)===_0x27fe22['filter']['operator']?_0x45c014(0x161):_0x27fe22[_0x45c014(0x17c)],'label':_0x27fe22[_0x45c014(0x157)],'operator':_0x27fe22[_0x45c014(0x174)][_0x45c014(0x183)]?_0x27fe22[_0x45c014(0x174)][_0x45c014(0x183)]:'eq'};return _0x27fe22[_0x45c014(0x174)][_0x45c014(0x15a)]&&(_0x197852[_0x45c014(0x15a)]=_0x27fe22[_0x45c014(0x174)][_0x45c014(0x15a)]),_0x27fe22['record'][_0x45c014(0x15a)]&&(_0x197852[_0x45c014(0x15a)]=_0x27fe22['record'][_0x45c014(0x15a)]),_0x27fe22['filter']['value']&&this[_0x45c014(0x159)][_0x45c014(0x16b)]({'name':_0x197852[_0x45c014(0x16d)],'operator':_0x197852[_0x45c014(0x183)],'value':_0x27fe22[_0x45c014(0x174)][_0x45c014(0x16c)]}),delete _0x27fe22[_0x45c014(0x174)],_0x197852;});}async[a0_0x5c0530(0x155)](){const _0x56f762=a0_0x5c0530;await this[_0x56f762(0x175)][_0x56f762(0x155)]();}async['beforeFetch']({page:_0x158ae7=0x0,limit:_0x5051e5=0x0,sortings:_0x5628fd=[],filters:_0x24460e=[]}){const _0x596faf=a0_0x5c0530;let _0x16dddd=this[_0x596faf(0x150)][_0x596faf(0x16f)](_0x596faf(0x145));return await _0x16dddd[_0x596faf(0x185)](),!0x0;}async[a0_0x5c0530(0x167)](){const _0x2a774a=a0_0x5c0530;let _0x4db43e=MetaApi[_0x2a774a(0x165)](this[_0x2a774a(0x175)]);!!ValueUtil[_0x2a774a(0x17a)](_0x4db43e)&&await this[_0x2a774a(0x15c)](_0x4db43e)&&this[_0x2a774a(0x155)]();}async[a0_0x5c0530(0x180)](){const _0x401cc6=a0_0x5c0530;let _0x4c18b4=MetaApi[_0x401cc6(0x17f)](this['grist'],!0x0);return ValueUtil[_0x401cc6(0x17a)](_0x4c18b4)?await this[_0x401cc6(0x191)](_0x4c18b4[0x0]):{};}async[a0_0x5c0530(0x194)](){const _0x493837=a0_0x5c0530;let _0x54f828=MetaApi[_0x493837(0x17f)](this[_0x493837(0x175)],!0x0);!!ValueUtil[_0x493837(0x17a)](_0x54f828)&&await this[_0x493837(0x151)](_0x54f828)&&this[_0x493837(0x155)]();}async[a0_0x5c0530(0x181)](){const _0x156fce=a0_0x5c0530;let _0x56683d=TermsUtil[_0x156fce(0x172)](ValueUtil[_0x156fce(0x177)](this[_0x156fce(0x146)],_0x156fce(0x17e)));return await MetaApi[_0x156fce(0x18e)](this[_0x156fce(0x18c)],_0x56683d,this[_0x156fce(0x175)]);}async[a0_0x5c0530(0x18a)](){}['getData'](){const _0x14a941=a0_0x5c0530;let _0x37d609=this[_0x14a941(0x175)][_0x14a941(0x195)][_0x14a941(0x18b)];return _0x37d609=JSON[_0x14a941(0x168)](JSON[_0x14a941(0x187)](_0x37d609)),_0x37d609[_0x14a941(0x147)](_0x2acb19=>{const _0x3f5ca5=_0x14a941;Object[_0x3f5ca5(0x193)](_0x2acb19)[_0x3f5ca5(0x147)](_0x260d29=>{_0x260d29['startsWith']('__')&&delete _0x2acb19[_0x260d29];});}),{'main':_0x37d609,'detail':this[_0x14a941(0x150)][_0x14a941(0x16f)]('meta-tab-element')[_0x14a941(0x14a)]()};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4ad2a2=a0_0x3df6;function a0_0x3df6(_0x142e33,_0x23c0cb){const _0x671b68=a0_0x671b();return a0_0x3df6=function(_0x3df6fd,_0x423ea5){_0x3df6fd=_0x3df6fd-0x17d;let _0x2c3cf0=_0x671b68[_0x3df6fd];return _0x2c3cf0;},a0_0x3df6(_0x142e33,_0x23c0cb);}function a0_0x671b(){const _0x671de4=['getBasicMainTabStyles','useButtonExport','useFilterForm','341232CrmGDV','getMainGrist','operator','value','importable','dataSet','gristId','gristConfigSet','options','ox-filters-form-base','1000705JUIXTV','search','columns','masterElement','context','activityDataSet','filter','fetch','properties','3715398VwPtLm','render','actions','buttonConfig','4jANtdP','parseGristConfigs','push','querySelector','isElement','main','9709pumdVb','searchFieldValues','grist','useMasterFilterForm','gridEmphasized','parseBasicGridConfigs','exportable','getMainTabHtml','record','668376iMgiXh','grid_column','getContextObject','getAndParseMenuMeta','parseGridConfigSet','filterForm','pageInitialized','searchFields','getData','127171YUYxAi','ox-grist','300894AfSCMR','firstUpdated','styles','beforeFetch','searchConfig','name','filterFormId','822pZTOtY','connectedCallback','shadowRoot','clear','useButtonImport','type'];a0_0x671b=function(){return _0x671de4;};return a0_0x671b();}(function(_0x1f1d71,_0x26d5bd){const _0x24f85c=a0_0x3df6,_0x567159=_0x1f1d71();while(!![]){try{const _0x4d7276=parseInt(_0x24f85c(0x18d))/0x1+parseInt(_0x24f85c(0x18f))/0x2+-parseInt(_0x24f85c(0x184))/0x3+parseInt(_0x24f85c(0x1b6))/0x4*(-parseInt(_0x24f85c(0x1a9))/0x5)+parseInt(_0x24f85c(0x196))/0x6*(-parseInt(_0x24f85c(0x1bc))/0x7)+parseInt(_0x24f85c(0x19f))/0x8+parseInt(_0x24f85c(0x1b2))/0x9;if(_0x4d7276===_0x26d5bd)break;else _0x567159['push'](_0x567159['shift']());}catch(_0x332983){_0x567159['push'](_0x567159['shift']());}}}(a0_0x671b,0x1d54e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x14c8b7=>class extends MetaButtonMixin(_0x14c8b7){static get[a0_0x4ad2a2(0x191)](){const _0x4bc36e=a0_0x4ad2a2;return MetaApi[_0x4bc36e(0x19c)]();}static get[a0_0x4ad2a2(0x1b1)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x4ad2a2(0x17d)](){const _0x420d6d=a0_0x4ad2a2;return this[_0x420d6d(0x1ac)][_0x420d6d(0x1a0)]();}get[a0_0x4ad2a2(0x189)](){const _0x3c8651=a0_0x4ad2a2;return this[_0x3c8651(0x198)]?.[_0x3c8651(0x1b9)](this['filterFormId']);}get[a0_0x4ad2a2(0x1ad)](){const _0x1a692c=a0_0x4ad2a2;let _0x4f9566=MetaUiUtil[_0x1a692c(0x186)](this);return _0x4f9566[_0x1a692c(0x1b4)]&&delete _0x4f9566[_0x1a692c(0x1b4)],_0x4f9566[_0x1a692c(0x181)]&&delete _0x4f9566[_0x1a692c(0x181)],_0x4f9566['importable']&&delete _0x4f9566[_0x1a692c(0x1a3)],_0x4f9566;}async[a0_0x4ad2a2(0x197)](){const _0x1df20a=a0_0x4ad2a2;this[_0x1df20a(0x1a5)]=_0x1df20a(0x18e),this[_0x1df20a(0x195)]=_0x1df20a(0x1a8),await this[_0x1df20a(0x187)](),this[_0x1df20a(0x1ba)]&&await this[_0x1df20a(0x1b7)](),this[_0x1df20a(0x1ae)]&&(this[_0x1df20a(0x1a4)]=(this[_0x1df20a(0x1ae)]||{})[_0x1df20a(0x1bb)]),super[_0x1df20a(0x197)]&&await super[_0x1df20a(0x197)]();}async[a0_0x4ad2a2(0x190)](){const _0x1e0514=a0_0x4ad2a2;super[_0x1e0514(0x190)]&&await super['firstUpdated']();}async[a0_0x4ad2a2(0x18a)](){const _0x5d3227=a0_0x4ad2a2;this['isPage']&&await this['parseGristConfigs'](),super[_0x5d3227(0x18a)]&&await super[_0x5d3227(0x18a)]();}[a0_0x4ad2a2(0x1b3)](){const _0xa92bcd=a0_0x4ad2a2;return MetaApi[_0xa92bcd(0x182)](this);}[a0_0x4ad2a2(0x180)](_0x4e4f1e){const _0x26f19e=a0_0x4ad2a2;this['gridConfig']=_0x4e4f1e['grid'],this['gridColumnConfig']=_0x4e4f1e[_0x26f19e(0x185)],this[_0x26f19e(0x193)]=_0x4e4f1e[_0x26f19e(0x1aa)],this[_0x26f19e(0x17f)]=_0x4e4f1e[_0x26f19e(0x17f)];}async[a0_0x4ad2a2(0x1b7)](){const _0x38f3ba=a0_0x4ad2a2;this[_0x38f3ba(0x1a6)]=await MetaApi[_0x38f3ba(0x188)](this),this[_0x38f3ba(0x17e)]=!0x0===this['useFilterForm'],this[_0x38f3ba(0x19e)]=!0x1,this[_0x38f3ba(0x1b5)]=void 0x0,this[_0x38f3ba(0x19d)]=!0x1,this[_0x38f3ba(0x19a)]=!0x1,this[_0x38f3ba(0x1bd)]=[],this[_0x38f3ba(0x18b)]=this[_0x38f3ba(0x1a6)][_0x38f3ba(0x1ab)]['filter'](_0x1d0855=>_0x1d0855['filter'])['map'](_0x4a36be=>{const _0x717727=_0x38f3ba;let _0x1c4141={'name':_0x4a36be[_0x717727(0x194)],'type':_0x717727(0x1aa)===_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a1)]?'search':_0x4a36be[_0x717727(0x19b)],'label':_0x4a36be['header'],'operator':_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a1)]?_0x4a36be['filter']['operator']:'eq'};return _0x4a36be['filter'][_0x717727(0x1a7)]&&(_0x1c4141[_0x717727(0x1a7)]=_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a7)]),_0x4a36be['record'][_0x717727(0x1a7)]&&(_0x1c4141[_0x717727(0x1a7)]=_0x4a36be[_0x717727(0x183)]['options']),_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a2)]&&this[_0x717727(0x1bd)][_0x717727(0x1b8)]({'name':_0x1c4141[_0x717727(0x194)],'operator':_0x1c4141[_0x717727(0x1a1)],'value':_0x4a36be['filter']['value']}),delete _0x4a36be[_0x717727(0x1af)],_0x1c4141;});}async[a0_0x4ad2a2(0x1b0)](){const _0x49e0c1=a0_0x4ad2a2;await this[_0x49e0c1(0x17d)]['fetch']();}async[a0_0x4ad2a2(0x192)]({page:_0x5d4c5a=0x0,limit:_0x5b249f=0x0,sortings:_0xe3236e=[],filters:_0x423cd7=[]}){const _0x2d3eb8=a0_0x4ad2a2;return this['masterElement']&&this[_0x2d3eb8(0x1ac)][_0x2d3eb8(0x199)]&&await this[_0x2d3eb8(0x1ac)][_0x2d3eb8(0x199)](),!0x0;}[a0_0x4ad2a2(0x18c)](){const _0x99b963=a0_0x4ad2a2;return{'master':this[_0x99b963(0x1ac)]['getData']()};}};
|