@acorex/modules 19.2.9 → 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-application-management.mjs +0 -10
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1829 -0
- package/fesm2022/acorex-modules-document-management.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-gE7jDpjq.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs} +18 -10
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-BkUdHH_Y.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-category.entity-BaX5yaK9.mjs → acorex-modules-form-template-management-category.entity-D00XZd7o.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-BaX5yaK9.mjs.map → acorex-modules-form-template-management-category.entity-D00XZd7o.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-setting.provider-h3v_4sR9.mjs → acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-setting.provider-h3v_4sR9.mjs.map → acorex-modules-form-template-management-setting.provider-Dy-Cd_iL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-GxCDqH9d.mjs → acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-GxCDqH9d.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-rGcHfFSh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-CzmbpLj_.mjs → acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs} +8 -3
- package/fesm2022/acorex-modules-form-template-management-template.entity-B0DUUdPJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-CJKcMi8Q.mjs → acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs} +4 -4
- package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-xUrGRQbQ.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- 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 +637 -82
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/form-template-management/lib/features/viewer/viewer-connector.service.d.ts +3 -2
- package/form-template-management/lib/features/viewer/viewer-popup.component.d.ts +2 -0
- 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
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-gE7jDpjq.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-CzmbpLj_.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-CJKcMi8Q.mjs.map +0 -1
@@ -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: {
|
@@ -403,7 +403,7 @@ const RootConfig = {
|
|
403
403
|
icon: 'fa-light fa-globe',
|
404
404
|
},
|
405
405
|
globalVariable: {
|
406
|
-
name: '
|
406
|
+
name: 'GlobalVariables',
|
407
407
|
title: `t("variables", {scope:"${config.i18n}"})`,
|
408
408
|
icon: 'fa-light fa-object-exclude',
|
409
409
|
},
|
@@ -426,11 +426,17 @@ const RootConfig = {
|
|
426
426
|
icon: 'fa-light fa-billboard',
|
427
427
|
},
|
428
428
|
dataSource: {
|
429
|
-
name: '
|
429
|
+
name: 'DataSource',
|
430
430
|
title: `t("dataSource", {scope:"${config.i18n}"})`,
|
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',
|
@@ -1996,6 +2083,7 @@ async function dataSourceEntityFactory(injector) {
|
|
1996
2083
|
commands: {
|
1997
2084
|
create: {
|
1998
2085
|
execute: async (data) => {
|
2086
|
+
debugger;
|
1999
2087
|
if (data.sourceType.name == 'entity') {
|
2000
2088
|
data.sourceEntity = data.sourceEntity?.name;
|
2001
2089
|
}
|
@@ -2383,7 +2471,7 @@ async function dataSourceEntityFactory(injector) {
|
|
2383
2471
|
scope: AXPEntityCommandScope.Individual,
|
2384
2472
|
},
|
2385
2473
|
{
|
2386
|
-
title: 't("modify", { scope: "common" })',
|
2474
|
+
title: 't("entity.modify", { scope: "common" })',
|
2387
2475
|
command: 'quick-modify-entity',
|
2388
2476
|
priority: 'secondary',
|
2389
2477
|
type: 'update',
|
@@ -2391,14 +2479,29 @@ async function dataSourceEntityFactory(injector) {
|
|
2391
2479
|
},
|
2392
2480
|
],
|
2393
2481
|
views: [
|
2394
|
-
{
|
2395
|
-
|
2396
|
-
|
2397
|
-
|
2398
|
-
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
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
|
+
}),
|
2402
2505
|
],
|
2403
2506
|
},
|
2404
2507
|
},
|
@@ -2808,11 +2911,11 @@ class AXMPromotionSlotComponent {
|
|
2808
2911
|
this.listData.set(mappedItems);
|
2809
2912
|
}
|
2810
2913
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
2811
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
2914
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXMPromotionSlotComponent, isStandalone: true, selector: "acorex-platform-promotion-slot", ngImport: i0, template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
2812
2915
|
}
|
2813
2916
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPromotionSlotComponent, decorators: [{
|
2814
2917
|
type: Component,
|
2815
|
-
args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }" }]
|
2918
|
+
args: [{ selector: 'acorex-platform-promotion-slot', imports: [CommonModule, AXSafePipe], template: "@for (item of listData(); track item.id) { @if (item.contentType?.name == 'media') {\n<img [src]=\"item.image?.url ?? ''\" class=\"ax-w-full ax-p-3 ax-border {{\n item.shape?.name == 'circle' ? 'ax-rounded-full' : 'ax-rounded-none'\n }}\" />\n} @if(item.contentType?.name == 'text'){\n<div class=\"ax-m-1 ax-px-6 ax-p-4 ax-border ax-bg-primary ax-rounded-lg\">\n <h1 class=\"ax-text-base/6\" [innerHTML]=\"item.body | safe : 'html'\"></h1>\n</div>\n\n} }\n" }]
|
2816
2919
|
}] });
|
2817
2920
|
|
2818
2921
|
async function promotionEntityFactory(injector) {
|
@@ -2826,6 +2929,10 @@ async function promotionEntityFactory(injector) {
|
|
2826
2929
|
formats: {
|
2827
2930
|
individual: RootConfig.entities.promotion.title,
|
2828
2931
|
plural: RootConfig.entities.promotion.titlePlural,
|
2932
|
+
searchResult: {
|
2933
|
+
title: '{{ title }}',
|
2934
|
+
description: RootConfig.module.title,
|
2935
|
+
}
|
2829
2936
|
},
|
2830
2937
|
relatedEntities: [],
|
2831
2938
|
groups: [
|
@@ -2845,6 +2952,19 @@ async function promotionEntityFactory(injector) {
|
|
2845
2952
|
type: AXPWidgetsCatalog.text,
|
2846
2953
|
},
|
2847
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
|
+
},
|
2848
2968
|
validations: [
|
2849
2969
|
{
|
2850
2970
|
rule: 'required',
|
@@ -2877,6 +2997,9 @@ async function promotionEntityFactory(injector) {
|
|
2877
2997
|
type: AXPWidgetsCatalog.file,
|
2878
2998
|
options: {
|
2879
2999
|
multiple: false,
|
3000
|
+
accept: '.png,.jpg,.jpeg,.svg,.gif',
|
3001
|
+
refType: 'entity',
|
3002
|
+
refId: `${RootConfig.module.name}.${RootConfig.entities.promotion.name}`,
|
2880
3003
|
},
|
2881
3004
|
},
|
2882
3005
|
},
|
@@ -2901,15 +3024,52 @@ async function promotionEntityFactory(injector) {
|
|
2901
3024
|
},
|
2902
3025
|
},
|
2903
3026
|
},
|
3027
|
+
options: {
|
3028
|
+
sort: {
|
3029
|
+
enabled: true,
|
3030
|
+
},
|
3031
|
+
filter: {
|
3032
|
+
advance: {
|
3033
|
+
enabled: true,
|
3034
|
+
},
|
3035
|
+
}
|
3036
|
+
},
|
2904
3037
|
validations: [
|
2905
3038
|
{
|
2906
3039
|
rule: 'required',
|
2907
3040
|
},
|
2908
3041
|
],
|
2909
3042
|
},
|
3043
|
+
// {
|
3044
|
+
// name: 'shape',
|
3045
|
+
// title: `t("shape", { scope: "${i18n}" })`,
|
3046
|
+
// groupId: 'promotion',
|
3047
|
+
// schema: {
|
3048
|
+
// dataType: 'string',
|
3049
|
+
// interface: {
|
3050
|
+
// type: AXPWidgetsCatalog.select,
|
3051
|
+
// options: {
|
3052
|
+
// valueField: 'name',
|
3053
|
+
// textField: 'title',
|
3054
|
+
// dataSource: [
|
3055
|
+
// { title: 'Circle', name: 'circle' },
|
3056
|
+
// { title: 'Square', name: 'square' },
|
3057
|
+
// ],
|
3058
|
+
// direction: 'horizontal',
|
3059
|
+
// multiple: false,
|
3060
|
+
// accept: '',
|
3061
|
+
// },
|
3062
|
+
// },
|
3063
|
+
// },
|
3064
|
+
// validations: [
|
3065
|
+
// {
|
3066
|
+
// rule: 'required',
|
3067
|
+
// },
|
3068
|
+
// ],
|
3069
|
+
// },
|
2910
3070
|
{
|
2911
|
-
name: '
|
2912
|
-
title: `t("
|
3071
|
+
name: 'placement',
|
3072
|
+
title: `t("placement", { scope: "${i18n}" })`,
|
2913
3073
|
groupId: 'promotion',
|
2914
3074
|
schema: {
|
2915
3075
|
dataType: 'string',
|
@@ -2919,8 +3079,26 @@ async function promotionEntityFactory(injector) {
|
|
2919
3079
|
valueField: 'name',
|
2920
3080
|
textField: 'title',
|
2921
3081
|
dataSource: [
|
2922
|
-
{
|
2923
|
-
|
3082
|
+
{
|
3083
|
+
title: 'Side Menu Footer',
|
3084
|
+
name: 'side-menu-footer',
|
3085
|
+
options: AXM_COLUMN_DEF_WIDGET
|
3086
|
+
},
|
3087
|
+
{
|
3088
|
+
title: 'Side Menu Header',
|
3089
|
+
name: 'side-menu-header',
|
3090
|
+
options: [
|
3091
|
+
{
|
3092
|
+
type: 'text-editor',
|
3093
|
+
mode: 'edit',
|
3094
|
+
path: 'name',
|
3095
|
+
options: {
|
3096
|
+
placeholder: 'Name',
|
3097
|
+
defaultValue: 'test',
|
3098
|
+
},
|
3099
|
+
},
|
3100
|
+
]
|
3101
|
+
},
|
2924
3102
|
],
|
2925
3103
|
direction: 'horizontal',
|
2926
3104
|
multiple: false,
|
@@ -2933,34 +3111,32 @@ async function promotionEntityFactory(injector) {
|
|
2933
3111
|
},
|
2934
3112
|
],
|
2935
3113
|
},
|
3114
|
+
// {
|
3115
|
+
// name: "metadaata",
|
3116
|
+
// title: "Meta Data",
|
3117
|
+
// groupId: 'promotion',
|
3118
|
+
// schema: {
|
3119
|
+
// dataType: 'object',
|
3120
|
+
// interface: {
|
3121
|
+
// type: AXPWidgetsCatalog.text,
|
3122
|
+
// // children: "{{ context.eval('placement').options }}" as any,
|
3123
|
+
// },
|
3124
|
+
// }
|
3125
|
+
//},
|
2936
3126
|
{
|
2937
|
-
name: '
|
2938
|
-
title: `
|
3127
|
+
name: 'metadata',
|
3128
|
+
title: `Meta Data`,
|
2939
3129
|
groupId: 'promotion',
|
2940
3130
|
schema: {
|
2941
|
-
dataType: '
|
3131
|
+
dataType: 'object',
|
2942
3132
|
interface: {
|
2943
|
-
type: AXPWidgetsCatalog.
|
2944
|
-
|
2945
|
-
valueField: 'name',
|
2946
|
-
textField: 'title',
|
2947
|
-
dataSource: [
|
2948
|
-
{ title: 'Side Menu Footer', name: 'side-menu-footer' },
|
2949
|
-
{ title: 'Side Menu Header', name: 'side-menu-header' },
|
2950
|
-
],
|
2951
|
-
direction: 'horizontal',
|
2952
|
-
multiple: false,
|
2953
|
-
},
|
3133
|
+
type: AXPWidgetsCatalog.blockLayout,
|
3134
|
+
children: "{{ context.eval('placement')?.options ?? [] }}",
|
2954
3135
|
},
|
2955
|
-
}
|
2956
|
-
validations: [
|
2957
|
-
{
|
2958
|
-
rule: 'required',
|
2959
|
-
},
|
2960
|
-
],
|
3136
|
+
}
|
2961
3137
|
},
|
2962
3138
|
],
|
2963
|
-
columns: [{ name: 'title' }, { name: '
|
3139
|
+
columns: [{ name: 'title' }, { name: 'placement' }],
|
2964
3140
|
commands: {
|
2965
3141
|
create: {
|
2966
3142
|
execute: async (data) => {
|
@@ -3069,6 +3245,17 @@ async function promotionEntityFactory(injector) {
|
|
3069
3245
|
},
|
3070
3246
|
},
|
3071
3247
|
},
|
3248
|
+
{
|
3249
|
+
name: 'metadata',
|
3250
|
+
layout: {
|
3251
|
+
positions: {
|
3252
|
+
lg: {
|
3253
|
+
colSpan: 12,
|
3254
|
+
order: 10,
|
3255
|
+
},
|
3256
|
+
},
|
3257
|
+
},
|
3258
|
+
},
|
3072
3259
|
],
|
3073
3260
|
},
|
3074
3261
|
update: {
|
@@ -3144,6 +3331,17 @@ async function promotionEntityFactory(injector) {
|
|
3144
3331
|
},
|
3145
3332
|
},
|
3146
3333
|
},
|
3334
|
+
{
|
3335
|
+
name: 'metadata',
|
3336
|
+
layout: {
|
3337
|
+
positions: {
|
3338
|
+
lg: {
|
3339
|
+
colSpan: 12,
|
3340
|
+
order: 10,
|
3341
|
+
},
|
3342
|
+
},
|
3343
|
+
},
|
3344
|
+
},
|
3147
3345
|
],
|
3148
3346
|
},
|
3149
3347
|
single: {
|
@@ -3251,24 +3449,361 @@ async function promotionEntityFactory(injector) {
|
|
3251
3449
|
type: 'delete',
|
3252
3450
|
scope: AXPEntityCommandScope.Individual,
|
3253
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
|
+
},
|
3254
3459
|
],
|
3255
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: [
|
3256
3619
|
{
|
3257
|
-
|
3258
|
-
|
3259
|
-
|
3260
|
-
|
3261
|
-
|
3262
|
-
|
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
|
+
},
|
3263
3653
|
},
|
3264
3654
|
],
|
3265
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,
|
3772
|
+
},
|
3773
|
+
],
|
3774
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
3775
|
+
},
|
3266
3776
|
},
|
3267
3777
|
},
|
3268
3778
|
};
|
3269
3779
|
return entityDef;
|
3270
3780
|
}
|
3271
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
|
+
|
3272
3807
|
var index = /*#__PURE__*/Object.freeze({
|
3273
3808
|
__proto__: null,
|
3274
3809
|
AXMAppPromotionService: AXMAppPromotionService,
|
@@ -3288,6 +3823,9 @@ var index = /*#__PURE__*/Object.freeze({
|
|
3288
3823
|
AXMNewTermWorkflow: AXMNewTermWorkflow,
|
3289
3824
|
AXMNotifyAppComponent: AXMNotifyAppComponent,
|
3290
3825
|
AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
|
3826
|
+
AXMPlatformManagementMetaDataDefinitionEntityModule: AXMPlatformManagementMetaDataDefinitionEntityModule,
|
3827
|
+
AXMPlatformManagementMetaDataDefinitionEntityService: AXMPlatformManagementMetaDataDefinitionEntityService,
|
3828
|
+
AXMPlatformManagementMetaDataDefinitionEntityServiceImpl: AXMPlatformManagementMetaDataDefinitionEntityServiceImpl,
|
3291
3829
|
AXMPromotionServiceImpl: AXMPromotionServiceImpl,
|
3292
3830
|
AXMPromotionSlotComponent: AXMPromotionSlotComponent,
|
3293
3831
|
AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
|
@@ -3296,6 +3834,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
3296
3834
|
appVersionEntityEntityFactory: appVersionEntityEntityFactory,
|
3297
3835
|
dataSourceEntityFactory: dataSourceEntityFactory,
|
3298
3836
|
globalVariableEntityFactory: globalVariableEntityFactory,
|
3837
|
+
metaDataDefinitionFactory: metaDataDefinitionFactory,
|
3299
3838
|
promotionEntityFactory: promotionEntityFactory
|
3300
3839
|
});
|
3301
3840
|
|
@@ -3339,6 +3878,11 @@ class AXMEntityLoader {
|
|
3339
3878
|
resolve(entity(this.injector));
|
3340
3879
|
break;
|
3341
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
|
+
}
|
3342
3886
|
default:
|
3343
3887
|
resolve(null);
|
3344
3888
|
}
|
@@ -3437,6 +3981,15 @@ class AXMMenuProvider {
|
|
3437
3981
|
// requiredPermission: '',
|
3438
3982
|
},
|
3439
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
|
+
},
|
3440
3993
|
],
|
3441
3994
|
},
|
3442
3995
|
]);
|
@@ -3527,7 +4080,8 @@ class AXMPlatformManagementModule {
|
|
3527
4080
|
*/
|
3528
4081
|
constructor(appVersionCheck) { }
|
3529
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 }); }
|
3530
|
-
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] }); }
|
3531
4085
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
3532
4086
|
{
|
3533
4087
|
provide: ROUTES,
|
@@ -3570,7 +4124,8 @@ class AXMPlatformManagementModule {
|
|
3570
4124
|
multi: true,
|
3571
4125
|
},
|
3572
4126
|
AppTermAndVersionCheck,
|
3573
|
-
], imports: [
|
4127
|
+
], imports: [AXMPlatformManagementMetaDataDefinitionEntityModule,
|
4128
|
+
AXMPlatformManagementCommonModule,
|
3574
4129
|
AXPWorkflowModule.forChild({
|
3575
4130
|
actions: {
|
3576
4131
|
AXMChangeLogPopupAction,
|
@@ -3608,7 +4163,7 @@ class AXMPlatformManagementModule {
|
|
3608
4163
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
|
3609
4164
|
type: NgModule,
|
3610
4165
|
args: [{
|
3611
|
-
imports: [
|
4166
|
+
imports: [AXMPlatformManagementMetaDataDefinitionEntityModule,
|
3612
4167
|
AXMPlatformManagementCommonModule,
|
3613
4168
|
AXPWorkflowModule.forChild({
|
3614
4169
|
actions: {
|
@@ -3696,5 +4251,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
3696
4251
|
* Generated bundle index. Do not edit.
|
3697
4252
|
*/
|
3698
4253
|
|
3699
|
-
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 };
|
3700
4255
|
//# sourceMappingURL=acorex-modules-platform-management.mjs.map
|