@pega/angular-sdk-components 0.25.1 → 0.25.3

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 (74) hide show
  1. package/fesm2022/pega-angular-sdk-components.mjs +3962 -3561
  2. package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
  3. package/lib/_bridge/angular-pconnect.d.ts +1 -1
  4. package/lib/_bridge/component-mapper/component-mapper.component.d.ts +1 -1
  5. package/lib/_bridge/helpers/sdk-pega-component-map.d.ts +14 -0
  6. package/lib/_components/designSystemExtension/material-case-summary/material-case-summary.component.d.ts +1 -1
  7. package/lib/_components/field/auto-complete/auto-complete.component.d.ts +9 -37
  8. package/lib/_components/field/cancel-alert/cancel-alert.component.d.ts +7 -5
  9. package/lib/_components/field/check-box/check-box.component.d.ts +7 -32
  10. package/lib/_components/field/currency/currency.component.d.ts +19 -34
  11. package/lib/_components/field/date/date.component.d.ts +7 -57
  12. package/lib/_components/field/date-time/date-time.component.d.ts +10 -40
  13. package/lib/_components/field/decimal/decimal.component.d.ts +16 -31
  14. package/lib/_components/field/dropdown/dropdown.component.d.ts +13 -37
  15. package/lib/_components/field/email/email.component.d.ts +7 -34
  16. package/lib/_components/field/field.base.d.ts +57 -0
  17. package/lib/_components/field/group/group.component.d.ts +5 -2
  18. package/lib/_components/field/integer/integer.component.d.ts +7 -33
  19. package/lib/_components/field/list-view-action-buttons/list-view-action-buttons.component.d.ts +1 -1
  20. package/lib/_components/field/location/location.component.d.ts +1 -1
  21. package/lib/_components/field/multiselect/multiselect.component.d.ts +7 -38
  22. package/lib/_components/field/object-reference/object-reference.component.d.ts +45 -0
  23. package/lib/_components/field/percentage/percentage.component.d.ts +18 -35
  24. package/lib/_components/field/phone/phone.component.d.ts +6 -32
  25. package/lib/_components/field/radio-buttons/radio-buttons.component.d.ts +11 -33
  26. package/lib/_components/field/rich-text/rich-text.component.d.ts +6 -29
  27. package/lib/_components/field/scalar-list/scalar-list.component.d.ts +6 -21
  28. package/lib/_components/field/selectable-card/selectable-card.component.d.ts +5 -18
  29. package/lib/_components/field/semantic-link/semantic-link.component.d.ts +21 -0
  30. package/lib/_components/field/text-area/text-area.component.d.ts +6 -33
  31. package/lib/_components/field/text-input/text-input.component.d.ts +6 -34
  32. package/lib/_components/field/time/time.component.d.ts +6 -34
  33. package/lib/_components/field/url/url.component.d.ts +6 -34
  34. package/lib/_components/field/user-reference/user-reference.component.d.ts +1 -1
  35. package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts +4 -6
  36. package/lib/_components/infra/action-buttons/action-buttons.component.d.ts +1 -1
  37. package/lib/_components/infra/assignment/assignment.component.d.ts +3 -3
  38. package/lib/_components/infra/assignment-card/assignment-card.component.d.ts +3 -2
  39. package/lib/_components/infra/defer-load/defer-load.component.d.ts +6 -6
  40. package/lib/_components/infra/error-boundary/error-boundary.component.d.ts +1 -1
  41. package/lib/_components/infra/navbar/navbar.component.d.ts +0 -1
  42. package/lib/_components/infra/stages/stages.component.d.ts +2 -1
  43. package/lib/_components/template/advanced-search/advanced-search.component.d.ts +21 -0
  44. package/lib/_components/template/advanced-search/search-group/persist-utils.d.ts +23 -0
  45. package/lib/_components/template/advanced-search/search-groups/search-groups.component.d.ts +47 -0
  46. package/lib/_components/template/advanced-search/search-groups/utils.d.ts +15 -0
  47. package/lib/_components/template/app-shell/app-shell.component.d.ts +6 -2
  48. package/lib/_components/template/data-reference/data-reference-advanced-search.service.d.ts +9 -0
  49. package/lib/_components/template/data-reference/data-reference.component.d.ts +27 -2
  50. package/lib/_components/template/data-reference/search-form/search-form.component.d.ts +39 -0
  51. package/lib/_components/template/data-reference/search-form/tabsData.d.ts +2 -0
  52. package/lib/_components/template/data-reference/utils.d.ts +14 -0
  53. package/lib/_components/template/default-form/default-form.component.d.ts +3 -2
  54. package/lib/_components/template/default-page/default-page.component.d.ts +29 -0
  55. package/lib/_components/template/list-view/list-view.component.d.ts +14 -1
  56. package/lib/_components/template/object-page/object-page.component.d.ts +8 -0
  57. package/lib/_components/template/self-service-case-view/self-service-case-view.component.d.ts +59 -0
  58. package/lib/_components/template/simple-table-manual/simple-table-manual.component.d.ts +2 -2
  59. package/lib/_components/template/single-reference-readonly/single-reference-readonly.component.d.ts +18 -2
  60. package/lib/_components/template/utils.d.ts +4 -0
  61. package/lib/_components/template/wss-nav-bar/wss-nav-bar.component.d.ts +3 -5
  62. package/lib/_components/widget/attachment/Attachment.types.d.ts +87 -0
  63. package/lib/_components/widget/attachment/AttachmentUtils.d.ts +17 -0
  64. package/lib/_components/widget/attachment/attachment.component.d.ts +18 -33
  65. package/lib/_components/widget/feed-container/feed-container.component.d.ts +2 -2
  66. package/lib/_components/widget/todo/todo.component.d.ts +4 -2
  67. package/lib/_helpers/field-group-utils.d.ts +1 -3
  68. package/lib/_helpers/filter-utils.d.ts +1 -3
  69. package/lib/_helpers/objectReference-utils.d.ts +6 -0
  70. package/lib/_helpers/semanticLink-utils.d.ts +9 -0
  71. package/lib/_helpers/tab-utils.d.ts +4 -0
  72. package/lib/_helpers/utils.d.ts +1 -1
  73. package/package.json +1 -1
  74. package/public-api.d.ts +13 -1
@@ -1,9 +1,11 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
4
+ import { DataReferenceAdvancedSearchService } from './data-reference-advanced-search.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class DataReferenceComponent implements OnInit, OnDestroy {
6
7
  private angularPConnect;
8
+ private advancedSearchService;
7
9
  pConn$: typeof PConnect;
8
10
  formGroup$: FormGroup;
9
11
  angularPConnectData: AngularPConnectData;
@@ -26,15 +28,38 @@ export declare class DataReferenceComponent implements OnInit, OnDestroy {
26
28
  displaySingleRef: boolean;
27
29
  displayMultiRef: boolean;
28
30
  refList: any;
29
- constructor(angularPConnect: AngularPConnectService);
31
+ displayAs: any;
32
+ isDDSourceDeferred: any;
33
+ showPromotedFilters: any;
34
+ displayMode: any;
35
+ refFieldMetadata: any;
36
+ contextClass: any;
37
+ selectionList: any;
38
+ inline: any;
39
+ isCreationOfNewRecordAllowedForReference: any;
40
+ showAdvancedSearch: boolean;
41
+ pyID: any;
42
+ allowImplicitRefresh: any;
43
+ displayChild: boolean;
44
+ dataRelationshipContext: any;
45
+ imagePosition: any;
46
+ showImageDescription: any;
47
+ constructor(angularPConnect: AngularPConnectService, advancedSearchService: DataReferenceAdvancedSearchService);
30
48
  ngOnInit(): void;
31
49
  ngOnDestroy(): void;
32
50
  onStateChange(): void;
33
51
  updateSelf(): void;
34
52
  updatePropertiesFromProps(theConfigProps: any): void;
35
- generateChildrenToRender(): void;
53
+ generateChildrenToRender(): any;
36
54
  handleSelection(event: any): void;
37
55
  recreatedFirstChild(): any;
56
+ private setReadOnlyDisplayFlags;
57
+ private prepareFirstChildMeta;
58
+ private setChildDatasource;
59
+ private buildDataReferenceConfig;
60
+ private buildFieldMetaData;
61
+ private isCreateNewRecordEnabled;
62
+ private getCreateNewRecordFn;
38
63
  static ɵfac: i0.ɵɵFactoryDeclaration<DataReferenceComponent, never>;
39
64
  static ɵcmp: i0.ɵɵComponentDeclaration<DataReferenceComponent, "app-data-reference", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
40
65
  }
@@ -0,0 +1,39 @@
1
+ import { OnChanges, OnInit, TemplateRef } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { MatDialog } from '@angular/material/dialog';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SearchFormComponent implements OnInit, OnChanges {
6
+ private dialog;
7
+ pConn$: typeof PConnect;
8
+ formGroup$: FormGroup;
9
+ searchSelectCacheKey: any;
10
+ configProps$: any;
11
+ isInitialized: boolean;
12
+ currentTabId: string;
13
+ nextTabId: string;
14
+ openDialog: boolean;
15
+ tabItems: any[];
16
+ searchCategoriesComp: any;
17
+ propsToUse: any;
18
+ tabData: any;
19
+ tabCountSources: any;
20
+ deferLoadedTabs: any;
21
+ dialogTemplate: TemplateRef<any>;
22
+ dialogRef: any;
23
+ constructor(dialog: MatDialog);
24
+ ngOnInit(): void;
25
+ ngOnChanges(): void;
26
+ updateSelf(): void;
27
+ initializeSearchCategories(): void;
28
+ handleTabClick(event: any): void;
29
+ clearSelectionAndSwitchTab(): void;
30
+ onDialogClose(): void;
31
+ publishEvent({ clearSelections, viewName }: {
32
+ clearSelections: any;
33
+ viewName: any;
34
+ }): void;
35
+ get activeTabPConnect(): any;
36
+ checkIfSelectionsExist(getPConnect: any): boolean;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchFormComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchFormComponent, "app-search-form", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; "searchSelectCacheKey": { "alias": "searchSelectCacheKey"; "required": false; }; }, {}, never, never, true, never>;
39
+ }
@@ -0,0 +1,2 @@
1
+ export declare function getTabCountSources(deferLoadedTabs: any): any;
2
+ export declare function getData(deferLoadedTabs: any, tabCountSources: any, currentTabId: any, data: any): any;
@@ -0,0 +1,14 @@
1
+ export declare function getFieldMeta(getPConnect: any, dataRelationshipContext: any): {
2
+ compositeKeys: any;
3
+ fieldMetadata: any;
4
+ };
5
+ export declare const getFirstChildConfig: ({ firstChildMeta, getPConnect, rawViewMetadata, contextClass, dataReferenceConfigToChild, isCreateNewReferenceEnabled, disableStartingFieldsForReference, pyID }: {
6
+ firstChildMeta: any;
7
+ getPConnect: any;
8
+ rawViewMetadata: any;
9
+ contextClass: any;
10
+ dataReferenceConfigToChild: any;
11
+ isCreateNewReferenceEnabled: any;
12
+ disableStartingFieldsForReference: any;
13
+ pyID: any;
14
+ }) => any;
@@ -1,10 +1,10 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, OnChanges } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
4
4
  import { TemplateUtils } from '../../../_helpers/template-utils';
5
5
  import { FormTemplateBase } from '../base/form-template-base';
6
6
  import * as i0 from "@angular/core";
7
- export declare class DefaultFormComponent extends FormTemplateBase implements OnInit {
7
+ export declare class DefaultFormComponent extends FormTemplateBase implements OnInit, OnChanges {
8
8
  private angularPConnect;
9
9
  private templateUtils;
10
10
  pConn$: typeof PConnect;
@@ -16,6 +16,7 @@ export declare class DefaultFormComponent extends FormTemplateBase implements On
16
16
  constructor(angularPConnect: AngularPConnectService, templateUtils: TemplateUtils);
17
17
  ngOnInit(): void;
18
18
  onStateChange(): void;
19
+ ngOnChanges(changes: any): void;
19
20
  updateSelf(): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultFormComponent, never>;
21
22
  static ɵcmp: i0.ɵɵComponentDeclaration<DefaultFormComponent, "app-default-form", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
@@ -0,0 +1,29 @@
1
+ import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ interface DefaultPageProps {
4
+ layout?: string;
5
+ title?: string;
6
+ heading?: string;
7
+ message?: string;
8
+ backgroundImage?: string;
9
+ enableBanner?: boolean;
10
+ }
11
+ export declare class DefaultPageComponent implements OnInit, OnChanges {
12
+ pConn$: typeof PConnect;
13
+ formGroup$: any;
14
+ configProps$: DefaultPageProps;
15
+ arChildren$: any[];
16
+ title?: string;
17
+ heading: any;
18
+ message?: string;
19
+ backgroundImage?: string;
20
+ layout$?: string;
21
+ enableBanner$?: boolean;
22
+ constructor();
23
+ ngOnInit(): void;
24
+ ngOnChanges(changes: SimpleChanges): void;
25
+ updateSelf(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultPageComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultPageComponent, "app-default-page", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
28
+ }
29
+ export {};
@@ -22,6 +22,9 @@ interface ListViewProps {
22
22
  value: any;
23
23
  readonlyContextList: any;
24
24
  label?: string;
25
+ displayAs?: string;
26
+ showRecords: boolean;
27
+ viewName?: string;
25
28
  }
26
29
  export declare class Group {
27
30
  level: number;
@@ -93,16 +96,24 @@ export declare class ListViewComponent implements OnInit, OnDestroy {
93
96
  fieldDefs: any;
94
97
  checkBoxValue: string;
95
98
  label?: string;
99
+ uniqueId: `${string}-${string}-${string}-${string}-${string}`;
100
+ displayAs: any;
101
+ showRecords: any;
102
+ identifier: string;
103
+ promotedFiltersId: string;
96
104
  constructor(psService: ProgressSpinnerService, utils: Utils);
97
105
  ngOnInit(): void;
106
+ clearSelectionsAndUpdateTable(getPConnect: any, uniqueId: string, viewName: any): void;
98
107
  getFieldFromFilter(filter: any, dateRange?: boolean): any;
99
108
  processFilterChange(data: any): void;
100
109
  filterBasedOnDateRange(dashboardFilterPayload: any, filter: any, relationalOp: any, selectParam: any, index: any): any;
101
110
  processFilterClear(): void;
102
111
  getFieldsMetadata(refList: any): Promise<{
103
- data: any;
112
+ data: import("@pega/pcore-pconnect-typedefs/analytics/types/data-model").DataObjectMeta;
104
113
  }>;
114
+ getValue(col: any): any;
105
115
  getListData(): void;
116
+ prepareFilters(data: any): {};
106
117
  preparePayload(): void;
107
118
  ngOnDestroy(): void;
108
119
  drop(event: CdkDragDrop<string[]>): void;
@@ -157,6 +168,8 @@ export declare class ListViewComponent implements OnInit, OnDestroy {
157
168
  getField(fieldDefs: any, columnId: any): any;
158
169
  getFieldsMap(fieldDefs: any): Map<any, any>;
159
170
  addItemKeyInSelect(fieldDefs: any, itemKey: any, select: any, compositeKeys: any): any;
171
+ private updateFiltersFromData;
172
+ private buildFilterPayload;
160
173
  static ɵfac: i0.ɵɵFactoryDeclaration<ListViewComponent, never>;
161
174
  static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent, "app-list-view", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "bInForm$": { "alias": "bInForm$"; "required": false; }; "payload": { "alias": "payload"; "required": false; }; }, {}, never, never, true, never>;
162
175
  }
@@ -0,0 +1,8 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ObjectPageComponent {
4
+ pConn$: typeof PConnect;
5
+ formGroup$: FormGroup;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ObjectPageComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ObjectPageComponent, "lib-object-page", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,59 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
4
+ import { Utils } from '../../../_helpers/utils';
5
+ import * as i0 from "@angular/core";
6
+ interface SelfServiceCaseViewProps {
7
+ icon: string;
8
+ subheader: string;
9
+ header: string;
10
+ showCaseLifecycle: any;
11
+ showSummaryRegion: any;
12
+ showUtilitiesRegion: any;
13
+ showCaseActions: any;
14
+ caseClass: any;
15
+ }
16
+ export declare class SelfServiceCaseViewComponent implements OnInit, OnDestroy {
17
+ private angularPConnect;
18
+ private utils;
19
+ pConn$: typeof PConnect;
20
+ formGroup$: FormGroup;
21
+ angularPConnectData: AngularPConnectData;
22
+ configProps$: SelfServiceCaseViewProps;
23
+ arChildren$: any[];
24
+ heading$: string;
25
+ id$: string;
26
+ status$: string;
27
+ arAvailableActions$: any[];
28
+ arAvailabeProcesses$: any[];
29
+ caseSummaryPConn$: any;
30
+ currentCaseID: string;
31
+ editAction: boolean;
32
+ bHasNewAttachments: boolean;
33
+ localizedVal: any;
34
+ localeCategory: string;
35
+ localeKey: any;
36
+ showCaseLifecycle: boolean;
37
+ showSummaryRegion: boolean;
38
+ showUtilitiesRegion: boolean;
39
+ showCaseActions: boolean;
40
+ utilityRegion: any;
41
+ primarySummaryFields: any;
42
+ secondarySummaryFields: any;
43
+ constructor(angularPConnect: AngularPConnectService, utils: Utils);
44
+ ngOnInit(): void;
45
+ ngOnDestroy(): void;
46
+ onStateChange(): void;
47
+ checkAndUpdate(): void;
48
+ hasCaseIDChanged(): boolean;
49
+ updateHeaderAndSummary(): void;
50
+ fullUpdate(): void;
51
+ filterUtilities(utils: any): any;
52
+ isUtilitiesRegionNotEmpty(): any;
53
+ updateSelf(): void;
54
+ _menuActionClick(data: any): void;
55
+ _menuProcessClick(data: any): void;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelfServiceCaseViewComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelfServiceCaseViewComponent, "app-self-service-case-view", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
58
+ }
59
+ export {};
@@ -113,7 +113,7 @@ export declare class SimpleTableManualComponent implements OnInit, OnDestroy {
113
113
  settingsSvgIcon$: string;
114
114
  isInitialized: boolean;
115
115
  targetClassLabel: string;
116
- localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string, componentName?: string | null) => string;
116
+ localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string | null, componentName?: string | null) => string;
117
117
  localeCategory: string;
118
118
  constructor(angularPConnect: AngularPConnectService, utils: Utils, dataPageService: DatapageService);
119
119
  ngOnInit(): void;
@@ -155,7 +155,7 @@ export declare class SimpleTableManualComponent implements OnInit, OnDestroy {
155
155
  getDisplayColumns(fields?: never[]): any[];
156
156
  _getIconStyle(level: any): string;
157
157
  onStateChange(): void;
158
- getRowValue(inRowData: Object, inColKey: string): any;
158
+ getRowValue(inRowData: object, inColKey: string): any;
159
159
  generateRowsData(): void;
160
160
  formatRowsData(data: any): any;
161
161
  addRecord(): void;
@@ -1,8 +1,24 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
1
2
  import { FormGroup } from '@angular/forms';
3
+ import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
4
  import * as i0 from "@angular/core";
3
- export declare class SingleReferenceReadonlyComponent {
5
+ export declare class SingleReferenceReadonlyComponent implements OnInit, OnDestroy {
6
+ private angularPConnect;
4
7
  pConn$: typeof PConnect;
5
8
  formGroup$: FormGroup;
9
+ dataRelationshipContext?: any;
10
+ angularPConnectData: AngularPConnectData;
11
+ configProps: any;
12
+ component: any;
13
+ label: string;
14
+ newPconn: typeof PConnect;
15
+ displayMode: string;
16
+ constructor(angularPConnect: AngularPConnectService);
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
19
+ onStateChange(): void;
20
+ checkAndUpdate(): void;
21
+ updateSelf(): void;
6
22
  static ɵfac: i0.ɵɵFactoryDeclaration<SingleReferenceReadonlyComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<SingleReferenceReadonlyComponent, "app-single-reference-readonly", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<SingleReferenceReadonlyComponent, "app-single-reference-readonly", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; "dataRelationshipContext": { "alias": "dataRelationshipContext"; "required": false; }; }, {}, never, never, true, never>;
8
24
  }
@@ -7,3 +7,7 @@ export declare function filterForFieldValueList(fields: any): any;
7
7
  * @returns {boolean} - Returns true if the row action is allowed, false otherwise.
8
8
  */
9
9
  export declare const evaluateAllowRowAction: (allowRowDelete: any, rowData: any) => boolean;
10
+ export declare function prepareCaseSummaryData(caseSummaryRegion: any, portalSpecificVisibilityChecker?: any): {
11
+ primarySummaryFields: any;
12
+ secondarySummaryFields: any;
13
+ };
@@ -17,14 +17,12 @@ export declare class WssNavBarComponent implements OnInit, OnDestroy {
17
17
  pages$: any[];
18
18
  caseTypes$: any[];
19
19
  homePage: any;
20
+ portalLogoImage$: string;
20
21
  angularPConnectData: AngularPConnectData;
21
22
  configProps$: WssNavBarProps;
22
23
  navPages$: any[];
23
24
  navExpandCollapse$: string;
24
25
  bShowCaseTypes$: boolean;
25
- portalApp$: string | undefined;
26
- portalLogoImage$: string;
27
- showAppName$: boolean;
28
26
  portalOperator$: string | undefined;
29
27
  portalOperatorInitials$: string;
30
28
  actionsAPI: any;
@@ -32,7 +30,7 @@ export declare class WssNavBarComponent implements OnInit, OnDestroy {
32
30
  showPage: any;
33
31
  logout: any;
34
32
  navIcon$: string;
35
- localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string, componentName?: string | null) => string;
33
+ localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string | null, componentName?: string | null) => string;
36
34
  localeCategory: string;
37
35
  constructor(angularPConnect: AngularPConnectService, cdRef: ChangeDetectorRef, psService: ProgressSpinnerService, ngZone: NgZone, utils: Utils);
38
36
  ngOnInit(): void;
@@ -46,6 +44,6 @@ export declare class WssNavBarComponent implements OnInit, OnDestroy {
46
44
  navPanelCreateCaseType(sCaseType: string, sFlowType: string): void;
47
45
  navPanelLogoutClick(): void;
48
46
  static ɵfac: i0.ɵɵFactoryDeclaration<WssNavBarComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<WssNavBarComponent, "app-wss-nav-bar", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "appName$": { "alias": "appName$"; "required": false; }; "pages$": { "alias": "pages$"; "required": false; }; "caseTypes$": { "alias": "caseTypes$"; "required": false; }; "homePage": { "alias": "homePage"; "required": false; }; }, {}, never, never, true, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<WssNavBarComponent, "app-wss-nav-bar", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "appName$": { "alias": "appName$"; "required": false; }; "pages$": { "alias": "pages$"; "required": false; }; "caseTypes$": { "alias": "caseTypes$"; "required": false; }; "homePage": { "alias": "homePage"; "required": false; }; "portalLogoImage$": { "alias": "portalLogoImage$"; "required": false; }; }, {}, never, never, true, never>;
50
48
  }
51
49
  export {};
@@ -0,0 +1,87 @@
1
+ export interface ResponseProps {
2
+ ID: string;
3
+ extension: string;
4
+ createDateTime?: Date | string | number;
5
+ createUser?: string;
6
+ name: string;
7
+ }
8
+ export interface AttachmentActions {
9
+ rel: string;
10
+ href: string;
11
+ title: string;
12
+ type: string;
13
+ }
14
+ export interface AttachmentLinks {
15
+ delete: AttachmentActions;
16
+ download: AttachmentActions;
17
+ edit: AttachmentActions;
18
+ }
19
+ export interface FileObject extends File {
20
+ icon?: string;
21
+ ID: string;
22
+ fileName: string;
23
+ category: string;
24
+ responseType: string;
25
+ fileType: string;
26
+ mimeType: string;
27
+ extension: string;
28
+ thumbnail?: string;
29
+ nameWithExt: string;
30
+ inProgress?: boolean;
31
+ progress?: number;
32
+ handle: string;
33
+ label: string;
34
+ delete?: boolean;
35
+ error?: boolean;
36
+ description: string;
37
+ props: {
38
+ icon?: string;
39
+ id: string;
40
+ error?: string;
41
+ format?: string;
42
+ name: string;
43
+ thumbnail?: string;
44
+ onPreview?: () => void;
45
+ onDelete?: () => void;
46
+ onOpen?: () => void;
47
+ onEdit?: () => void;
48
+ onCancel?: () => void;
49
+ };
50
+ responseProps: ResponseProps;
51
+ value?: {
52
+ filename: string;
53
+ ID: string;
54
+ thumbnail: string;
55
+ };
56
+ categoryName: string;
57
+ createTime: string;
58
+ createdBy: string;
59
+ createdByName: string;
60
+ links: AttachmentLinks;
61
+ name: string;
62
+ meta?: any;
63
+ }
64
+ export interface ReduxAttachments {
65
+ ID?: string;
66
+ pzInsKey?: string;
67
+ FileName: string;
68
+ Category: string;
69
+ MimeType?: string;
70
+ FileExtension: string;
71
+ error: string | null;
72
+ localAttachment: boolean;
73
+ thumbnail?: string;
74
+ fileIndex?: number;
75
+ instruction?: string;
76
+ }
77
+ export interface PageInstructionOptions {
78
+ allowMultiple: boolean;
79
+ isMultiAttachmentInInlineEditTable: boolean;
80
+ attachmentCount: number;
81
+ insertPageInstruction: boolean;
82
+ deletePageInstruction: boolean;
83
+ deleteIndex: number;
84
+ insertRedux: boolean;
85
+ isOldAttachment: boolean;
86
+ deleteRedux: boolean;
87
+ }
@@ -0,0 +1,17 @@
1
+ import type { FileObject, PageInstructionOptions, ReduxAttachments } from './Attachment.types';
2
+ export declare const isContentBinary: (headers: Record<string, string>) => boolean;
3
+ export declare const isContentBase64: (headers: Record<string, string>) => boolean;
4
+ export declare const validateMaxSize: (fileObj: Record<string, number>, maxSizeInMB: string) => boolean;
5
+ export declare const validateFileExtension: (fileObj: Record<string, string>, allowedExtensions: string) => boolean;
6
+ export declare const fileDownload: (data: string | Blob, fileName: string, ext: string | null, headers: Record<string, string>) => void;
7
+ export declare const fileDownloadVar: (content: {
8
+ data: string;
9
+ headers: Record<string, string>;
10
+ }, type: string, name: string, extension: string) => void;
11
+ export declare const getMappedValue: (value: string) => string;
12
+ export declare const updateReduxState: (transformedAttachments: ReduxAttachments[], pConn: typeof PConnect, valueRef: string, options: PageInstructionOptions) => void;
13
+ export declare const insertAttachments: (files: FileObject[], pConn: typeof PConnect, attachmentsInModal: ReduxAttachments[], options: PageInstructionOptions) => void;
14
+ export declare const deleteAttachments: (files: FileObject[], pConn: typeof PConnect, attachmentsInModal: Pick<ReduxAttachments, "instruction" | "fileIndex">[], options: PageInstructionOptions) => void;
15
+ export declare const clearFieldErrorMessages: (pConn: typeof PConnect) => void;
16
+ export declare const onFileDownload: (responseProps: any, context: any) => void;
17
+ export declare const transformAttachments: (attachments: any) => any[];
@@ -1,4 +1,4 @@
1
- import { OnInit, NgZone, OnDestroy, ElementRef } from '@angular/core';
1
+ import { OnInit, OnDestroy, ElementRef } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
4
4
  import { Utils } from '../../../_helpers/utils';
@@ -6,67 +6,52 @@ import * as i0 from "@angular/core";
6
6
  export declare class AttachmentComponent implements OnInit, OnDestroy {
7
7
  private angularPConnect;
8
8
  private utils;
9
- private ngZone;
10
9
  pConn$: typeof PConnect;
11
10
  formGroup$: FormGroup;
12
11
  angularPConnectData: AngularPConnectData;
13
12
  fileInput: ElementRef;
13
+ localizationService: any;
14
+ contextName: string;
15
+ actionSequencer: any;
16
+ caseID: any;
14
17
  label$: string;
15
18
  value$: any;
16
19
  bRequired$: boolean;
17
20
  bReadonly$: boolean;
18
21
  bDisabled$: boolean;
19
22
  bVisible$: boolean;
20
- bLoading$: boolean;
21
- bShowSelector$: boolean;
22
- att_categoryName: string;
23
- fileTemp: any;
24
- caseID: any;
25
23
  allowMultiple$: boolean;
26
24
  extensions$: string;
25
+ displayMode: string | undefined;
27
26
  status: string;
28
27
  validateMessage: string | undefined;
29
28
  valueRef: string;
30
- imagePath$: string;
31
- localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string, componentName?: string | null) => string;
32
- localeCategory: string;
29
+ localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string | null, componentName?: string | null) => string;
33
30
  uploadMultipleFilesLabel: string;
34
31
  uploadSingleFileLabel: string;
35
32
  filesWithError: any;
36
33
  files: any;
37
- categoryName: string;
38
- displayMode: string | undefined;
39
34
  srcImg: any;
40
35
  deleteIcon: string;
41
36
  tempFilesToBeUploaded: any[];
42
- constructor(angularPConnect: AngularPConnectService, utils: Utils, ngZone: NgZone);
37
+ attachments: any;
38
+ attachmentCount: number;
39
+ isOldAttachment: boolean;
40
+ multiAttachmentsInInlineEdit: any;
41
+ isMultiAttachmentInInlineEditTable: any;
42
+ overrideLocalState: boolean;
43
+ constructor(angularPConnect: AngularPConnectService, utils: Utils);
43
44
  ngOnInit(): void;
44
- getAttachments(): () => void;
45
45
  checkAndUpdate(): void;
46
46
  onStateChange(): void;
47
47
  updateSelf(): void;
48
- buildFilePropsFromResponse(respObj: any): {
49
- props: {
50
- meta: string;
51
- name: any;
52
- icon: string;
53
- };
54
- responseProps: any;
55
- };
56
48
  updateAttachments(): void;
57
- resetAttachmentStoredState(): void;
58
49
  downloadFile(fileObj: any): void;
59
- fileDownload: (data: any, fileName: any, ext: any) => void;
60
- getAttachmentKey: (name?: string) => string;
61
- getCurrentAttachmentsList(key: any, context: any): any;
62
- validateMaxSize(fileObj: any, maxSizeInMB: any): boolean;
63
- validateFileExtension: (fileObj: any, allowedExtensions: any) => any;
64
- updateAttachmentState(pConn: any, key: any, attachments: any): void;
65
- deleteFile(file: any): void;
50
+ deleteFile(file: any, fileIndex: number): void;
66
51
  onFileAdded(event: any): void;
67
- clearFieldErrorMessages(): void;
68
- onUploadProgress(): void;
69
- errorHandler(isFetchCanceled: any, attachedFile: any): (error: any) => never;
52
+ onUploadProgress(id: any, ev: any): void;
53
+ populateErrorAndUpdateRedux(file: any): void;
54
+ errorHandler(isFetchCanceled: any, file: any): (error: any) => never;
70
55
  uploadFiles(): void;
71
56
  ngOnDestroy(): void;
72
57
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentComponent, never>;
@@ -13,14 +13,14 @@ export declare class FeedContainerComponent implements OnInit, OnDestroy {
13
13
  currentUserInitials$: string;
14
14
  currentUserName$: string;
15
15
  pulseMessages$: any[];
16
- showReplyComment$: Object;
16
+ showReplyComment$: object;
17
17
  svgComment$: string;
18
18
  svgLike$: string;
19
19
  svgLikedByMe$: string;
20
20
  svgSend$: string;
21
21
  pulseConversation: string;
22
22
  userData: Map<any, any>;
23
- pulseComment: Object;
23
+ pulseComment: object;
24
24
  actionsAPI: any;
25
25
  feedAPI: any;
26
26
  pulseData: any;
@@ -33,10 +33,12 @@ export declare class TodoComponent implements OnInit, OnDestroy {
33
33
  assignmentsSource$: any;
34
34
  CONSTS: typeof publicConstants;
35
35
  bLogging: boolean;
36
- localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string, componentName?: string | null) => string;
36
+ localizedVal: (localeKey: string, localePath?: string, localeRuleKey?: string | null, componentName?: string | null) => string;
37
+ localeUtils: import("@pega/pcore-pconnect-typedefs/locale/locale-utils").LocaleUtils;
37
38
  localeCategory: string;
38
39
  showlessLocalizedValue: string;
39
40
  showMoreLocalizedValue: string;
41
+ goLocalizedValue: string;
40
42
  count: number;
41
43
  constructor(psService: ProgressSpinnerService, erService: ErrorMessagesService, utils: Utils);
42
44
  ngOnInit(): void;
@@ -49,7 +51,7 @@ export declare class TodoComponent implements OnInit, OnDestroy {
49
51
  topThreeAssignments(assignmentsSource: any[]): any[];
50
52
  getAssignmentId(assignment: any): any;
51
53
  getPriority(assignment: any): any;
52
- getAssignmentName(assignment: any): any;
54
+ getAssignmentName(assignment: any): string;
53
55
  getCaseInfoAssignment(assignmentsSource: any[], caseInfoID: string): any[];
54
56
  _showMore(): void;
55
57
  _showLess(): void;
@@ -11,6 +11,4 @@ export declare const getReferenceList: (pConn: any) => any;
11
11
  * @param {*} viewConfigPath - boolean value to check for children in config
12
12
  * @returns {*} - return the react element of the view
13
13
  */
14
- export declare const buildView: (pConn: any, index: any, viewConfigPath: any) => {
15
- getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").C11nEnv;
16
- };
14
+ export declare const buildView: (pConn: any, index: any, viewConfigPath: any) => import("@pega/pcore-pconnect-typedefs/interpreter/types").CreateC11nEnv;
@@ -25,9 +25,7 @@ export declare const createFilterComponent: (getPConnect: any, filterMeta: any,
25
25
  name: any;
26
26
  filterProp: string;
27
27
  metadata: any;
28
- c11nEnv: {
29
- getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").C11nEnv;
30
- };
28
+ c11nEnv: import("@pega/pcore-pconnect-typedefs/interpreter/types").CreateC11nEnv;
31
29
  filterId: any;
32
30
  label?: undefined;
33
31
  };
@@ -0,0 +1,6 @@
1
+ declare function getLeafNameFromPropertyName(property: any): string;
2
+ declare function isSelfReferencedProperty(param: any, referenceProp: any): boolean;
3
+ declare function getCompositeKeys(c11nEnv: any, property: any): any;
4
+ declare function generateColumns(config: any, pConn: any, referenceType: any): void;
5
+ declare function getDataRelationshipContextFromKey(key: any): any;
6
+ export { getLeafNameFromPropertyName, isSelfReferencedProperty, getCompositeKeys, generateColumns, getDataRelationshipContextFromKey };
@@ -0,0 +1,9 @@
1
+ declare function getDataReferenceInfo(pConnect: any, dataRelationshipContext: any, contextPage: any): {
2
+ dataContext?: undefined;
3
+ dataContextParameters?: undefined;
4
+ } | {
5
+ dataContext: any;
6
+ dataContextParameters: {};
7
+ };
8
+ declare function isLinkTextEmpty(text: any): boolean;
9
+ export { getDataReferenceInfo, isLinkTextEmpty };
@@ -1,4 +1,8 @@
1
1
  export declare const getDeferFriendlyTabs: (allTabs: any) => any;
2
+ export declare const searchtabsClick: (id: any, mainTabs: any, currentTabId: any) => void;
2
3
  export declare const getVisibleTabs: (allTabs: any, uuid: any) => any;
3
4
  export declare const getTransientTabs: (availableTabs: any, currentTabId: any, tabItems: any) => any;
4
5
  export declare const tabClick: (id: any, availableTabs: any, currentTabId: any, tabItems: any) => void;
6
+ export declare const getTabLabel: (tabPConnect: any) => any;
7
+ export declare const getActiveTabId: (mainTabs: any, currentTabId: any) => any;
8
+ export declare const getFirstVisibleTabId: (deferLoadedTabs: any, tabViewName: any) => string | null;