@acorex-platform/extension-project-management-core-client 1.0.2 → 2.0.0-beta.1
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-extension-project-management-core-client-acorex-platform-extension-project-management-core-client-BzMZvAtj.mjs +351 -0
- package/fesm2022/acorex-platform-extension-project-management-core-client-acorex-platform-extension-project-management-core-client-BzMZvAtj.mjs.map +1 -0
- package/fesm2022/acorex-platform-extension-project-management-core-client-contracts.mjs +2 -1
- package/fesm2022/acorex-platform-extension-project-management-core-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-extension-project-management-core-client-project-integration-picker.component-DaS0H7S8.mjs +67 -0
- package/fesm2022/acorex-platform-extension-project-management-core-client-project-integration-picker.component-DaS0H7S8.mjs.map +1 -0
- package/fesm2022/acorex-platform-extension-project-management-core-client.mjs +1 -103
- package/fesm2022/acorex-platform-extension-project-management-core-client.mjs.map +1 -1
- package/i18n/en-AU/extensions-project-management.json +4 -0
- package/i18n/en-US/extensions-project-management.json +4 -0
- package/i18n/fa-IR/extensions-project-management.json +4 -0
- package/package.json +3 -2
- package/types/acorex-platform-extension-project-management-core-client-contracts.d.ts +2 -1
- package/types/acorex-platform-extension-project-management-core-client.d.ts +44 -1
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { AXE_PM_DOMAIN_ID, RootConfig as RootConfig$2, AXEPMExtensionSettings } from '@acorex-platform/extension-project-management-core-client/contracts';
|
|
2
|
+
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
3
|
+
import { AXPIntegrationDomainRegistryService, extractRequestErrorInfo, platformErrorI18nKey, AXP_SETTING_DEFINITION_PROVIDER, AXP_INTEGRATION_DOMAIN_PROVIDER } from '@acorex-platform/framework-client/common';
|
|
4
|
+
import { AXP_INTEGRATION_CONNECTION_SCOPE, AXP_INTEGRATION_CONNECTION_STATUS, AXP_INTEGRATION_CAPABILITY, AXP_INTEGRATION_CATEGORY, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
5
|
+
import { AXMIntegrationConnectionManager } from '@acorex-platform/module-integration-management-client';
|
|
6
|
+
import { AXPAdministrationPermissionKeys } from '@acorex-platform/module-integration-management-client/contracts';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { inject, Injectable, Injector, NgModule } from '@angular/core';
|
|
9
|
+
import { RootConfig, AXM_INTEGRATION_RESOURCE_JOB } from '@acorex-platform/module-integration-management-client/contracts';
|
|
10
|
+
import { RootConfig as RootConfig$1 } from '@acorex-platform/module-project-management-client/contracts';
|
|
11
|
+
import { AXToastService } from '@acorex/components/toast';
|
|
12
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
|
13
|
+
import { AXPCommandService } from '@acorex-platform/framework-client/runtime';
|
|
14
|
+
import { AXM_PROJECT_INTEGRATION_ACTIONS, AXM_PROJECT_INTEGRATION_AVAILABILITY } from '@acorex-platform/module-project-management-client';
|
|
15
|
+
import { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex-platform/framework-client/core';
|
|
16
|
+
import { AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/layout/widget-core';
|
|
17
|
+
import { AXP_TRIGGERS_PROPERTY } from '@acorex-platform/framework-client/layout/widgets';
|
|
18
|
+
import { AXPWidgetGroupEnum } from '@acorex-platform/framework-shared/widget-core';
|
|
19
|
+
|
|
20
|
+
//#region ----- Imports -----
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ----- Constants -----
|
|
23
|
+
const EXPRESSION_SCOPE = 'projectIntegrationAvailability';
|
|
24
|
+
//#endregion
|
|
25
|
+
class AXEProjectIntegrationAvailabilityService {
|
|
26
|
+
constructor() {
|
|
27
|
+
//#region ----- Services & Dependencies -----
|
|
28
|
+
this.session = inject(AXPSessionService);
|
|
29
|
+
this.registry = inject(AXPIntegrationDomainRegistryService);
|
|
30
|
+
this.connections = inject(AXMIntegrationConnectionManager);
|
|
31
|
+
this.pendingReads = new Map();
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ----- Provider Availability -----
|
|
35
|
+
/** Returns registered, enabled project provider IDs usable by the current session. */
|
|
36
|
+
async listAvailableProjectIntegrationProviders() {
|
|
37
|
+
const tenantId = this.session.tenant?.id;
|
|
38
|
+
const applicationId = this.session.application?.id;
|
|
39
|
+
const userId = this.session.user?.id;
|
|
40
|
+
const permission = AXPAdministrationPermissionKeys.ManageIntegrationActions;
|
|
41
|
+
const available = new Set();
|
|
42
|
+
if (!tenantId || !applicationId || !userId || !this.session.authorize(permission)) {
|
|
43
|
+
return available;
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
const providers = await this.registry.listProvidersByDomain(AXE_PM_DOMAIN_ID);
|
|
47
|
+
const isCurrentScope = () => this.session.tenant?.id === tenantId &&
|
|
48
|
+
this.session.application?.id === applicationId &&
|
|
49
|
+
this.session.user?.id === userId &&
|
|
50
|
+
this.session.authorize(permission);
|
|
51
|
+
if (!isCurrentScope() || !providers.some((provider) => this.isEnabled(provider))) {
|
|
52
|
+
return available;
|
|
53
|
+
}
|
|
54
|
+
const connections = await this.readTenantConnections(JSON.stringify([tenantId, applicationId, userId]));
|
|
55
|
+
if (!isCurrentScope()) {
|
|
56
|
+
return available;
|
|
57
|
+
}
|
|
58
|
+
const enabledProviders = new Set(providers.filter((provider) => this.isEnabled(provider)).map(({ id }) => id));
|
|
59
|
+
for (const connection of connections) {
|
|
60
|
+
if (enabledProviders.has(connection.providerId) &&
|
|
61
|
+
connection.connectionScope === AXP_INTEGRATION_CONNECTION_SCOPE.Tenant &&
|
|
62
|
+
connection.scopeInfo?.tenantId === tenantId &&
|
|
63
|
+
connection.scopeInfo.applicationId === applicationId &&
|
|
64
|
+
connection.status === AXP_INTEGRATION_CONNECTION_STATUS.Connected &&
|
|
65
|
+
!connection.isDisabled &&
|
|
66
|
+
!connection.isRevoked) {
|
|
67
|
+
available.add(connection.providerId);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
// The action is optional; a provider or connection read failure must not expose it.
|
|
73
|
+
return new Set();
|
|
74
|
+
}
|
|
75
|
+
return available;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ----- Scoped Connection Reads -----
|
|
79
|
+
isEnabled(provider) {
|
|
80
|
+
return (this.session.isModuleEnabled(provider.module) &&
|
|
81
|
+
provider.connectionScopes.includes(AXP_INTEGRATION_CONNECTION_SCOPE.Tenant));
|
|
82
|
+
}
|
|
83
|
+
readTenantConnections(scopeKey) {
|
|
84
|
+
const pending = this.pendingReads.get(scopeKey);
|
|
85
|
+
if (pending) {
|
|
86
|
+
return pending;
|
|
87
|
+
}
|
|
88
|
+
// One read for concurrently evaluated actions, without caching availability between evaluations.
|
|
89
|
+
const read = this.connections.listForCurrentUser(AXP_INTEGRATION_CONNECTION_SCOPE.Tenant).finally(() => {
|
|
90
|
+
this.pendingReads.delete(scopeKey);
|
|
91
|
+
});
|
|
92
|
+
this.pendingReads.set(scopeKey, read);
|
|
93
|
+
return read;
|
|
94
|
+
}
|
|
95
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationAvailabilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
96
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationAvailabilityService, providedIn: 'root' }); }
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationAvailabilityService, decorators: [{
|
|
99
|
+
type: Injectable,
|
|
100
|
+
args: [{ providedIn: 'root' }]
|
|
101
|
+
}] });
|
|
102
|
+
class AXEProjectIntegrationAvailabilityScopeProvider {
|
|
103
|
+
constructor() {
|
|
104
|
+
this.injector = inject(Injector);
|
|
105
|
+
}
|
|
106
|
+
async provide(context) {
|
|
107
|
+
context.addScope(EXPRESSION_SCOPE, {
|
|
108
|
+
isAvailable: async (providerId) => {
|
|
109
|
+
const availability = this.injector.get(AXEProjectIntegrationAvailabilityService);
|
|
110
|
+
return (await availability.listAvailableProjectIntegrationProviders()).has(providerId);
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationAvailabilityScopeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
115
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationAvailabilityScopeProvider }); }
|
|
116
|
+
}
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationAvailabilityScopeProvider, decorators: [{
|
|
118
|
+
type: Injectable
|
|
119
|
+
}] });
|
|
120
|
+
function hideUnavailableProjectIntegrationProvider(providerId) {
|
|
121
|
+
return `{{ !(await ${EXPRESSION_SCOPE}.isAvailable(${JSON.stringify(providerId)})) }}`;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//#region ----- Imports -----
|
|
125
|
+
//#endregion
|
|
126
|
+
/** Returns null only if the accessible job is unlinked and can proceed to import confirmation. */
|
|
127
|
+
async function resolveJobDocProject(entities, providerId, remoteRecordId, activeConnectionIds) {
|
|
128
|
+
const notFound = { success: false, message: { text: '@general:messages.network.not-found.description' } };
|
|
129
|
+
try {
|
|
130
|
+
// Re-read under the current session: the selector row and cached linked flag can be stale.
|
|
131
|
+
const job = await entities
|
|
132
|
+
.withEntity(RootConfig.module.name, RootConfig.entities.integrationRemoteRecord.name)
|
|
133
|
+
.data()
|
|
134
|
+
.findBy('id', remoteRecordId, {
|
|
135
|
+
fields: ['providerId', 'resourceType', 'remoteId', 'isActive', 'isLinked'],
|
|
136
|
+
forUpdate: true,
|
|
137
|
+
});
|
|
138
|
+
if (!job?.remoteId || !job.isActive || job.resourceType !== AXM_INTEGRATION_RESOURCE_JOB ||
|
|
139
|
+
!activeConnectionIds.includes(job.providerId)) {
|
|
140
|
+
return notFound;
|
|
141
|
+
}
|
|
142
|
+
const project = await entities
|
|
143
|
+
.withEntity(RootConfig$1.module.name, RootConfig$1.entities.project.name)
|
|
144
|
+
.data()
|
|
145
|
+
.findBy({
|
|
146
|
+
logic: 'and',
|
|
147
|
+
filters: [
|
|
148
|
+
{ field: 'integrationRef.source', operator: { type: 'equal' }, value: providerId },
|
|
149
|
+
{ field: 'integrationRef.resourceType', operator: { type: 'equal' }, value: AXM_INTEGRATION_RESOURCE_JOB },
|
|
150
|
+
{ field: 'integrationRef.remoteId', operator: { type: 'equal' }, value: job.remoteId },
|
|
151
|
+
{ field: 'integrationRef.connectionId', operator: { type: 'equal' }, value: job.providerId },
|
|
152
|
+
],
|
|
153
|
+
}, { fields: ['id'], forUpdate: true });
|
|
154
|
+
if (project?.id) {
|
|
155
|
+
return { success: true, kind: 'object', data: { platformProjectId: project.id } };
|
|
156
|
+
}
|
|
157
|
+
return job.isLinked === false ? null : notFound;
|
|
158
|
+
}
|
|
159
|
+
catch (error) {
|
|
160
|
+
const info = extractRequestErrorInfo(error);
|
|
161
|
+
return {
|
|
162
|
+
success: false,
|
|
163
|
+
message: { text: platformErrorI18nKey(info?.code) ?? '@general:widgets.lookup.column.load-failed' },
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const PROJECT_INTEGRATION_PICKER = 'project-integration-picker';
|
|
169
|
+
const PROJECT_INTEGRATION_PICKER_TITLE = '@extensions-project-management:integration.picker.title';
|
|
170
|
+
|
|
171
|
+
//#region ----- Imports -----
|
|
172
|
+
//#endregion
|
|
173
|
+
class AXEProjectIntegrationPickerService {
|
|
174
|
+
constructor() {
|
|
175
|
+
//#region ----- Services & Dependencies -----
|
|
176
|
+
this.actions = inject(AXM_PROJECT_INTEGRATION_ACTIONS, { optional: true }) ?? [];
|
|
177
|
+
this.availability = inject(AXM_PROJECT_INTEGRATION_AVAILABILITY, { optional: true });
|
|
178
|
+
this.session = inject(AXPSessionService);
|
|
179
|
+
this.registry = inject(AXPIntegrationDomainRegistryService);
|
|
180
|
+
this.commands = inject(AXPCommandService);
|
|
181
|
+
this.toasts = inject(AXToastService);
|
|
182
|
+
this.translation = inject(AXTranslationService);
|
|
183
|
+
}
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region ----- Discovery & Selection -----
|
|
186
|
+
async createWidget() {
|
|
187
|
+
const providers = await this.listOptions();
|
|
188
|
+
return providers.length ? { type: PROJECT_INTEGRATION_PICKER, options: { providers } } : undefined;
|
|
189
|
+
}
|
|
190
|
+
async listOptions() {
|
|
191
|
+
return Promise.all((await this.listAvailableActions()).map(async ({ providerId, title }) => {
|
|
192
|
+
const provider = await this.registry.getProvider(providerId).catch(() => null);
|
|
193
|
+
return { providerId, title, logoKey: provider?.logoKey };
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
async selectProject(providerId) {
|
|
197
|
+
try {
|
|
198
|
+
const action = (await this.listAvailableActions()).find(candidate => candidate.providerId === providerId);
|
|
199
|
+
if (!action)
|
|
200
|
+
return;
|
|
201
|
+
const result = await this.commands.execute(action.command, { selectForJobDoc: true });
|
|
202
|
+
if (result?.success)
|
|
203
|
+
return result.kind === 'object' ? result.data?.platformProjectId || undefined : undefined;
|
|
204
|
+
}
|
|
205
|
+
catch {
|
|
206
|
+
// Keep selection unchanged on a command failure.
|
|
207
|
+
}
|
|
208
|
+
const content = await this.translation.translateAsync('@extensions-project-management:integration.picker.failed');
|
|
209
|
+
this.toasts.show({ color: 'danger', content });
|
|
210
|
+
return undefined;
|
|
211
|
+
}
|
|
212
|
+
async listAvailableActions() {
|
|
213
|
+
const eligible = this.actions.filter(action => this.session.authorize(action.permission) && this.commands.exists(action.command));
|
|
214
|
+
if (!this.availability || !eligible.length)
|
|
215
|
+
return [];
|
|
216
|
+
try {
|
|
217
|
+
const active = await this.availability.listAvailableProjectIntegrationProviders();
|
|
218
|
+
return eligible.filter(({ providerId }) => active.has(providerId));
|
|
219
|
+
}
|
|
220
|
+
catch {
|
|
221
|
+
return [];
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
225
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationPickerService, providedIn: 'root' }); }
|
|
226
|
+
}
|
|
227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationPickerService, decorators: [{
|
|
228
|
+
type: Injectable,
|
|
229
|
+
args: [{ providedIn: 'root' }]
|
|
230
|
+
}] });
|
|
231
|
+
|
|
232
|
+
//#region ----- Imports -----
|
|
233
|
+
//#endregion
|
|
234
|
+
const AXEProjectIntegrationPickerWidget = {
|
|
235
|
+
name: PROJECT_INTEGRATION_PICKER,
|
|
236
|
+
title: PROJECT_INTEGRATION_PICKER_TITLE,
|
|
237
|
+
icon: 'fa-light fa-briefcase',
|
|
238
|
+
categories: [AXP_WIDGETS_ACTION_CATEGORY],
|
|
239
|
+
groups: [AXPWidgetGroupEnum.FormElement],
|
|
240
|
+
type: 'action',
|
|
241
|
+
options: { needLabel: false },
|
|
242
|
+
properties: [AXP_TRIGGERS_PROPERTY],
|
|
243
|
+
components: {
|
|
244
|
+
edit: {
|
|
245
|
+
component: () => import('./acorex-platform-extension-project-management-core-client-project-integration-picker.component-DaS0H7S8.mjs').then(m => m.AXEProjectIntegrationPickerComponent),
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const I18N$1 = `@${RootConfig$2.config.i18n}:integration.domain`;
|
|
251
|
+
class AXEPMIntegrationDomainProvider {
|
|
252
|
+
async provide(context) {
|
|
253
|
+
context.register({
|
|
254
|
+
id: AXE_PM_DOMAIN_ID,
|
|
255
|
+
module: RootConfig$2.module.name,
|
|
256
|
+
displayName: `${I18N$1}.title`,
|
|
257
|
+
description: `${I18N$1}.description`,
|
|
258
|
+
icon: RootConfig$2.module.icon,
|
|
259
|
+
category: AXP_INTEGRATION_CATEGORY.ProjectManagement,
|
|
260
|
+
capabilities: [
|
|
261
|
+
AXP_INTEGRATION_CAPABILITY.IssueTracking,
|
|
262
|
+
AXP_INTEGRATION_CAPABILITY.TimeLogging,
|
|
263
|
+
AXP_INTEGRATION_CAPABILITY.Sync,
|
|
264
|
+
AXP_INTEGRATION_CAPABILITY.Import,
|
|
265
|
+
],
|
|
266
|
+
sortOrder: 20,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMIntegrationDomainProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
270
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMIntegrationDomainProvider }); }
|
|
271
|
+
}
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMIntegrationDomainProvider, decorators: [{
|
|
273
|
+
type: Injectable
|
|
274
|
+
}] });
|
|
275
|
+
|
|
276
|
+
const PM_SETTINGS_GROUP = 'project-management';
|
|
277
|
+
const I18N = `@${RootConfig$2.config.i18n}:settings.project-management`;
|
|
278
|
+
class AXEPMSettingsProvider {
|
|
279
|
+
constructor() {
|
|
280
|
+
this.sessionService = inject(AXPSessionService);
|
|
281
|
+
}
|
|
282
|
+
async provide(context) {
|
|
283
|
+
// Only register when the app edition entitles Project Management (not Platform Console).
|
|
284
|
+
if (!this.sessionService.isModuleEnabled(RootConfig$1.module.name)) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
if (context.hasGroup(PM_SETTINGS_GROUP)) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
context
|
|
291
|
+
.addGroup(PM_SETTINGS_GROUP, `${I18N}.group.nav-title`, `${I18N}.group.description`, RootConfig$2.module.icon, `${I18N}.group.title`, 46)
|
|
292
|
+
.addSection('configuration', `${I18N}.section-title`, `${I18N}.section-description`)
|
|
293
|
+
.addSetting({
|
|
294
|
+
key: AXEPMExtensionSettings.DefaultProjectTypeId,
|
|
295
|
+
title: `${I18N}.default-project-type.title`,
|
|
296
|
+
scope: 'T',
|
|
297
|
+
overridableAt: [],
|
|
298
|
+
isInherited: true,
|
|
299
|
+
widget: {
|
|
300
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
301
|
+
options: {
|
|
302
|
+
entity: `${RootConfig$1.module.name}.${RootConfig$1.entities.projectType.name}`,
|
|
303
|
+
look: 'select',
|
|
304
|
+
multiple: false,
|
|
305
|
+
textField: 'title',
|
|
306
|
+
valueField: 'id',
|
|
307
|
+
hasClearButton: true,
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
description: `${I18N}.default-project-type.description`,
|
|
311
|
+
})
|
|
312
|
+
.endSection()
|
|
313
|
+
.endGroup();
|
|
314
|
+
}
|
|
315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMSettingsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
316
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMSettingsProvider }); }
|
|
317
|
+
}
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMSettingsProvider, decorators: [{
|
|
319
|
+
type: Injectable
|
|
320
|
+
}] });
|
|
321
|
+
|
|
322
|
+
class AXEPMExtensionModule {
|
|
323
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
324
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule }); }
|
|
325
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule, providers: [
|
|
326
|
+
{ provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXEPMSettingsProvider, multi: true },
|
|
327
|
+
{ provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXEPMIntegrationDomainProvider, multi: true },
|
|
328
|
+
{ provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, useClass: AXEProjectIntegrationAvailabilityScopeProvider, multi: true },
|
|
329
|
+
{ provide: AXM_PROJECT_INTEGRATION_AVAILABILITY, useExisting: AXEProjectIntegrationAvailabilityService },
|
|
330
|
+
{ provide: AXP_WIDGET_DEFINITION_PROVIDER, useValue: { getWidgets: () => [AXEProjectIntegrationPickerWidget] }, multi: true },
|
|
331
|
+
] }); }
|
|
332
|
+
}
|
|
333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule, decorators: [{
|
|
334
|
+
type: NgModule,
|
|
335
|
+
args: [{
|
|
336
|
+
providers: [
|
|
337
|
+
{ provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXEPMSettingsProvider, multi: true },
|
|
338
|
+
{ provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXEPMIntegrationDomainProvider, multi: true },
|
|
339
|
+
{ provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, useClass: AXEProjectIntegrationAvailabilityScopeProvider, multi: true },
|
|
340
|
+
{ provide: AXM_PROJECT_INTEGRATION_AVAILABILITY, useExisting: AXEProjectIntegrationAvailabilityService },
|
|
341
|
+
{ provide: AXP_WIDGET_DEFINITION_PROVIDER, useValue: { getWidgets: () => [AXEProjectIntegrationPickerWidget] }, multi: true },
|
|
342
|
+
],
|
|
343
|
+
}]
|
|
344
|
+
}] });
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Generated bundle index. Do not edit.
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
export { AXEProjectIntegrationPickerService as A, PROJECT_INTEGRATION_PICKER_TITLE as P, AXEPMExtensionModule as a, AXEProjectIntegrationAvailabilityService as b, hideUnavailableProjectIntegrationProvider as h, resolveJobDocProject as r };
|
|
351
|
+
//# sourceMappingURL=acorex-platform-extension-project-management-core-client-acorex-platform-extension-project-management-core-client-BzMZvAtj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-project-management-core-client-acorex-platform-extension-project-management-core-client-BzMZvAtj.mjs","sources":["../../../../libs/extensions/project-management/core/client/src/lib/integration/project-integration-availability.service.ts","../../../../libs/extensions/project-management/core/client/src/lib/integration/resolve-job-doc-project.ts","../../../../libs/extensions/project-management/core/client/src/lib/integration/project-integration-picker.types.ts","../../../../libs/extensions/project-management/core/client/src/lib/integration/project-integration-picker.service.ts","../../../../libs/extensions/project-management/core/client/src/lib/integration/project-integration-picker.config.ts","../../../../libs/extensions/project-management/core/client/src/lib/integration/project-management.integration-domain.provider.ts","../../../../libs/extensions/project-management/core/client/src/lib/settings.provider.ts","../../../../libs/extensions/project-management/core/client/src/lib/project-management-extension.module.ts","../../../../libs/extensions/project-management/core/client/src/acorex-platform-extension-project-management-core-client.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { AXE_PM_DOMAIN_ID } from '@acorex-platform/extension-project-management-core-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPIntegrationDomainRegistryService } from '@acorex-platform/framework-client/common';\nimport {\n AXP_INTEGRATION_CONNECTION_SCOPE,\n AXP_INTEGRATION_CONNECTION_STATUS,\n type AXPExpressionEvaluatorScopeProvider,\n type AXPExpressionEvaluatorScopeProviderContext,\n type AXPIntegrationProviderDefinition,\n} from '@acorex-platform/framework-shared/core';\nimport { AXMIntegrationConnectionManager } from '@acorex-platform/module-integration-management-client';\nimport { AXPAdministrationPermissionKeys } from '@acorex-platform/module-integration-management-client/contracts';\nimport { inject, Injectable, Injector } from '@angular/core';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst EXPRESSION_SCOPE = 'projectIntegrationAvailability';\n\n//#endregion\n\n@Injectable({ providedIn: 'root' })\nexport class AXEProjectIntegrationAvailabilityService {\n //#region ----- Services & Dependencies -----\n\n private readonly session = inject(AXPSessionService);\n private readonly registry = inject(AXPIntegrationDomainRegistryService);\n private readonly connections = inject(AXMIntegrationConnectionManager);\n private readonly pendingReads = new Map<string, ReturnType<AXMIntegrationConnectionManager['listForCurrentUser']>>();\n\n //#endregion\n\n //#region ----- Provider Availability -----\n\n /** Returns registered, enabled project provider IDs usable by the current session. */\n async listAvailableProjectIntegrationProviders(): Promise<ReadonlySet<string>> {\n const tenantId = this.session.tenant?.id;\n const applicationId = this.session.application?.id;\n const userId = this.session.user?.id;\n const permission = AXPAdministrationPermissionKeys.ManageIntegrationActions;\n const available = new Set<string>();\n if (!tenantId || !applicationId || !userId || !this.session.authorize(permission)) {\n return available;\n }\n\n try {\n const providers = await this.registry.listProvidersByDomain(AXE_PM_DOMAIN_ID);\n const isCurrentScope = () =>\n this.session.tenant?.id === tenantId &&\n this.session.application?.id === applicationId &&\n this.session.user?.id === userId &&\n this.session.authorize(permission);\n if (!isCurrentScope() || !providers.some((provider) => this.isEnabled(provider))) {\n return available;\n }\n\n const connections = await this.readTenantConnections(JSON.stringify([tenantId, applicationId, userId]));\n if (!isCurrentScope()) {\n return available;\n }\n\n const enabledProviders = new Set(providers.filter((provider) => this.isEnabled(provider)).map(({ id }) => id));\n for (const connection of connections) {\n if (\n enabledProviders.has(connection.providerId) &&\n connection.connectionScope === AXP_INTEGRATION_CONNECTION_SCOPE.Tenant &&\n connection.scopeInfo?.tenantId === tenantId &&\n connection.scopeInfo.applicationId === applicationId &&\n connection.status === AXP_INTEGRATION_CONNECTION_STATUS.Connected &&\n !connection.isDisabled &&\n !connection.isRevoked\n ) {\n available.add(connection.providerId);\n }\n }\n } catch {\n // The action is optional; a provider or connection read failure must not expose it.\n return new Set();\n }\n return available;\n }\n\n //#endregion\n\n //#region ----- Scoped Connection Reads -----\n\n private isEnabled(provider: AXPIntegrationProviderDefinition): boolean {\n return (\n this.session.isModuleEnabled(provider.module) &&\n provider.connectionScopes.includes(AXP_INTEGRATION_CONNECTION_SCOPE.Tenant)\n );\n }\n\n private readTenantConnections(scopeKey: string) {\n const pending = this.pendingReads.get(scopeKey);\n if (pending) {\n return pending;\n }\n\n // One read for concurrently evaluated actions, without caching availability between evaluations.\n const read = this.connections.listForCurrentUser(AXP_INTEGRATION_CONNECTION_SCOPE.Tenant).finally(() => {\n this.pendingReads.delete(scopeKey);\n });\n this.pendingReads.set(scopeKey, read);\n return read;\n }\n\n //#endregion\n}\n\n@Injectable()\nexport class AXEProjectIntegrationAvailabilityScopeProvider implements AXPExpressionEvaluatorScopeProvider {\n private readonly injector = inject(Injector);\n\n async provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void> {\n context.addScope(EXPRESSION_SCOPE, {\n isAvailable: async (providerId: string): Promise<boolean> => {\n const availability = this.injector.get(AXEProjectIntegrationAvailabilityService);\n return (await availability.listAvailableProjectIntegrationProviders()).has(providerId);\n },\n });\n }\n}\n\nexport function hideUnavailableProjectIntegrationProvider(providerId: string): string {\n return `{{ !(await ${EXPRESSION_SCOPE}.isAvailable(${JSON.stringify(providerId)})) }}`;\n}\n","//#region ----- Imports -----\n\nimport { extractRequestErrorInfo, platformErrorI18nKey } from '@acorex-platform/framework-client/common';\nimport type { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport {\n AXM_INTEGRATION_RESOURCE_JOB,\n RootConfig as IntegrationRootConfig,\n type AXMIntegrationManagementIntegrationRemoteRecordEntityModel,\n} from '@acorex-platform/module-integration-management-client/contracts';\nimport { RootConfig as ProjectRootConfig } from '@acorex-platform/module-project-management-client/contracts';\n\n//#endregion\n\n/** Returns null only if the accessible job is unlinked and can proceed to import confirmation. */\nexport async function resolveJobDocProject(\n entities: AXPEntityService,\n providerId: string,\n remoteRecordId: string,\n activeConnectionIds: readonly string[],\n): Promise<AXPRuntimeCommandResult<{ platformProjectId: string }> | null> {\n const notFound = { success: false, message: { text: '@general:messages.network.not-found.description' } } as const;\n try {\n // Re-read under the current session: the selector row and cached linked flag can be stale.\n const job = await entities\n .withEntity(IntegrationRootConfig.module.name, IntegrationRootConfig.entities.integrationRemoteRecord.name)\n .data<string, AXMIntegrationManagementIntegrationRemoteRecordEntityModel>()\n .findBy('id', remoteRecordId, {\n fields: ['providerId', 'resourceType', 'remoteId', 'isActive', 'isLinked'],\n forUpdate: true,\n });\n if (\n !job?.remoteId || !job.isActive || job.resourceType !== AXM_INTEGRATION_RESOURCE_JOB ||\n !activeConnectionIds.includes(job.providerId)\n ) {\n return notFound;\n }\n\n const project = await entities\n .withEntity(ProjectRootConfig.module.name, ProjectRootConfig.entities.project.name)\n .data<string>()\n .findBy({\n logic: 'and',\n filters: [\n { field: 'integrationRef.source', operator: { type: 'equal' }, value: providerId },\n { field: 'integrationRef.resourceType', operator: { type: 'equal' }, value: AXM_INTEGRATION_RESOURCE_JOB },\n { field: 'integrationRef.remoteId', operator: { type: 'equal' }, value: job.remoteId },\n { field: 'integrationRef.connectionId', operator: { type: 'equal' }, value: job.providerId },\n ],\n }, { fields: ['id'], forUpdate: true });\n if (project?.id) {\n return { success: true, kind: 'object', data: { platformProjectId: project.id } };\n }\n return job.isLinked === false ? null : notFound;\n } catch (error: unknown) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n message: { text: platformErrorI18nKey(info?.code) ?? '@general:widgets.lookup.column.load-failed' },\n };\n }\n}\n","export const PROJECT_INTEGRATION_PICKER = 'project-integration-picker';\nexport const PROJECT_INTEGRATION_PICKER_TITLE = '@extensions-project-management:integration.picker.title';\n\nexport interface ProjectIntegrationPickerOption {\n providerId: string;\n title: string;\n logoKey?: string;\n}\n","//#region ----- Imports -----\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPIntegrationDomainRegistryService } from '@acorex-platform/framework-client/common';\nimport { AXPCommandService } from '@acorex-platform/framework-client/runtime';\nimport type { AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { AXM_PROJECT_INTEGRATION_ACTIONS, AXM_PROJECT_INTEGRATION_AVAILABILITY } from '@acorex-platform/module-project-management-client';\nimport { inject, Injectable } from '@angular/core';\n\nimport { PROJECT_INTEGRATION_PICKER, type ProjectIntegrationPickerOption } from './project-integration-picker.types';\n//#endregion\n\n@Injectable({ providedIn: 'root' })\nexport class AXEProjectIntegrationPickerService {\n //#region ----- Services & Dependencies -----\n private readonly actions = inject(AXM_PROJECT_INTEGRATION_ACTIONS, { optional: true }) ?? [];\n private readonly availability = inject(AXM_PROJECT_INTEGRATION_AVAILABILITY, { optional: true });\n private readonly session = inject(AXPSessionService);\n private readonly registry = inject(AXPIntegrationDomainRegistryService);\n private readonly commands = inject(AXPCommandService);\n private readonly toasts = inject(AXToastService);\n private readonly translation = inject(AXTranslationService);\n //#endregion\n\n //#region ----- Discovery & Selection -----\n async createWidget(): Promise<AXPWidgetNode | undefined> {\n const providers = await this.listOptions();\n return providers.length ? { type: PROJECT_INTEGRATION_PICKER, options: { providers } } : undefined;\n }\n\n async listOptions(): Promise<ProjectIntegrationPickerOption[]> {\n return Promise.all((await this.listAvailableActions()).map(async ({ providerId, title }) => {\n const provider = await this.registry.getProvider(providerId).catch(() => null);\n return { providerId, title, logoKey: provider?.logoKey };\n }));\n }\n\n async selectProject(providerId: string): Promise<string | undefined> {\n try {\n const action = (await this.listAvailableActions()).find(candidate => candidate.providerId === providerId);\n if (!action) return;\n const result = await this.commands.execute<{ selectForJobDoc: boolean }, { platformProjectId: string }>(\n action.command, { selectForJobDoc: true },\n );\n if (result?.success) return result.kind === 'object' ? result.data?.platformProjectId || undefined : undefined;\n } catch {\n // Keep selection unchanged on a command failure.\n }\n const content = await this.translation.translateAsync('@extensions-project-management:integration.picker.failed');\n this.toasts.show({ color: 'danger', content });\n return undefined;\n }\n\n private async listAvailableActions() {\n const eligible = this.actions.filter(\n action => this.session.authorize(action.permission) && this.commands.exists(action.command),\n );\n if (!this.availability || !eligible.length) return [];\n try {\n const active = await this.availability.listAvailableProjectIntegrationProviders();\n return eligible.filter(({ providerId }) => active.has(providerId));\n } catch {\n return [];\n }\n }\n //#endregion\n}\n","//#region ----- Imports -----\nimport { AXP_WIDGETS_ACTION_CATEGORY } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXP_TRIGGERS_PROPERTY } from '@acorex-platform/framework-client/layout/widgets';\nimport { type AXPWidgetConfig, AXPWidgetGroupEnum } from '@acorex-platform/framework-shared/widget-core';\nimport { PROJECT_INTEGRATION_PICKER, PROJECT_INTEGRATION_PICKER_TITLE } from './project-integration-picker.types';\n//#endregion\n\nexport const AXEProjectIntegrationPickerWidget: AXPWidgetConfig = {\n name: PROJECT_INTEGRATION_PICKER,\n title: PROJECT_INTEGRATION_PICKER_TITLE,\n icon: 'fa-light fa-briefcase',\n categories: [AXP_WIDGETS_ACTION_CATEGORY],\n groups: [AXPWidgetGroupEnum.FormElement],\n type: 'action',\n options: { needLabel: false },\n properties: [AXP_TRIGGERS_PROPERTY],\n components: {\n edit: {\n component: () => import('./project-integration-picker.component').then(m => m.AXEProjectIntegrationPickerComponent),\n },\n },\n};\n","import { AXP_INTEGRATION_CATEGORY, AXP_INTEGRATION_CAPABILITY } from '@acorex-platform/framework-shared/core';\nimport {\n type AXPIntegrationDomainProvider,\n AXPIntegrationDomainProviderContext,\n} from '@acorex-platform/framework-client/common';\nimport { Injectable } from '@angular/core';\nimport {\n AXE_PM_DOMAIN_ID,\n RootConfig,\n} from '@acorex-platform/extension-project-management-core-client/contracts';\n\nconst I18N = `@${RootConfig.config.i18n}:integration.domain`;\n\n@Injectable()\nexport class AXEPMIntegrationDomainProvider implements AXPIntegrationDomainProvider {\n async provide(context: AXPIntegrationDomainProviderContext): Promise<void> {\n context.register({\n id: AXE_PM_DOMAIN_ID,\n module: RootConfig.module.name,\n displayName: `${I18N}.title`,\n description: `${I18N}.description`,\n icon: RootConfig.module.icon,\n category: AXP_INTEGRATION_CATEGORY.ProjectManagement,\n capabilities: [\n AXP_INTEGRATION_CAPABILITY.IssueTracking,\n AXP_INTEGRATION_CAPABILITY.TimeLogging,\n AXP_INTEGRATION_CAPABILITY.Sync,\n AXP_INTEGRATION_CAPABILITY.Import,\n ],\n sortOrder: 20,\n });\n }\n}\n","import { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport {\n AXPSettingDefinitionProvider,\n AXPSettingDefinitionProviderContext,\n} from '@acorex-platform/framework-client/common';\nimport { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { Injectable, inject } from '@angular/core';\nimport {\n AXEPMExtensionSettings,\n RootConfig,\n} from '@acorex-platform/extension-project-management-core-client/contracts';\nimport { RootConfig as PmRootConfig } from '@acorex-platform/module-project-management-client/contracts';\n\nconst PM_SETTINGS_GROUP = 'project-management';\nconst I18N = `@${RootConfig.config.i18n}:settings.project-management`;\n\n@Injectable()\nexport class AXEPMSettingsProvider implements AXPSettingDefinitionProvider {\n private readonly sessionService = inject(AXPSessionService);\n\n async provide(context: AXPSettingDefinitionProviderContext): Promise<void> {\n // Only register when the app edition entitles Project Management (not Platform Console).\n if (!this.sessionService.isModuleEnabled(PmRootConfig.module.name)) {\n return;\n }\n\n if (context.hasGroup(PM_SETTINGS_GROUP)) {\n return;\n }\n\n context\n .addGroup(\n PM_SETTINGS_GROUP,\n `${I18N}.group.nav-title`,\n `${I18N}.group.description`,\n RootConfig.module.icon,\n `${I18N}.group.title`,\n 46,\n )\n .addSection('configuration', `${I18N}.section-title`, `${I18N}.section-description`)\n .addSetting({\n key: AXEPMExtensionSettings.DefaultProjectTypeId,\n title: `${I18N}.default-project-type.title`,\n scope: 'T',\n overridableAt: [],\n isInherited: true,\n widget: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${PmRootConfig.module.name}.${PmRootConfig.entities.projectType.name}`,\n look: 'select',\n multiple: false,\n textField: 'title',\n valueField: 'id',\n hasClearButton: true,\n },\n },\n description: `${I18N}.default-project-type.description`,\n })\n .endSection()\n .endGroup();\n }\n}\n","import {\n AXP_INTEGRATION_DOMAIN_PROVIDER,\n AXP_SETTING_DEFINITION_PROVIDER,\n} from '@acorex-platform/framework-client/common';\nimport { AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex-platform/framework-client/core';\nimport { AXP_WIDGET_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXM_PROJECT_INTEGRATION_AVAILABILITY } from '@acorex-platform/module-project-management-client';\nimport { NgModule } from '@angular/core';\nimport {\n AXEProjectIntegrationAvailabilityScopeProvider,\n AXEProjectIntegrationAvailabilityService,\n} from './integration/project-integration-availability.service';\nimport { AXEProjectIntegrationPickerWidget } from './integration/project-integration-picker.config';\nimport { AXEPMIntegrationDomainProvider } from './integration/project-management.integration-domain.provider';\nimport { AXEPMSettingsProvider } from './settings.provider';\n\n@NgModule({\n providers: [\n { provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXEPMSettingsProvider, multi: true },\n { provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXEPMIntegrationDomainProvider, multi: true },\n { provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, useClass: AXEProjectIntegrationAvailabilityScopeProvider, multi: true },\n { provide: AXM_PROJECT_INTEGRATION_AVAILABILITY, useExisting: AXEProjectIntegrationAvailabilityService },\n { provide: AXP_WIDGET_DEFINITION_PROVIDER, useValue: { getWidgets: () => [AXEProjectIntegrationPickerWidget] }, multi: true },\n ],\n})\nexport class AXEPMExtensionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["IntegrationRootConfig","ProjectRootConfig","I18N","RootConfig","PmRootConfig"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAgBA;AAEA;AAEA,MAAM,gBAAgB,GAAG,gCAAgC;AAEzD;MAGa,wCAAwC,CAAA;AADrD,IAAA,WAAA,GAAA;;AAImB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACnC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,mCAAmC,CAAC;AACtD,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,+BAA+B,CAAC;AACrD,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,GAAG,EAA6E;AAgFrH,IAAA;;;;AAzEC,IAAA,MAAM,wCAAwC,GAAA;QAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE;QACxC,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE;QAClD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE;AACpC,QAAA,MAAM,UAAU,GAAG,+BAA+B,CAAC,wBAAwB;AAC3E,QAAA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU;A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em8';
|
|
30
30
|
const AXE_PM_INTEGRATION_PROVIDER_FERGUS = 'fergus';
|
|
31
|
+
const AXE_PM_INTEGRATION_PROVIDER_AROFLO = 'aroflo';
|
|
31
32
|
//#endregion
|
|
32
33
|
|
|
33
34
|
//#region ---- Shared project-management sync types ----
|
|
@@ -46,5 +47,5 @@ const AXE_PM_PROJECT_IMPORT_PORT = Symbol('AXE_PM_PROJECT_IMPORT_PORT');
|
|
|
46
47
|
* Generated bundle index. Do not edit.
|
|
47
48
|
*/
|
|
48
49
|
|
|
49
|
-
export { AXEPMExtensionSettings, AXE_PM_DOMAIN_ID, AXE_PM_INTEGRATION_PROVIDER_FERGUS, AXE_PM_INTEGRATION_PROVIDER_SERVICEM8, AXE_PM_INTEGRATION_PROVIDER_SIMPRO, AXE_PM_PROJECT_IMPORT_PORT, AXE_PM_PROJECT_SYNC_STRATEGIES, RootConfig };
|
|
50
|
+
export { AXEPMExtensionSettings, AXE_PM_DOMAIN_ID, AXE_PM_INTEGRATION_PROVIDER_AROFLO, AXE_PM_INTEGRATION_PROVIDER_FERGUS, AXE_PM_INTEGRATION_PROVIDER_SERVICEM8, AXE_PM_INTEGRATION_PROVIDER_SIMPRO, AXE_PM_PROJECT_IMPORT_PORT, AXE_PM_PROJECT_SYNC_STRATEGIES, RootConfig };
|
|
50
51
|
//# sourceMappingURL=acorex-platform-extension-project-management-core-client-contracts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-extension-project-management-core-client-contracts.mjs","sources":["../../../../libs/extensions/project-management/core/contracts/src/root-config.ts","../../../../libs/extensions/project-management/core/contracts/src/settings.keys.ts","../../../../libs/extensions/project-management/core/contracts/src/integration-domain.constants.ts","../../../../libs/extensions/project-management/core/contracts/src/integration-remote.constants.ts","../../../../libs/extensions/project-management/core/contracts/src/project-sync.types.ts","../../../../libs/extensions/project-management/core/contracts/src/project-import.port.ts","../../../../libs/extensions/project-management/core/contracts/src/acorex-platform-extension-project-management-core-client-contracts.ts"],"sourcesContent":["//#region ---- Project management extension root config ----\n\nconst config = {\n i18n: 'extensions-project-management',\n};\n\nconst MODULE_NAME = 'ProjectManagementExtension';\n\nexport const RootConfig = {\n config,\n module: {\n name: MODULE_NAME,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-diagram-project',\n },\n};\n\n//#endregion\n","//#region ---- Project management extension settings keys ----\n\nexport const AXEPMExtensionSettings = {\n ConnectionsPanel: 'ProjectManagementExtension:Setting:ConnectionsPanel',\n DefaultProjectTypeId: 'ProjectManagementExtension:Setting:DefaultProjectTypeId',\n} as const;\n\n//#endregion\n","//#region ---- Project management integration domain ----\n\nexport const AXE_PM_DOMAIN_ID = 'project-management';\n\n//#endregion\n","//#region ---- Integration remote record constants ----\n\nexport const AXE_PM_INTEGRATION_PROVIDER_SIMPRO = 'simpro';\nexport const AXE_PM_INTEGRATION_PROVIDER_SERVICEM8 = 'servicem8';\nexport const AXE_PM_INTEGRATION_PROVIDER_FERGUS = 'fergus';\n\n//#endregion\n","//#region ---- Shared project-management sync types ----\n\n/** Unified sync strategy for vendor project import flows (Jira, Simpro, …). */\nexport type AXEPMProjectSyncStrategy = 'remoteOverride' | 'localOverride' | 'merge';\n\nexport const AXE_PM_PROJECT_SYNC_STRATEGIES: readonly AXEPMProjectSyncStrategy[] = [\n 'remoteOverride',\n 'localOverride',\n 'merge',\n] as const;\n\nexport interface AXEPMRemoteProject {\n id: string;\n key?: string;\n name: string;\n description?: string;\n}\n\nexport interface AXEPMProjectImportInput {\n connectionId: string;\n remoteProjectId: string;\n syncStrategy: AXEPMProjectSyncStrategy;\n}\n\nexport interface AXEPMProjectImportResult {\n platformProjectId: string;\n}\n\n//#endregion\n","import type { AXEPMProjectImportInput, AXEPMProjectImportResult, AXEPMRemoteProject } from './project-sync.types';\n\n//#region ---- Project import port ----\n\nexport const AXE_PM_PROJECT_IMPORT_PORT = Symbol('AXE_PM_PROJECT_IMPORT_PORT');\n\n/** Connector-specific project list/import port (implemented per vendor extension). */\nexport interface AXEPMProjectImportPort {\n readonly providerId: string;\n listRemoteProjects(connectionId: string): Promise<AXEPMRemoteProject[]>;\n importProject(input: AXEPMProjectImportInput): Promise<AXEPMProjectImportResult>;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,+BAA+B;CACtC;AAED,MAAM,WAAW,GAAG,4BAA4B;AAEzC,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,6BAA6B;AACpC,KAAA;;AAGH;;ACjBA;AAEO,MAAM,sBAAsB,GAAG;AACpC,IAAA,gBAAgB,EAAE,qDAAqD;AACvE,IAAA,oBAAoB,EAAE,yDAAyD;;AAGjF;;ACPA;AAEO,MAAM,gBAAgB,GAAG;AAEhC;;ACJA;AAEO,MAAM,kCAAkC,GAAG;AAC3C,MAAM,qCAAqC,GAAG;AAC9C,MAAM,kCAAkC,GAAG;AAElD;;
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-project-management-core-client-contracts.mjs","sources":["../../../../libs/extensions/project-management/core/contracts/src/root-config.ts","../../../../libs/extensions/project-management/core/contracts/src/settings.keys.ts","../../../../libs/extensions/project-management/core/contracts/src/integration-domain.constants.ts","../../../../libs/extensions/project-management/core/contracts/src/integration-remote.constants.ts","../../../../libs/extensions/project-management/core/contracts/src/project-sync.types.ts","../../../../libs/extensions/project-management/core/contracts/src/project-import.port.ts","../../../../libs/extensions/project-management/core/contracts/src/acorex-platform-extension-project-management-core-client-contracts.ts"],"sourcesContent":["//#region ---- Project management extension root config ----\n\nconst config = {\n i18n: 'extensions-project-management',\n};\n\nconst MODULE_NAME = 'ProjectManagementExtension';\n\nexport const RootConfig = {\n config,\n module: {\n name: MODULE_NAME,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-diagram-project',\n },\n};\n\n//#endregion\n","//#region ---- Project management extension settings keys ----\n\nexport const AXEPMExtensionSettings = {\n ConnectionsPanel: 'ProjectManagementExtension:Setting:ConnectionsPanel',\n DefaultProjectTypeId: 'ProjectManagementExtension:Setting:DefaultProjectTypeId',\n} as const;\n\n//#endregion\n","//#region ---- Project management integration domain ----\n\nexport const AXE_PM_DOMAIN_ID = 'project-management';\n\n//#endregion\n","//#region ---- Integration remote record constants ----\n\nexport const AXE_PM_INTEGRATION_PROVIDER_SIMPRO = 'simpro';\nexport const AXE_PM_INTEGRATION_PROVIDER_SERVICEM8 = 'servicem8';\nexport const AXE_PM_INTEGRATION_PROVIDER_FERGUS = 'fergus';\nexport const AXE_PM_INTEGRATION_PROVIDER_AROFLO = 'aroflo';\n\n//#endregion\n","//#region ---- Shared project-management sync types ----\n\n/** Unified sync strategy for vendor project import flows (Jira, Simpro, …). */\nexport type AXEPMProjectSyncStrategy = 'remoteOverride' | 'localOverride' | 'merge';\n\nexport const AXE_PM_PROJECT_SYNC_STRATEGIES: readonly AXEPMProjectSyncStrategy[] = [\n 'remoteOverride',\n 'localOverride',\n 'merge',\n] as const;\n\nexport interface AXEPMRemoteProject {\n id: string;\n key?: string;\n name: string;\n description?: string;\n}\n\nexport interface AXEPMProjectImportInput {\n connectionId: string;\n remoteProjectId: string;\n syncStrategy: AXEPMProjectSyncStrategy;\n}\n\nexport interface AXEPMProjectImportResult {\n platformProjectId: string;\n}\n\n//#endregion\n","import type { AXEPMProjectImportInput, AXEPMProjectImportResult, AXEPMRemoteProject } from './project-sync.types';\n\n//#region ---- Project import port ----\n\nexport const AXE_PM_PROJECT_IMPORT_PORT = Symbol('AXE_PM_PROJECT_IMPORT_PORT');\n\n/** Connector-specific project list/import port (implemented per vendor extension). */\nexport interface AXEPMProjectImportPort {\n readonly providerId: string;\n listRemoteProjects(connectionId: string): Promise<AXEPMRemoteProject[]>;\n importProject(input: AXEPMProjectImportInput): Promise<AXEPMProjectImportResult>;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,+BAA+B;CACtC;AAED,MAAM,WAAW,GAAG,4BAA4B;AAEzC,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,6BAA6B;AACpC,KAAA;;AAGH;;ACjBA;AAEO,MAAM,sBAAsB,GAAG;AACpC,IAAA,gBAAgB,EAAE,qDAAqD;AACvE,IAAA,oBAAoB,EAAE,yDAAyD;;AAGjF;;ACPA;AAEO,MAAM,gBAAgB,GAAG;AAEhC;;ACJA;AAEO,MAAM,kCAAkC,GAAG;AAC3C,MAAM,qCAAqC,GAAG;AAC9C,MAAM,kCAAkC,GAAG;AAC3C,MAAM,kCAAkC,GAAG;AAElD;;ACPA;AAKO,MAAM,8BAA8B,GAAwC;IACjF,gBAAgB;IAChB,eAAe;IACf,OAAO;;AAoBT;;AC1BA;MAEa,0BAA0B,GAAG,MAAM,CAAC,4BAA4B;AAS7E;;ACbA;;AAEG;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as i1 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i2 from '@acorex/components/decorators';
|
|
4
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
+
import * as i3 from '@acorex/core/translation';
|
|
6
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
|
7
|
+
import { AXPLogoComponent } from '@acorex-platform/framework-client/core';
|
|
8
|
+
import { AXPLayoutBaseWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';
|
|
9
|
+
import { AsyncPipe } from '@angular/common';
|
|
10
|
+
import * as i0 from '@angular/core';
|
|
11
|
+
import { inject, DestroyRef, computed, signal, EventEmitter, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
12
|
+
import { A as AXEProjectIntegrationPickerService, P as PROJECT_INTEGRATION_PICKER_TITLE } from './acorex-platform-extension-project-management-core-client-acorex-platform-extension-project-management-core-client-BzMZvAtj.mjs';
|
|
13
|
+
|
|
14
|
+
//#region ----- Imports -----
|
|
15
|
+
//#endregion
|
|
16
|
+
class AXEProjectIntegrationPickerComponent extends AXPLayoutBaseWidgetComponent {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
//#region ----- Services & Dependencies -----
|
|
20
|
+
this.integration = inject(AXEProjectIntegrationPickerService);
|
|
21
|
+
this.destroyRef = inject(DestroyRef);
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ----- State Signals -----
|
|
24
|
+
this.title = PROJECT_INTEGRATION_PICKER_TITLE;
|
|
25
|
+
this.providers = computed(() => this.options().providers ?? [], /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "providers" }] : /* istanbul ignore next */ []));
|
|
27
|
+
this.busy = signal(false, /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
|
|
29
|
+
this.projectId = signal(undefined, /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "projectId" }] : /* istanbul ignore next */ []));
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ----- Widget Events & Outputs -----
|
|
33
|
+
this.onProjectSelected = new EventEmitter();
|
|
34
|
+
}
|
|
35
|
+
api() {
|
|
36
|
+
return { ...super.api(), onProjectSelected: this.onProjectSelected };
|
|
37
|
+
}
|
|
38
|
+
outputs() {
|
|
39
|
+
return [...super.outputs(), { name: 'projectId', value: this.projectId }];
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ----- Event Handlers -----
|
|
43
|
+
async select(providerId) {
|
|
44
|
+
if (this.busy())
|
|
45
|
+
return;
|
|
46
|
+
this.busy.set(true);
|
|
47
|
+
try {
|
|
48
|
+
const projectId = await this.integration.selectProject(providerId);
|
|
49
|
+
if (projectId && !this.destroyRef.destroyed) {
|
|
50
|
+
this.projectId.set(projectId);
|
|
51
|
+
this.onProjectSelected.emit(projectId);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
this.busy.set(false);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationPickerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXEProjectIntegrationPickerComponent, isStandalone: true, selector: "axe-project-integration-picker", usesInheritance: true, ngImport: i0, template: "<div class=\"flex flex-wrap gap-2\" role=\"group\" [attr.aria-label]=\"title | translate | async\" [attr.aria-busy]=\"busy()\">\n @for (provider of providers(); track provider.providerId) {\n <ax-button\n look=\"solid\"\n color=\"default\"\n [disabled]=\"busy()\"\n [text]=\"(provider.title | translate | async) ?? ''\"\n (onClick)=\"select(provider.providerId)\"\n >\n <ax-prefix class=\"flex items-center leading-none\">\n @if (provider.logoKey; as logoKey) {\n <axp-logo [logoKey]=\"logoKey\" appearance=\"colored\" [size]=\"20\" aria-hidden=\"true\" />\n }\n <!-- ----- Fallback for extensions that do not supply a logo ----- -->\n @else {\n <i class=\"fa-light fa-briefcase\" aria-hidden=\"true\"></i>\n }\n </ax-prefix>\n </ax-button>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { 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 }); }
|
|
60
|
+
}
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEProjectIntegrationPickerComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{ selector: 'axe-project-integration-picker', imports: [AsyncPipe, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXPLogoComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex flex-wrap gap-2\" role=\"group\" [attr.aria-label]=\"title | translate | async\" [attr.aria-busy]=\"busy()\">\n @for (provider of providers(); track provider.providerId) {\n <ax-button\n look=\"solid\"\n color=\"default\"\n [disabled]=\"busy()\"\n [text]=\"(provider.title | translate | async) ?? ''\"\n (onClick)=\"select(provider.providerId)\"\n >\n <ax-prefix class=\"flex items-center leading-none\">\n @if (provider.logoKey; as logoKey) {\n <axp-logo [logoKey]=\"logoKey\" appearance=\"colored\" [size]=\"20\" aria-hidden=\"true\" />\n }\n <!-- ----- Fallback for extensions that do not supply a logo ----- -->\n @else {\n <i class=\"fa-light fa-briefcase\" aria-hidden=\"true\"></i>\n }\n </ax-prefix>\n </ax-button>\n }\n</div>\n" }]
|
|
64
|
+
}] });
|
|
65
|
+
|
|
66
|
+
export { AXEProjectIntegrationPickerComponent };
|
|
67
|
+
//# sourceMappingURL=acorex-platform-extension-project-management-core-client-project-integration-picker.component-DaS0H7S8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-project-management-core-client-project-integration-picker.component-DaS0H7S8.mjs","sources":["../../../../libs/extensions/project-management/core/client/src/lib/integration/project-integration-picker.component.ts","../../../../libs/extensions/project-management/core/client/src/lib/integration/project-integration-picker.component.html"],"sourcesContent":["//#region ----- Imports -----\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLogoComponent } from '@acorex-platform/framework-client/core';\nimport { AXPLayoutBaseWidgetComponent, type AXPWidgetCoreElementAPI } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, DestroyRef, EventEmitter, computed, inject, signal } from '@angular/core';\n\nimport { AXEProjectIntegrationPickerService } from './project-integration-picker.service';\nimport { PROJECT_INTEGRATION_PICKER_TITLE, type ProjectIntegrationPickerOption } from './project-integration-picker.types';\n//#endregion\n\n@Component({\n selector: 'axe-project-integration-picker',\n templateUrl: './project-integration-picker.component.html',\n imports: [AsyncPipe, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXPLogoComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXEProjectIntegrationPickerComponent extends AXPLayoutBaseWidgetComponent<{ providers?: ProjectIntegrationPickerOption[] }> {\n //#region ----- Services & Dependencies -----\n private readonly integration = inject(AXEProjectIntegrationPickerService);\n private readonly destroyRef = inject(DestroyRef);\n //#endregion\n\n //#region ----- State Signals -----\n protected readonly title = PROJECT_INTEGRATION_PICKER_TITLE;\n protected readonly providers = computed(() => this.options().providers ?? []);\n protected readonly busy = signal(false);\n private readonly projectId = signal<string | undefined>(undefined);\n //#endregion\n\n //#region ----- Widget Events & Outputs -----\n private readonly onProjectSelected = new EventEmitter<string>();\n\n override api(): AXPWidgetCoreElementAPI {\n return { ...super.api(), onProjectSelected: this.onProjectSelected };\n }\n\n protected override outputs() {\n return [...super.outputs(), { name: 'projectId', value: this.projectId }];\n }\n //#endregion\n\n //#region ----- Event Handlers -----\n protected async select(providerId: string): Promise<void> {\n if (this.busy()) return;\n this.busy.set(true);\n try {\n const projectId = await this.integration.selectProject(providerId);\n if (projectId && !this.destroyRef.destroyed) {\n this.projectId.set(projectId);\n this.onProjectSelected.emit(projectId);\n }\n } finally {\n this.busy.set(false);\n }\n }\n //#endregion\n}\n","<div class=\"flex flex-wrap gap-2\" role=\"group\" [attr.aria-label]=\"title | translate | async\" [attr.aria-busy]=\"busy()\">\n @for (provider of providers(); track provider.providerId) {\n <ax-button\n look=\"solid\"\n color=\"default\"\n [disabled]=\"busy()\"\n [text]=\"(provider.title | translate | async) ?? ''\"\n (onClick)=\"select(provider.providerId)\"\n >\n <ax-prefix class=\"flex items-center leading-none\">\n @if (provider.logoKey; as logoKey) {\n <axp-logo [logoKey]=\"logoKey\" appearance=\"colored\" [size]=\"20\" aria-hidden=\"true\" />\n }\n <!-- ----- Fallback for extensions that do not supply a logo ----- -->\n @else {\n <i class=\"fa-light fa-briefcase\" aria-hidden=\"true\"></i>\n }\n </ax-prefix>\n </ax-button>\n }\n</div>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AAWA;AAQM,MAAO,oCAAqC,SAAQ,4BAA8E,CAAA;AANxI,IAAA,WAAA,GAAA;;;AAQmB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,kCAAkC,CAAC;AACxD,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;;QAI7B,IAAA,CAAA,KAAK,GAAG,gCAAgC;AACxC,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,SAA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AgC,EAAA,OAAA,EAEjC,CAAC,SAAS,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC7E,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,u1BAAA,EAAA;;;"}
|
|
@@ -1,104 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, inject, NgModule } from '@angular/core';
|
|
4
|
-
import { AXP_INTEGRATION_CAPABILITY, AXP_INTEGRATION_CATEGORY, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
5
|
-
import { RootConfig, AXE_PM_DOMAIN_ID, AXEPMExtensionSettings } from '@acorex-platform/extension-project-management-core-client/contracts';
|
|
6
|
-
import { AXPSessionService } from '@acorex-platform/framework-client/auth';
|
|
7
|
-
import { RootConfig as RootConfig$1 } from '@acorex-platform/module-project-management-client/contracts';
|
|
8
|
-
|
|
9
|
-
const I18N$1 = `@${RootConfig.config.i18n}:integration.domain`;
|
|
10
|
-
class AXEPMIntegrationDomainProvider {
|
|
11
|
-
async provide(context) {
|
|
12
|
-
context.register({
|
|
13
|
-
id: AXE_PM_DOMAIN_ID,
|
|
14
|
-
module: RootConfig.module.name,
|
|
15
|
-
displayName: `${I18N$1}.title`,
|
|
16
|
-
description: `${I18N$1}.description`,
|
|
17
|
-
icon: RootConfig.module.icon,
|
|
18
|
-
category: AXP_INTEGRATION_CATEGORY.ProjectManagement,
|
|
19
|
-
capabilities: [
|
|
20
|
-
AXP_INTEGRATION_CAPABILITY.IssueTracking,
|
|
21
|
-
AXP_INTEGRATION_CAPABILITY.TimeLogging,
|
|
22
|
-
AXP_INTEGRATION_CAPABILITY.Sync,
|
|
23
|
-
AXP_INTEGRATION_CAPABILITY.Import,
|
|
24
|
-
],
|
|
25
|
-
sortOrder: 20,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMIntegrationDomainProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
29
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMIntegrationDomainProvider }); }
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMIntegrationDomainProvider, decorators: [{
|
|
32
|
-
type: Injectable
|
|
33
|
-
}] });
|
|
34
|
-
|
|
35
|
-
const PM_SETTINGS_GROUP = 'project-management';
|
|
36
|
-
const I18N = `@${RootConfig.config.i18n}:settings.project-management`;
|
|
37
|
-
class AXEPMSettingsProvider {
|
|
38
|
-
constructor() {
|
|
39
|
-
this.sessionService = inject(AXPSessionService);
|
|
40
|
-
}
|
|
41
|
-
async provide(context) {
|
|
42
|
-
// Only register when the app edition entitles Project Management (not Platform Console).
|
|
43
|
-
if (!this.sessionService.isModuleEnabled(RootConfig$1.module.name)) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (context.hasGroup(PM_SETTINGS_GROUP)) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
context
|
|
50
|
-
.addGroup(PM_SETTINGS_GROUP, `${I18N}.group.nav-title`, `${I18N}.group.description`, RootConfig.module.icon, `${I18N}.group.title`, 46)
|
|
51
|
-
.addSection('configuration', `${I18N}.section-title`, `${I18N}.section-description`)
|
|
52
|
-
.addSetting({
|
|
53
|
-
key: AXEPMExtensionSettings.DefaultProjectTypeId,
|
|
54
|
-
title: `${I18N}.default-project-type.title`,
|
|
55
|
-
scope: 'T',
|
|
56
|
-
overridableAt: [],
|
|
57
|
-
isInherited: true,
|
|
58
|
-
widget: {
|
|
59
|
-
type: AXPWidgetsList.Editors.LookupBox,
|
|
60
|
-
options: {
|
|
61
|
-
entity: `${RootConfig$1.module.name}.${RootConfig$1.entities.projectType.name}`,
|
|
62
|
-
look: 'select',
|
|
63
|
-
multiple: false,
|
|
64
|
-
textField: 'title',
|
|
65
|
-
valueField: 'id',
|
|
66
|
-
hasClearButton: true,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
description: `${I18N}.default-project-type.description`,
|
|
70
|
-
})
|
|
71
|
-
.endSection()
|
|
72
|
-
.endGroup();
|
|
73
|
-
}
|
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMSettingsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
75
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMSettingsProvider }); }
|
|
76
|
-
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMSettingsProvider, decorators: [{
|
|
78
|
-
type: Injectable
|
|
79
|
-
}] });
|
|
80
|
-
|
|
81
|
-
class AXEPMExtensionModule {
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
83
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule }); }
|
|
84
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule, providers: [
|
|
85
|
-
{ provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXEPMSettingsProvider, multi: true },
|
|
86
|
-
{ provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXEPMIntegrationDomainProvider, multi: true },
|
|
87
|
-
] }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXEPMExtensionModule, decorators: [{
|
|
90
|
-
type: NgModule,
|
|
91
|
-
args: [{
|
|
92
|
-
providers: [
|
|
93
|
-
{ provide: AXP_SETTING_DEFINITION_PROVIDER, useClass: AXEPMSettingsProvider, multi: true },
|
|
94
|
-
{ provide: AXP_INTEGRATION_DOMAIN_PROVIDER, useClass: AXEPMIntegrationDomainProvider, multi: true },
|
|
95
|
-
],
|
|
96
|
-
}]
|
|
97
|
-
}] });
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Generated bundle index. Do not edit.
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
export { AXEPMExtensionModule };
|
|
1
|
+
export { a as AXEPMExtensionModule, b as AXEProjectIntegrationAvailabilityService, A as AXEProjectIntegrationPickerService, h as hideUnavailableProjectIntegrationProvider, r as resolveJobDocProject } from './acorex-platform-extension-project-management-core-client-acorex-platform-extension-project-management-core-client-BzMZvAtj.mjs';
|
|
104
2
|
//# sourceMappingURL=acorex-platform-extension-project-management-core-client.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-extension-project-management-core-client.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"acorex-platform-extension-project-management-core-client.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"description": "Shared project-management integration domain and connectors"
|
|
5
5
|
},
|
|
6
6
|
"integration": {
|
|
7
|
+
"picker": {
|
|
8
|
+
"title": "Select a Project from a Connected Service",
|
|
9
|
+
"failed": "Could not select a project from the connected service."
|
|
10
|
+
},
|
|
7
11
|
"domain": {
|
|
8
12
|
"title": "Project Management",
|
|
9
13
|
"description": "Connect external project management systems for issues, time tracking, and project sync."
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"description": "Shared project-management integration domain and connectors"
|
|
5
5
|
},
|
|
6
6
|
"integration": {
|
|
7
|
+
"picker": {
|
|
8
|
+
"title": "Select a Project from a Connected Service",
|
|
9
|
+
"failed": "Could not select a project from the connected service."
|
|
10
|
+
},
|
|
7
11
|
"domain": {
|
|
8
12
|
"title": "Project Management",
|
|
9
13
|
"description": "Connect external project management systems for issues, time tracking, and project sync."
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
"description": "دامنه یکپارچهسازی مشترک مدیریت پروژه و اتصالدهندهها"
|
|
5
5
|
},
|
|
6
6
|
"integration": {
|
|
7
|
+
"picker": {
|
|
8
|
+
"title": "انتخاب پروژه از سرویس متصل",
|
|
9
|
+
"failed": "انتخاب پروژه از سرویس متصل امکانپذیر نبود."
|
|
10
|
+
},
|
|
7
11
|
"domain": {
|
|
8
12
|
"title": "مدیریت پروژه",
|
|
9
13
|
"description": "اتصال سامانههای خارجی مدیریت پروژه برای مسائل، ثبت زمان و همگامسازی پروژه."
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex-platform/extension-project-management-core-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
+
"@acorex-platform/module-integration-management-client": "2.0.0-beta.1",
|
|
6
7
|
"@angular/common": "^21.0.0 || ^22.0.0",
|
|
7
8
|
"@angular/core": "^21.0.0 || ^22.0.0"
|
|
8
9
|
},
|
|
9
10
|
"dependencies": {
|
|
10
|
-
"@acorex-platform/extension-project-management-core-domain": "
|
|
11
|
+
"@acorex-platform/extension-project-management-core-domain": "2.0.0-beta.1",
|
|
11
12
|
"tslib": "^2.3.0"
|
|
12
13
|
},
|
|
13
14
|
"module": "fesm2022/acorex-platform-extension-project-management-core-client.mjs",
|
|
@@ -19,6 +19,7 @@ declare const AXE_PM_DOMAIN_ID = "project-management";
|
|
|
19
19
|
declare const AXE_PM_INTEGRATION_PROVIDER_SIMPRO = "simpro";
|
|
20
20
|
declare const AXE_PM_INTEGRATION_PROVIDER_SERVICEM8 = "servicem8";
|
|
21
21
|
declare const AXE_PM_INTEGRATION_PROVIDER_FERGUS = "fergus";
|
|
22
|
+
declare const AXE_PM_INTEGRATION_PROVIDER_AROFLO = "aroflo";
|
|
22
23
|
|
|
23
24
|
/** Unified sync strategy for vendor project import flows (Jira, Simpro, …). */
|
|
24
25
|
type AXEPMProjectSyncStrategy = 'remoteOverride' | 'localOverride' | 'merge';
|
|
@@ -46,5 +47,5 @@ interface AXEPMProjectImportPort {
|
|
|
46
47
|
importProject(input: AXEPMProjectImportInput): Promise<AXEPMProjectImportResult>;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
export { AXEPMExtensionSettings, AXE_PM_DOMAIN_ID, AXE_PM_INTEGRATION_PROVIDER_FERGUS, AXE_PM_INTEGRATION_PROVIDER_SERVICEM8, AXE_PM_INTEGRATION_PROVIDER_SIMPRO, AXE_PM_PROJECT_IMPORT_PORT, AXE_PM_PROJECT_SYNC_STRATEGIES, RootConfig };
|
|
50
|
+
export { AXEPMExtensionSettings, AXE_PM_DOMAIN_ID, AXE_PM_INTEGRATION_PROVIDER_AROFLO, AXE_PM_INTEGRATION_PROVIDER_FERGUS, AXE_PM_INTEGRATION_PROVIDER_SERVICEM8, AXE_PM_INTEGRATION_PROVIDER_SIMPRO, AXE_PM_PROJECT_IMPORT_PORT, AXE_PM_PROJECT_SYNC_STRATEGIES, RootConfig };
|
|
50
51
|
export type { AXEPMProjectImportInput, AXEPMProjectImportPort, AXEPMProjectImportResult, AXEPMProjectSyncStrategy, AXEPMRemoteProject };
|
|
@@ -1,4 +1,47 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
3
|
+
import { AXPRuntimeCommandResult, AXPWidgetNode } from '@acorex-platform/framework-shared/core';
|
|
4
|
+
|
|
5
|
+
declare class AXEProjectIntegrationAvailabilityService {
|
|
6
|
+
private readonly session;
|
|
7
|
+
private readonly registry;
|
|
8
|
+
private readonly connections;
|
|
9
|
+
private readonly pendingReads;
|
|
10
|
+
/** Returns registered, enabled project provider IDs usable by the current session. */
|
|
11
|
+
listAvailableProjectIntegrationProviders(): Promise<ReadonlySet<string>>;
|
|
12
|
+
private isEnabled;
|
|
13
|
+
private readTenantConnections;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXEProjectIntegrationAvailabilityService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXEProjectIntegrationAvailabilityService>;
|
|
16
|
+
}
|
|
17
|
+
declare function hideUnavailableProjectIntegrationProvider(providerId: string): string;
|
|
18
|
+
|
|
19
|
+
/** Returns null only if the accessible job is unlinked and can proceed to import confirmation. */
|
|
20
|
+
declare function resolveJobDocProject(entities: AXPEntityService, providerId: string, remoteRecordId: string, activeConnectionIds: readonly string[]): Promise<AXPRuntimeCommandResult<{
|
|
21
|
+
platformProjectId: string;
|
|
22
|
+
}> | null>;
|
|
23
|
+
|
|
24
|
+
interface ProjectIntegrationPickerOption {
|
|
25
|
+
providerId: string;
|
|
26
|
+
title: string;
|
|
27
|
+
logoKey?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare class AXEProjectIntegrationPickerService {
|
|
31
|
+
private readonly actions;
|
|
32
|
+
private readonly availability;
|
|
33
|
+
private readonly session;
|
|
34
|
+
private readonly registry;
|
|
35
|
+
private readonly commands;
|
|
36
|
+
private readonly toasts;
|
|
37
|
+
private readonly translation;
|
|
38
|
+
createWidget(): Promise<AXPWidgetNode | undefined>;
|
|
39
|
+
listOptions(): Promise<ProjectIntegrationPickerOption[]>;
|
|
40
|
+
selectProject(providerId: string): Promise<string | undefined>;
|
|
41
|
+
private listAvailableActions;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXEProjectIntegrationPickerService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXEProjectIntegrationPickerService>;
|
|
44
|
+
}
|
|
2
45
|
|
|
3
46
|
declare class AXEPMExtensionModule {
|
|
4
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXEPMExtensionModule, never>;
|
|
@@ -6,4 +49,4 @@ declare class AXEPMExtensionModule {
|
|
|
6
49
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXEPMExtensionModule>;
|
|
7
50
|
}
|
|
8
51
|
|
|
9
|
-
export { AXEPMExtensionModule };
|
|
52
|
+
export { AXEPMExtensionModule, AXEProjectIntegrationAvailabilityService, AXEProjectIntegrationPickerService, hideUnavailableProjectIntegrationProvider, resolveJobDocProject };
|