@pega/angular-sdk-overrides 0.24.9 → 0.25.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.
- 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 +1 -2
- package/lib/designSystemExtension/banner/banner.component.scss +12 -2
- package/lib/designSystemExtension/banner/banner.component.ts +0 -1
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +1 -2
- 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 +7 -35
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +0 -2
- 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 +4 -4
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss +4 -3
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts +10 -2
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss +2 -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 +2 -2
- package/lib/designSystemExtension/operator/operator.component.scss +13 -12
- package/lib/designSystemExtension/operator/operator.component.ts +5 -6
- package/lib/designSystemExtension/pulse/pulse.component.scss +2 -2
- package/lib/designSystemExtension/pulse/pulse.component.ts +7 -8
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +0 -1
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +0 -1
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +16 -8
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +0 -1
- package/lib/field/auto-complete/auto-complete.component.html +0 -2
- package/lib/field/auto-complete/auto-complete.component.ts +56 -178
- 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 +17 -6
- package/lib/field/check-box/check-box.component.scss +0 -1
- package/lib/field/check-box/check-box.component.ts +32 -157
- package/lib/field/currency/currency.component.html +4 -4
- package/lib/field/currency/currency.component.ts +65 -175
- package/lib/field/date/date.component.html +4 -8
- package/lib/field/date/date.component.ts +39 -177
- package/lib/field/date-time/date-time.component.html +3 -4
- package/lib/field/date-time/date-time.component.ts +46 -146
- package/lib/field/decimal/decimal.component.html +4 -3
- package/lib/field/decimal/decimal.component.ts +66 -166
- package/lib/field/dropdown/dropdown.component.html +1 -0
- package/lib/field/dropdown/dropdown.component.ts +158 -153
- package/lib/field/email/email.component.ts +28 -148
- package/lib/field/field.base.ts +149 -0
- package/lib/field/group/group.component.ts +9 -7
- package/lib/field/integer/integer.component.ts +30 -152
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.html +1 -1
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.ts +3 -3
- 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 +385 -0
- package/lib/field/multiselect/multiselect.component.ts +56 -151
- 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.html +3 -3
- package/lib/field/percentage/percentage.component.ts +68 -161
- package/lib/field/phone/config-ext.json +1 -1
- package/lib/field/phone/phone.component.html +9 -6
- package/lib/field/phone/phone.component.scss +9 -0
- package/lib/field/phone/phone.component.ts +48 -159
- package/lib/field/radio-buttons/radio-buttons.component.html +17 -12
- package/lib/field/radio-buttons/radio-buttons.component.scss +4 -2
- package/lib/field/radio-buttons/radio-buttons.component.ts +39 -162
- package/lib/field/rich-text/rich-text.component.ts +32 -93
- package/lib/field/scalar-list/scalar-list.component.ts +20 -77
- 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 +8 -5
- package/lib/field/text-area/text-area.component.html +4 -1
- package/lib/field/text-area/text-area.component.ts +30 -148
- package/lib/field/text-content/text-content.component.ts +0 -1
- package/lib/field/text-input/text-input.component.ts +28 -150
- package/lib/field/time/time.component.html +2 -2
- package/lib/field/time/time.component.ts +39 -145
- package/lib/field/url/url.component.ts +28 -149
- package/lib/field/user-reference/user-reference.component.html +40 -46
- package/lib/field/user-reference/user-reference.component.scss +0 -1
- package/lib/field/user-reference/user-reference.component.ts +110 -21
- package/lib/infra/Containers/flow-container/flow-container.component.html +1 -1
- package/lib/infra/Containers/flow-container/flow-container.component.ts +29 -54
- package/lib/infra/Containers/flow-container/helpers.ts +2 -2
- 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.html +1 -11
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +6 -19
- package/lib/infra/Containers/preview-view-container/preview-view-container.component.ts +1 -1
- package/lib/infra/Containers/view-container/helper.ts +55 -0
- package/lib/infra/Containers/view-container/view-container.component.ts +6 -19
- 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.html +1 -1
- package/lib/infra/assignment/assignment.component.ts +90 -47
- package/lib/infra/assignment-card/assignment-card.component.html +2 -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 +24 -16
- package/lib/infra/error-boundary/error-boundary.component.ts +0 -1
- package/lib/infra/multi-step/multi-step.component.scss +1 -21
- package/lib/infra/multi-step/multi-step.component.ts +0 -1
- package/lib/infra/navbar/navbar.component.html +25 -28
- package/lib/infra/navbar/navbar.component.scss +16 -4
- package/lib/infra/navbar/navbar.component.ts +11 -9
- package/lib/infra/reference/reference.component.ts +77 -90
- package/lib/infra/region/region.component.ts +0 -1
- package/lib/infra/root-container/root-container.component.html +2 -15
- package/lib/infra/root-container/root-container.component.scss +0 -1
- package/lib/infra/root-container/root-container.component.ts +28 -35
- package/lib/infra/stages/stages.component.html +2 -2
- package/lib/infra/stages/stages.component.scss +9 -37
- package/lib/infra/stages/stages.component.ts +4 -3
- package/lib/infra/view/view.component.html +7 -20
- package/lib/infra/view/view.component.ts +20 -5
- 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 +66 -10
- package/lib/template/banner-page/banner-page.component.ts +0 -1
- package/lib/template/base/details-template-base.ts +67 -0
- package/lib/template/base/form-template-base.ts +16 -0
- package/lib/template/case-summary/case-summary.component.scss +0 -2
- package/lib/template/case-summary/case-summary.component.ts +7 -23
- package/lib/template/case-view/case-view.component.html +7 -7
- package/lib/template/case-view/case-view.component.scss +18 -10
- package/lib/template/case-view/case-view.component.ts +9 -15
- package/lib/template/confirmation/confirmation.component.html +1 -1
- package/lib/template/confirmation/confirmation.component.ts +1 -2
- package/lib/template/data-reference/data-reference-advanced-search.service.ts +16 -0
- package/lib/template/data-reference/data-reference.component.html +11 -8
- package/lib/template/data-reference/data-reference.component.ts +377 -148
- 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.html +0 -4
- package/lib/template/default-form/default-form.component.ts +50 -26
- 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 +7 -42
- package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +6 -40
- package/lib/template/details-one-column/details-one-column.component.ts +7 -43
- package/lib/template/details-sub-tabs/details-sub-tabs.component.html +1 -2
- package/lib/template/details-sub-tabs/details-sub-tabs.component.ts +5 -38
- package/lib/template/details-three-column/details-three-column.component.ts +7 -44
- package/lib/template/details-two-column/details-two-column.component.ts +8 -45
- package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +7 -43
- package/lib/template/dynamic-tabs/dynamic-tabs.component.html +3 -0
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +8 -4
- 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.html +7 -7
- package/lib/template/field-group-template/field-group-template.component.scss +8 -0
- package/lib/template/field-group-template/field-group-template.component.ts +68 -48
- package/lib/template/field-value-list/field-value-list.component.html +2 -2
- package/lib/template/field-value-list/field-value-list.component.scss +6 -1
- 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 +2 -3
- package/lib/template/list-page/list-page.component.ts +0 -1
- package/lib/template/list-view/list-view.component.html +14 -4
- package/lib/template/list-view/list-view.component.scss +30 -19
- package/lib/template/list-view/list-view.component.ts +179 -95
- package/lib/template/list-view/listViewHelpers.ts +4 -10
- package/lib/template/list-view/utils.ts +27 -7
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.ts +0 -1
- package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +1 -2
- 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 +4 -4
- 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 +1 -2
- package/lib/template/page/page.component.ts +1 -2
- package/lib/template/promoted-filters/promoted-filters.component.ts +1 -2
- package/lib/template/repeating-structures/repeating-structures.component.ts +1 -3
- package/lib/template/self-service-case-view/self-service-case-view.component.html +80 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.scss +124 -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 +216 -0
- package/lib/template/simple-table/simple-table.component.ts +0 -2
- package/lib/template/simple-table-manual/helpers.ts +127 -11
- package/lib/template/simple-table-manual/simple-table-manual.component.html +27 -8
- package/lib/template/simple-table-manual/simple-table-manual.component.scss +16 -17
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +118 -58
- package/lib/template/simple-table-select/simple-table-select.component.ts +3 -4
- 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 +4 -4
- package/lib/template/three-column-page/three-column-page.component.ts +0 -1
- package/lib/template/two-column/two-column.component.ts +4 -4
- package/lib/template/two-column-page/two-column-page.component.ts +0 -1
- package/lib/template/two-column-tab/two-column-tab.component.ts +1 -2
- package/lib/template/utils.ts +58 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +4 -4
- package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +1 -2
- package/lib/template/wss-nav-bar/wss-nav-bar.component.html +5 -4
- package/lib/template/wss-nav-bar/wss-nav-bar.component.scss +2 -8
- package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +3 -11
- 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 +2 -5
- package/lib/widget/attachment/attachment.component.ts +256 -259
- 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 +9 -12
- package/lib/widget/file-utility/file-utility.component.html +3 -3
- package/lib/widget/file-utility/file-utility.component.scss +5 -16
- package/lib/widget/file-utility/file-utility.component.ts +2 -6
- package/lib/widget/list-utility/list-utility.component.scss +3 -5
- package/lib/widget/list-utility/list-utility.component.ts +0 -1
- package/lib/widget/quick-create/quick-create.component.ts +0 -1
- package/lib/widget/todo/todo.component.html +13 -11
- package/lib/widget/todo/todo.component.scss +19 -11
- package/lib/widget/todo/todo.component.ts +101 -87
- package/lib/widget/utility/utility.component.ts +0 -1
- package/package.json +1 -1
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.psdk-alert-error {
|
|
17
|
-
color: var(--
|
|
18
|
-
border: 1px solid var(--
|
|
17
|
+
color: var(--mat-sys-error);
|
|
18
|
+
border: 1px solid var(--mat-sys-error);
|
|
19
19
|
.mat-icon {
|
|
20
|
-
color: var(--
|
|
20
|
+
color: var(--mat-sys-error);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -6,7 +6,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
6
6
|
selector: 'app-alert-banner',
|
|
7
7
|
templateUrl: './alert-banner.component.html',
|
|
8
8
|
styleUrls: ['./alert-banner.component.scss'],
|
|
9
|
-
standalone: true,
|
|
10
9
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
11
10
|
})
|
|
12
11
|
export class AlertBannerComponent {
|
|
@@ -22,6 +21,6 @@ export class AlertBannerComponent {
|
|
|
22
21
|
onAlertClose(config) {
|
|
23
22
|
const { PAGE, type, target } = config;
|
|
24
23
|
const { clearMessages } = PCore.getMessageManager();
|
|
25
|
-
clearMessages({ category: PAGE, type, context: target }
|
|
24
|
+
clearMessages({ category: PAGE, type, context: target });
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -6,13 +6,20 @@
|
|
|
6
6
|
align-items: start;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.psdk-grid-filter-2 {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
12
|
+
column-gap: calc(2 * 0.5rem);
|
|
13
|
+
row-gap: calc(2 * 0.5rem);
|
|
14
|
+
align-items: start;
|
|
15
|
+
}
|
|
16
|
+
|
|
9
17
|
.psdk-grid-filter-wide-narrow {
|
|
10
18
|
display: grid;
|
|
11
19
|
grid-template-columns: 7fr 3fr;
|
|
12
20
|
column-gap: calc(2 * 0.5rem);
|
|
13
21
|
row-gap: calc(2 * 0.5rem);
|
|
14
22
|
align-items: start;
|
|
15
|
-
padding: 1rem;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
.psdk-grid-filter-narrow-wide {
|
|
@@ -21,6 +28,10 @@
|
|
|
21
28
|
column-gap: calc(2 * 0.5rem);
|
|
22
29
|
row-gap: calc(2 * 0.5rem);
|
|
23
30
|
align-items: start;
|
|
31
|
+
|
|
32
|
+
& > *:nth-child(2) {
|
|
33
|
+
min-width: 0;
|
|
34
|
+
}
|
|
24
35
|
}
|
|
25
36
|
|
|
26
37
|
.background-image-style {
|
|
@@ -33,7 +44,6 @@
|
|
|
33
44
|
|
|
34
45
|
.background-style {
|
|
35
46
|
background-color: transparent;
|
|
36
|
-
color: var(--app-inverse-form-color);
|
|
37
47
|
width: 100%;
|
|
38
48
|
height: 100%;
|
|
39
49
|
text-align: center;
|
|
@@ -7,7 +7,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
7
7
|
selector: 'app-banner',
|
|
8
8
|
templateUrl: './banner.component.html',
|
|
9
9
|
styleUrls: ['./banner.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
12
11
|
})
|
|
13
12
|
export class BannerComponent {
|
|
@@ -8,7 +8,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
8
8
|
selector: 'app-case-create-stage',
|
|
9
9
|
templateUrl: './case-create-stage.component.html',
|
|
10
10
|
styleUrls: ['./case-create-stage.component.scss'],
|
|
11
|
-
standalone: true,
|
|
12
11
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
13
12
|
})
|
|
14
13
|
export class CaseCreateStageComponent implements OnInit, OnDestroy {
|
|
@@ -53,6 +52,6 @@ export class CaseCreateStageComponent implements OnInit, OnDestroy {
|
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
updateSelf() {
|
|
56
|
-
this.arChildren$ = this.pConn$.getChildren()
|
|
55
|
+
this.arChildren$ = this.pConn$.getChildren();
|
|
57
56
|
}
|
|
58
57
|
}
|
|
@@ -7,7 +7,6 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
7
7
|
selector: 'app-field-group',
|
|
8
8
|
templateUrl: './field-group.component.html',
|
|
9
9
|
styleUrls: ['./field-group.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, MatGridListModule, MatIconModule]
|
|
12
11
|
})
|
|
13
12
|
export class FieldGroupComponent {
|
package/lib/designSystemExtension/material-case-summary/material-case-summary.component.html
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<dd class="psdk-csf-primary-field-data" [ngSwitch]="field.type.toLowerCase()">
|
|
15
15
|
<span *ngSwitchCase="'textinput'" class="psdk-csf-text-style">{{ field.config.value }}</span>
|
|
16
16
|
<span *ngSwitchCase="'status'" class="psdk-csf-status-style">{{ field.config.value }}</span>
|
|
17
|
-
<a *ngSwitchCase="'phone'" as="a" href="tel: {{ field.config.value }}">{{ field.config.value }}</a>
|
|
18
|
-
<a *ngSwitchCase="'email'" href="mailto: {{ field.config.value }}">{{ field.config.value }}</a>
|
|
17
|
+
<a *ngSwitchCase="'phone'" class="psdk-primary-color" as="a" href="tel: {{ field.config.value }}">{{ field.config.value }}</a>
|
|
18
|
+
<a *ngSwitchCase="'email'" class="psdk-primary-color" href="mailto: {{ field.config.value }}">{{ field.config.value }}</a>
|
|
19
19
|
<span *ngSwitchCase="'date'" class="psdk-csf-text-style">{{ field.config.value }}</span>
|
|
20
20
|
<label *ngSwitchCase="'caseoperator'">operator</label>
|
|
21
21
|
<span *ngSwitchDefault class="psdk-csf-text-style">{{ field.config.value }}</span>
|
|
@@ -35,7 +35,10 @@
|
|
|
35
35
|
else hasSecondaryValue
|
|
36
36
|
"
|
|
37
37
|
>
|
|
38
|
-
<component-mapper
|
|
38
|
+
<component-mapper
|
|
39
|
+
name="Operator"
|
|
40
|
+
[props]="{ pConn$: field?.kid, displayLabel: field?.displayLabel || field?.config.displayLabel }"
|
|
41
|
+
></component-mapper>
|
|
39
42
|
</div>
|
|
40
43
|
<ng-template #hasSecondaryValue>
|
|
41
44
|
<div class="psdk-csf-secondary-field">
|
package/lib/designSystemExtension/material-case-summary/material-case-summary.component.scss
CHANGED
|
@@ -18,38 +18,8 @@
|
|
|
18
18
|
margin-bottom: 0.75rem;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.psdk-case-summary-status-data {
|
|
22
|
-
display: block;
|
|
23
|
-
background-color: var(--app-primary-lightest-color);
|
|
24
|
-
color: var(--app-primary-color);
|
|
25
|
-
padding: 0rem 0.625rem;
|
|
26
|
-
display: inline;
|
|
27
|
-
font-size: 0.75rem;
|
|
28
|
-
font-weight: 700;
|
|
29
|
-
text-transform: uppercase;
|
|
30
|
-
line-height: 1.5rem;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.psdk-case-summary-primary .label {
|
|
34
|
-
font-weight: 600;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.psdk-case-summary-primary .data {
|
|
38
|
-
font-weight: 600;
|
|
39
|
-
font-size: 1.625rem;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.psdk-case-summary-secondary .label {
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
}
|
|
45
|
-
.psdk-case-summary-secondary .data {
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
// color: $app-primary-color;
|
|
48
|
-
padding-left: 1.25rem;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
21
|
.psdk-case-summary-fields {
|
|
52
|
-
padding: calc(2 * 0.5rem);
|
|
22
|
+
// padding: calc(2 * 0.5rem);
|
|
53
23
|
display: grid;
|
|
54
24
|
grid-row-gap: calc(2 * 0.5rem);
|
|
55
25
|
}
|
|
@@ -74,7 +44,6 @@
|
|
|
74
44
|
max-width: max-content;
|
|
75
45
|
font-size: 0.8125rem;
|
|
76
46
|
font-weight: 400;
|
|
77
|
-
color: var(--app-field-header-color);
|
|
78
47
|
}
|
|
79
48
|
|
|
80
49
|
.psdk-csf-primary-field-data {
|
|
@@ -90,6 +59,7 @@
|
|
|
90
59
|
grid-template-columns: 1fr;
|
|
91
60
|
grid-column-gap: calc(2 * 0.5rem);
|
|
92
61
|
grid-row-gap: calc(1 * 0.5rem);
|
|
62
|
+
margin: 0;
|
|
93
63
|
}
|
|
94
64
|
|
|
95
65
|
.psdk-csf-secondary-field {
|
|
@@ -105,7 +75,6 @@
|
|
|
105
75
|
max-width: max-content;
|
|
106
76
|
font-size: 0.8125rem;
|
|
107
77
|
font-weight: 400;
|
|
108
|
-
color: var(--app-field-header-color);
|
|
109
78
|
align-items: center;
|
|
110
79
|
display: flex;
|
|
111
80
|
}
|
|
@@ -123,9 +92,8 @@ span.psdk-csf-text-style {
|
|
|
123
92
|
}
|
|
124
93
|
|
|
125
94
|
span.psdk-csf-status-style {
|
|
126
|
-
background-color: var(--
|
|
95
|
+
background-color: var(--mat-sys-surface-container-highest);
|
|
127
96
|
border-radius: calc(0.25 * 0.5rem);
|
|
128
|
-
color: var(--app-details-status-color);
|
|
129
97
|
display: inline-block;
|
|
130
98
|
font-size: 0.75rem;
|
|
131
99
|
font-weight: bold;
|
|
@@ -138,3 +106,7 @@ span.psdk-csf-status-style {
|
|
|
138
106
|
.psdk-secondary-value {
|
|
139
107
|
font-size: 1rem;
|
|
140
108
|
}
|
|
109
|
+
|
|
110
|
+
.psdk-primary-color {
|
|
111
|
+
color: var(--mat-sys-primary);
|
|
112
|
+
}
|
|
@@ -7,7 +7,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
7
7
|
selector: 'app-material-case-summary',
|
|
8
8
|
templateUrl: './material-case-summary.component.html',
|
|
9
9
|
styleUrls: ['./material-case-summary.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
12
11
|
})
|
|
13
12
|
export class MaterialCaseSummaryComponent implements OnInit, OnChanges {
|
|
@@ -27,7 +26,6 @@ export class MaterialCaseSummaryComponent implements OnInit, OnChanges {
|
|
|
27
26
|
this.updateLabelAndDate(this.secondaryFields$);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
// eslint-disable-next-line sonarjs/no-identical-functions
|
|
31
29
|
ngOnChanges() {
|
|
32
30
|
this.updatePrimaryWithStatus();
|
|
33
31
|
this.updateLabelAndDate(this.primaryFieldsWithStatus$);
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.psdk-details-fields-label {
|
|
26
|
-
color: var(--app-label-color);
|
|
27
26
|
margin: 8px 0px;
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -43,9 +42,7 @@ span.psdk-details-text-style {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
span.psdk-details-status-style {
|
|
46
|
-
background-color: var(--app-details-status-background);
|
|
47
45
|
border-radius: calc(0.25 * 0.5rem);
|
|
48
|
-
color: var(--app-details-status-color);
|
|
49
46
|
display: inline-block;
|
|
50
47
|
font-size: 0.75rem;
|
|
51
48
|
font-weight: bold;
|
|
@@ -68,9 +65,7 @@ span.psdk-details-status-style {
|
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
span.psdk-details-status-style-hf {
|
|
71
|
-
background-color: var(--app-details-status-background);
|
|
72
68
|
border-radius: calc(0.25 * 0.5rem);
|
|
73
|
-
color: var(--app-details-status-color);
|
|
74
69
|
display: inline-block;
|
|
75
70
|
font-size: 1.25rem;
|
|
76
71
|
font-weight: 500;
|
|
@@ -7,7 +7,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
7
7
|
selector: 'app-material-details',
|
|
8
8
|
templateUrl: './material-details.component.html',
|
|
9
9
|
styleUrls: ['./material-details.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
12
11
|
})
|
|
13
12
|
export class MaterialDetailsComponent {
|
package/lib/designSystemExtension/material-details-fields/material-details-fields.component.html
CHANGED
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
</ng-template>
|
|
11
11
|
|
|
12
12
|
<ng-template #showDetails>
|
|
13
|
-
<div class="psdk-grid-filter" *ngIf="field.config.label">
|
|
13
|
+
<div class="psdk-grid-filter" *ngIf="field.config.label && getVisibility(field.config)">
|
|
14
14
|
<div class="psdk-details-fields-label">
|
|
15
15
|
{{ field.config.label }}
|
|
16
16
|
</div>
|
|
17
17
|
<div [ngSwitch]="field.type.toLowerCase()" class="psdk-csf-primary-field-value">
|
|
18
18
|
<span *ngSwitchCase="'textinput'" class="psdk-details-text-style">{{ _getValue(field.config.value) }}</span>
|
|
19
19
|
<span *ngSwitchCase="'status'" class="psdk-details-status-style">{{ _getValue(field.config.value) }}</span>
|
|
20
|
-
<a *ngSwitchCase="'phone'" as="a" href="tel: {{ field.config.value }}">{{ _getValue(field.config.value) }}</a>
|
|
21
|
-
<a *ngSwitchCase="'email'" href="mailto: {{ field.config.value }}">{{ _getValue(field.config.value) }}</a>
|
|
20
|
+
<a *ngSwitchCase="'phone'" class="psdk-primary-color" as="a" href="tel: {{ field.config.value }}">{{ _getValue(field.config.value) }}</a>
|
|
21
|
+
<a *ngSwitchCase="'email'" class="psdk-primary-color" href="mailto: {{ field.config.value }}">{{ _getValue(field.config.value) }}</a>
|
|
22
22
|
<span *ngSwitchCase="'date'" class="psdk-details-text-style">{{ _formatDate(field.config.value, field.type) }}</span>
|
|
23
23
|
<span *ngSwitchCase="'caseoperator'"></span>
|
|
24
|
-
<span *ngSwitchDefault>{{ _getValue(field.config.value) }}</span>
|
|
24
|
+
<span *ngSwitchDefault>{{ _getValue(field.config.value, field) }}</span>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
</ng-template>
|
package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.psdk-details-fields-label {
|
|
2
|
-
color: var(--app-label-color);
|
|
3
2
|
margin: 8px 0px;
|
|
4
3
|
}
|
|
5
4
|
|
|
@@ -8,9 +7,7 @@ span.psdk-details-text-style-hf {
|
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
span.psdk-details-status-style-hf {
|
|
11
|
-
background-color: var(--app-details-status-background);
|
|
12
10
|
border-radius: calc(0.25 * 0.5rem);
|
|
13
|
-
color: var(--app-details-status-color);
|
|
14
11
|
display: inline-block;
|
|
15
12
|
font-size: 0.75rem;
|
|
16
13
|
font-weight: bold;
|
|
@@ -31,3 +28,7 @@ span.psdk-details-status-style-hf {
|
|
|
31
28
|
.psdk-csf-primary-field-value {
|
|
32
29
|
margin: 8px 0;
|
|
33
30
|
}
|
|
31
|
+
|
|
32
|
+
.psdk-primary-color {
|
|
33
|
+
color: var(--mat-sys-primary);
|
|
34
|
+
}
|
package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
7
7
|
selector: 'app-material-details-fields',
|
|
8
8
|
templateUrl: './material-details-fields.component.html',
|
|
9
9
|
styleUrls: ['./material-details-fields.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
12
11
|
})
|
|
13
12
|
export class MaterialDetailsFieldsComponent {
|
|
@@ -16,7 +15,10 @@ export class MaterialDetailsFieldsComponent {
|
|
|
16
15
|
@Input() arFields$: any[];
|
|
17
16
|
@Input() arHighlightedFields: any[];
|
|
18
17
|
|
|
19
|
-
_getValue(configValue) {
|
|
18
|
+
_getValue(configValue, field: any = {}) {
|
|
19
|
+
if (field?.type === 'userreference') {
|
|
20
|
+
return configValue.userName;
|
|
21
|
+
}
|
|
20
22
|
if (configValue && configValue != '') {
|
|
21
23
|
return configValue;
|
|
22
24
|
}
|
|
@@ -26,4 +28,10 @@ export class MaterialDetailsFieldsComponent {
|
|
|
26
28
|
_formatDate(dateValue: string, dateFormat: string): string {
|
|
27
29
|
return this.utils.generateDate(dateValue, dateFormat);
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
getVisibility(config): boolean {
|
|
33
|
+
const { visibility = true } = config;
|
|
34
|
+
|
|
35
|
+
return this.utils.getBooleanValue(visibility);
|
|
36
|
+
}
|
|
29
37
|
}
|
package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.psdk-utility-divider {
|
|
7
|
-
border-bottom: 0.0625rem solid var(--
|
|
7
|
+
border-bottom: 0.0625rem solid var(--mat-sys-outline-variant);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.psdk-utility-view-all {
|
|
@@ -13,20 +13,6 @@
|
|
|
13
13
|
justify-content: center;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.psdk-utility-count {
|
|
17
|
-
background: var(--app-primary-light-color);
|
|
18
|
-
border-radius: calc(1.125 * 0.5rem);
|
|
19
|
-
color: var(--app-inverse-form-color);
|
|
20
|
-
display: inline-block;
|
|
21
|
-
font-size: 0.75rem;
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
text-align: center;
|
|
24
|
-
width: 1.125rem;
|
|
25
|
-
|
|
26
|
-
vertical-align: top;
|
|
27
|
-
margin: 0 0 0.313rem 1rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
16
|
.psdk-utility .header-text {
|
|
31
17
|
font-size: 1rem;
|
|
32
18
|
font-weight: bold;
|
|
@@ -43,7 +29,6 @@
|
|
|
43
29
|
width: 100%;
|
|
44
30
|
padding: 0.625rem 0rem;
|
|
45
31
|
text-align: left;
|
|
46
|
-
background-color: var(--app-form-color);
|
|
47
32
|
border-radius: 0.6125rem;
|
|
48
33
|
margin: 0.3125rem 0rem;
|
|
49
34
|
}
|
|
@@ -90,7 +75,6 @@
|
|
|
90
75
|
}
|
|
91
76
|
|
|
92
77
|
.psdk-utility-card-main-primary-url {
|
|
93
|
-
color: var(--app-primary-color);
|
|
94
78
|
}
|
|
95
79
|
|
|
96
80
|
.psdk-utility-card-main-primary-url .mat-mdc-button.mat-primary {
|
|
@@ -109,6 +93,7 @@
|
|
|
109
93
|
.psdk-utility-card-action-svg-icon {
|
|
110
94
|
width: 1.4rem;
|
|
111
95
|
display: inline-block;
|
|
96
|
+
filter: var(--app-primary-color-filter);
|
|
112
97
|
}
|
|
113
98
|
|
|
114
99
|
.psdk-utility-card-actions-svg-icon {
|
|
@@ -8,7 +8,6 @@ import { Utils } from '@pega/angular-sdk-components';
|
|
|
8
8
|
selector: 'app-material-summary-item',
|
|
9
9
|
templateUrl: './material-summary-item.component.html',
|
|
10
10
|
styleUrls: ['./material-summary-item.component.scss'],
|
|
11
|
-
standalone: true,
|
|
12
11
|
imports: [CommonModule, MatButtonModule, MatMenuModule]
|
|
13
12
|
})
|
|
14
13
|
export class MaterialSummaryItemComponent implements OnInit {
|
|
@@ -6,7 +6,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
6
6
|
selector: 'app-material-summary-list',
|
|
7
7
|
templateUrl: './material-summary-list.component.html',
|
|
8
8
|
styleUrls: ['./material-summary-list.component.scss'],
|
|
9
|
-
standalone: true,
|
|
10
9
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
11
10
|
})
|
|
12
11
|
export class MaterialSummaryListComponent {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.psdk-case-view-divider {
|
|
7
|
-
border-bottom: 0.0625rem solid var(--
|
|
7
|
+
border-bottom: 0.0625rem solid var(--mat-sys-outline-variant);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.psdk-utility .header-text {
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
height: 6.25rem;
|
|
25
25
|
padding: 0.625rem 0rem;
|
|
26
26
|
text-align: left;
|
|
27
|
-
background-color: var(--app-form-color);
|
|
28
27
|
border-radius: 0.6125rem;
|
|
29
28
|
margin: 0.3125rem 0rem;
|
|
30
29
|
}
|
package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.scss
CHANGED
|
@@ -9,7 +9,7 @@ mat-button-toggle-group ::ng-deep .mat-button-toggle-appearance-standard {
|
|
|
9
9
|
|
|
10
10
|
mat-button-toggle-group ::ng-deep .mat-button-toggle.mat-button-toggle-checked.mat-button-toggle-appearance-standard {
|
|
11
11
|
background-color: transparent;
|
|
12
|
-
border-right: 0.1875rem solid var(--
|
|
12
|
+
border-right: 0.1875rem solid var(--mat-sys-primary);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
mat-button-toggle-group ::ng-deep .mat-button-toggle.mat-focus-indicator.mat-button-toggle-appearance-standard {
|
package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
|
7
7
|
selector: 'app-material-vertical-tabs',
|
|
8
8
|
templateUrl: './material-vertical-tabs.component.html',
|
|
9
9
|
styleUrls: ['./material-vertical-tabs.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, MatButtonToggleModule, MatBadgeModule]
|
|
12
11
|
})
|
|
13
12
|
export class MaterialVerticalTabsComponent implements OnInit {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="psdk-operator psdk-double">
|
|
1
|
+
<div class="psdk-operator psdk-double" [ngClass]="{ 'flex-row': displayLabel }">
|
|
2
2
|
<div class="psdk-label">
|
|
3
3
|
{{ label$ }}
|
|
4
4
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div *ngIf="bShowPopover$" class="psdk-operator-popover">
|
|
13
13
|
<dl>
|
|
14
14
|
<div *ngFor="let field of fields$; let i = index">
|
|
15
|
-
<dt
|
|
15
|
+
<dt>{{ field.name }}</dt>
|
|
16
16
|
<dd class="psdk-operator-value">{{ field.value }}</dd>
|
|
17
17
|
</div>
|
|
18
18
|
</dl>
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
.psdk-operator {
|
|
2
2
|
display: flex;
|
|
3
|
-
flex-direction:
|
|
3
|
+
flex-direction: column;
|
|
4
4
|
font-size: 0.8rem;
|
|
5
|
-
|
|
5
|
+
padding-left: 0.625rem;
|
|
6
|
+
margin: 16px 0 8px 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.psdk-operator.flex-row {
|
|
10
|
+
flex-direction: row;
|
|
6
11
|
align-items: center;
|
|
12
|
+
text-align: center;
|
|
13
|
+
padding-left: 0;
|
|
14
|
+
margin: 0;
|
|
7
15
|
}
|
|
8
16
|
|
|
9
17
|
.psdk-operator-popover {
|
|
10
18
|
display: table;
|
|
11
19
|
margin: auto;
|
|
12
20
|
min-width: 100px;
|
|
13
|
-
background-color: var(--
|
|
14
|
-
border: 1px solid var(--
|
|
21
|
+
background-color: var(--mat-sys-surface);
|
|
22
|
+
border: 1px solid var(--mat-sys-outline-variant);
|
|
15
23
|
border-radius: 10px;
|
|
16
24
|
padding: 20px;
|
|
17
|
-
box-shadow: 0 0 10px 3px var(--
|
|
25
|
+
box-shadow: 0 0 10px 3px var(--mat-sys-level3);
|
|
18
26
|
position: absolute;
|
|
19
27
|
z-index: 99;
|
|
20
28
|
}
|
|
21
29
|
|
|
22
|
-
.psdk-operator-name {
|
|
23
|
-
color: var(--app-neutral-color);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
30
|
.psdk-operator-value {
|
|
27
31
|
padding-left: 5px;
|
|
28
|
-
color: var(--app-neutral-dark-color);
|
|
29
32
|
margin: 0px;
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -35,7 +38,6 @@
|
|
|
35
38
|
|
|
36
39
|
.psdk-double {
|
|
37
40
|
column-gap: 1rem;
|
|
38
|
-
text-align: center;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
.psdk-top-pad {
|
|
@@ -77,5 +79,4 @@ dd {
|
|
|
77
79
|
word-break: break-word;
|
|
78
80
|
grid-column-start: 1;
|
|
79
81
|
max-width: max-content;
|
|
80
|
-
color: var(--app-field-header-color);
|
|
81
82
|
}
|
|
@@ -7,16 +7,16 @@ import { Utils } from '@pega/angular-sdk-components';
|
|
|
7
7
|
selector: 'app-operator',
|
|
8
8
|
templateUrl: './operator.component.html',
|
|
9
9
|
styleUrls: ['./operator.component.scss'],
|
|
10
|
-
standalone: true,
|
|
11
10
|
imports: [CommonModule, MatButtonModule]
|
|
12
11
|
})
|
|
13
12
|
export class OperatorComponent implements OnInit, OnChanges, OnDestroy {
|
|
14
13
|
@Input() pConn$: typeof PConnect;
|
|
15
14
|
@Input() displayLabel;
|
|
15
|
+
@Input() name$?: string;
|
|
16
|
+
|
|
16
17
|
fields$: any[] = [];
|
|
17
18
|
bShowPopover$: boolean;
|
|
18
19
|
date$: string;
|
|
19
|
-
name$: string;
|
|
20
20
|
label$: string;
|
|
21
21
|
id$: string;
|
|
22
22
|
constructor(
|
|
@@ -40,12 +40,11 @@ export class OperatorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
40
40
|
|
|
41
41
|
ngOnChanges(changes: SimpleChanges): void {
|
|
42
42
|
const { pConn$ } = changes;
|
|
43
|
-
if (pConn$.previousValue !== pConn$.currentValue) {
|
|
43
|
+
if (pConn$ && pConn$.previousValue !== pConn$.currentValue) {
|
|
44
44
|
this.updateSelf();
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method
|
|
49
48
|
ngOnDestroy(): void {
|
|
50
49
|
// Ref: https://medium.com/@kamil.galek/mythical-angular-component-styles-cleanup-in-angular-17-f799a08b2abc
|
|
51
50
|
// Commenting the below line as it is causing the Operator component's styles not getting applied.
|
|
@@ -53,7 +52,7 @@ export class OperatorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
updateSelf(): void {
|
|
56
|
-
const configProps$ = this.pConn$.getConfigProps()
|
|
55
|
+
const configProps$ = this.pConn$.getConfigProps();
|
|
57
56
|
this.displayLabel = this.displayLabel?.toLowerCase();
|
|
58
57
|
const label = configProps$?.label?.toLowerCase();
|
|
59
58
|
if (label === 'create operator' || this.displayLabel === 'create operator') {
|
|
@@ -69,7 +68,7 @@ export class OperatorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
69
68
|
this.id$ = configProps$.resolveOperator.userId;
|
|
70
69
|
this.label$ = configProps$.resolveLabel;
|
|
71
70
|
} else {
|
|
72
|
-
this.name$ = configProps$?.value.userName;
|
|
71
|
+
this.name$ = this.name$ || configProps$?.value.userName;
|
|
73
72
|
this.id$ = configProps$?.value.userId;
|
|
74
73
|
this.label$ = configProps$.label;
|
|
75
74
|
}
|
|
@@ -10,15 +10,14 @@ interface PulseProps {
|
|
|
10
10
|
selector: 'app-pulse',
|
|
11
11
|
templateUrl: './pulse.component.html',
|
|
12
12
|
styleUrls: ['./pulse.component.scss'],
|
|
13
|
-
standalone: true,
|
|
14
13
|
imports: [forwardRef(() => ComponentMapperComponent)]
|
|
15
14
|
})
|
|
16
15
|
export class PulseComponent implements OnInit {
|
|
17
16
|
@Input() pConn$: typeof PConnect;
|
|
18
17
|
|
|
19
18
|
configProps$: PulseProps;
|
|
20
|
-
currentUser$: string;
|
|
21
|
-
currentUserInitials
|
|
19
|
+
currentUser$: string | undefined;
|
|
20
|
+
currentUserInitials$: string | undefined = '--';
|
|
22
21
|
|
|
23
22
|
ngOnInit() {
|
|
24
23
|
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
|
|
@@ -26,13 +25,13 @@ export class PulseComponent implements OnInit {
|
|
|
26
25
|
this.currentUser$ = PCore.getEnvironmentInfo().getOperatorName();
|
|
27
26
|
|
|
28
27
|
if (this.currentUser$ != '') {
|
|
29
|
-
this.currentUserInitials$ = this.currentUser
|
|
28
|
+
this.currentUserInitials$ = this.currentUser$?.charAt(0);
|
|
30
29
|
|
|
31
|
-
if (this.currentUser$.lastIndexOf(' ') > 0) {
|
|
32
|
-
const lastName = this.currentUser
|
|
30
|
+
if (this.currentUser$ && this.currentUser$.lastIndexOf(' ') > 0) {
|
|
31
|
+
const lastName = this.currentUser$?.substring(this.currentUser$.lastIndexOf(' ') + 1);
|
|
33
32
|
this.currentUserInitials$ += lastName.charAt(0);
|
|
34
|
-
} else if (this.currentUser$.lastIndexOf('.') > 0) {
|
|
35
|
-
const lastName = this.currentUser
|
|
33
|
+
} else if (this.currentUser$ && this.currentUser$.lastIndexOf('.') > 0) {
|
|
34
|
+
const lastName = this.currentUser$?.substring(this.currentUser$.lastIndexOf('.') + 1);
|
|
36
35
|
this.currentUserInitials$ += lastName.charAt(0);
|
|
37
36
|
}
|
|
38
37
|
}
|
|
@@ -9,7 +9,6 @@ declare let tinymce: any;
|
|
|
9
9
|
selector: 'app-rich-text-editor',
|
|
10
10
|
templateUrl: './rich-text-editor.component.html',
|
|
11
11
|
styleUrls: ['./rich-text-editor.component.scss'],
|
|
12
|
-
standalone: true,
|
|
13
12
|
imports: [CommonModule, EditorModule, ReactiveFormsModule],
|
|
14
13
|
providers: [{ provide: TINYMCE_SCRIPT_SRC, useValue: 'tinymce/tinymce.min.js' }]
|
|
15
14
|
})
|