@acorex/platform 19.1.11 → 19.1.13

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.
Files changed (28) hide show
  1. package/fesm2022/acorex-platform-common.mjs +13 -8
  2. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-layout-entity.mjs +25 -12
  4. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  6. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-widgets.mjs +1495 -1329
  8. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-workflow.mjs +57 -1
  10. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  11. package/package.json +5 -5
  12. package/widgets/index.d.ts +2 -1
  13. package/widgets/lib/properties/layout.props.d.ts +1 -0
  14. package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -1
  15. package/widgets/lib/widgets/editors/contact/contact-widget-view.component.d.ts +1 -1
  16. package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +5 -1
  17. package/widgets/lib/widgets/index.d.ts +1 -0
  18. package/widgets/lib/widgets/layout/advanced-grid/advanced-grid-widget-designer.component.d.ts +5 -13
  19. package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +3 -2
  20. package/widgets/lib/widgets/property-editors/advanced-grid-options/advanced-grid-options-widget-editor.component.d.ts +32 -0
  21. package/widgets/lib/widgets/property-editors/advanced-grid-options/advanced-grid-options-widget.config.d.ts +7 -0
  22. package/widgets/lib/widgets/property-editors/advanced-grid-options/advanced-grid-options-widget.type.d.ts +6 -0
  23. package/widgets/lib/widgets/property-editors/advanced-grid-options/index.d.ts +2 -0
  24. package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +3 -3
  25. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +5 -5
  26. package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.type.d.ts +1 -1
  27. package/widgets/lib/widgets.config.d.ts +7 -0
  28. package/workflow/lib/workflow-registery.service.d.ts +5 -1
@@ -788,7 +788,9 @@ class AXPEntityMasterListViewModel {
788
788
  }
789
789
  applyFilterAndSort() {
790
790
  this.dataSource.clearFilter();
791
- this.dataSource.sort(...this.sortedFields().map((s) => ({ dir: s.dir, field: s.name })));
791
+ this.dataSource.sort(...this.sortedFields()
792
+ .filter((sf) => sf.dir)
793
+ .map((s) => ({ dir: s.dir, field: s.name })));
792
794
  const allFilters = [
793
795
  this.inlineFilters.filters?.length && this.inlineFilters,
794
796
  this.simpleFilters().filters?.length && this.simpleFilters(),
@@ -919,6 +921,9 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
919
921
  const [moduleName, entityName] = moduleEntity.split('.');
920
922
  const data = context.getVariable('data');
921
923
  const meta = context.getVariable('meta');
924
+ const options = context.getVariable('options');
925
+ const process = options?.['process'];
926
+ const showResult = process?.showResult ?? true;
922
927
  const ids = Array.isArray(data) ? data.map((c) => c.id) : [data.id];
923
928
  const entity = await this.entityRegistery.resolve(moduleName, entityName);
924
929
  let deletedCount = 0;
@@ -964,31 +969,39 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
964
969
  // Handle different scenarios for alerts
965
970
  if (successfulPromises > 0 && failedPromises === 0) {
966
971
  // All items deleted successfully
967
- await this.dialogService.alert(await this.translationService.translateAsync('workflow.success-delete-title'), await this.translationService.translateAsync('workflow.success-delete-body', {
968
- params: { item: successfulPromises },
969
- }), //TODO test translation
970
- 'success');
972
+ if (showResult) {
973
+ await this.dialogService.alert(await this.translationService.translateAsync('workflow.success-delete-title'), await this.translationService.translateAsync('workflow.success-delete-body', {
974
+ params: { item: successfulPromises },
975
+ }), //TODO test translation
976
+ 'success');
977
+ }
971
978
  // Dispatch actions
972
979
  this.dispatch(AXPEntityDeletedEvent({ entity: moduleEntity, ids: ids, meta: meta }));
973
980
  this.dispatch(AXPRefreshEvent({ entity: moduleEntity }));
974
981
  }
975
982
  else if (successfulPromises > 0 && failedPromises > 0) {
976
983
  // Some items deleted successfully, some failed
977
- await this.dialogService.alert(await this.translationService.translateAsync('workflow.success-partial-delete-title'), await this.translationService.translateAsync('workflow.partial-delete-body', {
978
- params: { success: successfulPromises, fail: failedPromises },
979
- }), 'warning');
984
+ if (showResult) {
985
+ await this.dialogService.alert(await this.translationService.translateAsync('workflow.success-partial-delete-title'), await this.translationService.translateAsync('workflow.partial-delete-body', {
986
+ params: { success: successfulPromises, fail: failedPromises },
987
+ }), 'warning');
988
+ }
980
989
  // Dispatch actions
981
990
  this.dispatch(AXPEntityDeletedEvent({ entity: moduleEntity, ids: ids, meta: meta }));
982
991
  }
983
992
  else if (successfulPromises === 0 && failedPromises > 0) {
984
993
  // No items deleted, all failed
985
- await this.dialogService.alert(await this.translationService.translateAsync('workflow.fail-delete-title'), await this.translationService.translateAsync('workflow.fail-delete-body', {
986
- params: { item: failedPromises },
987
- }), 'danger');
994
+ if (showResult) {
995
+ await this.dialogService.alert(await this.translationService.translateAsync('workflow.fail-delete-title'), await this.translationService.translateAsync('workflow.fail-delete-body', {
996
+ params: { item: failedPromises },
997
+ }), 'danger');
998
+ }
988
999
  }
989
1000
  else {
990
1001
  // No items to delete (no successful or failed promises)
991
- await this.dialogService.alert(await this.translationService.translateAsync('workflow.no-need'), await this.translationService.translateAsync('workflow.no-item'), 'primary');
1002
+ if (showResult) {
1003
+ await this.dialogService.alert(await this.translationService.translateAsync('workflow.no-need'), await this.translationService.translateAsync('workflow.no-item'), 'primary');
1004
+ }
992
1005
  }
993
1006
  }
994
1007
  else {