@acorex/modules 19.2.10 → 19.2.11
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/README.md +3 -0
- package/document-management/index.d.ts +6 -0
- package/document-management/lib/const.d.ts +48 -0
- package/document-management/lib/document-management.module.d.ts +11 -0
- package/document-management/lib/entities/document/document.entity.d.ts +3 -0
- package/document-management/lib/entities/document/document.module.d.ts +6 -0
- package/document-management/lib/entities/document/document.service.d.ts +10 -0
- package/document-management/lib/entities/document/document.types.d.ts +5 -0
- package/document-management/lib/entities/document/index.d.ts +4 -0
- package/document-management/lib/entities/document-type/coulmn-def.widget.d.ts +70 -0
- package/document-management/lib/entities/document-type/document-type.entity.d.ts +3 -0
- package/document-management/lib/entities/document-type/document-type.module.d.ts +6 -0
- package/document-management/lib/entities/document-type/document-type.service.d.ts +10 -0
- package/document-management/lib/entities/document-type/document-type.types.d.ts +5 -0
- package/document-management/lib/entities/document-type/index.d.ts +4 -0
- package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.entity.d.ts +3 -0
- package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.module.d.ts +6 -0
- package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.service.d.ts +10 -0
- package/document-management/lib/entities/document-type-meta-definition/document-type-meta-definition.types.d.ts +5 -0
- package/document-management/lib/entities/document-type-meta-definition/index.d.ts +4 -0
- package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.entity.d.ts +3 -0
- package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.module.d.ts +6 -0
- package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.service.d.ts +10 -0
- package/document-management/lib/entities/document-type-meta-value/document-type-meta-value.types.d.ts +5 -0
- package/document-management/lib/entities/document-type-meta-value/index.d.ts +4 -0
- package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.entity.d.ts +3 -0
- package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.module.d.ts +6 -0
- package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.service.d.ts +10 -0
- package/document-management/lib/entities/document-type-status-definition/document-type-status-definition.types.d.ts +5 -0
- package/document-management/lib/entities/document-type-status-definition/index.d.ts +4 -0
- package/document-management/lib/entity.provider.d.ts +10 -0
- package/document-management/lib/menu.provider.d.ts +5 -0
- package/document-management/lib/permission.provider.d.ts +4 -0
- package/document-management/lib/search-command.provider.d.ts +4 -0
- package/document-management/lib/setting.provider.d.ts +4 -0
- package/fesm2022/acorex-modules-document-management.mjs +1829 -0
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +42 -8
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +539 -53
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/organization-management/lib/const.d.ts +12 -0
- package/organization-management/lib/features/organization-chart/org-chart-configuration.page.d.ts +12 -0
- package/organization-management/lib/features/organization-chart/org-chart.page.d.ts +12 -0
- package/package.json +9 -5
- package/platform-management/lib/const.d.ts +6 -0
- package/platform-management/lib/entities/data-source/coulmn-def.widget.d.ts +3 -0
- package/platform-management/lib/entities/index.d.ts +1 -0
- package/platform-management/lib/entities/meta-data-definition/index.d.ts +4 -0
- package/platform-management/lib/entities/meta-data-definition/meta-data-definition.entity.d.ts +3 -0
- package/platform-management/lib/entities/meta-data-definition/meta-data-definition.module.d.ts +6 -0
- package/platform-management/lib/entities/meta-data-definition/meta-data-definition.service.d.ts +10 -0
- package/platform-management/lib/entities/meta-data-definition/meta-data-definition.types.d.ts +5 -0
- package/platform-management/lib/platform-management.module.d.ts +5 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i1$1 from '@acorex/platform/common';
|
2
|
-
import { AXPRegionalService, AXPSettingScope, AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER, AXPComponentSlotModule, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, AXP_APP_VERSION_PROVIDER, AXPAppStartUpService, AXPFileStorageService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
2
|
+
import { AXPRegionalService, AXPSettingScope, AXPSettingService, AXP_SETTING_DEFINITION_PROVIDER, AXPComponentSlotModule, AXMEntityCrudServiceImpl, AXPEntityQueryType, AXPEntityCommandScope, createAllQueryView, AXP_APP_VERSION_PROVIDER, AXPAppStartUpService, createQueryView, AXPFileStorageService, AXP_MENU_PROVIDER } from '@acorex/platform/common';
|
3
3
|
import { AXP_ENTITY_DEFINITION_LOADER, AXPEntityDefinitionRegistryService, AXPEntityService, AXPEntityResolver, AXP_ENTITY_CONFIG_TOKEN } from '@acorex/platform/layout/entity';
|
4
4
|
import * as i2$4 from '@acorex/platform/workflow';
|
5
5
|
import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowModule } from '@acorex/platform/workflow';
|
@@ -393,7 +393,7 @@ const RootConfig = {
|
|
393
393
|
module: {
|
394
394
|
route: 'platform-management',
|
395
395
|
name: 'PlatformManagement',
|
396
|
-
title: `t('
|
396
|
+
title: `t('platformManagement', {scope:"${config.i18n}"})`,
|
397
397
|
icon: 'fa-light fa-cogs',
|
398
398
|
},
|
399
399
|
entities: {
|
@@ -431,6 +431,12 @@ const RootConfig = {
|
|
431
431
|
titlePlural: `t("dataSourcePlural", {scope:"${config.i18n}"})`,
|
432
432
|
icon: 'fa-light fa-database',
|
433
433
|
},
|
434
|
+
metaDataDefinition: {
|
435
|
+
name: 'MetaDataDefinition',
|
436
|
+
title: `t("MetaDataDefinition", {scope:"${config.i18n}"})`,
|
437
|
+
titlePlural: `t("MetaDataDefinitionPlural", {scope:"${config.i18n}"})`,
|
438
|
+
icon: 'fa-light fa-server',
|
439
|
+
},
|
434
440
|
},
|
435
441
|
};
|
436
442
|
|
@@ -458,6 +464,10 @@ async function appTermEntityEntityFactory(injector) {
|
|
458
464
|
formats: {
|
459
465
|
individual: RootConfig.entities.appTerm.title,
|
460
466
|
plural: RootConfig.entities.appTerm.titlePlural,
|
467
|
+
searchResult: {
|
468
|
+
title: '{{ title }}',
|
469
|
+
description: RootConfig.module.title,
|
470
|
+
}
|
461
471
|
},
|
462
472
|
relatedEntities: [],
|
463
473
|
groups: [
|
@@ -493,6 +503,19 @@ async function appTermEntityEntityFactory(injector) {
|
|
493
503
|
type: AXPWidgetsCatalog.text,
|
494
504
|
},
|
495
505
|
},
|
506
|
+
options: {
|
507
|
+
filter: {
|
508
|
+
advance: {
|
509
|
+
enabled: true,
|
510
|
+
},
|
511
|
+
inline: {
|
512
|
+
enabled: true
|
513
|
+
}
|
514
|
+
},
|
515
|
+
sort: {
|
516
|
+
enabled: true,
|
517
|
+
},
|
518
|
+
},
|
496
519
|
validations: [
|
497
520
|
{
|
498
521
|
rule: 'required',
|
@@ -530,6 +553,16 @@ async function appTermEntityEntityFactory(injector) {
|
|
530
553
|
type: AXPWidgetsCatalog.number,
|
531
554
|
},
|
532
555
|
},
|
556
|
+
options: {
|
557
|
+
filter: {
|
558
|
+
advance: {
|
559
|
+
enabled: true,
|
560
|
+
},
|
561
|
+
},
|
562
|
+
sort: {
|
563
|
+
enabled: true,
|
564
|
+
},
|
565
|
+
},
|
533
566
|
validations: [
|
534
567
|
{
|
535
568
|
rule: 'required',
|
@@ -546,6 +579,16 @@ async function appTermEntityEntityFactory(injector) {
|
|
546
579
|
type: AXPWidgetsCatalog.dateTime,
|
547
580
|
},
|
548
581
|
},
|
582
|
+
options: {
|
583
|
+
filter: {
|
584
|
+
advance: {
|
585
|
+
enabled: true,
|
586
|
+
},
|
587
|
+
},
|
588
|
+
sort: {
|
589
|
+
enabled: true,
|
590
|
+
},
|
591
|
+
},
|
549
592
|
validations: [
|
550
593
|
{
|
551
594
|
rule: 'required',
|
@@ -825,14 +868,7 @@ async function appTermEntityEntityFactory(injector) {
|
|
825
868
|
},
|
826
869
|
],
|
827
870
|
views: [
|
828
|
-
{
|
829
|
-
name: 'all',
|
830
|
-
title: 'All Items',
|
831
|
-
fixed: true,
|
832
|
-
columns: [],
|
833
|
-
conditions: [],
|
834
|
-
sorts: [],
|
835
|
-
},
|
871
|
+
createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
|
836
872
|
],
|
837
873
|
},
|
838
874
|
},
|
@@ -1004,6 +1040,10 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1004
1040
|
formats: {
|
1005
1041
|
individual: RootConfig.entities.appVersion.title,
|
1006
1042
|
plural: RootConfig.entities.appVersion.title,
|
1043
|
+
searchResult: {
|
1044
|
+
title: '{{ versionNumber }}',
|
1045
|
+
description: RootConfig.module.title,
|
1046
|
+
},
|
1007
1047
|
},
|
1008
1048
|
relatedEntities: [],
|
1009
1049
|
groups: [
|
@@ -1024,6 +1064,14 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1024
1064
|
},
|
1025
1065
|
},
|
1026
1066
|
options: {
|
1067
|
+
filter: {
|
1068
|
+
advance: {
|
1069
|
+
enabled: true,
|
1070
|
+
},
|
1071
|
+
inline: {
|
1072
|
+
enabled: true
|
1073
|
+
}
|
1074
|
+
},
|
1027
1075
|
sort: {
|
1028
1076
|
enabled: true,
|
1029
1077
|
},
|
@@ -1065,6 +1113,16 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1065
1113
|
type: AXPWidgetsCatalog.dateTime,
|
1066
1114
|
},
|
1067
1115
|
},
|
1116
|
+
options: {
|
1117
|
+
filter: {
|
1118
|
+
advance: {
|
1119
|
+
enabled: true,
|
1120
|
+
},
|
1121
|
+
},
|
1122
|
+
sort: {
|
1123
|
+
enabled: true,
|
1124
|
+
},
|
1125
|
+
},
|
1068
1126
|
validations: [
|
1069
1127
|
{
|
1070
1128
|
rule: 'required',
|
@@ -1324,14 +1382,7 @@ async function appVersionEntityEntityFactory(injector) {
|
|
1324
1382
|
},
|
1325
1383
|
],
|
1326
1384
|
views: [
|
1327
|
-
{
|
1328
|
-
name: 'all',
|
1329
|
-
title: 't("all", { scope: "common" })',
|
1330
|
-
fixed: true,
|
1331
|
-
columns: [],
|
1332
|
-
conditions: [],
|
1333
|
-
sorts: [{ name: 'versionNumber', dir: 'desc' }],
|
1334
|
-
},
|
1385
|
+
createAllQueryView({ sorts: [{ name: 'versionNumber', dir: 'desc' }] }),
|
1335
1386
|
],
|
1336
1387
|
},
|
1337
1388
|
},
|
@@ -1501,22 +1552,28 @@ class AppTermAndVersionCheck {
|
|
1501
1552
|
name: 'Version',
|
1502
1553
|
statusText: 'Check New Version...',
|
1503
1554
|
run: async () => {
|
1504
|
-
this.sessionService.
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1555
|
+
this.sessionService.application$.subscribe(async (app) => {
|
1556
|
+
const current = (await this.versionProvider.provider()).version;
|
1557
|
+
const initVersion = await this.settingsService.scope(AXPSettingScope.User).get(`init-application-version`);
|
1558
|
+
if (initVersion == null) {
|
1559
|
+
await this.settingsService.scope(AXPSettingScope.User).set(`init-application-version`, current);
|
1560
|
+
}
|
1561
|
+
else {
|
1562
|
+
if (app != null) {
|
1563
|
+
const versions = await this.appVersionService.query();
|
1564
|
+
for (const v of versions.items) {
|
1565
|
+
if (v.versionNumber == current && v.versionNumber != initVersion) {
|
1566
|
+
const isSee = await this.settingsService
|
1567
|
+
.scope(AXPSettingScope.User)
|
1568
|
+
.get(`is-see-check-version-${v.versionNumber}`);
|
1569
|
+
if (!isSee) {
|
1570
|
+
setTimeout(() => {
|
1571
|
+
this.workflowService.execute('change-log-version', v);
|
1572
|
+
}, 300);
|
1573
|
+
}
|
1517
1574
|
}
|
1518
1575
|
}
|
1519
|
-
}
|
1576
|
+
}
|
1520
1577
|
}
|
1521
1578
|
});
|
1522
1579
|
},
|
@@ -1526,8 +1583,8 @@ class AppTermAndVersionCheck {
|
|
1526
1583
|
name: 'Terms',
|
1527
1584
|
statusText: 'Check New Terms And Conditions...',
|
1528
1585
|
run: async () => {
|
1529
|
-
this.sessionService.
|
1530
|
-
if (
|
1586
|
+
this.sessionService.application$.subscribe(async (app) => {
|
1587
|
+
if (app != null) {
|
1531
1588
|
const filterTerms = [];
|
1532
1589
|
const terms = await this.appTermService.query();
|
1533
1590
|
for (const term of terms.items) {
|
@@ -1601,6 +1658,9 @@ const AXM_COLUMN_DEF_WIDGET = [
|
|
1601
1658
|
mode: 'edit',
|
1602
1659
|
path: 'type',
|
1603
1660
|
options: {
|
1661
|
+
ruleValidation: {
|
1662
|
+
rule: true,
|
1663
|
+
},
|
1604
1664
|
placeholder: 'Type',
|
1605
1665
|
valueField: 'name',
|
1606
1666
|
textField: 'title',
|
@@ -1732,6 +1792,10 @@ async function dataSourceEntityFactory(injector) {
|
|
1732
1792
|
formats: {
|
1733
1793
|
individual: RootConfig.entities.dataSource.title,
|
1734
1794
|
plural: RootConfig.entities.dataSource.titlePlural,
|
1795
|
+
searchResult: {
|
1796
|
+
title: '{{ title }}',
|
1797
|
+
description: RootConfig.module.title,
|
1798
|
+
}
|
1735
1799
|
},
|
1736
1800
|
relatedEntities: [],
|
1737
1801
|
groups: [
|
@@ -1773,6 +1837,19 @@ async function dataSourceEntityFactory(injector) {
|
|
1773
1837
|
rule: 'required',
|
1774
1838
|
},
|
1775
1839
|
],
|
1840
|
+
options: {
|
1841
|
+
sort: {
|
1842
|
+
enabled: true,
|
1843
|
+
},
|
1844
|
+
filter: {
|
1845
|
+
advance: {
|
1846
|
+
enabled: true,
|
1847
|
+
},
|
1848
|
+
inline: {
|
1849
|
+
enabled: true,
|
1850
|
+
},
|
1851
|
+
}
|
1852
|
+
}
|
1776
1853
|
},
|
1777
1854
|
{
|
1778
1855
|
name: 'columns',
|
@@ -1863,6 +1940,16 @@ async function dataSourceEntityFactory(injector) {
|
|
1863
1940
|
],
|
1864
1941
|
},
|
1865
1942
|
},
|
1943
|
+
options: {
|
1944
|
+
sort: {
|
1945
|
+
enabled: true,
|
1946
|
+
},
|
1947
|
+
filter: {
|
1948
|
+
advance: {
|
1949
|
+
enabled: true,
|
1950
|
+
},
|
1951
|
+
}
|
1952
|
+
},
|
1866
1953
|
validations: [
|
1867
1954
|
{
|
1868
1955
|
rule: 'required',
|
@@ -2384,7 +2471,7 @@ async function dataSourceEntityFactory(injector) {
|
|
2384
2471
|
scope: AXPEntityCommandScope.Individual,
|
2385
2472
|
},
|
2386
2473
|
{
|
2387
|
-
title: 't("modify", { scope: "common" })',
|
2474
|
+
title: 't("entity.modify", { scope: "common" })',
|
2388
2475
|
command: 'quick-modify-entity',
|
2389
2476
|
priority: 'secondary',
|
2390
2477
|
type: 'update',
|
@@ -2392,14 +2479,29 @@ async function dataSourceEntityFactory(injector) {
|
|
2392
2479
|
},
|
2393
2480
|
],
|
2394
2481
|
views: [
|
2395
|
-
{
|
2396
|
-
|
2397
|
-
|
2398
|
-
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2402
|
-
|
2482
|
+
createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
|
2483
|
+
createQueryView('static', `t("static", { scope: "${i18n}" })`, true, {
|
2484
|
+
conditions: [
|
2485
|
+
{
|
2486
|
+
name: 'sourceType.name',
|
2487
|
+
operator: {
|
2488
|
+
type: 'equal',
|
2489
|
+
},
|
2490
|
+
value: 'static',
|
2491
|
+
}
|
2492
|
+
]
|
2493
|
+
}),
|
2494
|
+
createQueryView('entity', `t("entity", { scope: "${i18n}" })`, true, {
|
2495
|
+
conditions: [
|
2496
|
+
{
|
2497
|
+
name: 'sourceType.name',
|
2498
|
+
operator: {
|
2499
|
+
type: 'equal',
|
2500
|
+
},
|
2501
|
+
value: 'entity',
|
2502
|
+
}
|
2503
|
+
]
|
2504
|
+
}),
|
2403
2505
|
],
|
2404
2506
|
},
|
2405
2507
|
},
|
@@ -2827,6 +2929,10 @@ async function promotionEntityFactory(injector) {
|
|
2827
2929
|
formats: {
|
2828
2930
|
individual: RootConfig.entities.promotion.title,
|
2829
2931
|
plural: RootConfig.entities.promotion.titlePlural,
|
2932
|
+
searchResult: {
|
2933
|
+
title: '{{ title }}',
|
2934
|
+
description: RootConfig.module.title,
|
2935
|
+
}
|
2830
2936
|
},
|
2831
2937
|
relatedEntities: [],
|
2832
2938
|
groups: [
|
@@ -2846,6 +2952,19 @@ async function promotionEntityFactory(injector) {
|
|
2846
2952
|
type: AXPWidgetsCatalog.text,
|
2847
2953
|
},
|
2848
2954
|
},
|
2955
|
+
options: {
|
2956
|
+
sort: {
|
2957
|
+
enabled: true,
|
2958
|
+
},
|
2959
|
+
filter: {
|
2960
|
+
advance: {
|
2961
|
+
enabled: true,
|
2962
|
+
},
|
2963
|
+
inline: {
|
2964
|
+
enabled: true,
|
2965
|
+
},
|
2966
|
+
}
|
2967
|
+
},
|
2849
2968
|
validations: [
|
2850
2969
|
{
|
2851
2970
|
rule: 'required',
|
@@ -2905,6 +3024,16 @@ async function promotionEntityFactory(injector) {
|
|
2905
3024
|
},
|
2906
3025
|
},
|
2907
3026
|
},
|
3027
|
+
options: {
|
3028
|
+
sort: {
|
3029
|
+
enabled: true,
|
3030
|
+
},
|
3031
|
+
filter: {
|
3032
|
+
advance: {
|
3033
|
+
enabled: true,
|
3034
|
+
},
|
3035
|
+
}
|
3036
|
+
},
|
2908
3037
|
validations: [
|
2909
3038
|
{
|
2910
3039
|
rule: 'required',
|
@@ -3320,17 +3449,329 @@ async function promotionEntityFactory(injector) {
|
|
3320
3449
|
type: 'delete',
|
3321
3450
|
scope: AXPEntityCommandScope.Individual,
|
3322
3451
|
},
|
3452
|
+
{
|
3453
|
+
title: 't("entity.modify", { scope: "common" })',
|
3454
|
+
command: 'quick-modify-entity',
|
3455
|
+
priority: 'secondary',
|
3456
|
+
type: 'update',
|
3457
|
+
scope: AXPEntityCommandScope.Individual,
|
3458
|
+
},
|
3323
3459
|
],
|
3324
3460
|
views: [
|
3461
|
+
createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] }),
|
3462
|
+
createQueryView('media', `t("media", { scope: "${i18n}" })`, true, {
|
3463
|
+
conditions: [
|
3464
|
+
{
|
3465
|
+
name: 'contentType.name',
|
3466
|
+
operator: {
|
3467
|
+
type: 'equal',
|
3468
|
+
},
|
3469
|
+
value: 'media',
|
3470
|
+
}
|
3471
|
+
]
|
3472
|
+
}),
|
3473
|
+
createQueryView('text', `t("text", { scope: "${i18n}" })`, true, {
|
3474
|
+
conditions: [
|
3475
|
+
{
|
3476
|
+
name: 'contentType.name',
|
3477
|
+
operator: {
|
3478
|
+
type: 'equal',
|
3479
|
+
},
|
3480
|
+
value: 'text',
|
3481
|
+
}
|
3482
|
+
]
|
3483
|
+
}),
|
3484
|
+
],
|
3485
|
+
},
|
3486
|
+
},
|
3487
|
+
},
|
3488
|
+
};
|
3489
|
+
return entityDef;
|
3490
|
+
}
|
3491
|
+
|
3492
|
+
class AXMPlatformManagementMetaDataDefinitionEntityService extends AXMEntityCrudServiceImpl {
|
3493
|
+
}
|
3494
|
+
class AXMPlatformManagementMetaDataDefinitionEntityServiceImpl extends AXMPlatformManagementMetaDataDefinitionEntityService {
|
3495
|
+
constructor() {
|
3496
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.metaDataDefinition}`);
|
3497
|
+
}
|
3498
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
3499
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl }); }
|
3500
|
+
}
|
3501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl, decorators: [{
|
3502
|
+
type: Injectable
|
3503
|
+
}], ctorParameters: () => [] });
|
3504
|
+
|
3505
|
+
async function metaDataDefinitionFactory(injector) {
|
3506
|
+
const dataService = injector.get(AXMPlatformManagementMetaDataDefinitionEntityService);
|
3507
|
+
const entityDef = {
|
3508
|
+
module: RootConfig.module.name,
|
3509
|
+
name: RootConfig.entities.metaDataDefinition.name,
|
3510
|
+
source: '',
|
3511
|
+
title: RootConfig.entities.metaDataDefinition.title,
|
3512
|
+
formats: {
|
3513
|
+
individual: RootConfig.entities.metaDataDefinition.title,
|
3514
|
+
plural: RootConfig.entities.metaDataDefinition.titlePlural,
|
3515
|
+
searchResult: {
|
3516
|
+
title: '{{ title }}',
|
3517
|
+
description: RootConfig.module.title,
|
3518
|
+
},
|
3519
|
+
},
|
3520
|
+
relatedEntities: [],
|
3521
|
+
groups: [
|
3522
|
+
{
|
3523
|
+
id: 'section',
|
3524
|
+
title: RootConfig.entities.metaDataDefinition.title,
|
3525
|
+
},
|
3526
|
+
],
|
3527
|
+
properties: [
|
3528
|
+
{
|
3529
|
+
name: 'name',
|
3530
|
+
title: 't("name", { scope: "common" })',
|
3531
|
+
groupId: 'section',
|
3532
|
+
options: {
|
3533
|
+
sort: {
|
3534
|
+
enabled: true,
|
3535
|
+
},
|
3536
|
+
},
|
3537
|
+
schema: {
|
3538
|
+
dataType: 'string',
|
3539
|
+
interface: {
|
3540
|
+
type: AXPWidgetsCatalog.text,
|
3541
|
+
},
|
3542
|
+
},
|
3543
|
+
validations: [
|
3544
|
+
{
|
3545
|
+
rule: 'required',
|
3546
|
+
},
|
3547
|
+
],
|
3548
|
+
},
|
3549
|
+
{
|
3550
|
+
name: 'title',
|
3551
|
+
title: 't("title", { scope: "common" })',
|
3552
|
+
groupId: 'section',
|
3553
|
+
schema: {
|
3554
|
+
dataType: 'string',
|
3555
|
+
interface: {
|
3556
|
+
type: AXPWidgetsCatalog.text,
|
3557
|
+
},
|
3558
|
+
},
|
3559
|
+
validations: [
|
3560
|
+
{
|
3561
|
+
rule: 'required',
|
3562
|
+
},
|
3563
|
+
],
|
3564
|
+
},
|
3565
|
+
{
|
3566
|
+
name: 'define',
|
3567
|
+
title: 't("define", { scope: "common" })',
|
3568
|
+
groupId: 'section',
|
3569
|
+
schema: {
|
3570
|
+
dataType: 'string',
|
3571
|
+
interface: {
|
3572
|
+
type: AXPWidgetsCatalog.text,
|
3573
|
+
},
|
3574
|
+
},
|
3575
|
+
validations: [
|
3576
|
+
{
|
3577
|
+
rule: 'required',
|
3578
|
+
},
|
3579
|
+
],
|
3580
|
+
},
|
3581
|
+
],
|
3582
|
+
columns: [{ name: 'name' }, { name: 'title' }],
|
3583
|
+
commands: {
|
3584
|
+
create: {
|
3585
|
+
execute: async (data) => {
|
3586
|
+
const res = await dataService.insertOne(data);
|
3587
|
+
return { id: res };
|
3588
|
+
},
|
3589
|
+
},
|
3590
|
+
delete: {
|
3591
|
+
execute: async (id) => {
|
3592
|
+
return await dataService.deleteOne(id);
|
3593
|
+
},
|
3594
|
+
},
|
3595
|
+
update: {
|
3596
|
+
execute: async (data) => {
|
3597
|
+
return await dataService.updateOne(data.id, data);
|
3598
|
+
},
|
3599
|
+
},
|
3600
|
+
},
|
3601
|
+
queries: {
|
3602
|
+
byKey: {
|
3603
|
+
execute: async (id) => {
|
3604
|
+
return await dataService.getOne(id);
|
3605
|
+
},
|
3606
|
+
type: AXPEntityQueryType.Single,
|
3607
|
+
},
|
3608
|
+
list: {
|
3609
|
+
execute: async (e) => {
|
3610
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
3611
|
+
},
|
3612
|
+
type: AXPEntityQueryType.List,
|
3613
|
+
},
|
3614
|
+
},
|
3615
|
+
interfaces: {
|
3616
|
+
master: {
|
3617
|
+
create: {
|
3618
|
+
sections: [
|
3325
3619
|
{
|
3326
|
-
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3620
|
+
id: 'section',
|
3621
|
+
},
|
3622
|
+
],
|
3623
|
+
properties: [
|
3624
|
+
{
|
3625
|
+
name: 'name',
|
3626
|
+
layout: {
|
3627
|
+
positions: {
|
3628
|
+
lg: {
|
3629
|
+
colSpan: 6,
|
3630
|
+
},
|
3631
|
+
},
|
3632
|
+
},
|
3633
|
+
},
|
3634
|
+
{
|
3635
|
+
name: 'title',
|
3636
|
+
layout: {
|
3637
|
+
positions: {
|
3638
|
+
lg: {
|
3639
|
+
colSpan: 6,
|
3640
|
+
},
|
3641
|
+
},
|
3642
|
+
},
|
3643
|
+
},
|
3644
|
+
{
|
3645
|
+
name: 'define',
|
3646
|
+
layout: {
|
3647
|
+
positions: {
|
3648
|
+
lg: {
|
3649
|
+
colSpan: 12,
|
3650
|
+
},
|
3651
|
+
},
|
3652
|
+
},
|
3653
|
+
},
|
3654
|
+
],
|
3655
|
+
},
|
3656
|
+
update: {
|
3657
|
+
sections: [
|
3658
|
+
{
|
3659
|
+
id: 'section',
|
3660
|
+
},
|
3661
|
+
],
|
3662
|
+
properties: [
|
3663
|
+
{
|
3664
|
+
name: 'name',
|
3665
|
+
layout: {
|
3666
|
+
positions: {
|
3667
|
+
lg: {
|
3668
|
+
colSpan: 6,
|
3669
|
+
},
|
3670
|
+
},
|
3671
|
+
},
|
3672
|
+
},
|
3673
|
+
{
|
3674
|
+
name: 'title',
|
3675
|
+
layout: {
|
3676
|
+
positions: {
|
3677
|
+
lg: {
|
3678
|
+
colSpan: 6,
|
3679
|
+
},
|
3680
|
+
},
|
3681
|
+
},
|
3682
|
+
},
|
3683
|
+
{
|
3684
|
+
name: 'define',
|
3685
|
+
layout: {
|
3686
|
+
positions: {
|
3687
|
+
lg: {
|
3688
|
+
colSpan: 12,
|
3689
|
+
},
|
3690
|
+
},
|
3691
|
+
},
|
3692
|
+
},
|
3693
|
+
],
|
3694
|
+
},
|
3695
|
+
single: {
|
3696
|
+
title: '{{title}}',
|
3697
|
+
sections: [
|
3698
|
+
{
|
3699
|
+
id: 'section',
|
3700
|
+
layout: {
|
3701
|
+
positions: {
|
3702
|
+
lg: {
|
3703
|
+
colSpan: 12,
|
3704
|
+
},
|
3705
|
+
},
|
3706
|
+
},
|
3707
|
+
},
|
3708
|
+
],
|
3709
|
+
properties: [
|
3710
|
+
{
|
3711
|
+
name: 'name',
|
3712
|
+
layout: {
|
3713
|
+
positions: {
|
3714
|
+
lg: {
|
3715
|
+
colSpan: 6,
|
3716
|
+
},
|
3717
|
+
},
|
3718
|
+
},
|
3719
|
+
},
|
3720
|
+
{
|
3721
|
+
name: 'title',
|
3722
|
+
layout: {
|
3723
|
+
positions: {
|
3724
|
+
lg: {
|
3725
|
+
colSpan: 6,
|
3726
|
+
},
|
3727
|
+
},
|
3728
|
+
},
|
3729
|
+
},
|
3730
|
+
{
|
3731
|
+
name: 'define',
|
3732
|
+
layout: {
|
3733
|
+
positions: {
|
3734
|
+
lg: {
|
3735
|
+
colSpan: 12,
|
3736
|
+
},
|
3737
|
+
},
|
3738
|
+
},
|
3739
|
+
},
|
3740
|
+
],
|
3741
|
+
actions: [],
|
3742
|
+
},
|
3743
|
+
list: {
|
3744
|
+
actions: [
|
3745
|
+
{
|
3746
|
+
title: `t("create", { scope: "common" })`,
|
3747
|
+
command: 'create-entity',
|
3748
|
+
priority: 'primary',
|
3749
|
+
type: 'create',
|
3750
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
3751
|
+
},
|
3752
|
+
{
|
3753
|
+
title: 't("deleteItems", { scope: "common" })',
|
3754
|
+
command: 'delete-entity',
|
3755
|
+
priority: 'primary',
|
3756
|
+
type: 'delete',
|
3757
|
+
scope: AXPEntityCommandScope.Selected,
|
3758
|
+
},
|
3759
|
+
{
|
3760
|
+
title: 't("detail", { scope: "common" })',
|
3761
|
+
command: 'open-entity',
|
3762
|
+
priority: 'secondary',
|
3763
|
+
type: 'view',
|
3764
|
+
scope: AXPEntityCommandScope.Individual,
|
3765
|
+
},
|
3766
|
+
{
|
3767
|
+
title: 't("delete", { scope: "common" })',
|
3768
|
+
command: 'delete-entity',
|
3769
|
+
priority: 'secondary',
|
3770
|
+
type: 'delete',
|
3771
|
+
scope: AXPEntityCommandScope.Individual,
|
3332
3772
|
},
|
3333
3773
|
],
|
3774
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
3334
3775
|
},
|
3335
3776
|
},
|
3336
3777
|
},
|
@@ -3338,6 +3779,31 @@ async function promotionEntityFactory(injector) {
|
|
3338
3779
|
return entityDef;
|
3339
3780
|
}
|
3340
3781
|
|
3782
|
+
class AXMPlatformManagementMetaDataDefinitionEntityModule {
|
3783
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
3784
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityModule }); }
|
3785
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityModule, providers: [
|
3786
|
+
{
|
3787
|
+
provide: AXMPlatformManagementMetaDataDefinitionEntityService,
|
3788
|
+
useClass: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl,
|
3789
|
+
},
|
3790
|
+
] }); }
|
3791
|
+
}
|
3792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementMetaDataDefinitionEntityModule, decorators: [{
|
3793
|
+
type: NgModule,
|
3794
|
+
args: [{
|
3795
|
+
imports: [],
|
3796
|
+
exports: [],
|
3797
|
+
declarations: [],
|
3798
|
+
providers: [
|
3799
|
+
{
|
3800
|
+
provide: AXMPlatformManagementMetaDataDefinitionEntityService,
|
3801
|
+
useClass: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl,
|
3802
|
+
},
|
3803
|
+
],
|
3804
|
+
}]
|
3805
|
+
}] });
|
3806
|
+
|
3341
3807
|
var index = /*#__PURE__*/Object.freeze({
|
3342
3808
|
__proto__: null,
|
3343
3809
|
AXMAppPromotionService: AXMAppPromotionService,
|
@@ -3357,6 +3823,9 @@ var index = /*#__PURE__*/Object.freeze({
|
|
3357
3823
|
AXMNewTermWorkflow: AXMNewTermWorkflow,
|
3358
3824
|
AXMNotifyAppComponent: AXMNotifyAppComponent,
|
3359
3825
|
AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
|
3826
|
+
AXMPlatformManagementMetaDataDefinitionEntityModule: AXMPlatformManagementMetaDataDefinitionEntityModule,
|
3827
|
+
AXMPlatformManagementMetaDataDefinitionEntityService: AXMPlatformManagementMetaDataDefinitionEntityService,
|
3828
|
+
AXMPlatformManagementMetaDataDefinitionEntityServiceImpl: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl,
|
3360
3829
|
AXMPromotionServiceImpl: AXMPromotionServiceImpl,
|
3361
3830
|
AXMPromotionSlotComponent: AXMPromotionSlotComponent,
|
3362
3831
|
AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
|
@@ -3365,6 +3834,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
3365
3834
|
appVersionEntityEntityFactory: appVersionEntityEntityFactory,
|
3366
3835
|
dataSourceEntityFactory: dataSourceEntityFactory,
|
3367
3836
|
globalVariableEntityFactory: globalVariableEntityFactory,
|
3837
|
+
metaDataDefinitionFactory: metaDataDefinitionFactory,
|
3368
3838
|
promotionEntityFactory: promotionEntityFactory
|
3369
3839
|
});
|
3370
3840
|
|
@@ -3408,6 +3878,11 @@ class AXMEntityLoader {
|
|
3408
3878
|
resolve(entity(this.injector));
|
3409
3879
|
break;
|
3410
3880
|
}
|
3881
|
+
case RootConfig.entities.metaDataDefinition.name: {
|
3882
|
+
const entity = (await Promise.resolve().then(function () { return index; })).metaDataDefinitionFactory;
|
3883
|
+
resolve(entity(this.injector));
|
3884
|
+
break;
|
3885
|
+
}
|
3411
3886
|
default:
|
3412
3887
|
resolve(null);
|
3413
3888
|
}
|
@@ -3506,6 +3981,15 @@ class AXMMenuProvider {
|
|
3506
3981
|
// requiredPermission: '',
|
3507
3982
|
},
|
3508
3983
|
},
|
3984
|
+
{
|
3985
|
+
priority: 9005,
|
3986
|
+
text: RootConfig.entities.metaDataDefinition.title,
|
3987
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinition.name),
|
3988
|
+
icon: RootConfig.entities.metaDataDefinition.icon,
|
3989
|
+
data: {
|
3990
|
+
// requiredPermission: '',
|
3991
|
+
},
|
3992
|
+
},
|
3509
3993
|
],
|
3510
3994
|
},
|
3511
3995
|
]);
|
@@ -3596,7 +4080,8 @@ class AXMPlatformManagementModule {
|
|
3596
4080
|
*/
|
3597
4081
|
constructor(appVersionCheck) { }
|
3598
4082
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppTermAndVersionCheck }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
3599
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [
|
4083
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMPlatformManagementMetaDataDefinitionEntityModule,
|
4084
|
+
AXMPlatformManagementCommonModule, i2$4.AXPWorkflowModule, i1$1.AXPComponentSlotModule] }); }
|
3600
4085
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
3601
4086
|
{
|
3602
4087
|
provide: ROUTES,
|
@@ -3639,7 +4124,8 @@ class AXMPlatformManagementModule {
|
|
3639
4124
|
multi: true,
|
3640
4125
|
},
|
3641
4126
|
AppTermAndVersionCheck,
|
3642
|
-
], imports: [
|
4127
|
+
], imports: [AXMPlatformManagementMetaDataDefinitionEntityModule,
|
4128
|
+
AXMPlatformManagementCommonModule,
|
3643
4129
|
AXPWorkflowModule.forChild({
|
3644
4130
|
actions: {
|
3645
4131
|
AXMChangeLogPopupAction,
|
@@ -3677,7 +4163,7 @@ class AXMPlatformManagementModule {
|
|
3677
4163
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
|
3678
4164
|
type: NgModule,
|
3679
4165
|
args: [{
|
3680
|
-
imports: [
|
4166
|
+
imports: [AXMPlatformManagementMetaDataDefinitionEntityModule,
|
3681
4167
|
AXMPlatformManagementCommonModule,
|
3682
4168
|
AXPWorkflowModule.forChild({
|
3683
4169
|
actions: {
|
@@ -3765,5 +4251,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
3765
4251
|
* Generated bundle index. Do not edit.
|
3766
4252
|
*/
|
3767
4253
|
|
3768
|
-
export { AXMAppPromotionService, AXMAppTermService, AXMAppTermServiceImpl, AXMAppVersionService, AXMAppVersionServiceImpl, AXMAppVersionSlotComponent, AXMChangeLogPopupAction, AXMChangeLogUpdateSettingAction, AXMChangeLogWorkflow, AXMCommonModuleEntityProvider, AXMDataSourceService, AXMDataSourceServiceImpl, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMListTermsComponent, AXMNewTermWorkflow, AXMNotifyAppComponent, AXMNotifyNewTermPopupAction, AXMPlatformManagementModule, AXMPromotionServiceImpl, AXMPromotionSlotComponent, AXMTermUpdateSettingAction, AXPRegionalStoreService, AppTermAndVersionCheck, RootConfig, appTermEntityEntityFactory, appVersionEntityEntityFactory, dataSourceEntityFactory, globalVariableEntityFactory, promotionEntityFactory };
|
4254
|
+
export { AXMAppPromotionService, AXMAppTermService, AXMAppTermServiceImpl, AXMAppVersionService, AXMAppVersionServiceImpl, AXMAppVersionSlotComponent, AXMChangeLogPopupAction, AXMChangeLogUpdateSettingAction, AXMChangeLogWorkflow, AXMCommonModuleEntityProvider, AXMDataSourceService, AXMDataSourceServiceImpl, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMListTermsComponent, AXMNewTermWorkflow, AXMNotifyAppComponent, AXMNotifyNewTermPopupAction, AXMPlatformManagementMetaDataDefinitionEntityModule, AXMPlatformManagementMetaDataDefinitionEntityService, AXMPlatformManagementMetaDataDefinitionEntityServiceImpl, AXMPlatformManagementModule, AXMPromotionServiceImpl, AXMPromotionSlotComponent, AXMTermUpdateSettingAction, AXPRegionalStoreService, AppTermAndVersionCheck, RootConfig, appTermEntityEntityFactory, appVersionEntityEntityFactory, dataSourceEntityFactory, globalVariableEntityFactory, metaDataDefinitionFactory, promotionEntityFactory };
|
3769
4255
|
//# sourceMappingURL=acorex-modules-platform-management.mjs.map
|