@acorex/modules 19.1.8 → 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.
- package/auth/lib/auth.module.d.ts +1 -1
- package/auth/lib/{forgot → pages/forgot}/password/password.component.d.ts +1 -1
- package/auth/lib/{login → pages/login}/password/password.component.d.ts +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +9 -1
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BuSxsqTx.mjs → acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs} +171 -248
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BukQhL3i.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-B3yFTcfb.mjs → acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-app-chooser.component-Co9UVNs7.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-login.module-BwbsBdZm.mjs → acorex-modules-auth-login.module-DF8O2Xsc.mjs} +4 -4
- package/fesm2022/acorex-modules-auth-login.module-DF8O2Xsc.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-master.layout-BIwGGzl9.mjs → acorex-modules-auth-master.layout-Bql93CSW.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-BIwGGzl9.mjs.map → acorex-modules-auth-master.layout-Bql93CSW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CquAxSV0.mjs → acorex-modules-auth-password.component-4qadgU3K.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-password.component-4qadgU3K.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-Ce57WfMX.mjs → acorex-modules-auth-password.component-C7dIOlgw.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-password.component-C7dIOlgw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-CbA94Lwp.mjs → acorex-modules-auth-routes-CGtWtEQI.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-routes-CGtWtEQI.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth-setting.provider-GJeEbIRd.mjs +59 -0
- package/fesm2022/acorex-modules-auth-setting.provider-GJeEbIRd.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-CFT3i6iA.mjs.map +1 -1
- package/fesm2022/acorex-modules-auth-two-factor-code.component-BEsTVMeC.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-DiN9uKFz.mjs → acorex-modules-auth-two-factor.module-CqzFrEEK.mjs} +2 -2
- package/fesm2022/acorex-modules-auth-two-factor.module-CqzFrEEK.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/{acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs → acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs} +13 -9
- package/fesm2022/acorex-modules-form-template-management-category.entity-m0HWwBzu.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs +65 -0
- package/fesm2022/acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs.map +1 -0
- 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
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-vh_xdN7Z.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template.entity-CrFYszl6.mjs → acorex-modules-form-template-management-template.entity-EoPISAfV.mjs} +14 -13
- package/fesm2022/acorex-modules-form-template-management-template.entity-EoPISAfV.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +101 -125
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1298 -999
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +7 -28
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +1632 -0
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-text-template-management.mjs +60 -80
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/form-template-management/lib/const.d.ts +22 -6
- package/form-template-management/lib/entity.provider.d.ts +3 -3
- package/form-template-management/lib/permission.provider.d.ts +4 -0
- package/form-template-management/lib/search-command.provider.d.ts +4 -0
- package/notification-management/index.d.ts +5 -4
- package/notification-management/lib/const.d.ts +27 -8
- package/notification-management/lib/entities/channel/index.d.ts +3 -0
- package/notification-management/lib/entities/index.d.ts +2 -0
- package/notification-management/lib/entities/notification/index.d.ts +3 -0
- package/notification-management/lib/entities/notification/notification.service.d.ts +17 -0
- package/notification-management/lib/entities/notification/notification.types.d.ts +5 -0
- package/notification-management/lib/entities/template/index.d.ts +4 -0
- package/notification-management/lib/entities/template/template.module.d.ts +6 -0
- package/notification-management/lib/entities/template/template.types.d.ts +0 -1
- package/notification-management/lib/{entity.loader.d.ts → entity.provider.d.ts} +3 -3
- package/notification-management/lib/setting.keys.d.ts +17 -0
- package/notification-management/lib/setting.provider.d.ts +4 -0
- package/package.json +9 -5
- package/platform-management/index.d.ts +0 -1
- package/platform-management/lib/menu.provider.d.ts +1 -1
- package/security-management/README.md +3 -0
- package/security-management/index.d.ts +2 -0
- package/security-management/lib/const.d.ts +29 -0
- package/security-management/lib/entities/profile/index.d.ts +4 -0
- package/security-management/lib/entities/profile/profile.entity.d.ts +3 -0
- package/security-management/lib/entities/profile/profile.module.d.ts +6 -0
- package/security-management/lib/entities/profile/profile.service.d.ts +13 -0
- package/security-management/lib/entities/profile/profile.types.d.ts +5 -0
- package/security-management/lib/entities/roles/index.d.ts +4 -0
- package/security-management/lib/entities/roles/roles.entity.d.ts +3 -0
- package/security-management/lib/entities/roles/roles.module.d.ts +6 -0
- package/security-management/lib/entities/roles/roles.service.d.ts +10 -0
- package/security-management/lib/entities/roles/roles.types.d.ts +5 -0
- package/security-management/lib/entities/users/index.d.ts +4 -0
- package/security-management/lib/entities/users/users.entity.d.ts +3 -0
- package/security-management/lib/entities/users/users.module.d.ts +6 -0
- package/security-management/lib/entities/users/users.service.d.ts +10 -0
- package/security-management/lib/entities/users/users.types.d.ts +5 -0
- package/security-management/lib/entity.provider.d.ts +10 -0
- package/security-management/lib/menu.provider.d.ts +5 -0
- package/security-management/lib/search-command.provider.d.ts +4 -0
- package/security-management/lib/security-management.module.d.ts +9 -0
- package/text-template-management/lib/const.d.ts +22 -6
- package/text-template-management/lib/entity.provider.d.ts +3 -3
- package/text-template-management/lib/menu.provider.d.ts +1 -1
- package/text-template-management/lib/setting.provider.d.ts +1 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BuSxsqTx.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-app-chooser.component-B3yFTcfb.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-login.module-BwbsBdZm.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-Ce57WfMX.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-CquAxSV0.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-routes-CbA94Lwp.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-two-factor.module-DiN9uKFz.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-category.entity-Cqu3urCo.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-CsGnikzF.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-CrFYszl6.mjs.map +0 -1
- package/form-template-management/lib/search.provider.d.ts +0 -4
- package/notification-management/lib/notification.service.d.ts +0 -6
- package/platform-management/lib/text-search/index.d.ts +0 -2
- package/platform-management/lib/text-search/text-search.service.d.ts +0 -10
- package/platform-management/lib/text-search/text-search.types.d.ts +0 -9
- package/text-template-management/lib/search-definition.provider.d.ts +0 -4
- /package/auth/lib/{account → pages/account}/account.module.d.ts +0 -0
- /package/auth/lib/{account → pages/account}/app-chooser/app-chooser-list.component.d.ts +0 -0
- /package/auth/lib/{account → pages/account}/app-chooser/app-chooser-slot.component.d.ts +0 -0
- /package/auth/lib/{account → pages/account}/app-chooser/app-chooser.component.d.ts +0 -0
- /package/auth/lib/{account → pages/account}/profile/profile-slot.component.d.ts +0 -0
- /package/auth/lib/{account → pages/account}/tenant-chooser/tenant-chooser-dropdown.component.d.ts +0 -0
- /package/auth/lib/{account → pages/account}/tenant-chooser/tenant-chooser.component.d.ts +0 -0
- /package/auth/lib/{forgot → pages/forgot}/routes.d.ts +0 -0
- /package/auth/lib/{login → pages/login}/login.module.d.ts +0 -0
- /package/auth/lib/{two-factor → pages/two-factor}/two-factor-code/two-factor-code.component.d.ts +0 -0
- /package/auth/lib/{two-factor → pages/two-factor}/two-factor.module.d.ts +0 -0
- /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-item/admin-notification-item.component.d.ts +0 -0
- /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-panel/admin-notification-panel.component.d.ts +0 -0
- /package/notification-management/lib/{admin-notification-slot → components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
- /package/notification-management/lib/entities/{notification.entity.d.ts → notification/notification.entity.d.ts} +0 -0
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
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
|
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-
|
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
|
391
|
-
moduleName: 'FormTemplateManagement',
|
392
|
-
moduleRoute: 'form-template-management',
|
391
|
+
const config = {
|
393
392
|
i18n: 'form-template-management',
|
394
|
-
|
395
|
-
|
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(`${
|
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(`${
|
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,30 +494,32 @@ const AXMFormTemplateTypes = {
|
|
476
494
|
Widget: { id: 20, title: 'Widget Template' },
|
477
495
|
};
|
478
496
|
|
479
|
-
class
|
497
|
+
class AXMEntityProvider {
|
480
498
|
constructor() {
|
481
499
|
this.injector = inject(Injector);
|
482
500
|
}
|
483
501
|
preload() {
|
484
|
-
const
|
485
|
-
|
486
|
-
|
502
|
+
const module = RootConfig.module.name;
|
503
|
+
return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
|
504
|
+
module: module,
|
505
|
+
entity: entity.name,
|
506
|
+
}));
|
487
507
|
}
|
488
508
|
async get(moduleName, entityName) {
|
489
|
-
if (moduleName ==
|
509
|
+
if (moduleName == RootConfig.module.name) {
|
490
510
|
switch (entityName) {
|
491
|
-
case
|
492
|
-
return (await import('./acorex-modules-form-template-management-category.entity-
|
493
|
-
case
|
494
|
-
return (await import('./acorex-modules-form-template-management-template.entity-
|
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);
|
495
515
|
}
|
496
516
|
}
|
497
517
|
return null;
|
498
518
|
}
|
499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
500
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
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 }); }
|
501
521
|
}
|
502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
|
503
523
|
type: Injectable
|
504
524
|
}] });
|
505
525
|
|
@@ -508,22 +528,24 @@ class AXMMenuProvider {
|
|
508
528
|
this.entityService = inject(AXPEntityService);
|
509
529
|
}
|
510
530
|
async provide(context) {
|
511
|
-
const scope =
|
512
|
-
const
|
531
|
+
const scope = RootConfig.config.i18n;
|
532
|
+
const module = RootConfig.module;
|
513
533
|
context.addItems([
|
514
534
|
{
|
515
535
|
priority: 9001,
|
516
536
|
text: `t('module-name', {scope:"${scope}"})`,
|
517
|
-
icon:
|
537
|
+
icon: module.icon,
|
518
538
|
children: [
|
519
539
|
{
|
520
540
|
text: `t("categories", { scope: "common" })`,
|
521
|
-
path: this.entityService.createPath(
|
541
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.category.name),
|
542
|
+
icon: RootConfig.entities.category.icon,
|
522
543
|
priority: 1,
|
523
544
|
},
|
524
545
|
{
|
525
546
|
text: `t('templates', {scope:"${scope}"})`,
|
526
|
-
path: this.entityService.createPath(
|
547
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.template.name),
|
548
|
+
icon: RootConfig.entities.template.icon,
|
527
549
|
priority: 2,
|
528
550
|
},
|
529
551
|
],
|
@@ -532,33 +554,41 @@ class AXMMenuProvider {
|
|
532
554
|
}
|
533
555
|
}
|
534
556
|
|
535
|
-
class
|
557
|
+
class AXMPermissionProvider {
|
558
|
+
async provide(context) {
|
559
|
+
context.addPermissions([
|
560
|
+
{
|
561
|
+
name: 'forms:templates:view',
|
562
|
+
title: 'Permission to view templates',
|
563
|
+
isArchived: false,
|
564
|
+
},
|
565
|
+
]);
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
class AXMSearchCommandProvider extends AXPSearchCommandProvider {
|
536
570
|
constructor() {
|
537
571
|
super(...arguments);
|
538
572
|
this.commands = [
|
539
573
|
{
|
540
|
-
|
541
|
-
title: '
|
542
|
-
icon:
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.templateEntity}`,
|
548
|
-
},
|
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}`,
|
549
581
|
},
|
550
582
|
},
|
551
583
|
},
|
552
584
|
{
|
553
|
-
|
554
|
-
title: '
|
555
|
-
icon:
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
entity: `${AXMFormTemplateManagementModuleConst.moduleName}.${AXMFormTemplateManagementModuleConst.categoryEntity}`,
|
561
|
-
},
|
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}`,
|
562
592
|
},
|
563
593
|
},
|
564
594
|
},
|
@@ -587,7 +617,7 @@ class AXPDesignerConnectorImpl extends AXPDesignerConnector {
|
|
587
617
|
async saveAs(content) {
|
588
618
|
const result = await this.workflow.execute('create-entity', {
|
589
619
|
redirect: false,
|
590
|
-
entity: `${
|
620
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
|
591
621
|
canCreateNewOne: false,
|
592
622
|
data: {
|
593
623
|
name: AXPDataGenerator.alphanumeric(10),
|
@@ -648,66 +678,6 @@ class AXPTemplateWidgetProviderImpl {
|
|
648
678
|
}
|
649
679
|
}
|
650
680
|
|
651
|
-
class AXMSettingProvider {
|
652
|
-
async provide(context) {
|
653
|
-
context
|
654
|
-
// Add Form Template Group
|
655
|
-
.addGroup('form-template', 'Form Template', 'Settings related to form templates.', 'fa-solid fa-file-invoice')
|
656
|
-
// Start Interface Section
|
657
|
-
.addSection('interface', 'UI Interface', 'Customize the user interface for forms.')
|
658
|
-
.addSetting({
|
659
|
-
key: 'history-panel',
|
660
|
-
title: 'Show History Panel',
|
661
|
-
scope: 'U',
|
662
|
-
isInherited: true,
|
663
|
-
defaultValue: false,
|
664
|
-
widget: {
|
665
|
-
type: AXPWidgetsCatalog.toggle,
|
666
|
-
},
|
667
|
-
description: 'Enable or disable the history panel for forms.',
|
668
|
-
validationRules: [
|
669
|
-
{
|
670
|
-
rule: 'required',
|
671
|
-
},
|
672
|
-
],
|
673
|
-
})
|
674
|
-
.endSection()
|
675
|
-
// Start Saving Section
|
676
|
-
.addSection('saving', 'Saving', 'Settings related to saving form data.')
|
677
|
-
.addSetting({
|
678
|
-
key: 'auto-save',
|
679
|
-
title: 'Auto Save',
|
680
|
-
scope: 'U',
|
681
|
-
isInherited: true,
|
682
|
-
defaultValue: false,
|
683
|
-
widget: {
|
684
|
-
type: AXPWidgetsCatalog.toggle,
|
685
|
-
},
|
686
|
-
description: 'Automatically save form data at regular intervals.',
|
687
|
-
})
|
688
|
-
.addSetting({
|
689
|
-
key: 'auto-save-interval',
|
690
|
-
title: 'Auto Save Interval',
|
691
|
-
scope: 'U',
|
692
|
-
isInherited: true,
|
693
|
-
defaultValue: 1,
|
694
|
-
widget: {
|
695
|
-
type: AXPWidgetsCatalog.number,
|
696
|
-
options: {
|
697
|
-
visibility: `{{ context.eval('auto-save') }}`,
|
698
|
-
hasClearButton: false,
|
699
|
-
minValue: 1,
|
700
|
-
maxValue: 60,
|
701
|
-
}
|
702
|
-
},
|
703
|
-
description: 'Set the time interval (in minites) for auto-saving form data.',
|
704
|
-
})
|
705
|
-
.endSection()
|
706
|
-
// End Form Template Group
|
707
|
-
.endGroup();
|
708
|
-
}
|
709
|
-
}
|
710
|
-
|
711
681
|
const AXMCreateFormTemplateWorkflow = {
|
712
682
|
startStepId: 'create-form-template',
|
713
683
|
steps: {
|
@@ -717,7 +687,7 @@ const AXMCreateFormTemplateWorkflow = {
|
|
717
687
|
workflow: "create-entity",
|
718
688
|
context: {
|
719
689
|
redirect: true,
|
720
|
-
entity: `${
|
690
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
|
721
691
|
}
|
722
692
|
},
|
723
693
|
nextSteps: [
|
@@ -810,7 +780,7 @@ class AXMFormTemplateManagementModule {
|
|
810
780
|
},
|
811
781
|
{
|
812
782
|
provide: AXP_ENTITY_DEFINITION_LOADER,
|
813
|
-
useClass:
|
783
|
+
useClass: AXMEntityProvider,
|
814
784
|
multi: true,
|
815
785
|
},
|
816
786
|
{
|
@@ -829,19 +799,22 @@ class AXMFormTemplateManagementModule {
|
|
829
799
|
},
|
830
800
|
{
|
831
801
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
832
|
-
|
802
|
+
useFactory: async () => {
|
803
|
+
const provider = (await import('./acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs')).AXMSettingProvider;
|
804
|
+
return new provider();
|
805
|
+
},
|
833
806
|
multi: true,
|
834
807
|
},
|
835
808
|
{
|
836
809
|
provide: AXP_SEARCH_PROVIDER,
|
837
|
-
useClass:
|
810
|
+
useClass: AXMSearchCommandProvider,
|
811
|
+
multi: true,
|
812
|
+
},
|
813
|
+
{
|
814
|
+
provide: AXP_PERMISSION_PROVIDER,
|
815
|
+
useClass: AXMPermissionProvider,
|
838
816
|
multi: true,
|
839
817
|
},
|
840
|
-
// {
|
841
|
-
// provide: AXP_SEARCH_DEFINITION_PROVIDER,
|
842
|
-
// useClass: AXMFormTemplateManagementModuleSearchProvider,
|
843
|
-
// multi: true,
|
844
|
-
// },
|
845
818
|
], imports: [AXPWidgetsModule,
|
846
819
|
AXMFormTemplateManagementCategoryEntityModule,
|
847
820
|
AXMFormTemplateManagementTemplateEntityModule,
|
@@ -888,7 +861,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
888
861
|
},
|
889
862
|
{
|
890
863
|
provide: AXP_ENTITY_DEFINITION_LOADER,
|
891
|
-
useClass:
|
864
|
+
useClass: AXMEntityProvider,
|
892
865
|
multi: true,
|
893
866
|
},
|
894
867
|
{
|
@@ -907,19 +880,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
907
880
|
},
|
908
881
|
{
|
909
882
|
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
910
|
-
|
883
|
+
useFactory: async () => {
|
884
|
+
const provider = (await import('./acorex-modules-form-template-management-setting.provider-ceq0ZtxA.mjs')).AXMSettingProvider;
|
885
|
+
return new provider();
|
886
|
+
},
|
911
887
|
multi: true,
|
912
888
|
},
|
913
889
|
{
|
914
890
|
provide: AXP_SEARCH_PROVIDER,
|
915
|
-
useClass:
|
891
|
+
useClass: AXMSearchCommandProvider,
|
892
|
+
multi: true,
|
893
|
+
},
|
894
|
+
{
|
895
|
+
provide: AXP_PERMISSION_PROVIDER,
|
896
|
+
useClass: AXMPermissionProvider,
|
916
897
|
multi: true,
|
917
898
|
},
|
918
|
-
// {
|
919
|
-
// provide: AXP_SEARCH_DEFINITION_PROVIDER,
|
920
|
-
// useClass: AXMFormTemplateManagementModuleSearchProvider,
|
921
|
-
// multi: true,
|
922
|
-
// },
|
923
899
|
],
|
924
900
|
}]
|
925
901
|
}] });
|
@@ -928,5 +904,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
928
904
|
* Generated bundle index. Do not edit.
|
929
905
|
*/
|
930
906
|
|
931
|
-
export { AXMFormTemplateManagementCategoryEntityModule, AXMFormTemplateManagementCategoryEntityService, AXMFormTemplateManagementCategoryEntityServiceImpl, AXMFormTemplateManagementModule,
|
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 };
|
932
908
|
//# sourceMappingURL=acorex-modules-form-template-management.mjs.map
|