@things-factory/meta-ui 9.0.0-beta.8 → 9.0.0-beta.80
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/dist-client/bootstrap.d.ts +5 -5
- package/dist-client/bootstrap.js +20 -20
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -2
- package/dist-client/component/grist/renderer/grist-renderer-meta-object-selector.js.map +1 -1
- package/dist-client/component/popup/code-input-editor-popup.js +20 -20
- package/dist-client/component/popup/code-input-editor-popup.js.map +1 -1
- package/dist-client/component/popup/file-upload-popup.js +4 -1
- package/dist-client/component/popup/file-upload-popup.js.map +1 -1
- package/dist-client/component/popup/meta-object-selector-popup.js +26 -26
- package/dist-client/component/popup/meta-object-selector-popup.js.map +1 -1
- package/dist-client/component/popup/record-based-code-editor-popup.js +20 -20
- package/dist-client/component/popup/record-based-code-editor-popup.js.map +1 -1
- package/dist-client/mixin/meta-base-mixin.js +1 -2
- package/dist-client/mixin/meta-base-mixin.js.map +1 -1
- package/dist-client/mixin/meta-basic-grist-mixin.js +2 -4
- package/dist-client/mixin/meta-basic-grist-mixin.js.map +1 -1
- package/dist-client/mixin/meta-form-mixin.js +2 -2
- package/dist-client/mixin/meta-form-mixin.js.map +1 -1
- package/dist-client/mixin/meta-grist-tab-mixin.js +1 -2
- package/dist-client/mixin/meta-grist-tab-mixin.js.map +1 -1
- package/dist-client/mixin/meta-main-tab-mixin.js +1 -2
- package/dist-client/mixin/meta-main-tab-mixin.js.map +1 -1
- package/dist-client/mixin/meta-master-detail-mixin.js +1 -2
- package/dist-client/mixin/meta-master-detail-mixin.js.map +1 -1
- package/dist-client/mixin/meta-service-mixin.js +2 -4
- package/dist-client/mixin/meta-service-mixin.js.map +1 -1
- package/dist-client/mixin/meta-tab-detail-mixin.js +1 -2
- package/dist-client/mixin/meta-tab-detail-mixin.js.map +1 -1
- package/dist-client/pages/activity/meta-activity-define-page.js +10 -9
- package/dist-client/pages/activity/meta-activity-define-page.js.map +1 -1
- package/dist-client/pages/activity/meta-activity-list-page.js +22 -10
- package/dist-client/pages/activity/meta-activity-list-page.js.map +1 -1
- package/dist-client/pages/activity/meta-activiy-mixin.js +1 -2
- package/dist-client/pages/activity/meta-activiy-mixin.js.map +1 -1
- package/dist-client/pages/entity/config-entity.js +12 -10
- package/dist-client/pages/entity/config-entity.js.map +1 -1
- package/dist-client/pages/history/history-json-list-popup.js +4 -1
- package/dist-client/pages/history/history-json-list-popup.js.map +1 -1
- package/dist-client/pages/menu/dynamic-menu.js +5 -6
- package/dist-client/pages/menu/dynamic-menu.js.map +1 -1
- package/dist-client/pages/terms/config-terminology.js +10 -2
- package/dist-client/pages/terms/config-terminology.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/utils/meta-ui-util.js +25 -17
- package/dist-client/utils/meta-ui-util.js.map +1 -1
- package/dist-client/utils/service-util.js +22 -23
- package/dist-client/utils/service-util.js.map +1 -1
- package/dist-client/utils/terms-util.js +8 -2
- package/dist-client/utils/terms-util.js.map +1 -1
- package/dist-client/utils/ui-util.js +1 -2
- package/dist-client/utils/ui-util.js.map +1 -1
- package/dist-server/service/button-role/button-role-mutation.js +24 -6
- package/dist-server/service/button-role/button-role-mutation.js.map +1 -1
- package/dist-server/service/dynamic-menu/dynamic-menu-query.js +3 -4
- package/dist-server/service/dynamic-menu/dynamic-menu-query.js.map +1 -1
- package/dist-server/service/menu-button-auth/menu-button-auth-mutation.js +24 -6
- package/dist-server/service/menu-button-auth/menu-button-auth-mutation.js.map +1 -1
- package/dist-server/service/meta-activity/meta-activity-mutation.js +15 -5
- package/dist-server/service/meta-activity/meta-activity-mutation.js.map +1 -1
- package/dist-server/service/work-code/work-code-mutation.js +27 -8
- package/dist-server/service/work-code/work-code-mutation.js.map +1 -1
- package/dist-server/service/work-code-detail/work-code-detail-mutation.js +25 -7
- package/dist-server/service/work-code-detail/work-code-detail-mutation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
|
@@ -441,13 +441,13 @@ export class MetaUiUtil {
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
if (type === 'meta-object-selector' && ValueUtil.isNotEmpty(object_opt)) {
|
|
444
|
-
column.record.options =
|
|
444
|
+
column.record.options = { ...object_opt };
|
|
445
445
|
}
|
|
446
446
|
else if (type === 'meta-code-selector' && ValueUtil.isNotEmpty(object_opt)) {
|
|
447
447
|
if (object_opt.dispField) {
|
|
448
448
|
object_opt.codes = await ServiceUtil.getCodeByEntity(object_opt);
|
|
449
449
|
}
|
|
450
|
-
column.record.options =
|
|
450
|
+
column.record.options = { ...object_opt };
|
|
451
451
|
}
|
|
452
452
|
columns.push(column);
|
|
453
453
|
}
|
|
@@ -599,7 +599,11 @@ export class MetaUiUtil {
|
|
|
599
599
|
popup_field: 'open_param',
|
|
600
600
|
parent_field: 'id'
|
|
601
601
|
};
|
|
602
|
-
let params =
|
|
602
|
+
let params = {
|
|
603
|
+
...record,
|
|
604
|
+
gqlFunc: ValueUtil.getParams(pageView.gqlInfo, 'query', 'find_one_func'),
|
|
605
|
+
gristConfig: JSON.parse(JSON.stringify(pageView.grist.config))
|
|
606
|
+
};
|
|
603
607
|
MetaUiUtil.gristButtonHandler(pageView, { logic: action }, params);
|
|
604
608
|
}
|
|
605
609
|
}
|
|
@@ -730,13 +734,13 @@ export class MetaUiUtil {
|
|
|
730
734
|
}
|
|
731
735
|
// object-option
|
|
732
736
|
if (type === 'meta-object-selector' && ValueUtil.isNotEmpty(object_opt)) {
|
|
733
|
-
column.record.options =
|
|
737
|
+
column.record.options = { ...object_opt };
|
|
734
738
|
}
|
|
735
739
|
else if (type === 'meta-code-selector' && ValueUtil.isNotEmpty(object_opt)) {
|
|
736
740
|
if (object_opt.dispField) {
|
|
737
741
|
object_opt.codes = await ServiceUtil.getCodeByEntity(object_opt);
|
|
738
742
|
}
|
|
739
|
-
column.record.options =
|
|
743
|
+
column.record.options = { ...object_opt };
|
|
740
744
|
}
|
|
741
745
|
// attributes (확장 속성)
|
|
742
746
|
if (type === 'attributes' && format) {
|
|
@@ -953,7 +957,11 @@ export class MetaUiUtil {
|
|
|
953
957
|
}
|
|
954
958
|
}
|
|
955
959
|
: {};
|
|
956
|
-
return
|
|
960
|
+
return {
|
|
961
|
+
title: TermsUtil.tButton(label),
|
|
962
|
+
action: MetaUiUtil.getButtonActionHandler(pageView, type, action, logic),
|
|
963
|
+
...btnStylecss
|
|
964
|
+
};
|
|
957
965
|
})
|
|
958
966
|
.filter(btn => btn.title != '-1');
|
|
959
967
|
}
|
|
@@ -1149,7 +1157,6 @@ export class MetaUiUtil {
|
|
|
1149
1157
|
* @param {Object} logic 버튼 커스텀 로직 JSON
|
|
1150
1158
|
*/
|
|
1151
1159
|
static async gristScreenCustomButtonHandler(pageView, buttonName, logic) {
|
|
1152
|
-
var _a, _b;
|
|
1153
1160
|
if (ValueUtil.isEmpty(logic))
|
|
1154
1161
|
return;
|
|
1155
1162
|
let grist = pageView.grist;
|
|
@@ -1166,7 +1173,7 @@ export class MetaUiUtil {
|
|
|
1166
1173
|
return;
|
|
1167
1174
|
}
|
|
1168
1175
|
// 그리스트 데이터 존재 여부 (편집중 데이터도 체크)
|
|
1169
|
-
if ((
|
|
1176
|
+
if ((grist?.data?.records || []).length == 0 && (grist?.dirtyData?.records || []).length == 0) {
|
|
1170
1177
|
// 비어있는 그리드 입니다.
|
|
1171
1178
|
UiUtil.showAlertPopup('title.info', 'text.grid_data_is_empty', 'info', 'confirm');
|
|
1172
1179
|
return;
|
|
@@ -1246,7 +1253,10 @@ export class MetaUiUtil {
|
|
|
1246
1253
|
// 팝업 오픈
|
|
1247
1254
|
}
|
|
1248
1255
|
else if (eventType === 'popup') {
|
|
1249
|
-
let convParam =
|
|
1256
|
+
let convParam = {
|
|
1257
|
+
...(params['grist'] ? params['grist'] : {}),
|
|
1258
|
+
...(params['filter'] ? params['filter'] : {})
|
|
1259
|
+
};
|
|
1250
1260
|
await MetaUiUtil.commonButtonOpenPopup(pageView, logic, convParam);
|
|
1251
1261
|
// 서비스 호출
|
|
1252
1262
|
}
|
|
@@ -1294,8 +1304,9 @@ export class MetaUiUtil {
|
|
|
1294
1304
|
let pageElement = pageView;
|
|
1295
1305
|
let passInfo = elementTagName.startsWith('meta-grist-tab-') || elementTagName.startsWith('meta-master-detail-')
|
|
1296
1306
|
? passInfoAll.detail
|
|
1297
|
-
?
|
|
1298
|
-
|
|
1307
|
+
? { ...passInfoAll } // 그리스트 탭 페이지는 하단으로 보내는 이벤트만 허용
|
|
1308
|
+
: { detail: { ...passInfoAll } }
|
|
1309
|
+
: { ...passInfoAll }; // tab+tab or tab+etc or main-tab
|
|
1299
1310
|
Object.keys(passInfo).forEach(tab => {
|
|
1300
1311
|
if (tab == 'master') {
|
|
1301
1312
|
pageElement = pageView.rootElement.masterElement;
|
|
@@ -2590,14 +2601,13 @@ export class MetaUiUtil {
|
|
|
2590
2601
|
* @returns {HTMLElement} 탭 HTML
|
|
2591
2602
|
*/
|
|
2592
2603
|
static getBasicTabHtml(pageView) {
|
|
2593
|
-
var _a;
|
|
2594
2604
|
if (!pageView)
|
|
2595
2605
|
return html ``;
|
|
2596
2606
|
if (!pageView.tabRenderConfig)
|
|
2597
2607
|
return html ``;
|
|
2598
2608
|
let tabs = pageView.tabRenderConfig;
|
|
2599
2609
|
if (!pageView.currentTabKey)
|
|
2600
|
-
pageView.currentTabKey =
|
|
2610
|
+
pageView.currentTabKey = tabs[0]?.name || undefined;
|
|
2601
2611
|
return html `
|
|
2602
2612
|
<div class="tabs">
|
|
2603
2613
|
${tabs.map(tab => {
|
|
@@ -2651,8 +2661,7 @@ export class MetaUiUtil {
|
|
|
2651
2661
|
.filters=${pageView.searchFields || []}
|
|
2652
2662
|
.value=${pageView.searchFieldValues || []}
|
|
2653
2663
|
@filters-change=${e => {
|
|
2654
|
-
|
|
2655
|
-
(_a = pageView.grist) === null || _a === void 0 ? void 0 : _a.fetch();
|
|
2664
|
+
pageView.grist?.fetch();
|
|
2656
2665
|
}}
|
|
2657
2666
|
></ox-filters-form-base>
|
|
2658
2667
|
</div>
|
|
@@ -2793,8 +2802,7 @@ export class MetaUiUtil {
|
|
|
2793
2802
|
.filters=${pageView.searchFields || []}
|
|
2794
2803
|
.value=${pageView.searchFieldValues || []}
|
|
2795
2804
|
@filters-change=${e => {
|
|
2796
|
-
|
|
2797
|
-
(_a = pageView.grist) === null || _a === void 0 ? void 0 : _a.fetch();
|
|
2805
|
+
pageView.grist?.fetch();
|
|
2798
2806
|
}}
|
|
2799
2807
|
></ox-filters-form-base>
|
|
2800
2808
|
</div>
|