@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.
- 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-CGhbmYel.mjs → acorex-modules-form-template-management-template.entity-EoPISAfV.mjs} +15 -14
- package/fesm2022/acorex-modules-form-template-management-template.entity-EoPISAfV.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +110 -112
- package/fesm2022/acorex-modules-form-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +1319 -996
- 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 +62 -77
- 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 +5 -4
- 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.provider.d.ts +10 -0
- 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 +5 -4
- 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-CGhbmYel.mjs.map +0 -1
- package/form-template-management/lib/search-definition.provider.d.ts +0 -4
- package/notification-management/lib/entity.loader.d.ts +0 -9
- 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,25 +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
|
}
|
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 ==
|
509
|
+
if (moduleName == RootConfig.module.name) {
|
485
510
|
switch (entityName) {
|
486
|
-
case
|
487
|
-
return (await import('./acorex-modules-form-template-management-category.entity-
|
488
|
-
case
|
489
|
-
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);
|
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:
|
495
|
-
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 }); }
|
496
521
|
}
|
497
|
-
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: [{
|
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 =
|
507
|
-
const
|
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:
|
537
|
+
icon: module.icon,
|
513
538
|
children: [
|
514
539
|
{
|
515
540
|
text: `t("categories", { scope: "common" })`,
|
516
|
-
path: this.entityService.createPath(
|
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(
|
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
|
557
|
+
class AXMPermissionProvider {
|
531
558
|
async provide(context) {
|
532
|
-
context.
|
559
|
+
context.addPermissions([
|
533
560
|
{
|
534
|
-
name: '
|
535
|
-
|
536
|
-
|
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
|
-
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
class AXMSearchCommandProvider extends AXPSearchCommandProvider {
|
570
|
+
constructor() {
|
571
|
+
super(...arguments);
|
572
|
+
this.commands = [
|
544
573
|
{
|
545
|
-
|
546
|
-
|
547
|
-
|
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}`,
|
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: `${
|
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: `${
|
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:
|
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
|
-
|
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:
|
825
|
-
useClass:
|
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:
|
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
|
-
|
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:
|
898
|
-
useClass:
|
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,
|
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
|