@alfresco/adf-process-services-cloud 9.1.0-16879056836 → 9.1.0-16936569382
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.
|
@@ -190,10 +190,10 @@ class AppsProcessCloudService {
|
|
|
190
190
|
}
|
|
191
191
|
loadApps() {
|
|
192
192
|
const apps = this.appConfigService.get('alfresco-deployed-apps', []);
|
|
193
|
-
|
|
194
|
-
app.theme = app.theme
|
|
195
|
-
app.icon = app.icon
|
|
196
|
-
}
|
|
193
|
+
for (const app of apps) {
|
|
194
|
+
app.theme = app.theme ?? 'theme-1';
|
|
195
|
+
app.icon = app.icon ?? 'favorite';
|
|
196
|
+
}
|
|
197
197
|
this.deployedApps = apps;
|
|
198
198
|
}
|
|
199
199
|
getApplicationLabel(application, environmentList) {
|
|
@@ -5006,7 +5006,7 @@ class PeopleCloudComponent {
|
|
|
5006
5006
|
this.invalidUsers.push(user);
|
|
5007
5007
|
}
|
|
5008
5008
|
}
|
|
5009
|
-
catch
|
|
5009
|
+
catch {
|
|
5010
5010
|
this.invalidUsers.push(user);
|
|
5011
5011
|
}
|
|
5012
5012
|
}
|
|
@@ -5488,7 +5488,7 @@ class GroupCloudComponent {
|
|
|
5488
5488
|
this.invalidGroups.push(group);
|
|
5489
5489
|
}
|
|
5490
5490
|
}
|
|
5491
|
-
catch
|
|
5491
|
+
catch {
|
|
5492
5492
|
this.invalidGroups.push(group);
|
|
5493
5493
|
}
|
|
5494
5494
|
}
|
|
@@ -7139,17 +7139,20 @@ class FormCloudComponent extends FormBaseComponent {
|
|
|
7139
7139
|
delete flattenForm.formDefinition;
|
|
7140
7140
|
return flattenForm;
|
|
7141
7141
|
}), takeUntilDestroyed(this.destroyRef))
|
|
7142
|
-
.subscribe(
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7142
|
+
.subscribe({
|
|
7143
|
+
next: (form) => {
|
|
7144
|
+
this.formCloudRepresentationJSON = form;
|
|
7145
|
+
this.formCloudRepresentationJSON.processVariables = this.data || [];
|
|
7146
|
+
const parsedForm = this.parseForm(form);
|
|
7147
|
+
this.visibilityService.refreshVisibility(parsedForm);
|
|
7148
|
+
parsedForm?.validateForm();
|
|
7149
|
+
this.form = parsedForm;
|
|
7150
|
+
this.form.nodeId = '-my-';
|
|
7151
|
+
this.onFormLoaded(this.form);
|
|
7152
|
+
},
|
|
7153
|
+
error: (error) => {
|
|
7154
|
+
this.handleError(error);
|
|
7155
|
+
}
|
|
7153
7156
|
});
|
|
7154
7157
|
}
|
|
7155
7158
|
saveTaskForm() {
|
|
@@ -7157,9 +7160,12 @@ class FormCloudComponent extends FormBaseComponent {
|
|
|
7157
7160
|
this.formCloudService
|
|
7158
7161
|
.saveTaskForm(this.appName, this.taskId, this.processInstanceId, `${this.form.id}`, this.form.values)
|
|
7159
7162
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
7160
|
-
.subscribe(
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
+
.subscribe({
|
|
7164
|
+
next: () => {
|
|
7165
|
+
this.onTaskSaved(this.form);
|
|
7166
|
+
},
|
|
7167
|
+
error: (error) => this.onTaskSavedError(error)
|
|
7168
|
+
});
|
|
7163
7169
|
this.displayModeService.onSaveTask(this.id, this.displayMode, this.displayModeConfigurations);
|
|
7164
7170
|
}
|
|
7165
7171
|
}
|
|
@@ -7187,9 +7193,12 @@ class FormCloudComponent extends FormBaseComponent {
|
|
|
7187
7193
|
this.formCloudService
|
|
7188
7194
|
.completeTaskForm(this.appName, this.taskId, this.processInstanceId, `${this.form.id}`, this.form.values, outcome, this.appVersion)
|
|
7189
7195
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
7190
|
-
.subscribe(
|
|
7191
|
-
|
|
7192
|
-
|
|
7196
|
+
.subscribe({
|
|
7197
|
+
next: () => {
|
|
7198
|
+
this.onTaskCompleted(this.form);
|
|
7199
|
+
},
|
|
7200
|
+
error: (error) => this.onTaskCompletedError(error)
|
|
7201
|
+
});
|
|
7193
7202
|
}
|
|
7194
7203
|
}
|
|
7195
7204
|
parseForm(formCloudRepresentationJSON) {
|
|
@@ -7268,7 +7277,7 @@ class FormCloudComponent extends FormBaseComponent {
|
|
|
7268
7277
|
return this.displayModeService.findConfiguration(FormCloudDisplayMode[displayMode], this.displayModeConfigurations);
|
|
7269
7278
|
}
|
|
7270
7279
|
loadInjectedFieldValidators(injectedFieldValidators) {
|
|
7271
|
-
if (injectedFieldValidators && injectedFieldValidators
|
|
7280
|
+
if (Array.isArray(injectedFieldValidators) && injectedFieldValidators.length) {
|
|
7272
7281
|
this.fieldValidators = [...this.fieldValidators, ...injectedFieldValidators];
|
|
7273
7282
|
}
|
|
7274
7283
|
}
|
|
@@ -14929,13 +14938,14 @@ const PROCESS_SERVICES_CLOUD_DIRECTIVES = [
|
|
|
14929
14938
|
* @deprecated this module is deprecated and will be removed in the future versions
|
|
14930
14939
|
*
|
|
14931
14940
|
* Instead, import the standalone components directly, or use the following provider API to replicate the behaviour:
|
|
14932
|
-
*
|
|
14941
|
+
* ```
|
|
14933
14942
|
* providers: [
|
|
14934
14943
|
* provideTranslations('adf-process-services-cloud', 'assets/adf-process-services-cloud')
|
|
14935
14944
|
* provideCloudPreferences()
|
|
14936
14945
|
* provideCloudFormRenderer(),
|
|
14937
14946
|
* { provide: TASK_LIST_CLOUD_TOKEN, useClass: TaskListCloudService }
|
|
14938
14947
|
* ]
|
|
14948
|
+
* ```
|
|
14939
14949
|
*/
|
|
14940
14950
|
class ProcessServicesCloudModule {
|
|
14941
14951
|
static forRoot(filterPreferenceServiceInstance, listPreferenceServiceInstance) {
|