@pega/angular-sdk-overrides 24.2.12 → 25.1.10
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/lib/designSystemExtension/alert/alert.component.scss +3 -3
- package/lib/designSystemExtension/alert/alert.component.ts +0 -1
- package/lib/designSystemExtension/alert-banner/alert-banner.component.ts +0 -1
- package/lib/designSystemExtension/banner/banner.component.html +1 -1
- package/lib/designSystemExtension/banner/banner.component.scss +17 -3
- package/lib/designSystemExtension/banner/banner.component.ts +0 -1
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +0 -1
- package/lib/designSystemExtension/field-group/field-group.component.ts +0 -1
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.html +6 -3
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.scss +5 -34
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +0 -1
- package/lib/designSystemExtension/material-details/material-details.component.scss +0 -5
- package/lib/designSystemExtension/material-details/material-details.component.ts +0 -1
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.html +2 -2
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss +4 -3
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts +0 -1
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss +4 -17
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.ts +0 -1
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.ts +0 -1
- package/lib/designSystemExtension/material-utility/material-utility.component.scss +1 -2
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.scss +1 -1
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.ts +0 -1
- package/lib/designSystemExtension/operator/operator.component.html +1 -1
- package/lib/designSystemExtension/operator/operator.component.scss +3 -10
- package/lib/designSystemExtension/operator/operator.component.ts +0 -2
- package/lib/designSystemExtension/pulse/pulse.component.scss +2 -2
- package/lib/designSystemExtension/pulse/pulse.component.ts +0 -1
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.html +4 -17
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +0 -1
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +30 -1
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +16 -9
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +0 -1
- package/lib/field/auto-complete/auto-complete.component.html +0 -1
- package/lib/field/auto-complete/auto-complete.component.ts +35 -173
- package/lib/field/cancel-alert/cancel-alert.component.html +8 -12
- package/lib/field/cancel-alert/cancel-alert.component.scss +2 -3
- package/lib/field/cancel-alert/cancel-alert.component.ts +24 -37
- package/lib/field/check-box/check-box.component.html +14 -7
- package/lib/field/check-box/check-box.component.scss +0 -1
- package/lib/field/check-box/check-box.component.ts +25 -151
- package/lib/field/currency/currency.component.ts +36 -169
- package/lib/field/date/date.component.html +2 -2
- package/lib/field/date/date.component.ts +30 -151
- package/lib/field/date-time/date-time.component.html +1 -1
- package/lib/field/date-time/date-time.component.ts +34 -149
- package/lib/field/decimal/decimal.component.ts +38 -164
- package/lib/field/dropdown/dropdown.component.ts +29 -152
- package/lib/field/email/email.component.ts +16 -156
- package/lib/field/field.base.ts +149 -0
- package/lib/field/group/group.component.ts +7 -5
- package/lib/field/integer/integer.component.ts +18 -158
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.ts +0 -1
- package/lib/field/location/config-ext.json +8 -0
- package/lib/field/location/location.component.html +45 -0
- package/lib/field/location/location.component.scss +18 -0
- package/lib/field/location/location.component.spec.ts +22 -0
- package/lib/field/location/location.component.ts +280 -0
- package/lib/field/multiselect/multiselect.component.ts +47 -152
- package/lib/field/multiselect/utils.ts +55 -47
- package/lib/field/object-reference/object-reference.component.html +17 -0
- package/lib/field/object-reference/object-reference.component.scss +0 -0
- package/lib/field/object-reference/object-reference.component.spec.ts +22 -0
- package/lib/field/object-reference/object-reference.component.ts +237 -0
- package/lib/field/percentage/percentage.component.ts +37 -155
- package/lib/field/phone/phone.component.html +18 -19
- package/lib/field/phone/phone.component.scss +4 -0
- package/lib/field/phone/phone.component.ts +43 -145
- package/lib/field/radio-buttons/radio-buttons.component.html +14 -6
- package/lib/field/radio-buttons/radio-buttons.component.scss +4 -2
- package/lib/field/radio-buttons/radio-buttons.component.ts +37 -160
- package/lib/field/rich-text/rich-text.component.html +2 -0
- package/lib/field/rich-text/rich-text.component.scss +172 -0
- package/lib/field/rich-text/rich-text.component.ts +21 -91
- package/lib/field/scalar-list/scalar-list.component.ts +17 -73
- package/lib/field/selectable-card/selectable-card.component.html +70 -0
- package/lib/field/selectable-card/selectable-card.component.scss +11 -0
- package/lib/field/selectable-card/selectable-card.component.spec.ts +22 -0
- package/lib/field/selectable-card/selectable-card.component.ts +219 -0
- package/lib/field/semantic-link/semantic-link.component.html +4 -8
- package/lib/field/semantic-link/semantic-link.component.scss +0 -13
- package/lib/field/semantic-link/semantic-link.component.ts +165 -6
- package/lib/field/text/text.component.scss +0 -1
- package/lib/field/text/text.component.ts +0 -1
- package/lib/field/text-area/text-area.component.ts +18 -153
- package/lib/field/text-content/text-content.component.ts +0 -1
- package/lib/field/text-input/text-input.component.ts +16 -156
- package/lib/field/time/time.component.ts +17 -152
- package/lib/field/url/url.component.ts +16 -155
- package/lib/field/user-reference/user-reference.component.scss +0 -1
- package/lib/field/user-reference/user-reference.component.ts +2 -4
- package/lib/infra/Containers/flow-container/flow-container.component.html +2 -2
- package/lib/infra/Containers/flow-container/flow-container.component.ts +8 -9
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.ts +0 -1
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +5 -11
- package/lib/infra/Containers/view-container/helper.ts +35 -2
- package/lib/infra/Containers/view-container/view-container.component.ts +1 -2
- package/lib/infra/action-buttons/action-buttons.component.html +13 -8
- package/lib/infra/action-buttons/action-buttons.component.scss +23 -0
- package/lib/infra/action-buttons/action-buttons.component.ts +1 -3
- package/lib/infra/assignment/assignment.component.ts +21 -10
- package/lib/infra/assignment-card/assignment-card.component.html +1 -2
- package/lib/infra/assignment-card/assignment-card.component.scss +0 -4
- package/lib/infra/assignment-card/assignment-card.component.ts +21 -5
- package/lib/infra/dashboard-filter/dashboard-filter.component.ts +0 -1
- package/lib/infra/defer-load/defer-load.component.html +6 -2
- package/lib/infra/defer-load/defer-load.component.ts +22 -12
- package/lib/infra/error-boundary/error-boundary.component.ts +0 -1
- package/lib/infra/multi-step/multi-step.component.html +22 -38
- package/lib/infra/multi-step/multi-step.component.scss +14 -27
- package/lib/infra/multi-step/multi-step.component.ts +0 -1
- package/lib/infra/navbar/navbar.component.html +36 -41
- package/lib/infra/navbar/navbar.component.scss +22 -4
- package/lib/infra/navbar/navbar.component.ts +8 -4
- package/lib/infra/reference/reference.component.ts +5 -0
- package/lib/infra/region/region.component.ts +0 -1
- package/lib/infra/root-container/root-container.component.scss +0 -1
- package/lib/infra/root-container/root-container.component.ts +1 -5
- package/lib/infra/stages/stages.component.html +4 -3
- package/lib/infra/stages/stages.component.scss +12 -36
- package/lib/infra/stages/stages.component.ts +4 -3
- package/lib/infra/view/view.component.html +1 -1
- package/lib/infra/view/view.component.ts +3 -7
- package/lib/template/advanced-search/advanced-search.component.html +12 -0
- package/lib/template/advanced-search/advanced-search.component.scss +0 -0
- package/lib/template/advanced-search/advanced-search.component.spec.ts +0 -0
- package/lib/template/advanced-search/advanced-search.component.ts +112 -0
- package/lib/template/advanced-search/advanced-search.service.ts +27 -0
- package/lib/template/advanced-search/search-group/persist-utils.ts +56 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.html +32 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.scss +0 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.spec.ts +0 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.ts +294 -0
- package/lib/template/advanced-search/search-groups/utils.ts +29 -0
- package/lib/template/app-shell/app-shell.component.html +4 -1
- package/lib/template/app-shell/app-shell.component.scss +0 -3
- package/lib/template/app-shell/app-shell.component.ts +46 -8
- package/lib/template/banner-page/banner-page.component.ts +0 -1
- package/lib/template/case-summary/case-summary.component.scss +0 -2
- package/lib/template/case-summary/case-summary.component.ts +6 -22
- package/lib/template/case-view/case-view.component.html +4 -4
- package/lib/template/case-view/case-view.component.scss +18 -10
- package/lib/template/case-view/case-view.component.ts +1 -11
- package/lib/template/confirmation/confirmation.component.html +1 -1
- package/lib/template/confirmation/confirmation.component.ts +0 -1
- package/lib/template/data-reference/data-reference.component.html +11 -8
- package/lib/template/data-reference/data-reference.component.ts +346 -113
- package/lib/template/data-reference/search-form/search-form.component.html +39 -0
- package/lib/template/data-reference/search-form/search-form.component.scss +11 -0
- package/lib/template/data-reference/search-form/search-form.component.spec.ts +0 -0
- package/lib/template/data-reference/search-form/search-form.component.ts +167 -0
- package/lib/template/data-reference/search-form/tabsData.ts +160 -0
- package/lib/template/data-reference/utils.ts +92 -0
- package/lib/template/default-form/default-form.component.ts +10 -3
- package/lib/template/default-page/default-page.component.html +34 -0
- package/lib/template/default-page/default-page.component.scss +31 -0
- package/lib/template/default-page/default-page.component.spec.ts +24 -0
- package/lib/template/default-page/default-page.component.ts +64 -0
- package/lib/template/details/details.component.ts +0 -1
- package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +0 -1
- package/lib/template/details-one-column/details-one-column.component.ts +0 -1
- package/lib/template/details-sub-tabs/details-sub-tabs.component.ts +0 -1
- package/lib/template/details-three-column/details-three-column.component.ts +0 -1
- package/lib/template/details-two-column/details-two-column.component.ts +0 -1
- package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +0 -1
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +0 -1
- package/lib/template/field-group-list/field-group-list.component.scss +0 -1
- package/lib/template/field-group-list/field-group-list.component.ts +0 -1
- package/lib/template/field-group-template/field-group-template.component.ts +14 -28
- package/lib/template/field-value-list/field-value-list.component.ts +0 -1
- package/lib/template/inline-dashboard/inline-dashboard.component.ts +0 -1
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.ts +1 -2
- package/lib/template/list-page/list-page.component.ts +0 -1
- package/lib/template/list-view/list-view.component.html +170 -162
- package/lib/template/list-view/list-view.component.scss +25 -21
- package/lib/template/list-view/list-view.component.ts +207 -119
- package/lib/template/list-view/listViewHelpers.ts +1 -4
- package/lib/template/list-view/utils.ts +25 -2
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.ts +0 -1
- package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +0 -1
- package/lib/template/object-page/object-page.component.html +1 -0
- package/lib/template/object-page/object-page.component.scss +0 -0
- package/lib/template/object-page/object-page.component.spec.ts +22 -0
- package/lib/template/object-page/object-page.component.ts +14 -0
- package/lib/template/one-column/one-column.component.ts +0 -1
- package/lib/template/one-column-page/one-column-page.component.ts +0 -1
- package/lib/template/one-column-tab/one-column-tab.component.scss +1 -1
- package/lib/template/one-column-tab/one-column-tab.component.ts +0 -1
- package/lib/template/page/page.component.ts +0 -1
- package/lib/template/promoted-filters/promoted-filters.component.ts +0 -1
- package/lib/template/repeating-structures/repeating-structures.component.ts +0 -2
- package/lib/template/self-service-case-view/self-service-case-view.component.html +78 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.scss +132 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.spec.ts +24 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.ts +207 -0
- package/lib/template/simple-table/simple-table.component.ts +0 -2
- package/lib/template/simple-table-manual/helpers.ts +117 -3
- package/lib/template/simple-table-manual/simple-table-manual.component.html +4 -4
- package/lib/template/simple-table-manual/simple-table-manual.component.scss +4 -14
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +45 -25
- package/lib/template/simple-table-select/simple-table-select.component.ts +0 -1
- package/lib/template/single-reference-readonly/single-reference-readonly.component.html +4 -1
- package/lib/template/single-reference-readonly/single-reference-readonly.component.scss +21 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.ts +104 -4
- package/lib/template/sub-tabs/sub-tabs.component.ts +0 -1
- package/lib/template/three-column/three-column.component.ts +0 -1
- package/lib/template/three-column-page/three-column-page.component.ts +0 -1
- package/lib/template/two-column/two-column.component.ts +0 -1
- package/lib/template/two-column-page/two-column-page.component.ts +0 -1
- package/lib/template/two-column-tab/two-column-tab.component.ts +0 -1
- package/lib/template/utils.ts +42 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +0 -1
- package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +0 -1
- package/lib/template/wss-nav-bar/wss-nav-bar.component.html +6 -5
- package/lib/template/wss-nav-bar/wss-nav-bar.component.scss +8 -17
- package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +1 -9
- package/lib/widget/app-announcement/app-announcement.component.html +1 -2
- package/lib/widget/app-announcement/app-announcement.component.scss +2 -2
- package/lib/widget/app-announcement/app-announcement.component.ts +0 -1
- package/lib/widget/attachment/Attachment.types.ts +92 -0
- package/lib/widget/attachment/AttachmentUtils.ts +287 -0
- package/lib/widget/attachment/attachment.component.html +3 -3
- package/lib/widget/attachment/attachment.component.scss +9 -12
- package/lib/widget/attachment/attachment.component.ts +267 -254
- package/lib/widget/case-history/case-history.component.ts +0 -1
- package/lib/widget/feed-container/feed-container.component.scss +3 -9
- package/lib/widget/feed-container/feed-container.component.ts +2 -3
- package/lib/widget/file-utility/file-utility.component.html +3 -3
- package/lib/widget/file-utility/file-utility.component.scss +6 -17
- package/lib/widget/file-utility/file-utility.component.ts +24 -9
- package/lib/widget/list-utility/list-utility.component.scss +4 -5
- package/lib/widget/list-utility/list-utility.component.ts +0 -1
- package/lib/widget/quick-create/quick-create.component.ts +41 -23
- package/lib/widget/todo/todo.component.html +8 -5
- package/lib/widget/todo/todo.component.scss +11 -10
- package/lib/widget/todo/todo.component.ts +7 -4
- package/lib/widget/utility/utility.component.ts +0 -1
- package/package.json +1 -1
|
@@ -29,7 +29,6 @@ interface FlowContainerProps {
|
|
|
29
29
|
templateUrl: './flow-container.component.html',
|
|
30
30
|
styleUrls: ['./flow-container.component.scss'],
|
|
31
31
|
providers: [Utils],
|
|
32
|
-
standalone: true,
|
|
33
32
|
imports: [CommonModule, MatCardModule, forwardRef(() => ComponentMapperComponent)]
|
|
34
33
|
})
|
|
35
34
|
export class FlowContainerComponent extends FlowContainerBaseComponent implements OnInit, OnDestroy {
|
|
@@ -71,6 +70,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
71
70
|
// itemKey: string = ""; // JA - this is what Nebula/Constellation uses to pass to finishAssignment, navigateToStep
|
|
72
71
|
|
|
73
72
|
pConnectOfActiveContainerItem;
|
|
73
|
+
isMultiStep: any;
|
|
74
74
|
|
|
75
75
|
constructor(
|
|
76
76
|
injector: Injector,
|
|
@@ -90,8 +90,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
90
90
|
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
91
91
|
|
|
92
92
|
this.localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
93
|
-
|
|
94
|
-
this.localeReference = `${caseInfo?.getClassName()}!CASE!${caseInfo.getName()}`.toUpperCase();
|
|
93
|
+
this.localeReference = this.pConn$?.getCaseLocaleReference();
|
|
95
94
|
|
|
96
95
|
// Then, continue on with other initialization
|
|
97
96
|
|
|
@@ -170,7 +169,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
170
169
|
// ONLY call updateSelf when the component should update
|
|
171
170
|
// AND removing the "gate" that was put there since shouldComponentUpdate
|
|
172
171
|
// should be the real "gate"
|
|
173
|
-
|
|
172
|
+
|
|
174
173
|
if (bUpdateSelf || caseViewModeFromProps !== caseViewModeFromRedux) {
|
|
175
174
|
// don't want to redraw the flow container when there are page messages, because
|
|
176
175
|
// the redraw causes us to loose the errors on the elements
|
|
@@ -203,9 +202,9 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
203
202
|
const kid = this.pConn$.getChildren()[0];
|
|
204
203
|
const todoKid = kid.getPConnect().getChildren()[0];
|
|
205
204
|
|
|
206
|
-
this.todo_pConn$ = todoKid
|
|
205
|
+
this.todo_pConn$ = todoKid?.getPConnect();
|
|
207
206
|
|
|
208
|
-
return
|
|
207
|
+
return !!this.todo_pConn$;
|
|
209
208
|
}
|
|
210
209
|
|
|
211
210
|
return !(caseViewMode && caseViewMode === 'perform');
|
|
@@ -282,7 +281,8 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
282
281
|
|
|
283
282
|
// this.containerName$ = oWorkMeta["name"];
|
|
284
283
|
if (bLoadChildren && oWorkData) {
|
|
285
|
-
this.containerName$ = this.localizedVal(this.getActiveViewLabel() || oWorkData.caseInfo.assignments[0].name, undefined, this.localeReference);
|
|
284
|
+
this.containerName$ = this.localizedVal(this.getActiveViewLabel() || oWorkData.caseInfo.assignments?.[0].name, undefined, this.localeReference);
|
|
285
|
+
this.isMultiStep = this.utils.getBooleanValue(oWorkData.caseInfo.assignments?.[0].isMultiStep);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
// turn off spinner
|
|
@@ -465,7 +465,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
465
465
|
// @ts-ignore - Property 'getLoadingStatus' is private and only accessible within class 'C11nEnv'
|
|
466
466
|
loadingInfo = this.pConn$.getLoadingStatus();
|
|
467
467
|
} catch (ex) {
|
|
468
|
-
|
|
468
|
+
console.log(ex);
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
// this check in routingInfo, mimic Nebula/Constellation (React) to check and get the internals of the
|
|
@@ -487,7 +487,6 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
|
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
|
|
490
|
-
// eslint-disable-next-line sonarjs/no-collapsible-if
|
|
491
490
|
if (currentOrder.length > 0) {
|
|
492
491
|
if (currentItems[key] && currentItems[key].view && type === 'single' && Object.keys(currentItems[key].view).length > 0) {
|
|
493
492
|
// when we get here, it it because the flow action data has changed
|
|
@@ -14,7 +14,6 @@ import { FormGroup } from '@angular/forms';
|
|
|
14
14
|
selector: 'app-hybrid-view-container',
|
|
15
15
|
templateUrl: './hybrid-view-container.component.html',
|
|
16
16
|
styleUrls: ['./hybrid-view-container.component.scss'],
|
|
17
|
-
standalone: true,
|
|
18
17
|
imports: [CommonModule]
|
|
19
18
|
})
|
|
20
19
|
export class HybridViewContainerComponent {
|
|
@@ -18,7 +18,6 @@ import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
|
18
18
|
selector: 'app-modal-view-container',
|
|
19
19
|
templateUrl: './modal-view-container.component.html',
|
|
20
20
|
styleUrls: ['./modal-view-container.component.scss'],
|
|
21
|
-
standalone: true,
|
|
22
21
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
23
22
|
})
|
|
24
23
|
export class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
@@ -31,7 +30,7 @@ export class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
31
30
|
angularPConnectData: AngularPConnectData = {};
|
|
32
31
|
|
|
33
32
|
arChildren$: any[];
|
|
34
|
-
stateProps$:
|
|
33
|
+
stateProps$: object;
|
|
35
34
|
banners: any;
|
|
36
35
|
templateName$: string;
|
|
37
36
|
buildName$: string;
|
|
@@ -40,7 +39,7 @@ export class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
40
39
|
bShowModal$ = false;
|
|
41
40
|
itemKey$: string;
|
|
42
41
|
formGroup$: FormGroup;
|
|
43
|
-
oCaseInfo:
|
|
42
|
+
oCaseInfo: object = {};
|
|
44
43
|
|
|
45
44
|
// for causing a change on assignment
|
|
46
45
|
updateToken$ = 0;
|
|
@@ -135,7 +134,7 @@ export class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
135
134
|
// @ts-ignore - Property 'getLoadingStatus' is private and only accessible within class 'C11nEnv'
|
|
136
135
|
loadingInfo = this.pConn$.getLoadingStatus();
|
|
137
136
|
} catch (ex) {
|
|
138
|
-
|
|
137
|
+
console.log(ex);
|
|
139
138
|
}
|
|
140
139
|
// const configProps = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
|
|
141
140
|
this.stateProps$ = this.pConn$.getStateProps();
|
|
@@ -235,12 +234,7 @@ export class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
235
234
|
this.title$ =
|
|
236
235
|
isDataObject || this.isMultiRecord
|
|
237
236
|
? this.getModalHeading(dataObjectAction)
|
|
238
|
-
: this.determineModalHeaderByAction(
|
|
239
|
-
actionName,
|
|
240
|
-
caseTypeName,
|
|
241
|
-
ID,
|
|
242
|
-
`${theNewCaseInfo?.getClassName()}!CASE!${theNewCaseInfo.getName()}`.toUpperCase()
|
|
243
|
-
);
|
|
237
|
+
: this.determineModalHeaderByAction(actionName, caseTypeName, ID, this.createdViewPConn$?.getCaseLocaleReference());
|
|
244
238
|
|
|
245
239
|
const bIsRefComponent = this.checkIfRefComponent(newComp);
|
|
246
240
|
|
|
@@ -365,7 +359,7 @@ export class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
365
359
|
return {};
|
|
366
360
|
}
|
|
367
361
|
|
|
368
|
-
compareCaseInfoIsDifferent(oCurrentCaseInfo:
|
|
362
|
+
compareCaseInfoIsDifferent(oCurrentCaseInfo: object): boolean {
|
|
369
363
|
let bRet = false;
|
|
370
364
|
|
|
371
365
|
// fast-deep-equal version
|
|
@@ -10,13 +10,46 @@ export const addContainerItem = pConnect => {
|
|
|
10
10
|
export const configureBrowserBookmark = pConnect => {
|
|
11
11
|
const context = pConnect.getContextName();
|
|
12
12
|
const containerName = pConnect.getContainerName();
|
|
13
|
+
const envInfo = PCore.getEnvironmentInfo();
|
|
14
|
+
const { APP } = PCore.getConstants();
|
|
15
|
+
|
|
13
16
|
const navPages = pConnect.getValue('pyPortal.pyPrimaryNavPages');
|
|
14
|
-
|
|
17
|
+
let ruleName = '';
|
|
18
|
+
let className = '';
|
|
19
|
+
let defaultViewLabel = '';
|
|
20
|
+
|
|
21
|
+
const isNextGenLandingPageRouting = (envInfo?.environmentInfoObject as any)?.pyExecutionRuntimeName === (APP as any).INFINITY_RUNTIME;
|
|
22
|
+
|
|
23
|
+
if (Array.isArray(navPages) && navPages.length > 0) {
|
|
24
|
+
const firstNavPage = navPages[0];
|
|
25
|
+
const nestedNavPage = firstNavPage.NavigationPages?.[0];
|
|
26
|
+
|
|
27
|
+
if (isNextGenLandingPageRouting) {
|
|
28
|
+
if (nestedNavPage?.pyRuleName) {
|
|
29
|
+
ruleName = nestedNavPage.pyRuleName;
|
|
30
|
+
className = nestedNavPage.pyClassName || '';
|
|
31
|
+
} else if (firstNavPage?.pyRuleName) {
|
|
32
|
+
ruleName = firstNavPage.pyRuleName;
|
|
33
|
+
className = firstNavPage.pyClassName || '';
|
|
34
|
+
} else if (nestedNavPage?.pyLabel) {
|
|
35
|
+
defaultViewLabel = nestedNavPage.pyLabel;
|
|
36
|
+
} else if (firstNavPage?.pyLabel) {
|
|
37
|
+
defaultViewLabel = firstNavPage.pyLabel;
|
|
38
|
+
}
|
|
39
|
+
} else if (nestedNavPage?.pyLabel) {
|
|
40
|
+
defaultViewLabel = nestedNavPage.pyLabel;
|
|
41
|
+
} else if (firstNavPage?.pyLabel) {
|
|
42
|
+
defaultViewLabel = firstNavPage.pyLabel;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
15
46
|
PCore.configureForBrowserBookmark({
|
|
16
47
|
context,
|
|
17
48
|
containerName,
|
|
18
49
|
acName: containerName,
|
|
19
50
|
semanticURL: '',
|
|
20
|
-
defaultViewLabel
|
|
51
|
+
defaultViewLabel,
|
|
52
|
+
ruleName,
|
|
53
|
+
className
|
|
21
54
|
});
|
|
22
55
|
};
|
|
@@ -28,7 +28,6 @@ interface ViewContainerProps {
|
|
|
28
28
|
selector: 'app-view-container',
|
|
29
29
|
templateUrl: './view-container.component.html',
|
|
30
30
|
styleUrls: ['./view-container.component.scss'],
|
|
31
|
-
standalone: true,
|
|
32
31
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
33
32
|
})
|
|
34
33
|
export class ViewContainerComponent implements OnInit, OnDestroy {
|
|
@@ -162,7 +161,7 @@ export class ViewContainerComponent implements OnInit, OnDestroy {
|
|
|
162
161
|
|
|
163
162
|
this.psService.sendMessage(loadingInfo);
|
|
164
163
|
} catch (ex) {
|
|
165
|
-
|
|
164
|
+
console.log(ex);
|
|
166
165
|
}
|
|
167
166
|
|
|
168
167
|
// const buildName = this.buildName();
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
<button
|
|
1
|
+
<div class="button-bar" *ngIf="arMainButtons$ && arSecondaryButtons$">
|
|
2
|
+
<div class="left-group">
|
|
3
|
+
<button
|
|
4
|
+
*ngFor="let aButton of arSecondaryButtons$"
|
|
5
|
+
mat-stroked-button
|
|
6
|
+
class="secondary-button"
|
|
7
|
+
(click)="buttonClick(aButton.jsAction, 'secondary')"
|
|
8
|
+
>
|
|
4
9
|
{{ localizedVal(aButton.name, localeCategory) }}
|
|
5
10
|
</button>
|
|
6
|
-
</
|
|
7
|
-
<
|
|
8
|
-
<button *ngFor="let aButton of arMainButtons$" mat-
|
|
11
|
+
</div>
|
|
12
|
+
<div class="right-group">
|
|
13
|
+
<button *ngFor="let aButton of arMainButtons$" mat-flat-button (click)="buttonClick(aButton.jsAction, 'primary')">
|
|
9
14
|
{{ localizedVal(aButton.name, localeCategory) }}
|
|
10
15
|
</button>
|
|
11
|
-
</
|
|
12
|
-
</
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.button-bar {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding: 1rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.left-group,
|
|
11
|
+
.right-group {
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: 1rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.right-group {
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.secondary-button {
|
|
21
|
+
background-color: var(--app-sys-secondary-button-background);
|
|
22
|
+
border-color: var(--app-sys-secondary-button-border);
|
|
23
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { MatButtonModule } from '@angular/material/button';
|
|
4
|
-
import { MatGridListModule } from '@angular/material/grid-list';
|
|
5
4
|
|
|
6
5
|
@Component({
|
|
7
6
|
selector: 'app-action-buttons',
|
|
8
7
|
templateUrl: './action-buttons.component.html',
|
|
9
8
|
styleUrls: ['./action-buttons.component.scss'],
|
|
10
|
-
|
|
11
|
-
imports: [CommonModule, MatGridListModule, MatButtonModule]
|
|
9
|
+
imports: [CommonModule, MatButtonModule]
|
|
12
10
|
})
|
|
13
11
|
export class ActionButtonsComponent {
|
|
14
12
|
@Input() arMainButtons$: any[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-case-declarations */
|
|
2
|
-
import { Component, OnInit, Input,
|
|
2
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy, OnChanges } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { MatSnackBarModule, MatSnackBar } from '@angular/material/snack-bar';
|
|
5
5
|
import { FormGroup } from '@angular/forms';
|
|
@@ -18,6 +18,11 @@ function getRefreshProps(refreshConditions) {
|
|
|
18
18
|
return refreshConditions.filter(item => item.event && item.event === 'Changes').map(item => [item.field, item.field?.substring(1)]) || [];
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
function scrollToTop() {
|
|
22
|
+
const scrollElement = document.querySelector('.psdk-view-container-top');
|
|
23
|
+
scrollElement?.scrollIntoView();
|
|
24
|
+
}
|
|
25
|
+
|
|
21
26
|
interface AssignmentProps {
|
|
22
27
|
// If any, enter additional props that only exist on this component
|
|
23
28
|
template: string;
|
|
@@ -27,7 +32,6 @@ interface AssignmentProps {
|
|
|
27
32
|
selector: 'app-assignment',
|
|
28
33
|
templateUrl: './assignment.component.html',
|
|
29
34
|
styleUrls: ['./assignment.component.scss'],
|
|
30
|
-
standalone: true,
|
|
31
35
|
imports: [CommonModule, MatSnackBarModule, forwardRef(() => ComponentMapperComponent)]
|
|
32
36
|
})
|
|
33
37
|
export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
@@ -57,6 +61,7 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
57
61
|
|
|
58
62
|
bHasNavigation$ = false;
|
|
59
63
|
bIsVertical$ = false;
|
|
64
|
+
prevNavigationSteps: any[] = [];
|
|
60
65
|
arCurrentStepIndicies$: number[] = [];
|
|
61
66
|
arNavigationSteps$: any[] = [];
|
|
62
67
|
|
|
@@ -83,7 +88,6 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
83
88
|
private angularPConnect: AngularPConnectService,
|
|
84
89
|
private psService: ProgressSpinnerService,
|
|
85
90
|
private erService: ErrorMessagesService,
|
|
86
|
-
private ngZone: NgZone,
|
|
87
91
|
private snackBar: MatSnackBar,
|
|
88
92
|
public bannerService: BannerService
|
|
89
93
|
) {}
|
|
@@ -129,7 +133,7 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
129
133
|
|
|
130
134
|
this.psService.sendMessage(loadingInfo);
|
|
131
135
|
} catch (ex) {
|
|
132
|
-
|
|
136
|
+
console.log(ex);
|
|
133
137
|
}
|
|
134
138
|
}
|
|
135
139
|
}
|
|
@@ -141,6 +145,8 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
updateChanges() {
|
|
148
|
+
scrollToTop();
|
|
149
|
+
|
|
144
150
|
this.registerForRefresh();
|
|
145
151
|
|
|
146
152
|
// pConn$ may be a 'reference' component, so normalize it
|
|
@@ -251,17 +257,19 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
251
257
|
|
|
252
258
|
// iterate through steps to find current one(s)
|
|
253
259
|
// immutable, so we want to change the local copy, so need to make a copy
|
|
254
|
-
|
|
260
|
+
|
|
261
|
+
if (!PCore.isDeepEqual(this.prevNavigationSteps, oCaseInfo.navigation.steps)) {
|
|
255
262
|
// what comes back now in configObject is the children of the flowContainer
|
|
256
263
|
this.arNavigationSteps$ = JSON.parse(JSON.stringify(oCaseInfo.navigation.steps));
|
|
264
|
+
this.prevNavigationSteps = JSON.parse(JSON.stringify(oCaseInfo.navigation.steps));
|
|
257
265
|
this.arNavigationSteps$.forEach(step => {
|
|
258
266
|
if (step.name) {
|
|
259
|
-
step.name =
|
|
267
|
+
step.name = this.pConn$.getLocalizationService().getLocalizedText(step.name);
|
|
260
268
|
}
|
|
261
269
|
});
|
|
262
270
|
this.arCurrentStepIndicies$ = [];
|
|
263
271
|
this.arCurrentStepIndicies$ = this.findCurrentIndicies(this.arNavigationSteps$, this.arCurrentStepIndicies$, 0);
|
|
264
|
-
}
|
|
272
|
+
}
|
|
265
273
|
}
|
|
266
274
|
|
|
267
275
|
findCurrentIndicies(arStepperSteps: any[], arIndicies: number[], depth: number): number[] {
|
|
@@ -427,12 +435,13 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
427
435
|
const finishPromise = this.finishAssignment(this.itemKey$); // JA - was itemID but Nebula/Constellation uses itemKey
|
|
428
436
|
finishPromise
|
|
429
437
|
.then(() => {
|
|
430
|
-
this.psService.sendMessage(false);
|
|
431
438
|
this.updateChanges();
|
|
432
439
|
})
|
|
433
440
|
.catch(() => {
|
|
434
|
-
this.psService.sendMessage(false);
|
|
435
441
|
this.snackBarRef = this.snackBar.open(`${this.localizedVal('Submit failed!', this.localeCategory)}`, 'Ok');
|
|
442
|
+
})
|
|
443
|
+
.finally(() => {
|
|
444
|
+
this.psService.sendMessage(false);
|
|
436
445
|
});
|
|
437
446
|
break;
|
|
438
447
|
|
|
@@ -442,8 +451,10 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
442
451
|
approvePromise
|
|
443
452
|
.then(() => {})
|
|
444
453
|
.catch(() => {
|
|
445
|
-
this.psService.sendMessage(false);
|
|
446
454
|
this.snackBarRef = this.snackBar.open(`${this.localizedVal('Approve failed!', this.localeCategory)}`, 'Ok');
|
|
455
|
+
})
|
|
456
|
+
.finally(() => {
|
|
457
|
+
this.psService.sendMessage(false);
|
|
447
458
|
});
|
|
448
459
|
|
|
449
460
|
break;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<form [formGroup]="formGroup$" name="flowContainer" class="psdk-flow-container">
|
|
2
|
-
<div *ngFor="let kid of
|
|
2
|
+
<div *ngFor="let kid of childrenArray" class="psdk-assignment-card-child">
|
|
3
3
|
<div [ngSwitch]="kid.getPConnect().getComponentName()">
|
|
4
4
|
<component-mapper *ngSwitchCase="'View'" name="View" [props]="{ formGroup$, pConn$: kid.getPConnect() }"></component-mapper>
|
|
5
5
|
<component-mapper
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
</form>
|
|
15
15
|
|
|
16
16
|
<div>
|
|
17
|
-
<br />
|
|
18
17
|
<div class="psdk-case-view-divider"></div>
|
|
19
18
|
|
|
20
19
|
<component-mapper
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { Component, OnInit, Input, Output, EventEmitter, forwardRef, OnChanges } from '@angular/core';
|
|
1
|
+
import { Component, OnInit, Input, Output, EventEmitter, forwardRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
4
4
|
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
5
5
|
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
6
6
|
|
|
7
|
+
function isChildrenUpdated(children) {
|
|
8
|
+
if (!children || children.firstChange) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
for (let i = 0; i < children.previousValue.length; i++) {
|
|
12
|
+
if (!PCore.isDeepEqual(children.previousValue[i].getPConnect().getConfigProps(), children.currentValue[i].getPConnect().getConfigProps())) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
7
18
|
@Component({
|
|
8
19
|
selector: 'app-assignment-card',
|
|
9
20
|
templateUrl: './assignment-card.component.html',
|
|
10
21
|
styleUrls: ['./assignment-card.component.scss'],
|
|
11
|
-
standalone: true,
|
|
12
22
|
imports: [CommonModule, ReactiveFormsModule, forwardRef(() => ComponentMapperComponent)]
|
|
13
23
|
})
|
|
14
24
|
export class AssignmentCardComponent implements OnInit, OnChanges {
|
|
@@ -19,18 +29,24 @@ export class AssignmentCardComponent implements OnInit, OnChanges {
|
|
|
19
29
|
@Input() arChildren$: any[];
|
|
20
30
|
@Input() updateToken$: number;
|
|
21
31
|
|
|
32
|
+
childrenArray: any[] = [];
|
|
33
|
+
|
|
22
34
|
@Output() actionButtonClick: EventEmitter<any> = new EventEmitter();
|
|
23
35
|
|
|
24
36
|
ngOnInit(): void {
|
|
25
37
|
// Children may contain 'reference' component, so we need to
|
|
26
38
|
// normalize them
|
|
27
|
-
this.
|
|
39
|
+
this.childrenArray = ReferenceComponent.normalizePConnArray(this.arChildren$);
|
|
28
40
|
}
|
|
29
41
|
|
|
30
|
-
ngOnChanges() {
|
|
42
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
31
43
|
// Children may contain 'reference' component, so we need to
|
|
32
44
|
// normalize them
|
|
33
|
-
|
|
45
|
+
|
|
46
|
+
const { arChildren$ } = changes;
|
|
47
|
+
if (isChildrenUpdated(arChildren$)) {
|
|
48
|
+
this.childrenArray = ReferenceComponent.normalizePConnArray(this.arChildren$);
|
|
49
|
+
}
|
|
34
50
|
}
|
|
35
51
|
|
|
36
52
|
onActionButtonClick(oData: any) {
|
|
@@ -14,7 +14,6 @@ import { getFilterExpression, getFormattedDate, createFilter, combineFilters } f
|
|
|
14
14
|
selector: 'app-dashboard-filter',
|
|
15
15
|
templateUrl: './dashboard-filter.component.html',
|
|
16
16
|
styleUrls: ['./dashboard-filter.component.scss'],
|
|
17
|
-
standalone: true,
|
|
18
17
|
imports: [
|
|
19
18
|
CommonModule,
|
|
20
19
|
MatFormFieldModule,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
<div *ngIf="
|
|
2
|
-
<component-mapper
|
|
1
|
+
<div *ngIf="childComponentPConnect">
|
|
2
|
+
<component-mapper
|
|
3
|
+
[name]="childComponentPConnect.getComponentName()"
|
|
4
|
+
[props]="{ pConn$: childComponentPConnect, formGroup$ }"
|
|
5
|
+
errorMsg="Defer Load Missing: {{ childComponentPConnect.getComponentName() }}"
|
|
6
|
+
></component-mapper>
|
|
3
7
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, OnInit, Input, forwardRef, OnDestroy, OnChanges } from '@angular/core';
|
|
1
|
+
import { Component, OnInit, Input, forwardRef, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import { publicConstants } from '@pega/pcore-pconnect-typedefs/constants';
|
|
4
4
|
import { ReferenceComponent } from '@pega/angular-sdk-components';
|
|
@@ -15,16 +15,14 @@ import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-c
|
|
|
15
15
|
selector: 'app-defer-load',
|
|
16
16
|
templateUrl: './defer-load.component.html',
|
|
17
17
|
styleUrls: ['./defer-load.component.scss'],
|
|
18
|
-
standalone: true,
|
|
19
18
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
20
19
|
})
|
|
21
20
|
export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
|
|
22
21
|
@Input() pConn$: typeof PConnect;
|
|
23
|
-
@Input()
|
|
22
|
+
@Input() formGroup$;
|
|
24
23
|
@Input() name;
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
loadedPConn$: any;
|
|
25
|
+
childComponentPConnect: typeof PConnect;
|
|
28
26
|
bShowDefer$ = false;
|
|
29
27
|
|
|
30
28
|
angularPConnectData: AngularPConnectData = {};
|
|
@@ -46,7 +44,7 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
46
44
|
ngOnInit(): void {
|
|
47
45
|
this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
|
|
48
46
|
// The below call is causing an error while creating/opening a case, hence commenting it out
|
|
49
|
-
|
|
47
|
+
this.updateSelf();
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
ngOnDestroy(): void {
|
|
@@ -60,14 +58,23 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
60
58
|
// update itself (re-render)
|
|
61
59
|
const theRequestedAssignment = this.pConn$.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL);
|
|
62
60
|
const lastUpdateCaseTime = this.pConn$.getValue('caseInfo.lastUpdateTime');
|
|
63
|
-
if (
|
|
61
|
+
if (
|
|
62
|
+
(theRequestedAssignment && theRequestedAssignment !== this.currentLoadedAssignment) ||
|
|
63
|
+
(lastUpdateCaseTime && lastUpdateCaseTime !== this.lastUpdateCaseTime)
|
|
64
|
+
) {
|
|
64
65
|
this.currentLoadedAssignment = theRequestedAssignment;
|
|
65
66
|
this.lastUpdateCaseTime = lastUpdateCaseTime;
|
|
66
|
-
this.
|
|
67
|
+
this.updateSelf();
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
ngOnChanges() {
|
|
71
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
72
|
+
if (!Object.values(changes).every(val => val.firstChange === true)) {
|
|
73
|
+
this.updateSelf();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
updateSelf() {
|
|
71
78
|
this.loadViewCaseID = this.pConn$.getValue(this.constants.PZINSKEY) || this.pConn$.getValue(this.constants.CASE_INFO.CASE_INFO_ID);
|
|
72
79
|
let containerItemData;
|
|
73
80
|
const targetName = this.pConn$.getTarget();
|
|
@@ -93,7 +100,7 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
93
100
|
|
|
94
101
|
getViewOptions = () => ({
|
|
95
102
|
viewContext: this.resourceType,
|
|
96
|
-
pageClass: this.loadViewCaseID ? '' : this.pConn$.getDataObject()
|
|
103
|
+
pageClass: this.loadViewCaseID ? '' : this.pConn$.getDataObject()?.pyPortal?.classID,
|
|
97
104
|
container: this.isContainerPreview ? 'preview' : undefined,
|
|
98
105
|
containerName: this.isContainerPreview ? 'preview' : undefined,
|
|
99
106
|
updateData: this.isContainerPreview
|
|
@@ -120,8 +127,9 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
120
127
|
};
|
|
121
128
|
const configObject = PCore.createPConnect(config);
|
|
122
129
|
configObject.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
|
|
123
|
-
|
|
124
|
-
this.
|
|
130
|
+
|
|
131
|
+
this.childComponentPConnect = ReferenceComponent.normalizePConn(configObject.getPConnect());
|
|
132
|
+
|
|
125
133
|
if (this.deferLoadId) {
|
|
126
134
|
PCore.getDeferLoadManager().stop(this.deferLoadId, this.pConn$.getContextName());
|
|
127
135
|
}
|
|
@@ -150,6 +158,8 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
150
158
|
console.error('Cannot load the defer loaded view without container information');
|
|
151
159
|
}
|
|
152
160
|
} else if (this.resourceType === this.PAGE) {
|
|
161
|
+
if (!this.loadViewCaseID) return;
|
|
162
|
+
|
|
153
163
|
// Rendering defer loaded tabs in case/ page context
|
|
154
164
|
this.pConn$
|
|
155
165
|
.getActionsApi()
|
|
@@ -5,7 +5,6 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
selector: 'app-error-boundary',
|
|
6
6
|
templateUrl: './error-boundary.component.html',
|
|
7
7
|
styleUrls: ['./error-boundary.component.scss'],
|
|
8
|
-
standalone: true,
|
|
9
8
|
imports: [CommonModule]
|
|
10
9
|
})
|
|
11
10
|
export class ErrorBoundaryComponent {
|
|
@@ -12,25 +12,17 @@
|
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="{{ _getVBodyClass(i) }}">
|
|
15
|
-
<ng-container *ngIf="mainStep?.steps">
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
name="AssignmentCard"
|
|
27
|
-
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
|
|
28
|
-
[parent]="this"
|
|
29
|
-
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
30
|
-
></component-mapper>
|
|
31
|
-
</div>
|
|
32
|
-
</li>
|
|
33
|
-
</ul>
|
|
15
|
+
<ng-container *ngIf="mainStep?.steps && mainStep.visited_status == 'current'">
|
|
16
|
+
<div *ngFor="let subStep of mainStep.steps">
|
|
17
|
+
<div *ngIf="subStep.visited_status == 'current'">
|
|
18
|
+
<component-mapper
|
|
19
|
+
name="AssignmentCard"
|
|
20
|
+
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
|
|
21
|
+
[parent]="this"
|
|
22
|
+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
23
|
+
></component-mapper>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
34
26
|
</ng-container>
|
|
35
27
|
|
|
36
28
|
<ng-container *ngIf="!mainStep?.steps && mainStep.visited_status == 'current'">
|
|
@@ -64,25 +56,17 @@
|
|
|
64
56
|
</ng-container>
|
|
65
57
|
</div>
|
|
66
58
|
<div *ngFor="let mainStep of arNavigationSteps$" class="psdk-horizontal-stepper-body">
|
|
67
|
-
<ng-container *ngIf="mainStep?.steps">
|
|
68
|
-
<
|
|
69
|
-
<
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
name="AssignmentCard"
|
|
79
|
-
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
|
|
80
|
-
[parent]="this"
|
|
81
|
-
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
82
|
-
></component-mapper>
|
|
83
|
-
</div>
|
|
84
|
-
</li>
|
|
85
|
-
</ul>
|
|
59
|
+
<ng-container *ngIf="mainStep?.steps && mainStep.visited_status == 'current'">
|
|
60
|
+
<div *ngFor="let subStep of mainStep.steps">
|
|
61
|
+
<div *ngIf="subStep.visited_status == 'current'">
|
|
62
|
+
<component-mapper
|
|
63
|
+
name="AssignmentCard"
|
|
64
|
+
[props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }"
|
|
65
|
+
[parent]="this"
|
|
66
|
+
[outputEvents]="{ actionButtonClick: onActionButtonClick }"
|
|
67
|
+
></component-mapper>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
86
70
|
</ng-container>
|
|
87
71
|
|
|
88
72
|
<ng-container *ngIf="!mainStep?.steps && mainStep.visited_status == 'current'">
|