@colijnit/relation 12.1.1

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 (188) hide show
  1. package/README.md +24 -0
  2. package/bundles/colijnit-relation.umd.js +4832 -0
  3. package/bundles/colijnit-relation.umd.js.map +1 -0
  4. package/colijnit-relation.d.ts +21 -0
  5. package/colijnit-relation.metadata.json +1 -0
  6. package/esm2015/colijnit-relation.js +22 -0
  7. package/esm2015/lib/component/base/relation-base.component.js +52 -0
  8. package/esm2015/lib/component/base/relation-loader.component.js +50 -0
  9. package/esm2015/lib/component/base/relation-screen-config-base.component.js +16 -0
  10. package/esm2015/lib/component/relation/relation.component.js +100 -0
  11. package/esm2015/lib/component/relation/relation.module.js +58 -0
  12. package/esm2015/lib/component/relation-address/relation-address.component.js +166 -0
  13. package/esm2015/lib/component/relation-address/relation-address.module.js +24 -0
  14. package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +72 -0
  15. package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +25 -0
  16. package/esm2015/lib/component/relation-addresses/relation-addresses.component.js +158 -0
  17. package/esm2015/lib/component/relation-addresses/relation-addresses.module.js +31 -0
  18. package/esm2015/lib/component/relation-avatar/relation-avatar.component.js +222 -0
  19. package/esm2015/lib/component/relation-avatar/relation-avatar.module.js +22 -0
  20. package/esm2015/lib/component/relation-contact-options/relation-contact-option-list.component.js +101 -0
  21. package/esm2015/lib/component/relation-contact-options/relation-contact-option.component.js +100 -0
  22. package/esm2015/lib/component/relation-contact-options/relation-contact-options-other-types-popup.component.js +44 -0
  23. package/esm2015/lib/component/relation-contact-options/relation-contact-options.component.js +154 -0
  24. package/esm2015/lib/component/relation-contact-options/relation-contact-options.module.js +34 -0
  25. package/esm2015/lib/component/relation-first-name/relation-first-name.component.js +25 -0
  26. package/esm2015/lib/component/relation-first-name/relation-first-name.module.js +24 -0
  27. package/esm2015/lib/component/relation-gender/relation-gender.component.js +45 -0
  28. package/esm2015/lib/component/relation-gender/relation-gender.module.js +23 -0
  29. package/esm2015/lib/component/relation-initials/relation-initials.component.js +24 -0
  30. package/esm2015/lib/component/relation-initials/relation-initials.module.js +24 -0
  31. package/esm2015/lib/component/relation-language/relation-language.component.js +56 -0
  32. package/esm2015/lib/component/relation-language/relation-language.module.js +24 -0
  33. package/esm2015/lib/component/relation-last-name/relation-last-name.component.js +23 -0
  34. package/esm2015/lib/component/relation-last-name/relation-last-name.module.js +24 -0
  35. package/esm2015/lib/component/relation-preferences/relation-preferences.component.js +69 -0
  36. package/esm2015/lib/component/relation-preferences/relation-preferences.module.js +23 -0
  37. package/esm2015/lib/component/relation-prefix-name/relation-prefix-name.component.js +24 -0
  38. package/esm2015/lib/component/relation-prefix-name/relation-prefix-name.module.js +24 -0
  39. package/esm2015/lib/component/relation-title/relation-title.component.js +56 -0
  40. package/esm2015/lib/component/relation-title/relation-title.module.js +24 -0
  41. package/esm2015/lib/enum/icon.enum.js +16 -0
  42. package/esm2015/lib/enum/language-code.enum.js +8 -0
  43. package/esm2015/lib/enum/relman-cfg-name.enum.js +862 -0
  44. package/esm2015/lib/enum/relman-contact-options-cfg-names.js +2 -0
  45. package/esm2015/lib/enum/relman-sub-category.enum.js +13 -0
  46. package/esm2015/lib/interface/relation-address-cfg-names.interface.js +2 -0
  47. package/esm2015/lib/model/icon-svg.js +15 -0
  48. package/esm2015/lib/model/relation-settings-options.js +7 -0
  49. package/esm2015/lib/model/relation-settings.js +9 -0
  50. package/esm2015/lib/relation-version.js +10 -0
  51. package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
  52. package/esm2015/lib/service/dictionary.service.js +68 -0
  53. package/esm2015/lib/service/error.service.js +75 -0
  54. package/esm2015/lib/service/icon-cache.service.js +51 -0
  55. package/esm2015/lib/service/relation-base.service.js +268 -0
  56. package/esm2015/lib/service/relation-connector-adapter.service.js +401 -0
  57. package/esm2015/lib/service/relation-connector.service.js +155 -0
  58. package/esm2015/lib/service/relation-event.service.js +16 -0
  59. package/esm2015/lib/service/relation-screen-configuration.service.js +51 -0
  60. package/esm2015/lib/service/relation-settings.service.js +65 -0
  61. package/esm2015/lib/service/relation.service.js +42 -0
  62. package/esm2015/lib/translation/relation-dictionary.service.js +77 -0
  63. package/esm2015/lib/translation/relation-localize.pipe.js +26 -0
  64. package/esm2015/lib/translation/relation-translation.module.js +29 -0
  65. package/esm2015/lib/translation/relation-translation.service.js +17 -0
  66. package/esm2015/public_api.js +33 -0
  67. package/fesm2015/colijnit-relation.js +3980 -0
  68. package/fesm2015/colijnit-relation.js.map +1 -0
  69. package/lib/component/base/relation-base.component.d.ts +24 -0
  70. package/lib/component/base/relation-loader.component.d.ts +12 -0
  71. package/lib/component/base/relation-screen-config-base.component.d.ts +14 -0
  72. package/lib/component/relation/relation.component.d.ts +21 -0
  73. package/lib/component/relation/relation.module.d.ts +2 -0
  74. package/lib/component/relation/style/_layout.scss +46 -0
  75. package/lib/component/relation/style/_material-definition.scss +15 -0
  76. package/lib/component/relation/style/_theme.scss +12 -0
  77. package/lib/component/relation/style/material.scss +4 -0
  78. package/lib/component/relation-address/relation-address.component.d.ts +35 -0
  79. package/lib/component/relation-address/relation-address.module.d.ts +2 -0
  80. package/lib/component/relation-address/style/_layout.scss +16 -0
  81. package/lib/component/relation-address/style/_material-definition.scss +5 -0
  82. package/lib/component/relation-address/style/_theme.scss +5 -0
  83. package/lib/component/relation-address/style/material.scss +4 -0
  84. package/lib/component/relation-address-tile/relation-address-tile.component.d.ts +19 -0
  85. package/lib/component/relation-address-tile/relation-address-tile.module.d.ts +2 -0
  86. package/lib/component/relation-address-tile/style/_layout.scss +46 -0
  87. package/lib/component/relation-address-tile/style/_material-definition.scss +18 -0
  88. package/lib/component/relation-address-tile/style/_theme.scss +19 -0
  89. package/lib/component/relation-address-tile/style/material.scss +4 -0
  90. package/lib/component/relation-addresses/relation-addresses.component.d.ts +31 -0
  91. package/lib/component/relation-addresses/relation-addresses.module.d.ts +2 -0
  92. package/lib/component/relation-addresses/style/_layout.scss +26 -0
  93. package/lib/component/relation-addresses/style/_material-definition.scss +12 -0
  94. package/lib/component/relation-addresses/style/_theme.scss +20 -0
  95. package/lib/component/relation-addresses/style/material.scss +4 -0
  96. package/lib/component/relation-avatar/relation-avatar.component.d.ts +47 -0
  97. package/lib/component/relation-avatar/relation-avatar.module.d.ts +2 -0
  98. package/lib/component/relation-avatar/style/_layout.scss +44 -0
  99. package/lib/component/relation-avatar/style/_material-definition.scss +4 -0
  100. package/lib/component/relation-avatar/style/_theme.scss +9 -0
  101. package/lib/component/relation-avatar/style/material.scss +4 -0
  102. package/lib/component/relation-contact-options/relation-contact-option-list.component.d.ts +22 -0
  103. package/lib/component/relation-contact-options/relation-contact-option.component.d.ts +30 -0
  104. package/lib/component/relation-contact-options/relation-contact-options-other-types-popup.component.d.ts +22 -0
  105. package/lib/component/relation-contact-options/relation-contact-options.component.d.ts +40 -0
  106. package/lib/component/relation-contact-options/relation-contact-options.module.d.ts +2 -0
  107. package/lib/component/relation-contact-options/style/_layout.scss +113 -0
  108. package/lib/component/relation-contact-options/style/_material-definition.scss +35 -0
  109. package/lib/component/relation-contact-options/style/_theme.scss +48 -0
  110. package/lib/component/relation-contact-options/style/material.scss +4 -0
  111. package/lib/component/relation-first-name/relation-first-name.component.d.ts +4 -0
  112. package/lib/component/relation-first-name/relation-first-name.module.d.ts +2 -0
  113. package/lib/component/relation-first-name/style/_layout.scss +9 -0
  114. package/lib/component/relation-first-name/style/_material-definition.scss +3 -0
  115. package/lib/component/relation-first-name/style/_theme.scss +5 -0
  116. package/lib/component/relation-first-name/style/material.scss +4 -0
  117. package/lib/component/relation-gender/relation-gender.component.d.ts +7 -0
  118. package/lib/component/relation-gender/relation-gender.module.d.ts +2 -0
  119. package/lib/component/relation-gender/style/_layout.scss +8 -0
  120. package/lib/component/relation-gender/style/_material-definition.scss +4 -0
  121. package/lib/component/relation-gender/style/_theme.scss +5 -0
  122. package/lib/component/relation-gender/style/material.scss +4 -0
  123. package/lib/component/relation-initials/relation-initials.component.d.ts +4 -0
  124. package/lib/component/relation-initials/relation-initials.module.d.ts +2 -0
  125. package/lib/component/relation-initials/style/_layout.scss +9 -0
  126. package/lib/component/relation-initials/style/_material-definition.scss +3 -0
  127. package/lib/component/relation-initials/style/_theme.scss +5 -0
  128. package/lib/component/relation-initials/style/material.scss +4 -0
  129. package/lib/component/relation-language/relation-language.component.d.ts +12 -0
  130. package/lib/component/relation-language/relation-language.module.d.ts +2 -0
  131. package/lib/component/relation-language/style/_layout.scss +9 -0
  132. package/lib/component/relation-language/style/_material-definition.scss +3 -0
  133. package/lib/component/relation-language/style/_theme.scss +5 -0
  134. package/lib/component/relation-language/style/material.scss +4 -0
  135. package/lib/component/relation-last-name/relation-last-name.component.d.ts +4 -0
  136. package/lib/component/relation-last-name/relation-last-name.module.d.ts +2 -0
  137. package/lib/component/relation-last-name/style/_layout.scss +9 -0
  138. package/lib/component/relation-last-name/style/_material-definition.scss +3 -0
  139. package/lib/component/relation-last-name/style/_theme.scss +5 -0
  140. package/lib/component/relation-last-name/style/material.scss +4 -0
  141. package/lib/component/relation-preferences/relation-preferences.component.d.ts +13 -0
  142. package/lib/component/relation-preferences/relation-preferences.module.d.ts +2 -0
  143. package/lib/component/relation-preferences/style/_layout.scss +16 -0
  144. package/lib/component/relation-preferences/style/_material-definition.scss +8 -0
  145. package/lib/component/relation-preferences/style/_theme.scss +5 -0
  146. package/lib/component/relation-preferences/style/material.scss +4 -0
  147. package/lib/component/relation-prefix-name/relation-prefix-name.component.d.ts +4 -0
  148. package/lib/component/relation-prefix-name/relation-prefix-name.module.d.ts +2 -0
  149. package/lib/component/relation-prefix-name/style/_layout.scss +9 -0
  150. package/lib/component/relation-prefix-name/style/_material-definition.scss +3 -0
  151. package/lib/component/relation-prefix-name/style/_theme.scss +5 -0
  152. package/lib/component/relation-prefix-name/style/material.scss +4 -0
  153. package/lib/component/relation-title/relation-title.component.d.ts +13 -0
  154. package/lib/component/relation-title/relation-title.module.d.ts +2 -0
  155. package/lib/component/relation-title/style/_layout.scss +9 -0
  156. package/lib/component/relation-title/style/_material-definition.scss +3 -0
  157. package/lib/component/relation-title/style/_theme.scss +5 -0
  158. package/lib/component/relation-title/style/material.scss +4 -0
  159. package/lib/enum/icon.enum.d.ts +14 -0
  160. package/lib/enum/language-code.enum.d.ts +6 -0
  161. package/lib/enum/relman-cfg-name.enum.d.ts +857 -0
  162. package/lib/enum/relman-contact-options-cfg-names.d.ts +6 -0
  163. package/lib/enum/relman-sub-category.enum.d.ts +10 -0
  164. package/lib/interface/relation-address-cfg-names.interface.d.ts +8 -0
  165. package/lib/model/icon-svg.d.ts +4 -0
  166. package/lib/model/relation-settings-options.d.ts +4 -0
  167. package/lib/model/relation-settings.d.ts +5 -0
  168. package/lib/relation-version.d.ts +6 -0
  169. package/lib/res/dictionary/dictionaries.d.ts +17184 -0
  170. package/lib/service/dictionary.service.d.ts +18 -0
  171. package/lib/service/error.service.d.ts +11 -0
  172. package/lib/service/icon-cache.service.d.ts +18 -0
  173. package/lib/service/relation-base.service.d.ts +64 -0
  174. package/lib/service/relation-connector-adapter.service.d.ts +66 -0
  175. package/lib/service/relation-connector.service.d.ts +51 -0
  176. package/lib/service/relation-event.service.d.ts +6 -0
  177. package/lib/service/relation-screen-configuration.service.d.ts +13 -0
  178. package/lib/service/relation-settings.service.d.ts +16 -0
  179. package/lib/service/relation.service.d.ts +10 -0
  180. package/lib/style/_mixin.scss +15 -0
  181. package/lib/style/_variables.scss +15 -0
  182. package/lib/style/relation-globals.scss +7 -0
  183. package/lib/translation/relation-dictionary.service.d.ts +19 -0
  184. package/lib/translation/relation-localize.pipe.d.ts +7 -0
  185. package/lib/translation/relation-translation.module.d.ts +4 -0
  186. package/lib/translation/relation-translation.service.d.ts +6 -0
  187. package/package.json +30 -0
  188. package/public_api.d.ts +32 -0
@@ -0,0 +1,24 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { RelationService } from '../../service/relation.service';
3
+ import { RelationConnectorService } from '../../service/relation-connector.service';
4
+ import { Subscription } from 'rxjs';
5
+ import { RelationEventService } from '../../service/relation-event.service';
6
+ import { IconCacheService } from '../../service/icon-cache.service';
7
+ import { Icon } from '../../enum/icon.enum';
8
+ import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
9
+ export declare abstract class RelationBaseComponent implements OnInit, OnDestroy {
10
+ relationService: RelationService;
11
+ iconCacheService: IconCacheService;
12
+ protected relationConnectorService: RelationConnectorService;
13
+ protected relationEventService: RelationEventService;
14
+ readonly icons: typeof Icon;
15
+ set relation(value: RelationAnyType);
16
+ get relation(): RelationAnyType;
17
+ relationChange: EventEmitter<RelationAnyType>;
18
+ protected subs: Subscription[];
19
+ private _relation;
20
+ constructor(relationService: RelationService, iconCacheService: IconCacheService, relationConnectorService: RelationConnectorService, relationEventService: RelationEventService);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ protected relationSet(): void;
24
+ }
@@ -0,0 +1,12 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { RelationEventService } from '../../service/relation-event.service';
3
+ export declare class RelationLoaderComponent implements OnInit, OnDestroy {
4
+ private _relationEventService;
5
+ showLoader: boolean;
6
+ private _loaderSub;
7
+ private _showLoaderTimeout;
8
+ constructor(_relationEventService: RelationEventService);
9
+ ngOnInit(): void;
10
+ ngOnDestroy(): void;
11
+ _setShowLoader(show: boolean): void;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { ScreenConfigAdapterComponent } from '@colijnit/corecomponents_v12';
2
+ import { RelationBaseComponent } from './relation-base.component';
3
+ import { RelmanCfgName } from '../../enum/relman-cfg-name.enum';
4
+ export declare abstract class RelationScreenConfigBaseComponent extends RelationBaseComponent implements ScreenConfigAdapterComponent {
5
+ readonly cfgName: typeof RelmanCfgName;
6
+ decimals: number;
7
+ forceReadonly: boolean;
8
+ hidden: boolean;
9
+ maxLength: number;
10
+ objectConfigName: string;
11
+ readonly: boolean;
12
+ redErrorBackground: boolean;
13
+ required: boolean;
14
+ }
@@ -0,0 +1,21 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { CoreComponentsTranslationService } from '@colijnit/corecomponents_v12';
3
+ import { RelationEventService } from '../../service/relation-event.service';
4
+ import { RelationSettingsService } from '../../service/relation-settings.service';
5
+ import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
6
+ import { RelationService } from '../../service/relation.service';
7
+ import { RelationConnectorService } from '../../service/relation-connector.service';
8
+ export declare class RelationComponent implements OnInit, OnDestroy {
9
+ protected relationEventService: RelationEventService;
10
+ private _translationService;
11
+ private _settingsService;
12
+ private _relationConnectorService;
13
+ private _relationService;
14
+ loadRelationFromLoginResponse: boolean;
15
+ showClass(): boolean;
16
+ relation: RelationAnyType;
17
+ private _subs;
18
+ constructor(relationEventService: RelationEventService, _translationService: CoreComponentsTranslationService, _settingsService: RelationSettingsService, _relationConnectorService: RelationConnectorService, _relationService: RelationService);
19
+ ngOnInit(): void;
20
+ ngOnDestroy(): void;
21
+ }
@@ -0,0 +1,2 @@
1
+ export declare class RelationModule {
2
+ }
@@ -0,0 +1,46 @@
1
+ @include export-module('co-relation-layout') {
2
+ .co-relation {
3
+ display: block;
4
+ font-family: $re-co-relation-font-family;
5
+ font-size: $re-co-relation-font-size;
6
+ .loader-wrapper {
7
+ position: fixed;
8
+ z-index: 999;
9
+ width: 100%;
10
+ height: 100%;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ }
15
+ .relation-section {
16
+ display: flex;
17
+ flex-direction: column;
18
+ padding: $re-co-relation-section-padding;
19
+ margin: $re-co-relation-section-margin;
20
+ width: $re-co-relation-section-width;
21
+ }
22
+ .relation-data-row {
23
+ display: flex;
24
+ gap: $re-co-relation-section-gap;
25
+ margin: $re-co-relation-section-fields-margin;
26
+ > * {
27
+ flex-basis: 100%;
28
+ }
29
+ .co-relation-prefix-name {
30
+ flex-basis: 20%;
31
+ }
32
+ }
33
+ .relation-data-field-default {
34
+ flex-basis: 50%;
35
+ }
36
+ .relation-section-label {
37
+ font-family: $re-co-relation-section-label-font-family;
38
+ font-size: $re-co-relation-section-label-font-size;
39
+ margin: $re-co-relation-section-label-margin;
40
+ }
41
+ .relation-account-data {
42
+ display: flex;
43
+ justify-content: space-between;
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,15 @@
1
+ $re-co-relation-font-family: $re-font-family !default;
2
+ $re-co-relation-font-size: $re-font-size !default;
3
+ $re-co-relation-font-color: $re-color-font !default;
4
+ $re-co-relation-section-background-color: $re-color-background !default;
5
+ $re-co-relation-section-width: 800px !default;
6
+ $re-co-relation-section-gap: 10px !default;
7
+ $re-co-relation-section-padding: 20px !default;
8
+ $re-co-relation-section-margin: 0 0 20px 0 !default;
9
+
10
+ $re-co-relation-section-fields-margin: 0 0 5px 0 !default;
11
+
12
+ $re-co-relation-section-label-font-family: $re-font-family !default;
13
+ $re-co-relation-section-label-font-size: 20px !default;
14
+ $re-co-relation-section-label-font-color: $re-color-action !default;
15
+ $re-co-relation-section-label-margin: 10px 0 !default;
@@ -0,0 +1,12 @@
1
+ @include export-module('co-relation-theme') {
2
+ .co-relation {
3
+ color: $re-co-relation-font-color;
4
+
5
+ .relation-section {
6
+ background-color: $re-co-relation-section-background-color;
7
+ }
8
+ .relation-section-label {
9
+ color: $re-co-relation-section-label-font-color;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { RelationAddressCfgNames } from '../../interface/relation-address-cfg-names.interface';
3
+ import { Address } from '@colijnit/relationapi/build/model/address.bo';
4
+ import { Country } from '@colijnit/ioneconnector/build/model/country.bo';
5
+ import { DictionaryService } from '../../service/dictionary.service';
6
+ import { FormMasterService } from '@colijnit/corecomponents_v12';
7
+ import { RelationService } from '../../service/relation.service';
8
+ import { RelationConnectorService } from '../../service/relation-connector.service';
9
+ export declare class RelationAddressComponent implements OnInit {
10
+ private _dictionary;
11
+ private _relationConnectorService;
12
+ private _formMasterService;
13
+ protected relationService: RelationService;
14
+ configNames: RelationAddressCfgNames;
15
+ set address(value: Address);
16
+ get address(): Address;
17
+ addressChange: EventEmitter<Address>;
18
+ showClass(): boolean;
19
+ countries: Country[];
20
+ fields: Object;
21
+ countryModel: Country;
22
+ postalCodeCheckErrorMessage: string;
23
+ private _prevPostalCodeForCheck;
24
+ private _prevHouseNoForCheck;
25
+ private _address;
26
+ constructor(_dictionary: DictionaryService, _relationConnectorService: RelationConnectorService, _formMasterService: FormMasterService, relationService: RelationService);
27
+ ngOnInit(): Promise<void>;
28
+ checkForPostalCodeCheckError(): Promise<void>;
29
+ changeHouseNo(): void;
30
+ handleCountryChange(country: Country): void;
31
+ handlePostalCodeChange(): void;
32
+ handleStreetChange(): void;
33
+ handleCityChange(): void;
34
+ private _setSelectedAddress;
35
+ }
@@ -0,0 +1,2 @@
1
+ export declare class RelationAddressModule {
2
+ }
@@ -0,0 +1,16 @@
1
+ @include export-module('co-relation-address-layout') {
2
+ .co-relation-address {
3
+ display: flex;
4
+ flex-direction: column;
5
+ font-family: $re-co-relation-address-font-family;
6
+ font-size: $re-co-relation-address-font-size;
7
+ gap: $re-co-relation-address-row-gap;
8
+ .relation-address-data-row {
9
+ display: flex;
10
+ > * {
11
+ flex-basis: 100%;
12
+ }
13
+ gap: $re-co-relation-address-column-gap;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ $re-co-relation-address-font-family: $re-font-family !default;
2
+ $re-co-relation-address-font-size: $re-font-size !default;
3
+ $re-co-relation-address-font-color: $re-color-font !default;
4
+ $re-co-relation-address-row-gap: 20px !default;
5
+ $re-co-relation-address-column-gap: 10px !default;
@@ -0,0 +1,5 @@
1
+ @include export-module('co-relation-address-theme') {
2
+ .co-relation-address {
3
+ color: $re-co-relation-address-font-color;
4
+ }
5
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Address } from '@colijnit/relationapi/build/model/address.bo';
3
+ import { Icon } from '../../enum/icon.enum';
4
+ import { IconCacheService } from '../../service/icon-cache.service';
5
+ export declare class RelationAddressTileComponent {
6
+ iconCacheService: IconCacheService;
7
+ readonly icons: typeof Icon;
8
+ showClass: boolean;
9
+ address: Address;
10
+ readonly: boolean;
11
+ selected: boolean;
12
+ actAsAddTile: boolean;
13
+ selectedChange: EventEmitter<Address>;
14
+ addAddressClicked: EventEmitter<void>;
15
+ editAddressClicked: EventEmitter<Address>;
16
+ constructor(iconCacheService: IconCacheService);
17
+ handleEditAddressClick(event: MouseEvent): void;
18
+ handleSelectedChange(address: Address): void;
19
+ }
@@ -0,0 +1,2 @@
1
+ export declare class RelationAddressTileModule {
2
+ }
@@ -0,0 +1,46 @@
1
+ @include export-module('co-relation-address-tile-layout') {
2
+ .co-relation-address-tile {
3
+ display: flex;
4
+ position: relative;
5
+ .co-tile {
6
+ .co-tile-wrapper {
7
+ width: $re-co-relation-address-tile-width;
8
+ height: $re-co-relation-address-tile-height;
9
+ }
10
+ }
11
+ .relation-content-wrapper {
12
+ display: flex;
13
+ flex-direction: column;
14
+ row-gap: $re-co-relation-address-tile-row-gap;
15
+ }
16
+ .relation-address-type {
17
+ font-weight: bold;
18
+ }
19
+ .relation-address-create, .relation-address-change {
20
+ display: flex;
21
+ flex-direction: row;
22
+ align-items: center;
23
+ font-weight: bold;
24
+ .relation-address-icon {
25
+ height: $re-co-relation-address-tile-icon-width;
26
+ width: $re-co-relation-address-tile-icon-width;
27
+ }
28
+ }
29
+ .relation-address-create {
30
+ justify-content: center;
31
+ }
32
+ .relation-address-edit {
33
+ position: absolute;
34
+ top: 0;
35
+ right: 0;
36
+ opacity: 0.5;
37
+ .relation-address-edit-icon {
38
+ height: $re-co-relation-address-tile-edit-icon-width;
39
+ width: $re-co-relation-address-tile-edit-icon-width;
40
+ }
41
+ &:hover {
42
+ opacity: 1;
43
+ }
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,18 @@
1
+ $re-co-relation-address-tile-font-family: $re-font-family !default;
2
+ $re-co-relation-address-tile-font-size: $re-font-size !default;
3
+ $re-co-relation-address-tile-width: 200px !default;
4
+ $re-co-relation-address-tile-height: 120px !default;
5
+ $re-co-relation-address-tile-row-gap: 3px;
6
+ $re-co-relation-address-tile-padding: 10px !default;
7
+ $re-co-relation-address-tile-border-radius: 5px !default;
8
+ $re-co-relation-address-tile-min-width: 200px !default;
9
+ $re-co-relation-address-tile-min-height: 100px !default;
10
+ $re-co-relation-address-tile-icon-width: 20px !default;
11
+ $re-co-relation-address-tile-background-color: white !default;
12
+ $re-co-relation-address-tile-border: 2px solid !default;
13
+ $re-co-relation-address-tile-border-color: $re-color-border !default;
14
+ $re-co-relation-address-tile-selected-background-color: $re-color-background-selected !default;
15
+ $re-co-relation-address-tile-selected-border-color: #0084de !default;
16
+ $re-co-relation-address-tile-edit-background-color: $re-color-border !default;
17
+ $re-co-relation-address-tile-edit-icon-color: $re-color-action !default;
18
+ $re-co-relation-address-tile-edit-icon-width: 30px !default;
@@ -0,0 +1,19 @@
1
+ @include export-module('co-relation-address-tile-theme') {
2
+ .co-relation-address-tile {
3
+ .relation-address-create, .relation-address-change {
4
+ .relation-address-icon {
5
+ [fill] {
6
+ fill: $re-co-relation-address-tile-selected-border-color;
7
+ }
8
+ }
9
+ color: $re-co-relation-address-tile-selected-border-color;
10
+ }
11
+ .relation-address-edit {
12
+ .relation-address-edit-icon {
13
+ [fill] {
14
+ fill: $re-co-relation-address-tile-edit-icon-color;
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,31 @@
1
+ import { Address } from '@colijnit/relationapi/build/model/address.bo';
2
+ import { AddressType } from '@colijnit/relationapi/build/enum/address-type.enum';
3
+ import { RelationScreenConfigBaseComponent } from '../base/relation-screen-config-base.component';
4
+ import { FormMasterService } from '@colijnit/corecomponents_v12';
5
+ import { RelationService } from '../../service/relation.service';
6
+ import { IconCacheService } from '../../service/icon-cache.service';
7
+ import { RelationConnectorService } from '../../service/relation-connector.service';
8
+ import { RelationEventService } from '../../service/relation-event.service';
9
+ export declare class RelationAddressesComponent extends RelationScreenConfigBaseComponent {
10
+ relationService: RelationService;
11
+ iconCacheService: IconCacheService;
12
+ protected relationConnectorService: RelationConnectorService;
13
+ protected relationEventService: RelationEventService;
14
+ private _formMasterService;
15
+ readonly addressType: typeof AddressType;
16
+ showClass(): boolean;
17
+ deliveryAddresses: Address[];
18
+ invoiceAddresses: Address[];
19
+ addressToEdit: Address;
20
+ selectedNawNr: number;
21
+ showEditAddressDialog: boolean;
22
+ private _boFactory;
23
+ constructor(relationService: RelationService, iconCacheService: IconCacheService, relationConnectorService: RelationConnectorService, relationEventService: RelationEventService, _formMasterService: FormMasterService);
24
+ submitForm(): void;
25
+ saveAddress(address: Address): Promise<void>;
26
+ changeAddress(address: Address): void;
27
+ showNewAddressDialog(type: AddressType): void;
28
+ editAddress(addr: Address): void;
29
+ protected relationSet(): void;
30
+ private _setAddresses;
31
+ }
@@ -0,0 +1,2 @@
1
+ export declare class RelationAddressesModule {
2
+ }
@@ -0,0 +1,26 @@
1
+ @include export-module('co-relation-addresses-layout') {
2
+ .co-relation-addresses {
3
+ font-family: $re-co-relation-addresses-font-family;
4
+ font-size: $re-co-relation-addresses-font-size;
5
+
6
+ .co-dialog:not(.is-mobile) .co-dialog-wrapper {
7
+ //height: $tp-dialog-catalog-min-height;
8
+ width: $re-co-relation-addresses-dialog-min-width;
9
+ max-width: 100vw;
10
+ }
11
+ .relation-addresses-label {
12
+ font-size: $re-co-relation-addresses-label-font-size;
13
+ margin: $re-co-relation-addresses-label-margin;
14
+ }
15
+ .relation-address-new {
16
+ display: flex;
17
+ align-items: center;
18
+ cursor: pointer;
19
+ margin: $re-co-relation-addresses-new-address-margin;
20
+ .co-icon {
21
+ height: $re-co-relation-addresses-new-address-icon-size;
22
+ width: $re-co-relation-addresses-new-address-icon-size;
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,12 @@
1
+ $re-co-relation-addresses-font-family: $re-font-family !default;
2
+ $re-co-relation-addresses-font-size: $re-font-size !default;
3
+ $re-co-relation-addresses-font-color: $re-color-font !default;
4
+ $re-co-relation-addresses-dialog-min-width: 400px !default;
5
+ $re-co-relation-addresses-new-address-icon-size: 15px !default;
6
+ $re-co-relation-addresses-new-address-margin: 5px 0 !default;
7
+ $re-co-relation-addresses-new-address-color: $re-color-action !default;
8
+ $re-co-relation-addresses-new-address-icon-color: $re-color-action !default;
9
+
10
+ $re-co-relation-addresses-label-font-size: $re-font-size !default;
11
+ $re-co-relation-addresses-label-color: $re-color-font !default;
12
+ $re-co-relation-addresses-label-margin: 10px 0 !default;
@@ -0,0 +1,20 @@
1
+ @include export-module('co-relation-addresses-theme') {
2
+ .co-relation-addresses {
3
+ color: $re-co-relation-addresses-font-color;
4
+
5
+ .relation-address-label {
6
+ color: $re-co-relation-addresses-label-color;
7
+ }
8
+ .relation-address-new {
9
+ color: $re-co-relation-addresses-new-address-color;
10
+ .co-icon {
11
+ svg {
12
+ fill: $re-co-relation-addresses-new-address-icon-color;
13
+ }
14
+ [fill] {
15
+ fill: $re-co-relation-addresses-new-address-icon-color;
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,47 @@
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
3
+ import { RelationConnectorService } from '../../service/relation-connector.service';
4
+ import { ColorSequenceService, CoreDialogService } from '@colijnit/corecomponents_v12';
5
+ import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
6
+ import { IconCacheService } from '../../service/icon-cache.service';
7
+ import { Icon } from '../../enum/icon.enum';
8
+ export declare class RelationAvatarComponent implements OnInit, OnDestroy {
9
+ iconCacheService: IconCacheService;
10
+ private _relationConnectorService;
11
+ private _colorSequenceService;
12
+ private _changeDetector;
13
+ private _dialogService;
14
+ readonly icons: typeof Icon;
15
+ input: ElementRef;
16
+ set image(value: CoDocument);
17
+ get image(): CoDocument;
18
+ set relationId(value: number);
19
+ get relationId(): number;
20
+ set relation(value: RelationAnyType);
21
+ get relation(): RelationAnyType;
22
+ canChangeAvatar: boolean;
23
+ maxUploadSizeInMb: number;
24
+ maxAvatarSize: number;
25
+ showClass(): boolean;
26
+ imageSrc: string;
27
+ backgroundColor: string;
28
+ onClick(): void;
29
+ set initials(value: string);
30
+ get initials(): string;
31
+ private _initials;
32
+ private _relationId;
33
+ private _relation;
34
+ private _image;
35
+ constructor(iconCacheService: IconCacheService, _relationConnectorService: RelationConnectorService, _colorSequenceService: ColorSequenceService, _changeDetector: ChangeDetectorRef, _dialogService: CoreDialogService);
36
+ ngOnInit(): void;
37
+ ngOnDestroy(): void;
38
+ uploadTheAvatar(): void;
39
+ onFileChangeEvent(event: any): void;
40
+ private _setFileAsAvatarToCurrentRelation;
41
+ private setDocProperties;
42
+ private _setImageForAvatar;
43
+ private _setImageFromRelation;
44
+ private _setRelationInitials;
45
+ private _getImageContent;
46
+ private _setBackgroundColor;
47
+ }
@@ -0,0 +1,2 @@
1
+ export declare class RelationAvatarModule {
2
+ }
@@ -0,0 +1,44 @@
1
+ @include export-module('co-relation-avatar-layout') {
2
+ .co-relation-avatar {
3
+ font-family: $re-co-relation-avatar-font-family;
4
+ position: relative;
5
+ display: block;
6
+ border-radius: 50%;
7
+ height: $re-co-relation-avatar-size;
8
+ width: auto;
9
+ aspect-ratio: 1;
10
+ vertical-align: middle;
11
+ text-align: center;
12
+ overflow: hidden;
13
+ flex-shrink: 0;
14
+ input {
15
+ display: none;
16
+ }
17
+ .co-image img {
18
+ height: 100%;
19
+ width: auto;
20
+ background-size: cover;
21
+ }
22
+ .relation-avatar-pencil-wrapper {
23
+ position: absolute;
24
+ z-index: 1;
25
+ transform: translate(-50%, -50%);
26
+ top: 50%;
27
+ left: 50%;
28
+ border-radius: 50%;
29
+ opacity: 0;
30
+ transition: all .2s ease-in-out;
31
+ height: $re-co-relation-avatar-edit-pencil-size;
32
+ width: auto;
33
+ aspect-ratio: 1;
34
+ .pencil-icon {
35
+ cursor: pointer;
36
+ height: 100%;
37
+ width: 100%;
38
+ }
39
+ &:hover {
40
+ opacity: 1;
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,4 @@
1
+ $re-co-relation-avatar-font-family: $re-font-family !default;
2
+ $re-co-relation-avatar-size: 80px !default;
3
+ $re-co-relation-avatar-edit-pencil-size: 60% !default;
4
+ $re-co-relation-avatar-edit-pencil-hover-color: rgba(black, 0.5) !default;
@@ -0,0 +1,9 @@
1
+ @include export-module('co-relation-avatar-theme') {
2
+ .co-relation-avatar {
3
+ .relation-avatar-pencil-wrapper {
4
+ &:hover {
5
+ background-color: $re-co-relation-avatar-edit-pencil-hover-color;
6
+ }
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
@@ -0,0 +1,22 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ContactOption } from '@colijnit/relationapi/build/model/contact-option.bo';
3
+ import { CommunicationType } from '@colijnit/relationapi/build/enum/communication-type.enum';
4
+ import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
5
+ export declare class RelationContactOptionListComponent {
6
+ dragDropDisabled: boolean;
7
+ type: CommunicationType;
8
+ collection: ContactOption[];
9
+ deleteClick: EventEmitter<ContactOption>;
10
+ showClass: boolean;
11
+ dragStartDelay: number;
12
+ private _mouseDownTimeout;
13
+ handleCanDragDrop: (drag: CdkDrag, drop: CdkDropList) => boolean;
14
+ handleDrop(event: CdkDragDrop<ContactOption[]>): Promise<void>;
15
+ /**
16
+ * Hack to make sure that dragged item has the right css when not moving the mouse
17
+ * @param event
18
+ */
19
+ handleOptionMouseDown(event: MouseEvent): void;
20
+ handleOptionMouseUp(event: MouseEvent): void;
21
+ private _reArrangeSequences;
22
+ }
@@ -0,0 +1,30 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { CommunicationType } from '@colijnit/relationapi/build/enum/communication-type.enum';
3
+ import { Icon } from '../../enum/icon.enum';
4
+ import { IconCacheService } from '../../service/icon-cache.service';
5
+ import { ContactOption } from '@colijnit/relationapi/build/model/contact-option.bo';
6
+ import { InputTextComponent } from '@colijnit/corecomponents_v12';
7
+ import { RelationService } from '../../service/relation.service';
8
+ export declare class RelationContactOptionComponent implements OnInit {
9
+ iconCacheService: IconCacheService;
10
+ private _relationService;
11
+ readonly icons: typeof Icon;
12
+ set child(content: any);
13
+ set model(value: ContactOption);
14
+ get model(): ContactOption;
15
+ set type(value: CommunicationType);
16
+ get type(): CommunicationType;
17
+ saveClick: EventEmitter<ContactOption>;
18
+ deleteClick: EventEmitter<ContactOption>;
19
+ showClass: boolean;
20
+ iconType: Icon;
21
+ label: string;
22
+ input: InputTextComponent;
23
+ shouldFocus: boolean;
24
+ private _model;
25
+ private _type;
26
+ constructor(iconCacheService: IconCacheService, _relationService: RelationService);
27
+ ngOnInit(): void;
28
+ handleCommit(value: string): Promise<boolean>;
29
+ private _prepareType;
30
+ }