@acorex/modules 20.7.8 → 20.7.9
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/document-management/index.d.ts +33 -10
- package/fesm2022/acorex-modules-application-management.mjs +16 -1
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +3 -3
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +24 -23
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +68 -61
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CJRrn2XH.mjs → acorex-modules-document-management-drive-choose.component-ovwhHP2n.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-CJRrn2XH.mjs.map → acorex-modules-document-management-drive-choose.component-ovwhHP2n.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +363 -231
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-DGgHWrL0.mjs → acorex-modules-help-desk-acorex-modules-help-desk-CydmGF5Q.mjs} +8 -4
- package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-DGgHWrL0.mjs.map → acorex-modules-help-desk-acorex-modules-help-desk-CydmGF5Q.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-CAknGKEK.mjs → acorex-modules-help-desk-capture-screen.component-Bsq1FJId.mjs} +2 -2
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-CAknGKEK.mjs.map → acorex-modules-help-desk-capture-screen.component-Bsq1FJId.mjs.map} +1 -1
- package/fesm2022/acorex-modules-help-desk.mjs +1 -1
- package/fesm2022/acorex-modules-human-capital-management.mjs +41 -26
- package/fesm2022/acorex-modules-human-capital-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-C85uluWf.mjs → acorex-modules-organization-management-org-chart.page-Ca_aJDbu.mjs} +19 -13
- package/fesm2022/acorex-modules-organization-management-org-chart.page-Ca_aJDbu.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +2 -2
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DEx13GSy.mjs → acorex-modules-platform-management-acorex-modules-platform-management-DVkP3JKC.mjs} +1188 -341
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DVkP3JKC.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management-menu-list.component-C_mdsuRc.mjs +519 -0
- package/fesm2022/acorex-modules-platform-management-menu-list.component-C_mdsuRc.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +27 -6
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management.mjs +15 -9
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/package.json +6 -6
- package/platform-management/index.d.ts +12 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-C85uluWf.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DEx13GSy.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-menu-list.component-DLg61Nf8.mjs +0 -853
- package/fesm2022/acorex-modules-platform-management-menu-list.component-DLg61Nf8.mjs.map +0 -1
|
@@ -7749,7 +7749,7 @@ class AXPMetaDataSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
7749
7749
|
* Handle adding a new group
|
|
7750
7750
|
*/
|
|
7751
7751
|
async handleAddGroupClick() {
|
|
7752
|
-
|
|
7752
|
+
await this.layoutBuilder
|
|
7753
7753
|
.create()
|
|
7754
7754
|
.dialog((dialog) => {
|
|
7755
7755
|
dialog
|
|
@@ -7769,34 +7769,39 @@ class AXPMetaDataSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
7769
7769
|
})
|
|
7770
7770
|
.setActions((actions) => {
|
|
7771
7771
|
actions.cancel('@general:actions.cancel.title').submit('@general:actions.save.title');
|
|
7772
|
+
})
|
|
7773
|
+
.onAction(async (dialogRef) => {
|
|
7774
|
+
const context = dialogRef.context();
|
|
7775
|
+
const action = dialogRef.action();
|
|
7776
|
+
if (!context || action === 'cancel') {
|
|
7777
|
+
return;
|
|
7778
|
+
}
|
|
7779
|
+
const form = context;
|
|
7780
|
+
if (form.title?.trim()) {
|
|
7781
|
+
const newGroup = {
|
|
7782
|
+
id: AXPDataGenerator.uuid(),
|
|
7783
|
+
name: generateKebabCase(form.title),
|
|
7784
|
+
title: form.title,
|
|
7785
|
+
description: form.description || undefined,
|
|
7786
|
+
order: this.designerState().groups.length,
|
|
7787
|
+
fields: [],
|
|
7788
|
+
isNewlyAdded: true,
|
|
7789
|
+
};
|
|
7790
|
+
this.designerState.update((state) => ({
|
|
7791
|
+
...state,
|
|
7792
|
+
groups: [...state.groups, newGroup],
|
|
7793
|
+
}));
|
|
7794
|
+
this.syncStateToValue();
|
|
7795
|
+
}
|
|
7772
7796
|
});
|
|
7773
7797
|
})
|
|
7774
7798
|
.show();
|
|
7775
|
-
const form = dialogRef.context();
|
|
7776
|
-
const action = dialogRef.action();
|
|
7777
|
-
if (action === 'submit' && form.title && form.title.trim()) {
|
|
7778
|
-
const newGroup = {
|
|
7779
|
-
id: AXPDataGenerator.uuid(),
|
|
7780
|
-
name: generateKebabCase(form.title),
|
|
7781
|
-
title: form.title,
|
|
7782
|
-
description: form.description || undefined,
|
|
7783
|
-
order: this.designerState().groups.length,
|
|
7784
|
-
fields: [],
|
|
7785
|
-
isNewlyAdded: true,
|
|
7786
|
-
};
|
|
7787
|
-
this.designerState.update((state) => ({
|
|
7788
|
-
...state,
|
|
7789
|
-
groups: [...state.groups, newGroup],
|
|
7790
|
-
}));
|
|
7791
|
-
this.syncStateToValue();
|
|
7792
|
-
}
|
|
7793
|
-
dialogRef.close();
|
|
7794
7799
|
}
|
|
7795
7800
|
/**
|
|
7796
7801
|
* Handle editing a group
|
|
7797
7802
|
*/
|
|
7798
7803
|
async handleGroupEdit(group) {
|
|
7799
|
-
|
|
7804
|
+
await this.layoutBuilder
|
|
7800
7805
|
.create()
|
|
7801
7806
|
.dialog((dialog) => {
|
|
7802
7807
|
dialog
|
|
@@ -7816,26 +7821,31 @@ class AXPMetaDataSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
7816
7821
|
})
|
|
7817
7822
|
.setActions((actions) => {
|
|
7818
7823
|
actions.cancel('@general:actions.cancel.title').submit('@general:actions.save.title');
|
|
7824
|
+
})
|
|
7825
|
+
.onAction(async (dialogRef) => {
|
|
7826
|
+
const context = dialogRef.context();
|
|
7827
|
+
const action = dialogRef.action();
|
|
7828
|
+
if (!context || action === 'cancel') {
|
|
7829
|
+
return;
|
|
7830
|
+
}
|
|
7831
|
+
const form = context;
|
|
7832
|
+
if (form.title?.trim()) {
|
|
7833
|
+
this.designerState.update((state) => ({
|
|
7834
|
+
...state,
|
|
7835
|
+
groups: state.groups.map((g) => g.id === group.id
|
|
7836
|
+
? {
|
|
7837
|
+
...g,
|
|
7838
|
+
name: generateKebabCase(form.title),
|
|
7839
|
+
title: form.title,
|
|
7840
|
+
description: form.description || undefined,
|
|
7841
|
+
}
|
|
7842
|
+
: g),
|
|
7843
|
+
}));
|
|
7844
|
+
this.syncStateToValue();
|
|
7845
|
+
}
|
|
7819
7846
|
});
|
|
7820
7847
|
})
|
|
7821
7848
|
.show();
|
|
7822
|
-
const form = dialogRef.context();
|
|
7823
|
-
const action = dialogRef.action();
|
|
7824
|
-
if (action === 'submit' && form.title && form.title.trim()) {
|
|
7825
|
-
this.designerState.update((state) => ({
|
|
7826
|
-
...state,
|
|
7827
|
-
groups: state.groups.map((g) => g.id === group.id
|
|
7828
|
-
? {
|
|
7829
|
-
...g,
|
|
7830
|
-
name: generateKebabCase(form.title),
|
|
7831
|
-
title: form.title,
|
|
7832
|
-
description: form.description || undefined,
|
|
7833
|
-
}
|
|
7834
|
-
: g),
|
|
7835
|
-
}));
|
|
7836
|
-
this.syncStateToValue();
|
|
7837
|
-
}
|
|
7838
|
-
dialogRef.close();
|
|
7839
7849
|
}
|
|
7840
7850
|
/**
|
|
7841
7851
|
* Handle removing a group
|
|
@@ -9039,7 +9049,7 @@ class ShowMetaDataFormPopupCommand {
|
|
|
9039
9049
|
// Build dialog title
|
|
9040
9050
|
const dialogTitle = title || metaDataFormExt.title || await this.translationService.translateAsync('@data-management:metadata-definitions.components.meta-data-form.title');
|
|
9041
9051
|
// Open dialog with meta-data-form-editor widget
|
|
9042
|
-
const
|
|
9052
|
+
const result = await this.layoutBuilder
|
|
9043
9053
|
.create()
|
|
9044
9054
|
.dialog((dialog) => {
|
|
9045
9055
|
dialog
|
|
@@ -9068,31 +9078,28 @@ class ShowMetaDataFormPopupCommand {
|
|
|
9068
9078
|
actions
|
|
9069
9079
|
.cancel('@general:actions.cancel.title')
|
|
9070
9080
|
.submit('@general:actions.save.title');
|
|
9081
|
+
})
|
|
9082
|
+
.onAction(async (dialogRef) => {
|
|
9083
|
+
const context = dialogRef.context();
|
|
9084
|
+
const action = dialogRef.action();
|
|
9085
|
+
if (!context || action === 'cancel') {
|
|
9086
|
+
return { success: false };
|
|
9087
|
+
}
|
|
9088
|
+
const updateData = {
|
|
9089
|
+
[field]: context[field],
|
|
9090
|
+
};
|
|
9091
|
+
const updated = await dataAccessor.update(finalId, updateData);
|
|
9092
|
+
return {
|
|
9093
|
+
success: true,
|
|
9094
|
+
data: updated,
|
|
9095
|
+
message: {
|
|
9096
|
+
text: await this.translationService.translateAsync('@general:messages.entity.updated'),
|
|
9097
|
+
},
|
|
9098
|
+
};
|
|
9071
9099
|
});
|
|
9072
9100
|
})
|
|
9073
9101
|
.show();
|
|
9074
|
-
|
|
9075
|
-
const action = dialogRef.action();
|
|
9076
|
-
const formData = dialogRef.context();
|
|
9077
|
-
if (action === 'submit') {
|
|
9078
|
-
// Update entity record with the meta data form value
|
|
9079
|
-
const updateData = {
|
|
9080
|
-
[field]: formData[field],
|
|
9081
|
-
};
|
|
9082
|
-
const updated = await dataAccessor.update(finalId, updateData);
|
|
9083
|
-
dialogRef.close();
|
|
9084
|
-
return {
|
|
9085
|
-
success: true,
|
|
9086
|
-
data: updated,
|
|
9087
|
-
message: {
|
|
9088
|
-
text: await this.translationService.translateAsync('@general:messages.entity.updated'),
|
|
9089
|
-
},
|
|
9090
|
-
};
|
|
9091
|
-
}
|
|
9092
|
-
dialogRef.close();
|
|
9093
|
-
return {
|
|
9094
|
-
success: false,
|
|
9095
|
-
};
|
|
9102
|
+
return result;
|
|
9096
9103
|
}
|
|
9097
9104
|
catch (error) {
|
|
9098
9105
|
return {
|