@acorex-platform/module-app-builder-client 0.0.32 → 0.0.37
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/fesm2022/acorex-platform-module-app-builder-client-contracts-entities-landing-page-category.mjs +164 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entities-landing-page-category.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entities-landing-page.mjs +282 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entities-landing-page.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog-acorex-platform-module-app-builder-client-contracts-entity-catalog-DKIAeJ1O.mjs +53 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog-acorex-platform-module-app-builder-client-contracts-entity-catalog-DKIAeJ1O.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page-category.entity-DJVzsfFH.mjs +131 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page-category.entity-DJVzsfFH.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page.entity-u82GNzgg.mjs +249 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page.entity-u82GNzgg.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-app-builder-client-local-entities.mjs +30 -0
- package/fesm2022/acorex-platform-module-app-builder-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-app-builder-client.mjs.map +1 -1
- package/package.json +17 -1
- package/types/acorex-platform-module-app-builder-client-contracts-entities-landing-page-category.d.ts +5 -0
- package/types/acorex-platform-module-app-builder-client-contracts-entities-landing-page.d.ts +5 -0
- package/types/acorex-platform-module-app-builder-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-app-builder-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-app-builder-client-contracts-entity-catalog-acorex-platform-module-app-builder-client-contracts-entity-catalog-DKIAeJ1O.mjs';
|
|
4
|
+
|
|
5
|
+
async function landingPageCategoryEntityFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n;
|
|
7
|
+
const entityDef = {
|
|
8
|
+
plugins: [
|
|
9
|
+
{ name: 'history' },
|
|
10
|
+
{ name: 'archive' },
|
|
11
|
+
{ name: 'unique-fields', options: { fields: 'slug', scope: 'global' } },
|
|
12
|
+
],
|
|
13
|
+
module: RootConfig.module.name,
|
|
14
|
+
name: RootConfig.entities.landingPageCategory.name,
|
|
15
|
+
title: RootConfig.entities.landingPageCategory.title,
|
|
16
|
+
icon: RootConfig.entities.landingPageCategory.icon,
|
|
17
|
+
formats: {
|
|
18
|
+
individual: RootConfig.entities.landingPageCategory.title,
|
|
19
|
+
plural: RootConfig.entities.landingPageCategory.titlePlural,
|
|
20
|
+
searchResult: {
|
|
21
|
+
title: '{{ title }}',
|
|
22
|
+
description: RootConfig.module.title,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
relatedEntities: [],
|
|
26
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
27
|
+
properties: [
|
|
28
|
+
{
|
|
29
|
+
name: 'id',
|
|
30
|
+
title: 'ID',
|
|
31
|
+
schema: {
|
|
32
|
+
dataType: 'uuid',
|
|
33
|
+
visible: false,
|
|
34
|
+
nullable: false,
|
|
35
|
+
readonly: true,
|
|
36
|
+
unique: { enabled: true },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'title',
|
|
41
|
+
title: '@general:terms.common.title',
|
|
42
|
+
groupId: 'basic-info',
|
|
43
|
+
options: {
|
|
44
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
45
|
+
sort: { enabled: true },
|
|
46
|
+
},
|
|
47
|
+
schema: {
|
|
48
|
+
dataType: 'string',
|
|
49
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
50
|
+
},
|
|
51
|
+
validations: [
|
|
52
|
+
{ rule: 'required' },
|
|
53
|
+
{ rule: 'minLength', options: { value: 2 } },
|
|
54
|
+
{ rule: 'maxLength', options: { value: 100 } },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'slug',
|
|
59
|
+
title: `@${i18n}:categories.entities.landing-page-category.fields.slug.title`,
|
|
60
|
+
groupId: 'basic-info',
|
|
61
|
+
options: {
|
|
62
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
63
|
+
sort: { enabled: true },
|
|
64
|
+
},
|
|
65
|
+
schema: {
|
|
66
|
+
dataType: 'string',
|
|
67
|
+
interface: {
|
|
68
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
69
|
+
options: {
|
|
70
|
+
placeholder: `@${i18n}:categories.entities.landing-page-category.fields.slug.placeholder`,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
validations: [
|
|
75
|
+
{ rule: 'required' },
|
|
76
|
+
{ rule: 'minLength', options: { value: 2 } },
|
|
77
|
+
{ rule: 'maxLength', options: { value: 80 } },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'description',
|
|
82
|
+
title: '@general:terms.common.description',
|
|
83
|
+
groupId: 'basic-info',
|
|
84
|
+
schema: {
|
|
85
|
+
dataType: 'string',
|
|
86
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox },
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
columns: [{ name: 'title' }, { name: 'slug' }],
|
|
91
|
+
interfaces: {
|
|
92
|
+
master: {
|
|
93
|
+
create: {
|
|
94
|
+
sections: [{ id: 'basic-info' }],
|
|
95
|
+
properties: [
|
|
96
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
97
|
+
{ name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
98
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
update: {
|
|
102
|
+
sections: [{ id: 'basic-info' }],
|
|
103
|
+
properties: [
|
|
104
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
105
|
+
{ name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
106
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
single: {
|
|
110
|
+
title: '{{ title }}',
|
|
111
|
+
sections: [{ id: 'basic-info' }],
|
|
112
|
+
properties: [
|
|
113
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
114
|
+
{ name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
115
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
116
|
+
],
|
|
117
|
+
actions: [...entityMasterRecordActions()],
|
|
118
|
+
},
|
|
119
|
+
list: {
|
|
120
|
+
title: RootConfig.entities.landingPageCategory.titlePlural,
|
|
121
|
+
actions: [...entityMasterCrudActions()],
|
|
122
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
return entityDef;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export { landingPageCategoryEntityFactory };
|
|
131
|
+
//# sourceMappingURL=acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page-category.entity-DJVzsfFH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page-category.entity-DJVzsfFH.mjs","sources":["../../../../libs/modules/app-builder/contracts/src/entities/landing-page-category/landing-page-category.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function landingPageCategoryEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n plugins: [\n { name: 'history' },\n { name: 'archive' },\n { name: 'unique-fields', options: { fields: 'slug', scope: 'global' } },\n ],\n module: RootConfig.module.name,\n name: RootConfig.entities.landingPageCategory.name,\n title: RootConfig.entities.landingPageCategory.title,\n icon: RootConfig.entities.landingPageCategory.icon,\n formats: {\n individual: RootConfig.entities.landingPageCategory.title,\n plural: RootConfig.entities.landingPageCategory.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [\n { rule: 'required' },\n { rule: 'minLength', options: { value: 2 } },\n { rule: 'maxLength', options: { value: 100 } },\n ],\n },\n {\n name: 'slug',\n title: `@${i18n}:categories.entities.landing-page-category.fields.slug.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: `@${i18n}:categories.entities.landing-page-category.fields.slug.placeholder`,\n },\n },\n },\n validations: [\n { rule: 'required' },\n { rule: 'minLength', options: { value: 2 } },\n { rule: 'maxLength', options: { value: 80 } },\n ],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox },\n },\n },\n ],\n columns: [{ name: 'title' }, { name: 'slug' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n title: RootConfig.entities.landingPageCategory.titlePlural,\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: '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E,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC1E,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACzE,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAClF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,WAAW;AAC1D,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-app-builder-client-contracts-entity-catalog-acorex-platform-module-app-builder-client-contracts-entity-catalog-DKIAeJ1O.mjs';
|
|
4
|
+
|
|
5
|
+
/** Registry key for the landing page designer custom entity page. */
|
|
6
|
+
const LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY = 'landing-page-designer-page';
|
|
7
|
+
|
|
8
|
+
const AXMLandingPageStatuses = {
|
|
9
|
+
Draft: { id: 'draft', title: 'Draft' },
|
|
10
|
+
Published: { id: 'published', title: 'Published' },
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
async function landingPageEntityFactory() {
|
|
14
|
+
const i18n = RootConfig.config.i18n;
|
|
15
|
+
const entityDef = {
|
|
16
|
+
plugins: [
|
|
17
|
+
{ name: 'history' },
|
|
18
|
+
{ name: 'lock' },
|
|
19
|
+
{ name: 'compare' },
|
|
20
|
+
{ name: 'clone' },
|
|
21
|
+
{ name: 'archive' },
|
|
22
|
+
{ name: 'unique-fields', options: { fields: 'slug', scope: 'global' } },
|
|
23
|
+
],
|
|
24
|
+
module: RootConfig.module.name,
|
|
25
|
+
name: RootConfig.entities.landingPage.name,
|
|
26
|
+
title: RootConfig.entities.landingPage.title,
|
|
27
|
+
icon: RootConfig.entities.landingPage.icon,
|
|
28
|
+
formats: {
|
|
29
|
+
individual: RootConfig.entities.landingPage.title,
|
|
30
|
+
plural: RootConfig.entities.landingPage.titlePlural,
|
|
31
|
+
searchResult: {
|
|
32
|
+
title: '{{ title }}',
|
|
33
|
+
description: RootConfig.module.title,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
relatedEntities: [],
|
|
37
|
+
pages: [
|
|
38
|
+
{
|
|
39
|
+
componentKey: LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY,
|
|
40
|
+
field: 'content',
|
|
41
|
+
title: `@${i18n}:pages.entities.landing-page.pages.designer.title`,
|
|
42
|
+
icon: 'fa-light fa-paintbrush-pencil',
|
|
43
|
+
layout: { order: 1, position: 'after' },
|
|
44
|
+
appearOn: { create: false, update: true },
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
groups: [
|
|
48
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
49
|
+
{
|
|
50
|
+
id: 'publishing',
|
|
51
|
+
title: `@${i18n}:pages.entities.landing-page.groups.publishing`,
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
properties: [
|
|
55
|
+
{
|
|
56
|
+
name: 'id',
|
|
57
|
+
title: 'ID',
|
|
58
|
+
schema: {
|
|
59
|
+
dataType: 'uuid',
|
|
60
|
+
visible: false,
|
|
61
|
+
nullable: false,
|
|
62
|
+
readonly: true,
|
|
63
|
+
unique: { enabled: true },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'title',
|
|
68
|
+
title: '@general:terms.common.title',
|
|
69
|
+
groupId: 'basic-info',
|
|
70
|
+
options: {
|
|
71
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
72
|
+
sort: { enabled: true },
|
|
73
|
+
},
|
|
74
|
+
schema: {
|
|
75
|
+
dataType: 'string',
|
|
76
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
77
|
+
},
|
|
78
|
+
validations: [
|
|
79
|
+
{ rule: 'required' },
|
|
80
|
+
{ rule: 'minLength', options: { value: 2 } },
|
|
81
|
+
{ rule: 'maxLength', options: { value: 120 } },
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'slug',
|
|
86
|
+
title: `@${i18n}:pages.entities.landing-page.fields.slug.title`,
|
|
87
|
+
groupId: 'basic-info',
|
|
88
|
+
options: {
|
|
89
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
90
|
+
sort: { enabled: true },
|
|
91
|
+
},
|
|
92
|
+
schema: {
|
|
93
|
+
dataType: 'string',
|
|
94
|
+
interface: {
|
|
95
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
96
|
+
options: {
|
|
97
|
+
placeholder: `@${i18n}:pages.entities.landing-page.fields.slug.placeholder`,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
validations: [
|
|
102
|
+
{ rule: 'required' },
|
|
103
|
+
{ rule: 'minLength', options: { value: 2 } },
|
|
104
|
+
{ rule: 'maxLength', options: { value: 80 } },
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'description',
|
|
109
|
+
title: '@general:terms.common.description',
|
|
110
|
+
groupId: 'basic-info',
|
|
111
|
+
schema: {
|
|
112
|
+
dataType: 'string',
|
|
113
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'categoryId',
|
|
118
|
+
title: `@${i18n}:pages.entities.landing-page.fields.category.title`,
|
|
119
|
+
groupId: 'basic-info',
|
|
120
|
+
options: {
|
|
121
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
122
|
+
sort: { enabled: true },
|
|
123
|
+
},
|
|
124
|
+
schema: {
|
|
125
|
+
dataType: 'string',
|
|
126
|
+
interface: {
|
|
127
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
128
|
+
options: {
|
|
129
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.landingPageCategory.name}`,
|
|
130
|
+
textField: 'title',
|
|
131
|
+
valueField: 'id',
|
|
132
|
+
look: 'select',
|
|
133
|
+
expose: [
|
|
134
|
+
{ source: 'id', target: 'category.id' },
|
|
135
|
+
{ source: 'title', target: 'category.title' },
|
|
136
|
+
{ source: 'slug', target: 'category.slug' },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'status',
|
|
144
|
+
title: '@general:terms.common.status',
|
|
145
|
+
groupId: 'publishing',
|
|
146
|
+
options: {
|
|
147
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
148
|
+
sort: { enabled: true },
|
|
149
|
+
},
|
|
150
|
+
schema: {
|
|
151
|
+
dataType: 'string',
|
|
152
|
+
defaultValue: AXMLandingPageStatuses.Draft.id,
|
|
153
|
+
interface: {
|
|
154
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
155
|
+
options: {
|
|
156
|
+
valueField: 'id',
|
|
157
|
+
textField: 'title',
|
|
158
|
+
dataSource: [AXMLandingPageStatuses.Draft, AXMLandingPageStatuses.Published],
|
|
159
|
+
multiple: false,
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
validations: [{ rule: 'required' }],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'isHome',
|
|
167
|
+
title: `@${i18n}:pages.entities.landing-page.fields.is-home.title`,
|
|
168
|
+
groupId: 'publishing',
|
|
169
|
+
schema: {
|
|
170
|
+
dataType: 'boolean',
|
|
171
|
+
defaultValue: false,
|
|
172
|
+
interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'content',
|
|
177
|
+
title: `@${i18n}:pages.entities.landing-page.fields.content.title`,
|
|
178
|
+
groupId: 'basic-info',
|
|
179
|
+
schema: {
|
|
180
|
+
dataType: 'string',
|
|
181
|
+
visible: false,
|
|
182
|
+
interface: { type: AXPWidgetsList.Editors.LargeTextBox },
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
columns: [
|
|
187
|
+
{ name: 'title' },
|
|
188
|
+
{ name: 'slug' },
|
|
189
|
+
{ name: 'status' },
|
|
190
|
+
{ name: 'categoryId', options: { dataPath: 'category.title' } },
|
|
191
|
+
{ name: 'isHome' },
|
|
192
|
+
],
|
|
193
|
+
interfaces: {
|
|
194
|
+
master: {
|
|
195
|
+
create: {
|
|
196
|
+
sections: [{ id: 'basic-info' }, { id: 'publishing' }],
|
|
197
|
+
properties: [
|
|
198
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
199
|
+
{ name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
200
|
+
{ name: 'categoryId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
201
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
202
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
203
|
+
{ name: 'isHome', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
update: {
|
|
207
|
+
sections: [{ id: 'basic-info' }, { id: 'publishing' }],
|
|
208
|
+
properties: [
|
|
209
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
210
|
+
{ name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
211
|
+
{ name: 'categoryId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
212
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
213
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
214
|
+
{ name: 'isHome', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
single: {
|
|
218
|
+
title: '{{ title }}',
|
|
219
|
+
sections: [{ id: 'basic-info' }, { id: 'publishing' }],
|
|
220
|
+
properties: [
|
|
221
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
222
|
+
{ name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
223
|
+
{ name: 'categoryId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
224
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
|
|
225
|
+
{ name: 'status', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
226
|
+
{ name: 'isHome', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
227
|
+
],
|
|
228
|
+
actions: [...entityMasterRecordActions()],
|
|
229
|
+
},
|
|
230
|
+
list: {
|
|
231
|
+
title: RootConfig.entities.landingPage.titlePlural,
|
|
232
|
+
actions: [...entityMasterCrudActions()],
|
|
233
|
+
views: [
|
|
234
|
+
createAllQueryView({
|
|
235
|
+
sorts: [
|
|
236
|
+
{ name: 'title', dir: 'asc' },
|
|
237
|
+
{ name: 'slug', dir: 'asc' },
|
|
238
|
+
],
|
|
239
|
+
}),
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
return entityDef;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export { landingPageEntityFactory };
|
|
249
|
+
//# sourceMappingURL=acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page.entity-u82GNzgg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-app-builder-client-contracts-entity-catalog-landing-page.entity-u82GNzgg.mjs","sources":["../../../../libs/modules/app-builder/contracts/src/LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/app-builder/contracts/src/entities/landing-page/landing-page.types.ts","../../../../libs/modules/app-builder/contracts/src/entities/landing-page/landing-page.entity.ts"],"sourcesContent":["/** Registry key for the landing page designer custom entity page. */\nexport const LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY = 'landing-page-designer-page';\n","import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\nexport const AXMLandingPageStatuses = {\n Draft: { id: 'draft', title: 'Draft' },\n Published: { id: 'published', title: 'Published' },\n} as const;\n\nexport type AXMLandingPageStatusId =\n (typeof AXMLandingPageStatuses)[keyof typeof AXMLandingPageStatuses]['id'];\n\nexport interface AXMLandingPageEntityModel extends AXPEntityModel<string> {\n title?: string;\n slug?: string;\n status?: AXMLandingPageStatusId;\n content?: string | null;\n isHome?: boolean;\n categoryId?: string | null;\n category?: { id: string; title?: string; slug?: string } | null;\n description?: string | null;\n}\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY } from '../../LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY';\nimport { RootConfig } from '../../root-config';\nimport { AXMLandingPageStatuses } from './landing-page.types';\n\n\nexport async function landingPageEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'clone' },\n { name: 'archive' },\n { name: 'unique-fields', options: { fields: 'slug', scope: 'global' } },\n ],\n module: RootConfig.module.name,\n name: RootConfig.entities.landingPage.name,\n title: RootConfig.entities.landingPage.title,\n icon: RootConfig.entities.landingPage.icon,\n formats: {\n individual: RootConfig.entities.landingPage.title,\n plural: RootConfig.entities.landingPage.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n pages: [\n {\n componentKey: LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY,\n field: 'content',\n title: `@${i18n}:pages.entities.landing-page.pages.designer.title`,\n icon: 'fa-light fa-paintbrush-pencil',\n layout: { order: 1, position: 'after' },\n appearOn: { create: false, update: true },\n },\n ],\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n {\n id: 'publishing',\n title: `@${i18n}:pages.entities.landing-page.groups.publishing`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [\n { rule: 'required' },\n { rule: 'minLength', options: { value: 2 } },\n { rule: 'maxLength', options: { value: 120 } },\n ],\n },\n {\n name: 'slug',\n title: `@${i18n}:pages.entities.landing-page.fields.slug.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: `@${i18n}:pages.entities.landing-page.fields.slug.placeholder`,\n },\n },\n },\n validations: [\n { rule: 'required' },\n { rule: 'minLength', options: { value: 2 } },\n { rule: 'maxLength', options: { value: 80 } },\n ],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.LargeTextBox },\n },\n },\n {\n name: 'categoryId',\n title: `@${i18n}:pages.entities.landing-page.fields.category.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.landingPageCategory.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'category.id' },\n { source: 'title', target: 'category.title' },\n { source: 'slug', target: 'category.slug' },\n ],\n },\n },\n },\n },\n {\n name: 'status',\n title: '@general:terms.common.status',\n groupId: 'publishing',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n sort: { enabled: true },\n },\n schema: {\n dataType: 'string',\n defaultValue: AXMLandingPageStatuses.Draft.id,\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'id',\n textField: 'title',\n dataSource: [AXMLandingPageStatuses.Draft, AXMLandingPageStatuses.Published],\n multiple: false,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'isHome',\n title: `@${i18n}:pages.entities.landing-page.fields.is-home.title`,\n groupId: 'publishing',\n schema: {\n dataType: 'boolean',\n defaultValue: false,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n },\n {\n name: 'content',\n title: `@${i18n}:pages.entities.landing-page.fields.content.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n visible: false,\n interface: { type: AXPWidgetsList.Editors.LargeTextBox },\n },\n },\n ],\n columns: [\n { name: 'title' },\n { name: 'slug' },\n { name: 'status' },\n { name: 'categoryId', options: { dataPath: 'category.title' } },\n { name: 'isHome' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'publishing' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'categoryId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'isHome', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'publishing' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'categoryId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'isHome', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }, { id: 'publishing' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'slug', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'categoryId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'isHome', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n title: RootConfig.entities.landingPage.titlePlural,\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [\n { name: 'title', dir: 'asc' },\n { name: 'slug', dir: 'asc' },\n ],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAAA;AACO,MAAM,wCAAwC,GAAG,4BAA4B;;ACC7E,MAAM,sBAAsB,GAAG;IACpC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACtC,SAAS,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;CAC1C;;ACOH,eAAe,wBAAwB,GAAA;AAC5C,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,SAAS,EAAE;AACnB,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;AACxE,SAAA;AACD,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI;AAC1C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK;AAC5C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI;AAC1C,QAAA,O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A,OAAO,SAAS;AAClB;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { a as appBuilderLocalEntityCatalog } from './acorex-platform-module-app-builder-client-contracts-entity-catalog-acorex-platform-module-app-builder-client-contracts-entity-catalog-DKIAeJ1O.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-app-builder-client-contracts-entity-catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-app-builder-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-app-builder-client-contracts.mjs","sources":["../../../../libs/modules/app-builder/contracts/src/LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/app-builder/contracts/src/menu.keys.ts","../../../../libs/modules/app-builder/contracts/src/permission.keys.ts","../../../../libs/modules/app-builder/contracts/src/root-config.ts","../../../../libs/modules/app-builder/contracts/src/entities/landing-page/landing-page.types.ts","../../../../libs/modules/app-builder/contracts/src/acorex-platform-module-app-builder-client-contracts.ts"],"sourcesContent":["/** Registry key for the landing page designer custom entity page. */\nexport const LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY = 'landing-page-designer-page';\n","export const AXMAppBuilderMenuKeys = {\n Root: 'app-builder:menu',\n LandingPages: 'app-builder:menu:landing-pages',\n LandingPageCategories: 'app-builder:menu:landing-page-categories',\n} as const;\n","/**\n * Applications & Platform capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPApplicationsPlatformPermissionKeys = {\n Access: 'ApplicationsPlatform:Permission:Access',\n MaintainApplications: 'ApplicationsPlatform:Permission:MaintainApplications',\n MaintainTenants: 'ApplicationsPlatform:Permission:MaintainTenants',\n MaintainPlatformShell: 'ApplicationsPlatform:Permission:MaintainPlatformShell',\n MaintainLandingPages: 'ApplicationsPlatform:Permission:MaintainLandingPages',\n MaintainIdentifiers: 'ApplicationsPlatform:Permission:MaintainIdentifiers',\n MaintainTenantSettings: 'ApplicationsPlatform:Permission:MaintainTenantSettings',\n MaintainPlatformSettings: 'ApplicationsPlatform:Permission:MaintainPlatformSettings',\n MaintainLocales: 'ApplicationsPlatform:Permission:MaintainLocales',\n UseDevTools: 'ApplicationsPlatform:Permission:UseDevTools',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPApplicationsPlatformPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n AppBuilder: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n LandingPage: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n },\n LandingPageCategory: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n },\n },\n} as const;\n","const config = {\n i18n: 'app-builder',\n module: 'AppBuilder',\n} as const;\n\nexport const RootConfig = {\n config,\n module: {\n module: 'app-builder',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-browser',\n },\n entities: {\n landingPage: {\n name: 'LandingPage',\n source: `${config.module}.LandingPage`,\n title: `@${config.i18n}:pages.entities.landing-page.title`,\n titlePlural: `@${config.i18n}:pages.entities.landing-page.plural`,\n icon: 'fa-light fa-file-lines',\n },\n landingPageCategory: {\n name: 'LandingPageCategory',\n source: `${config.module}.LandingPageCategory`,\n title: `@${config.i18n}:categories.entities.landing-page-category.title`,\n titlePlural: `@${config.i18n}:categories.entities.landing-page-category.plural`,\n icon: 'fa-light fa-folder-tree',\n },\n },\n} as const;\n","import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\nexport const AXMLandingPageStatuses = {\n Draft: { id: 'draft', title: 'Draft' },\n Published: { id: 'published', title: 'Published' },\n} as const;\n\nexport type AXMLandingPageStatusId =\n (typeof AXMLandingPageStatuses)[keyof typeof AXMLandingPageStatuses]['id'];\n\nexport interface AXMLandingPageEntityModel extends AXPEntityModel<string> {\n title?: string;\n slug?: string;\n status?: AXMLandingPageStatusId;\n content?: string | null;\n isHome?: boolean;\n categoryId?: string | null;\n category?: { id: string; title?: string; slug?: string } | null;\n description?: string | null;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,wCAAwC,GAAG;;ACDjD,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,YAAY,EAAE,gCAAgC;AAC9C,IAAA,qBAAqB,EAAE,0CAA0C;;;ACHnE;;;AAGG;AACI,MAAM,qCAAqC,GAAG;AACnD,IAAA,MAAM,EAAE,wCAAwC;AAChD,IAAA,oBAAoB,EAAE,sDAAsD;AAC5E,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,qBAAqB,EAAE,uDAAuD;AAC9E,IAAA,oBAAoB,EAAE,sDAAsD;AAC5E,IAAA,mBAAmB,EAAE,qDAAqD;AAC1E,IAAA,sBAAsB,EAAE,wDAAwD;AAChF,IAAA,wBAAwB,EAAE,0DAA0D;AACpF,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,WAAW,EAAE,6CAA6C;;AAG5D;;;AAGG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,UAAU,EAAE;QACV,UAAU,EAAE,qCAAqC,CAAC,oBAAoB;AACtE,QAAA,WAAW,EAAE;YACX,UA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M,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,oBAAA,CAAsB;AAC9C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gDAAA,CAAkD;AACxE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,iDAAA,CAAmD;AAC/E,YAAA,IAAI,EAAE,yBAAyB;AAChC,SAAA;AACF,KAAA;;;AC1BI,MAAM,sBAAsB,GAAG;IACpC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACtC,SAAS,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;;;ACJpD;;AAEG
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-app-builder-client-contracts.mjs","sources":["../../../../libs/modules/app-builder/contracts/src/LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY.ts","../../../../libs/modules/app-builder/contracts/src/menu.keys.ts","../../../../libs/modules/app-builder/contracts/src/permission.keys.ts","../../../../libs/modules/app-builder/contracts/src/root-config.ts","../../../../libs/modules/app-builder/contracts/src/entities/landing-page/landing-page.types.ts","../../../../libs/modules/app-builder/contracts/src/acorex-platform-module-app-builder-client-contracts.ts"],"sourcesContent":["/** Registry key for the landing page designer custom entity page. */\nexport const LANDING_PAGE_DESIGNER_PAGE_COMPONENT_KEY = 'landing-page-designer-page';\n","export const AXMAppBuilderMenuKeys = {\n Root: 'app-builder:menu',\n LandingPages: 'app-builder:menu:landing-pages',\n LandingPageCategories: 'app-builder:menu:landing-page-categories',\n} as const;\n","/**\n * Applications & Platform capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPApplicationsPlatformPermissionKeys = {\n Access: 'ApplicationsPlatform:Permission:Access',\n MaintainApplications: 'ApplicationsPlatform:Permission:MaintainApplications',\n MaintainTenants: 'ApplicationsPlatform:Permission:MaintainTenants',\n MaintainPlatformShell: 'ApplicationsPlatform:Permission:MaintainPlatformShell',\n MaintainLandingPages: 'ApplicationsPlatform:Permission:MaintainLandingPages',\n MaintainIdentifiers: 'ApplicationsPlatform:Permission:MaintainIdentifiers',\n MaintainTenantSettings: 'ApplicationsPlatform:Permission:MaintainTenantSettings',\n MaintainPlatformSettings: 'ApplicationsPlatform:Permission:MaintainPlatformSettings',\n MaintainLocales: 'ApplicationsPlatform:Permission:MaintainLocales',\n UseDevTools: 'ApplicationsPlatform:Permission:UseDevTools',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPApplicationsPlatformPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n AppBuilder: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n LandingPage: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n },\n LandingPageCategory: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLandingPages,\n },\n },\n} as const;\n","const config = {\n i18n: 'app-builder',\n module: 'AppBuilder',\n} as const;\n\nexport const RootConfig = {\n config,\n module: {\n module: 'app-builder',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-browser',\n },\n entities: {\n landingPage: {\n name: 'LandingPage',\n source: `${config.module}.LandingPage`,\n title: `@${config.i18n}:pages.entities.landing-page.title`,\n titlePlural: `@${config.i18n}:pages.entities.landing-page.plural`,\n icon: 'fa-light fa-file-lines',\n },\n landingPageCategory: {\n name: 'LandingPageCategory',\n source: `${config.module}.LandingPageCategory`,\n title: `@${config.i18n}:categories.entities.landing-page-category.title`,\n titlePlural: `@${config.i18n}:categories.entities.landing-page-category.plural`,\n icon: 'fa-light fa-folder-tree',\n },\n },\n} as const;\n","import { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\n\nexport const AXMLandingPageStatuses = {\n Draft: { id: 'draft', title: 'Draft' },\n Published: { id: 'published', title: 'Published' },\n} as const;\n\nexport type AXMLandingPageStatusId =\n (typeof AXMLandingPageStatuses)[keyof typeof AXMLandingPageStatuses]['id'];\n\nexport interface AXMLandingPageEntityModel extends AXPEntityModel<string> {\n title?: string;\n slug?: string;\n status?: AXMLandingPageStatusId;\n content?: string | null;\n isHome?: boolean;\n categoryId?: string | null;\n category?: { id: string; title?: string; slug?: string } | null;\n description?: string | null;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,wCAAwC,GAAG;;ACDjD,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,YAAY,EAAE,gCAAgC;AAC9C,IAAA,qBAAqB,EAAE,0CAA0C;;;ACHnE;;;AAGG;AACI,MAAM,qCAAqC,GAAG;AACnD,IAAA,MAAM,EAAE,wCAAwC;AAChD,IAAA,oBAAoB,EAAE,sDAAsD;AAC5E,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,qBAAqB,EAAE,uDAAuD;AAC9E,IAAA,oBAAoB,EAAE,sDAAsD;AAC5E,IAAA,mBAAmB,EAAE,qDAAqD;AAC1E,IAAA,sBAAsB,EAAE,wDAAwD;AAChF,IAAA,wBAAwB,EAAE,0DAA0D;AACpF,IAAA,eAAe,EAAE,iDAAiD;AAClE,IAAA,WAAW,EAAE,6CAA6C;;AAG5D;;;AAGG;AACI,MAAM,kBAAkB,GAAG;AAChC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B;AAC/B,SAAA;AACD,QAAA,mBAAmB,EAAE;AACnB,YAAA,IAAI,EAAE,qBAAqB;AAC3B,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,oBAAA,CAAsB;AAC9C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gDAAA,CAAkD;AACxE,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,iDAAA,CAAmD;AAC/E,YAAA,IAAI,EAAE,yBAAyB;AAChC,SAAA;AACF,KAAA;;;AC1BI,MAAM,sBAAsB,GAAG;IACpC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IACtC,SAAS,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;;;ACJpD;;AAEG;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-app-builder-client/contracts';
|
|
3
|
+
export { appBuilderLocalEntityCatalog } from '@acorex-platform/module-app-builder-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers app-builder layouts on the client from packaged factories.
|
|
10
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
11
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
12
|
+
* `Domain:GetEntityLayout`.
|
|
13
|
+
*/
|
|
14
|
+
function provideAppBuilderLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.landingPage.name]: () => import('@acorex-platform/module-app-builder-client/contracts/entities/landing-page').then((m) => m.landingPageEntityFactory()),
|
|
19
|
+
[RootConfig.entities.landingPageCategory.name]: () => import('@acorex-platform/module-app-builder-client/contracts/entities/landing-page-category').then((m) => m.landingPageCategoryEntityFactory()),
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
export { provideAppBuilderLocalEntities };
|
|
30
|
+
//# sourceMappingURL=acorex-platform-module-app-builder-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-app-builder-client-local-entities.mjs","sources":["../../../../libs/modules/app-builder/client/src/lib/provide-local-entities.ts","../../../../libs/modules/app-builder/client/src/lib/acorex-platform-module-app-builder-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-app-builder-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers app-builder layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideAppBuilderLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.landingPage.name]: () =>\n import('@acorex-platform/module-app-builder-client/contracts/entities/landing-page').then((m) => m.landingPageEntityFactory()),\n [RootConfig.entities.landingPageCategory.name]: () =>\n import('@acorex-platform/module-app-builder-client/contracts/entities/landing-page-category').then((m) => m.landingPageCategoryEntityFactory()),\n },\n });\n}\n\nexport { appBuilderLocalEntityCatalog } from '@acorex-platform/module-app-builder-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './provide-local-entities';\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;;;AAKG;SACa,8BAA8B,GAAA;AAC5C,IAAA,OAAO,yBAAyB,CAAC;AAC/B,QAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,QAAA,OAAO,EAAE;AACP,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,GAAG,MACtC,OAAO,4EAA4E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,CAAC;AAChI,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,GAAG,MAC9C,OAAO,qFAAqF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,gCAAgC,EAAE,CAAC;AAClJ,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;AC7BA;;AAEG;;"}
|