@alfresco/adf-process-services-cloud 8.4.0-17399835374 → 8.4.0-17407900008

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.
@@ -69,8 +69,8 @@ import * as i5$3 from '@angular/material/table';
69
69
  import { MatTableModule } from '@angular/material/table';
70
70
  import * as i3$3 from '@angular/material/radio';
71
71
  import { MatRadioModule } from '@angular/material/radio';
72
+ import { DomSanitizer } from '@angular/platform-browser';
72
73
  import edjsHTML from 'editorjs-html';
73
- import * as i2$5 from '@angular/platform-browser';
74
74
 
75
75
  /*!
76
76
  * @license
@@ -10237,47 +10237,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
10237
10237
  class ProcessFilterCloudModel {
10238
10238
  constructor(obj) {
10239
10239
  this.dateRangeFilterService = new DateRangeFilterService();
10240
- if (!obj) {
10241
- return;
10242
- }
10243
- this.id = obj.id || Math.random().toString(36).substring(2, 9);
10244
- this.name = obj.name || null;
10245
- this.key = obj.key || null;
10246
- this.environmentId = obj.environmentId || null;
10247
- this.showCounter = obj.showCounter || false;
10248
- this.icon = obj.icon || null;
10249
- this.index = obj.index || null;
10250
- this.appName = obj.appName || obj.appName === '' ? obj.appName : null;
10251
- this.appVersion = obj.appVersion || null;
10252
- if (obj.appVersionMultiple && Array.isArray(obj.appVersionMultiple)) {
10253
- this.appVersion = obj.appVersionMultiple;
10240
+ if (obj) {
10241
+ this.id = obj.id || Math.random().toString(36).substring(2, 9);
10242
+ this.name = obj.name || null;
10243
+ this.key = obj.key || null;
10244
+ this.environmentId = obj.environmentId;
10245
+ this.showCounter = obj.showCounter || false;
10246
+ this.icon = obj.icon || null;
10247
+ this.index = obj.index || null;
10248
+ this.appName = obj.appName || obj.appName === '' ? obj.appName : null;
10249
+ this.appVersion = obj.appVersion || null;
10250
+ if (obj.appVersionMultiple && Array.isArray(obj.appVersionMultiple)) {
10251
+ this.appVersion = obj.appVersionMultiple;
10252
+ }
10253
+ this.processInstanceId = obj.processInstanceId || null;
10254
+ this.parentId = obj.parentId || '';
10255
+ this.processName = obj.processName || null;
10256
+ this.initiator = obj.initiator || null;
10257
+ this.status = obj.status || null;
10258
+ this.sort = obj.sort || null;
10259
+ this.order = obj.order || null;
10260
+ this.processDefinitionId = obj.processDefinitionId || null;
10261
+ this.processDefinitionName = obj.processDefinitionName || null;
10262
+ this.processDefinitionKey = obj.processDefinitionKey || null;
10263
+ this.lastModified = obj.lastModified || null;
10264
+ this.lastModifiedTo = obj.lastModifiedTo || null;
10265
+ this.lastModifiedFrom = obj.lastModifiedFrom || null;
10266
+ this.startedDate = obj.startedDate || null;
10267
+ this.startFrom = obj._startFrom || null;
10268
+ this.startTo = obj._startTo || null;
10269
+ this.completedDateType = obj.completedDateType || null;
10270
+ this.startedDateType = obj.startedDateType || null;
10271
+ this.suspendedDateType = obj.suspendedDateType || null;
10272
+ this.completedFrom = obj._completedFrom || null;
10273
+ this.completedTo = obj._completedTo || null;
10274
+ this.completedDate = obj.completedDate || null;
10275
+ this._suspendedFrom = obj._suspendedFrom || null;
10276
+ this._suspendedTo = obj._suspendedTo || null;
10277
+ this.initArrayProperties(obj);
10254
10278
  }
10255
- this.processInstanceId = obj.processInstanceId || null;
10256
- this.parentId = obj.parentId || '';
10257
- this.processName = obj.processName || null;
10258
- this.initiator = obj.initiator || null;
10259
- this.status = obj.status || null;
10260
- this.sort = obj.sort || null;
10261
- this.order = obj.order || null;
10262
- this.processDefinitionId = obj.processDefinitionId || null;
10263
- this.processDefinitionName = obj.processDefinitionName || null;
10264
- this.processDefinitionKey = obj.processDefinitionKey || null;
10265
- this.lastModified = obj.lastModified || null;
10266
- this.lastModifiedTo = obj.lastModifiedTo || null;
10267
- this.lastModifiedFrom = obj.lastModifiedFrom || null;
10268
- this.startedDate = obj.startedDate || null;
10269
- this.startFrom = obj._startFrom || null;
10270
- this.startTo = obj._startTo || null;
10271
- this.completedDateType = obj.completedDateType || null;
10272
- this.startedDateType = obj.startedDateType || null;
10273
- this.suspendedDateType = obj.suspendedDateType || null;
10274
- this.completedFrom = obj._completedFrom || null;
10275
- this.completedTo = obj._completedTo || null;
10276
- this.completedDate = obj.completedDate || null;
10277
- this.excludeByProcessCategoryName = obj.excludeByProcessCategoryName || null;
10278
- this._suspendedFrom = obj._suspendedFrom || null;
10279
- this._suspendedTo = obj._suspendedTo || null;
10280
- this.initArrayProperties(obj);
10281
10279
  }
10282
10280
  initArrayProperties(obj) {
10283
10281
  if (obj.processDefinitionNames) {
@@ -10884,8 +10882,7 @@ class ProcessListCloudService extends BaseCloudService {
10884
10882
  suspendedFrom: requestNode.suspendedFrom,
10885
10883
  suspendedTo: requestNode.suspendedTo,
10886
10884
  processVariableKeys: requestNode.processVariableKeys,
10887
- processVariableFilters: requestNode.processVariableFilters,
10888
- excludeByProcessCategoryName: requestNode.excludeByProcessCategoryName
10885
+ processVariableFilters: requestNode.processVariableFilters
10889
10886
  };
10890
10887
  if (requestNode.sorting) {
10891
10888
  queryData['sort'] = {
@@ -11152,7 +11149,6 @@ class ProcessListRequestModel {
11152
11149
  this.suspendedTo = obj.suspendedTo;
11153
11150
  this.processVariableKeys = obj.processVariableKeys;
11154
11151
  this.processVariableFilters = obj.processVariableFilters;
11155
- this.excludeByProcessCategoryName = obj.excludeByProcessCategoryName;
11156
11152
  }
11157
11153
  }
11158
11154
  class ProcessFilterCloudAdapter extends ProcessListRequestModel {
@@ -12610,7 +12606,6 @@ class ProcessListCloudComponent extends DataTableSchema {
12610
12606
  * This input will be used only if searchApiMethod input is provided with 'POST' value.
12611
12607
  */
12612
12608
  this.statuses = [];
12613
- this.excludeByProcessCategoryName = '';
12614
12609
  /** Emitted when a row in the process list is clicked. */
12615
12610
  this.rowClick = new EventEmitter();
12616
12611
  /** Emitted when rows are selected/unselected. */
@@ -12851,8 +12846,7 @@ class ProcessListCloudComponent extends DataTableSchema {
12851
12846
  suspendedFrom: this.suspendedFrom,
12852
12847
  suspendedTo: this.suspendedTo,
12853
12848
  processVariableKeys: this.getVariableDefinitionsRequestModel(),
12854
- processVariableFilters: this.processVariables,
12855
- excludeByProcessCategoryName: this.excludeByProcessCategoryName
12849
+ processVariableFilters: this.processVariables
12856
12850
  };
12857
12851
  return new ProcessListRequestModel(requestNode);
12858
12852
  }
@@ -12944,7 +12938,7 @@ class ProcessListCloudComponent extends DataTableSchema {
12944
12938
  return displayedVariableColumns.length ? displayedVariableColumns : undefined;
12945
12939
  }
12946
12940
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", 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 }); }
12947
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", 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", excludeByProcessCategoryName: "excludeByProcessCategoryName" }, 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$1.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 }); }
12941
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", 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" }, 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$1.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 }); }
12948
12942
  }
12949
12943
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ProcessListCloudComponent, decorators: [{
12950
12944
  type: Component,
@@ -13051,8 +13045,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
13051
13045
  type: Input
13052
13046
  }], processVariables: [{
13053
13047
  type: Input
13054
- }], excludeByProcessCategoryName: [{
13055
- type: Input
13056
13048
  }], rowClick: [{
13057
13049
  type: Output
13058
13050
  }], rowsSelected: [{
@@ -14371,10 +14363,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
14371
14363
  * See the License for the specific language governing permissions and
14372
14364
  * limitations under the License.
14373
14365
  */
14374
- /* eslint-disable @angular-eslint/component-selector */
14375
- class DisplayRichTextWidgetComponent extends WidgetComponent {
14366
+ class RichTextParserService {
14376
14367
  static { this.CUSTOM_PARSER = {
14377
14368
  header: (block) => {
14369
+ if (!block.data || !block.data.text || !block.data.level) {
14370
+ return '';
14371
+ }
14378
14372
  const paragraphAlign = block.data.alignment || block.data.align || block.tunes?.anyTuneName?.alignment;
14379
14373
  if (typeof paragraphAlign !== 'undefined' && ['left', 'right', 'center'].includes(paragraphAlign)) {
14380
14374
  return `<h${block.data.level} class="ce-tune-alignment--${paragraphAlign}">${block.data.text}</h${block.data.level}>`;
@@ -14384,6 +14378,9 @@ class DisplayRichTextWidgetComponent extends WidgetComponent {
14384
14378
  }
14385
14379
  },
14386
14380
  paragraph: (block) => {
14381
+ if (!block.data || !block.data.text) {
14382
+ return '';
14383
+ }
14387
14384
  const paragraphAlign = block.data.alignment || block.data.align || block.tunes?.anyTuneName?.alignment;
14388
14385
  if (typeof paragraphAlign !== 'undefined' && ['left', 'right', 'center', 'justify'].includes(paragraphAlign)) {
14389
14386
  return `<p class="ce-tune-alignment--${paragraphAlign}">${block.data.text}</p>`;
@@ -14393,24 +14390,50 @@ class DisplayRichTextWidgetComponent extends WidgetComponent {
14393
14390
  }
14394
14391
  }
14395
14392
  }; }
14396
- constructor(formService, sanitizer) {
14393
+ parse(richText) {
14394
+ return edjsHTML(RichTextParserService.CUSTOM_PARSER, { strict: true }).parse(richText);
14395
+ }
14396
+ }
14397
+
14398
+ /*!
14399
+ * @license
14400
+ * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
14401
+ *
14402
+ * Licensed under the Apache License, Version 2.0 (the "License");
14403
+ * you may not use this file except in compliance with the License.
14404
+ * You may obtain a copy of the License at
14405
+ *
14406
+ * http://www.apache.org/licenses/LICENSE-2.0
14407
+ *
14408
+ * Unless required by applicable law or agreed to in writing, software
14409
+ * distributed under the License is distributed on an "AS IS" BASIS,
14410
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14411
+ * See the License for the specific language governing permissions and
14412
+ * limitations under the License.
14413
+ */
14414
+ /* eslint-disable @angular-eslint/component-selector */
14415
+ const RICH_TEXT_PARSER_TOKEN = new InjectionToken('RichTextParserService', {
14416
+ factory: () => new RichTextParserService()
14417
+ });
14418
+ class DisplayRichTextWidgetComponent extends WidgetComponent {
14419
+ constructor(formService) {
14397
14420
  super(formService);
14398
- this.formService = formService;
14399
- this.sanitizer = sanitizer;
14421
+ this.richTextParserService = inject(RICH_TEXT_PARSER_TOKEN);
14422
+ this.sanitizer = inject(DomSanitizer);
14400
14423
  }
14401
14424
  ngOnInit() {
14402
- this.parsedHTML = edjsHTML(DisplayRichTextWidgetComponent.CUSTOM_PARSER, { strict: true }).parse(this.field.value);
14403
- if (!(this.parsedHTML instanceof Error)) {
14404
- this.sanitizeHtmlContent();
14425
+ this.parsedHTML = this.richTextParserService.parse(this.field.value);
14426
+ if (this.parsedHTML instanceof Error) {
14427
+ throw this.parsedHTML;
14405
14428
  }
14406
14429
  else {
14407
- throw this.parsedHTML;
14430
+ this.sanitizeHtmlContent();
14408
14431
  }
14409
14432
  }
14410
14433
  sanitizeHtmlContent() {
14411
14434
  this.parsedHTML = this.sanitizer.sanitize(SecurityContext.HTML, this.parsedHTML);
14412
14435
  }
14413
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DisplayRichTextWidgetComponent, deps: [{ token: i1$1.FormService }, { token: i2$5.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
14436
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DisplayRichTextWidgetComponent, deps: [{ token: i1$1.FormService }], target: i0.ɵɵFactoryTarget.Component }); }
14414
14437
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: DisplayRichTextWidgetComponent, isStandalone: true, selector: "display-rich-text", host: { listeners: { "click": "event($event)", "blur": "event($event)", "change": "event($event)", "focus": "event($event)", "focusin": "event($event)", "focusout": "event($event)", "input": "event($event)", "invalid": "event($event)", "select": "event($event)" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"adf-display-rich-text-widget\">\n <div class=\"adf-display-rich-text-widget-parsed-html\" [innerHTML]=\"parsedHTML\"></div>\n</div>\n", styles: [".adf-display-rich-text-widget pre{min-height:100px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#41314e;line-height:1.6em;font-size:12px;background:#f8f7fa;border:1px solid #f1f1f4;box-shadow:none;white-space:pre;word-wrap:normal;overflow-x:auto;resize:vertical;border-radius:3px;outline:none;width:100%}\n"], encapsulation: i0.ViewEncapsulation.None }); }
14415
14438
  }
14416
14439
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: DisplayRichTextWidgetComponent, decorators: [{
@@ -14426,7 +14449,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
14426
14449
  '(invalid)': 'event($event)',
14427
14450
  '(select)': 'event($event)'
14428
14451
  }, encapsulation: ViewEncapsulation.None, template: "<div class=\"adf-display-rich-text-widget\">\n <div class=\"adf-display-rich-text-widget-parsed-html\" [innerHTML]=\"parsedHTML\"></div>\n</div>\n", styles: [".adf-display-rich-text-widget pre{min-height:100px;font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#41314e;line-height:1.6em;font-size:12px;background:#f8f7fa;border:1px solid #f1f1f4;box-shadow:none;white-space:pre;word-wrap:normal;overflow-x:auto;resize:vertical;border-radius:3px;outline:none;width:100%}\n"] }]
14429
- }], ctorParameters: () => [{ type: i1$1.FormService }, { type: i2$5.DomSanitizer }] });
14452
+ }], ctorParameters: () => [{ type: i1$1.FormService }] });
14430
14453
 
14431
14454
  /*!
14432
14455
  * @license
@@ -15971,5 +15994,5 @@ const DATE_FORMAT_CLOUD = 'YYYY-MM-DD';
15971
15994
  * Generated bundle index. Do not edit.
15972
15995
  */
15973
15996
 
15974
- export { APP_CUSTOM_SCREEN_TOKEN, APP_LIST_CLOUD_DIRECTIVES, AppDetailsCloudComponent, AppListCloudComponent, ApplicationVersionModel, ApplicationVersionResponseModel, AppsProcessCloudService, AssignmentType, AttachFileCloudWidgetComponent, BaseCloudService, CloudFormRenderingService, ContentCloudNodeSelectorService, DATE_FORMAT_CLOUD, DEFAULT_APP_INSTANCE_ICON, DEFAULT_APP_INSTANCE_THEME, DEFAULT_OPTION, DEFAULT_TASK_PRIORITIES, DEPLOYED_STATUS, DateCloudFilterType, DateCloudWidgetComponent, DateRangeFilterService, DescriptorCustomUIAuthFlowType, DisplayModeService, DisplayRichTextWidgetComponent, DropdownCloudWidgetComponent, EditProcessFilterCloudComponent, EditServiceTaskFilterCloudComponent, EditTaskFilterCloudComponent, FORM_CLOUD_DIRECTIVES, FORM_CLOUD_FIELD_VALIDATORS_TOKEN, FORM_CLOUD_SERVICE_FIELD_VALIDATORS_TOKEN, FilePropertiesTableCloudComponent, FileViewerWidgetComponent, FormCloudComponent, FormCloudDisplayMode, FormCloudModule, FormCloudService, FormCustomOutcomesComponent, FormDefinitionSelectorCloudComponent, FormDefinitionSelectorCloudService, FormFieldType, FormSpinnerComponent, GroupCloudComponent, GroupCloudModule, GroupCloudWidgetComponent, HIDE_FILTER_LIMIT, IdentityGroupService, IdentityUserService, LAYOUT_GRID, LAYOUT_LIST, LocalPreferenceCloudService, NotificationCloudService, PROCESS_CLOUD_DIRECTIVES, PROCESS_FILTERS_CLOUD_DIRECTIVES, PROCESS_FILTERS_SERVICE_TOKEN, PROCESS_FILTER_ACTION_DELETE, PROCESS_FILTER_ACTION_RESTORE, PROCESS_FILTER_ACTION_SAVE, PROCESS_FILTER_ACTION_SAVE_AS, PROCESS_FILTER_ACTION_SAVE_DEFAULT, PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN, PROCESS_SERVICES_CLOUD_DIRECTIVES, PeopleCloudComponent, PeopleCloudModule, PeopleCloudWidgetComponent, PeopleModeOptions, ProcessCloudContentService, ProcessCloudModule, ProcessCloudService, ProcessDefinitionCloud, ProcessFilterCloudAdapter, ProcessFilterCloudModel, ProcessFilterCloudService, ProcessFilterDialogCloudComponent, ProcessFiltersCloudComponent, ProcessFiltersCloudModule, ProcessHeaderCloudComponent, ProcessHeaderCloudModule, ProcessListCloudComponent, ProcessListCloudModule, ProcessListCloudPreferences, ProcessListCloudService, ProcessListCloudSortingModel, ProcessListRequestModel, ProcessListRequestSortingModel, ProcessPayloadCloud, ProcessQueryCloudRequestModel, ProcessServicesCloudModule, ProcessTaskListCloudService, PropertiesViewerWidgetComponent, PropertiesViewerWrapperComponent, RadioButtonsCloudWidgetComponent, ScreenRenderingService, ServiceTaskFilterCloudService, ServiceTaskFiltersCloudComponent, ServiceTaskListCloudComponent, ServiceTaskListCloudService, StartProcessCloudComponent, StartProcessCloudService, StartTaskCloudRequestModel, TASK_ASSIGNED_STATE, TASK_CANCELLED_STATE, TASK_CLAIM_PERMISSION, TASK_COMPLETED_STATE, TASK_CREATED_STATE, TASK_FILTERS_CLOUD_DIRECTIVES, TASK_FILTERS_SERVICE_TOKEN, TASK_FORM_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_TOKEN, TASK_LIST_PREFERENCES_SERVICE_TOKEN, TASK_RELEASE_PERMISSION, TASK_SUSPENDED_STATE, TASK_UPDATE_PERMISSION, TASK_VIEW_PERMISSION, TaskAssignmentFilterCloudComponent, TaskCloudEntryModel, TaskCloudModule, TaskCloudNodePaging, TaskCloudPagingList, TaskCloudService, TaskFilterCloudAdapter, TaskFilterCloudModel, TaskFilterCloudService, TaskFilterDialogCloudComponent, TaskFiltersCloudComponent, TaskFiltersCloudModule, TaskFormCloudComponent, TaskFormModule, TaskHeaderCloudComponent, TaskHeaderCloudModule, TaskListCloudComponent, TaskListCloudModule, TaskListCloudService, TaskListCloudSortingModel, TaskListRequestModel, TaskListRequestSortingModel, TaskQueryCloudRequestModel, TaskStatusFilter, TaskVariableCloud, UploadCloudWidgetComponent, UserPreferenceCloudService, UserTaskCloudButtonsComponent, UserTaskCloudComponent, VariableMapperService, WebSocketService, processCloudPresetsDefaultModel, provideCloudFormRenderer, provideCloudPreferences, provideScreen, radioButtonsSchema };
15997
+ export { APP_CUSTOM_SCREEN_TOKEN, APP_LIST_CLOUD_DIRECTIVES, AppDetailsCloudComponent, AppListCloudComponent, ApplicationVersionModel, ApplicationVersionResponseModel, AppsProcessCloudService, AssignmentType, AttachFileCloudWidgetComponent, BaseCloudService, CloudFormRenderingService, ContentCloudNodeSelectorService, DATE_FORMAT_CLOUD, DEFAULT_APP_INSTANCE_ICON, DEFAULT_APP_INSTANCE_THEME, DEFAULT_OPTION, DEFAULT_TASK_PRIORITIES, DEPLOYED_STATUS, DateCloudFilterType, DateCloudWidgetComponent, DateRangeFilterService, DescriptorCustomUIAuthFlowType, DisplayModeService, DisplayRichTextWidgetComponent, DropdownCloudWidgetComponent, EditProcessFilterCloudComponent, EditServiceTaskFilterCloudComponent, EditTaskFilterCloudComponent, FORM_CLOUD_DIRECTIVES, FORM_CLOUD_FIELD_VALIDATORS_TOKEN, FORM_CLOUD_SERVICE_FIELD_VALIDATORS_TOKEN, FilePropertiesTableCloudComponent, FileViewerWidgetComponent, FormCloudComponent, FormCloudDisplayMode, FormCloudModule, FormCloudService, FormCustomOutcomesComponent, FormDefinitionSelectorCloudComponent, FormDefinitionSelectorCloudService, FormFieldType, FormSpinnerComponent, GroupCloudComponent, GroupCloudModule, GroupCloudWidgetComponent, HIDE_FILTER_LIMIT, IdentityGroupService, IdentityUserService, LAYOUT_GRID, LAYOUT_LIST, LocalPreferenceCloudService, NotificationCloudService, PROCESS_CLOUD_DIRECTIVES, PROCESS_FILTERS_CLOUD_DIRECTIVES, PROCESS_FILTERS_SERVICE_TOKEN, PROCESS_FILTER_ACTION_DELETE, PROCESS_FILTER_ACTION_RESTORE, PROCESS_FILTER_ACTION_SAVE, PROCESS_FILTER_ACTION_SAVE_AS, PROCESS_FILTER_ACTION_SAVE_DEFAULT, PROCESS_LISTS_PREFERENCES_SERVICE_TOKEN, PROCESS_SERVICES_CLOUD_DIRECTIVES, PeopleCloudComponent, PeopleCloudModule, PeopleCloudWidgetComponent, PeopleModeOptions, ProcessCloudContentService, ProcessCloudModule, ProcessCloudService, ProcessDefinitionCloud, ProcessFilterCloudAdapter, ProcessFilterCloudModel, ProcessFilterCloudService, ProcessFilterDialogCloudComponent, ProcessFiltersCloudComponent, ProcessFiltersCloudModule, ProcessHeaderCloudComponent, ProcessHeaderCloudModule, ProcessListCloudComponent, ProcessListCloudModule, ProcessListCloudPreferences, ProcessListCloudService, ProcessListCloudSortingModel, ProcessListRequestModel, ProcessListRequestSortingModel, ProcessPayloadCloud, ProcessQueryCloudRequestModel, ProcessServicesCloudModule, ProcessTaskListCloudService, PropertiesViewerWidgetComponent, PropertiesViewerWrapperComponent, RICH_TEXT_PARSER_TOKEN, RadioButtonsCloudWidgetComponent, ScreenRenderingService, ServiceTaskFilterCloudService, ServiceTaskFiltersCloudComponent, ServiceTaskListCloudComponent, ServiceTaskListCloudService, StartProcessCloudComponent, StartProcessCloudService, StartTaskCloudRequestModel, TASK_ASSIGNED_STATE, TASK_CANCELLED_STATE, TASK_CLAIM_PERMISSION, TASK_COMPLETED_STATE, TASK_CREATED_STATE, TASK_FILTERS_CLOUD_DIRECTIVES, TASK_FILTERS_SERVICE_TOKEN, TASK_FORM_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_DIRECTIVES, TASK_LIST_CLOUD_TOKEN, TASK_LIST_PREFERENCES_SERVICE_TOKEN, TASK_RELEASE_PERMISSION, TASK_SUSPENDED_STATE, TASK_UPDATE_PERMISSION, TASK_VIEW_PERMISSION, TaskAssignmentFilterCloudComponent, TaskCloudEntryModel, TaskCloudModule, TaskCloudNodePaging, TaskCloudPagingList, TaskCloudService, TaskFilterCloudAdapter, TaskFilterCloudModel, TaskFilterCloudService, TaskFilterDialogCloudComponent, TaskFiltersCloudComponent, TaskFiltersCloudModule, TaskFormCloudComponent, TaskFormModule, TaskHeaderCloudComponent, TaskHeaderCloudModule, TaskListCloudComponent, TaskListCloudModule, TaskListCloudService, TaskListCloudSortingModel, TaskListRequestModel, TaskListRequestSortingModel, TaskQueryCloudRequestModel, TaskStatusFilter, TaskVariableCloud, UploadCloudWidgetComponent, UserPreferenceCloudService, UserTaskCloudButtonsComponent, UserTaskCloudComponent, VariableMapperService, WebSocketService, processCloudPresetsDefaultModel, provideCloudFormRenderer, provideCloudPreferences, provideScreen, radioButtonsSchema };
15975
15998
  //# sourceMappingURL=adf-process-services-cloud.mjs.map