@colijnit/relation 256.1.0 → 257.1.0

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 (42) hide show
  1. package/bundles/colijnit-relation.umd.js +236 -242
  2. package/bundles/colijnit-relation.umd.js.map +1 -1
  3. package/colijnit-relation.d.ts +7 -8
  4. package/colijnit-relation.metadata.json +1 -1
  5. package/esm2015/colijnit-relation.js +8 -9
  6. package/esm2015/lib/component/base/relation-base.component.js +2 -2
  7. package/esm2015/lib/component/relation/relation.component.js +146 -42
  8. package/esm2015/lib/component/relation-address/relation-address.component.js +3 -3
  9. package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +3 -3
  10. package/esm2015/lib/component/relation-addresses/relation-addresses.component.js +6 -7
  11. package/esm2015/lib/component/relation-contact-options/relation-contact-option.component.js +3 -1
  12. package/esm2015/lib/component/relation-contact-options/relation-contact-options.component.js +6 -2
  13. package/esm2015/lib/component/relation-contact-options/relation-contact-options.module.js +4 -3
  14. package/esm2015/lib/component/relation-preferences/relation-preferences.component.js +2 -2
  15. package/esm2015/lib/component/relation-title/relation-title.component.js +4 -3
  16. package/esm2015/lib/enum/icon.enum.js +2 -1
  17. package/esm2015/lib/model/icon-svg.js +2 -1
  18. package/esm2015/lib/relation-version.js +4 -4
  19. package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
  20. package/esm2015/lib/service/error.service.js +5 -5
  21. package/esm2015/lib/service/relation-base.service.js +1 -1
  22. package/esm2015/lib/service/relation-settings.service.js +5 -5
  23. package/fesm2015/colijnit-relation.js +273 -226
  24. package/fesm2015/colijnit-relation.js.map +1 -1
  25. package/lib/component/relation/relation.component.d.ts +14 -1
  26. package/lib/component/relation/style/_layout.scss +66 -2
  27. package/lib/component/relation/style/_material-definition.scss +2 -2
  28. package/lib/component/relation-address/relation-address.component.d.ts +2 -2
  29. package/lib/component/relation-address-tile/style/_layout.scss +34 -2
  30. package/lib/component/relation-address-tile/style/_material-definition.scss +1 -1
  31. package/lib/component/relation-addresses/style/_layout.scss +7 -0
  32. package/lib/component/relation-addresses/style/_material-definition.scss +1 -1
  33. package/lib/component/relation-contact-options/relation-contact-option.component.d.ts +1 -0
  34. package/lib/component/relation-contact-options/relation-contact-options.component.d.ts +2 -0
  35. package/lib/enum/icon.enum.d.ts +1 -0
  36. package/lib/res/dictionary/dictionaries.d.ts +68 -1
  37. package/lib/service/error.service.d.ts +2 -2
  38. package/lib/service/relation-settings.service.d.ts +2 -2
  39. package/lib/style/_variables.scss +1 -1
  40. package/package.json +5 -5
  41. package/esm2015/lib/service/dictionary.service.js +0 -68
  42. package/lib/service/dictionary.service.d.ts +0 -18
@@ -5,17 +5,30 @@ import { RelationSettingsService } from '../../service/relation-settings.service
5
5
  import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
6
6
  import { RelationService } from '../../service/relation.service';
7
7
  import { RelationConnectorService } from '../../service/relation-connector.service';
8
+ import { Title } from "@colijnit/mainapi/build/model/title.bo";
9
+ import { IconCacheService } from "../../service/icon-cache.service";
10
+ import { Icon } from "../../enum/icon.enum";
8
11
  export declare class RelationComponent implements OnInit, OnDestroy {
9
12
  protected relationEventService: RelationEventService;
10
13
  private _translationService;
11
14
  private _settingsService;
12
15
  private _relationConnectorService;
13
16
  private _relationService;
17
+ iconCacheService: IconCacheService;
18
+ readonly icons: typeof Icon;
14
19
  loadRelationFromLoginResponse: boolean;
20
+ forceReadOnly: boolean;
21
+ customerPortal: boolean;
15
22
  showClass(): boolean;
16
23
  relation: RelationAnyType;
24
+ relationTitle: string;
25
+ collection: Title[];
17
26
  private _subs;
18
- constructor(relationEventService: RelationEventService, _translationService: CoreComponentsTranslationService, _settingsService: RelationSettingsService, _relationConnectorService: RelationConnectorService, _relationService: RelationService);
27
+ constructor(relationEventService: RelationEventService, _translationService: CoreComponentsTranslationService, _settingsService: RelationSettingsService, _relationConnectorService: RelationConnectorService, _relationService: RelationService, iconCacheService: IconCacheService);
19
28
  ngOnInit(): void;
20
29
  ngOnDestroy(): void;
30
+ handleSaveClick(): Promise<void>;
31
+ getTitleCollection(): Promise<void>;
32
+ getTitleForRelation(relation: RelationAnyType): string;
33
+ getGenderLabel(gender: string): string;
21
34
  }
@@ -27,20 +27,84 @@
27
27
  flex-basis: 100%;
28
28
  }
29
29
  .co-relation-prefix-name {
30
- flex-basis: 20%;
30
+ flex-basis: 50%;
31
31
  }
32
32
  }
33
+ .relation-data-column {
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: 10px;
37
+ }
33
38
  .relation-data-field-default {
34
39
  flex-basis: 50%;
35
40
  }
36
41
  .relation-section-label {
37
- font-family: $re-co-relation-section-label-font-family;
38
42
  font-size: $re-co-relation-section-label-font-size;
39
43
  margin: $re-co-relation-section-label-margin;
40
44
  }
45
+ .relation-section-sub-label {
46
+ font-size: 14px;
47
+ font-weight: 500;
48
+ margin-top: 15px;
49
+ }
41
50
  .relation-account-data {
42
51
  display: flex;
43
52
  justify-content: space-between;
44
53
  }
54
+ .relation-account-data-wrapper {
55
+ &.non-editable {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: 15px;
59
+ min-width: 50%;
60
+ .relation-data-row {
61
+ gap: 30px;
62
+ .non-editable-column {
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 5px;
66
+ .label {
67
+ font-size: 12px;
68
+ color: #8083A3;
69
+ }
70
+ .value {
71
+ font-size: 14px;
72
+ color: #000;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ .save-editable-wrapper {
79
+ display: flex;
80
+ justify-content: center;
81
+ gap: 5px;
82
+ margin-top: 15px;
83
+ .save-button {
84
+ background-color: #F5F5FC;
85
+ .co-icon {
86
+ svg {
87
+ fill: #1a73e8;
88
+ }
89
+ }
90
+ }
91
+ .close-button {
92
+ background-color: #F5F5FC;
93
+ .co-icon {
94
+ svg {
95
+ fill: #898e9b;
96
+ }
97
+ }
98
+ .co-icon [fill] {
99
+ fill: #898e9b;
100
+ }
101
+ }
102
+ }
103
+ .switch-editable {
104
+ margin-top: 15px;
105
+ color: #1a73e8;
106
+ font-weight: 600;
107
+ cursor: pointer;
108
+ }
45
109
  }
46
110
  }
@@ -4,12 +4,12 @@ $re-co-relation-font-color: $re-color-font !default;
4
4
  $re-co-relation-section-background-color: $re-color-background !default;
5
5
  $re-co-relation-section-width: 800px !default;
6
6
  $re-co-relation-section-gap: 10px !default;
7
- $re-co-relation-section-padding: 20px !default;
7
+ $re-co-relation-section-padding: 0 !default;
8
8
  $re-co-relation-section-margin: 0 0 20px 0 !default;
9
9
 
10
10
  $re-co-relation-section-fields-margin: 0 0 5px 0 !default;
11
11
 
12
12
  $re-co-relation-section-label-font-family: $re-font-family !default;
13
13
  $re-co-relation-section-label-font-size: 20px !default;
14
- $re-co-relation-section-label-font-color: $re-color-action !default;
14
+ $re-co-relation-section-label-font-color: $re-color-font !default;
15
15
  $re-co-relation-section-label-margin: 10px 0 !default;
@@ -2,10 +2,10 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { RelationAddressCfgNames } from '../../interface/relation-address-cfg-names.interface';
3
3
  import { Address } from '@colijnit/relationapi/build/model/address.bo';
4
4
  import { Country } from '@colijnit/ioneconnector/build/model/country.bo';
5
- import { DictionaryService } from '../../service/dictionary.service';
6
5
  import { FormMasterService } from '@colijnit/corecomponents_v12';
7
6
  import { RelationService } from '../../service/relation.service';
8
7
  import { RelationConnectorService } from '../../service/relation-connector.service';
8
+ import { RelationDictionaryService } from '../../translation/relation-dictionary.service';
9
9
  export declare class RelationAddressComponent implements OnInit {
10
10
  private _dictionary;
11
11
  private _relationConnectorService;
@@ -23,7 +23,7 @@ export declare class RelationAddressComponent implements OnInit {
23
23
  private _prevPostalCodeForCheck;
24
24
  private _prevHouseNoForCheck;
25
25
  private _address;
26
- constructor(_dictionary: DictionaryService, _relationConnectorService: RelationConnectorService, _formMasterService: FormMasterService, relationService: RelationService);
26
+ constructor(_dictionary: RelationDictionaryService, _relationConnectorService: RelationConnectorService, _formMasterService: FormMasterService, relationService: RelationService);
27
27
  ngOnInit(): Promise<void>;
28
28
  checkForPostalCodeCheckError(): Promise<void>;
29
29
  changeHouseNo(): void;
@@ -33,13 +33,45 @@
33
33
  position: absolute;
34
34
  top: 0;
35
35
  right: 0;
36
- opacity: 0.5;
36
+ opacity: 0;
37
+ visibility: hidden;
38
+ transition: all .3s ease-in-out;
39
+ justify-content: center;
40
+ align-items: center;
41
+ display: flex;
42
+ width: 100%;
43
+ height: 100%;
44
+
37
45
  .relation-address-edit-icon {
38
46
  height: $re-co-relation-address-tile-edit-icon-width;
39
47
  width: $re-co-relation-address-tile-edit-icon-width;
48
+ padding: 9px;
49
+ background: #1A73E8;
50
+ border-radius: 5px;
51
+ cursor: pointer;
52
+ svg {
53
+ fill: #FFF;
54
+ }
40
55
  }
41
- &:hover {
56
+ }
57
+ &:hover {
58
+ .relation-address-edit {
42
59
  opacity: 1;
60
+ visibility: visible;
61
+ transition: all .3s ease-in-out;
62
+ }
63
+ }
64
+ .co-tile-select {
65
+ .co-tile-wrapper {
66
+ height: 90px;
67
+ min-height: 90px;
68
+ width: 200px;
69
+ border-width: 1px;
70
+ border-radius: 0;
71
+ padding: 10px 15px;
72
+ .co-tile-content-wrapper {
73
+ justify-content: flex-start;
74
+ }
43
75
  }
44
76
  }
45
77
  }
@@ -15,4 +15,4 @@ $re-co-relation-address-tile-selected-background-color: $re-color-background-sel
15
15
  $re-co-relation-address-tile-selected-border-color: #0084de !default;
16
16
  $re-co-relation-address-tile-edit-background-color: $re-color-border !default;
17
17
  $re-co-relation-address-tile-edit-icon-color: $re-color-action !default;
18
- $re-co-relation-address-tile-edit-icon-width: 30px !default;
18
+ $re-co-relation-address-tile-edit-icon-width: 36px !default;
@@ -11,6 +11,7 @@
11
11
  .relation-addresses-label {
12
12
  font-size: $re-co-relation-addresses-label-font-size;
13
13
  margin: $re-co-relation-addresses-label-margin;
14
+ font-weight: 500;
14
15
  }
15
16
  .relation-address-new {
16
17
  display: flex;
@@ -22,5 +23,11 @@
22
23
  width: $re-co-relation-addresses-new-address-icon-size;
23
24
  }
24
25
  }
26
+ .address-tile-wrapper {
27
+ display: flex;
28
+ align-items: center;
29
+ flex-wrap: wrap;
30
+ gap: 15px;
31
+ }
25
32
  }
26
33
  }
@@ -7,6 +7,6 @@ $re-co-relation-addresses-new-address-margin: 5px 0 !default;
7
7
  $re-co-relation-addresses-new-address-color: $re-color-action !default;
8
8
  $re-co-relation-addresses-new-address-icon-color: $re-color-action !default;
9
9
 
10
- $re-co-relation-addresses-label-font-size: $re-font-size !default;
10
+ $re-co-relation-addresses-label-font-size: 14px !default;
11
11
  $re-co-relation-addresses-label-color: $re-color-font !default;
12
12
  $re-co-relation-addresses-label-margin: 10px 0 !default;
@@ -15,6 +15,7 @@ export declare class RelationContactOptionComponent implements OnInit {
15
15
  set type(value: CommunicationType);
16
16
  shouldFocus: boolean;
17
17
  get type(): CommunicationType;
18
+ screenConfigurationObject: string;
18
19
  saveClick: EventEmitter<ContactOption>;
19
20
  deleteClick: EventEmitter<ContactOption>;
20
21
  showClass: boolean;
@@ -29,6 +29,8 @@ export declare class RelationContactOptionsComponent extends RelationScreenConfi
29
29
  newOtherType: CommunicationType;
30
30
  shouldFocus: boolean;
31
31
  showAddContact: boolean;
32
+ emailScreenConfigurationObject: string;
33
+ phoneScreenConfigurationObject: string;
32
34
  private _otherTypePopupComponentRef;
33
35
  constructor(relationService: RelationService, iconCacheService: IconCacheService, relationConnectorService: RelationConnectorService, relationEventService: RelationEventService, _overlayService: OverlayService, _changeDetector: ChangeDetectorRef);
34
36
  showNewOtherPopup(): void;
@@ -5,6 +5,7 @@ export declare enum Icon {
5
5
  Crossskinny = "crossskinny",
6
6
  Email = "email",
7
7
  Mobile = "mobile",
8
+ PencilRegular = "pencil_regular",
8
9
  PencilRoundOpen = "pencil_round_open",
9
10
  Phone = "phone",
10
11
  PlusSimple = "plus_simple",