@acorex/modules 19.1.7 → 19.1.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.
Files changed (122) hide show
  1. package/auth/lib/auth.module.d.ts +1 -1
  2. package/auth/lib/{forgot → pages/forgot}/password/password.component.d.ts +1 -1
  3. package/auth/lib/{login → pages/login}/password/password.component.d.ts +1 -1
  4. package/fesm2022/acorex-modules-application-management.mjs +9 -1
  5. package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
  6. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BuSxsqTx.mjs → acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs} +171 -248
  7. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs.map +1 -0
  8. package/fesm2022/{acorex-modules-auth-app-chooser.component-B3yFTcfb.mjs → acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs} +2 -2
  9. package/fesm2022/acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs.map +1 -0
  10. package/fesm2022/{acorex-modules-auth-login.module-BwbsBdZm.mjs → acorex-modules-auth-login.module-DF8O2Xsc.mjs} +4 -4
  11. package/fesm2022/acorex-modules-auth-login.module-DF8O2Xsc.mjs.map +1 -0
  12. package/fesm2022/{acorex-modules-auth-master.layout-BIwGGzl9.mjs → acorex-modules-auth-master.layout-Bql93CSW.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-auth-master.layout-BIwGGzl9.mjs.map → acorex-modules-auth-master.layout-Bql93CSW.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-auth-password.component-CquAxSV0.mjs → acorex-modules-auth-password.component-4qadgU3K.mjs} +2 -2
  15. package/fesm2022/acorex-modules-auth-password.component-4qadgU3K.mjs.map +1 -0
  16. package/fesm2022/{acorex-modules-auth-password.component-Ce57WfMX.mjs → acorex-modules-auth-password.component-C7dIOlgw.mjs} +2 -2
  17. package/fesm2022/acorex-modules-auth-password.component-C7dIOlgw.mjs.map +1 -0
  18. package/fesm2022/{acorex-modules-auth-routes-CbA94Lwp.mjs → acorex-modules-auth-routes-CGtWtEQI.mjs} +2 -2
  19. package/fesm2022/acorex-modules-auth-routes-CGtWtEQI.mjs.map +1 -0
  20. package/fesm2022/acorex-modules-auth-setting.provider-GJeEbIRd.mjs +59 -0
  21. package/fesm2022/acorex-modules-auth-setting.provider-GJeEbIRd.mjs.map +1 -0
  22. package/fesm2022/acorex-modules-auth-tenant-chooser.component-CFT3i6iA.mjs.map +1 -1
  23. package/fesm2022/acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs.map +1 -1
  24. package/fesm2022/{acorex-modules-auth-two-factor.module-DiN9uKFz.mjs → acorex-modules-auth-two-factor.module-CqzFrEEK.mjs} +2 -2
  25. package/fesm2022/acorex-modules-auth-two-factor.module-CqzFrEEK.mjs.map +1 -0
  26. package/fesm2022/acorex-modules-auth.mjs +1 -1
  27. package/fesm2022/{acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs → acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs} +13 -9
  28. package/fesm2022/acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs.map +1 -0
  29. package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs +65 -0
  30. package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map +1 -0
  31. package/fesm2022/{acorex-modules-form-template-management-template-picker.component-CsGnikzF.mjs → acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs} +3 -3
  32. package/fesm2022/acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs.map +1 -0
  33. package/fesm2022/{acorex-modules-form-template-management-template.entity-CGhbmYel.mjs → acorex-modules-form-template-management-template.entity-EoPISAfV.mjs} +15 -14
  34. package/fesm2022/acorex-modules-form-template-management-template.entity-EoPISAfV.mjs.map +1 -0
  35. package/fesm2022/acorex-modules-form-template-management.mjs +110 -112
  36. package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
  37. package/fesm2022/acorex-modules-notification-management.mjs +1319 -996
  38. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  39. package/fesm2022/acorex-modules-platform-management.mjs +7 -28
  40. package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
  41. package/fesm2022/acorex-modules-security-management.mjs +1632 -0
  42. package/fesm2022/acorex-modules-security-management.mjs.map +1 -0
  43. package/fesm2022/acorex-modules-text-template-management.mjs +62 -77
  44. package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
  45. package/form-template-management/lib/const.d.ts +22 -6
  46. package/form-template-management/lib/entity.provider.d.ts +5 -4
  47. package/form-template-management/lib/permission.provider.d.ts +4 -0
  48. package/form-template-management/lib/search-command.provider.d.ts +4 -0
  49. package/notification-management/index.d.ts +5 -4
  50. package/notification-management/lib/const.d.ts +27 -8
  51. package/notification-management/lib/entities/channel/index.d.ts +3 -0
  52. package/notification-management/lib/entities/index.d.ts +2 -0
  53. package/notification-management/lib/entities/notification/index.d.ts +3 -0
  54. package/notification-management/lib/entities/notification/notification.service.d.ts +17 -0
  55. package/notification-management/lib/entities/notification/notification.types.d.ts +5 -0
  56. package/notification-management/lib/entities/template/index.d.ts +4 -0
  57. package/notification-management/lib/entities/template/template.module.d.ts +6 -0
  58. package/notification-management/lib/entities/template/template.types.d.ts +0 -1
  59. package/notification-management/lib/entity.provider.d.ts +10 -0
  60. package/notification-management/lib/setting.keys.d.ts +17 -0
  61. package/notification-management/lib/setting.provider.d.ts +4 -0
  62. package/package.json +9 -5
  63. package/platform-management/index.d.ts +0 -1
  64. package/platform-management/lib/menu.provider.d.ts +1 -1
  65. package/security-management/README.md +3 -0
  66. package/security-management/index.d.ts +2 -0
  67. package/security-management/lib/const.d.ts +29 -0
  68. package/security-management/lib/entities/profile/index.d.ts +4 -0
  69. package/security-management/lib/entities/profile/profile.entity.d.ts +3 -0
  70. package/security-management/lib/entities/profile/profile.module.d.ts +6 -0
  71. package/security-management/lib/entities/profile/profile.service.d.ts +13 -0
  72. package/security-management/lib/entities/profile/profile.types.d.ts +5 -0
  73. package/security-management/lib/entities/roles/index.d.ts +4 -0
  74. package/security-management/lib/entities/roles/roles.entity.d.ts +3 -0
  75. package/security-management/lib/entities/roles/roles.module.d.ts +6 -0
  76. package/security-management/lib/entities/roles/roles.service.d.ts +10 -0
  77. package/security-management/lib/entities/roles/roles.types.d.ts +5 -0
  78. package/security-management/lib/entities/users/index.d.ts +4 -0
  79. package/security-management/lib/entities/users/users.entity.d.ts +3 -0
  80. package/security-management/lib/entities/users/users.module.d.ts +6 -0
  81. package/security-management/lib/entities/users/users.service.d.ts +10 -0
  82. package/security-management/lib/entities/users/users.types.d.ts +5 -0
  83. package/security-management/lib/entity.provider.d.ts +10 -0
  84. package/security-management/lib/menu.provider.d.ts +5 -0
  85. package/security-management/lib/search-command.provider.d.ts +4 -0
  86. package/security-management/lib/security-management.module.d.ts +9 -0
  87. package/text-template-management/lib/const.d.ts +22 -6
  88. package/text-template-management/lib/entity.provider.d.ts +5 -4
  89. package/text-template-management/lib/menu.provider.d.ts +1 -1
  90. package/text-template-management/lib/setting.provider.d.ts +1 -1
  91. package/fesm2022/acorex-modules-auth-acorex-modules-auth-BuSxsqTx.mjs.map +0 -1
  92. package/fesm2022/acorex-modules-auth-app-chooser.component-B3yFTcfb.mjs.map +0 -1
  93. package/fesm2022/acorex-modules-auth-login.module-BwbsBdZm.mjs.map +0 -1
  94. package/fesm2022/acorex-modules-auth-password.component-Ce57WfMX.mjs.map +0 -1
  95. package/fesm2022/acorex-modules-auth-password.component-CquAxSV0.mjs.map +0 -1
  96. package/fesm2022/acorex-modules-auth-routes-CbA94Lwp.mjs.map +0 -1
  97. package/fesm2022/acorex-modules-auth-two-factor.module-DiN9uKFz.mjs.map +0 -1
  98. package/fesm2022/acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs.map +0 -1
  99. package/fesm2022/acorex-modules-form-template-management-template-picker.component-CsGnikzF.mjs.map +0 -1
  100. package/fesm2022/acorex-modules-form-template-management-template.entity-CGhbmYel.mjs.map +0 -1
  101. package/form-template-management/lib/search-definition.provider.d.ts +0 -4
  102. package/notification-management/lib/entity.loader.d.ts +0 -9
  103. package/notification-management/lib/notification.service.d.ts +0 -6
  104. package/platform-management/lib/text-search/index.d.ts +0 -2
  105. package/platform-management/lib/text-search/text-search.service.d.ts +0 -10
  106. package/platform-management/lib/text-search/text-search.types.d.ts +0 -9
  107. package/text-template-management/lib/search-definition.provider.d.ts +0 -4
  108. /package/auth/lib/{account → pages/account}/account.module.d.ts +0 -0
  109. /package/auth/lib/{account → pages/account}/app-chooser/app-chooser-list.component.d.ts +0 -0
  110. /package/auth/lib/{account → pages/account}/app-chooser/app-chooser-slot.component.d.ts +0 -0
  111. /package/auth/lib/{account → pages/account}/app-chooser/app-chooser.component.d.ts +0 -0
  112. /package/auth/lib/{account → pages/account}/profile/profile-slot.component.d.ts +0 -0
  113. /package/auth/lib/{account → pages/account}/tenant-chooser/tenant-chooser-dropdown.component.d.ts +0 -0
  114. /package/auth/lib/{account → pages/account}/tenant-chooser/tenant-chooser.component.d.ts +0 -0
  115. /package/auth/lib/{forgot → pages/forgot}/routes.d.ts +0 -0
  116. /package/auth/lib/{login → pages/login}/login.module.d.ts +0 -0
  117. /package/auth/lib/{two-factor → pages/two-factor}/two-factor-code/two-factor-code.component.d.ts +0 -0
  118. /package/auth/lib/{two-factor → pages/two-factor}/two-factor.module.d.ts +0 -0
  119. /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-item/admin-notification-item.component.d.ts +0 -0
  120. /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-panel/admin-notification-panel.component.d.ts +0 -0
  121. /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
  122. /package/notification-management/lib/entities/{notification.entity.d.ts → notification/notification.entity.d.ts} +0 -0
@@ -1,6 +1,7 @@
1
- import { AXMEntityCrudServiceImpl, AXPDataGenerator, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_DEFINITION_PROVIDER } from '@acorex/platform/common';
1
+ import { AXP_PERMISSION_PROVIDER } from '@acorex/platform/auth';
2
+ import { AXMEntityCrudServiceImpl, AXPSearchCommandProvider, AXPDataGenerator, AXPWorkflowNavigateAction, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
2
3
  import * as i2 from '@acorex/platform/layout/builder';
3
- import { AXPWidgetComponent, AXPLayoutBuilderModule, AXP_WIDGETS_ADVANCE_GROUP, createStringProperty, AXP_WIDGETS_LAYOUT_GROUP, AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
4
+ import { AXPWidgetComponent, AXPLayoutBuilderModule, AXP_WIDGETS_ADVANCE_GROUP, createStringProperty, AXP_WIDGETS_LAYOUT_GROUP } from '@acorex/platform/layout/builder';
4
5
  import { AXPDesignerService, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetMiniButtonComponent, AXPDesignerConnector } from '@acorex/platform/layout/designer';
5
6
  import { AXPEntityService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
6
7
  import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_BEHAVIOR_PROPERTY_GROUP, AXPWidgetsModule } from '@acorex/platform/widgets';
@@ -50,7 +51,7 @@ class AXPTemplateWidgetProviderService {
50
51
  return null;
51
52
  }
52
53
  async chooseTemplate() {
53
- const com = await import('./acorex-modules-form-template-management-template-picker.component-CsGnikzF.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
54
+ const com = await import('./acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs').then((c) => c.AXPTemplateWidgetPickerComponent);
54
55
  const widgets = await this.items({
55
56
  skip: 0,
56
57
  take: 100,
@@ -387,19 +388,36 @@ const AXPTemplateDesignerWidget = {
387
388
  }
388
389
  };
389
390
 
390
- const AXMFormTemplateManagementModuleConst = {
391
- moduleName: 'FormTemplateManagement',
392
- moduleRoute: 'form-template-management',
391
+ const config = {
393
392
  i18n: 'form-template-management',
394
- categoryEntity: 'Category',
395
- templateEntity: 'Template',
393
+ };
394
+ const RootConfig = {
395
+ config,
396
+ module: {
397
+ route: 'form-template-management',
398
+ name: 'FormTemplateManagement',
399
+ title: `t('module-name', {scope:"${config.i18n}"})`,
400
+ icon: 'fa-solid fa-file-invoice'
401
+ },
402
+ entities: {
403
+ category: {
404
+ name: 'Category',
405
+ title: 't("category", { scope: "common" })',
406
+ icon: 'fa-solid fa-list'
407
+ },
408
+ template: {
409
+ name: 'Template',
410
+ title: `t("template",{scope:"${config.i18n}"})`,
411
+ icon: 'fa-solid fa-file-code'
412
+ }
413
+ },
396
414
  };
397
415
 
398
416
  class AXMFormTemplateManagementCategoryEntityService extends AXMEntityCrudServiceImpl {
399
417
  }
400
418
  class AXMFormTemplateManagementCategoryEntityServiceImpl extends AXMFormTemplateManagementCategoryEntityService {
401
419
  constructor() {
402
- super(`${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`);
420
+ super(`${RootConfig.module.name}.${RootConfig.entities.category.name}`);
403
421
  }
404
422
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
405
423
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementCategoryEntityServiceImpl }); }
@@ -437,7 +455,7 @@ class AXMFormTemplateManagementTemplateEntityService extends AXMEntityCrudServic
437
455
  }
438
456
  class AXMFormTemplateManagementTemplateEntityServiceImpl extends AXMFormTemplateManagementTemplateEntityService {
439
457
  constructor() {
440
- super(`${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`);
458
+ super(`${RootConfig.module.name}.${RootConfig.entities.template.name}`);
441
459
  }
442
460
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
443
461
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementTemplateEntityServiceImpl }); }
@@ -476,25 +494,32 @@ const AXMFormTemplateTypes = {
476
494
  Widget: { id: 20, title: 'Widget Template' },
477
495
  };
478
496
 
479
- class AXMFormTemplateManagementModuleEntityProvider {
497
+ class AXMEntityProvider {
480
498
  constructor() {
481
499
  this.injector = inject(Injector);
482
500
  }
501
+ preload() {
502
+ const module = RootConfig.module.name;
503
+ return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
504
+ module: module,
505
+ entity: entity.name,
506
+ }));
507
+ }
483
508
  async get(moduleName, entityName) {
484
- if (moduleName == AXMFormTemplateManagementModuleConst.moduleName) {
509
+ if (moduleName == RootConfig.module.name) {
485
510
  switch (entityName) {
486
- case AXMFormTemplateManagementModuleConst.categoryEntity:
487
- return (await import('./acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs')).factory(this.injector);
488
- case AXMFormTemplateManagementModuleConst.templateEntity:
489
- return (await import('./acorex-modules-form-template-management-template.entity-CGhbmYel.mjs')).factory(this.injector);
511
+ case RootConfig.entities.category.name:
512
+ return (await import('./acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs')).factory(this.injector);
513
+ case RootConfig.entities.template.name:
514
+ return (await import('./acorex-modules-form-template-management-template.entity-EoPISAfV.mjs')).factory(this.injector);
490
515
  }
491
516
  }
492
517
  return null;
493
518
  }
494
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
495
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider }); }
519
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
520
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider }); }
496
521
  }
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFormTemplateManagementModuleEntityProvider, decorators: [{
522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
498
523
  type: Injectable
499
524
  }] });
500
525
 
@@ -503,22 +528,24 @@ class AXMMenuProvider {
503
528
  this.entityService = inject(AXPEntityService);
504
529
  }
505
530
  async provide(context) {
506
- const scope = AXMFormTemplateManagementModuleConst.i18n;
507
- const moduleName = AXMFormTemplateManagementModuleConst.moduleName;
531
+ const scope = RootConfig.config.i18n;
532
+ const module = RootConfig.module;
508
533
  context.addItems([
509
534
  {
510
535
  priority: 9001,
511
536
  text: `t('module-name', {scope:"${scope}"})`,
512
- icon: 'fa-solid fa-file-invoice',
537
+ icon: module.icon,
513
538
  children: [
514
539
  {
515
540
  text: `t("categories", { scope: "common" })`,
516
- path: this.entityService.createPath(moduleName, AXMFormTemplateManagementModuleConst.categoryEntity),
541
+ path: this.entityService.createPath(module.name, RootConfig.entities.category.name),
542
+ icon: RootConfig.entities.category.icon,
517
543
  priority: 1,
518
544
  },
519
545
  {
520
546
  text: `t('templates', {scope:"${scope}"})`,
521
- path: this.entityService.createPath(moduleName, AXMFormTemplateManagementModuleConst.templateEntity),
547
+ path: this.entityService.createPath(module.name, RootConfig.entities.template.name),
548
+ icon: RootConfig.entities.template.icon,
522
549
  priority: 2,
523
550
  },
524
551
  ],
@@ -527,30 +554,45 @@ class AXMMenuProvider {
527
554
  }
528
555
  }
529
556
 
530
- class AXMFormTemplateManagementModuleSearchProvider {
557
+ class AXMPermissionProvider {
531
558
  async provide(context) {
532
- context.addDefinition(`record.${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`, 'Form Template Category', 'fa-solid fa-file-dashed-line', [
559
+ context.addPermissions([
533
560
  {
534
- name: 'open',
535
- command: {
536
- name: 'view',
537
- options: {},
538
- },
539
- type: 'view',
540
- priority: 'primary',
561
+ name: 'forms:templates:view',
562
+ title: 'Permission to view templates',
563
+ isArchived: false,
541
564
  },
542
565
  ]);
543
- context.addDefinition(`record.${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`, 'Form Templates', 'fa-light fa-align-justify', [
566
+ }
567
+ }
568
+
569
+ class AXMSearchCommandProvider extends AXPSearchCommandProvider {
570
+ constructor() {
571
+ super(...arguments);
572
+ this.commands = [
544
573
  {
545
- name: 'open',
546
- command: {
547
- name: 'view',
548
- options: {},
574
+ group: 'command',
575
+ title: 'New Form Template',
576
+ icon: RootConfig.entities.template.icon,
577
+ description: 'Create a new form template for designing reusable forms.', // Added description
578
+ commands: {
579
+ 'create-entity': {
580
+ entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
581
+ },
549
582
  },
550
- type: 'view',
551
- priority: 'primary',
552
583
  },
553
- ]);
584
+ {
585
+ group: 'command',
586
+ title: 'New Form Template Category',
587
+ icon: RootConfig.entities.category.icon,
588
+ description: 'Create a new category to organize form templates.', // Added description
589
+ commands: {
590
+ 'create-entity': {
591
+ entity: `${RootConfig.module.name}.${RootConfig.entities.category.name}`,
592
+ },
593
+ },
594
+ },
595
+ ];
554
596
  }
555
597
  }
556
598
 
@@ -575,7 +617,7 @@ class AXPDesignerConnectorImpl extends AXPDesignerConnector {
575
617
  async saveAs(content) {
576
618
  const result = await this.workflow.execute('create-entity', {
577
619
  redirect: false,
578
- entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`,
620
+ entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
579
621
  canCreateNewOne: false,
580
622
  data: {
581
623
  name: AXPDataGenerator.alphanumeric(10),
@@ -636,66 +678,6 @@ class AXPTemplateWidgetProviderImpl {
636
678
  }
637
679
  }
638
680
 
639
- class AXMSettingProvider {
640
- async provide(context) {
641
- context
642
- // Add Form Template Group
643
- .addGroup('form-template', 'Form Template', 'Settings related to form templates.', 'fa-solid fa-file-invoice')
644
- // Start Interface Section
645
- .addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
646
- .addSetting({
647
- key: 'history-panel',
648
- title: 'Show History Panel',
649
- scope: 'U',
650
- isInherited: true,
651
- defaultValue: false,
652
- widget: {
653
- type: AXPWidgetsCatalog.toggle,
654
- },
655
- description: 'Enable or disable the history panel for forms.',
656
- validationRules: [
657
- {
658
- rule: 'required',
659
- },
660
- ],
661
- })
662
- .endSection()
663
- // Start Saving Section
664
- .addSection('saving', 'Saving', 'Settings related to saving form data.')
665
- .addSetting({
666
- key: 'auto-save',
667
- title: 'Auto Save',
668
- scope: 'U',
669
- isInherited: true,
670
- defaultValue: false,
671
- widget: {
672
- type: AXPWidgetsCatalog.toggle,
673
- },
674
- description: 'Automatically save form data at regular intervals.',
675
- })
676
- .addSetting({
677
- key: 'auto-save-interval',
678
- title: 'Auto Save Interval',
679
- scope: 'U',
680
- isInherited: true,
681
- defaultValue: 1,
682
- widget: {
683
- type: AXPWidgetsCatalog.number,
684
- options: {
685
- visibility: `{{ context.eval('auto-save') }}`,
686
- hasClearButton: false,
687
- minValue: 1,
688
- maxValue: 60,
689
- }
690
- },
691
- description: 'Set the time interval (in minites) for auto-saving form data.',
692
- })
693
- .endSection()
694
- // End Form Template Group
695
- .endGroup();
696
- }
697
- }
698
-
699
681
  const AXMCreateFormTemplateWorkflow = {
700
682
  startStepId: 'create-form-template',
701
683
  steps: {
@@ -705,7 +687,7 @@ const AXMCreateFormTemplateWorkflow = {
705
687
  workflow: "create-entity",
706
688
  context: {
707
689
  redirect: true,
708
- entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`,
690
+ entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
709
691
  }
710
692
  },
711
693
  nextSteps: [
@@ -798,7 +780,7 @@ class AXMFormTemplateManagementModule {
798
780
  },
799
781
  {
800
782
  provide: AXP_ENTITY_DEFINITION_LOADER,
801
- useClass: AXMFormTemplateManagementModuleEntityProvider,
783
+ useClass: AXMEntityProvider,
802
784
  multi: true,
803
785
  },
804
786
  {
@@ -817,12 +799,20 @@ class AXMFormTemplateManagementModule {
817
799
  },
818
800
  {
819
801
  provide: AXP_SETTING_DEFINITION_PROVIDER,
820
- useClass: AXMSettingProvider,
802
+ useFactory: async () => {
803
+ const provider = (await import('./acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs')).AXMSettingProvider;
804
+ return new provider();
805
+ },
806
+ multi: true,
807
+ },
808
+ {
809
+ provide: AXP_SEARCH_PROVIDER,
810
+ useClass: AXMSearchCommandProvider,
821
811
  multi: true,
822
812
  },
823
813
  {
824
- provide: AXP_SEARCH_DEFINITION_PROVIDER,
825
- useClass: AXMFormTemplateManagementModuleSearchProvider,
814
+ provide: AXP_PERMISSION_PROVIDER,
815
+ useClass: AXMPermissionProvider,
826
816
  multi: true,
827
817
  },
828
818
  ], imports: [AXPWidgetsModule,
@@ -871,7 +861,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
871
861
  },
872
862
  {
873
863
  provide: AXP_ENTITY_DEFINITION_LOADER,
874
- useClass: AXMFormTemplateManagementModuleEntityProvider,
864
+ useClass: AXMEntityProvider,
875
865
  multi: true,
876
866
  },
877
867
  {
@@ -890,12 +880,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
890
880
  },
891
881
  {
892
882
  provide: AXP_SETTING_DEFINITION_PROVIDER,
893
- useClass: AXMSettingProvider,
883
+ useFactory: async () => {
884
+ const provider = (await import('./acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs')).AXMSettingProvider;
885
+ return new provider();
886
+ },
887
+ multi: true,
888
+ },
889
+ {
890
+ provide: AXP_SEARCH_PROVIDER,
891
+ useClass: AXMSearchCommandProvider,
894
892
  multi: true,
895
893
  },
896
894
  {
897
- provide: AXP_SEARCH_DEFINITION_PROVIDER,
898
- useClass: AXMFormTemplateManagementModuleSearchProvider,
895
+ provide: AXP_PERMISSION_PROVIDER,
896
+ useClass: AXMPermissionProvider,
899
897
  multi: true,
900
898
  },
901
899
  ],
@@ -906,5 +904,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
906
904
  * Generated bundle index. Do not edit.
907
905
  */
908
906
 
909
- export { AXMFormTemplateManagementCategoryEntityModule, AXMFormTemplateManagementCategoryEntityService, AXMFormTemplateManagementCategoryEntityServiceImpl, AXMFormTemplateManagementModule, AXMFormTemplateManagementModuleConst, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER };
907
+ export { AXMFormTemplateManagementCategoryEntityModule, AXMFormTemplateManagementCategoryEntityService, AXMFormTemplateManagementCategoryEntityServiceImpl, AXMFormTemplateManagementModule, AXMFormTemplateManagementTemplateEntityModule, AXMFormTemplateManagementTemplateEntityService, AXMFormTemplateManagementTemplateEntityServiceImpl, AXMFormTemplateTypes, AXPTemplateWidget, AXPTemplateWidgetDesignerComponent, AXPTemplateWidgetProviderService, AXPTemplateWidgetViewComponent, AXP_DESIGNER_TEMPLATE_WIDGET_CHOOSE_MENU, AXP_TEMPLATE_WIDGET_PROVIDER, RootConfig };
910
908
  //# sourceMappingURL=acorex-modules-form-template-management.mjs.map