@acorex-platform/module-platform-management-client 0.0.30 → 0.0.33
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-platform-management-client-acorex-platform-module-platform-management-client-V_ao4WVM.mjs → acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs} +52 -18
- package/fesm2022/acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-Dhg_zr0Y.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs +260 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-command-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs +235 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs +192 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs +252 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs +516 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-query-definition.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs +797 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-token.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs +296 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entities-widget.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs +116 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs +169 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs +144 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs +101 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs +161 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs +425 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-query-definition.entity-EeVwRw6n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs +706 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-token.entity-BpDzXGQA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs +205 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog-widget.entity-RMzK4w8S.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-contracts.mjs +23 -1
- package/fesm2022/acorex-platform-module-platform-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-create-user-query.command-2Qu7aoCp.mjs → acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs} +3 -7
- package/fesm2022/acorex-platform-module-platform-management-client-create-user-query.command-BZMFLEua.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-platform-management-client-execute-token.command-DNuHR-0y.mjs → acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs} +1 -4
- package/fesm2022/acorex-platform-module-platform-management-client-execute-token.command-B_xwW9lb.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs +35 -0
- package/fesm2022/acorex-platform-module-platform-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-platform-management-client-menu-list.component-C5HH5-Dw.mjs → acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-platform-management-client-menu-list.component-C5HH5-Dw.mjs.map → acorex-platform-module-platform-management-client-menu-list.component-DiKmJva5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-CYb2zOSj.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-CYb2zOSj.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-column.component-BR1FlwWM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-BBwrzcXa.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-BBwrzcXa.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-edit.component-DwPKSgdP.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DBlZVz6u.mjs → acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DBlZVz6u.mjs.map → acorex-platform-module-platform-management-client-rest-api-generator-widget-view.component-DPhBXqGo.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-platform-management-client.mjs +1 -1
- package/package.json +39 -3
- package/types/acorex-platform-module-platform-management-client-contracts-entities-command-definition.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entities-entity-access-policy.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entities-entity-definition.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entities-plugin-definition.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entities-query-definition.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entities-token.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entities-widget.d.ts +5 -0
- package/types/acorex-platform-module-platform-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-platform-management-client-contracts.d.ts +49 -2
- package/types/acorex-platform-module-platform-management-client-local-entities.d.ts +12 -0
- package/fesm2022/acorex-platform-module-platform-management-client-acorex-platform-module-platform-management-client-V_ao4WVM.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-create-user-query.command-2Qu7aoCp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-platform-management-client-execute-token.command-DNuHR-0y.mjs.map +0 -1
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs';
|
|
4
|
+
|
|
5
|
+
async function commandDefinitionEntityFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n;
|
|
7
|
+
const entityDef = {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.commandDefinition.name,
|
|
10
|
+
title: RootConfig.entities.commandDefinition.title,
|
|
11
|
+
icon: RootConfig.entities.commandDefinition.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: RootConfig.entities.commandDefinition.title,
|
|
14
|
+
plural: RootConfig.entities.commandDefinition.titlePlural,
|
|
15
|
+
searchResult: {
|
|
16
|
+
title: '{{ catalogTitle || name }}',
|
|
17
|
+
description: '{{ description }}',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
plugins: [],
|
|
21
|
+
groups: [
|
|
22
|
+
{
|
|
23
|
+
id: 'basic-info',
|
|
24
|
+
title: `@${i18n}:command-definitions.entities.command-definition.groups.basic-info`,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'schema',
|
|
28
|
+
title: `@${i18n}:command-definitions.entities.command-definition.groups.schema`,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
name: 'name',
|
|
34
|
+
title: '@general:terms.common.name',
|
|
35
|
+
groupId: 'basic-info',
|
|
36
|
+
schema: {
|
|
37
|
+
dataType: 'string',
|
|
38
|
+
readonly: true,
|
|
39
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
40
|
+
},
|
|
41
|
+
options: {
|
|
42
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
43
|
+
sort: { enabled: true },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'catalogTitle',
|
|
48
|
+
title: '@general:terms.common.title',
|
|
49
|
+
groupId: 'basic-info',
|
|
50
|
+
schema: {
|
|
51
|
+
dataType: 'string',
|
|
52
|
+
readonly: true,
|
|
53
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
54
|
+
},
|
|
55
|
+
options: {
|
|
56
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
57
|
+
sort: { enabled: true },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'description',
|
|
62
|
+
title: '@general:terms.common.description',
|
|
63
|
+
groupId: 'basic-info',
|
|
64
|
+
schema: {
|
|
65
|
+
dataType: 'string',
|
|
66
|
+
readonly: true,
|
|
67
|
+
interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },
|
|
68
|
+
},
|
|
69
|
+
options: { filter: { advance: { enabled: true } } },
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'executionMode',
|
|
73
|
+
title: `@${i18n}:command-definitions.entities.command-definition.fields.execution-mode.title`,
|
|
74
|
+
groupId: 'basic-info',
|
|
75
|
+
schema: {
|
|
76
|
+
dataType: 'string',
|
|
77
|
+
readonly: true,
|
|
78
|
+
interface: {
|
|
79
|
+
type: AXPWidgetsCatalog.select,
|
|
80
|
+
options: {
|
|
81
|
+
valueField: 'value',
|
|
82
|
+
textField: 'text',
|
|
83
|
+
dataSource: [
|
|
84
|
+
{ value: 'frontend', text: 'Frontend' },
|
|
85
|
+
{ value: 'backend', text: 'Backend' },
|
|
86
|
+
{ value: 'both', text: 'Both' },
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
options: { filter: { inline: { enabled: true } } },
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'capabilities',
|
|
95
|
+
title: `@${i18n}:command-definitions.entities.command-definition.fields.capabilities.title`,
|
|
96
|
+
groupId: 'basic-info',
|
|
97
|
+
schema: {
|
|
98
|
+
dataType: 'array',
|
|
99
|
+
readonly: true,
|
|
100
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
101
|
+
},
|
|
102
|
+
options: { filter: { advance: { enabled: true } } },
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'inputOptionDefinitions',
|
|
106
|
+
title: `@${i18n}:command-definitions.entities.command-definition.fields.inputs.title`,
|
|
107
|
+
groupId: 'schema',
|
|
108
|
+
schema: {
|
|
109
|
+
dataType: 'array',
|
|
110
|
+
readonly: true,
|
|
111
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'outputOptionDefinitions',
|
|
116
|
+
title: `@${i18n}:command-definitions.entities.command-definition.fields.outputs.title`,
|
|
117
|
+
groupId: 'schema',
|
|
118
|
+
schema: {
|
|
119
|
+
dataType: 'array',
|
|
120
|
+
readonly: true,
|
|
121
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'outcomesDefinitionJson',
|
|
126
|
+
title: `@${i18n}:command-definitions.entities.command-definition.fields.outcomes.title`,
|
|
127
|
+
groupId: 'schema',
|
|
128
|
+
schema: {
|
|
129
|
+
dataType: 'string',
|
|
130
|
+
readonly: true,
|
|
131
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
columns: [
|
|
136
|
+
{ name: 'catalogTitle', title: '@general:terms.common.title', showAs: { type: AXPWidgetsCatalog.text } },
|
|
137
|
+
{ name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },
|
|
138
|
+
{ name: 'executionMode', title: `@${i18n}:command-definitions.entities.command-definition.fields.execution-mode.title` },
|
|
139
|
+
{ name: 'capabilities', title: `@${i18n}:command-definitions.entities.command-definition.fields.capabilities.title` },
|
|
140
|
+
],
|
|
141
|
+
interfaces: {
|
|
142
|
+
master: {
|
|
143
|
+
list: {
|
|
144
|
+
views: [createAllQueryView({ sorts: [{ name: 'catalogTitle', dir: 'asc' }] })],
|
|
145
|
+
actions: [],
|
|
146
|
+
},
|
|
147
|
+
single: {
|
|
148
|
+
title: '{{ catalogTitle || name }}',
|
|
149
|
+
sections: [{ id: 'basic-info' }, { id: 'schema' }],
|
|
150
|
+
properties: [
|
|
151
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
152
|
+
{ name: 'catalogTitle', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
153
|
+
{ name: 'executionMode', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
154
|
+
{ name: 'capabilities', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
155
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
156
|
+
{ name: 'inputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
157
|
+
{ name: 'outputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
158
|
+
{ name: 'outcomesDefinitionJson', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
159
|
+
],
|
|
160
|
+
actions: [...entityMasterRecordActions()],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
};
|
|
165
|
+
return entityDef;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { commandDefinitionEntityFactory };
|
|
169
|
+
//# sourceMappingURL=acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entity-catalog-command-definition.entity-DQc-qLgx.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/entities/command-definition/command-definition.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function commandDefinitionEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.commandDefinition.name,\n title: RootConfig.entities.commandDefinition.title,\n icon: RootConfig.entities.commandDefinition.icon,\n formats: {\n individual: RootConfig.entities.commandDefinition.title,\n plural: RootConfig.entities.commandDefinition.titlePlural,\n searchResult: {\n title: '{{ catalogTitle || name }}',\n description: '{{ description }}',\n },\n },\n plugins: [],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:command-definitions.entities.command-definition.groups.basic-info`,\n },\n {\n id: 'schema',\n title: `@${i18n}:command-definitions.entities.command-definition.groups.schema`,\n },\n ],\n properties: [\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'catalogTitle',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'executionMode',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.execution-mode.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'frontend', text: 'Frontend' },\n { value: 'backend', text: 'Backend' },\n { value: 'both', text: 'Both' },\n ],\n },\n },\n },\n options: { filter: { inline: { enabled: true } } },\n },\n {\n name: 'capabilities',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.capabilities.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'inputOptionDefinitions',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.inputs.title`,\n groupId: 'schema',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n },\n {\n name: 'outputOptionDefinitions',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.outputs.title`,\n groupId: 'schema',\n schema: {\n dataType: 'array',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n },\n {\n name: 'outcomesDefinitionJson',\n title: `@${i18n}:command-definitions.entities.command-definition.fields.outcomes.title`,\n groupId: 'schema',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },\n },\n },\n ],\n columns: [\n { name: 'catalogTitle', title: '@general:terms.common.title', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'executionMode', title: `@${i18n}:command-definitions.entities.command-definition.fields.execution-mode.title` },\n { name: 'capabilities', title: `@${i18n}:command-definitions.entities.command-definition.fields.capabilities.title` },\n ],\n interfaces: {\n master: {\n list: {\n views: [createAllQueryView({ sorts: [{ name: 'catalogTitle', dir: 'asc' }] })],\n actions: [],\n },\n single: {\n title: '{{ catalogTitle || name }}',\n sections: [{ id: 'basic-info' }, { id: 'schema' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'catalogTitle', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'executionMode', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'capabilities', layout: { positions: { lg: { colSpan: 6 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'inputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'outputOptionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'outcomesDefinitionJson', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAQO,eAAe,8BAA8B,GAAA;AAClD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI;AAChD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK;AAClD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI;AAChD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK;AACvD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,WAAW;AACzD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,4BAA4B;AACnC,gBAAA,WAAW,EAAE,mBAAmB;AACjC,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,YAAY;gB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S,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACnF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- EntityAccessPolicy entity factory ----
|
|
6
|
+
async function entityAccessPolicyEntityFactory() {
|
|
7
|
+
const i18n = RootConfig.config.i18n;
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.entityAccessPolicy.name,
|
|
11
|
+
title: RootConfig.entities.entityAccessPolicy.title,
|
|
12
|
+
icon: RootConfig.entities.entityAccessPolicy.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.entityAccessPolicy.title,
|
|
15
|
+
plural: RootConfig.entities.entityAccessPolicy.titlePlural,
|
|
16
|
+
searchResult: {
|
|
17
|
+
title: '{{ entityName }}',
|
|
18
|
+
description: '{{ description }}',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
plugins: [{ name: 'history' }],
|
|
22
|
+
groups: [
|
|
23
|
+
{
|
|
24
|
+
id: 'basic-info',
|
|
25
|
+
title: `@${i18n}:entity-access-policies.entities.entity-access-policy.groups.basic-info`,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
properties: [
|
|
29
|
+
{
|
|
30
|
+
name: 'entityName',
|
|
31
|
+
title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.entity-name.title`,
|
|
32
|
+
groupId: 'basic-info',
|
|
33
|
+
schema: {
|
|
34
|
+
dataType: 'string',
|
|
35
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
36
|
+
},
|
|
37
|
+
validations: [{ rule: 'required' }],
|
|
38
|
+
options: {
|
|
39
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
40
|
+
sort: { enabled: true },
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'read',
|
|
45
|
+
title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.read.title`,
|
|
46
|
+
groupId: 'basic-info',
|
|
47
|
+
schema: {
|
|
48
|
+
dataType: 'string',
|
|
49
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
50
|
+
},
|
|
51
|
+
validations: [{ rule: 'required' }],
|
|
52
|
+
options: {
|
|
53
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'write',
|
|
58
|
+
title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.write.title`,
|
|
59
|
+
groupId: 'basic-info',
|
|
60
|
+
schema: {
|
|
61
|
+
dataType: 'string',
|
|
62
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
63
|
+
},
|
|
64
|
+
validations: [{ rule: 'required' }],
|
|
65
|
+
options: {
|
|
66
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'enabled',
|
|
71
|
+
title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.enabled.title`,
|
|
72
|
+
groupId: 'basic-info',
|
|
73
|
+
schema: {
|
|
74
|
+
dataType: 'boolean',
|
|
75
|
+
interface: { type: AXPWidgetsCatalog.toggle },
|
|
76
|
+
},
|
|
77
|
+
options: {
|
|
78
|
+
filter: { inline: { enabled: true } },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'description',
|
|
83
|
+
title: '@general:terms.common.description',
|
|
84
|
+
groupId: 'basic-info',
|
|
85
|
+
schema: {
|
|
86
|
+
dataType: 'string',
|
|
87
|
+
interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },
|
|
88
|
+
},
|
|
89
|
+
options: { filter: { advance: { enabled: true } } },
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
columns: [
|
|
93
|
+
{ name: 'entityName', options: { width: '22rem' } },
|
|
94
|
+
{ name: 'read', options: { width: '16rem' } },
|
|
95
|
+
{ name: 'write', options: { width: '16rem' } },
|
|
96
|
+
{ name: 'enabled', options: { width: '8rem' } },
|
|
97
|
+
{ name: 'description' },
|
|
98
|
+
],
|
|
99
|
+
interfaces: {
|
|
100
|
+
master: {
|
|
101
|
+
create: {
|
|
102
|
+
sections: [{ id: 'basic-info' }],
|
|
103
|
+
properties: [
|
|
104
|
+
{ name: 'entityName' },
|
|
105
|
+
{ name: 'read' },
|
|
106
|
+
{ name: 'write' },
|
|
107
|
+
{ name: 'enabled' },
|
|
108
|
+
{ name: 'description' },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
update: {
|
|
112
|
+
sections: [{ id: 'basic-info' }],
|
|
113
|
+
properties: [
|
|
114
|
+
{ name: 'entityName' },
|
|
115
|
+
{ name: 'read' },
|
|
116
|
+
{ name: 'write' },
|
|
117
|
+
{ name: 'enabled' },
|
|
118
|
+
{ name: 'description' },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
single: {
|
|
122
|
+
title: '{{entityName}}',
|
|
123
|
+
sections: [{ id: 'basic-info' }],
|
|
124
|
+
properties: [
|
|
125
|
+
{ name: 'entityName' },
|
|
126
|
+
{ name: 'read' },
|
|
127
|
+
{ name: 'write' },
|
|
128
|
+
{ name: 'enabled' },
|
|
129
|
+
{ name: 'description' },
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
list: {
|
|
133
|
+
views: [createAllQueryView()],
|
|
134
|
+
actions: entityMasterRecordActions(),
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
return entityDef;
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
|
|
143
|
+
export { entityAccessPolicyEntityFactory };
|
|
144
|
+
//# sourceMappingURL=acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-access-policy.entity-CcrQikvj.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/entities/entity-access-policy/entity-access-policy.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- EntityAccessPolicy entity factory ----\n\nexport async function entityAccessPolicyEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityAccessPolicy.name,\n title: RootConfig.entities.entityAccessPolicy.title,\n icon: RootConfig.entities.entityAccessPolicy.icon,\n formats: {\n individual: RootConfig.entities.entityAccessPolicy.title,\n plural: RootConfig.entities.entityAccessPolicy.titlePlural,\n searchResult: {\n title: '{{ entityName }}',\n description: '{{ description }}',\n },\n },\n plugins: [{ name: 'history' }],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.groups.basic-info`,\n },\n ],\n properties: [\n {\n name: 'entityName',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.entity-name.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'read',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.read.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n },\n },\n {\n name: 'write',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.write.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.text },\n },\n validations: [{ rule: 'required' }],\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n },\n },\n {\n name: 'enabled',\n title: `@${i18n}:entity-access-policies.entities.entity-access-policy.fields.enabled.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n interface: { type: AXPWidgetsCatalog.toggle },\n },\n options: {\n filter: { inline: { enabled: true } },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n ],\n columns: [\n { name: 'entityName', options: { width: '22rem' } },\n { name: 'read', options: { width: '16rem' } },\n { name: 'write', options: { width: '16rem' } },\n { name: 'enabled', options: { width: '8rem' } },\n { name: 'description' },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n single: {\n title: '{{entityName}}',\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'entityName' },\n { name: 'read' },\n { name: 'write' },\n { name: 'enabled' },\n { name: 'description' },\n ],\n },\n list: {\n views: [createAllQueryView()],\n actions: entityMasterRecordActions(),\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAQA;AAEO,eAAe,+BAA+B,GAAA;AACnD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACnD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACxD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,WAAW;AAC1D,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,kBAAkB;AACzB,gBAAA,WAAW,EAAE,mBAAmB;AACjC,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAC9B,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,EAAE,EAAE,YAAY;gBAChB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,uEAAA,CAAyE;AACzF,aAAA;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,8EAAA,CAAgF;AAC/F,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAA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AAI,EAAE,aAAa,EAAE;AACxB,qBAAA;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;oBAC7B,OAAO,EAAE,yBAAyB,EAAE;AACrC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs';
|
|
4
|
+
|
|
5
|
+
async function entityDefinitionEntityFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n;
|
|
7
|
+
const entityDef = {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.entityDefinition.name,
|
|
10
|
+
title: RootConfig.entities.entityDefinition.title,
|
|
11
|
+
icon: RootConfig.entities.entityDefinition.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: RootConfig.entities.entityDefinition.title,
|
|
14
|
+
plural: RootConfig.entities.entityDefinition.titlePlural,
|
|
15
|
+
searchResult: {
|
|
16
|
+
title: '{{ name }}',
|
|
17
|
+
description: '{{ id }}',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
plugins: [],
|
|
21
|
+
groups: [
|
|
22
|
+
{
|
|
23
|
+
id: 'basic-info',
|
|
24
|
+
title: `@${i18n}:entity-definitions.entities.entity-definition.groups.basic-info`,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'schema',
|
|
28
|
+
title: `@${i18n}:entity-definitions.entities.entity-definition.groups.schema`,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
name: 'id',
|
|
34
|
+
title: '@general:terms.common.id',
|
|
35
|
+
groupId: 'basic-info',
|
|
36
|
+
schema: {
|
|
37
|
+
dataType: 'string',
|
|
38
|
+
readonly: true,
|
|
39
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
40
|
+
},
|
|
41
|
+
options: {
|
|
42
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
43
|
+
sort: { enabled: true },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'name',
|
|
48
|
+
title: '@general:terms.common.name',
|
|
49
|
+
groupId: 'basic-info',
|
|
50
|
+
schema: {
|
|
51
|
+
dataType: 'string',
|
|
52
|
+
readonly: true,
|
|
53
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
54
|
+
},
|
|
55
|
+
options: {
|
|
56
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
57
|
+
sort: { enabled: true },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'content',
|
|
62
|
+
title: `@${i18n}:entity-definitions.entities.entity-definition.fields.content.title`,
|
|
63
|
+
groupId: 'schema',
|
|
64
|
+
schema: {
|
|
65
|
+
dataType: 'object',
|
|
66
|
+
readonly: true,
|
|
67
|
+
interface: {
|
|
68
|
+
type: AXPWidgetsList.Advanced.CodeEditor,
|
|
69
|
+
options: { language: 'json', readOnly: true },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
columns: [
|
|
75
|
+
{ name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },
|
|
76
|
+
{ name: 'id', title: '@general:terms.common.id', showAs: { type: AXPWidgetsCatalog.text } },
|
|
77
|
+
],
|
|
78
|
+
interfaces: {
|
|
79
|
+
master: {
|
|
80
|
+
list: {
|
|
81
|
+
views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],
|
|
82
|
+
actions: [],
|
|
83
|
+
},
|
|
84
|
+
single: {
|
|
85
|
+
title: '{{ name }}',
|
|
86
|
+
sections: [{ id: 'basic-info' }, { id: 'schema' }],
|
|
87
|
+
properties: [
|
|
88
|
+
{ name: 'id', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
89
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
90
|
+
{ name: 'content', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
91
|
+
],
|
|
92
|
+
actions: [...entityMasterRecordActions()],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
return entityDef;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { entityDefinitionEntityFactory };
|
|
101
|
+
//# sourceMappingURL=acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-platform-management-client-contracts-entity-catalog-entity-definition.entity-D0g3R9eS.mjs","sources":["../../../../libs/modules/platform-management/contracts/src/entities/entity-definition/entity-definition.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n createAllQueryView,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function entityDefinitionEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.entityDefinition.name,\n title: RootConfig.entities.entityDefinition.title,\n icon: RootConfig.entities.entityDefinition.icon,\n formats: {\n individual: RootConfig.entities.entityDefinition.title,\n plural: RootConfig.entities.entityDefinition.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: '{{ id }}',\n },\n },\n plugins: [],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}:entity-definitions.entities.entity-definition.groups.basic-info`,\n },\n {\n id: 'schema',\n title: `@${i18n}:entity-definitions.entities.entity-definition.groups.schema`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'content',\n title: `@${i18n}:entity-definitions.entities.entity-definition.fields.content.title`,\n groupId: 'schema',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: {\n type: AXPWidgetsList.Advanced.CodeEditor,\n options: { language: 'json', readOnly: true },\n },\n },\n },\n ],\n columns: [\n { name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },\n { name: 'id', title: '@general:terms.common.id', showAs: { type: AXPWidgetsCatalog.text } },\n ],\n interfaces: {\n master: {\n list: {\n views: [createAllQueryView({ sorts: [{ name: 'name', dir: 'asc' }] })],\n actions: [],\n },\n single: {\n title: '{{ name }}',\n sections: [{ id: 'basic-info' }, { id: 'schema' }],\n properties: [\n { name: 'id', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'name', layout: { positions: { lg: { colSpan: 12 } } } },\n { name: 'content', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAQO,eAAe,6BAA6B,GAAA;AACjD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,U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asterRecordActions, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-platform-management-client-contracts-entity-catalog-acorex-platform-module-platform-management-client-contracts-entity-catalog-CLAnbKkE.mjs';
|
|
4
|
+
|
|
5
|
+
async function pluginDefinitionEntityFactory() {
|
|
6
|
+
const i18n = RootConfig.config.i18n;
|
|
7
|
+
const entityDef = {
|
|
8
|
+
module: RootConfig.module.name,
|
|
9
|
+
name: RootConfig.entities.pluginDefinition.name,
|
|
10
|
+
title: RootConfig.entities.pluginDefinition.title,
|
|
11
|
+
icon: RootConfig.entities.pluginDefinition.icon,
|
|
12
|
+
formats: {
|
|
13
|
+
individual: RootConfig.entities.pluginDefinition.title,
|
|
14
|
+
plural: RootConfig.entities.pluginDefinition.titlePlural,
|
|
15
|
+
searchResult: {
|
|
16
|
+
title: '{{ catalogTitle || name }}',
|
|
17
|
+
description: '{{ description }}',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
plugins: [],
|
|
21
|
+
groups: [
|
|
22
|
+
{
|
|
23
|
+
id: 'basic-info',
|
|
24
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.groups.basic-info`,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'schema',
|
|
28
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.groups.schema`,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
name: 'name',
|
|
34
|
+
title: '@general:terms.common.name',
|
|
35
|
+
groupId: 'basic-info',
|
|
36
|
+
schema: {
|
|
37
|
+
dataType: 'string',
|
|
38
|
+
readonly: true,
|
|
39
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
40
|
+
},
|
|
41
|
+
options: {
|
|
42
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
43
|
+
sort: { enabled: true },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'catalogTitle',
|
|
48
|
+
title: '@general:terms.common.title',
|
|
49
|
+
groupId: 'basic-info',
|
|
50
|
+
schema: {
|
|
51
|
+
dataType: 'string',
|
|
52
|
+
readonly: true,
|
|
53
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
54
|
+
},
|
|
55
|
+
options: {
|
|
56
|
+
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
57
|
+
sort: { enabled: true },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'description',
|
|
62
|
+
title: '@general:terms.common.description',
|
|
63
|
+
groupId: 'basic-info',
|
|
64
|
+
schema: {
|
|
65
|
+
dataType: 'string',
|
|
66
|
+
readonly: true,
|
|
67
|
+
interface: { type: AXPWidgetsCatalog.largeText, options: { rows: 3 } },
|
|
68
|
+
},
|
|
69
|
+
options: { filter: { advance: { enabled: true } } },
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'sourceModule',
|
|
73
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.source-module.title`,
|
|
74
|
+
groupId: 'basic-info',
|
|
75
|
+
schema: {
|
|
76
|
+
dataType: 'string',
|
|
77
|
+
readonly: true,
|
|
78
|
+
interface: { type: AXPWidgetsCatalog.text },
|
|
79
|
+
},
|
|
80
|
+
options: { filter: { inline: { enabled: true } } },
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'order',
|
|
84
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.order.title`,
|
|
85
|
+
groupId: 'basic-info',
|
|
86
|
+
schema: {
|
|
87
|
+
dataType: 'number',
|
|
88
|
+
readonly: true,
|
|
89
|
+
interface: { type: AXPWidgetsCatalog.number },
|
|
90
|
+
},
|
|
91
|
+
options: { sort: { enabled: true } },
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'optionDefinitions',
|
|
95
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.options.title`,
|
|
96
|
+
groupId: 'schema',
|
|
97
|
+
schema: {
|
|
98
|
+
dataType: 'array',
|
|
99
|
+
readonly: true,
|
|
100
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'contributionsJson',
|
|
105
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.contributions.title`,
|
|
106
|
+
groupId: 'schema',
|
|
107
|
+
schema: {
|
|
108
|
+
dataType: 'string',
|
|
109
|
+
readonly: true,
|
|
110
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'aiMetadataJson',
|
|
115
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.ai-metadata.title`,
|
|
116
|
+
groupId: 'schema',
|
|
117
|
+
schema: {
|
|
118
|
+
dataType: 'string',
|
|
119
|
+
readonly: true,
|
|
120
|
+
interface: { type: AXPWidgetsList.Advanced.CodeEditor, options: { language: 'json', readOnly: true } },
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
columns: [
|
|
125
|
+
{ name: 'catalogTitle', title: '@general:terms.common.title', showAs: { type: AXPWidgetsCatalog.text } },
|
|
126
|
+
{ name: 'name', title: '@general:terms.common.name', showAs: { type: AXPWidgetsCatalog.text } },
|
|
127
|
+
{
|
|
128
|
+
name: 'sourceModule',
|
|
129
|
+
title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.source-module.title`,
|
|
130
|
+
},
|
|
131
|
+
{ name: 'order', title: `@${i18n}:plugin-definitions.entities.plugin-definition.fields.order.title` },
|
|
132
|
+
],
|
|
133
|
+
interfaces: {
|
|
134
|
+
master: {
|
|
135
|
+
list: {
|
|
136
|
+
views: [createAllQueryView({ sorts: [{ name: 'catalogTitle', dir: 'asc' }] })],
|
|
137
|
+
actions: [],
|
|
138
|
+
},
|
|
139
|
+
single: {
|
|
140
|
+
title: '{{ catalogTitle || name }}',
|
|
141
|
+
sections: [{ id: 'basic-info' }, { id: 'schema' }],
|
|
142
|
+
properties: [
|
|
143
|
+
{ name: 'name', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
144
|
+
{ name: 'catalogTitle', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
145
|
+
{ name: 'sourceModule', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
146
|
+
{ name: 'order', layout: { positions: { lg: { colSpan: 6 } } } },
|
|
147
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
148
|
+
{ name: 'optionDefinitions', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
149
|
+
{ name: 'contributionsJson', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
150
|
+
{ name: 'aiMetadataJson', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
151
|
+
],
|
|
152
|
+
actions: [...entityMasterRecordActions()],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
return entityDef;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export { pluginDefinitionEntityFactory };
|
|
161
|
+
//# sourceMappingURL=acorex-platform-module-platform-management-client-contracts-entity-catalog-plugin-definition.entity-BhyI54NP.mjs.map
|