@acorex-platform/module-integration-management-client 0.0.32 → 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-integration-management-client-contracts-entities-integration-application.mjs +153 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-application.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-connection.mjs +191 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-connection.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-oauth-state.mjs +127 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-oauth-state.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-BT3-xrGZ.mjs +69 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-BT3-xrGZ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-BGZKCUt8.mjs +105 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-BGZKCUt8.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-CYQq6jv2.mjs +143 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-CYQq6jv2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-BPvTE55S.mjs +79 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-BPvTE55S.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-DeED5cU5.mjs → acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-D9kaBnug.mjs} +10 -11
- package/fesm2022/acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-D9kaBnug.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client-local-entities.mjs +31 -0
- package/fesm2022/acorex-platform-module-integration-management-client-local-entities.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-integration-management-client.mjs +1 -1
- package/package.json +21 -1
- package/types/acorex-platform-module-integration-management-client-contracts-entities-integration-application.d.ts +5 -0
- package/types/acorex-platform-module-integration-management-client-contracts-entities-integration-connection.d.ts +5 -0
- package/types/acorex-platform-module-integration-management-client-contracts-entities-integration-oauth-state.d.ts +5 -0
- package/types/acorex-platform-module-integration-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-integration-management-client-local-entities.d.ts +12 -0
- package/fesm2022/acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-DeED5cU5.mjs.map +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-BT3-xrGZ.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Entity Factory ----
|
|
6
|
+
async function factoryIntegrationApplication() {
|
|
7
|
+
const i18n = `${RootConfig.config.i18n}:applications.entities.application`;
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.integrationApplication.name,
|
|
11
|
+
title: RootConfig.entities.integrationApplication.title,
|
|
12
|
+
icon: RootConfig.entities.integrationApplication.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.integrationApplication.title,
|
|
15
|
+
plural: RootConfig.entities.integrationApplication.titlePlural,
|
|
16
|
+
searchResult: { title: '{{ providerId }}', description: '{{ clientId }}' },
|
|
17
|
+
},
|
|
18
|
+
plugins: [
|
|
19
|
+
{
|
|
20
|
+
name: 'unique-fields',
|
|
21
|
+
options: {
|
|
22
|
+
fields: ['scopeInfo.tenantId', 'scopeInfo.applicationId', 'providerId'],
|
|
23
|
+
scope: 'global',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{ name: 'history' },
|
|
27
|
+
],
|
|
28
|
+
groups: [
|
|
29
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
30
|
+
{ id: 'oauth', title: `@${i18n}.groups.oauth` },
|
|
31
|
+
],
|
|
32
|
+
properties: [
|
|
33
|
+
{
|
|
34
|
+
name: 'id',
|
|
35
|
+
title: '@general:terms.common.id',
|
|
36
|
+
groupId: 'basic-info',
|
|
37
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'providerId',
|
|
41
|
+
title: `@${i18n}.fields.provider-id.title`,
|
|
42
|
+
groupId: 'basic-info',
|
|
43
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
44
|
+
validations: [{ rule: 'required' }],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'clientId',
|
|
48
|
+
title: `@${i18n}.fields.client-id.title`,
|
|
49
|
+
groupId: 'oauth',
|
|
50
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
51
|
+
validations: [{ rule: 'required' }],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'clientSecretRef',
|
|
55
|
+
title: `@${i18n}.fields.client-secret-ref.title`,
|
|
56
|
+
groupId: 'oauth',
|
|
57
|
+
schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'authorizationEndpoint',
|
|
61
|
+
title: `@${i18n}.fields.authorization-endpoint.title`,
|
|
62
|
+
groupId: 'oauth',
|
|
63
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'tokenEndpoint',
|
|
67
|
+
title: `@${i18n}.fields.token-endpoint.title`,
|
|
68
|
+
groupId: 'oauth',
|
|
69
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'redirectUri',
|
|
73
|
+
title: `@${i18n}.fields.redirect-uri.title`,
|
|
74
|
+
groupId: 'oauth',
|
|
75
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'isActive',
|
|
79
|
+
title: '@general:terms.common.active',
|
|
80
|
+
groupId: 'basic-info',
|
|
81
|
+
schema: { dataType: 'boolean', defaultValue: true, interface: { type: AXPWidgetsCatalog.toggle } },
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
interfaces: {
|
|
85
|
+
master: {
|
|
86
|
+
list: {
|
|
87
|
+
actions: [...entityMasterCrudActions()],
|
|
88
|
+
views: [createAllQueryView({ sorts: [{ name: 'providerId', dir: 'asc' }] })],
|
|
89
|
+
},
|
|
90
|
+
create: { sections: [{ id: 'basic-info' }, { id: 'oauth' }] },
|
|
91
|
+
update: { sections: [{ id: 'basic-info' }, { id: 'oauth' }] },
|
|
92
|
+
single: {
|
|
93
|
+
title: '{{ providerId }}',
|
|
94
|
+
sections: [{ id: 'basic-info' }, { id: 'oauth' }],
|
|
95
|
+
actions: [...entityMasterRecordActions()],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
return entityDef;
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
|
|
104
|
+
export { factoryIntegrationApplication };
|
|
105
|
+
//# sourceMappingURL=acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-BGZKCUt8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-application.entity-BGZKCUt8.mjs","sources":["../../../../libs/modules/integration-management/contracts/src/entities/integration-application/integration-application.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Entity Factory ----\n\nexport async function factoryIntegrationApplication(): Promise<AXPEntity | null> {\n const i18n = `${RootConfig.config.i18n}:applications.entities.application`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.integrationApplication.name,\n title: RootConfig.entities.integrationApplication.title,\n icon: RootConfig.entities.integrationApplication.icon,\n formats: {\n individual: RootConfig.entities.integrationApplication.title,\n plural: RootConfig.entities.integrationApplication.titlePlural,\n searchResult: { title: '{{ providerId }}', description: '{{ clientId }}' },\n },\n plugins: [\n {\n name: 'unique-fields',\n options: {\n fields: ['scopeInfo.tenantId', 'scopeInfo.applicationId', 'providerId'],\n scope: 'global',\n },\n },\n { name: 'history' },\n ],\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'oauth', title: `@${i18n}.groups.oauth` },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'providerId',\n title: `@${i18n}.fields.provider-id.title`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'clientId',\n title: `@${i18n}.fields.client-id.title`,\n groupId: 'oauth',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'clientSecretRef',\n title: `@${i18n}.fields.client-secret-ref.title`,\n groupId: 'oauth',\n schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'authorizationEndpoint',\n title: `@${i18n}.fields.authorization-endpoint.title`,\n groupId: 'oauth',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'tokenEndpoint',\n title: `@${i18n}.fields.token-endpoint.title`,\n groupId: 'oauth',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'redirectUri',\n title: `@${i18n}.fields.redirect-uri.title`,\n groupId: 'oauth',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'isActive',\n title: '@general:terms.common.active',\n groupId: 'basic-info',\n schema: { dataType: 'boolean', defaultValue: true, interface: { type: AXPWidgetsCatalog.toggle } },\n },\n ],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'providerId', dir: 'asc' }] })],\n },\n create: { sections: [{ id: 'basic-info' }, { id: 'oauth' }] },\n update: { sections: [{ id: 'basic-info' }, { id: 'oauth' }] },\n single: {\n title: '{{ providerId }}',\n sections: [{ id: 'basic-info' }, { id: 'oauth' }],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,6BAA6B,GAAA;IACjD,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,kCAAA,CAAoC;AAE1E,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,M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,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;AAC7D,gBAAA,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;AAC7D,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,kBAAkB;AACzB,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;AACjD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-BT3-xrGZ.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Entity Factory ----
|
|
6
|
+
async function factoryIntegrationConnection() {
|
|
7
|
+
const i18n = `${RootConfig.config.i18n}:connections.entities.connection`;
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.integrationConnection.name,
|
|
11
|
+
title: RootConfig.entities.integrationConnection.title,
|
|
12
|
+
icon: RootConfig.entities.integrationConnection.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.integrationConnection.title,
|
|
15
|
+
plural: RootConfig.entities.integrationConnection.titlePlural,
|
|
16
|
+
searchResult: { title: '{{ displayName }}', description: '{{ providerId }}' },
|
|
17
|
+
},
|
|
18
|
+
plugins: [
|
|
19
|
+
{
|
|
20
|
+
name: 'unique-fields',
|
|
21
|
+
options: {
|
|
22
|
+
fields: [
|
|
23
|
+
'scopeInfo.tenantId',
|
|
24
|
+
'scopeInfo.applicationId',
|
|
25
|
+
'scopeInfo.userId',
|
|
26
|
+
'connectionScope',
|
|
27
|
+
'providerId',
|
|
28
|
+
'connectionKey',
|
|
29
|
+
],
|
|
30
|
+
scope: 'global',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{ name: 'history' },
|
|
34
|
+
],
|
|
35
|
+
groups: [
|
|
36
|
+
{ id: 'basic-info', title: '@general:terms.interface.basic-info' },
|
|
37
|
+
{ id: 'connection', title: `@${i18n}.groups.connection` },
|
|
38
|
+
{ id: 'status', title: `@${i18n}.groups.status` },
|
|
39
|
+
],
|
|
40
|
+
properties: [
|
|
41
|
+
{
|
|
42
|
+
name: 'id',
|
|
43
|
+
title: '@general:terms.common.id',
|
|
44
|
+
groupId: 'basic-info',
|
|
45
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'providerId',
|
|
49
|
+
title: `@${i18n}.fields.provider-id.title`,
|
|
50
|
+
groupId: 'basic-info',
|
|
51
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
52
|
+
validations: [{ rule: 'required' }],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'displayName',
|
|
56
|
+
title: '@general:terms.common.title',
|
|
57
|
+
groupId: 'basic-info',
|
|
58
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
59
|
+
validations: [{ rule: 'required' }],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'connectionScope',
|
|
63
|
+
title: `@${i18n}.fields.connection-scope.title`,
|
|
64
|
+
groupId: 'connection',
|
|
65
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'connectionKey',
|
|
69
|
+
title: `@${i18n}.fields.connection-key.title`,
|
|
70
|
+
groupId: 'connection',
|
|
71
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'authMethodType',
|
|
75
|
+
title: `@${i18n}.fields.auth-method-type.title`,
|
|
76
|
+
groupId: 'connection',
|
|
77
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'status',
|
|
81
|
+
title: '@general:terms.common.status',
|
|
82
|
+
groupId: 'status',
|
|
83
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'instanceUrl',
|
|
87
|
+
title: `@${i18n}.fields.instance-url.title`,
|
|
88
|
+
groupId: 'connection',
|
|
89
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'externalAccountName',
|
|
93
|
+
title: `@${i18n}.fields.external-account-name.title`,
|
|
94
|
+
groupId: 'connection',
|
|
95
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'secretRef',
|
|
99
|
+
title: `@${i18n}.fields.secret-ref.title`,
|
|
100
|
+
groupId: 'connection',
|
|
101
|
+
schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'config',
|
|
105
|
+
title: `@${i18n}.fields.config.title`,
|
|
106
|
+
groupId: 'connection',
|
|
107
|
+
schema: { dataType: 'object', visible: false, interface: { type: 'json' } },
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'isRevoked',
|
|
111
|
+
title: `@${i18n}.fields.is-revoked.title`,
|
|
112
|
+
groupId: 'status',
|
|
113
|
+
schema: { dataType: 'boolean', defaultValue: false, interface: { type: AXPWidgetsCatalog.toggle }, readonly: true },
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'isDisabled',
|
|
117
|
+
title: `@${i18n}.fields.is-disabled.title`,
|
|
118
|
+
groupId: 'status',
|
|
119
|
+
schema: { dataType: 'boolean', defaultValue: false, interface: { type: AXPWidgetsCatalog.toggle } },
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
interfaces: {
|
|
123
|
+
master: {
|
|
124
|
+
list: {
|
|
125
|
+
actions: [...entityMasterCrudActions()],
|
|
126
|
+
views: [createAllQueryView({ sorts: [{ name: 'displayName', dir: 'asc' }] })],
|
|
127
|
+
},
|
|
128
|
+
create: { sections: [{ id: 'basic-info' }, { id: 'connection' }] },
|
|
129
|
+
update: { sections: [{ id: 'basic-info' }, { id: 'connection' }, { id: 'status' }] },
|
|
130
|
+
single: {
|
|
131
|
+
title: '{{ displayName }}',
|
|
132
|
+
sections: [{ id: 'basic-info' }, { id: 'connection' }, { id: 'status' }],
|
|
133
|
+
actions: [...entityMasterRecordActions()],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
return entityDef;
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
|
|
142
|
+
export { factoryIntegrationConnection };
|
|
143
|
+
//# sourceMappingURL=acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-CYQq6jv2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-connection.entity-CYQq6jv2.mjs","sources":["../../../../libs/modules/integration-management/contracts/src/entities/integration-connection/integration-connection.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Entity Factory ----\n\nexport async function factoryIntegrationConnection(): Promise<AXPEntity | null> {\n const i18n = `${RootConfig.config.i18n}:connections.entities.connection`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.integrationConnection.name,\n title: RootConfig.entities.integrationConnection.title,\n icon: RootConfig.entities.integrationConnection.icon,\n formats: {\n individual: RootConfig.entities.integrationConnection.title,\n plural: RootConfig.entities.integrationConnection.titlePlural,\n searchResult: { title: '{{ displayName }}', description: '{{ providerId }}' },\n },\n plugins: [\n {\n name: 'unique-fields',\n options: {\n fields: [\n 'scopeInfo.tenantId',\n 'scopeInfo.applicationId',\n 'scopeInfo.userId',\n 'connectionScope',\n 'providerId',\n 'connectionKey',\n ],\n scope: 'global',\n },\n },\n { name: 'history' },\n ],\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'connection', title: `@${i18n}.groups.connection` },\n { id: 'status', title: `@${i18n}.groups.status` },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'providerId',\n title: `@${i18n}.fields.provider-id.title`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'displayName',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'connectionScope',\n title: `@${i18n}.fields.connection-scope.title`,\n groupId: 'connection',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'connectionKey',\n title: `@${i18n}.fields.connection-key.title`,\n groupId: 'connection',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'authMethodType',\n title: `@${i18n}.fields.auth-method-type.title`,\n groupId: 'connection',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'status',\n title: '@general:terms.common.status',\n groupId: 'status',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'instanceUrl',\n title: `@${i18n}.fields.instance-url.title`,\n groupId: 'connection',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'externalAccountName',\n title: `@${i18n}.fields.external-account-name.title`,\n groupId: 'connection',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'secretRef',\n title: `@${i18n}.fields.secret-ref.title`,\n groupId: 'connection',\n schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'config',\n title: `@${i18n}.fields.config.title`,\n groupId: 'connection',\n schema: { dataType: 'object', visible: false, interface: { type: 'json' } },\n },\n {\n name: 'isRevoked',\n title: `@${i18n}.fields.is-revoked.title`,\n groupId: 'status',\n schema: { dataType: 'boolean', defaultValue: false, interface: { type: AXPWidgetsCatalog.toggle }, readonly: true },\n },\n {\n name: 'isDisabled',\n title: `@${i18n}.fields.is-disabled.title`,\n groupId: 'status',\n schema: { dataType: 'boolean', defaultValue: false, interface: { type: AXPWidgetsCatalog.toggle } },\n },\n ],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'displayName', dir: 'asc' }] })],\n },\n create: { sections: [{ id: 'basic-info' }, { id: 'connection' }] },\n update: { sections: [{ id: 'basic-info' }, { id: 'connection' }, { id: 'status' }] },\n single: {\n title: '{{ displayName }}',\n sections: [{ id: 'basic-info' }, { id: 'connection' }, { id: 'status' }],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,4BAA4B,GAAA;IAChD,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,gCAAA,CAAkC;AAExE,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,IAAI;AACpD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,KAAK;AACtD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,IAAI;AACpD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,KAAK;AAC3D,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,WAAW;YAC7D,YAAY,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE;AAC9E,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA;AACE,gBAAA,IAAI,EAAE,eAAe;AACrB,gBAAA,OAAO,EAAE;AACP,oBAAA,MAAM,EAAE;wBACN,oBAAoB;wBACpB,yBAAyB;wBACzB,kBAAkB;wBAClB,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,KAAK,EAAE,QAAQ;AAChB,iBAAA;AACF,aAAA;YACD,EAAE,IAAI,EAAE,SAAS,EAAE;AACpB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE;YAClE,EAAE,EAAE,EAAE,YAAY,EAAE,KA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BAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-BT3-xrGZ.mjs';
|
|
4
|
+
|
|
5
|
+
//#region ---- Entity Factory ----
|
|
6
|
+
async function factoryIntegrationOAuthState() {
|
|
7
|
+
const i18n = `${RootConfig.config.i18n}:oauth-states.entities.oauth-state`;
|
|
8
|
+
const entityDef = {
|
|
9
|
+
module: RootConfig.module.name,
|
|
10
|
+
name: RootConfig.entities.integrationOAuthState.name,
|
|
11
|
+
title: RootConfig.entities.integrationOAuthState.title,
|
|
12
|
+
icon: RootConfig.entities.integrationOAuthState.icon,
|
|
13
|
+
formats: {
|
|
14
|
+
individual: RootConfig.entities.integrationOAuthState.title,
|
|
15
|
+
plural: RootConfig.entities.integrationOAuthState.titlePlural,
|
|
16
|
+
},
|
|
17
|
+
plugins: [
|
|
18
|
+
{
|
|
19
|
+
name: 'unique-fields',
|
|
20
|
+
options: { fields: 'state', scope: 'global' },
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
24
|
+
properties: [
|
|
25
|
+
{
|
|
26
|
+
name: 'id',
|
|
27
|
+
title: '@general:terms.common.id',
|
|
28
|
+
groupId: 'basic-info',
|
|
29
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'state',
|
|
33
|
+
title: `@${i18n}.fields.state.title`,
|
|
34
|
+
groupId: 'basic-info',
|
|
35
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'providerId',
|
|
39
|
+
title: `@${i18n}.fields.provider-id.title`,
|
|
40
|
+
groupId: 'basic-info',
|
|
41
|
+
schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'expiresAt',
|
|
45
|
+
title: `@${i18n}.fields.expires-at.title`,
|
|
46
|
+
groupId: 'basic-info',
|
|
47
|
+
schema: { dataType: 'datetime', interface: { type: AXPWidgetsCatalog.dateTime }, readonly: true },
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'codeVerifier',
|
|
51
|
+
title: `@${i18n}.fields.code-verifier.title`,
|
|
52
|
+
groupId: 'basic-info',
|
|
53
|
+
schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'redirectUri',
|
|
57
|
+
title: `@${i18n}.fields.redirect-uri.title`,
|
|
58
|
+
groupId: 'basic-info',
|
|
59
|
+
schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'consumedAt',
|
|
63
|
+
title: `@${i18n}.fields.consumed-at.title`,
|
|
64
|
+
groupId: 'basic-info',
|
|
65
|
+
schema: { dataType: 'datetime', visible: false, interface: { type: AXPWidgetsCatalog.dateTime }, readonly: true },
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
interfaces: {
|
|
69
|
+
master: {
|
|
70
|
+
list: { views: [createAllQueryView({ sorts: [{ name: 'expiresAt', dir: 'desc' }] })] },
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
return entityDef;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
|
|
78
|
+
export { factoryIntegrationOAuthState };
|
|
79
|
+
//# sourceMappingURL=acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-BPvTE55S.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-integration-management-client-contracts-entity-catalog-integration-oauth-state.entity-BPvTE55S.mjs","sources":["../../../../libs/modules/integration-management/contracts/src/entities/integration-oauth-state/integration-oauth-state.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Entity Factory ----\n\nexport async function factoryIntegrationOAuthState(): Promise<AXPEntity | null> {\n const i18n = `${RootConfig.config.i18n}:oauth-states.entities.oauth-state`;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.integrationOAuthState.name,\n title: RootConfig.entities.integrationOAuthState.title,\n icon: RootConfig.entities.integrationOAuthState.icon,\n formats: {\n individual: RootConfig.entities.integrationOAuthState.title,\n plural: RootConfig.entities.integrationOAuthState.titlePlural,\n },\n plugins: [\n {\n name: 'unique-fields',\n options: { fields: 'state', scope: 'global' },\n },\n ],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'state',\n title: `@${i18n}.fields.state.title`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'providerId',\n title: `@${i18n}.fields.provider-id.title`,\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'expiresAt',\n title: `@${i18n}.fields.expires-at.title`,\n groupId: 'basic-info',\n schema: { dataType: 'datetime', interface: { type: AXPWidgetsCatalog.dateTime }, readonly: true },\n },\n {\n name: 'codeVerifier',\n title: `@${i18n}.fields.code-verifier.title`,\n groupId: 'basic-info',\n schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'redirectUri',\n title: `@${i18n}.fields.redirect-uri.title`,\n groupId: 'basic-info',\n schema: { dataType: 'string', visible: false, interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'consumedAt',\n title: `@${i18n}.fields.consumed-at.title`,\n groupId: 'basic-info',\n schema: { dataType: 'datetime', visible: false, interface: { type: AXPWidgetsCatalog.dateTime }, readonly: true },\n },\n ],\n interfaces: {\n master: {\n list: { views: [createAllQueryView({ sorts: [{ name: 'expiresAt', dir: 'desc' }] })] },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,4BAA4B,GAAA;IAChD,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,kCAAA,CAAoC;AAE1E,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,IAAI;AACpD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,KAAK;AACtD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,IAAI;AACpD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,KAAK;AAC3D,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,WAAW;AAC9D,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA;AACE,gBAAA,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,EAAE,MAAM,EAAE,OA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AAM,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;AACvF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
package/fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { i as integrationManagementLocalEntityCatalog } from './acorex-platform-module-integration-management-client-contracts-entity-catalog-acorex-platform-module-integration-management-client-contracts-entity-catalog-BT3-xrGZ.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AXDataSource } from '@acorex/cdk/common';
|
|
2
2
|
import * as i6 from '@acorex/components/decorators';
|
|
3
3
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import * as i3$1 from '@acorex/core/translation';
|
|
4
|
+
import { AXLookupComponent } from '@acorex/components/lookup';
|
|
5
|
+
import * as i3 from '@acorex/core/translation';
|
|
7
6
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
8
7
|
import { AXPIntegrationDomainRegistryService } from '@acorex-platform/framework-client/common';
|
|
9
8
|
import { AXPLogoComponent } from '@acorex-platform/framework-client/core';
|
|
@@ -26,8 +25,8 @@ class AXMIntegrationRefFilterWidgetEditComponent extends AXPValueWidgetComponent
|
|
|
26
25
|
this.translateService = inject(AXTranslationService);
|
|
27
26
|
//#endregion
|
|
28
27
|
//#region ----- View Children -----
|
|
29
|
-
this.
|
|
30
|
-
...(ngDevMode ? [{ debugName: "
|
|
28
|
+
this.lookup = viewChild('lookup', /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "lookup" }] : /* istanbul ignore next */ []));
|
|
31
30
|
//#endregion
|
|
32
31
|
//#region ----- Computed Properties -----
|
|
33
32
|
this.value = computed(() => this.getValue()?.value, /* @ts-ignore */
|
|
@@ -76,7 +75,7 @@ class AXMIntegrationRefFilterWidgetEditComponent extends AXPValueWidgetComponent
|
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
focus() {
|
|
79
|
-
this.
|
|
78
|
+
this.lookup()?.focus();
|
|
80
79
|
}
|
|
81
80
|
async loadProviderItems() {
|
|
82
81
|
if (this.providerItemsCache) {
|
|
@@ -146,7 +145,7 @@ class AXMIntegrationRefFilterWidgetEditComponent extends AXPValueWidgetComponent
|
|
|
146
145
|
return [];
|
|
147
146
|
}
|
|
148
147
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMIntegrationRefFilterWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
149
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMIntegrationRefFilterWidgetEditComponent, isStandalone: true, selector: "axm-integration-ref-filter-widget-edit", viewQueries: [{ propertyName: "
|
|
148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMIntegrationRefFilterWidgetEditComponent, isStandalone: true, selector: "axm-integration-ref-filter-widget-edit", viewQueries: [{ propertyName: "lookup", first: true, predicate: ["lookup"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"flex w-full items-center\">\n <ax-lookup\n #lookup\n class=\"w-full\"\n mode=\"multi-select\"\n textField=\"title\"\n valueField=\"id\"\n [searchable]=\"false\"\n [placeholder]=\"\n ('@integration-management:widgets.integration-ref.filter.placeholder' | translate | async) ?? ''\n \"\n [dataSource]=\"dataSource\"\n [ngModel]=\"value()\"\n (onValueChanged)=\"handleValueChange($event)\"\n [itemTemplate]=\"itemTemplate\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-lookup>\n\n <ng-template #itemTemplate let-item>\n <div class=\"flex w-full items-center gap-2\">\n @if (item.logoKey) {\n <axp-logo [logoKey]=\"item.logoKey\" appearance=\"colored\" [size]=\"16\" />\n }\n <!-- ----- Fallback FA icon when provider has no logoKey ----- -->\n @else if (item.icon) {\n <i [class]=\"item.icon\" class=\"shrink-0 text-sm\"></i>\n }\n <span class=\"truncate\">{{ item.title }}</span>\n </div>\n </ng-template>\n</div>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i6.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: AXLookupComponent, selector: "ax-lookup", inputs: ["name", "mode", "dataSource", "treeDataSource", "valueField", "textField", "disabledField", "columns", "treeParentField", "hasChildrenField", "searchable", "adaptivityEnabled", "caption", "alternate", "searchPlaceholder", "placeholder", "disabled", "readonly", "look", "itemHeight", "maxVisibleItems", "treeSelectionBehavior", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "value", "valueItems"], outputs: ["lookChange", "valueChange", "onValueChanged", "onSelectionChanged", "onFocus", "onBlur", "onItemClick", "onItemSelected", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPLogoComponent, selector: "axp-logo", inputs: ["logoKey", "appearance", "size", "format"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
150
149
|
}
|
|
151
150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMIntegrationRefFilterWidgetEditComponent, decorators: [{
|
|
152
151
|
type: Component,
|
|
@@ -154,11 +153,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
154
153
|
AsyncPipe,
|
|
155
154
|
FormsModule,
|
|
156
155
|
AXDecoratorModule,
|
|
157
|
-
|
|
156
|
+
AXLookupComponent,
|
|
158
157
|
AXTranslationModule,
|
|
159
158
|
AXPLogoComponent,
|
|
160
|
-
], template: "<div class=\"flex w-full items-center\">\n <ax-
|
|
161
|
-
}], propDecorators: {
|
|
159
|
+
], template: "<div class=\"flex w-full items-center\">\n <ax-lookup\n #lookup\n class=\"w-full\"\n mode=\"multi-select\"\n textField=\"title\"\n valueField=\"id\"\n [searchable]=\"false\"\n [placeholder]=\"\n ('@integration-management:widgets.integration-ref.filter.placeholder' | translate | async) ?? ''\n \"\n [dataSource]=\"dataSource\"\n [ngModel]=\"value()\"\n (onValueChanged)=\"handleValueChange($event)\"\n [itemTemplate]=\"itemTemplate\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-lookup>\n\n <ng-template #itemTemplate let-item>\n <div class=\"flex w-full items-center gap-2\">\n @if (item.logoKey) {\n <axp-logo [logoKey]=\"item.logoKey\" appearance=\"colored\" [size]=\"16\" />\n }\n <!-- ----- Fallback FA icon when provider has no logoKey ----- -->\n @else if (item.icon) {\n <i [class]=\"item.icon\" class=\"shrink-0 text-sm\"></i>\n }\n <span class=\"truncate\">{{ item.title }}</span>\n </div>\n </ng-template>\n</div>\n" }]
|
|
160
|
+
}], propDecorators: { lookup: [{ type: i0.ViewChild, args: ['lookup', { isSignal: true }] }] } });
|
|
162
161
|
|
|
163
162
|
export { AXMIntegrationRefFilterWidgetEditComponent };
|
|
164
|
-
//# sourceMappingURL=acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-
|
|
163
|
+
//# sourceMappingURL=acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-D9kaBnug.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-D9kaBnug.mjs","sources":["../../../../libs/modules/integration-management/client/src/lib/features/widgets/integration-ref/integration-ref-filter-widget-edit.component.ts","../../../../libs/modules/integration-management/client/src/lib/features/widgets/integration-ref/integration-ref-filter-widget-edit.component.html"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXDataSource, AXValueChangedEvent } from '@acorex/cdk/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLookupComponent } from '@acorex/components/lookup';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPIntegrationDomainRegistryService } from '@acorex-platform/framework-client/common';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { isArray, isString } from 'lodash';\n\n//#endregion\n\n//#region ----- Types -----\n\ninterface IntegrationSourceFilterItem {\n id: string;\n title: string;\n logoKey?: string;\n icon?: string;\n}\n\ninterface IntegrationSourceFilterValue {\n value?: string | string[] | null;\n operation?: { type: string };\n displayText?: string;\n}\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n selector: 'axm-integration-ref-filter-widget-edit',\n templateUrl: './integration-ref-filter-widget-edit.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n AsyncPipe,\n FormsModule,\n AXDecoratorModule,\n AXLookupComponent,\n AXTranslationModule,\n AXPLogoComponent,\n ],\n})\nexport class AXMIntegrationRefFilterWidgetEditComponent extends AXPValueWidgetComponent<IntegrationSourceFilterValue | null> {\n //#region ----- Services & Dependencies -----\n\n private readonly domainRegistry = inject(AXPIntegrationDomainRegistryService);\n private readonly translateService = inject(AXTranslationService);\n\n //#endregion\n\n //#region ----- View Children -----\n\n protected readonly lookup = viewChild<AXLookupComponent>('lookup');\n\n //#endregion\n\n //#region ----- Computed Properties -----\n\n protected readonly value = computed(() => this.getValue()?.value);\n\n //#endregion\n\n //#region ----- Data Source -----\n\n protected readonly dataSource = new AXDataSource<IntegrationSourceFilterItem>({\n load: async () => {\n const items = await this.loadProviderItems();\n return { items, total: items.length };\n },\n byKey: async (id: unknown) => {\n const key = String(id ?? '');\n if (!key) {\n return { id: '', title: '' };\n }\n const items = await this.loadProviderItems();\n return items.find((item) => item.id === key) ?? { id: key, title: key };\n },\n pageSize: 100,\n key: 'id',\n });\n\n //#endregion\n\n //#region ----- Event Handlers -----\n\n protected handleValueChange(event: AXValueChangedEvent): void {\n if (!event.isUserInteraction) {\n return;\n }\n\n const selected = this.normalizeSelectedIds(event.value);\n if (selected.length === 0) {\n this.setValue(null);\n return;\n }\n\n const displayText = this.resolveDisplayTextSync(selected);\n this.setValue({\n value: selected.length === 1 ? selected[0] : selected,\n operation: { type: selected.length === 1 ? 'equal' : 'in' },\n displayText,\n });\n\n if (!displayText) {\n void this.enrichDisplayText(selected);\n }\n }\n\n focus(): void {\n this.lookup()?.focus();\n }\n\n //#endregion\n\n //#region ----- Helpers -----\n\n private providerItemsCache: IntegrationSourceFilterItem[] | null = null;\n\n private async loadProviderItems(): Promise<IntegrationSourceFilterItem[]> {\n if (this.providerItemsCache) {\n return this.providerItemsCache;\n }\n\n const providers = await this.domainRegistry.listProviders();\n const items: IntegrationSourceFilterItem[] = [];\n\n for (const provider of providers) {\n const title = provider.displayName?.startsWith('@')\n ? await this.translateService.translateAsync(provider.displayName)\n : provider.displayName;\n items.push({\n id: provider.id,\n title: title || provider.id,\n logoKey: provider.logoKey,\n icon: provider.icon,\n });\n }\n\n items.sort((a, b) => a.title.localeCompare(b.title));\n this.providerItemsCache = items;\n return items;\n }\n\n private resolveDisplayTextSync(selected: string[]): string {\n const cached = this.providerItemsCache;\n if (!cached) {\n return selected.join(', ');\n }\n return selected.map((id) => cached.find((item) => item.id === id)?.title ?? id).join(', ');\n }\n\n private async enrichDisplayText(selected: string[]): Promise<void> {\n const items = await this.loadProviderItems();\n const current = this.getValue();\n if (!current?.value) {\n return;\n }\n const titles = selected.map((id) => items.find((item) => item.id === id)?.title ?? id).join(', ');\n this.setValue({\n ...current,\n displayText: titles,\n });\n }\n\n private normalizeSelectedIds(raw: unknown): string[] {\n if (raw == null || raw === '') {\n return [];\n }\n if (isArray(raw)) {\n return raw\n .map((item) => {\n if (isString(item)) {\n return item.trim();\n }\n if (item && typeof item === 'object' && 'id' in item) {\n return String((item as { id: unknown }).id ?? '').trim();\n }\n return String(item ?? '').trim();\n })\n .filter((id) => id.length > 0);\n }\n if (isString(raw)) {\n const id = raw.trim();\n return id ? [id] : [];\n }\n if (raw && typeof raw === 'object' && 'id' in raw) {\n const id = String((raw as { id: unknown }).id ?? '').trim();\n return id ? [id] : [];\n }\n return [];\n }\n\n //#endregion\n}\n\n//#endregion\n","<div class=\"flex w-full items-center\">\n <ax-lookup\n #lookup\n class=\"w-full\"\n mode=\"multi-select\"\n textField=\"title\"\n valueField=\"id\"\n [searchable]=\"false\"\n [placeholder]=\"\n ('@integration-management:widgets.integration-ref.filter.placeholder' | translate | async) ?? ''\n \"\n [dataSource]=\"dataSource\"\n [ngModel]=\"value()\"\n (onValueChanged)=\"handleValueChange($event)\"\n [itemTemplate]=\"itemTemplate\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-lookup>\n\n <ng-template #itemTemplate let-item>\n <div class=\"flex w-full items-center gap-2\">\n @if (item.logoKey) {\n <axp-logo [logoKey]=\"item.logoKey\" appearance=\"colored\" [size]=\"16\" />\n }\n <!-- ----- Fallback FA icon when provider has no logoKey ----- -->\n @else if (item.icon) {\n <i [class]=\"item.icon\" class=\"shrink-0 text-sm\"></i>\n }\n <span class=\"truncate\">{{ item.title }}</span>\n </div>\n </ng-template>\n</div>\n"],"names":["i2"],"mappings":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@ -0,0 +1,31 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-integration-management-client/contracts';
|
|
3
|
+
export { integrationManagementLocalEntityCatalog } from '@acorex-platform/module-integration-management-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers integration-management 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 provideIntegrationManagementLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.integrationApplication.name]: () => import('@acorex-platform/module-integration-management-client/contracts/entities/integration-application').then((m) => m.factoryIntegrationApplication()),
|
|
19
|
+
[RootConfig.entities.integrationConnection.name]: () => import('@acorex-platform/module-integration-management-client/contracts/entities/integration-connection').then((m) => m.factoryIntegrationConnection()),
|
|
20
|
+
[RootConfig.entities.integrationOAuthState.name]: () => import('@acorex-platform/module-integration-management-client/contracts/entities/integration-oauth-state').then((m) => m.factoryIntegrationOAuthState()),
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Generated bundle index. Do not edit.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
export { provideIntegrationManagementLocalEntities };
|
|
31
|
+
//# sourceMappingURL=acorex-platform-module-integration-management-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-integration-management-client-local-entities.mjs","sources":["../../../../libs/modules/integration-management/client/src/lib/provide-local-entities.ts","../../../../libs/modules/integration-management/client/src/lib/acorex-platform-module-integration-management-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-integration-management-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers integration-management 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 provideIntegrationManagementLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.integrationApplication.name]: () =>\n import('@acorex-platform/module-integration-management-client/contracts/entities/integration-application').then((m) => m.factoryIntegrationApplication()),\n [RootConfig.entities.integrationConnection.name]: () =>\n import('@acorex-platform/module-integration-management-client/contracts/entities/integration-connection').then((m) => m.factoryIntegrationConnection()),\n [RootConfig.entities.integrationOAuthState.name]: () =>\n import('@acorex-platform/module-integration-management-client/contracts/entities/integration-oauth-state').then((m) => m.factoryIntegrationOAuthState()),\n },\n });\n}\n\nexport { integrationManagementLocalEntityCatalog } from '@acorex-platform/module-integration-management-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,yCAAyC,GAAA;AACvD,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,sBAAsB,CAAC,IAAI,GAAG,MACjD,OAAO,kGAAkG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,EAAE,CAAC;AAC3J,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,IAAI,GAAG,MAChD,OAAO,iGAAiG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,EAAE,CAAC;AACzJ,YAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,qBAAqB,CAAC,IAAI,GAAG,MAChD,OAAO,kGAAkG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,EAAE,CAAC;AAC3J,SAAA;AACF,KAAA,CAAC;AACJ;AAIA;;AC/BA;;AAEG;;;;"}
|
|
@@ -617,7 +617,7 @@ const AXMIntegrationRefFilterWidget = {
|
|
|
617
617
|
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],
|
|
618
618
|
components: {
|
|
619
619
|
edit: {
|
|
620
|
-
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-
|
|
620
|
+
component: () => import('./acorex-platform-module-integration-management-client-integration-ref-filter-widget-edit.component-D9kaBnug.mjs').then((c) => c.AXMIntegrationRefFilterWidgetEditComponent),
|
|
621
621
|
},
|
|
622
622
|
},
|
|
623
623
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/module-integration-management-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
@@ -22,6 +22,26 @@
|
|
|
22
22
|
"./contracts": {
|
|
23
23
|
"types": "./types/acorex-platform-module-integration-management-client-contracts.d.ts",
|
|
24
24
|
"default": "./fesm2022/acorex-platform-module-integration-management-client-contracts.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./contracts/entities/integration-application": {
|
|
27
|
+
"types": "./types/acorex-platform-module-integration-management-client-contracts-entities-integration-application.d.ts",
|
|
28
|
+
"default": "./fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-application.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./contracts/entities/integration-connection": {
|
|
31
|
+
"types": "./types/acorex-platform-module-integration-management-client-contracts-entities-integration-connection.d.ts",
|
|
32
|
+
"default": "./fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-connection.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./contracts/entities/integration-oauth-state": {
|
|
35
|
+
"types": "./types/acorex-platform-module-integration-management-client-contracts-entities-integration-oauth-state.d.ts",
|
|
36
|
+
"default": "./fesm2022/acorex-platform-module-integration-management-client-contracts-entities-integration-oauth-state.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./contracts/entity-catalog": {
|
|
39
|
+
"types": "./types/acorex-platform-module-integration-management-client-contracts-entity-catalog.d.ts",
|
|
40
|
+
"default": "./fesm2022/acorex-platform-module-integration-management-client-contracts-entity-catalog.mjs"
|
|
41
|
+
},
|
|
42
|
+
"./local-entities": {
|
|
43
|
+
"types": "./types/acorex-platform-module-integration-management-client-local-entities.d.ts",
|
|
44
|
+
"default": "./fesm2022/acorex-platform-module-integration-management-client-local-entities.mjs"
|
|
25
45
|
}
|
|
26
46
|
},
|
|
27
47
|
"type": "module"
|