@alfresco/adf-process-services-cloud 8.4.0-20230348748 → 8.4.0-20231887566

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.
@@ -2728,11 +2728,11 @@ const TASK_EVENT_SUBSCRIPTION_QUERY = `
2728
2728
  }
2729
2729
  `;
2730
2730
  class TaskFilterCloudService extends BaseCloudService {
2731
- constructor(identityUserService, preferenceService, notificationCloudService, adfHttpClient) {
2731
+ constructor(notificationCloudService, adfHttpClient) {
2732
2732
  super(adfHttpClient);
2733
- this.identityUserService = identityUserService;
2734
- this.preferenceService = preferenceService;
2735
2733
  this.notificationCloudService = notificationCloudService;
2734
+ this.preferenceService = inject(TASK_FILTERS_SERVICE_TOKEN);
2735
+ this.identityUserService = inject(IdentityUserService);
2736
2736
  this.filtersSubject = new BehaviorSubject([]);
2737
2737
  this.filters$ = this.filtersSubject.asObservable();
2738
2738
  this.filterKeyToBeRefreshedSource = new Subject();
@@ -3062,7 +3062,7 @@ class TaskFilterCloudService extends BaseCloudService {
3062
3062
  });
3063
3063
  return this.updateTaskFilters(appName, key, filters);
3064
3064
  }
3065
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TaskFilterCloudService, deps: [{ token: IdentityUserService }, { token: TASK_FILTERS_SERVICE_TOKEN }, { token: NotificationCloudService }, { token: i1.AdfHttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
3065
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TaskFilterCloudService, deps: [{ token: NotificationCloudService }, { token: i1.AdfHttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
3066
3066
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TaskFilterCloudService, providedIn: 'root' }); }
3067
3067
  }
3068
3068
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TaskFilterCloudService, decorators: [{
@@ -3070,10 +3070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
3070
3070
  args: [{
3071
3071
  providedIn: 'root'
3072
3072
  }]
3073
- }], ctorParameters: () => [{ type: IdentityUserService }, { type: undefined, decorators: [{
3074
- type: Inject,
3075
- args: [TASK_FILTERS_SERVICE_TOKEN]
3076
- }] }, { type: NotificationCloudService }, { type: i1.AdfHttpClient }] });
3073
+ }], ctorParameters: () => [{ type: NotificationCloudService }, { type: i1.AdfHttpClient }] });
3077
3074
 
3078
3075
  /*!
3079
3076
  * @license
@@ -3569,11 +3566,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
3569
3566
  * limitations under the License.
3570
3567
  */
3571
3568
  class ServiceTaskFilterCloudService {
3572
- constructor(identityUserService, preferenceService) {
3573
- this.identityUserService = identityUserService;
3574
- this.preferenceService = preferenceService;
3569
+ constructor() {
3575
3570
  this.filtersSubject = new BehaviorSubject([]);
3576
3571
  this.filters$ = this.filtersSubject.asObservable();
3572
+ this.preferenceService = inject(TASK_FILTERS_SERVICE_TOKEN);
3573
+ this.identityUserService = inject(IdentityUserService);
3577
3574
  }
3578
3575
  /**
3579
3576
  * Creates and returns the default task filters for an app.
@@ -3815,7 +3812,7 @@ class ServiceTaskFilterCloudService {
3815
3812
  generateRandomId() {
3816
3813
  return Math.random().toString(36).substring(2, 9);
3817
3814
  }
3818
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ServiceTaskFilterCloudService, deps: [{ token: IdentityUserService }, { token: TASK_FILTERS_SERVICE_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
3815
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ServiceTaskFilterCloudService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3819
3816
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ServiceTaskFilterCloudService, providedIn: 'root' }); }
3820
3817
  }
3821
3818
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ServiceTaskFilterCloudService, decorators: [{
@@ -3823,10 +3820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
3823
3820
  args: [{
3824
3821
  providedIn: 'root'
3825
3822
  }]
3826
- }], ctorParameters: () => [{ type: IdentityUserService }, { type: undefined, decorators: [{
3827
- type: Inject,
3828
- args: [TASK_FILTERS_SERVICE_TOKEN]
3829
- }] }] });
3823
+ }] });
3830
3824
 
3831
3825
  /*!
3832
3826
  * @license
@@ -10156,6 +10150,7 @@ class ProcessFilterCloudModel {
10156
10150
  this._suspendedFrom = obj._suspendedFrom || null;
10157
10151
  this._suspendedTo = obj._suspendedTo || null;
10158
10152
  this.includeSubprocesses = obj.includeSubprocesses || null;
10153
+ this.includeUnlinkedProcesses = obj.includeUnlinkedProcesses || null;
10159
10154
  this.initArrayProperties(obj);
10160
10155
  }
10161
10156
  initArrayProperties(obj) {
@@ -10764,7 +10759,8 @@ class ProcessListCloudService extends BaseCloudService {
10764
10759
  suspendedTo: requestNode.suspendedTo,
10765
10760
  processVariableKeys: requestNode.processVariableKeys,
10766
10761
  processVariableFilters: requestNode.processVariableFilters,
10767
- includeSubprocesses: requestNode.includeSubprocesses
10762
+ includeSubprocesses: requestNode.includeSubprocesses,
10763
+ includeUnlinkedProcesses: requestNode.includeUnlinkedProcesses
10768
10764
  };
10769
10765
  if (requestNode.sorting) {
10770
10766
  queryData['sort'] = {
@@ -11038,6 +11034,7 @@ class ProcessListRequestModel {
11038
11034
  this.suspendedFrom = obj.suspendedFrom;
11039
11035
  this.suspendedTo = obj.suspendedTo;
11040
11036
  this.includeSubprocesses = obj.includeSubprocesses;
11037
+ this.includeUnlinkedProcesses = obj.includeUnlinkedProcesses;
11041
11038
  this.processVariableKeys = obj.processVariableKeys;
11042
11039
  this.processVariableFilters = obj.processVariableFilters;
11043
11040
  }
@@ -12500,6 +12497,8 @@ class ProcessListCloudComponent extends DataTableSchema {
12500
12497
  this.statuses = [];
12501
12498
  /** Include subprocesses in the process list. */
12502
12499
  this.includeSubprocesses = null;
12500
+ /** Include unlinked processes in the process list. */
12501
+ this.includeUnlinkedProcesses = null;
12503
12502
  /** Emitted when a row in the process list is clicked. */
12504
12503
  this.rowClick = new EventEmitter();
12505
12504
  /** Emitted when rows are selected/unselected. */
@@ -12740,6 +12739,7 @@ class ProcessListCloudComponent extends DataTableSchema {
12740
12739
  suspendedFrom: this.suspendedFrom,
12741
12740
  suspendedTo: this.suspendedTo,
12742
12741
  includeSubprocesses: this.includeSubprocesses,
12742
+ includeUnlinkedProcesses: this.includeUnlinkedProcesses,
12743
12743
  processVariableKeys: this.getVariableDefinitionsRequestModel(),
12744
12744
  processVariableFilters: this.processVariables
12745
12745
  };
@@ -12833,7 +12833,7 @@ class ProcessListCloudComponent extends DataTableSchema {
12833
12833
  return displayedVariableColumns.length ? displayedVariableColumns : undefined;
12834
12834
  }
12835
12835
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessListCloudComponent, deps: [{ token: ProcessListCloudService }, { token: i1$1.AppConfigService }, { token: i1$1.UserPreferencesService }, { token: PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN }, { token: VariableMapperService }], target: i0.ɵɵFactoryTarget.Component }); }
12836
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: ProcessListCloudComponent, isStandalone: true, selector: "adf-cloud-process-list", inputs: { appName: "appName", appVersion: "appVersion", initiator: "initiator", id: "id", environmentId: "environmentId", name: "name", parentId: "parentId", processDefinitionId: "processDefinitionId", processDefinitionName: "processDefinitionName", processDefinitionKey: "processDefinitionKey", status: "status", businessKey: "businessKey", lastModifiedFrom: "lastModifiedFrom", lastModifiedTo: "lastModifiedTo", startFrom: "startFrom", startTo: "startTo", completedFrom: "completedFrom", completedTo: "completedTo", completedDate: "completedDate", suspendedFrom: "suspendedFrom", suspendedTo: "suspendedTo", selectionMode: "selectionMode", multiselect: "multiselect", sorting: "sorting", showActions: "showActions", showProvidedActions: "showProvidedActions", actionsPosition: "actionsPosition", stickyHeader: "stickyHeader", showContextMenu: "showContextMenu", showMainDatatableActions: "showMainDatatableActions", isResizingEnabled: "isResizingEnabled", searchApiMethod: "searchApiMethod", names: "names", ids: "ids", parentIds: "parentIds", processDefinitionNames: "processDefinitionNames", initiators: "initiators", appVersions: "appVersions", statuses: "statuses", processVariables: "processVariables", includeSubprocesses: "includeSubprocesses" }, outputs: { rowClick: "rowClick", rowsSelected: "rowsSelected", showRowContextMenu: "showRowContextMenu", showRowActionsMenu: "showRowActionsMenu", executeRowAction: "executeRowAction", error: "error", success: "success" }, queries: [{ propertyName: "emptyCustomContent", first: true, predicate: CustomEmptyContentTemplateDirective, descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: CustomLoadingContentTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "dataTable", first: true, predicate: DataTableComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<adf-datatable\n [rows]=\"rows\"\n [columns]=\"columns\"\n [data]=\"dataAdapter\"\n [stickyHeader]=\"stickyHeader\"\n [loading]=\"isLoading\"\n [sorting]=\"formattedSorting\"\n [selectionMode]=\"selectionMode\"\n [multiselect]=\"multiselect\"\n [actions]=\"showActions\"\n [actionsPosition]=\"actionsPosition\"\n [contextMenu]=\"showContextMenu\"\n [showMainDatatableActions]=\"showMainDatatableActions\"\n [showProvidedActions]=\"showProvidedActions\"\n [isResizingEnabled]=\"isResizingEnabled\"\n (showRowActionsMenu)=\"onShowRowActionsMenu($event)\"\n (showRowContextMenu)=\"onShowRowContextMenu($event)\"\n (executeRowAction)=\"onExecuteRowAction($event)\"\n (rowClick)=\"onRowClick($any($event))\"\n (row-select)=\"onRowSelect($any($event))\"\n (row-unselect)=\"onRowUnselect($any($event))\"\n (row-keyup)=\"onRowKeyUp($any($event))\"\n (sorting-changed)=\"onSortingChanged($any($event))\"\n (columnOrderChanged)=\"onColumnOrderChanged($event)\"\n (columnsWidthChanged)=\"onColumnsWidthChanged($event)\"\n >\n <adf-loading-content-template>\n <ng-template>\n <mat-progress-spinner\n *ngIf=\"!customLoadingContent\"\n class=\"adf-cloud-process-list-loading-margin\"\n [color]=\"'primary'\"\n [mode]=\"'indeterminate'\" />\n <ng-content select=\"adf-custom-loading-content-template\" />\n </ng-template>\n </adf-loading-content-template>\n <adf-no-content-template>\n <ng-template>\n <adf-empty-content *ngIf=\"!emptyCustomContent\"\n icon=\"assessment\"\n [title]=\"'ADF_CLOUD_PROCESS_LIST.MESSAGES.TITLE' | translate\"\n [subtitle]=\"'ADF_CLOUD_PROCESS_LIST.MESSAGES.SUBTITLE'| translate\" />\n <ng-content select=\"adf-custom-empty-content-template\" />\n </ng-template>\n </adf-no-content-template>\n\n <adf-main-menu-datatable-template>\n <ng-template let-mainMenuTrigger>\n <adf-datatable-column-selector\n [columns]=\"columns\"\n [mainMenuTrigger]=\"mainMenuTrigger\"\n (submitColumnsVisibility)=\"onColumnsVisibilityChange($event)\" />\n </ng-template>\n </adf-main-menu-datatable-template>\n</adf-datatable>\n", styles: [".adf-cloud-process-list-loading-margin{margin-left:calc((100% - 100px)/2);margin-right:calc((100% - 100px)/2)}\n"], dependencies: [{ kind: "component", type: DataTableComponent, selector: "adf-datatable", inputs: ["data", "rows", "sorting", "columns", "selectionMode", "multiselect", "mainTableAction", "actions", "showMainDatatableActions", "showProvidedActions", "actionsPosition", "actionsVisibleOnHover", "fallbackThumbnail", "contextMenu", "rowStyle", "rowStyleClass", "showHeader", "stickyHeader", "loading", "noPermission", "rowMenuCacheEnabled", "resolverFn", "allowFiltering", "isResizingEnabled", "blurOnResize", "displayCheckboxesOnHover", "enableDragRows"], outputs: ["rowClick", "rowDblClick", "showRowContextMenu", "showRowActionsMenu", "executeRowAction", "columnOrderChanged", "columnsWidthChanged", "selectedItemsCountChanged", "dragDropped"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: ColumnsSelectorComponent, selector: "adf-datatable-column-selector", inputs: ["columns", "mainMenuTrigger", "columnsSorting", "maxColumnsVisible"], outputs: ["submitColumnsVisibility"] }, { kind: "directive", type: MainMenuDataTableTemplateDirective, selector: "adf-main-menu-datatable-template" }, { kind: "component", type: EmptyContentComponent, selector: "adf-empty-content", inputs: ["icon", "title", "subtitle"] }, { kind: "directive", type: NoContentTemplateDirective, selector: "adf-no-content-template, no-content-template" }, { kind: "directive", type: LoadingContentTemplateDirective, selector: "adf-loading-content-template, loading-content-template" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
12836
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: ProcessListCloudComponent, isStandalone: true, selector: "adf-cloud-process-list", inputs: { appName: "appName", appVersion: "appVersion", initiator: "initiator", id: "id", environmentId: "environmentId", name: "name", parentId: "parentId", processDefinitionId: "processDefinitionId", processDefinitionName: "processDefinitionName", processDefinitionKey: "processDefinitionKey", status: "status", businessKey: "businessKey", lastModifiedFrom: "lastModifiedFrom", lastModifiedTo: "lastModifiedTo", startFrom: "startFrom", startTo: "startTo", completedFrom: "completedFrom", completedTo: "completedTo", completedDate: "completedDate", suspendedFrom: "suspendedFrom", suspendedTo: "suspendedTo", selectionMode: "selectionMode", multiselect: "multiselect", sorting: "sorting", showActions: "showActions", showProvidedActions: "showProvidedActions", actionsPosition: "actionsPosition", stickyHeader: "stickyHeader", showContextMenu: "showContextMenu", showMainDatatableActions: "showMainDatatableActions", isResizingEnabled: "isResizingEnabled", searchApiMethod: "searchApiMethod", names: "names", ids: "ids", parentIds: "parentIds", processDefinitionNames: "processDefinitionNames", initiators: "initiators", appVersions: "appVersions", statuses: "statuses", processVariables: "processVariables", includeSubprocesses: "includeSubprocesses", includeUnlinkedProcesses: "includeUnlinkedProcesses" }, outputs: { rowClick: "rowClick", rowsSelected: "rowsSelected", showRowContextMenu: "showRowContextMenu", showRowActionsMenu: "showRowActionsMenu", executeRowAction: "executeRowAction", error: "error", success: "success" }, queries: [{ propertyName: "emptyCustomContent", first: true, predicate: CustomEmptyContentTemplateDirective, descendants: true }, { propertyName: "customLoadingContent", first: true, predicate: CustomLoadingContentTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "dataTable", first: true, predicate: DataTableComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<adf-datatable\n [rows]=\"rows\"\n [columns]=\"columns\"\n [data]=\"dataAdapter\"\n [stickyHeader]=\"stickyHeader\"\n [loading]=\"isLoading\"\n [sorting]=\"formattedSorting\"\n [selectionMode]=\"selectionMode\"\n [multiselect]=\"multiselect\"\n [actions]=\"showActions\"\n [actionsPosition]=\"actionsPosition\"\n [contextMenu]=\"showContextMenu\"\n [showMainDatatableActions]=\"showMainDatatableActions\"\n [showProvidedActions]=\"showProvidedActions\"\n [isResizingEnabled]=\"isResizingEnabled\"\n (showRowActionsMenu)=\"onShowRowActionsMenu($event)\"\n (showRowContextMenu)=\"onShowRowContextMenu($event)\"\n (executeRowAction)=\"onExecuteRowAction($event)\"\n (rowClick)=\"onRowClick($any($event))\"\n (row-select)=\"onRowSelect($any($event))\"\n (row-unselect)=\"onRowUnselect($any($event))\"\n (row-keyup)=\"onRowKeyUp($any($event))\"\n (sorting-changed)=\"onSortingChanged($any($event))\"\n (columnOrderChanged)=\"onColumnOrderChanged($event)\"\n (columnsWidthChanged)=\"onColumnsWidthChanged($event)\"\n >\n <adf-loading-content-template>\n <ng-template>\n <mat-progress-spinner\n *ngIf=\"!customLoadingContent\"\n class=\"adf-cloud-process-list-loading-margin\"\n [color]=\"'primary'\"\n [mode]=\"'indeterminate'\" />\n <ng-content select=\"adf-custom-loading-content-template\" />\n </ng-template>\n </adf-loading-content-template>\n <adf-no-content-template>\n <ng-template>\n <adf-empty-content *ngIf=\"!emptyCustomContent\"\n icon=\"assessment\"\n [title]=\"'ADF_CLOUD_PROCESS_LIST.MESSAGES.TITLE' | translate\"\n [subtitle]=\"'ADF_CLOUD_PROCESS_LIST.MESSAGES.SUBTITLE'| translate\" />\n <ng-content select=\"adf-custom-empty-content-template\" />\n </ng-template>\n </adf-no-content-template>\n\n <adf-main-menu-datatable-template>\n <ng-template let-mainMenuTrigger>\n <adf-datatable-column-selector\n [columns]=\"columns\"\n [mainMenuTrigger]=\"mainMenuTrigger\"\n (submitColumnsVisibility)=\"onColumnsVisibilityChange($event)\" />\n </ng-template>\n </adf-main-menu-datatable-template>\n</adf-datatable>\n", styles: [".adf-cloud-process-list-loading-margin{margin-left:calc((100% - 100px)/2);margin-right:calc((100% - 100px)/2)}\n"], dependencies: [{ kind: "component", type: DataTableComponent, selector: "adf-datatable", inputs: ["data", "rows", "sorting", "columns", "selectionMode", "multiselect", "mainTableAction", "actions", "showMainDatatableActions", "showProvidedActions", "actionsPosition", "actionsVisibleOnHover", "fallbackThumbnail", "contextMenu", "rowStyle", "rowStyleClass", "showHeader", "stickyHeader", "loading", "noPermission", "rowMenuCacheEnabled", "resolverFn", "allowFiltering", "isResizingEnabled", "blurOnResize", "displayCheckboxesOnHover", "enableDragRows"], outputs: ["rowClick", "rowDblClick", "showRowContextMenu", "showRowActionsMenu", "executeRowAction", "columnOrderChanged", "columnsWidthChanged", "selectedItemsCountChanged", "dragDropped"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: ColumnsSelectorComponent, selector: "adf-datatable-column-selector", inputs: ["columns", "mainMenuTrigger", "columnsSorting", "maxColumnsVisible"], outputs: ["submitColumnsVisibility"] }, { kind: "directive", type: MainMenuDataTableTemplateDirective, selector: "adf-main-menu-datatable-template" }, { kind: "component", type: EmptyContentComponent, selector: "adf-empty-content", inputs: ["icon", "title", "subtitle"] }, { kind: "directive", type: NoContentTemplateDirective, selector: "adf-no-content-template, no-content-template" }, { kind: "directive", type: LoadingContentTemplateDirective, selector: "adf-loading-content-template, loading-content-template" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
12837
12837
  }
12838
12838
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProcessListCloudComponent, decorators: [{
12839
12839
  type: Component,
@@ -12942,6 +12942,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
12942
12942
  type: Input
12943
12943
  }], includeSubprocesses: [{
12944
12944
  type: Input
12945
+ }], includeUnlinkedProcesses: [{
12946
+ type: Input
12945
12947
  }], rowClick: [{
12946
12948
  type: Output
12947
12949
  }], rowsSelected: [{