@things-factory/meta-ui 6.1.109 → 6.1.111
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 +23 -35
- 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 -8
- 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/component/popup/record-based-code-editor-popup.js +39 -0
- package/client/index.js +2 -1
- 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 +11 -23
- 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/doc-number/doc-number-page.js +1 -0
- package/client/pages/doc-number/next-doc-number-popup.js +1 -0
- 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 +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +4 -4
- package/client/pages/menu/dynamic-menu-setting-let.js +22 -0
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +18 -18
- 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/printer-device/printer-device-page.js +1 -0
- package/client/pages/template/doc-template-page.js +1 -0
- package/client/pages/template/template-file-page.js +1 -0
- 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 +119 -112
- package/client/utils/service-util.js +49 -16
- 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 +12 -12
- 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 +4 -4
- 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/translations/en.json +100 -72
- package/translations/ko.json +69 -41
- package/translations/ms.json +100 -72
- package/translations/zh.json +107 -79
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x46f8(){const _0x2c6f6f=['record','length','45FUVvSd','2124xuVTna','669730tenNtH','54gjXppG','1706oSRlCV','options','11odQjBP','1811384pmqInU','splice','split','284775QsYGTv','14323164SfPpVk','data-tooltip','944952tvfXXG','14kJujqk','4100120sDePUa','join','removeAttribute','nameField'];a0_0x46f8=function(){return _0x2c6f6f;};return a0_0x46f8();}(function(_0x1c77fb,_0x312968){const _0x4575a1=a0_0xb920,_0x31a6d6=_0x1c77fb();while(!![]){try{const _0x58f877=parseInt(_0x4575a1(0x9f))/0x1+parseInt(_0x4575a1(0xab))/0x2*(parseInt(_0x4575a1(0xa8))/0x3)+-parseInt(_0x4575a1(0xae))/0x4+parseInt(_0x4575a1(0x9c))/0x5*(-parseInt(_0x4575a1(0xaa))/0x6)+parseInt(_0x4575a1(0xa0))/0x7*(parseInt(_0x4575a1(0xa1))/0x8)+-parseInt(_0x4575a1(0xa7))/0x9*(-parseInt(_0x4575a1(0xa9))/0xa)+parseInt(_0x4575a1(0xad))/0xb*(-parseInt(_0x4575a1(0x9d))/0xc);if(_0x58f877===_0x312968)break;else _0x31a6d6['push'](_0x31a6d6['shift']());}catch(_0x45089f){_0x31a6d6['push'](_0x31a6d6['shift']());}}}(a0_0x46f8,0xb70a5));import{html}from'lit';function a0_0xb920(_0x5cb1b6,_0x58ddf9){const _0x46f898=a0_0x46f8();return a0_0xb920=function(_0xb92046,_0x4b771c){_0xb92046=_0xb92046-0x9c;let _0x4c776a=_0x46f898[_0xb92046];return _0x4c776a;},a0_0xb920(_0x5cb1b6,_0x58ddf9);}import{detectOverflow}from'@operato/utils';function onmouseover(_0x30994c){const _0xaded19=a0_0xb920,_0x451c93=_0x30994c['target'];detectOverflow(_0x451c93)&&_0x451c93['setAttribute'](_0xaded19(0x9e),_0x451c93['textContent']);}function onmouseout(_0x4d5208){const _0x1e2961=a0_0xb920;_0x4d5208['target'][_0x1e2961(0xa3)](_0x1e2961(0x9e));}export const GristRendererMetaObjectSelector=(_0x5c6df4,_0x37cc06,_0x146453,_0x591b02,_0x365354)=>{const _0x443c82=a0_0xb920;let _0x1606d5='';if(_0x5c6df4&&_0x37cc06[_0x443c82(0xa5)][_0x443c82(0xac)]){let _0x43e54c=_0x37cc06[_0x443c82(0xa5)][_0x443c82(0xac)][_0x443c82(0xa4)][_0x443c82(0xb0)](',');_0x1606d5=_0x5c6df4[_0x43e54c[0x0]],_0x43e54c[_0x443c82(0xa6)]>0x1&&(_0x1606d5+='('+_0x43e54c[_0x443c82(0xaf)](0x1)['map'](_0x3793ac=>_0x5c6df4[_0x3793ac])[_0x443c82(0xa2)](',')+')');}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x1606d5}</span>`;};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x3f135a=a0_0x35ef;(function(_0x354aac,_0x4e5523){var _0x310c51=a0_0x35ef,_0x5ec726=_0x354aac();while(!![]){try{var _0x320d2a=-parseInt(_0x310c51(0x18e))/0x1*(-parseInt(_0x310c51(0x1ae))/0x2)+-parseInt(_0x310c51(0x19a))/0x3*(parseInt(_0x310c51(0x18d))/0x4)+parseInt(_0x310c51(0x194))/0x5+parseInt(_0x310c51(0x19d))/0x6*(-parseInt(_0x310c51(0x198))/0x7)+-parseInt(_0x310c51(0x191))/0x8*(parseInt(_0x310c51(0x1a8))/0x9)+parseInt(_0x310c51(0x1a9))/0xa*(parseInt(_0x310c51(0x18a))/0xb)+parseInt(_0x310c51(0x1a7))/0xc;if(_0x320d2a===_0x4e5523)break;else _0x5ec726['push'](_0x5ec726['shift']());}catch(_0x45f974){_0x5ec726['push'](_0x5ec726['shift']());}}}(a0_0x2c50,0xa9c36));function a0_0x35ef(_0x14f57a,_0xf3fb7c){var _0x2c50ad=a0_0x2c50();return a0_0x35ef=function(_0x35ef7e,_0x8ecd44){_0x35ef7e=_0x35ef7e-0x18a;var _0x5368e5=_0x2c50ad[_0x35ef7e];return _0x5368e5;},a0_0x35ef(_0x14f57a,_0xf3fb7c);}import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';export class CodeInputEditorPopup extends LitElement{static [a0_0x3f135a(0x1ad)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -19,17 +19,17 @@ var a0_0x2efc38=a0_0x5457;(function(_0x3550c8,_0x347262){var _0x45e6ce=a0_0x5457
|
|
|
19
19
|
display: flex;
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
}
|
|
22
|
-
`];async[
|
|
23
|
-
<ox-input-code mode="javascript" value=${this[
|
|
22
|
+
`];async['connectedCallback'](){var _0x5ed213=a0_0x3f135a;_0x5ed213(0x19c)==typeof this[_0x5ed213(0x1ab)]?this[_0x5ed213(0x18b)]=JSON['stringify'](this[_0x5ed213(0x1ab)],0x0,0x2):this['codeVlaue']=this[_0x5ed213(0x1ab)],await super['connectedCallback']();}async[a0_0x3f135a(0x1aa)](){var _0x21a1a8=a0_0x3f135a;await super[_0x21a1a8(0x1aa)]();}[a0_0x3f135a(0x18c)](){var _0x2bd5e7=a0_0x3f135a;return html`
|
|
23
|
+
<ox-input-code mode="javascript" value=${this[_0x2bd5e7(0x18b)]} 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[_0x2bd5e7(0x195)](_0x2bd5e7(0x1a3))}" style="margin-left:7px;margin-top:7px;"
|
|
26
|
+
@click=${this[_0x2bd5e7(0x190)][_0x2bd5e7(0x199)](this)}>
|
|
27
27
|
</mwc-button>
|
|
28
|
-
<mwc-button raised label="${TermsUtil[
|
|
29
|
-
@click=${this[
|
|
28
|
+
<mwc-button raised label="${TermsUtil[_0x2bd5e7(0x195)](_0x2bd5e7(0x196))}" style="margin-left:7px;margin-top:7px;"
|
|
29
|
+
@click=${this[_0x2bd5e7(0x1a0)]['bind'](this)}>
|
|
30
30
|
</mwc-button>
|
|
31
|
-
<mwc-button raised label="${TermsUtil[
|
|
32
|
-
@click=${this[
|
|
31
|
+
<mwc-button raised label="${TermsUtil[_0x2bd5e7(0x195)](_0x2bd5e7(0x1a6))}" style="margin-left:7px;margin-top:7px;"
|
|
32
|
+
@click=${this[_0x2bd5e7(0x1a1)]['bind'](this)}>
|
|
33
33
|
</mwc-button>
|
|
34
34
|
</div>
|
|
35
|
-
`;}get[
|
|
35
|
+
`;}get['codeEditor'](){var _0x376294=a0_0x3f135a;return this[_0x376294(0x197)][_0x376294(0x19e)](_0x376294(0x1a4));}async[a0_0x3f135a(0x190)](_0x2a0cbd){var _0x49780a=a0_0x3f135a;this[_0x49780a(0x1ac)]&&this[_0x49780a(0x1ac)](null),closePopup(this);}async['clickCancel'](_0x369390){closePopup(this);}async[a0_0x3f135a(0x1a1)](_0x1f0136){var _0x181c4e=a0_0x3f135a;this[_0x181c4e(0x18b)]!==this['codeEditor'][_0x181c4e(0x1ab)]?this[_0x181c4e(0x1a2)](this[_0x181c4e(0x19f)][_0x181c4e(0x1ab)]):MetaApi[_0x181c4e(0x18f)](_0x181c4e(0x193),TermsUtil['tText'](_0x181c4e(0x19b)));}async[a0_0x3f135a(0x1a2)](_0x3eaa1c){var _0x42aa6c=a0_0x3f135a;this['confirmCallback']&&this[_0x42aa6c(0x1ac)](_0x3eaa1c),closePopup(this);}}function a0_0x2c50(){var _0x36b7bf=['confirmCallback','styles','2zziEGz','11byTtvP','codeVlaue','render','3016TqZFIV','553844ZUnfEy','showToast','clickEmpty','195184ugkzEz','define','info','3538485bBpjdn','tButton','cancel','shadowRoot','2306108nBpgqL','bind','330FgAhak','NOTHING_CHANGED','object','6wyHZdz','querySelector','codeEditor','clickCancel','clickConfirm','changedValue','empty','ox-input-code','code-input-editor-popup','confirm','6334212pDKNdv','513zndQxH','7090280frvfSJ','firstUpdated','value'];a0_0x2c50=function(){return _0x36b7bf;};return a0_0x2c50();}customElements[a0_0x3f135a(0x192)](a0_0x3f135a(0x1a5),CodeInputEditorPopup);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3356d4=a0_0x4934;(function(_0x2935a1,_0x103970){const _0x3a96a3=a0_0x4934,_0x592003=_0x2935a1();while(!![]){try{const _0x45fed5=parseInt(_0x3a96a3(0xfc))/0x1*(-parseInt(_0x3a96a3(0x11c))/0x2)+parseInt(_0x3a96a3(0x112))/0x3*(-parseInt(_0x3a96a3(0x107))/0x4)+parseInt(_0x3a96a3(0xf3))/0x5*(-parseInt(_0x3a96a3(0xfd))/0x6)+parseInt(_0x3a96a3(0x117))/0x7*(parseInt(_0x3a96a3(0x102))/0x8)+-parseInt(_0x3a96a3(0xf9))/0x9*(parseInt(_0x3a96a3(0x121))/0xa)+-parseInt(_0x3a96a3(0x10f))/0xb+parseInt(_0x3a96a3(0xfe))/0xc;if(_0x45fed5===_0x103970)break;else _0x592003['push'](_0x592003['shift']());}catch(_0x658212){_0x592003['push'](_0x592003['shift']());}}}(a0_0x4c4e,0xdbcb1));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_0x1c4613 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';function a0_0x4c4e(){const _0xcf852a=['errors','_getInputByName','value','styles','confirm','279LGtePM','create','file_upload','914QDpjkS','90npHIBx','48126516JknRZm','_getAttachmentInfo','tButton','connectedCallback','832FCKuaV','files','map','please_select_upload_category','properties','176mQqzsy','text.attachment_info_not_valid','_createAttachment','label.error','error','select[name=','category','render','5578133jUXKSZ','TEMPLATE_TYPES','templateTypes','64392RFcGFm','form','],\x20input[name=','#uploadTemplate','message','76559fNIfFM','define','tLabel','description','tText','1290uMBxbJ','customElements','file-upload-popup','querySelector','_template','359290jyySDP','back','renderRoot','364290UQpUNe'];a0_0x4c4e=function(){return _0xcf852a;};return a0_0x4c4e();}import{ValueUtil}from'../../utils/value-util';function a0_0x4934(_0x2009bd,_0x35d215){const _0x4c4e66=a0_0x4c4e();return a0_0x4934=function(_0x493479,_0x54a411){_0x493479=_0x493479-0xf1;let _0x2c1cdd=_0x4c4e66[_0x493479];return _0x2c1cdd;},a0_0x4934(_0x2009bd,_0x35d215);}import{ServiceUtil}from'../../utils/service-util';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_0x3356d4(0xf7)](){return[SingleColumnFormStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
padding: 10px;
|
|
4
4
|
display: flex;
|
|
@@ -27,30 +27,30 @@ const a0_0x1f6a51=a0_0x13c5;(function(_0x4deffa,_0x3f2167){const _0x306ab8=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_0x3356d4(0x106)](){return{'templateTypes':Array};}async[a0_0x3356d4(0x101)](){const _0x365483=a0_0x3356d4;super['connectedCallback'](),this['templateTypes']=await ServiceUtil['codeItems'](_0x365483(0x110));}[a0_0x3356d4(0x10e)](){const _0x3fc5fe=a0_0x3356d4;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[_0x3fc5fe(0x119)](_0x3fc5fe(0xfb))}</legend>
|
|
35
|
+
<label>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0xfb))}</label>
|
|
36
36
|
<file-uploader custom-input id="uploadTemplate" name="attachments"></file-uploader>
|
|
37
37
|
|
|
38
|
-
<label>${TermsUtil[
|
|
38
|
+
<label>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0x10d))}</label>
|
|
39
39
|
<select name="category" required>
|
|
40
|
-
<option value="">${TermsUtil[
|
|
41
|
-
${(this[
|
|
40
|
+
<option value="">${TermsUtil[_0x3fc5fe(0x11b)](_0x3fc5fe(0x105))}</option>
|
|
41
|
+
${(this[_0x3fc5fe(0x111)]||[])[_0x3fc5fe(0x104)](_0x4d9e3a=>{const {name:_0x5d4017,description:_0x40d55f}=_0x4d9e3a;return html` <option value="${_0x5d4017}">${_0x5d4017} ${_0x40d55f?'\x20('+_0x40d55f+')':''}</option> `;})}
|
|
42
42
|
</select>
|
|
43
43
|
|
|
44
|
-
<label>${TermsUtil[
|
|
44
|
+
<label>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0x11a))}</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[_0x3fc5fe(0x109)]}" label="${TermsUtil[_0x3fc5fe(0x100)](_0x3fc5fe(0xfa))}"></mwc-button>
|
|
52
52
|
</div>
|
|
53
|
-
`;}get[
|
|
53
|
+
`;}get['_template'](){const _0x4764e7=a0_0x3356d4;return this[_0x4764e7(0xf2)]['querySelector'](_0x4764e7(0x115));}async['_createAttachment'](){const _0x16bbce=a0_0x3356d4;try{const _0x514913=this[_0x16bbce(0xff)]();(await client['mutate']({'mutation':a0_0x1c4613`
|
|
54
54
|
mutation ($attachment: NewAttachment!) {
|
|
55
55
|
createAttachment(attachment: $attachment) {
|
|
56
56
|
id
|
|
@@ -58,4 +58,4 @@ const a0_0x1f6a51=a0_0x13c5;(function(_0x4deffa,_0x3f2167){const _0x306ab8=a0_0x
|
|
|
58
58
|
path
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
`,'variables':{'attachment':
|
|
61
|
+
`,'variables':{'attachment':_0x514913},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x16bbce(0xf4)]||(history[_0x16bbce(0xf1)](),this['dispatchEvent'](new CustomEvent('template-uploaded',{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x3db7ce){MetaApi['showAlertPopup'](_0x16bbce(0x10a),_0x3db7ce[_0x16bbce(0x116)],_0x16bbce(0x10b),_0x16bbce(0xf8));}}[a0_0x3356d4(0xff)](){const _0x48de9a=a0_0x3356d4;if(this['renderRoot'][_0x48de9a(0x11f)](_0x48de9a(0x113))['checkValidity']())return{'file':this[_0x48de9a(0x120)][_0x48de9a(0x103)][0x0],'category':this[_0x48de9a(0xf5)](_0x48de9a(0x10d))[_0x48de9a(0xf6)],'description':this['_getInputByName']('description')[_0x48de9a(0xf6)]};throw new Error(TermsUtil['tText'](_0x48de9a(0x108)));}[a0_0x3356d4(0xf5)](_0x26db76){const _0x391d4f=a0_0x3356d4;return this[_0x391d4f(0xf2)]['querySelector'](_0x391d4f(0x10c)+_0x26db76+_0x391d4f(0x114)+_0x26db76+']');}}window[a0_0x3356d4(0x11d)][a0_0x3356d4(0x118)](a0_0x3356d4(0x11e),FileUploadPopup);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x22227f=a0_0x59a7;(function(_0x4e9e61,_0x24e57a){const _0x4bbc80=a0_0x59a7,_0x1ed40e=_0x4e9e61();while(!![]){try{const _0x1057f6=parseInt(_0x4bbc80(0x161))/0x1*(parseInt(_0x4bbc80(0x176))/0x2)+parseInt(_0x4bbc80(0x191))/0x3*(parseInt(_0x4bbc80(0x17c))/0x4)+-parseInt(_0x4bbc80(0x193))/0x5+-parseInt(_0x4bbc80(0x156))/0x6+parseInt(_0x4bbc80(0x164))/0x7*(-parseInt(_0x4bbc80(0x185))/0x8)+parseInt(_0x4bbc80(0x19a))/0x9*(-parseInt(_0x4bbc80(0x18b))/0xa)+parseInt(_0x4bbc80(0x14c))/0xb;if(_0x1057f6===_0x24e57a)break;else _0x1ed40e['push'](_0x1ed40e['shift']());}catch(_0x4e3a04){_0x1ed40e['push'](_0x1ed40e['shift']());}}}(a0_0x157e,0x49aef));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x157e(){const _0x237f41=['rows','meta-object-selector-popup','substring','1353Tgrkwp','selectRecord','2643000bhhIZc','gridConfig','meta-','keys','code','scenario','querySelector','2566134oFqzUg','nameField','map','GRID','fetchHandler','isArray','hidden','meta-object-selector','push','entity','query','tText','bind','boolean-all','forEach','13325554JOBEHK','getCodeByScenario','options','getGristColumnConfig2','basicArgs','args','object','handlers','getGristPagination100Config','length','461670horcub','search','select-row-toggle','render','resource-object','showToast','record','left','define','select','connectedCallback','706TVXFgf','menu_template','filter','183680fgjzoi','resource-code-selector','getCodeSelectorData','dispField','string','info','align','clickCancel','values','getGristSelectableConfig','filterFields','empty','grist','split','includes','filters','#ox-grist','meta-code-selector','630mdPYxK','NOTHING_SELECTED','shadowRoot','searchByPagination','confirmCallback','clickSelect','1816IAafIB','tButton','search_hidden_fields','columns','gql','codes','type','styles','sorters','136qocqSl','selected','getParams','name','clickEmpty','codeField','10TGlmNZ','startsWith','firstUpdated'];a0_0x157e=function(){return _0x237f41;};return a0_0x157e();}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';function a0_0x59a7(_0x32712e,_0x39b894){const _0x157e34=a0_0x157e();return a0_0x59a7=function(_0x59a769,_0x3b428c){_0x59a769=_0x59a769-0x145;let _0x3a5a94=_0x157e34[_0x59a769];return _0x3a5a94;},a0_0x59a7(_0x32712e,_0x39b894);}import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x22227f(0x183)]=[CommonGristStyles,ButtonContainerStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -17,9 +17,9 @@ const a0_0x6de0ea=a0_0x4f0a;function a0_0xa114(){const _0x3ed4e2=['2403RBSEMa','
|
|
|
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[a0_0x22227f(0x160)](){const _0x4ff241=a0_0x22227f;this[_0x4ff241(0x17e)]=this[_0x4ff241(0x14e)][_0x4ff241(0x173)]?this[_0x4ff241(0x14e)][_0x4ff241(0x173)]:this[_0x4ff241(0x150)]&&this[_0x4ff241(0x150)]['filters']?this['basicArgs']['filters']:[],this[_0x4ff241(0x17e)]=this['search_hidden_fields'][_0x4ff241(0x19c)](_0x5bb010=>{const _0x1e3272=_0x4ff241;let {name:_0x178f9e,operator:_0x495624,value:_0x59c09f}=_0x5bb010;return _0x59c09f[_0x1e3272(0x18c)]('::')&&(_0x59c09f=ValueUtil[_0x1e3272(0x187)](this['record'],..._0x59c09f[_0x1e3272(0x190)](0x2)[_0x1e3272(0x171)]('.'))),{'name':_0x178f9e,'operator':_0x495624,'value':_0x59c09f};});let _0x10e8e3=this[_0x4ff241(0x14e)][_0x4ff241(0x184)]?this[_0x4ff241(0x14e)][_0x4ff241(0x184)]:this[_0x4ff241(0x150)]&&this[_0x4ff241(0x150)][_0x4ff241(0x184)]?this['basicArgs'][_0x4ff241(0x184)]:[],_0x3b28f9=this['options']['filterFields']?this['options'][_0x4ff241(0x16e)]:this['options'][_0x4ff241(0x162)]?.[_0x4ff241(0x157)]&&this[_0x4ff241(0x14e)][_0x4ff241(0x162)]?.['search'][_0x4ff241(0x155)]>0x0?this[_0x4ff241(0x14e)][_0x4ff241(0x162)][_0x4ff241(0x157)]:[],_0x5c509b=this[_0x4ff241(0x14e)][_0x4ff241(0x15f)];if(!_0x3b28f9||0x0==_0x3b28f9[_0x4ff241(0x155)]){let _0x14e80b;this[_0x4ff241(0x14e)][_0x4ff241(0x18a)]&&(_0x14e80b=this[_0x4ff241(0x14e)]['codeField']),this['options'][_0x4ff241(0x19b)]&&(_0x14e80b=this[_0x4ff241(0x14e)][_0x4ff241(0x19b)]),_0x14e80b&&_0x3b28f9[_0x4ff241(0x145)]({'name':_0x14e80b,'operator':'eq'});}let _0x4c9530=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x5c509b&&_0x5c509b[_0x4ff241(0x155)]>0x0)for(let _0x5c1e14=0x0;_0x5c1e14<_0x5c509b['length'];_0x5c1e14++){let {type:_0x375d6b=_0x4ff241(0x168),name:_0x4b5cdf,hidden:_0x395c24=!0x1,record:_0x854060={'align':_0x4ff241(0x15d)},header:_0x3c084b,sortable:_0x43ff0d=!0x1,width:_0x571163=0x87,options:_0x26e8b8,select_opt:_0x385120,object_opt:_0x27ff94}=_0x5c509b[_0x5c1e14];if(_0x385120&&(_0x26e8b8=_0x385120),_0x27ff94&&(_0x26e8b8=_0x27ff94),[_0x4ff241(0x15a),_0x4ff241(0x152)][_0x4ff241(0x172)](_0x375d6b)?_0x375d6b=_0x4ff241(0x1a1):[_0x4ff241(0x165)]['includes'](_0x375d6b)&&(_0x375d6b=_0x4ff241(0x175)),'id'==_0x4b5cdf)_0x4c9530[_0x4ff241(0x145)]({'type':'string','name':_0x4b5cdf,'hidden':!0x0});else{_0x4ff241(0x14a)==_0x375d6b&&(_0x375d6b='boolean');let _0x3f5dfc=MetaApi[_0x4ff241(0x14f)](_0x375d6b,_0x4b5cdf,_0x3c084b||_0x4b5cdf,_0x854060[_0x4ff241(0x16a)]?_0x854060['align']:_0x4ff241(0x15d),!0x1,_0x43ff0d,_0x571163);_0x375d6b[_0x4ff241(0x18c)](_0x4ff241(0x195))&&_0x27ff94&&_0x27ff94['menu']&&(_0x26e8b8=await MetaUiUtil['getGristMetaObjectOptions'](_0x375d6b,_0x26e8b8)),_0x4ff241(0x15f)===_0x375d6b?Array[_0x4ff241(0x19f)](_0x26e8b8)?_0x3f5dfc[_0x4ff241(0x15c)][_0x4ff241(0x14e)]=_0x26e8b8:_0x4ff241(0x197)===_0x26e8b8['type']?_0x3f5dfc['record'][_0x4ff241(0x14e)]=await ServiceUtil[_0x4ff241(0x166)](_0x26e8b8[_0x4ff241(0x16c)]?_0x26e8b8[_0x4ff241(0x16c)]:_0x26e8b8[_0x4ff241(0x188)]):_0x4ff241(0x198)===_0x26e8b8[_0x4ff241(0x182)]?_0x3f5dfc['record'][_0x4ff241(0x14e)]=await ServiceUtil[_0x4ff241(0x14d)](_0x26e8b8[_0x4ff241(0x188)],_0x26e8b8[_0x4ff241(0x151)]):_0x4ff241(0x146)===_0x26e8b8[_0x4ff241(0x182)]&&(_0x3f5dfc['record'][_0x4ff241(0x14e)]=await ServiceUtil['getCodeByEntity'](_0x26e8b8[_0x4ff241(0x151)])):_0x4ff241(0x1a1)===_0x375d6b?_0x3f5dfc[_0x4ff241(0x15c)][_0x4ff241(0x14e)]={..._0x26e8b8}:_0x4ff241(0x175)==_0x375d6b&&(_0x26e8b8[_0x4ff241(0x167)]&&(_0x26e8b8[_0x4ff241(0x181)]=await ServiceUtil['getCodeByEntity'](_0x26e8b8)),_0x3f5dfc[_0x4ff241(0x15c)][_0x4ff241(0x14e)]={..._0x26e8b8}),_0x3f5dfc[_0x4ff241(0x1a0)]=_0x395c24,_0x4c9530['push'](_0x3f5dfc);}}else _0x4c9530[_0x4ff241(0x145)](MetaApi[_0x4ff241(0x14f)](_0x4ff241(0x168),this[_0x4ff241(0x14e)]['codeField'],this[_0x4ff241(0x14e)]['codeField'],'left',!0x1,!0x0,0xb4)),this['options'][_0x4ff241(0x167)]&&_0x4c9530[_0x4ff241(0x145)](MetaApi['getGristColumnConfig2'](_0x4ff241(0x168),this[_0x4ff241(0x14e)][_0x4ff241(0x167)],this[_0x4ff241(0x14e)]['dispField'],_0x4ff241(0x15d),!0x1,!0x0,0x12c));_0x4c9530[_0x4ff241(0x14b)](_0x11cb5a=>{const _0x30041f=_0x4ff241;let _0x23df30=_0x3b28f9[_0x30041f(0x163)](_0x97e125=>_0x30041f(0x168)==typeof _0x97e125?_0x11cb5a[_0x30041f(0x188)]==_0x97e125:_0x11cb5a[_0x30041f(0x188)]==_0x97e125[_0x30041f(0x188)]);_0x23df30&&_0x23df30[_0x30041f(0x155)]>0x0&&(_0x11cb5a['filter']=_0x30041f(0x168)==typeof _0x23df30[0x0]?_0x30041f(0x157):_0x23df30[0x0]);});let _0x2da10e={'rows':MetaApi[_0x4ff241(0x16d)](!0x1),'pagination':MetaApi[_0x4ff241(0x154)](),'columns':_0x4c9530,'sorters':[..._0x10e8e3]};_0x2da10e[_0x4ff241(0x18e)][_0x4ff241(0x153)]={'click':_0x4ff241(0x158),'dblclick':(_0x5e167c,_0x396cb7,_0x216a6c,_0x55a657,_0x4e7ee5,_0x1df603)=>{const _0x481888=_0x4ff241;this[_0x481888(0x192)](_0x55a657);}},_0x2da10e[_0x4ff241(0x18e)]['appendable']=!0x1,this['gridConfig']=_0x2da10e,await super[_0x4ff241(0x160)]();}async['firstUpdated'](){const _0x596c6f=a0_0x22227f;await super[_0x596c6f(0x18d)]();}[a0_0x22227f(0x159)](){const _0x36893e=a0_0x22227f;return html`
|
|
21
|
+
<ox-grist id="ox-grist" .config=${this[_0x36893e(0x194)]} .mode=${isMobileDevice()?'LIST':_0x36893e(0x19d)} auto-fetch
|
|
22
|
+
.fetchHandler=${this[_0x36893e(0x19e)]['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_0x6de0ea=a0_0x4f0a;function a0_0xa114(){const _0x3ed4e2=['2403RBSEMa','
|
|
|
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[_0x36893e(0x17d)](_0x36893e(0x16f))}" style="margin-left:7px;margin-top:7px;"
|
|
31
|
+
@click=${this[_0x36893e(0x189)][_0x36893e(0x149)](this)}>
|
|
32
32
|
</mwc-button>
|
|
33
|
-
<mwc-button raised label="${TermsUtil[
|
|
34
|
-
@click=${this[
|
|
33
|
+
<mwc-button raised label="${TermsUtil['tButton']('cancel')}" style="margin-left:7px;margin-top:7px;"
|
|
34
|
+
@click=${this[_0x36893e(0x16b)][_0x36893e(0x149)](this)}>
|
|
35
35
|
</mwc-button>
|
|
36
|
-
<mwc-button raised label="${TermsUtil[
|
|
37
|
-
@click=${this[
|
|
36
|
+
<mwc-button raised label="${TermsUtil[_0x36893e(0x17d)]('select')}" style="margin-left:7px;margin-top:7px;"
|
|
37
|
+
@click=${this[_0x36893e(0x17b)][_0x36893e(0x149)](this)}>
|
|
38
38
|
</mwc-button>
|
|
39
39
|
</div>
|
|
40
|
-
`;}get[
|
|
40
|
+
`;}get[a0_0x22227f(0x170)](){const _0x147a6d=a0_0x22227f;return this[_0x147a6d(0x178)][_0x147a6d(0x199)](_0x147a6d(0x174));}async[a0_0x22227f(0x19e)]({page:_0x47e603=0x0,limit:_0x494dfb=0x0,sorters:_0xe06115=[],filters:_0x4c99ff=[]}){const _0x2b5410=a0_0x22227f;let _0xa862a1=[...this['search_hidden_fields']];_0x4c99ff['forEach'](_0x39a3b7=>{const _0x489e00=a0_0x59a7;let _0x471989=_0xa862a1[_0x489e00(0x163)](_0x867c90=>_0x39a3b7[_0x489e00(0x188)]==_0x867c90[_0x489e00(0x188)]);_0x471989&&_0x471989[_0x489e00(0x155)]>0x0&&delete _0xa862a1[_0x39a3b7['name']],_0xa862a1[_0x489e00(0x145)](_0x39a3b7);});let _0x495ed2=ValueUtil[_0x2b5410(0x187)](this['options']['menu_template']&&this['options'][_0x2b5410(0x162)][_0x2b5410(0x180)]||{},_0x2b5410(0x147),'after_set_fields'),_0x431c9e=Object[_0x2b5410(0x196)](_0x495ed2||{}),_0x514048=MetaApi['getSelectColumns'](this[_0x2b5410(0x194)][_0x2b5410(0x17f)][_0x2b5410(0x163)](_0x2ecf5a=>!_0x431c9e['includes'](_0x2ecf5a[_0x2b5410(0x188)])));return await MetaApi[_0x2b5410(0x179)](this[_0x2b5410(0x14e)]['queryName'],_0xa862a1,_0xe06115,_0x47e603,_0x494dfb,_0x514048);}async[a0_0x22227f(0x189)](_0x43ca12){const _0x516dcd=a0_0x22227f;this[_0x516dcd(0x17a)]&&this[_0x516dcd(0x17a)](null),closePopup(this);}async[a0_0x22227f(0x16b)](_0x1fb111){closePopup(this);}async[a0_0x22227f(0x17b)](_0x349b74){const _0x4e7bf5=a0_0x22227f;let _0xf482f8=this[_0x4e7bf5(0x170)][_0x4e7bf5(0x186)];_0xf482f8&&0x0!=_0xf482f8[_0x4e7bf5(0x155)]?this[_0x4e7bf5(0x192)](_0xf482f8[0x0]):MetaApi[_0x4e7bf5(0x15b)](_0x4e7bf5(0x169),TermsUtil[_0x4e7bf5(0x148)](_0x4e7bf5(0x177)));}async[a0_0x22227f(0x192)](_0x74ae2a){const _0x31c355=a0_0x22227f;this[_0x31c355(0x17a)]&&this[_0x31c355(0x17a)](_0x74ae2a),closePopup(this);}}customElements[a0_0x22227f(0x15e)](a0_0x22227f(0x18f),MetaObjectSelectorPopup);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const a0_0x589b7a=a0_0x1777;function a0_0x1df8(){const _0x5b4757=['object','226340pmsVBm','showToast','114890ONtQKF','cancel','info','render','6cSAAKN','1967936fDXXfX','clickCancel','define','NOTHING_CHANGED','connectedCallback','styles','value_field','codeValue','querySelector','value','clickSave','7WyEwtz','225YXFrvL','stringify','firstUpdated','func_name','2373748vrkGZI','tText','18913994Vusvgx','config','55233AyUNlV','tButton','shadowRoot','bind','updateOne','codeEditor','5557985gfqpnT','172pNJARS','record'];a0_0x1df8=function(){return _0x5b4757;};return a0_0x1df8();}(function(_0x4c5b32,_0x3bf048){const _0x89f7a0=a0_0x1777,_0x197a76=_0x4c5b32();while(!![]){try{const _0x47c1a7=-parseInt(_0x89f7a0(0xe3))/0x1+parseInt(_0x89f7a0(0xd5))/0x2+parseInt(_0x89f7a0(0xd9))/0x3*(-parseInt(_0x89f7a0(0xe0))/0x4)+-parseInt(_0x89f7a0(0xdf))/0x5*(parseInt(_0x89f7a0(0xc4))/0x6)+parseInt(_0x89f7a0(0xd0))/0x7*(parseInt(_0x89f7a0(0xc5))/0x8)+-parseInt(_0x89f7a0(0xd1))/0x9*(parseInt(_0x89f7a0(0xe5))/0xa)+parseInt(_0x89f7a0(0xd7))/0xb;if(_0x47c1a7===_0x3bf048)break;else _0x197a76['push'](_0x197a76['shift']());}catch(_0x265970){_0x197a76['push'](_0x197a76['shift']());}}}(a0_0x1df8,0xb38fd));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';function a0_0x1777(_0x623c,_0x36962c){const _0x1df804=a0_0x1df8();return a0_0x1777=function(_0x177773,_0x445118){_0x177773=_0x177773-0xc2;let _0x547a7b=_0x1df804[_0x177773];return _0x547a7b;},a0_0x1777(_0x623c,_0x36962c);}import{ServiceUtil}from'../../utils/service-util';import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';export class RecordBasedCodeEditorPopup extends LitElement{static [a0_0x589b7a(0xca)]=[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-input-code {
|
|
13
|
+
margin:10px;
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
flex: 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.button-container {
|
|
19
|
+
display: flex;
|
|
20
|
+
margin-left: auto;
|
|
21
|
+
}
|
|
22
|
+
`];async[a0_0x589b7a(0xc9)](){const _0x88c710=a0_0x589b7a;this[_0x88c710(0xce)]=this['record'][this[_0x88c710(0xd8)][_0x88c710(0xcb)]]?this['record'][this[_0x88c710(0xd8)][_0x88c710(0xcb)]]:'',_0x88c710(0xe2)==typeof this[_0x88c710(0xce)]?this[_0x88c710(0xcc)]=JSON[_0x88c710(0xd2)](this[_0x88c710(0xce)],0x0,0x2):this[_0x88c710(0xcc)]=this['value'],await super[_0x88c710(0xc9)]();}async[a0_0x589b7a(0xd3)](){const _0x5dc360=a0_0x589b7a;await super[_0x5dc360(0xd3)]();}[a0_0x589b7a(0xc3)](){const _0x2efe1a=a0_0x589b7a;return!!this[_0x2efe1a(0xd8)]['save_action']?html`
|
|
23
|
+
<ox-input-code mode="javascript" value=${this[_0x2efe1a(0xcc)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
24
|
+
<div id="button-container" class="button-container">
|
|
25
|
+
<mwc-button raised label="${TermsUtil['tButton'](_0x2efe1a(0xe6))}" style="margin-left:7px;margin-top:7px;"
|
|
26
|
+
@click=${this[_0x2efe1a(0xc6)][_0x2efe1a(0xdc)](this)}>
|
|
27
|
+
</mwc-button>
|
|
28
|
+
<mwc-button raised label="${TermsUtil[_0x2efe1a(0xda)]('save')}" style="margin-left:7px;margin-top:7px;"
|
|
29
|
+
@click=${this[_0x2efe1a(0xcf)][_0x2efe1a(0xdc)](this)}>
|
|
30
|
+
</mwc-button>
|
|
31
|
+
</div>
|
|
32
|
+
`:html`
|
|
33
|
+
<ox-input-code mode="javascript" value=${this[_0x2efe1a(0xcc)]} tab-size="2" tab-as-space="true"></ox-input-code>
|
|
34
|
+
<div id="button-container" class="button-container">
|
|
35
|
+
<mwc-button raised label="${TermsUtil[_0x2efe1a(0xda)](_0x2efe1a(0xe6))}" style="margin-left:7px;margin-top:7px;"
|
|
36
|
+
@click=${this['clickCancel'][_0x2efe1a(0xdc)](this)}>
|
|
37
|
+
</mwc-button>
|
|
38
|
+
</div>
|
|
39
|
+
`;}get[a0_0x589b7a(0xde)](){const _0xbba0b8=a0_0x589b7a;return this[_0xbba0b8(0xdb)][_0xbba0b8(0xcd)]('ox-input-code');}async[a0_0x589b7a(0xcf)](_0x37fedb){const _0x1ad726=a0_0x589b7a;if(this[_0x1ad726(0xcc)]===this[_0x1ad726(0xde)][_0x1ad726(0xce)])MetaApi[_0x1ad726(0xe4)](_0x1ad726(0xc2),TermsUtil[_0x1ad726(0xd6)](_0x1ad726(0xc8)));else{let _0x5e51e2=this[_0x1ad726(0xd8)]['save_action'][_0x1ad726(0xd4)],_0x517b10={'id':this[_0x1ad726(0xe1)]['id'],'cuFlag':'M'};_0x517b10[this[_0x1ad726(0xd8)][_0x1ad726(0xcb)]]=this['codeEditor'][_0x1ad726(0xce)],await ServiceUtil[_0x1ad726(0xdd)](_0x5e51e2,this['record']['id'],_0x517b10)&&closePopup(this);}}async[a0_0x589b7a(0xc6)](_0x35ee46){closePopup(this);}}customElements[a0_0x589b7a(0xc7)]('record-based-code-editor-popup',RecordBasedCodeEditorPopup);
|
package/client/index.js
CHANGED
|
@@ -36,4 +36,5 @@ export * from './pages/meta-main-tab-page'
|
|
|
36
36
|
export * from './pages/meta-main-tab-element'
|
|
37
37
|
|
|
38
38
|
/* Component */
|
|
39
|
-
export * from './component/popup/file-upload-popup'
|
|
39
|
+
export * from './component/popup/file-upload-popup'
|
|
40
|
+
export * from './component/popup/record-based-code-editor-popup'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x375bb0=a0_0x2a19;(function(_0x409776,_0x278f02){const _0x329112=a0_0x2a19,_0x3be176=_0x409776();while(!![]){try{const _0x369c27=parseInt(_0x329112(0xd2))/0x1+parseInt(_0x329112(0xb7))/0x2*(parseInt(_0x329112(0xc3))/0x3)+-parseInt(_0x329112(0xbb))/0x4+parseInt(_0x329112(0xbe))/0x5+parseInt(_0x329112(0xce))/0x6*(parseInt(_0x329112(0xca))/0x7)+-parseInt(_0x329112(0xc4))/0x8*(parseInt(_0x329112(0xe1))/0x9)+parseInt(_0x329112(0xe7))/0xa;if(_0x369c27===_0x278f02)break;else _0x3be176['push'](_0x3be176['shift']());}catch(_0x4d94e6){_0x3be176['push'](_0x3be176['shift']());}}}(a0_0x3240,0x77b8c));function a0_0x2a19(_0x426dee,_0x5cdf4c){const _0x3240ea=a0_0x3240();return a0_0x2a19=function(_0x2a1907,_0x52cab7){_0x2a1907=_0x2a1907-0xb3;let _0x4d75bb=_0x3240ea[_0x2a1907];return _0x4d75bb;},a0_0x2a19(_0x426dee,_0x5cdf4c);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x3240(){const _0x39a58a=['callScenario','openDynamicPopup','setParentId','189foQAzE','is_detail','menu','etc','57036eIyIRq','grist','pageUpdated','dispatchEvent','233528avfRIj','keys','menuInfo','etcConfig','excuteOpenPopupButtonClick','parseBasicFormConfigs','isElement','errors','fetchHandler','parseBasicTabConfigs','addEventListener','isDetail','tTitle','lifecycle','dataChangeEventHandler','5379219fsrmii','name','fetch','connectedCallback','detail','form-field-change','7990750hEXNwm','toLowerCase','fieldChangeHandlers','forEach','runScenario','data-changed','parseBasicGridConfigs','tagName','params','isNotEmpty','getAndParseMenuMeta','executeCallScenarioButtonClick','active','parent_id','after','getMenuMeta','854WQghlS','body','includes','parseBasicButtonConfigs','1892376jGZgLS','split','title_detail','1169485NoGBed','parseBasicServiceConfigs','result','is_popup','field-change','267ScSQRI','8EMbwhJ','isEmpty','meta-form-'];a0_0x3240=function(){return _0x39a58a;};return a0_0x3240();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x307e35=>class extends _0x307e35{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xe28796=>Boolean(_0xe28796)},'is_popup':{'type':Boolean,'converter':_0x12ba88=>Boolean(_0x12ba88)},'is_activity':{'type':Boolean,'converter':_0x502565=>Boolean(_0x502565)},'is_readonly':{'type':Boolean,'converter':_0x12b90e=>Boolean(_0x12b90e)}};}get[a0_0x375bb0(0xd8)](){const _0x154efc=a0_0x375bb0;return!0x0===this[_0x154efc(0xcb)]||!0x0===this[_0x154efc(0xc1)];}get[a0_0x375bb0(0xdd)](){const _0x50a301=a0_0x375bb0;return!ValueUtil[_0x50a301(0xc5)](this['is_detail'])&&this['is_detail'];}async[a0_0x375bb0(0xe0)](_0x45b81e){const _0x2c9a0d=a0_0x375bb0;let {after:_0x287e45,before:_0x3ef300,column:_0x30ea85,record:_0x516b0c,row:_0x1e9450}=_0x45b81e['detail'],_0x492480=_0x30ea85[_0x2c9a0d(0xe2)];if(Object[_0x2c9a0d(0xd3)](this[_0x2c9a0d(0xe9)]||{})[_0x2c9a0d(0xb9)](_0x492480)){let _0x33fa8c,_0x5060e1=(await MetaApi[_0x2c9a0d(0xc7)](void 0x0,this[_0x2c9a0d(0xe9)][_0x492480],{'columnName':_0x492480,'column':_0x30ea85,'record':_0x516b0c,'after':_0x287e45,'before':_0x3ef300,'row':_0x1e9450,'parentId':this[_0x2c9a0d(0xb4)]?this['parent_id']:''},!0x1))['data'][_0x2c9a0d(0xeb)][_0x2c9a0d(0xc0)][_0x2c9a0d(0xc0)];if(!_0x5060e1)return;_0x33fa8c=this['grist']?this['grist'][_0x2c9a0d(0xcf)][_0x2c9a0d(0xb8)]:this,Object[_0x2c9a0d(0xd3)](_0x5060e1)[_0x2c9a0d(0xea)](_0x1538ba=>{const _0x3394db=_0x2c9a0d;_0x33fa8c['dispatchEvent'](new CustomEvent(_0x3394db(0xc2),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x516b0c,'row':_0x1e9450,'after':_0x5060e1[_0x1538ba],'before':_0x516b0c[_0x1538ba],'column':{'name':_0x1538ba}}}));});}this[_0x2c9a0d(0xd1)](new CustomEvent(_0x2c9a0d(0xec),{'bubbles':!0x0,'composed':!0x0,'detail':_0x45b81e[_0x2c9a0d(0xe5)]}));}async[a0_0x375bb0(0xe4)](){const _0x23ec5e=a0_0x375bb0;super[_0x23ec5e(0xe4)]&&await super[_0x23ec5e(0xe4)](),this[_0x23ec5e(0xee)][_0x23ec5e(0xe8)]()['startsWith'](_0x23ec5e(0xc6))?this[_0x23ec5e(0xdc)](_0x23ec5e(0xe6),async _0x31a9d3=>{await this['dataChangeEventHandler'](_0x31a9d3);}):this['addEventListener'](_0x23ec5e(0xc2),async _0x2bc123=>{const _0x503b75=_0x23ec5e;await this[_0x503b75(0xe0)](_0x2bc123);});}async[a0_0x375bb0(0xd0)](_0x36021c,_0x218743,_0x3a52cb){const _0x1d92f3=a0_0x375bb0;let _0x54049a=this[_0x1d92f3(0xdf)]?.[_0x1d92f3(0xef)]?this[_0x1d92f3(0xdf)][_0x1d92f3(0xef)]:{};this['isPage']&&this[_0x1d92f3(0xb3)]&&0x0==_0x3a52cb[_0x1d92f3(0xb3)]&&ValueUtil[_0x1d92f3(0xf0)](_0x54049a)&&this[_0x1d92f3(0xe3)]();}get['isPopup'](){const _0x3eed1b=a0_0x375bb0;return!ValueUtil[_0x3eed1b(0xc5)](this['is_popup'])&&this[_0x3eed1b(0xc1)];}get['isPage'](){const _0x266b7a=a0_0x375bb0;return!this['is_detail']&&!this[_0x266b7a(0xc1)];}async[a0_0x375bb0(0xf1)](){const _0xc59f17=a0_0x375bb0;let _0x3680e1=await MetaApi[_0xc59f17(0xb6)](this);_0x3680e1&&(this[_0xc59f17(0xd4)]=_0x3680e1[_0xc59f17(0xcc)],this[_0xc59f17(0xd5)]=_0x3680e1[_0xc59f17(0xcd)],this[_0xc59f17(0xed)]&&this[_0xc59f17(0xed)](_0x3680e1),this[_0xc59f17(0xbf)]&&this[_0xc59f17(0xbf)](_0x3680e1),this['parseBasicFormConfigs']&&this[_0xc59f17(0xd7)](_0x3680e1),this[_0xc59f17(0xdb)]&&this[_0xc59f17(0xdb)](_0x3680e1),this[_0xc59f17(0xba)]&&this['parseBasicButtonConfigs'](_0x3680e1));}async['fetch'](){const _0x3a6aff=a0_0x375bb0;ValueUtil[_0x3a6aff(0xf0)](this[_0x3a6aff(0xcf)])?this[_0x3a6aff(0xcf)][_0x3a6aff(0xe3)]():(ValueUtil[_0x3a6aff(0xf0)](this['filterForm'])||this[_0x3a6aff(0xda)])&&await this[_0x3a6aff(0xda)]();}async[a0_0x375bb0(0xd6)](_0x540016,_0x119f9e,_0x24ad5f){const _0x33da2f=a0_0x375bb0;let _0xc287b0=TermsUtil[_0x33da2f(0xde)](_0x540016['title']);ValueUtil[_0x33da2f(0xf0)](_0x540016[_0x33da2f(0xbd)])&&(_0xc287b0=_0xc287b0+'-'+ValueUtil['getParams'](_0x119f9e,..._0x540016['title_detail'][_0x33da2f(0xbc)]('.'))),MetaApi[_0x33da2f(0xc8)](_0xc287b0,_0x540016,_0x119f9e,_0x24ad5f);}async[a0_0x375bb0(0xf2)](_0x88e1d8,_0x222d3e,_0x4262f8){const _0xcd9acf=a0_0x375bb0;let _0x3bd8a8=await MetaApi[_0xcd9acf(0xc7)](_0x88e1d8['name'],_0x88e1d8[_0xcd9acf(0xe2)],_0x222d3e);!0x1!==_0x3bd8a8&&!_0x3bd8a8[_0xcd9acf(0xd9)]&&ValueUtil[_0xcd9acf(0xf0)](_0x88e1d8[_0xcd9acf(0xb5)])&&_0x4262f8();}[a0_0x375bb0(0xc9)](_0x3ab09e){this['parent_id']=_0x3ab09e,this['fetch']();}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
${MetaApi[
|
|
3
|
-
${this[
|
|
4
|
-
`;}[
|
|
1
|
+
const a0_0x151171=a0_0x314a;(function(_0x3b7507,_0x5f3724){const _0x1405dd=a0_0x314a,_0x3ddd7e=_0x3b7507();while(!![]){try{const _0x266dc8=-parseInt(_0x1405dd(0x10d))/0x1+-parseInt(_0x1405dd(0x110))/0x2*(-parseInt(_0x1405dd(0x11a))/0x3)+-parseInt(_0x1405dd(0x111))/0x4*(-parseInt(_0x1405dd(0x116))/0x5)+-parseInt(_0x1405dd(0x131))/0x6*(parseInt(_0x1405dd(0x10a))/0x7)+-parseInt(_0x1405dd(0x11e))/0x8*(-parseInt(_0x1405dd(0x130))/0x9)+-parseInt(_0x1405dd(0x135))/0xa*(-parseInt(_0x1405dd(0x132))/0xb)+-parseInt(_0x1405dd(0x113))/0xc;if(_0x266dc8===_0x5f3724)break;else _0x3ddd7e['push'](_0x3ddd7e['shift']());}catch(_0x183cff){_0x3ddd7e['push'](_0x3ddd7e['shift']());}}}(a0_0x5f1a,0xdd056));import{html}from'lit';function a0_0x5f1a(){const _0x28faf4=['styles','keys','clear','gristConfigSet','2961BgyLQh','18912JXTaTt','44pHcNNZ','search','records','746260YHXhLC','parseBasicGridConfigs','filterFormId','ox-grist','parseGristConfigs','properties','getContextObject','connectedCallback','getBasicGristHtml','startsWith','fetch','updateMultiple','getBasicGristStyles','deleteByIds','203rRXnKS','save','isNotEmpty','1191355SEwccq','isElement','data','717748OXIXyH','1758404hMcTdd','grid','13813416qhSQgR','gridColumnConfig','grist','5cbsPTM','grid_column','searchConfig','getAndParseMenuMeta','15AtbFqL','shadowRoot','gridEmphasized','context','19616PQBYJM','getSelectedIdList','isPage','firstUpdated','pageInitialized','getParams','gristId','forEach','patchesForUpdateMultiple','stringify','render','activityDataSet','title','querySelector'];a0_0x5f1a=function(){return _0x28faf4;};return a0_0x5f1a();}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_0x314a(_0x5a129a,_0x4f4d89){const _0x5f1a3f=a0_0x5f1a();return a0_0x314a=function(_0x314a56,_0x443ea6){_0x314a56=_0x314a56-0x103;let _0x2d2f3a=_0x5f1a3f[_0x314a56];return _0x2d2f3a;},a0_0x314a(_0x5a129a,_0x4f4d89);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x51610a=>class extends MetaButtonMixin(_0x51610a){static get[a0_0x151171(0x12c)](){const _0x4b2f73=a0_0x151171;return MetaApi[_0x4b2f73(0x108)]();}static get[a0_0x151171(0x13a)](){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_0x151171(0x115)](){const _0xa035c5=a0_0x151171;return this['renderRoot']?.[_0xa035c5(0x12b)](this[_0xa035c5(0x124)]);}get['filterForm'](){const _0x29b288=a0_0x151171;return this[_0x29b288(0x11b)]?.[_0x29b288(0x12b)](this[_0x29b288(0x137)]);}get[a0_0x151171(0x11d)](){const _0x24ae19=a0_0x151171;return MetaUiUtil[_0x24ae19(0x13b)](this);}async[a0_0x151171(0x103)](){const _0x3984bb=a0_0x151171;this[_0x3984bb(0x124)]=_0x3984bb(0x138),this[_0x3984bb(0x137)]='ox-filters-form',await this[_0x3984bb(0x119)](),this[_0x3984bb(0x10e)]&&await this[_0x3984bb(0x139)](),this[_0x3984bb(0x129)]&&(this['dataSet']=this[_0x3984bb(0x129)]),super[_0x3984bb(0x103)]&&await super[_0x3984bb(0x103)]();}async['firstUpdated'](){const _0x4be57a=a0_0x151171;super[_0x4be57a(0x121)]&&await super[_0x4be57a(0x121)]();}async[a0_0x151171(0x122)](){const _0x14a34b=a0_0x151171;this[_0x14a34b(0x120)]&&await this[_0x14a34b(0x139)](),super[_0x14a34b(0x122)]&&await super[_0x14a34b(0x122)]();}[a0_0x151171(0x128)](){const _0x28d13b=a0_0x151171;return html`
|
|
2
|
+
${MetaApi[_0x28d13b(0x104)](this)}
|
|
3
|
+
${this[_0x28d13b(0x120)]?html``:MetaUiUtil['getButtonContainer'](this)}
|
|
4
|
+
`;}[a0_0x151171(0x136)](_0x2ab49a){const _0x4f5426=a0_0x151171;this['gridConfig']=_0x2ab49a[_0x4f5426(0x112)],this[_0x4f5426(0x114)]=_0x2ab49a[_0x4f5426(0x117)],this[_0x4f5426(0x118)]=_0x2ab49a[_0x4f5426(0x133)],this[_0x4f5426(0x11c)]=_0x2ab49a[_0x4f5426(0x11c)];}async[a0_0x151171(0x139)](){const _0x27c82f=a0_0x151171;this[_0x27c82f(0x12f)]=await MetaApi['parseGridConfigSet'](this);}async['fetch'](){const _0x120954=a0_0x151171;await this['grist'][_0x120954(0x106)]();}async[a0_0x151171(0x10b)](){const _0x1cf527=a0_0x151171;let _0x2df232=MetaApi[_0x1cf527(0x126)](this[_0x1cf527(0x115)]);!!ValueUtil[_0x1cf527(0x10c)](_0x2df232)&&await this[_0x1cf527(0x107)](_0x2df232)&&this[_0x1cf527(0x106)]();}async['find'](){const _0x36ca9f=a0_0x151171;let _0x3c5c45=MetaApi[_0x36ca9f(0x11f)](this[_0x36ca9f(0x115)],!0x0);return ValueUtil[_0x36ca9f(0x10c)](_0x3c5c45)?await this['findOne'](_0x3c5c45[0x0]):{};}async['delete'](){const _0x6c7c0=a0_0x151171;let _0xc5e289=MetaApi[_0x6c7c0(0x11f)](this[_0x6c7c0(0x115)],!0x0);!!ValueUtil[_0x6c7c0(0x10c)](_0xc5e289)&&await this[_0x6c7c0(0x109)](_0xc5e289)&&this[_0x6c7c0(0x106)]();}async['export'](){const _0x54c3e5=a0_0x151171;let _0x1e1640=TermsUtil['tTitle'](ValueUtil[_0x54c3e5(0x123)](this['menuInfo'],_0x54c3e5(0x12a)));return await MetaApi['exportableData'](this[_0x54c3e5(0x10e)],_0x1e1640,this[_0x54c3e5(0x115)]);}async['import'](){}async[a0_0x151171(0x12e)](){const _0x21c1ac=a0_0x151171;this[_0x21c1ac(0x115)]&&(this[_0x21c1ac(0x115)][_0x21c1ac(0x10f)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0xd42092=a0_0x151171;let _0x37cb35=this[_0xd42092(0x115)]['___data'][_0xd42092(0x134)];return _0x37cb35=JSON['parse'](JSON[_0xd42092(0x127)](_0x37cb35)),_0x37cb35[_0xd42092(0x125)](_0xb37d86=>{const _0x5e1756=_0xd42092;Object[_0x5e1756(0x12d)](_0xb37d86)[_0x5e1756(0x125)](_0x2ac871=>{const _0x12fb67=_0x5e1756;_0x2ac871[_0x12fb67(0x105)]('__')&&delete _0xb37d86[_0x2ac871];});}),_0x37cb35;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0xac9d27=a0_0xd7aa;function a0_0x1cae(){const _0x3a3067=['140151capzJA','import','2087351RELyAe','getContextButtons','3840108luutmR','186760CVFdhS','211424KbXdKN','3MBNroL','gristButtonHandler','72ixjFLS','properties','useButtonImport','isButtonExist','add','660063busXsC','buttonConfig','getButtonContainer','button','useButtonAdd','3394100rmGXti','getBasicButtonHandler','2TSINCF','getCustomButtonContainerStyle','120opIJqg','export','parseBasicButtonConfigs'];a0_0x1cae=function(){return _0x3a3067;};return a0_0x1cae();}(function(_0x2b3a10,_0x41b0e4){const _0xf83abf=a0_0xd7aa,_0x391a73=_0x2b3a10();while(!![]){try{const _0x2b663a=-parseInt(_0xf83abf(0x13d))/0x1*(parseInt(_0xf83abf(0x12a))/0x2)+parseInt(_0xf83abf(0x136))/0x3*(parseInt(_0xf83abf(0x134))/0x4)+parseInt(_0xf83abf(0x128))/0x5+parseInt(_0xf83abf(0x133))/0x6+-parseInt(_0xf83abf(0x131))/0x7+parseInt(_0xf83abf(0x135))/0x8*(-parseInt(_0xf83abf(0x138))/0x9)+-parseInt(_0xf83abf(0x12c))/0xa*(-parseInt(_0xf83abf(0x12f))/0xb);if(_0x2b663a===_0x41b0e4)break;else _0x391a73['push'](_0x391a73['shift']());}catch(_0x326251){_0x391a73['push'](_0x391a73['shift']());}}}(a0_0x1cae,0x55244));import{html}from'lit';function a0_0xd7aa(_0x4d5bd7,_0x5dbe77){const _0x1cae7a=a0_0x1cae();return a0_0xd7aa=function(_0xd7aa10,_0x1cd668){_0xd7aa10=_0xd7aa10-0x124;let _0x4ddc01=_0x1cae7a[_0xd7aa10];return _0x4ddc01;},a0_0xd7aa(_0x4d5bd7,_0x5dbe77);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x439020=>class extends MetaServiceMixin(_0x439020){static get[a0_0xac9d27(0x139)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0xac9d27(0x12b)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0xac9d27(0x132)](){return MetaUiUtil['getContextButtons'](this);}[a0_0xac9d27(0x125)](){const _0x593902=a0_0xac9d27;return this['isPage']?html``:MetaUiUtil[_0x593902(0x125)](this);}async[a0_0xac9d27(0x129)](_0x1faf2a,_0x489ad3,_0x3b41d2){return await MetaUiUtil['getButtonActionHandler'](this,_0x1faf2a,_0x489ad3,_0x3b41d2);}async['customButtonHandler'](_0x9a56f6){await MetaUiUtil['customButtonHandler'](this,_0x9a56f6);}async['gristButtonHandler'](_0x3e5519,_0x47583d){const _0x399928=a0_0xac9d27;await MetaUiUtil[_0x399928(0x137)](this,_0x3e5519,_0x47583d);}[a0_0xac9d27(0x12e)](_0x5f2763){const _0x5b4eef=a0_0xac9d27;this[_0x5b4eef(0x124)]=_0x5f2763[_0x5b4eef(0x126)],this[_0x5b4eef(0x13a)]=MetaUiUtil[_0x5b4eef(0x13b)](this['buttonConfig'],_0x5b4eef(0x130)),this['useButtonExport']=MetaUiUtil[_0x5b4eef(0x13b)](this[_0x5b4eef(0x124)],_0x5b4eef(0x12d)),this[_0x5b4eef(0x127)]=MetaUiUtil[_0x5b4eef(0x13b)](this['buttonConfig'],_0x5b4eef(0x13c));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4d557b=a0_0x1a6d;(function(_0x5c981c,_0x1f1990){const _0x3a22fe=a0_0x1a6d,_0x48aa51=_0x5c981c();while(!![]){try{const _0x42d0cd=-parseInt(_0x3a22fe(0x152))/0x1*(-parseInt(_0x3a22fe(0x158))/0x2)+parseInt(_0x3a22fe(0x14d))/0x3+parseInt(_0x3a22fe(0x130))/0x4+-parseInt(_0x3a22fe(0x137))/0x5+parseInt(_0x3a22fe(0x12b))/0x6*(parseInt(_0x3a22fe(0x13c))/0x7)+parseInt(_0x3a22fe(0x12c))/0x8*(-parseInt(_0x3a22fe(0x16b))/0x9)+-parseInt(_0x3a22fe(0x15c))/0xa;if(_0x42d0cd===_0x1f1990)break;else _0x48aa51['push'](_0x48aa51['shift']());}catch(_0x329e47){_0x48aa51['push'](_0x48aa51['shift']());}}}(a0_0x56a3,0xc72de));function a0_0x56a3(){const _0x16d1d2=['getContextObject','parseFormConfigs','activityDataSet','removeAttribute','map','call','2828520fxdJeD','forEach','dispatchEvent','clear','dataSet','144147SsPgCE','getBasicFormHtml','before','confirm','parent_id','setAttribute','22MkrLTf','updateMultiple','focus','context','21071920zZerVh','editing','parseBasicFormConfigs','tText','cuFlag','stopPropagation','__origin__','object','field-change','isEquals','after','removeGarbageData','record','is_activity','entries','111429IllaXc','tLabel','text.NOTHING_CHANGED','form','styles','patchData','Esc','getAndParseMenuMeta','true','click','startsWith','grid_column','currentData','findOne','__dirtyfields__','addEventListener','text.check-mandatory','orgData','save','fetch','title.info','header','__dirty__','connectedCallback','editable','formColumnConfig','isElement','isNotEmpty','properties','formConfigSet','button','42mAnbHg','904PlElkU','showAlertPopup','filter','detail','2897828IgaxEg','type','OX-GRID-FIELD','render','firstUpdated','target','getBasicFormStyles','1577400rezkkP','tagName','dirtyData','Escape','activity','1384649yxhfYE','column','name','renderRoot','currentTarget','Enter','isPage','validation','pageInitialized','includes','isEmpty'];a0_0x56a3=function(){return _0x16d1d2;};return a0_0x56a3();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';function a0_0x1a6d(_0x295fa8,_0x3caf8a){const _0x56a369=a0_0x56a3();return a0_0x1a6d=function(_0x1a6d7b,_0xc62188){_0x1a6d7b=_0x1a6d7b-0x120;let _0x9a5981=_0x56a369[_0x1a6d7b];return _0x9a5981;},a0_0x1a6d(_0x295fa8,_0x3caf8a);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2b6d7e=>class extends MetaButtonMixin(_0x2b6d7e){static get[a0_0x4d557b(0x16f)](){const _0x4ef899=a0_0x4d557b;return MetaApi[_0x4ef899(0x136)]();}static get[a0_0x4d557b(0x128)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x4d557b(0x15b)](){const _0x37fb3f=a0_0x4d557b;return MetaUiUtil[_0x37fb3f(0x147)](this);}async[a0_0x4d557b(0x123)](){const _0x1710eb=a0_0x4d557b;await this[_0x1710eb(0x172)](),this[_0x1710eb(0x126)]&&await this[_0x1710eb(0x148)](),this[_0x1710eb(0x149)]&&(this[_0x1710eb(0x151)]=this[_0x1710eb(0x149)]),!0x0!==this[_0x1710eb(0x169)]||this[_0x1710eb(0x156)]||(this[_0x1710eb(0x156)]=_0x1710eb(0x13b)),super[_0x1710eb(0x123)]&&await super[_0x1710eb(0x123)](),this['isElement']&&await this[_0x1710eb(0x17e)](),this[_0x1710eb(0x13f)][_0x1710eb(0x17a)]('keydown',_0x5b607c=>{const _0x13fbc3=_0x1710eb;switch(_0x5b607c['key']){case _0x13fbc3(0x171):case _0x13fbc3(0x13a):case _0x13fbc3(0x141):this[_0x13fbc3(0x15a)](),this['currentTarget']&&this['currentTarget'][_0x13fbc3(0x14a)]('editing'),this[_0x13fbc3(0x140)]=null;}}),this[_0x1710eb(0x13f)]['addEventListener'](_0x1710eb(0x174),_0x208d02=>{const _0x1c3bec=_0x1710eb;_0x208d02[_0x1c3bec(0x161)]();let _0x1bcf50=_0x208d02[_0x1c3bec(0x135)];if(this[_0x1c3bec(0x140)]&&(this['focus'](),this[_0x1c3bec(0x140)][_0x1c3bec(0x14a)]('editing')),_0x1c3bec(0x132)!==_0x1bcf50[_0x1c3bec(0x138)]||!_0x1bcf50[_0x1c3bec(0x13d)]['record'][_0x1c3bec(0x124)])return this[_0x1c3bec(0x15a)](),void(this['currentTarget']=null);this[_0x1c3bec(0x140)]=_0x1bcf50,_0x1bcf50[_0x1c3bec(0x157)](_0x1c3bec(0x15d),_0x1c3bec(0x173));}),this[_0x1710eb(0x17a)](_0x1710eb(0x164),_0x5803de=>{const _0x16f0f7=_0x1710eb;var {after:_0x354e1f,before:_0x51bd44,column:_0x148e7c,record:_0x2d824f,row:_0x3b24e4}=_0x5803de['detail'];if(ValueUtil[_0x16f0f7(0x165)](_0x354e1f,_0x51bd44))return;var _0x16991f=_0x148e7c[_0x16f0f7(0x143)];if(_0x16991f&&'function'==typeof _0x16991f&&!_0x16991f[_0x16f0f7(0x14c)](this,_0x354e1f,_0x51bd44,_0x2d824f,_0x148e7c))return;let _0x5311ff=_0x148e7c[_0x16f0f7(0x13e)];_0x2d824f[_0x5311ff]=_0x354e1f,_0x2d824f[_0x16f0f7(0x179)]=_0x2d824f[_0x16f0f7(0x179)]||{},_0x2d824f[_0x16f0f7(0x162)]=_0x2d824f['__origin__']||{},_0x2d824f['__dirtyfields__'][_0x5311ff]={'before':_0x2d824f['__origin__'][_0x5311ff],'after':_0x2d824f[_0x5311ff]},ValueUtil['isEquals'](_0x2d824f[_0x16f0f7(0x179)][_0x5311ff][_0x16f0f7(0x154)],_0x2d824f['__dirtyfields__'][_0x5311ff]['after'])&&delete _0x2d824f['__dirtyfields__'][_0x5311ff],ValueUtil[_0x16f0f7(0x127)](_0x2d824f['__dirtyfields__'])?_0x2d824f['__dirty__']='M':_0x2d824f[_0x16f0f7(0x122)]='',this[_0x16f0f7(0x168)]={..._0x2d824f},this[_0x16f0f7(0x14f)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x5803de[_0x16f0f7(0x12f)]}));});}async[a0_0x4d557b(0x134)](){const _0x4d4d9d=a0_0x4d557b;super[_0x4d4d9d(0x134)]&&await super[_0x4d4d9d(0x134)]();}async['pageInitialized'](){const _0x4f9bdf=a0_0x4d557b;this[_0x4f9bdf(0x142)]&&await this['parseFormConfigs'](),super['pageInitialized']&&await super[_0x4f9bdf(0x144)](),this['isPage']&&await this['fetch']();}[a0_0x4d557b(0x133)](){const _0x1908af=a0_0x4d557b;return MetaApi[_0x1908af(0x153)](this);}[a0_0x4d557b(0x15e)](_0x5437e9){const _0x201e47=a0_0x4d557b;this[_0x201e47(0x125)]=_0x5437e9[_0x201e47(0x176)],this['formRenderConfig']=_0x5437e9[_0x201e47(0x16e)],_0x5437e9[_0x201e47(0x12a)]=_0x5437e9['button'][_0x201e47(0x12e)](_0x124fb0=>_0x201e47(0x17d)==_0x124fb0['name']);}async[a0_0x4d557b(0x148)](){const _0x46f0c6=a0_0x4d557b;this[_0x46f0c6(0x129)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x4d557b(0x17c)](){const _0x2e174d=a0_0x4d557b;return this[_0x2e174d(0x167)](this[_0x2e174d(0x168)][_0x2e174d(0x162)]);}get[a0_0x4d557b(0x139)](){const _0x3777e8=a0_0x4d557b;if(ValueUtil[_0x3777e8(0x146)]((this[_0x3777e8(0x168)]||{})[_0x3777e8(0x179)]))return{};let _0x32f3dc={};return Object[_0x3777e8(0x16a)](this[_0x3777e8(0x168)][_0x3777e8(0x179)])[_0x3777e8(0x14b)](([_0x22b12e,_0x333bd1])=>{const _0x40e43b=_0x3777e8;0x0==_0x22b12e[_0x40e43b(0x175)]('__')&&(_0x32f3dc[_0x22b12e]=_0x333bd1[_0x40e43b(0x166)]);}),_0x32f3dc;}get[a0_0x4d557b(0x177)](){return this['removeGarbageData'](this['record']);}['removeGarbageData'](_0x5de0d1){const _0xcc10a3=a0_0x4d557b;let _0xe8ca4b={};if(_0x5de0d1)return Object[_0xcc10a3(0x16a)](_0x5de0d1)[_0xcc10a3(0x14b)](([_0x471ecf,_0x26444c])=>{const _0x13bf1d=_0xcc10a3;0x0==_0x471ecf[_0x13bf1d(0x175)]('__')&&(_0xe8ca4b[_0x471ecf]=_0x26444c);}),_0xe8ca4b;}get[a0_0x4d557b(0x170)](){const _0x3cdcae=a0_0x4d557b;let _0x2f9cd3=this['dirtyData'],_0x53acce=this['record'],_0xd26477=(this[_0x3cdcae(0x125)]||[])[_0x3cdcae(0x12e)](_0x1561ff=>'code-input'===_0x1561ff[_0x3cdcae(0x131)])[_0x3cdcae(0x14b)](_0x5c85ce=>_0x5c85ce[_0x3cdcae(0x13e)]);if(!ValueUtil[_0x3cdcae(0x146)](_0x2f9cd3))return ValueUtil[_0x3cdcae(0x127)](_0x53acce['id'])?(_0x2f9cd3['id']=_0x53acce['id'],_0x2f9cd3[_0x3cdcae(0x160)]='M'):_0x2f9cd3[_0x3cdcae(0x160)]='+',Object['keys'](_0x2f9cd3)['forEach'](_0x44e5f8=>{const _0x5c71d1=_0x3cdcae;_0x5c71d1(0x163)==typeof _0x2f9cd3[_0x44e5f8]&&0x0==_0xd26477[_0x5c71d1(0x145)](_0x44e5f8)&&(_0x2f9cd3[_0x44e5f8]={'id':_0x2f9cd3[_0x44e5f8]['id']});}),[_0x2f9cd3];}async[a0_0x4d557b(0x17e)](){const _0x1bfab5=a0_0x4d557b;if(ValueUtil[_0x1bfab5(0x146)](this[_0x1bfab5(0x156)]))return;let _0x55ceaf=await this[_0x1bfab5(0x178)](this[_0x1bfab5(0x156)]);_0x55ceaf['__seq__']=0x1;let _0x23d527={};Object['assign'](_0x23d527,_0x55ceaf),_0x55ceaf[_0x1bfab5(0x162)]=_0x23d527,this['record']={..._0x55ceaf};}async[a0_0x4d557b(0x17d)](){const _0x52b2a2=a0_0x4d557b;let _0x417f44=this[_0x52b2a2(0x170)];if(ValueUtil[_0x52b2a2(0x146)](_0x417f44))return void MetaApi['showAlertPopup'](_0x52b2a2(0x120),_0x52b2a2(0x16d));let _0x3fe806={};(this['formColumnConfig']||[])[_0x52b2a2(0x12e)](_0x418c27=>!0x0===_0x418c27['mandatory'])[_0x52b2a2(0x14e)](_0x155e4a=>{const _0x17620f=_0x52b2a2;_0x3fe806[_0x155e4a[_0x17620f(0x13e)]]=_0x155e4a[_0x17620f(0x121)];});let _0x3b0eb9=this[_0x52b2a2(0x177)];for(let _0x301416 in _0x3fe806)if(void 0x0===_0x3b0eb9[_0x301416]||''==_0x3b0eb9[_0x301416])return void UiUtil[_0x52b2a2(0x12d)](_0x52b2a2(0x17b),TermsUtil[_0x52b2a2(0x15f)]('check-mandatory-field',{'x':TermsUtil[_0x52b2a2(0x16c)](_0x3fe806[_0x301416])}),'info',_0x52b2a2(0x155));let _0x251564=await this[_0x52b2a2(0x159)](_0x417f44);return _0x251564&&await this[_0x52b2a2(0x17e)](),_0x251564;}async[a0_0x4d557b(0x150)](){const _0x241dcf=a0_0x4d557b;this[_0x241dcf(0x168)]&&(this[_0x241dcf(0x168)]={});}['getData'](){return this['currentData']||{};}};
|