@pega/angular-sdk-overrides 0.242.11 → 0.242.12
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/field/phone/phone.component.html +3 -2
- package/lib/field/radio-buttons/radio-buttons.component.html +2 -5
- package/lib/field/text/text.component.ts +4 -2
- package/lib/field/text-area/text-area.component.html +3 -1
- package/lib/field/time/time.component.html +1 -1
- package/lib/infra/navbar/navbar.component.ts +0 -2
- package/lib/template/list-view/list-view.component.ts +0 -2
- package/lib/template/list-view/listViewHelpers.ts +2 -5
- package/lib/template/list-view/utils.ts +2 -5
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +0 -2
- package/lib/widget/feed-container/feed-container.component.ts +0 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
3
3
|
</div>
|
|
4
4
|
<ng-template #noDisplayMode>
|
|
5
|
-
<div *ngIf="
|
|
5
|
+
<div *ngIf="bHasForm$; else noEdit">
|
|
6
6
|
<div #f="ngForm" [formGroup]="formGroup$" *ngIf="bVisible$">
|
|
7
7
|
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
|
|
8
8
|
<ngx-mat-intl-tel-input
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
[preferredCountries]="['us']"
|
|
12
12
|
[enablePlaceholder]="true"
|
|
13
13
|
[enableSearch]="true"
|
|
14
|
-
[
|
|
14
|
+
[required]="bRequired$"
|
|
15
|
+
[disabled]="bDisabled$ || bReadonly$"
|
|
15
16
|
(change)="fieldOnChange()"
|
|
16
17
|
(blur)="fieldOnBlur()"
|
|
17
18
|
>
|
|
@@ -8,11 +8,8 @@
|
|
|
8
8
|
<ng-template #noDisplayMode>
|
|
9
9
|
<div [formGroup]="formGroup$" *ngIf="bVisible$">
|
|
10
10
|
<mat-form-field class="psdk-radio-form" subscriptSizing="dynamic" [hintLabel]="helperText">
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
</span>
|
|
14
|
-
<!-- <mat-label>{{label$}}</mat-label> -->
|
|
15
|
-
<input matInput [placeholder]="placeholder" style="display: none" />
|
|
11
|
+
<mat-label>{{ label$ }}</mat-label>
|
|
12
|
+
<input matInput [placeholder]="placeholder" style="display: none" [required]="bRequired$" />
|
|
16
13
|
<mat-radio-group
|
|
17
14
|
[value]="value$"
|
|
18
15
|
[required]="bRequired$"
|
|
@@ -5,6 +5,7 @@ import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-c
|
|
|
5
5
|
import { Utils } from '@pega/angular-sdk-components';
|
|
6
6
|
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
7
7
|
import { PConnFieldProps } from '@pega/angular-sdk-components';
|
|
8
|
+
import { format } from '@pega/angular-sdk-components';
|
|
8
9
|
|
|
9
10
|
interface TextProps extends PConnFieldProps {
|
|
10
11
|
// If any, enter additional props that only exist on Text here
|
|
@@ -99,8 +100,9 @@ export class TextComponent implements OnInit, OnDestroy {
|
|
|
99
100
|
break;
|
|
100
101
|
case 'time':
|
|
101
102
|
if (this.value$) {
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
this.formattedValue$ = format(this.value$, 'timeonly', {
|
|
104
|
+
format: 'hh:mm A'
|
|
105
|
+
});
|
|
104
106
|
} else {
|
|
105
107
|
this.formattedValue$ = '';
|
|
106
108
|
}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
3
3
|
</div>
|
|
4
4
|
<ng-template #noDisplayMode>
|
|
5
|
-
<div *ngIf="
|
|
5
|
+
<div *ngIf="bHasForm$; else noEdit">
|
|
6
6
|
<div [formGroup]="formGroup$">
|
|
7
7
|
<div *ngIf="bVisible$">
|
|
8
8
|
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
|
|
9
|
+
<mat-label>{{ label$ }}</mat-label>
|
|
9
10
|
<textarea
|
|
10
11
|
matInput
|
|
11
12
|
rows="5"
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
[value]="value$"
|
|
16
17
|
[required]="bRequired$"
|
|
17
18
|
[disabled]="bDisabled$"
|
|
19
|
+
[readonly]="bReadonly$"
|
|
18
20
|
[formControl]="fieldControl"
|
|
19
21
|
(change)="fieldOnChange($event)"
|
|
20
22
|
(blur)="fieldOnBlur($event)"
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
</ng-template>
|
|
25
25
|
<ng-template #noEdit>
|
|
26
|
-
<component-mapper *ngIf="bVisible$ !== false" name="Text" [props]="{ pConn$, formatAs$: '
|
|
26
|
+
<component-mapper *ngIf="bVisible$ !== false" name="Text" [props]="{ pConn$, formatAs$: 'time' }"></component-mapper>
|
|
27
27
|
</ng-template>
|
|
@@ -7,8 +7,6 @@ import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-c
|
|
|
7
7
|
import { ProgressSpinnerService } from '@pega/angular-sdk-components';
|
|
8
8
|
import { Utils } from '@pega/angular-sdk-components';
|
|
9
9
|
|
|
10
|
-
declare const window: any;
|
|
11
|
-
|
|
12
10
|
interface NavBarProps {
|
|
13
11
|
// If any, enter additional props that only exist on this component
|
|
14
12
|
showAppName?: boolean;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { getContext, readContextResponse } from './utils';
|
|
2
2
|
|
|
3
|
-
// Remove this and use "real" PCore type once .d.ts is fixed (currently shows 1 error)
|
|
4
|
-
declare const PCore: any;
|
|
5
|
-
|
|
6
3
|
export function init(props) {
|
|
7
4
|
const {
|
|
8
5
|
referenceList,
|
|
@@ -25,9 +22,9 @@ export function init(props) {
|
|
|
25
22
|
let selectionCountThreshold;
|
|
26
23
|
|
|
27
24
|
// promise to fetch metadata
|
|
28
|
-
const metaDataPromise = PCore.getAnalyticsUtils().getDataViewMetadata(referenceList, showDynamicFields);
|
|
25
|
+
const metaDataPromise = PCore.getAnalyticsUtils().getDataViewMetadata(referenceList, showDynamicFields, null);
|
|
29
26
|
|
|
30
|
-
const promisesArray = [metaDataPromise];
|
|
27
|
+
const promisesArray: any = [metaDataPromise];
|
|
31
28
|
|
|
32
29
|
// promise to fetch report configured columns
|
|
33
30
|
const reportColumnsPromise = PCore.getAnalyticsUtils()
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { getDefaultViewMeta } from './DefaultViewMeta';
|
|
2
2
|
|
|
3
|
-
// Remove this and use "real" PCore type once .d.ts is fixed (currently shows 5 errors)
|
|
4
|
-
declare const PCore: any;
|
|
5
|
-
|
|
6
3
|
const USER_REFERENCE = 'UserReference';
|
|
7
4
|
const PAGE = '!P!';
|
|
8
5
|
const PAGELIST = '!PL!';
|
|
@@ -121,7 +118,7 @@ export const isPageListInPath = (propertyName, currentClassID) => {
|
|
|
121
118
|
return false;
|
|
122
119
|
}
|
|
123
120
|
const [first, ...rest] = propertyName.split('.');
|
|
124
|
-
const metadata = PCore.getMetadataUtils().getPropertyMetadata(first, currentClassID);
|
|
121
|
+
const metadata: any = PCore.getMetadataUtils().getPropertyMetadata(first, currentClassID);
|
|
125
122
|
if (metadata?.type === 'Page List') {
|
|
126
123
|
return true;
|
|
127
124
|
}
|
|
@@ -205,7 +202,7 @@ export function getConfigEmbeddedFieldsMeta(configFields, classID) {
|
|
|
205
202
|
if (value.includes('[')) {
|
|
206
203
|
value = value.substring(0, value.indexOf('[')) + value.substring(value.indexOf(']') + 1);
|
|
207
204
|
}
|
|
208
|
-
const meta = PCore.getMetadataUtils().getEmbeddedPropertyMetadata(value, classID);
|
|
205
|
+
const meta: any = PCore.getMetadataUtils().getEmbeddedPropertyMetadata(value, classID);
|
|
209
206
|
meta.fieldID = field;
|
|
210
207
|
configEmbeddedFieldsMeta.push(meta);
|
|
211
208
|
}
|
|
@@ -21,8 +21,6 @@ import { evaluateAllowRowAction } from '@pega/angular-sdk-components';
|
|
|
21
21
|
import { Utils } from '@pega/angular-sdk-components';
|
|
22
22
|
import { getSeconds } from '@pega/angular-sdk-components';
|
|
23
23
|
|
|
24
|
-
declare const window: any;
|
|
25
|
-
|
|
26
24
|
interface SimpleTableManualProps {
|
|
27
25
|
// If any, enter additional props that only exist on this component
|
|
28
26
|
visibility?: boolean;
|
|
@@ -9,8 +9,6 @@ import isEqual from 'fast-deep-equal';
|
|
|
9
9
|
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
10
10
|
import { Utils } from '@pega/angular-sdk-components';
|
|
11
11
|
|
|
12
|
-
declare const window: any;
|
|
13
|
-
|
|
14
12
|
@Component({
|
|
15
13
|
selector: 'app-feed-container',
|
|
16
14
|
templateUrl: './feed-container.component.html',
|