@pega/angular-sdk-overrides 0.24.9 → 0.242.2

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 (75) hide show
  1. package/lib/designSystemExtension/alert-banner/alert-banner.component.ts +1 -1
  2. package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +1 -1
  3. package/lib/designSystemExtension/operator/operator.component.ts +1 -1
  4. package/lib/designSystemExtension/pulse/pulse.component.ts +7 -7
  5. package/lib/field/auto-complete/auto-complete.component.ts +3 -3
  6. package/lib/field/check-box/check-box.component.ts +3 -3
  7. package/lib/field/currency/currency.component.ts +3 -3
  8. package/lib/field/date/date.component.ts +3 -3
  9. package/lib/field/date-time/date-time.component.ts +2 -2
  10. package/lib/field/decimal/decimal.component.ts +4 -4
  11. package/lib/field/dropdown/dropdown.component.ts +3 -3
  12. package/lib/field/email/email.component.ts +1 -1
  13. package/lib/field/group/group.component.ts +2 -2
  14. package/lib/field/integer/integer.component.ts +1 -1
  15. package/lib/field/multiselect/multiselect.component.ts +4 -2
  16. package/lib/field/percentage/percentage.component.ts +2 -2
  17. package/lib/field/phone/phone.component.ts +1 -1
  18. package/lib/field/radio-buttons/radio-buttons.component.ts +2 -2
  19. package/lib/field/rich-text/rich-text.component.ts +3 -3
  20. package/lib/field/scalar-list/scalar-list.component.ts +3 -4
  21. package/lib/field/text-area/text-area.component.ts +1 -1
  22. package/lib/field/text-input/text-input.component.ts +1 -1
  23. package/lib/field/time/time.component.ts +1 -1
  24. package/lib/field/url/url.component.ts +1 -1
  25. package/lib/field/user-reference/user-reference.component.ts +1 -1
  26. package/lib/infra/Containers/flow-container/flow-container.component.ts +9 -6
  27. package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +1 -1
  28. package/lib/infra/Containers/preview-view-container/preview-view-container.component.ts +1 -1
  29. package/lib/infra/Containers/view-container/helper.ts +22 -0
  30. package/lib/infra/Containers/view-container/view-container.component.ts +5 -17
  31. package/lib/infra/assignment/assignment.component.ts +0 -1
  32. package/lib/infra/defer-load/defer-load.component.ts +4 -4
  33. package/lib/infra/navbar/navbar.component.ts +3 -3
  34. package/lib/infra/root-container/root-container.component.ts +3 -3
  35. package/lib/infra/view/view.component.html +6 -19
  36. package/lib/template/app-shell/app-shell.component.ts +20 -2
  37. package/lib/template/case-summary/case-summary.component.ts +1 -1
  38. package/lib/template/case-view/case-view.component.ts +1 -1
  39. package/lib/template/confirmation/confirmation.component.ts +1 -1
  40. package/lib/template/data-reference/data-reference.component.ts +36 -40
  41. package/lib/template/default-form/default-form.component.ts +7 -4
  42. package/lib/template/details/details.component.ts +2 -2
  43. package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +1 -1
  44. package/lib/template/details-one-column/details-one-column.component.ts +2 -2
  45. package/lib/template/details-three-column/details-three-column.component.ts +2 -2
  46. package/lib/template/details-two-column/details-two-column.component.ts +2 -2
  47. package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +2 -2
  48. package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +2 -2
  49. package/lib/template/field-group-template/field-group-template.component.ts +2 -4
  50. package/lib/template/field-value-list/field-value-list.component.html +1 -1
  51. package/lib/template/form-template-base/form-template-base.component.ts +10 -0
  52. package/lib/template/inline-dashboard-page/inline-dashboard-page.component.ts +2 -2
  53. package/lib/template/list-view/list-view.component.ts +3 -3
  54. package/lib/template/list-view/listViewHelpers.ts +1 -1
  55. package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +1 -1
  56. package/lib/template/one-column/one-column.component.ts +4 -3
  57. package/lib/template/one-column-tab/one-column-tab.component.ts +1 -1
  58. package/lib/template/page/page.component.ts +1 -1
  59. package/lib/template/promoted-filters/promoted-filters.component.ts +1 -1
  60. package/lib/template/repeating-structures/repeating-structures.component.ts +1 -1
  61. package/lib/template/simple-table-manual/helpers.ts +1 -1
  62. package/lib/template/simple-table-manual/simple-table-manual.component.ts +15 -13
  63. package/lib/template/simple-table-select/simple-table-select.component.ts +3 -3
  64. package/lib/template/three-column/three-column.component.ts +4 -3
  65. package/lib/template/two-column/two-column.component.ts +4 -3
  66. package/lib/template/two-column-tab/two-column-tab.component.ts +1 -1
  67. package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +4 -3
  68. package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +1 -1
  69. package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +3 -3
  70. package/lib/widget/attachment/attachment.component.ts +7 -9
  71. package/lib/widget/feed-container/feed-container.component.ts +7 -7
  72. package/lib/widget/file-utility/file-utility.component.ts +2 -5
  73. package/lib/widget/todo/todo.component.html +2 -2
  74. package/lib/widget/todo/todo.component.ts +93 -83
  75. package/package.json +1 -1
@@ -190,7 +190,7 @@ export const createMetaForTable = (fields, renderMode) => {
190
190
 
191
191
  export const filterDataByDate = (item, filterObj) => {
192
192
  let bKeep;
193
- let value = item[filterObj.ref] != null ?? item[filterObj.ref] != '' ? getSeconds(item[filterObj.ref]) : null;
193
+ let value = item[filterObj.ref] != null || item[filterObj.ref] != '' ? getSeconds(item[filterObj.ref]) : null;
194
194
  let filterValue = filterObj.containsFilterValue != null && filterObj.containsFilterValue != '' ? getSeconds(filterObj.containsFilterValue) : null;
195
195
 
196
196
  switch (filterObj.containsFilter) {
@@ -45,6 +45,7 @@ interface SimpleTableManualProps {
45
45
  displayMode?: string;
46
46
  useSeparateViewForEdit: any;
47
47
  viewForEditModal: any;
48
+ targetClassLabel: string;
48
49
  }
49
50
 
50
51
  class Group {
@@ -158,6 +159,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
158
159
  settingsSvgIcon$: string;
159
160
 
160
161
  isInitialized = false;
162
+ targetClassLabel: string;
161
163
 
162
164
  constructor(
163
165
  private angularPConnect: AngularPConnectService,
@@ -219,7 +221,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
219
221
  // but getRawMetadata() has each child.config with datasource and value showing their unresolved values (ex: "@P thePropName")
220
222
  // We need to use the prop name as the "glue" to tie the Angular Material table dataSource, displayColumns and data together.
221
223
  // So, in the code below, we'll use the unresolved config.value (but replacing the space with an underscore to keep things happy)
222
- const rawMetadata: any = this.pConn$.getRawMetadata();
224
+ const rawMetadata = this.pConn$.getRawMetadata();
223
225
 
224
226
  // Adapted from Nebula
225
227
  const {
@@ -237,13 +239,14 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
237
239
  editModeConfig,
238
240
  displayMode,
239
241
  useSeparateViewForEdit,
240
- viewForEditModal
242
+ viewForEditModal,
243
+ targetClassLabel
241
244
  } = this.configProps$;
242
245
 
243
246
  this.referenceListStr = getContext(this.pConn$).referenceListStr;
244
247
  this.label = labelProp || propertyLabel;
245
248
  this.parameters = fieldMetadata?.datasource?.parameters;
246
-
249
+ this.targetClassLabel = targetClassLabel;
247
250
  const hideAddRow = allowTableEdit === false;
248
251
  const hideDeleteRow = allowTableEdit === false;
249
252
  let { contextClass } = this.configProps$;
@@ -262,7 +265,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
262
265
  // config.value (ex: "@P .DeclarantChoice") or
263
266
  // config.datasource (ex: "@ASSOCIATED .DeclarantChoice")
264
267
  // Neither of these appear in the resolved (this.configProps$)
265
- const rawConfig = rawMetadata?.config;
268
+ const rawConfig: any = rawMetadata?.config;
266
269
  const rawFields = rawConfig?.children?.[0]?.children || rawConfig?.presets?.[0].children?.[0]?.children;
267
270
  this.rawFields = rawFields;
268
271
  // At this point, fields has resolvedFields and rawFields we can use
@@ -355,7 +358,6 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
355
358
  if (this.isInitialized) {
356
359
  this.isInitialized = false;
357
360
  if (this.allowEditingInModal) {
358
- // @ts-ignore - An argument for 'uniqueField' was not provided.
359
361
  this.pConn$.getListActions().initDefaultPageInstructions(
360
362
  this.pConn$.getReferenceList(),
361
363
  this.fieldDefs.filter(item => item.name).map(item => item.name)
@@ -918,19 +920,19 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
918
920
  .getActionsApi()
919
921
  .openEmbeddedDataModal(
920
922
  this.defaultView,
921
- this.pConn$,
923
+ this.pConn$ as any,
922
924
  this.referenceListStr,
923
925
  this.referenceList.length,
924
- PCore.getConstants().RESOURCE_STATUS.CREATE
926
+ PCore.getConstants().RESOURCE_STATUS.CREATE,
927
+ this.targetClassLabel
925
928
  );
926
929
  } else {
927
- // @ts-ignore - second parameter "pageRef" is optional for insert method
928
930
  this.pConn$.getListActions().insert({ classID: this.contextClass }, this.referenceList.length);
929
931
  }
930
932
 
931
933
  this.pConn$.clearErrorMessages({
932
- property: (this.pConn$.getStateProps() as any)?.referenceList?.substring(1)
933
- } as any);
934
+ property: this.pConn$.getStateProps()?.referenceList?.substring(1)
935
+ });
934
936
  }
935
937
 
936
938
  editRecord(data, index) {
@@ -939,16 +941,16 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
939
941
  .getActionsApi()
940
942
  .openEmbeddedDataModal(
941
943
  this.bUseSeparateViewForEdit ? this.editView : this.defaultView,
942
- this.pConn$,
944
+ this.pConn$ as any,
943
945
  this.referenceListStr,
944
946
  index,
945
- PCore.getConstants().RESOURCE_STATUS.UPDATE
947
+ PCore.getConstants().RESOURCE_STATUS.UPDATE,
948
+ this.targetClassLabel
946
949
  );
947
950
  }
948
951
  }
949
952
 
950
953
  deleteRecord(index) {
951
- // @ts-ignore - second parameter "pageRef" is optional for deleteEntry method
952
954
  this.pConn$.getListActions().deleteEntry(index);
953
955
  }
954
956
 
@@ -57,7 +57,7 @@ export class SimpleTableSelectComponent implements OnInit, OnDestroy {
57
57
  }
58
58
 
59
59
  updateSelf() {
60
- const theConfigProps: any = this.pConn$.getConfigProps();
60
+ const theConfigProps = this.pConn$.getConfigProps();
61
61
  this.label = theConfigProps.label;
62
62
  this.renderMode = theConfigProps.renderMode;
63
63
  this.showLabel = theConfigProps.showLabel;
@@ -71,7 +71,7 @@ export class SimpleTableSelectComponent implements OnInit, OnDestroy {
71
71
  this.propsToUse.label = '';
72
72
  }
73
73
  const { MULTI } = PCore.getConstants().LIST_SELECTION_MODE;
74
- const { selectionMode, selectionList }: any = this.pConn$.getConfigProps();
74
+ const { selectionMode, selectionList } = this.pConn$.getConfigProps();
75
75
  const isMultiSelectMode = selectionMode === MULTI;
76
76
  if (isMultiSelectMode && this.renderMode === 'ReadOnly') {
77
77
  this.showSimpleTableManual = true;
@@ -137,7 +137,7 @@ export class SimpleTableSelectComponent implements OnInit, OnDestroy {
137
137
  parameters: this.parameters
138
138
  };
139
139
 
140
- this.filters = (this.pConn$.getRawMetadata() as any).config.promotedFilters ?? [];
140
+ this.filters = (this.pConn$.getRawMetadata()?.config as any).promotedFilters ?? [];
141
141
 
142
142
  this.isSearchable = this.filters.length > 0;
143
143
  }
@@ -2,6 +2,7 @@ import { Component, OnInit, Input, forwardRef, OnChanges, SimpleChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
6
 
6
7
  @Component({
7
8
  selector: 'app-three-column',
@@ -10,8 +11,8 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
10
11
  standalone: true,
11
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
12
13
  })
13
- export class ThreeColumnComponent implements OnInit, OnChanges {
14
- @Input() pConn$: typeof PConnect;
14
+ export class ThreeColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
15
+ @Input() override pConn$: typeof PConnect;
15
16
  @Input() formGroup$: FormGroup;
16
17
 
17
18
  arChildren$: any[];
@@ -29,6 +30,6 @@ export class ThreeColumnComponent implements OnInit, OnChanges {
29
30
  }
30
31
 
31
32
  updateSelf() {
32
- this.arChildren$ = this.pConn$.getChildren() as any[];
33
+ this.arChildren$ = this.pConn$.getChildren();
33
34
  }
34
35
  }
@@ -2,6 +2,7 @@ import { Component, OnInit, Input, forwardRef, SimpleChanges, OnChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
6
 
6
7
  @Component({
7
8
  selector: 'app-two-column',
@@ -10,8 +11,8 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
10
11
  standalone: true,
11
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
12
13
  })
13
- export class TwoColumnComponent implements OnInit, OnChanges {
14
- @Input() pConn$: typeof PConnect;
14
+ export class TwoColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
15
+ @Input() override pConn$: typeof PConnect;
15
16
  @Input() formGroup$: FormGroup;
16
17
 
17
18
  arChildren$: any[];
@@ -29,6 +30,6 @@ export class TwoColumnComponent implements OnInit, OnChanges {
29
30
  }
30
31
 
31
32
  updateSelf() {
32
- this.arChildren$ = this.pConn$.getChildren() as any[];
33
+ this.arChildren$ = this.pConn$.getChildren();
33
34
  }
34
35
  }
@@ -29,6 +29,6 @@ export class TwoColumnTabComponent implements OnInit, OnChanges {
29
29
  }
30
30
 
31
31
  updateSelf() {
32
- this.arChildren$ = this.pConn$.getChildren() as any[];
32
+ this.arChildren$ = this.pConn$.getChildren();
33
33
  }
34
34
  }
@@ -2,6 +2,7 @@ import { Component, OnInit, Input, forwardRef, OnChanges, SimpleChanges } from '
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
5
+ import { FormTemplateBaseComponent } from '@pega/angular-sdk-components';
5
6
 
6
7
  @Component({
7
8
  selector: 'app-wide-narrow-form',
@@ -10,8 +11,8 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
10
11
  standalone: true,
11
12
  imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
12
13
  })
13
- export class WideNarrowFormComponent implements OnInit, OnChanges {
14
- @Input() pConn$: typeof PConnect;
14
+ export class WideNarrowFormComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
15
+ @Input() override pConn$: typeof PConnect;
15
16
  @Input() formGroup$: FormGroup;
16
17
 
17
18
  arChildren$: any[];
@@ -29,6 +30,6 @@ export class WideNarrowFormComponent implements OnInit, OnChanges {
29
30
  }
30
31
 
31
32
  updateSelf() {
32
- this.arChildren$ = this.pConn$.getChildren() as any[];
33
+ this.arChildren$ = this.pConn$.getChildren();
33
34
  }
34
35
  }
@@ -15,7 +15,7 @@ export class WideNarrowPageComponent implements OnInit, OnDestroy {
15
15
  @Input() pConn$: typeof PConnect;
16
16
  @Input() formGroup$: FormGroup;
17
17
 
18
- thePConnType = '';
18
+ thePConnType: string | undefined = '';
19
19
 
20
20
  // Used with AngularPConnect
21
21
  angularPConnectData: AngularPConnectData = {};
@@ -37,11 +37,11 @@ export class WssNavBarComponent implements OnInit, OnDestroy {
37
37
  navExpandCollapse$: string;
38
38
  bShowCaseTypes$ = false;
39
39
 
40
- portalApp$ = '';
40
+ portalApp$: string | undefined = '';
41
41
  portalLogoImage$: string;
42
42
  showAppName$ = false;
43
43
 
44
- portalOperator$: string;
44
+ portalOperator$: string | undefined;
45
45
  portalOperatorInitials$: string;
46
46
 
47
47
  actionsAPI: any;
@@ -129,7 +129,7 @@ export class WssNavBarComponent implements OnInit, OnDestroy {
129
129
 
130
130
  this.portalLogoImage$ = this.utils.getSDKStaticContentUrl().concat('assets/pzpega-logo-mark.svg');
131
131
  this.portalOperator$ = PCore.getEnvironmentInfo().getOperatorName();
132
- this.portalOperatorInitials$ = this.utils.getInitials(this.portalOperator$);
132
+ this.portalOperatorInitials$ = this.utils.getInitials(this.portalOperator$ ?? '');
133
133
  this.showAppName$ = this.configProps$.showAppName;
134
134
 
135
135
  this.portalApp$ = PCore.getEnvironmentInfo().getApplicationLabel();
@@ -120,7 +120,7 @@ export class AttachmentComponent implements OnInit, OnDestroy {
120
120
 
121
121
  updateSelf() {
122
122
  const configProps: AttachmentProps = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as AttachmentProps;
123
- const stateProps: any = this.pConn$.getStateProps();
123
+ const stateProps = this.pConn$.getStateProps();
124
124
  const { value, label, extensions, displayMode } = configProps;
125
125
 
126
126
  if (configProps.required != null) {
@@ -149,7 +149,7 @@ export class AttachmentComponent implements OnInit, OnDestroy {
149
149
 
150
150
  this.validateMessage = this.angularPConnectData.validateMessage;
151
151
  this.extensions$ = extensions;
152
- this.valueRef = (this.pConn$.getStateProps() as any).value;
152
+ this.valueRef = this.pConn$.getStateProps().value;
153
153
  this.valueRef = this.valueRef.startsWith('.') ? this.valueRef.substring(1) : this.valueRef;
154
154
  this.displayMode = displayMode;
155
155
  /* this is a temporary fix because required is supposed to be passed as a boolean and NOT as a string */
@@ -277,7 +277,7 @@ export class AttachmentComponent implements OnInit, OnDestroy {
277
277
  this.updateAttachmentState(this.pConn$, this.getAttachmentKey(this.valueRef), [...currentAttachmentList, ...attachmentsList]);
278
278
  if (file.inProgress) {
279
279
  // @ts-ignore - 3rd parameter "responseEncoding" should be optional
280
- PCore.getAttachmentUtils().cancelRequest(file.ID, pConn.getContextName());
280
+ PCore.getAttachmentUtils().cancelRequest(file.ID, this.pConn$.getContextName());
281
281
  }
282
282
  }
283
283
 
@@ -317,14 +317,13 @@ export class AttachmentComponent implements OnInit, OnDestroy {
317
317
  )} ${this.extensions$.replaceAll('.', '')}`;
318
318
  }
319
319
  if (f.props.error) {
320
- const fieldName = (this.pConn$.getStateProps() as any).value;
320
+ const fieldName = this.pConn$.getStateProps().value;
321
321
  const context = this.pConn$.getContextName();
322
322
  PCore.getMessageManager().addMessages({
323
323
  messages: [
324
324
  {
325
325
  type: 'error',
326
- // @ts-ignore - Type '{ type: string; message: string; }' is not assignable to type 'MessagesConfigObject'.
327
- message: pConn.getLocalizedValue('Error with one or more files', '', '')
326
+ message: this.pConn$.getLocalizedValue('Error with one or more files', '', '')
328
327
  }
329
328
  ],
330
329
  property: fieldName,
@@ -348,7 +347,7 @@ export class AttachmentComponent implements OnInit, OnDestroy {
348
347
  }
349
348
 
350
349
  clearFieldErrorMessages() {
351
- const fieldName = (this.pConn$.getStateProps() as any).value;
350
+ const fieldName = this.pConn$.getStateProps().value;
352
351
  const context = this.pConn$.getContextName();
353
352
  PCore.getMessageManager().clearMessages({
354
353
  type: PCore.getConstants().MESSAGES.MESSAGES_TYPE_ERROR,
@@ -376,14 +375,13 @@ export class AttachmentComponent implements OnInit, OnDestroy {
376
375
  f.props.icon = this.utils.getIconFromFileType(f.type);
377
376
  f.props.name = this.pConn$.getLocalizedValue('Unable to upload file', '', '');
378
377
  f.inProgress = false;
379
- const fieldName = (this.pConn$.getStateProps() as any).value;
378
+ const fieldName = this.pConn$.getStateProps().value;
380
379
  const context = this.pConn$.getContextName();
381
380
  // set errors to property to block submit even on errors in file upload
382
381
  PCore.getMessageManager().addMessages({
383
382
  messages: [
384
383
  {
385
384
  type: 'error',
386
- // @ts-ignore - Type '{ type: string; message: string; }' is not assignable to type 'MessagesConfigObject'.
387
385
  message: this.pConn$.getLocalizedValue('Error with one or more files', '', '')
388
386
  }
389
387
  ],
@@ -25,8 +25,8 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
25
25
  // Used with AngularPConnect
26
26
  angularPConnectData: AngularPConnectData = {};
27
27
 
28
- userName$: string;
29
- imageKey$: string;
28
+ userName$: string | undefined;
29
+ imageKey$: string | undefined;
30
30
 
31
31
  currentUserInitials$: string;
32
32
  currentUserName$: string;
@@ -65,7 +65,7 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
65
65
  ngOnInit(): void {
66
66
  this.userName$ = PCore.getEnvironmentInfo().getOperatorName();
67
67
  this.imageKey$ = PCore.getEnvironmentInfo().getOperatorImageInsKey();
68
- this.updateCurrentUserName(this.userName$);
68
+ this.updateCurrentUserName(this.userName$ ?? '');
69
69
 
70
70
  // First thing in initialization is registering and subscribing to the AngularPConnect service
71
71
  this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
@@ -402,11 +402,11 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
402
402
  }
403
403
 
404
404
  getMessageData() {
405
- const messageIDs = (this.pConn$.getConfigProps() as any).messageIDs;
406
- const userName = (this.pConn$.getConfigProps() as any).currentUser;
405
+ const messageIDs = this.pConn$.getConfigProps().messageIDs;
406
+ const userName = this.pConn$.getConfigProps().currentUser;
407
407
  const imageKey = this.pConn$.getValue('OperatorID.pyImageInsKey');
408
408
 
409
- const oData: any = this.pConn$.getDataObject();
409
+ const oData = this.pConn$.getDataObject();
410
410
 
411
411
  if (messageIDs && messageIDs.length > 0) {
412
412
  this.pulseMessages$ = JSON.parse(JSON.stringify(oData.pulse.messages));
@@ -532,7 +532,7 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
532
532
 
533
533
  // If feedAPI is defined then only post message
534
534
  if (this.feedAPI) {
535
- this./* feedAPI. */ postMessage((this.pConn$.getConfigProps() as any).value, this.pulseConversation);
535
+ this./* feedAPI. */ postMessage(this.pConn$.getConfigProps().value, this.pulseConversation);
536
536
  } else {
537
537
  console.log("We don't support Pulse yet");
538
538
  }
@@ -106,7 +106,7 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
106
106
  this.createModalButtons();
107
107
 
108
108
  PCore.getPubSubUtils().subscribe(
109
- (PCore.getEvents().getCaseEvent() as any).CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,
109
+ PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,
110
110
  this.updateSelf.bind(this),
111
111
  'caseAttachmentsUpdateFromCaseview'
112
112
  );
@@ -117,10 +117,7 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
117
117
  this.angularPConnectData.unsubscribeFn();
118
118
  }
119
119
 
120
- PCore.getPubSubUtils().unsubscribe(
121
- (PCore.getEvents().getCaseEvent() as any).CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,
122
- 'caseAttachmentsUpdateFromCaseview'
123
- );
120
+ PCore.getPubSubUtils().unsubscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, 'caseAttachmentsUpdateFromCaseview');
124
121
  }
125
122
 
126
123
  // Callback passed when subscribing to store change
@@ -2,7 +2,7 @@
2
2
  <div class="psdk-todo-header">
3
3
  <div *ngIf="showTodoList$" class="psdk-avatar">{{ this.currentUserInitials$ }}</div>
4
4
  <div id="worklist" class="psdk-todo-text">{{ headerText$ }}</div>
5
- <div *ngIf="showTodoList$" class="psdk-assignment-count">{{ assignmentCount$ }}</div>
5
+ <div *ngIf="showTodoList$" class="psdk-assignment-count">{{ count }}</div>
6
6
  </div>
7
7
  <br /><br />
8
8
  <div *ngIf="showTodoList$" class="psdk-display-divider"></div>
@@ -36,7 +36,7 @@
36
36
  </div>
37
37
  </div>
38
38
 
39
- <div *ngIf="assignmentCount$ > 3">
39
+ <div *ngIf="count > 3">
40
40
  <div *ngIf="bShowMore$; else showLess" class="psdk-todo-show-more">
41
41
  <button mat-stroked-button (click)="_showMore()">{{ showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue }}</button>
42
42
  </div>