@alfresco/adf-process-services-cloud 8.3.0 → 8.3.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.
Files changed (113) hide show
  1. package/bundles/assets/adf-process-services-cloud/i18n/ar.json +1 -13
  2. package/bundles/assets/adf-process-services-cloud/i18n/cs.json +1 -13
  3. package/bundles/assets/adf-process-services-cloud/i18n/da.json +1 -13
  4. package/bundles/assets/adf-process-services-cloud/i18n/de.json +4 -14
  5. package/bundles/assets/adf-process-services-cloud/i18n/en.json +4 -14
  6. package/bundles/assets/adf-process-services-cloud/i18n/es.json +4 -14
  7. package/bundles/assets/adf-process-services-cloud/i18n/fi.json +1 -13
  8. package/bundles/assets/adf-process-services-cloud/i18n/fr.json +4 -14
  9. package/bundles/assets/adf-process-services-cloud/i18n/it.json +4 -14
  10. package/bundles/assets/adf-process-services-cloud/i18n/ja.json +1 -13
  11. package/bundles/assets/adf-process-services-cloud/i18n/nb.json +1 -13
  12. package/bundles/assets/adf-process-services-cloud/i18n/nl.json +1 -13
  13. package/bundles/assets/adf-process-services-cloud/i18n/pl.json +4 -14
  14. package/bundles/assets/adf-process-services-cloud/i18n/pt-BR.json +1 -13
  15. package/bundles/assets/adf-process-services-cloud/i18n/pt.json +4 -14
  16. package/bundles/assets/adf-process-services-cloud/i18n/ru.json +1 -13
  17. package/bundles/assets/adf-process-services-cloud/i18n/sv.json +1 -13
  18. package/bundles/assets/adf-process-services-cloud/i18n/zh-CN.json +1 -13
  19. package/fesm2022/adf-process-services-cloud.mjs +1207 -1245
  20. package/fesm2022/adf-process-services-cloud.mjs.map +1 -1
  21. package/lib/app/models/application-instance.model.d.ts +7 -6
  22. package/lib/app/public-api.d.ts +0 -3
  23. package/lib/app/services/apps-process-cloud.service.d.ts +1 -3
  24. package/lib/common/date-range-filter/date-range-filter.service.d.ts +1 -1
  25. package/lib/flex.scss +9 -7
  26. package/lib/form/components/form-cloud.component.d.ts +15 -4
  27. package/lib/form/components/form-cloud.component.scss +40 -7
  28. package/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.d.ts +6 -7
  29. package/lib/form/components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component.d.ts +2 -2
  30. package/lib/form/components/widgets/data-table/data-table-adapter.widget.d.ts +3 -3
  31. package/lib/form/components/widgets/data-table/data-table.widget.d.ts +4 -7
  32. package/lib/form/components/widgets/display-external-property/display-external-property.widget.d.ts +2 -5
  33. package/lib/form/components/widgets/display-rich-text/display-rich-text.widget.d.ts +10 -4
  34. package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.d.ts +3 -1
  35. package/lib/form/components/widgets/file-viewer/file-viewer.widget.d.ts +1 -2
  36. package/lib/form/components/widgets/group/group-cloud.widget.d.ts +1 -2
  37. package/lib/form/components/widgets/people/people-cloud.widget.d.ts +2 -3
  38. package/lib/form/components/widgets/properties-viewer/properties-viewer-wrapper/properties-viewer-wrapper.component.d.ts +2 -3
  39. package/lib/form/components/widgets/properties-viewer/properties-viewer.widget.d.ts +1 -2
  40. package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.d.ts +4 -5
  41. package/lib/form/components/widgets/upload/upload-cloud.widget.d.ts +1 -2
  42. package/lib/form/form-cloud.module.d.ts +8 -10
  43. package/lib/form/models/form-cloud-representation.model.d.ts +11 -9
  44. package/lib/form/public-api.d.ts +0 -2
  45. package/lib/form/services/content-cloud-node-selector.service.d.ts +3 -7
  46. package/lib/form/services/form-cloud.service.d.ts +3 -4
  47. package/lib/form/services/process-cloud-content.service.d.ts +4 -7
  48. package/lib/form/services/spinner/form-cloud-spinner.service.d.ts +2 -2
  49. package/lib/group/components/group-cloud.component.d.ts +2 -4
  50. package/lib/group/services/identity-group.service.d.ts +2 -4
  51. package/lib/models/constant-values.type.d.ts +1 -0
  52. package/lib/models/date-cloud-filter.model.d.ts +12 -11
  53. package/lib/people/components/people-cloud.component.d.ts +2 -4
  54. package/lib/people/services/identity-user.service.d.ts +3 -5
  55. package/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.d.ts +11 -17
  56. package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.d.ts +3 -0
  57. package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.scss +12 -29
  58. package/lib/process/process-filters/models/process-filter-cloud.model.d.ts +4 -2
  59. package/lib/process/process-filters/services/process-filter-cloud.service.d.ts +7 -5
  60. package/lib/process/process-header/components/process-header-cloud.component.d.ts +4 -6
  61. package/lib/process/process-list/components/process-list-cloud.component.d.ts +28 -16
  62. package/lib/process/process-list/models/process-cloud-preferences.d.ts +6 -5
  63. package/lib/process/process-list/models/process-cloud-query-request.model.d.ts +4 -1
  64. package/lib/process/start-process/components/start-process-cloud.component.d.ts +20 -6
  65. package/lib/process/start-process/models/process-instance-cloud.model.d.ts +8 -0
  66. package/lib/process/start-process/models/process-payload-cloud.model.d.ts +12 -1
  67. package/lib/process/start-process/services/start-process-cloud.service.d.ts +1 -2
  68. package/lib/process-services-cloud.module.d.ts +19 -22
  69. package/lib/screen/components/screen-cloud/base-screen/base-screen-cloud.component.d.ts +31 -0
  70. package/lib/screen/components/screen-cloud/start-process-event-screen/start-process-screen-cloud.component.d.ts +13 -0
  71. package/lib/screen/components/screen-cloud/start-process-event-screen/start-process-screen-cloud.component.scss +8 -0
  72. package/lib/{form/services/form-definition-selector-cloud.service.interface.d.ts → screen/components/screen-cloud/start-process-event-screen/start-process-screen.model.d.ts} +9 -5
  73. package/lib/screen/components/screen-cloud/{screen-cloud.component.d.ts → user-task-screen/screen-cloud.component.d.ts} +7 -13
  74. package/lib/screen/public-api.d.ts +2 -1
  75. package/lib/screen/services/screen-rendering.service.d.ts +1 -1
  76. package/lib/services/base-cloud.service.d.ts +0 -1
  77. package/lib/services/form-fields.interfaces.d.ts +35 -31
  78. package/lib/services/local-preference-cloud.service.d.ts +1 -3
  79. package/lib/services/notification-cloud.service.d.ts +0 -2
  80. package/lib/services/task-type-resolver/task-type-resolver.service.d.ts +15 -0
  81. package/lib/services/web-socket.service.d.ts +2 -6
  82. package/lib/task/services/task-cloud.service.d.ts +2 -4
  83. package/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.d.ts +3 -3
  84. package/lib/task/task-filters/components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component.d.ts +1 -1
  85. package/lib/task/task-filters/components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component.d.ts +1 -1
  86. package/lib/task/task-filters/components/task-assignment-filter/task-assignment-filter.component.d.ts +1 -3
  87. package/lib/task/task-filters/components/task-filter-dialog/task-filter-dialog-cloud.component.d.ts +3 -4
  88. package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.d.ts +3 -0
  89. package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.scss +10 -31
  90. package/lib/task/task-filters/models/filter-cloud.model.d.ts +18 -16
  91. package/lib/task/task-filters/services/service-task-filter-cloud.service.d.ts +5 -6
  92. package/lib/task/task-filters/services/task-filter-cloud.service.d.ts +5 -8
  93. package/lib/task/task-form/components/task-form-cloud/task-form-cloud.component.d.ts +11 -8
  94. package/lib/task/task-form/components/user-task-cloud/complete-task/complete-task.directive.d.ts +1 -3
  95. package/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.d.ts +13 -13
  96. package/lib/task/task-form/components/user-task-cloud-buttons/claim-task/claim-task-cloud.directive.d.ts +3 -6
  97. package/lib/task/task-form/components/user-task-cloud-buttons/unclaim-task/unclaim-task-cloud.directive.d.ts +2 -4
  98. package/lib/task/task-header/components/task-header-cloud.component.d.ts +6 -7
  99. package/lib/task/task-list/components/base-task-list-cloud.component.d.ts +11 -9
  100. package/lib/task/task-list/components/service-task-list/service-task-list-cloud.component.d.ts +3 -7
  101. package/lib/task/task-list/components/task-list/task-list-cloud.component.d.ts +4 -8
  102. package/lib/task/task-list/models/service-task-cloud.model.d.ts +82 -2
  103. package/lib/task/task-list/services/service-task-list-cloud.service.d.ts +15 -1
  104. package/package.json +4 -4
  105. package/lib/app/app-list-cloud.module.d.ts +0 -19
  106. package/lib/app/components/app-details-cloud/app-details-cloud.component.d.ts +0 -43
  107. package/lib/app/components/app-details-cloud/app-details-cloud.component.scss +0 -162
  108. package/lib/app/components/app-list-cloud/app-list-cloud.component.d.ts +0 -67
  109. package/lib/app/components/app-list-cloud/app-list-cloud.component.scss +0 -41
  110. package/lib/form/components/form-definition-selector-cloud.component.d.ts +0 -35
  111. package/lib/form/components/form-definition-selector-cloud.component.scss +0 -5
  112. package/lib/form/services/form-definition-selector-cloud.service.d.ts +0 -23
  113. /package/lib/screen/components/screen-cloud/{screen-cloud.model.d.ts → user-task-screen/screen-cloud.model.d.ts} +0 -0
@@ -14,8 +14,6 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare const DEFAULT_APP_INSTANCE_THEME = "theme-2";
18
- export declare const DEFAULT_APP_INSTANCE_ICON = "favorite_border";
19
17
  export interface ApplicationInstanceModel {
20
18
  name?: string;
21
19
  displayName?: string;
@@ -30,6 +28,8 @@ export interface ApplicationInstanceModel {
30
28
  descriptor?: Descriptor;
31
29
  environmentId?: string;
32
30
  environment?: string;
31
+ lastModifiedAt?: Date;
32
+ quickRunDeployment?: boolean;
33
33
  }
34
34
  export interface Descriptor {
35
35
  name?: string;
@@ -45,10 +45,11 @@ export interface Descriptor {
45
45
  enableLocalDevelopment?: boolean;
46
46
  customUIAuthFlowType?: DescriptorCustomUIAuthFlowType;
47
47
  }
48
- export declare enum DescriptorCustomUIAuthFlowType {
49
- CODE = "CODE",
50
- IMPLICIT = "IMPLICIT"
51
- }
48
+ export declare const DescriptorCustomUIAuthFlowType: {
49
+ readonly CODE: "CODE";
50
+ readonly IMPLICIT: "IMPLICIT";
51
+ };
52
+ export type DescriptorCustomUIAuthFlowType = (typeof DescriptorCustomUIAuthFlowType)[keyof typeof DescriptorCustomUIAuthFlowType];
52
53
  export interface DescriptorSecurity {
53
54
  role: string;
54
55
  groups: string[];
@@ -14,8 +14,5 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export * from './components/app-list-cloud/app-list-cloud.component';
18
- export * from './components/app-details-cloud/app-details-cloud.component';
19
17
  export * from './services/apps-process-cloud.service';
20
18
  export * from './models/application-instance.model';
21
- export * from './app-list-cloud.module';
@@ -1,14 +1,12 @@
1
1
  import { Observable } from 'rxjs';
2
- import { AppConfigService } from '@alfresco/adf-core';
3
2
  import { ApplicationInstanceModel } from '../models/application-instance.model';
4
3
  import { Environment } from '../../common/interface/environment.interface';
5
- import { AdfHttpClient } from '@alfresco/adf-core/api';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class AppsProcessCloudService {
8
6
  private readonly adfHttpClient;
9
7
  private readonly appConfigService;
10
8
  deployedApps: ApplicationInstanceModel[];
11
- constructor(adfHttpClient: AdfHttpClient, appConfigService: AppConfigService);
9
+ constructor();
12
10
  /**
13
11
  * Gets a list of deployed apps for this user by status.
14
12
  *
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class DateRangeFilterService {
4
4
  currentDate: Date;
5
5
  getDateRange(type: DateCloudFilterType): DateRangeFilter;
6
- isDateRangeType(type: DateCloudFilterType): type is DateCloudFilterType.RANGE;
6
+ isDateRangeType(type: DateCloudFilterType): type is "RANGE";
7
7
  private resetDateRange;
8
8
  private getNext7DaysDateRange;
9
9
  private getTomorrowDateRange;
package/lib/flex.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  @charset "UTF-8";
2
+ @use 'sass:map';
2
3
  /* stylelint-disable */
3
4
 
4
5
  // Non-overlapping Material Design breakpoints
@@ -60,22 +61,23 @@ $overlapping-lt: (
60
61
  // background-color: red;
61
62
  // }
62
63
  @mixin layout-bp($bp) {
63
- @if map-has-key($breakpoints, $bp) {
64
- $min: map-get(map-get($breakpoints, $bp), begin);
65
- $max: map-get(map-get($breakpoints, $bp), end);
64
+ @if map.has-key($breakpoints, $bp) {
65
+ $min: map.get(map.get($breakpoints, $bp), begin);
66
+ $max: map.get(map.get($breakpoints, $bp), end);
66
67
  @media (min-width: $min) and (max-width: $max) {
67
68
  @content;
68
69
  }
69
- } @else if map-has-key($overlapping-gt, $bp) {
70
- $min: map-get($overlapping-gt, $bp);
70
+ } @else if map.has-key($overlapping-gt, $bp) {
71
+ $min: map.get($overlapping-gt, $bp);
71
72
  @media (min-width: $min) {
72
73
  @content;
73
74
  }
74
- } @else if map-has-key($overlapping-lt, $bp) {
75
- $max: map-get($overlapping-lt, $bp);
75
+ } @else if map.has-key($overlapping-lt, $bp) {
76
+ $max: map.get($overlapping-lt, $bp);
76
77
  @media (max-width: $max) {
77
78
  @content;
78
79
  }
79
80
  }
80
81
  }
82
+
81
83
  /* stylelint-enable */
@@ -53,6 +53,11 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
53
53
  * If not provided, the default text will be used.
54
54
  */
55
55
  customCompleteButtonText: string;
56
+ /**
57
+ * Toggle to enable parent visibility check for validation.
58
+ * When enabled, fields inside hidden groups/sections will skip validation.
59
+ */
60
+ enableParentVisibilityCheck: boolean;
56
61
  /** Emitted when the form is submitted with the `Save` or custom outcomes. */
57
62
  formSaved: EventEmitter<FormModel>;
58
63
  /** Emitted when the form is submitted with the `Complete` outcome. */
@@ -83,7 +88,7 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
83
88
  protected displayModeService: DisplayModeService;
84
89
  protected changeDetector: ChangeDetectorRef;
85
90
  private readonly destroyRef;
86
- constructor(injectedFieldValidators?: FormFieldValidator[]);
91
+ constructor();
87
92
  onKeyDown(event: KeyboardEvent): void;
88
93
  ngOnChanges(changes: SimpleChanges): void;
89
94
  ngOnInit(): void;
@@ -98,7 +103,7 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
98
103
  getFormByTaskId(appName: string, taskId: string, version?: number): Promise<FormModel>;
99
104
  getFormById(appName: string, formId: string, appVersion?: number): void;
100
105
  saveTaskForm(): void;
101
- completeTaskForm(outcome?: string): void;
106
+ completeTaskForm(outcome?: string, outcomeId?: string): void;
102
107
  private completeForm;
103
108
  parseForm(formCloudRepresentationJSON?: any): FormModel | null;
104
109
  /**
@@ -110,6 +115,12 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
110
115
  getFormDefinitionOutcomes(form: FormModel): FormOutcomeModel[];
111
116
  checkVisibility(field: FormFieldModel): void;
112
117
  private refreshFormData;
118
+ /**
119
+ * Sets the parent visibility check flag on all form fields.
120
+ * When enabled, fields inside hidden groups/sections will skip validation.
121
+ * When disabled, resets flags to false to revert to default behavior.
122
+ */
123
+ private setCheckParentVisibilityForValidationOnFields;
113
124
  protected onFormLoaded(form: FormModel): void;
114
125
  protected onFormDataRefreshed(form: FormModel): void;
115
126
  protected onTaskSaved(form: FormModel): void;
@@ -121,6 +132,6 @@ export declare class FormCloudComponent extends FormBaseComponent implements OnC
121
132
  switchToDisplayMode(newDisplayMode?: string): void;
122
133
  findDisplayConfiguration(displayMode?: string): FormCloudDisplayModeConfiguration;
123
134
  loadInjectedFieldValidators(injectedFieldValidators: FormFieldValidator[]): void;
124
- static ɵfac: i0.ɵɵFactoryDeclaration<FormCloudComponent, [{ optional: true; }]>;
125
- static ɵcmp: i0.ɵɵComponentDeclaration<FormCloudComponent, "adf-cloud-form", never, { "appName": { "alias": "appName"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "taskId": { "alias": "taskId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "showCompleteButton": { "alias": "showCompleteButton"; "required": false; }; "customSaveButtonText": { "alias": "customSaveButtonText"; "required": false; }; "customCompleteButtonText": { "alias": "customCompleteButtonText"; "required": false; }; }, { "formSaved": "formSaved"; "formCompleted": "formCompleted"; "formLoaded": "formLoaded"; "formDataRefreshed": "formDataRefreshed"; "formContentClicked": "formContentClicked"; "displayModeOn": "displayModeOn"; "displayModeOff": "displayModeOff"; }, never, ["[empty-form]", "adf-cloud-form-custom-outcomes"], true, never>;
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormCloudComponent, never>;
136
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormCloudComponent, "adf-cloud-form", never, { "appName": { "alias": "appName"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "processInstanceId": { "alias": "processInstanceId"; "required": false; }; "taskId": { "alias": "taskId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayModeConfigurations": { "alias": "displayModeConfigurations"; "required": false; }; "showCompleteButton": { "alias": "showCompleteButton"; "required": false; }; "customSaveButtonText": { "alias": "customSaveButtonText"; "required": false; }; "customCompleteButtonText": { "alias": "customCompleteButtonText"; "required": false; }; "enableParentVisibilityCheck": { "alias": "enableParentVisibilityCheck"; "required": false; }; }, { "formSaved": "formSaved"; "formCompleted": "formCompleted"; "formLoaded": "formLoaded"; "formDataRefreshed": "formDataRefreshed"; "formContentClicked": "formContentClicked"; "displayModeOn": "displayModeOn"; "displayModeOff": "displayModeOff"; }, never, ["[empty-form]", "adf-cloud-form-custom-outcomes"], true, never>;
126
137
  }
@@ -10,7 +10,18 @@
10
10
  }
11
11
 
12
12
  .adf-cloud-form {
13
+ &-content-standalone-fullscreen {
14
+ background-color: transparent;
15
+ border-radius: 14px;
16
+ }
17
+
18
+ &-content-toolbar {
19
+ padding-top: 0;
20
+ }
21
+
13
22
  &-container {
23
+ border-radius: 14px;
24
+
14
25
  .adf-cloud-form-content {
15
26
  @extend .adf-full-screen;
16
27
 
@@ -22,21 +33,38 @@
22
33
  }
23
34
 
24
35
  &-fullscreen-container {
36
+ position: fixed;
37
+ top: 0;
38
+ left: 0;
39
+ z-index: 100000;
40
+ background-color: var(--adf-theme-mat-grey-color-a400);
41
+ display: block;
42
+ height: 100%;
43
+ width: 100vw;
44
+ overflow-y: auto;
45
+ border-radius: 0 0 14px;
46
+
25
47
  .adf-cloud-form-content {
26
- position: fixed;
27
- top: 0;
28
- left: 0;
29
- z-index: 100000;
48
+ width: calc(100% - 80px);
49
+ max-width: 1366px;
50
+ height: auto;
51
+ margin: 40px auto;
52
+ border-radius: 14px;
30
53
  }
31
54
  }
32
55
 
33
56
  &-inline-container {
34
57
  @extend .adf-full-screen;
58
+
59
+ .adf-cloud-form-content {
60
+ border-radius: 14px;
61
+ }
35
62
  }
36
63
 
37
- &-toolbar {
64
+ &-toolbar ::ng-deep {
38
65
  #{ms.$mat-toolbar} {
39
66
  background-color: var(--adf-theme-background-card-color-087);
67
+ border-radius: 14px 14px 0 0;
40
68
  }
41
69
  }
42
70
 
@@ -68,17 +96,22 @@
68
96
  }
69
97
 
70
98
  &-content-card {
71
- padding-bottom: 2em;
99
+ padding-bottom: 2rem;
72
100
  overflow-y: auto;
73
101
  position: static;
74
102
  height: 70%;
103
+ border-radius: 14px;
75
104
 
76
105
  &-fullscreen {
77
- padding: 0;
106
+ padding-top: 0;
78
107
  height: 100%;
79
108
  width: 100%;
80
109
  position: relative;
81
110
 
111
+ &-toolbar {
112
+ border-radius: 0 0 14px 14px;
113
+ }
114
+
82
115
  &-container {
83
116
  display: flex;
84
117
  flex-direction: column;
@@ -15,18 +15,18 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
18
- import { FormService, DestinationFolderPath } from '@alfresco/adf-core';
18
+ import { DestinationFolderPath } from '@alfresco/adf-core';
19
19
  import { Node, NodesApi, RelatedContentRepresentation } from '@alfresco/js-api';
20
20
  import { UploadCloudWidgetComponent } from '../upload/upload-cloud.widget';
21
21
  import { DestinationFolderPathModel } from '../../../models/form-cloud-representation.model';
22
22
  import { NewVersionUploaderDialogData } from '@alfresco/adf-content-services';
23
23
  import * as i0 from "@angular/core";
24
24
  export declare class AttachFileCloudWidgetComponent extends UploadCloudWidgetComponent implements OnInit, OnDestroy {
25
- private contentNodeSelectorService;
26
- private appConfigService;
27
- private apiService;
28
- private contentNodeSelectorPanelService;
29
- private newVersionUploaderService;
25
+ private readonly contentNodeSelectorService;
26
+ private readonly appConfigService;
27
+ private readonly apiService;
28
+ private readonly contentNodeSelectorPanelService;
29
+ private readonly newVersionUploaderService;
30
30
  typeId: string;
31
31
  rootNodeId: string;
32
32
  selectedNode: Node;
@@ -35,7 +35,6 @@ export declare class AttachFileCloudWidgetComponent extends UploadCloudWidgetCom
35
35
  private _nodesApi;
36
36
  get nodesApi(): NodesApi;
37
37
  displayedColumns: string[];
38
- constructor(formService: FormService);
39
38
  ngOnInit(): void;
40
39
  isPathStaticType(): boolean;
41
40
  isUploadButtonVisible(): boolean;
@@ -20,8 +20,8 @@ import { Node } from '@alfresco/js-api';
20
20
  import { NewVersionUploaderDialogData } from '@alfresco/adf-content-services';
21
21
  import * as i0 from "@angular/core";
22
22
  export declare class FilePropertiesTableCloudComponent {
23
- private localizedDatePipe;
24
- private thumbnailService;
23
+ private readonly localizedDatePipe;
24
+ private readonly thumbnailService;
25
25
  uploadedFiles: any;
26
26
  hasFile: boolean;
27
27
  selectedNode: Node;
@@ -17,9 +17,9 @@
17
17
  import { DataColumn, DataRow, DataTableAdapter, DataSorting } from '@alfresco/adf-core';
18
18
  import { Subject } from 'rxjs';
19
19
  export declare class WidgetDataTableAdapter implements DataTableAdapter {
20
- private adapter;
21
- private columnKeys;
22
- private helper;
20
+ private readonly adapter;
21
+ private readonly columnKeys;
22
+ private readonly helper;
23
23
  get selectedRow(): DataRow;
24
24
  get rowsChanged(): Subject<Array<DataRow>>;
25
25
  constructor(data: any[], schema: DataColumn[]);
@@ -15,22 +15,19 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { OnInit } from '@angular/core';
18
- import { WidgetComponent, FormService } from '@alfresco/adf-core';
19
- import { FormCloudService } from '../../../services/form-cloud.service';
18
+ import { WidgetComponent } from '@alfresco/adf-core';
20
19
  import { WidgetDataTableAdapter } from './data-table-adapter.widget';
21
20
  import * as i0 from "@angular/core";
22
21
  export declare class DataTableWidgetComponent extends WidgetComponent implements OnInit {
23
- formService: FormService;
24
- private formCloudService;
25
22
  dataSource: WidgetDataTableAdapter;
26
23
  dataTableLoadFailed: boolean;
27
24
  previewState: boolean;
28
25
  private rowsData;
29
26
  private columnsSchema;
30
27
  private variableName;
31
- private defaultResponseProperty;
32
- private pathParserHelper;
33
- constructor(formService: FormService, formCloudService: FormCloudService);
28
+ private readonly defaultResponseProperty;
29
+ private readonly pathParserHelper;
30
+ private readonly formCloudService;
34
31
  ngOnInit(): void;
35
32
  private init;
36
33
  private getTableData;
@@ -15,17 +15,14 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { OnInit } from '@angular/core';
18
- import { WidgetComponent, FormService } from '@alfresco/adf-core';
19
- import { FormCloudService } from '../../../services/form-cloud.service';
18
+ import { WidgetComponent } from '@alfresco/adf-core';
20
19
  import { FormControl } from '@angular/forms';
21
20
  import * as i0 from "@angular/core";
22
21
  export declare class DisplayExternalPropertyWidgetComponent extends WidgetComponent implements OnInit {
23
- readonly formService: FormService;
24
- private readonly formCloudService;
25
22
  propertyLoadFailed: boolean;
26
23
  previewState: boolean;
27
24
  propertyControl: FormControl;
28
- constructor(formService: FormService, formCloudService: FormCloudService);
25
+ private readonly formCloudService;
29
26
  ngOnInit(): void;
30
27
  private initFormControl;
31
28
  private isPropertyLoadFailed;
@@ -14,17 +14,23 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { InjectionToken, OnInit } from '@angular/core';
18
- import { WidgetComponent, FormService } from '@alfresco/adf-core';
17
+ import { InjectionToken, OnDestroy, OnInit } from '@angular/core';
18
+ import { BaseDisplayTextWidgetComponent } from '@alfresco/adf-core';
19
19
  import { RichTextParserService } from '../../../services/rich-text-parser.service';
20
20
  import * as i0 from "@angular/core";
21
21
  export declare const RICH_TEXT_PARSER_TOKEN: InjectionToken<RichTextParserService>;
22
- export declare class DisplayRichTextWidgetComponent extends WidgetComponent implements OnInit {
22
+ export declare class DisplayRichTextWidgetComponent extends BaseDisplayTextWidgetComponent implements OnInit, OnDestroy {
23
23
  parsedHTML: string | Error;
24
24
  private readonly richTextParserService;
25
25
  private readonly sanitizer;
26
- constructor(formService: FormService);
26
+ private fieldChangedSubscription?;
27
27
  ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ protected storeOriginalValue(): void;
30
+ protected evaluateExpressions(): void;
31
+ protected reevaluateExpressions(): void;
32
+ private applyExpressionsToBlocks;
33
+ private parseAndSanitize;
28
34
  private sanitizeHtmlContent;
29
35
  static ɵfac: i0.ɵɵFactoryDeclaration<DisplayRichTextWidgetComponent, never>;
30
36
  static ɵcmp: i0.ɵɵComponentDeclaration<DisplayRichTextWidgetComponent, "display-rich-text", never, {}, {}, never, never, true, never>;
@@ -24,12 +24,13 @@ export declare const DEFAULT_OPTION: {
24
24
  name: string;
25
25
  };
26
26
  export declare const HIDE_FILTER_LIMIT = 5;
27
+ export declare const DROPDOWN_CLOUD_WIDGET_SET_VALUE_DEBOUNCE = 100;
27
28
  export declare class DropdownCloudWidgetComponent extends WidgetComponent implements OnInit, ReactiveFormWidget {
28
29
  formService: FormService;
29
30
  private readonly formCloudService;
30
31
  private readonly appConfig;
31
32
  private readonly formUtilsService;
32
- private destroyRef;
33
+ private readonly destroyRef;
33
34
  typeId: string;
34
35
  showInputFilter: boolean;
35
36
  isRestApiFailed: boolean;
@@ -42,6 +43,7 @@ export declare class DropdownCloudWidgetComponent extends WidgetComponent implem
42
43
  private readonly defaultVariableOptionId;
43
44
  private readonly defaultVariableOptionLabel;
44
45
  private readonly defaultVariableOptionPath;
46
+ private readonly debounceSetValue;
45
47
  get showRequiredMessage(): boolean;
46
48
  get isReadOnlyType(): boolean;
47
49
  private get isLinkedWidget();
@@ -1,7 +1,6 @@
1
- import { FormService, BaseViewerWidgetComponent } from '@alfresco/adf-core';
1
+ import { BaseViewerWidgetComponent } from '@alfresco/adf-core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FileViewerWidgetComponent extends BaseViewerWidgetComponent {
4
- constructor(formService: FormService);
5
4
  static ɵfac: i0.ɵɵFactoryDeclaration<FileViewerWidgetComponent, never>;
6
5
  static ɵcmp: i0.ɵɵComponentDeclaration<FileViewerWidgetComponent, "file-viewer-widget", never, {}, {}, never, never, true, never>;
7
6
  }
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { OnInit } from '@angular/core';
18
- import { FormService, WidgetComponent } from '@alfresco/adf-core';
18
+ import { WidgetComponent } from '@alfresco/adf-core';
19
19
  import { UntypedFormControl } from '@angular/forms';
20
20
  import { ComponentSelectionMode } from '../../../../types';
21
21
  import { IdentityGroupModel } from '../../../../group/models/identity-group.model';
@@ -29,7 +29,6 @@ export declare class GroupCloudWidgetComponent extends WidgetComponent implement
29
29
  search: UntypedFormControl;
30
30
  validate: boolean;
31
31
  private readonly destroyRef;
32
- constructor(formService: FormService);
33
32
  ngOnInit(): void;
34
33
  onChangedGroup(groups: IdentityGroupModel[]): void;
35
34
  isMultipleMode(): boolean;
@@ -15,13 +15,13 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { OnInit } from '@angular/core';
18
- import { FormService, WidgetComponent } from '@alfresco/adf-core';
18
+ import { WidgetComponent } from '@alfresco/adf-core';
19
19
  import { UntypedFormControl } from '@angular/forms';
20
20
  import { ComponentSelectionMode } from '../../../../types';
21
21
  import { IdentityUserModel } from '../../../../people/models/identity-user.model';
22
22
  import * as i0 from "@angular/core";
23
23
  export declare class PeopleCloudWidgetComponent extends WidgetComponent implements OnInit {
24
- private identityUserService;
24
+ private readonly identityUserService;
25
25
  typeId: string;
26
26
  appName: string;
27
27
  roles: string[];
@@ -32,7 +32,6 @@ export declare class PeopleCloudWidgetComponent extends WidgetComponent implemen
32
32
  groupsRestriction: string[];
33
33
  validate: boolean;
34
34
  private readonly destroyRef;
35
- constructor(formService: FormService);
36
35
  ngOnInit(): void;
37
36
  onChangedUser(users: IdentityUserModel[]): void;
38
37
  isMultipleMode(): boolean;
@@ -15,11 +15,11 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
18
- import { PresetConfig, NodesApiService } from '@alfresco/adf-content-services';
18
+ import { PresetConfig } from '@alfresco/adf-content-services';
19
19
  import { Node } from '@alfresco/js-api';
20
20
  import * as i0 from "@angular/core";
21
21
  export declare class PropertiesViewerWrapperComponent implements OnInit, OnChanges {
22
- private nodesApiService;
22
+ private readonly nodesApiService;
23
23
  node: Node;
24
24
  loading: boolean;
25
25
  nodeId: string;
@@ -45,7 +45,6 @@ export declare class PropertiesViewerWrapperComponent implements OnInit, OnChang
45
45
  /** Toggles chips for multivalued properties. */
46
46
  useChipsForMultiValueProperty: boolean;
47
47
  nodeContentLoaded: EventEmitter<Node>;
48
- constructor(nodesApiService: NodesApiService);
49
48
  ngOnChanges(changes: SimpleChanges): void;
50
49
  ngOnInit(): void;
51
50
  private getNode;
@@ -15,12 +15,11 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { EventEmitter } from '@angular/core';
18
- import { BaseViewerWidgetComponent, FormService } from '@alfresco/adf-core';
18
+ import { BaseViewerWidgetComponent } from '@alfresco/adf-core';
19
19
  import { Node } from '@alfresco/js-api';
20
20
  import * as i0 from "@angular/core";
21
21
  export declare class PropertiesViewerWidgetComponent extends BaseViewerWidgetComponent {
22
22
  nodeContentLoaded: EventEmitter<Node>;
23
- constructor(formService: FormService);
24
23
  onNodeContentLoaded(node: Node): void;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<PropertiesViewerWidgetComponent, never>;
26
25
  static ɵcmp: i0.ɵɵComponentDeclaration<PropertiesViewerWidgetComponent, "adf-properties-viewer-widget", never, {}, { "nodeContentLoaded": "nodeContentLoaded"; }, never, never, true, never>;
@@ -15,16 +15,15 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  import { OnInit } from '@angular/core';
18
- import { ErrorMessageModel, FormFieldOption, FormService, WidgetComponent } from '@alfresco/adf-core';
18
+ import { ErrorMessageModel, FormFieldOption, WidgetComponent } from '@alfresco/adf-core';
19
19
  import * as i0 from "@angular/core";
20
20
  export declare class RadioButtonsCloudWidgetComponent extends WidgetComponent implements OnInit {
21
- private formCloudService;
22
- private translateService;
23
- private formUtilsService;
21
+ private readonly formCloudService;
22
+ private readonly translateService;
23
+ private readonly formUtilsService;
24
24
  typeId: string;
25
25
  restApiError: ErrorMessageModel;
26
26
  private readonly destroyRef;
27
- constructor(formService: FormService);
28
27
  ngOnInit(): void;
29
28
  getValuesFromRestApi(): void;
30
29
  onOptionClick(optionSelected: any): void;
@@ -16,7 +16,7 @@
16
16
  */
17
17
  import { ElementRef, EventEmitter, OnInit } from '@angular/core';
18
18
  import { Node } from '@alfresco/js-api';
19
- import { WidgetComponent, FormService, ThumbnailService, NotificationService } from '@alfresco/adf-core';
19
+ import { WidgetComponent, ThumbnailService, NotificationService } from '@alfresco/adf-core';
20
20
  import { ProcessCloudContentService } from '../../../services/process-cloud-content.service';
21
21
  import { VersionManagerUploadData } from '@alfresco/adf-content-services';
22
22
  import * as i0 from "@angular/core";
@@ -30,7 +30,6 @@ export declare class UploadCloudWidgetComponent extends WidgetComponent implemen
30
30
  mimeTypeIcon: string;
31
31
  error: EventEmitter<any>;
32
32
  fileInput: ElementRef;
33
- constructor(formService: FormService);
34
33
  ngOnInit(): void;
35
34
  removeFile(file: any): void;
36
35
  replaceOldFileVersionWithNew(versionManagerData: VersionManagerUploadData): void;
@@ -1,5 +1,4 @@
1
1
  import { FormCloudComponent } from './components/form-cloud.component';
2
- import { FormDefinitionSelectorCloudComponent } from './components/form-definition-selector-cloud.component';
3
2
  import { FormCustomOutcomesComponent } from './components/form-cloud-custom-outcomes.component';
4
3
  import { GroupCloudWidgetComponent } from './components/widgets/group/group-cloud.widget';
5
4
  import { PeopleCloudWidgetComponent } from './components/widgets/people/people-cloud.widget';
@@ -20,17 +19,16 @@ import * as i4 from "./components/widgets/display-rich-text/display-rich-text.wi
20
19
  import * as i5 from "./components/widgets/file-viewer/file-viewer.widget";
21
20
  import * as i6 from "./components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component";
22
21
  import * as i7 from "./components/form-cloud-custom-outcomes.component";
23
- import * as i8 from "./components/form-definition-selector-cloud.component";
24
- import * as i9 from "./components/widgets/radio-buttons/radio-buttons-cloud.widget";
25
- import * as i10 from "./components/widgets/attach-file/attach-file-cloud-widget.component";
26
- import * as i11 from "./components/widgets/upload/upload-cloud.widget";
27
- import * as i12 from "./components/widgets/people/people-cloud.widget";
28
- import * as i13 from "./components/widgets/group/group-cloud.widget";
29
- import * as i14 from "./components/form-cloud.component";
30
- export declare const FORM_CLOUD_DIRECTIVES: readonly [typeof FormSpinnerComponent, typeof PropertiesViewerWrapperComponent, typeof PropertiesViewerWidgetComponent, typeof DisplayRichTextWidgetComponent, typeof FileViewerWidgetComponent, typeof FilePropertiesTableCloudComponent, typeof FormCustomOutcomesComponent, typeof FormDefinitionSelectorCloudComponent, typeof RadioButtonsCloudWidgetComponent, typeof AttachFileCloudWidgetComponent, typeof UploadCloudWidgetComponent, typeof PeopleCloudWidgetComponent, typeof GroupCloudWidgetComponent, typeof FormCloudComponent];
22
+ import * as i8 from "./components/widgets/radio-buttons/radio-buttons-cloud.widget";
23
+ import * as i9 from "./components/widgets/attach-file/attach-file-cloud-widget.component";
24
+ import * as i10 from "./components/widgets/upload/upload-cloud.widget";
25
+ import * as i11 from "./components/widgets/people/people-cloud.widget";
26
+ import * as i12 from "./components/widgets/group/group-cloud.widget";
27
+ import * as i13 from "./components/form-cloud.component";
28
+ export declare const FORM_CLOUD_DIRECTIVES: readonly [typeof FormSpinnerComponent, typeof PropertiesViewerWrapperComponent, typeof PropertiesViewerWidgetComponent, typeof DisplayRichTextWidgetComponent, typeof FileViewerWidgetComponent, typeof FilePropertiesTableCloudComponent, typeof FormCustomOutcomesComponent, typeof RadioButtonsCloudWidgetComponent, typeof AttachFileCloudWidgetComponent, typeof UploadCloudWidgetComponent, typeof PeopleCloudWidgetComponent, typeof GroupCloudWidgetComponent, typeof FormCloudComponent];
31
29
  /** @deprecated use ...FORM_CLOUD_DIRECTIVES instead */
32
30
  export declare class FormCloudModule {
33
31
  static ɵfac: i0.ɵɵFactoryDeclaration<FormCloudModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormCloudModule, never, [typeof i1.FormSpinnerComponent, typeof i2.PropertiesViewerWrapperComponent, typeof i3.PropertiesViewerWidgetComponent, typeof i4.DisplayRichTextWidgetComponent, typeof i5.FileViewerWidgetComponent, typeof i6.FilePropertiesTableCloudComponent, typeof i7.FormCustomOutcomesComponent, typeof i8.FormDefinitionSelectorCloudComponent, typeof i9.RadioButtonsCloudWidgetComponent, typeof i10.AttachFileCloudWidgetComponent, typeof i11.UploadCloudWidgetComponent, typeof i12.PeopleCloudWidgetComponent, typeof i13.GroupCloudWidgetComponent, typeof i14.FormCloudComponent], [typeof i1.FormSpinnerComponent, typeof i2.PropertiesViewerWrapperComponent, typeof i3.PropertiesViewerWidgetComponent, typeof i4.DisplayRichTextWidgetComponent, typeof i5.FileViewerWidgetComponent, typeof i6.FilePropertiesTableCloudComponent, typeof i7.FormCustomOutcomesComponent, typeof i8.FormDefinitionSelectorCloudComponent, typeof i9.RadioButtonsCloudWidgetComponent, typeof i10.AttachFileCloudWidgetComponent, typeof i11.UploadCloudWidgetComponent, typeof i12.PeopleCloudWidgetComponent, typeof i13.GroupCloudWidgetComponent, typeof i14.FormCloudComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormCloudModule, never, [typeof i1.FormSpinnerComponent, typeof i2.PropertiesViewerWrapperComponent, typeof i3.PropertiesViewerWidgetComponent, typeof i4.DisplayRichTextWidgetComponent, typeof i5.FileViewerWidgetComponent, typeof i6.FilePropertiesTableCloudComponent, typeof i7.FormCustomOutcomesComponent, typeof i8.RadioButtonsCloudWidgetComponent, typeof i9.AttachFileCloudWidgetComponent, typeof i10.UploadCloudWidgetComponent, typeof i11.PeopleCloudWidgetComponent, typeof i12.GroupCloudWidgetComponent, typeof i13.FormCloudComponent], [typeof i1.FormSpinnerComponent, typeof i2.PropertiesViewerWrapperComponent, typeof i3.PropertiesViewerWidgetComponent, typeof i4.DisplayRichTextWidgetComponent, typeof i5.FileViewerWidgetComponent, typeof i6.FilePropertiesTableCloudComponent, typeof i7.FormCustomOutcomesComponent, typeof i8.RadioButtonsCloudWidgetComponent, typeof i9.AttachFileCloudWidgetComponent, typeof i10.UploadCloudWidgetComponent, typeof i11.PeopleCloudWidgetComponent, typeof i12.GroupCloudWidgetComponent, typeof i13.FormCloudComponent]>;
35
33
  static ɵinj: i0.ɵɵInjectorDeclaration<FormCloudModule>;
36
34
  }
@@ -35,12 +35,14 @@ export interface DestinationFolderPathModel {
35
35
  alias: string;
36
36
  path: string;
37
37
  }
38
- export declare enum FileSourceTypes {
39
- ALL_FILE_SOURCES_SERVICE_ID = "all-file-sources",
40
- ALFRESCO_CONTENT_SOURCES_SERVICE_ID = "alfresco-content"
41
- }
42
- export declare enum DestinationFolderPathType {
43
- STATIC_TYPE = "value",
44
- STRING_TYPE = "string",
45
- FOLDER_TYPE = "folder"
46
- }
38
+ export declare const FileSourceTypes: {
39
+ readonly ALL_FILE_SOURCES_SERVICE_ID: "all-file-sources";
40
+ readonly ALFRESCO_CONTENT_SOURCES_SERVICE_ID: "alfresco-content";
41
+ };
42
+ export type FileSourceTypes = (typeof FileSourceTypes)[keyof typeof FileSourceTypes];
43
+ export declare const DestinationFolderPathType: {
44
+ readonly STATIC_TYPE: "value";
45
+ readonly STRING_TYPE: "string";
46
+ readonly FOLDER_TYPE: "folder";
47
+ };
48
+ export type DestinationFolderPathType = (typeof DestinationFolderPathType)[keyof typeof DestinationFolderPathType];
@@ -18,7 +18,6 @@ export * from './models/task-variable-cloud.model';
18
18
  export * from './components/spinner/form-spinner.component';
19
19
  export * from './components/form-cloud-custom-outcomes.component';
20
20
  export * from './components/form-cloud.component';
21
- export * from './components/form-definition-selector-cloud.component';
22
21
  export * from './components/cloud-form-rendering.service';
23
22
  export * from './components/widgets/attach-file/attach-file-cloud-widget.component';
24
23
  export * from './components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component';
@@ -35,7 +34,6 @@ export * from './components/widgets/radio-buttons/radio-buttons-cloud.widget';
35
34
  export * from './components/widgets/radio-buttons/radio-buttons-cloud.schema';
36
35
  export * from './services/content-cloud-node-selector.service';
37
36
  export * from './services/form-cloud.service';
38
- export * from './services/form-definition-selector-cloud.service';
39
37
  export * from './services/content-cloud-node-selector.service';
40
38
  export * from './services/process-cloud-content.service';
41
39
  export * from './services/display-mode.service';