@alfresco/adf-process-services-cloud 8.5.0-25850979174 → 8.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +177 -0
- package/bundles/assets/adf-process-services-cloud/i18n/en-AU.json +386 -0
- package/fesm2022/adf-process-services-cloud.mjs +654 -369
- package/fesm2022/adf-process-services-cloud.mjs.map +1 -1
- package/index.d.ts +3 -6257
- package/lib/app/components/app-details-cloud/app-details-cloud.component.scss +168 -0
- package/lib/app/models/application-instance.model.d.ts +67 -0
- package/lib/app/public-api.d.ts +18 -0
- package/lib/app/services/apps-process-cloud.service.d.ts +25 -0
- package/lib/common/date-range-filter/date-range-filter.component.d.ts +49 -0
- package/lib/common/date-range-filter/date-range-filter.service.d.ts +17 -0
- package/lib/common/index.d.ts +17 -0
- package/lib/common/interface/environment.interface.d.ts +20 -0
- package/lib/common/interface/index.d.ts +17 -0
- package/lib/common/interface/public-api.d.ts +17 -0
- package/lib/common/public-api.d.ts +18 -0
- package/lib/form/components/cloud-form-rendering.service.d.ts +7 -0
- package/lib/form/components/form-cloud-custom-outcomes.component.d.ts +5 -0
- package/lib/form/components/form-cloud.component.d.ts +155 -0
- package/lib/form/components/form-cloud.component.scss +40 -11
- package/lib/form/components/spinner/form-spinner.component.d.ts +6 -0
- package/lib/form/components/spinner/form-spinner.component.scss +1 -1
- package/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.d.ts +62 -0
- package/lib/form/components/widgets/attach-file/attach-file-cloud-widget.component.scss +3 -20
- package/lib/form/components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component.d.ts +49 -0
- package/lib/form/components/widgets/attach-file/file-properties-table/file-properties-table-cloud.component.scss +1 -1
- package/lib/form/components/widgets/data-table/data-table-adapter.widget.d.ts +42 -0
- package/lib/form/components/widgets/data-table/data-table.widget.d.ts +43 -0
- package/lib/form/components/widgets/data-table/data-table.widget.scss +0 -1
- package/lib/form/components/widgets/data-table/helpers/data-table-path-parser.helper.d.ts +29 -0
- package/lib/form/components/widgets/date/date-cloud.widget.d.ts +47 -0
- package/lib/form/components/widgets/display-external-property/display-external-property.widget.d.ts +39 -0
- package/lib/form/components/widgets/display-external-property/display-external-property.widget.scss +0 -1
- package/lib/form/components/widgets/display-rich-text/display-rich-text.widget.d.ts +37 -0
- package/lib/form/components/widgets/display-rich-text/display-rich-text.widget.scss +0 -9
- package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.d.ts +105 -0
- package/lib/form/components/widgets/dropdown/dropdown-cloud.widget.scss +0 -4
- package/lib/form/components/widgets/dropdown/validators.d.ts +19 -0
- package/lib/form/components/widgets/file-viewer/file-viewer.widget.d.ts +6 -0
- package/lib/form/components/widgets/group/group-cloud.widget.d.ts +37 -0
- package/lib/form/components/widgets/people/people-cloud.widget.d.ts +40 -0
- package/lib/form/components/widgets/properties-viewer/properties-viewer-wrapper/properties-viewer-wrapper.component.d.ts +53 -0
- package/lib/form/components/widgets/properties-viewer/properties-viewer.widget.d.ts +26 -0
- package/lib/form/components/widgets/properties-viewer/properties-viewer.widget.scss +1 -1
- package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.schema.d.ts +18 -0
- package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.d.ts +41 -0
- package/lib/form/components/widgets/radio-buttons/radio-buttons-cloud.widget.scss +0 -9
- package/lib/form/components/widgets/upload/upload-cloud.widget.d.ts +55 -0
- package/lib/form/form-cloud.module.d.ts +34 -0
- package/lib/form/models/form-cloud-representation.model.d.ts +48 -0
- package/lib/form/models/task-variable-cloud.model.d.ts +24 -0
- package/lib/form/public-api.d.ts +40 -0
- package/lib/form/services/content-cloud-node-selector.service.d.ts +21 -0
- package/lib/form/services/display-mode.service.d.ts +22 -0
- package/lib/form/services/form-cloud.service.d.ts +104 -0
- package/lib/form/services/form-cloud.service.interface.d.ts +34 -0
- package/lib/form/services/form-utils.service.d.ts +11 -0
- package/lib/form/services/process-cloud-content.service.d.ts +18 -0
- package/lib/form/services/rich-text-parser.service.d.ts +12 -0
- package/lib/form/services/spinner/form-cloud-spinner.service.d.ts +26 -0
- package/lib/group/components/group-cloud.component.d.ts +123 -0
- package/lib/group/components/group-cloud.component.scss +3 -14
- package/lib/group/group-cloud.module.d.ts +8 -0
- package/lib/group/models/identity-group.model.d.ts +21 -0
- package/lib/group/public-api.d.ts +20 -0
- package/lib/group/services/identity-group.service.d.ts +28 -0
- package/lib/models/application-version.model.d.ts +30 -0
- package/lib/models/constant-values.type.d.ts +20 -0
- package/lib/models/data-column-custom-data.d.ts +22 -0
- package/lib/models/date-cloud-filter.model.d.ts +36 -0
- package/lib/models/date-format-cloud.model.d.ts +17 -0
- package/lib/models/engine-event-cloud.model.d.ts +21 -0
- package/lib/models/filter-cloud-model.d.ts +92 -0
- package/lib/models/process-definition-cloud.model.d.ts +32 -0
- package/lib/models/process-instance-variable.model.d.ts +38 -0
- package/lib/models/process-variable-filter.model.d.ts +24 -0
- package/lib/models/task-cloud.model.d.ts +57 -0
- package/lib/models/task-list-sorting.model.d.ts +31 -0
- package/lib/models/variable-definition.d.ts +24 -0
- package/lib/people/components/people-cloud.component.d.ts +167 -0
- package/lib/people/components/people-cloud.component.scss +3 -22
- package/lib/people/models/identity-user.model.d.ts +24 -0
- package/lib/people/people-cloud.module.d.ts +8 -0
- package/lib/people/public-api.d.ts +20 -0
- package/lib/people/services/identity-user.service.d.ts +45 -0
- package/lib/process/process-cloud.module.d.ts +16 -0
- package/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.d.ts +182 -0
- package/lib/process/process-filters/components/edit-process-filter/edit-process-filter-cloud.component.scss +0 -23
- package/lib/process/process-filters/components/process-filter-dialog/process-filter-dialog-cloud.component.d.ts +16 -0
- package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.d.ts +146 -0
- package/lib/process/process-filters/components/process-filters/process-filters-cloud.component.scss +3 -3
- package/lib/process/process-filters/models/process-filter-cloud.model.d.ts +110 -0
- package/lib/process/process-filters/process-filters-cloud.module.d.ts +14 -0
- package/lib/process/process-filters/public-api.d.ts +22 -0
- package/lib/process/process-filters/services/process-filter-cloud.service.d.ts +163 -0
- package/lib/process/process-header/components/process-header-cloud.component.d.ts +48 -0
- package/lib/process/process-header/process-header-cloud.module.d.ts +8 -0
- package/lib/process/process-header/public-api.d.ts +18 -0
- package/lib/process/process-list/components/process-list-cloud.component.d.ts +228 -0
- package/lib/process/process-list/datatable/process-list-datatable-adapter.d.ts +23 -0
- package/lib/process/process-list/models/perocess-instance-cloud-view.model.d.ts +19 -0
- package/lib/process/process-list/models/process-cloud-preferences.d.ts +22 -0
- package/lib/process/process-list/models/process-cloud-preset.model.d.ts +35 -0
- package/lib/process/process-list/models/process-cloud-query-request.model.d.ts +80 -0
- package/lib/process/process-list/models/process-list-sorting.model.d.ts +31 -0
- package/lib/process/process-list/process-list-cloud.module.d.ts +7 -0
- package/lib/process/process-list/public-api.d.ts +24 -0
- package/lib/process/process-list/services/process-list-cloud.service.d.ts +56 -0
- package/lib/process/process-list/services/process-task-list-cloud.service.d.ts +30 -0
- package/lib/process/public-api.d.ts +22 -0
- package/lib/process/services/process-cloud.service.d.ts +41 -0
- package/lib/process/start-process/components/start-process-cloud.component.d.ts +146 -0
- package/lib/process/start-process/components/start-process-cloud.component.scss +0 -4
- package/lib/process/start-process/models/process-instance-cloud.model.d.ts +48 -0
- package/lib/process/start-process/models/process-payload-cloud.model.d.ts +35 -0
- package/lib/process/start-process/models/process-with-form-payload-cloud.model.d.ts +24 -0
- package/lib/process/start-process/public-api.d.ts +20 -0
- package/lib/process/start-process/services/start-process-cloud.service.d.ts +64 -0
- package/lib/process-services-cloud.module.d.ts +61 -0
- package/lib/providers.d.ts +36 -0
- package/lib/screen/components/screen-cloud/base-screen/base-screen-cloud.component.d.ts +33 -0
- package/lib/screen/components/screen-cloud/start-process-event-screen/start-process-screen-cloud.component.d.ts +16 -0
- package/lib/screen/components/screen-cloud/start-process-event-screen/start-process-screen.model.d.ts +29 -0
- package/lib/screen/components/screen-cloud/user-task-screen/screen-cloud.component.d.ts +48 -0
- package/lib/screen/components/screen-cloud/user-task-screen/screen-cloud.model.d.ts +38 -0
- package/lib/screen/public-api.d.ts +20 -0
- package/lib/screen/services/provide-screen.d.ts +37 -0
- package/lib/screen/services/screen-rendering.service.d.ts +51 -0
- package/lib/services/base-cloud.service.d.ts +37 -0
- package/lib/services/cloud-token.service.d.ts +24 -0
- package/lib/services/form-fields.interfaces.d.ts +246 -0
- package/lib/services/local-preference-cloud.service.d.ts +51 -0
- package/lib/services/notification-cloud.service.d.ts +7 -0
- package/lib/services/preference-cloud.interface.d.ts +24 -0
- package/lib/services/public-api.d.ts +26 -0
- package/lib/services/task-list-cloud.service.interface.d.ts +47 -0
- package/lib/services/task-type-resolver/task-type-resolver.service.d.ts +15 -0
- package/lib/services/user-preference-cloud.service.d.ts +49 -0
- package/lib/services/variable-mapper.sevice.d.ts +13 -0
- package/lib/services/web-socket.service.d.ts +28 -0
- package/lib/task/models/start-task-cloud-request.model.d.ts +28 -0
- package/lib/task/models/task-details-cloud.model.d.ts +62 -0
- package/lib/task/models/task.model.d.ts +22 -0
- package/lib/task/public-api.d.ts +25 -0
- package/lib/task/services/task-cloud.service.d.ts +145 -0
- package/lib/task/task-cloud.module.d.ts +18 -0
- package/lib/task/task-filters/components/base-task-filters-cloud.component.d.ts +44 -0
- package/lib/task/task-filters/components/edit-task-filters/base-edit-task-filter-cloud.component.d.ts +152 -0
- package/lib/task/task-filters/components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component.d.ts +21 -0
- package/lib/task/task-filters/components/edit-task-filters/edit-service-task-filter/edit-service-task-filter-cloud.component.scss +0 -24
- package/lib/task/task-filters/components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component.d.ts +24 -0
- package/lib/task/task-filters/components/edit-task-filters/edit-task-filter/edit-task-filter-cloud.component.scss +0 -24
- package/lib/task/task-filters/components/service-task-filters/service-task-filters-cloud.component.d.ts +69 -0
- package/lib/task/task-filters/components/service-task-filters/service-task-filters-cloud.component.scss +8 -8
- package/lib/task/task-filters/components/task-assignment-filter/task-assignment-filter.component.d.ts +53 -0
- package/lib/task/task-filters/components/task-assignment-filter/task-assignment-filter.component.scss +0 -16
- package/lib/task/task-filters/components/task-filter-dialog/task-filter-dialog-cloud.component.d.ts +35 -0
- package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.d.ts +106 -0
- package/lib/task/task-filters/components/task-filters/task-filters-cloud.component.scss +3 -3
- package/lib/task/task-filters/models/filter-cloud.model.d.ts +168 -0
- package/lib/task/task-filters/public-api.d.ts +26 -0
- package/lib/task/task-filters/services/service-task-filter-cloud.service.d.ts +127 -0
- package/lib/task/task-filters/services/task-filter-cloud.service.d.ts +158 -0
- package/lib/task/task-filters/task-filters-cloud.module.d.ts +20 -0
- package/lib/task/task-form/components/task-form-cloud/task-form-cloud.component.d.ts +126 -0
- package/lib/task/task-form/components/user-task-cloud/complete-task/complete-task.directive.d.ts +39 -0
- package/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.d.ts +138 -0
- package/lib/task/task-form/components/user-task-cloud-buttons/claim-task/claim-task-cloud.directive.d.ts +41 -0
- package/lib/task/task-form/components/user-task-cloud-buttons/unclaim-task/unclaim-task-cloud.directive.d.ts +39 -0
- package/lib/task/task-form/components/user-task-cloud-buttons/user-task-cloud-buttons.component.d.ts +49 -0
- package/lib/task/task-form/public-api.d.ts +20 -0
- package/lib/task/task-form/task-form.module.d.ts +14 -0
- package/lib/task/task-header/components/task-header-cloud.component.d.ts +86 -0
- package/lib/task/task-header/components/task-header-cloud.component.scss +2 -2
- package/lib/task/task-header/public-api.d.ts +18 -0
- package/lib/task/task-header/task-header-cloud.module.d.ts +8 -0
- package/lib/task/task-list/components/base-task-list-cloud.component.d.ts +131 -0
- package/lib/task/task-list/components/service-task-list/service-task-list-cloud.component.d.ts +16 -0
- package/lib/task/task-list/components/task-list/datatable/task-list-datatable-adapter.d.ts +23 -0
- package/lib/task/task-list/components/task-list/task-list-cloud.component.d.ts +135 -0
- package/lib/task/task-list/models/service-task-cloud.model.d.ts +126 -0
- package/lib/task/task-list/models/task-cloud-view.model.d.ts +19 -0
- package/lib/task/task-list/public-api.d.ts +22 -0
- package/lib/task/task-list/services/service-task-list-cloud.service.d.ts +51 -0
- package/lib/task/task-list/services/task-list-cloud.service.d.ts +36 -0
- package/lib/task/task-list/task-list-cloud.module.d.ts +12 -0
- package/lib/types.d.ts +17 -0
- package/package.json +4 -4
- package/public-api.d.ts +39 -0
- package/lib/process/process-header/components/process-header-cloud.component.scss +0 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../../mat-selectors' as ms;
|
|
2
|
+
@use '../../flex' as flex;
|
|
2
3
|
|
|
3
4
|
/* cspell: disable-next-line */
|
|
4
5
|
/* stylelint-disable scss/at-extend-no-missing-placeholder */
|
|
@@ -6,7 +7,6 @@
|
|
|
6
7
|
.adf-full-screen {
|
|
7
8
|
width: 100%;
|
|
8
9
|
height: 100%;
|
|
9
|
-
background-color: var(--adf-theme-background-card-color);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.adf-cloud-form {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
top: 0;
|
|
38
38
|
left: 0;
|
|
39
39
|
z-index: 100000;
|
|
40
|
-
background-color: var(--
|
|
40
|
+
background-color: var(--mat-sys-surface-container);
|
|
41
41
|
display: block;
|
|
42
42
|
height: 100%;
|
|
43
43
|
width: 100vw;
|
|
@@ -61,13 +61,6 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
&-toolbar ::ng-deep {
|
|
65
|
-
#{ms.$mat-toolbar} {
|
|
66
|
-
background-color: var(--adf-theme-background-card-color-087);
|
|
67
|
-
border-radius: 14px 14px 0 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
&-fullscreen-button {
|
|
72
65
|
position: absolute;
|
|
73
66
|
right: 70px;
|
|
@@ -75,7 +68,7 @@
|
|
|
75
68
|
}
|
|
76
69
|
|
|
77
70
|
&__display-name {
|
|
78
|
-
font-size: var(--
|
|
71
|
+
font-size: var(--mat-sys-title-small-size);
|
|
79
72
|
opacity: 0.87;
|
|
80
73
|
line-height: 1.5;
|
|
81
74
|
letter-spacing: -0.4px;
|
|
@@ -87,7 +80,6 @@
|
|
|
87
80
|
overflow: hidden;
|
|
88
81
|
display: inline-block;
|
|
89
82
|
vertical-align: middle;
|
|
90
|
-
color: var(--adf-theme-foreground-text-color);
|
|
91
83
|
}
|
|
92
84
|
|
|
93
85
|
&__form-title {
|
|
@@ -147,3 +139,40 @@
|
|
|
147
139
|
white-space: normal;
|
|
148
140
|
}
|
|
149
141
|
}
|
|
142
|
+
|
|
143
|
+
.adf-cloud-form-content-card-actions.adf-has-tab-navigation {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
flex-wrap: wrap;
|
|
147
|
+
justify-content: flex-end;
|
|
148
|
+
|
|
149
|
+
@include flex.layout-bp(lt-sm) {
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
align-items: stretch;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.adf-tab-navigation-buttons {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 4px;
|
|
159
|
+
|
|
160
|
+
@include flex.layout-bp(lt-sm) {
|
|
161
|
+
justify-content: center;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.adf-tab-navigation-divider {
|
|
166
|
+
width: 1px;
|
|
167
|
+
height: 24px;
|
|
168
|
+
background-color: var(--mat-sys-outline-variant, rgba(0, 0, 0, 0.12));
|
|
169
|
+
|
|
170
|
+
@include flex.layout-bp(lt-sm) {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.adf-cloud-form-outcome-buttons {
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormSpinnerComponent {
|
|
3
|
+
message: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSpinnerComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSpinnerComponent, "ng-component", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
18
|
+
import { DestinationFolderPath } from '@alfresco/adf-core';
|
|
19
|
+
import { Node, NodesApi, RelatedContentRepresentation } from '@alfresco/js-api';
|
|
20
|
+
import { UploadCloudWidgetComponent } from '../upload/upload-cloud.widget';
|
|
21
|
+
import { DestinationFolderPathModel } from '../../../models/form-cloud-representation.model';
|
|
22
|
+
import { NewVersionUploaderDialogData } from '@alfresco/adf-content-services';
|
|
23
|
+
import * as i0 from "@angular/core";
|
|
24
|
+
export declare class AttachFileCloudWidgetComponent extends UploadCloudWidgetComponent implements OnInit, OnDestroy {
|
|
25
|
+
private readonly contentNodeSelectorService;
|
|
26
|
+
private readonly appConfigService;
|
|
27
|
+
private readonly apiService;
|
|
28
|
+
private readonly contentNodeSelectorPanelService;
|
|
29
|
+
private readonly newVersionUploaderService;
|
|
30
|
+
typeId: string;
|
|
31
|
+
rootNodeId: string;
|
|
32
|
+
selectedNode: Node;
|
|
33
|
+
error: EventEmitter<any>;
|
|
34
|
+
private previewState;
|
|
35
|
+
readonly nodesApi: NodesApi;
|
|
36
|
+
displayedColumns: string[];
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
isPathStaticType(): boolean;
|
|
39
|
+
isUploadButtonVisible(): boolean;
|
|
40
|
+
onRemoveAttachFile(file: File | RelatedContentRepresentation | Node): void;
|
|
41
|
+
fetchAppNameFromAppConfig(): string;
|
|
42
|
+
replaceAppNameAliasWithValue(path: string): string;
|
|
43
|
+
openSelectDialog(): Promise<void>;
|
|
44
|
+
private getDestinationFolderNodeId;
|
|
45
|
+
getNodeIdFromPath(destinationFolderPath: DestinationFolderPath): Promise<string>;
|
|
46
|
+
getNodeIdFromFolderVariableValue(destinationFolderPath: DestinationFolderPath): Promise<string>;
|
|
47
|
+
getAliasAndRelativePathFromDestinationFolderPath(destinationFolderPath: string): DestinationFolderPathModel;
|
|
48
|
+
removeExistingSelection(selections: Node[]): Node[];
|
|
49
|
+
downloadContent(file: Node): void;
|
|
50
|
+
onUploadNewFileVersion(config: NewVersionUploaderDialogData): void;
|
|
51
|
+
onAttachFileClicked(nodeSelector: any): void;
|
|
52
|
+
getWidgetIcon(): string;
|
|
53
|
+
onRowClicked(file?: Node): void;
|
|
54
|
+
contentModelFormFileHandler(file?: any): void;
|
|
55
|
+
isRetrieveMetadataOptionEnabled(): boolean;
|
|
56
|
+
isValidAlias(alias: string): boolean;
|
|
57
|
+
isSelected(): boolean;
|
|
58
|
+
ngOnDestroy(): void;
|
|
59
|
+
private setPreviewState;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachFileCloudWidgetComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachFileCloudWidgetComponent, "adf-cloud-attach-file-cloud-widget", never, {}, { "error": "error"; }, never, never, true, never>;
|
|
62
|
+
}
|
|
@@ -25,15 +25,6 @@
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
margin-right: 8px;
|
|
27
27
|
word-break: normal;
|
|
28
|
-
|
|
29
|
-
.adf-attach-widget__menu-upload__button {
|
|
30
|
-
line-height: 28px;
|
|
31
|
-
font-size: var(--theme-caption-font-size);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
button span {
|
|
35
|
-
font-size: var(--theme-caption-font-size);
|
|
36
|
-
}
|
|
37
28
|
}
|
|
38
29
|
|
|
39
30
|
&-attach-widget__input-type {
|
|
@@ -55,14 +46,13 @@
|
|
|
55
46
|
word-break: break-all;
|
|
56
47
|
padding: 0.4375em;
|
|
57
48
|
border-bottom: none;
|
|
58
|
-
background: var(--
|
|
49
|
+
background: var(--mat-sys-surface-variant);
|
|
59
50
|
min-height: 27px;
|
|
60
51
|
margin-bottom: 12px;
|
|
61
52
|
|
|
62
53
|
.adf-label {
|
|
63
54
|
width: 100%;
|
|
64
|
-
font
|
|
65
|
-
line-height: var(--theme-headline-line-height);
|
|
55
|
+
font: var(--mat-sys-body-small);
|
|
66
56
|
text-align: left;
|
|
67
57
|
white-space: normal;
|
|
68
58
|
margin-left: 8px;
|
|
@@ -71,13 +61,6 @@
|
|
|
71
61
|
}
|
|
72
62
|
}
|
|
73
63
|
|
|
74
|
-
&-attach-widget__icon {
|
|
75
|
-
font-size: var(--theme-adf-picture-1-font-size);
|
|
76
|
-
height: var(--theme-adf-picture-1-font-size);
|
|
77
|
-
width: var(--theme-adf-picture-1-font-size);
|
|
78
|
-
line-height: calc(var(--theme-adf-picture-1-font-size) - 2px);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
64
|
&-attach-widget__reset {
|
|
82
65
|
margin-top: -2px;
|
|
83
66
|
}
|
|
@@ -93,7 +76,7 @@
|
|
|
93
76
|
&-attach-selected-file-row {
|
|
94
77
|
> div:first-child {
|
|
95
78
|
.adf-datatable-selected {
|
|
96
|
-
color: var(--
|
|
79
|
+
color: var(--mat-sys-primary);
|
|
97
80
|
padding-right: 6px;
|
|
98
81
|
}
|
|
99
82
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { EventEmitter } from '@angular/core';
|
|
18
|
+
import { DisplayableCMProperties } from '@alfresco/adf-core';
|
|
19
|
+
import { Node } from '@alfresco/js-api';
|
|
20
|
+
import { NewVersionUploaderDialogData } from '@alfresco/adf-content-services';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
export declare class FilePropertiesTableCloudComponent {
|
|
23
|
+
private readonly localizedDatePipe;
|
|
24
|
+
private readonly thumbnailService;
|
|
25
|
+
uploadedFiles: any;
|
|
26
|
+
hasFile: boolean;
|
|
27
|
+
selectedNode: Node;
|
|
28
|
+
field: any;
|
|
29
|
+
displayedColumns: any;
|
|
30
|
+
mimeTypeIcon: any;
|
|
31
|
+
rowClick: EventEmitter<Node>;
|
|
32
|
+
attachFileClick: EventEmitter<any>;
|
|
33
|
+
downloadFile: EventEmitter<Node>;
|
|
34
|
+
uploadNewFileVersion: EventEmitter<NewVersionUploaderDialogData>;
|
|
35
|
+
contentModelFileHandler: EventEmitter<Node>;
|
|
36
|
+
removeAttachFile: EventEmitter<Node>;
|
|
37
|
+
onRowClicked(file?: Node): void;
|
|
38
|
+
onAttachFileClicked(nodeSelector: any): void;
|
|
39
|
+
downloadContent(file: Node): void;
|
|
40
|
+
onUploadNewFileVersion(customEvent: any, node: Node): void;
|
|
41
|
+
contentModelFormFileHandler(file?: Node): void;
|
|
42
|
+
onRemoveAttachFile(file: Node): void;
|
|
43
|
+
getIcon(mimeType: string): string;
|
|
44
|
+
getColumnValue(file: any, prop: DisplayableCMProperties): string;
|
|
45
|
+
private checkDateTypeAndTransform;
|
|
46
|
+
displayMenuOption(option: string): boolean;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilePropertiesTableCloudComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilePropertiesTableCloudComponent, "adf-cloud-file-properties-table", never, { "uploadedFiles": { "alias": "uploadedFiles"; "required": false; }; "hasFile": { "alias": "hasFile"; "required": false; }; "selectedNode": { "alias": "selectedNode"; "required": false; }; "field": { "alias": "field"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "mimeTypeIcon": { "alias": "mimeTypeIcon"; "required": false; }; }, { "rowClick": "rowClick"; "attachFileClick": "attachFileClick"; "downloadFile": "downloadFile"; "uploadNewFileVersion": "uploadNewFileVersion"; "contentModelFileHandler": "contentModelFileHandler"; "removeAttachFile": "removeAttachFile"; }, never, never, true, never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { DataColumn, DataRow, DataTableAdapter, DataSorting } from '@alfresco/adf-core';
|
|
18
|
+
import { Subject } from 'rxjs';
|
|
19
|
+
export declare class WidgetDataTableAdapter implements DataTableAdapter {
|
|
20
|
+
private readonly adapter;
|
|
21
|
+
private readonly columnKeys;
|
|
22
|
+
private readonly helper;
|
|
23
|
+
get selectedRow(): DataRow;
|
|
24
|
+
get rowsChanged(): Subject<Array<DataRow>>;
|
|
25
|
+
constructor(data: any[], schema: DataColumn[]);
|
|
26
|
+
private createColumns;
|
|
27
|
+
private buildColumnsFromSchema;
|
|
28
|
+
private createRows;
|
|
29
|
+
private buildDataRowFromItem;
|
|
30
|
+
private extractPropertyValue;
|
|
31
|
+
getColumns(): Array<DataColumn>;
|
|
32
|
+
getRows(): DataRow[];
|
|
33
|
+
setRows(rows: Array<DataRow>): void;
|
|
34
|
+
setColumns(columns: Array<DataColumn>): void;
|
|
35
|
+
getValue(row: DataRow, col: DataColumn, resolverFn?: (_row: DataRow, _col: DataColumn) => any): any;
|
|
36
|
+
getColumnType(row: DataRow, col: DataColumn): string;
|
|
37
|
+
getSorting(): DataSorting;
|
|
38
|
+
setSorting(sorting: DataSorting): void;
|
|
39
|
+
sort(key?: string, direction?: string): void;
|
|
40
|
+
isDataSourceValid(): boolean;
|
|
41
|
+
private allColumnsHaveKeys;
|
|
42
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { OnInit } from '@angular/core';
|
|
18
|
+
import { WidgetComponent } from '@alfresco/adf-core';
|
|
19
|
+
import { WidgetDataTableAdapter } from './data-table-adapter.widget';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare class DataTableWidgetComponent extends WidgetComponent implements OnInit {
|
|
22
|
+
dataSource: WidgetDataTableAdapter;
|
|
23
|
+
dataTableLoadFailed: boolean;
|
|
24
|
+
previewState: boolean;
|
|
25
|
+
private rowsData;
|
|
26
|
+
private columnsSchema;
|
|
27
|
+
private variableName;
|
|
28
|
+
private readonly defaultResponseProperty;
|
|
29
|
+
private readonly pathParserHelper;
|
|
30
|
+
private readonly formCloudService;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
private init;
|
|
33
|
+
private getTableData;
|
|
34
|
+
private initDataTable;
|
|
35
|
+
private getRowsData;
|
|
36
|
+
private extractRowsData;
|
|
37
|
+
private getDataFromVariable;
|
|
38
|
+
private getVariableValueByName;
|
|
39
|
+
private setPreviewState;
|
|
40
|
+
private handleError;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableWidgetComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableWidgetComponent, "data-table", never, {}, {}, never, never, true, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { DataRow } from '@alfresco/adf-core';
|
|
18
|
+
export declare class DataTablePathParserHelper {
|
|
19
|
+
private readonly removeSquareBracketsRegEx;
|
|
20
|
+
private readonly indexReferencesRegEx;
|
|
21
|
+
retrieveDataFromPath(data: any, path: string): DataRow[] | undefined;
|
|
22
|
+
splitPathIntoProperties(path: string): string[];
|
|
23
|
+
getIndexReferencesFromProperty(property: string): number[];
|
|
24
|
+
extractPurePropertyName(property: string): string;
|
|
25
|
+
private removeSquareBracketsAndIndexReferencesFromProperty;
|
|
26
|
+
private removeSquareBracketsFromProperty;
|
|
27
|
+
private isPropertyExistsInData;
|
|
28
|
+
private isDataArrayOrObject;
|
|
29
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { OnInit } from '@angular/core';
|
|
18
|
+
import { FormService, WidgetComponent, ReactiveFormWidget } from '@alfresco/adf-core';
|
|
19
|
+
import { FormControl } from '@angular/forms';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare class DateCloudWidgetComponent extends WidgetComponent implements OnInit, ReactiveFormWidget {
|
|
22
|
+
typeId: string;
|
|
23
|
+
minDate: Date;
|
|
24
|
+
maxDate: Date;
|
|
25
|
+
startAt: Date;
|
|
26
|
+
dateInputControl: FormControl<Date>;
|
|
27
|
+
readonly formService: FormService;
|
|
28
|
+
private readonly destroyRef;
|
|
29
|
+
private readonly dateAdapter;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
updateReactiveFormControl(): void;
|
|
32
|
+
private setFormControlValue;
|
|
33
|
+
private updateFormControlState;
|
|
34
|
+
private subscribeToDateChanges;
|
|
35
|
+
private updateField;
|
|
36
|
+
private validateField;
|
|
37
|
+
private handleErrors;
|
|
38
|
+
private updateValidationSummary;
|
|
39
|
+
private resetErrors;
|
|
40
|
+
private initDateAdapter;
|
|
41
|
+
private initStartAt;
|
|
42
|
+
private initRangeSelection;
|
|
43
|
+
private setDynamicRangeSelection;
|
|
44
|
+
private setStaticRangeSelection;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateCloudWidgetComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateCloudWidgetComponent, "date-widget", never, {}, {}, never, never, true, never>;
|
|
47
|
+
}
|
package/lib/form/components/widgets/display-external-property/display-external-property.widget.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { OnInit } from '@angular/core';
|
|
18
|
+
import { WidgetComponent } from '@alfresco/adf-core';
|
|
19
|
+
import { FormControl } from '@angular/forms';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare class DisplayExternalPropertyWidgetComponent extends WidgetComponent implements OnInit {
|
|
22
|
+
propertyLoadFailed: boolean;
|
|
23
|
+
previewState: boolean;
|
|
24
|
+
propertyControl: FormControl;
|
|
25
|
+
private readonly formCloudService;
|
|
26
|
+
private readonly formatter;
|
|
27
|
+
private readonly formattingEnabledToken;
|
|
28
|
+
private readonly destroyRef;
|
|
29
|
+
private formattingEnabled;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
private computeDisplayValue;
|
|
32
|
+
private initFormControl;
|
|
33
|
+
private isPropertyLoadFailed;
|
|
34
|
+
private handleFailedPropertyLoad;
|
|
35
|
+
private initPreviewState;
|
|
36
|
+
private handleError;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisplayExternalPropertyWidgetComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DisplayExternalPropertyWidgetComponent, "adf-cloud-display-external-property", never, {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { InjectionToken, OnDestroy, OnInit } from '@angular/core';
|
|
18
|
+
import { BaseDisplayTextWidgetComponent } from '@alfresco/adf-core';
|
|
19
|
+
import { RichTextParserService } from '../../../services/rich-text-parser.service';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare const RICH_TEXT_PARSER_TOKEN: InjectionToken<RichTextParserService>;
|
|
22
|
+
export declare class DisplayRichTextWidgetComponent extends BaseDisplayTextWidgetComponent implements OnInit, OnDestroy {
|
|
23
|
+
parsedHTML: string | Error;
|
|
24
|
+
private readonly richTextParserService;
|
|
25
|
+
private readonly sanitizer;
|
|
26
|
+
private fieldChangedSubscription?;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
protected storeOriginalValue(): void;
|
|
30
|
+
protected evaluateExpressions(): void;
|
|
31
|
+
protected reevaluateExpressions(): void;
|
|
32
|
+
private applyExpressionsToBlocks;
|
|
33
|
+
private parseAndSanitize;
|
|
34
|
+
private sanitizeHtmlContent;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisplayRichTextWidgetComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DisplayRichTextWidgetComponent, "display-rich-text", never, {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
.adf-display-rich-text-widget {
|
|
2
2
|
pre {
|
|
3
3
|
min-height: 100px;
|
|
4
|
-
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
5
|
-
color: #41314e;
|
|
6
|
-
line-height: 1.6em;
|
|
7
|
-
font-size: 12px;
|
|
8
|
-
background: #f8f7fa;
|
|
9
|
-
border: 1px solid #f1f1f4;
|
|
10
|
-
box-shadow: none;
|
|
11
4
|
white-space: pre;
|
|
12
5
|
word-wrap: normal;
|
|
13
6
|
overflow-x: auto;
|
|
14
7
|
resize: vertical;
|
|
15
|
-
border-radius: 3px;
|
|
16
|
-
outline: none;
|
|
17
8
|
width: 100%;
|
|
18
9
|
}
|
|
19
10
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { FormFieldModel, FormFieldOption, FormService, ReactiveFormWidget, WidgetComponent } from '@alfresco/adf-core';
|
|
18
|
+
import { OnInit } from '@angular/core';
|
|
19
|
+
import { FormControl } from '@angular/forms';
|
|
20
|
+
import { BehaviorSubject } from 'rxjs';
|
|
21
|
+
import * as i0 from "@angular/core";
|
|
22
|
+
export declare const DEFAULT_OPTION: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const HIDE_FILTER_LIMIT = 5;
|
|
27
|
+
export declare const DROPDOWN_CLOUD_WIDGET_SET_VALUE_DEBOUNCE = 100;
|
|
28
|
+
export declare class DropdownCloudWidgetComponent extends WidgetComponent implements OnInit, ReactiveFormWidget {
|
|
29
|
+
formService: FormService;
|
|
30
|
+
private readonly formCloudService;
|
|
31
|
+
private readonly appConfig;
|
|
32
|
+
private readonly formUtilsService;
|
|
33
|
+
private readonly destroyRef;
|
|
34
|
+
private readonly formatter;
|
|
35
|
+
private readonly formattingEnabledToken;
|
|
36
|
+
private formattingEnabled;
|
|
37
|
+
readOnlyDisplayValue: string | undefined;
|
|
38
|
+
typeId: string;
|
|
39
|
+
showInputFilter: boolean;
|
|
40
|
+
isRestApiFailed: boolean;
|
|
41
|
+
variableOptionsFailed: boolean;
|
|
42
|
+
previewState: boolean;
|
|
43
|
+
restApiHostName: string;
|
|
44
|
+
dropdownControl: FormControl<FormFieldOption | FormFieldOption[]>;
|
|
45
|
+
list$: BehaviorSubject<FormFieldOption[]>;
|
|
46
|
+
filter$: BehaviorSubject<string>;
|
|
47
|
+
private readonly defaultVariableOptionId;
|
|
48
|
+
private readonly defaultVariableOptionLabel;
|
|
49
|
+
private readonly defaultVariableOptionPath;
|
|
50
|
+
private readonly debounceSetValue;
|
|
51
|
+
get showRequiredMessage(): boolean;
|
|
52
|
+
get isReadOnlyType(): boolean;
|
|
53
|
+
private get isLinkedWidget();
|
|
54
|
+
private get linkedWidgetId();
|
|
55
|
+
private get isReadOnlyForm();
|
|
56
|
+
private get hasRestUrl();
|
|
57
|
+
private get isValidRestConfig();
|
|
58
|
+
private get isRestOptionType();
|
|
59
|
+
private get isVariableOptionType();
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
private computeReadOnlyDisplayValue;
|
|
62
|
+
updateReactiveFormControl(): void;
|
|
63
|
+
compareDropdownValues(opt1: FormFieldOption | string, opt2: FormFieldOption | string): boolean;
|
|
64
|
+
selectionChangedForField(field: FormFieldModel): void;
|
|
65
|
+
private setupDropdown;
|
|
66
|
+
private subscribeToInputChanges;
|
|
67
|
+
private setFormControlValue;
|
|
68
|
+
private updateFormControlState;
|
|
69
|
+
private updateDropdownValidationRules;
|
|
70
|
+
private updateDropdownReadonlyRules;
|
|
71
|
+
private handleErrors;
|
|
72
|
+
private initFilter;
|
|
73
|
+
private checkFieldOptionsSource;
|
|
74
|
+
private persistFieldOptionsFromVariable;
|
|
75
|
+
private getOptionsFromPath;
|
|
76
|
+
private getOptionsFromArray;
|
|
77
|
+
private createOption;
|
|
78
|
+
private getOptionsFromVariable;
|
|
79
|
+
private getVariableValueByName;
|
|
80
|
+
private persistFieldOptionsFromRestApi;
|
|
81
|
+
private buildBodyParam;
|
|
82
|
+
private loadFieldOptionsForLinkedWidget;
|
|
83
|
+
private getParentWidgetValue;
|
|
84
|
+
private parentValueChanged;
|
|
85
|
+
private isNoneValueSelected;
|
|
86
|
+
private getFormFieldById;
|
|
87
|
+
private persistFieldOptionsFromManualList;
|
|
88
|
+
private resetInvalidValue;
|
|
89
|
+
private resetValue;
|
|
90
|
+
private isValidValue;
|
|
91
|
+
private isSelectedValueInOptions;
|
|
92
|
+
private hasRuleEntries;
|
|
93
|
+
private resetOptions;
|
|
94
|
+
private isParentFormFieldEvent;
|
|
95
|
+
private isFormFieldEventOfTypeDropdown;
|
|
96
|
+
private setOptionValue;
|
|
97
|
+
private setPreviewState;
|
|
98
|
+
private handleError;
|
|
99
|
+
private updateOptions;
|
|
100
|
+
private resetRestApiErrorMessage;
|
|
101
|
+
private resetRestApiOptions;
|
|
102
|
+
private getRestUrlHostName;
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownCloudWidgetComponent, never>;
|
|
104
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownCloudWidgetComponent, "dropdown-cloud-widget", never, {}, {}, never, never, true, never>;
|
|
105
|
+
}
|