@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.
- package/README.md +24 -0
- package/bundles/colijnit-relation.umd.js +4832 -0
- package/bundles/colijnit-relation.umd.js.map +1 -0
- package/colijnit-relation.d.ts +21 -0
- package/colijnit-relation.metadata.json +1 -0
- package/esm2015/colijnit-relation.js +22 -0
- package/esm2015/lib/component/base/relation-base.component.js +52 -0
- package/esm2015/lib/component/base/relation-loader.component.js +50 -0
- package/esm2015/lib/component/base/relation-screen-config-base.component.js +16 -0
- package/esm2015/lib/component/relation/relation.component.js +100 -0
- package/esm2015/lib/component/relation/relation.module.js +58 -0
- package/esm2015/lib/component/relation-address/relation-address.component.js +166 -0
- package/esm2015/lib/component/relation-address/relation-address.module.js +24 -0
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +72 -0
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +25 -0
- package/esm2015/lib/component/relation-addresses/relation-addresses.component.js +158 -0
- package/esm2015/lib/component/relation-addresses/relation-addresses.module.js +31 -0
- package/esm2015/lib/component/relation-avatar/relation-avatar.component.js +222 -0
- package/esm2015/lib/component/relation-avatar/relation-avatar.module.js +22 -0
- package/esm2015/lib/component/relation-contact-options/relation-contact-option-list.component.js +101 -0
- package/esm2015/lib/component/relation-contact-options/relation-contact-option.component.js +100 -0
- package/esm2015/lib/component/relation-contact-options/relation-contact-options-other-types-popup.component.js +44 -0
- package/esm2015/lib/component/relation-contact-options/relation-contact-options.component.js +154 -0
- package/esm2015/lib/component/relation-contact-options/relation-contact-options.module.js +34 -0
- package/esm2015/lib/component/relation-first-name/relation-first-name.component.js +25 -0
- package/esm2015/lib/component/relation-first-name/relation-first-name.module.js +24 -0
- package/esm2015/lib/component/relation-gender/relation-gender.component.js +45 -0
- package/esm2015/lib/component/relation-gender/relation-gender.module.js +23 -0
- package/esm2015/lib/component/relation-initials/relation-initials.component.js +24 -0
- package/esm2015/lib/component/relation-initials/relation-initials.module.js +24 -0
- package/esm2015/lib/component/relation-language/relation-language.component.js +56 -0
- package/esm2015/lib/component/relation-language/relation-language.module.js +24 -0
- package/esm2015/lib/component/relation-last-name/relation-last-name.component.js +23 -0
- package/esm2015/lib/component/relation-last-name/relation-last-name.module.js +24 -0
- package/esm2015/lib/component/relation-preferences/relation-preferences.component.js +69 -0
- package/esm2015/lib/component/relation-preferences/relation-preferences.module.js +23 -0
- package/esm2015/lib/component/relation-prefix-name/relation-prefix-name.component.js +24 -0
- package/esm2015/lib/component/relation-prefix-name/relation-prefix-name.module.js +24 -0
- package/esm2015/lib/component/relation-title/relation-title.component.js +56 -0
- package/esm2015/lib/component/relation-title/relation-title.module.js +24 -0
- package/esm2015/lib/enum/icon.enum.js +16 -0
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/enum/relman-cfg-name.enum.js +862 -0
- package/esm2015/lib/enum/relman-contact-options-cfg-names.js +2 -0
- package/esm2015/lib/enum/relman-sub-category.enum.js +13 -0
- package/esm2015/lib/interface/relation-address-cfg-names.interface.js +2 -0
- package/esm2015/lib/model/icon-svg.js +15 -0
- package/esm2015/lib/model/relation-settings-options.js +7 -0
- package/esm2015/lib/model/relation-settings.js +9 -0
- package/esm2015/lib/relation-version.js +10 -0
- package/esm2015/lib/res/dictionary/dictionaries.js +9 -0
- package/esm2015/lib/service/dictionary.service.js +68 -0
- package/esm2015/lib/service/error.service.js +75 -0
- package/esm2015/lib/service/icon-cache.service.js +51 -0
- package/esm2015/lib/service/relation-base.service.js +268 -0
- package/esm2015/lib/service/relation-connector-adapter.service.js +401 -0
- package/esm2015/lib/service/relation-connector.service.js +155 -0
- package/esm2015/lib/service/relation-event.service.js +16 -0
- package/esm2015/lib/service/relation-screen-configuration.service.js +51 -0
- package/esm2015/lib/service/relation-settings.service.js +65 -0
- package/esm2015/lib/service/relation.service.js +42 -0
- package/esm2015/lib/translation/relation-dictionary.service.js +77 -0
- package/esm2015/lib/translation/relation-localize.pipe.js +26 -0
- package/esm2015/lib/translation/relation-translation.module.js +29 -0
- package/esm2015/lib/translation/relation-translation.service.js +17 -0
- package/esm2015/public_api.js +33 -0
- package/fesm2015/colijnit-relation.js +3980 -0
- package/fesm2015/colijnit-relation.js.map +1 -0
- package/lib/component/base/relation-base.component.d.ts +24 -0
- package/lib/component/base/relation-loader.component.d.ts +12 -0
- package/lib/component/base/relation-screen-config-base.component.d.ts +14 -0
- package/lib/component/relation/relation.component.d.ts +21 -0
- package/lib/component/relation/relation.module.d.ts +2 -0
- package/lib/component/relation/style/_layout.scss +46 -0
- package/lib/component/relation/style/_material-definition.scss +15 -0
- package/lib/component/relation/style/_theme.scss +12 -0
- package/lib/component/relation/style/material.scss +4 -0
- package/lib/component/relation-address/relation-address.component.d.ts +35 -0
- package/lib/component/relation-address/relation-address.module.d.ts +2 -0
- package/lib/component/relation-address/style/_layout.scss +16 -0
- package/lib/component/relation-address/style/_material-definition.scss +5 -0
- package/lib/component/relation-address/style/_theme.scss +5 -0
- package/lib/component/relation-address/style/material.scss +4 -0
- package/lib/component/relation-address-tile/relation-address-tile.component.d.ts +19 -0
- package/lib/component/relation-address-tile/relation-address-tile.module.d.ts +2 -0
- package/lib/component/relation-address-tile/style/_layout.scss +46 -0
- package/lib/component/relation-address-tile/style/_material-definition.scss +18 -0
- package/lib/component/relation-address-tile/style/_theme.scss +19 -0
- package/lib/component/relation-address-tile/style/material.scss +4 -0
- package/lib/component/relation-addresses/relation-addresses.component.d.ts +31 -0
- package/lib/component/relation-addresses/relation-addresses.module.d.ts +2 -0
- package/lib/component/relation-addresses/style/_layout.scss +26 -0
- package/lib/component/relation-addresses/style/_material-definition.scss +12 -0
- package/lib/component/relation-addresses/style/_theme.scss +20 -0
- package/lib/component/relation-addresses/style/material.scss +4 -0
- package/lib/component/relation-avatar/relation-avatar.component.d.ts +47 -0
- package/lib/component/relation-avatar/relation-avatar.module.d.ts +2 -0
- package/lib/component/relation-avatar/style/_layout.scss +44 -0
- package/lib/component/relation-avatar/style/_material-definition.scss +4 -0
- package/lib/component/relation-avatar/style/_theme.scss +9 -0
- package/lib/component/relation-avatar/style/material.scss +4 -0
- package/lib/component/relation-contact-options/relation-contact-option-list.component.d.ts +22 -0
- package/lib/component/relation-contact-options/relation-contact-option.component.d.ts +30 -0
- package/lib/component/relation-contact-options/relation-contact-options-other-types-popup.component.d.ts +22 -0
- package/lib/component/relation-contact-options/relation-contact-options.component.d.ts +40 -0
- package/lib/component/relation-contact-options/relation-contact-options.module.d.ts +2 -0
- package/lib/component/relation-contact-options/style/_layout.scss +113 -0
- package/lib/component/relation-contact-options/style/_material-definition.scss +35 -0
- package/lib/component/relation-contact-options/style/_theme.scss +48 -0
- package/lib/component/relation-contact-options/style/material.scss +4 -0
- package/lib/component/relation-first-name/relation-first-name.component.d.ts +4 -0
- package/lib/component/relation-first-name/relation-first-name.module.d.ts +2 -0
- package/lib/component/relation-first-name/style/_layout.scss +9 -0
- package/lib/component/relation-first-name/style/_material-definition.scss +3 -0
- package/lib/component/relation-first-name/style/_theme.scss +5 -0
- package/lib/component/relation-first-name/style/material.scss +4 -0
- package/lib/component/relation-gender/relation-gender.component.d.ts +7 -0
- package/lib/component/relation-gender/relation-gender.module.d.ts +2 -0
- package/lib/component/relation-gender/style/_layout.scss +8 -0
- package/lib/component/relation-gender/style/_material-definition.scss +4 -0
- package/lib/component/relation-gender/style/_theme.scss +5 -0
- package/lib/component/relation-gender/style/material.scss +4 -0
- package/lib/component/relation-initials/relation-initials.component.d.ts +4 -0
- package/lib/component/relation-initials/relation-initials.module.d.ts +2 -0
- package/lib/component/relation-initials/style/_layout.scss +9 -0
- package/lib/component/relation-initials/style/_material-definition.scss +3 -0
- package/lib/component/relation-initials/style/_theme.scss +5 -0
- package/lib/component/relation-initials/style/material.scss +4 -0
- package/lib/component/relation-language/relation-language.component.d.ts +12 -0
- package/lib/component/relation-language/relation-language.module.d.ts +2 -0
- package/lib/component/relation-language/style/_layout.scss +9 -0
- package/lib/component/relation-language/style/_material-definition.scss +3 -0
- package/lib/component/relation-language/style/_theme.scss +5 -0
- package/lib/component/relation-language/style/material.scss +4 -0
- package/lib/component/relation-last-name/relation-last-name.component.d.ts +4 -0
- package/lib/component/relation-last-name/relation-last-name.module.d.ts +2 -0
- package/lib/component/relation-last-name/style/_layout.scss +9 -0
- package/lib/component/relation-last-name/style/_material-definition.scss +3 -0
- package/lib/component/relation-last-name/style/_theme.scss +5 -0
- package/lib/component/relation-last-name/style/material.scss +4 -0
- package/lib/component/relation-preferences/relation-preferences.component.d.ts +13 -0
- package/lib/component/relation-preferences/relation-preferences.module.d.ts +2 -0
- package/lib/component/relation-preferences/style/_layout.scss +16 -0
- package/lib/component/relation-preferences/style/_material-definition.scss +8 -0
- package/lib/component/relation-preferences/style/_theme.scss +5 -0
- package/lib/component/relation-preferences/style/material.scss +4 -0
- package/lib/component/relation-prefix-name/relation-prefix-name.component.d.ts +4 -0
- package/lib/component/relation-prefix-name/relation-prefix-name.module.d.ts +2 -0
- package/lib/component/relation-prefix-name/style/_layout.scss +9 -0
- package/lib/component/relation-prefix-name/style/_material-definition.scss +3 -0
- package/lib/component/relation-prefix-name/style/_theme.scss +5 -0
- package/lib/component/relation-prefix-name/style/material.scss +4 -0
- package/lib/component/relation-title/relation-title.component.d.ts +13 -0
- package/lib/component/relation-title/relation-title.module.d.ts +2 -0
- package/lib/component/relation-title/style/_layout.scss +9 -0
- package/lib/component/relation-title/style/_material-definition.scss +3 -0
- package/lib/component/relation-title/style/_theme.scss +5 -0
- package/lib/component/relation-title/style/material.scss +4 -0
- package/lib/enum/icon.enum.d.ts +14 -0
- package/lib/enum/language-code.enum.d.ts +6 -0
- package/lib/enum/relman-cfg-name.enum.d.ts +857 -0
- package/lib/enum/relman-contact-options-cfg-names.d.ts +6 -0
- package/lib/enum/relman-sub-category.enum.d.ts +10 -0
- package/lib/interface/relation-address-cfg-names.interface.d.ts +8 -0
- package/lib/model/icon-svg.d.ts +4 -0
- package/lib/model/relation-settings-options.d.ts +4 -0
- package/lib/model/relation-settings.d.ts +5 -0
- package/lib/relation-version.d.ts +6 -0
- package/lib/res/dictionary/dictionaries.d.ts +17184 -0
- package/lib/service/dictionary.service.d.ts +18 -0
- package/lib/service/error.service.d.ts +11 -0
- package/lib/service/icon-cache.service.d.ts +18 -0
- package/lib/service/relation-base.service.d.ts +64 -0
- package/lib/service/relation-connector-adapter.service.d.ts +66 -0
- package/lib/service/relation-connector.service.d.ts +51 -0
- package/lib/service/relation-event.service.d.ts +6 -0
- package/lib/service/relation-screen-configuration.service.d.ts +13 -0
- package/lib/service/relation-settings.service.d.ts +16 -0
- package/lib/service/relation.service.d.ts +10 -0
- package/lib/style/_mixin.scss +15 -0
- package/lib/style/_variables.scss +15 -0
- package/lib/style/relation-globals.scss +7 -0
- package/lib/translation/relation-dictionary.service.d.ts +19 -0
- package/lib/translation/relation-localize.pipe.d.ts +7 -0
- package/lib/translation/relation-translation.module.d.ts +4 -0
- package/lib/translation/relation-translation.service.d.ts +6 -0
- package/package.json +30 -0
- package/public_api.d.ts +32 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LanguageCode } from '../enum/language-code.enum';
|
|
2
|
+
export declare class DictionaryService {
|
|
3
|
+
get language(): string;
|
|
4
|
+
private _dictionaryPromise;
|
|
5
|
+
private _dictionaries;
|
|
6
|
+
private _language;
|
|
7
|
+
private readonly _placeholder;
|
|
8
|
+
setDictionary(language: LanguageCode): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the localized text for the given dictionary key.
|
|
11
|
+
* @param {string} key
|
|
12
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
13
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
14
|
+
* @returns {string} The translated text for given dictionary key
|
|
15
|
+
*/
|
|
16
|
+
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
17
|
+
private _dictionaryLoaded;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DictionaryService } from './dictionary.service';
|
|
2
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
3
|
+
import { CoreDialogService } from '@colijnit/corecomponents_v12';
|
|
4
|
+
export declare class ErrorService {
|
|
5
|
+
private _coreDialogService;
|
|
6
|
+
private _dictionaryService;
|
|
7
|
+
constructor(_coreDialogService: CoreDialogService, _dictionaryService: DictionaryService);
|
|
8
|
+
showValidationError(response: DataServiceResponseData | any): Promise<any>;
|
|
9
|
+
private _messageAsValidationError;
|
|
10
|
+
private _messageDetails;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
2
|
+
import { Icon } from "../enum/icon.enum";
|
|
3
|
+
export declare class IconCacheService {
|
|
4
|
+
private _sanitizer;
|
|
5
|
+
/**
|
|
6
|
+
* All the icons as a large JSON object, from the all-icons.json file.
|
|
7
|
+
* The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
|
|
8
|
+
*/
|
|
9
|
+
get iconCache(): {
|
|
10
|
+
[iconName: string]: SafeHtml;
|
|
11
|
+
};
|
|
12
|
+
private _iconCache;
|
|
13
|
+
constructor(_sanitizer: DomSanitizer);
|
|
14
|
+
getIcon(iconName: Icon | string): SafeHtml;
|
|
15
|
+
getIconAsBase64(iconName: Icon): SafeHtml;
|
|
16
|
+
getRawIcon(iconName: Icon): string;
|
|
17
|
+
setIconCache(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { BaseModuleService, CoreDialogService } from '@colijnit/corecomponents_v12';
|
|
2
|
+
import { RelationSettingsService } from './relation-settings.service';
|
|
3
|
+
import { RelationConnectorService } from './relation-connector.service';
|
|
4
|
+
import { RelationScreenConfigurationService } from './relation-screen-configuration.service';
|
|
5
|
+
import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
6
|
+
import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
|
|
7
|
+
import { CustomerFullObject } from '@colijnit/relationapi/build/model/customer-full-object.bo';
|
|
8
|
+
import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
|
|
9
|
+
import { SupplierFullObject } from '@colijnit/relationapi/build/model/supplier-full-object.bo';
|
|
10
|
+
import { EmployeeFullObject } from '@colijnit/relationapi/build/model/employee-full-object.bo';
|
|
11
|
+
import { RelmanSubCategory } from '../enum/relman-sub-category.enum';
|
|
12
|
+
import { RelationNameKind } from '@colijnit/relationapi/build/enum/relation-name-kind.enum';
|
|
13
|
+
import { RelationEventService } from './relation-event.service';
|
|
14
|
+
export declare class RelationBaseService extends BaseModuleService {
|
|
15
|
+
settingsService: RelationSettingsService;
|
|
16
|
+
protected connector: RelationConnectorService;
|
|
17
|
+
protected screenConfigService: RelationScreenConfigurationService;
|
|
18
|
+
private _coreDialogService;
|
|
19
|
+
private _relationEventService;
|
|
20
|
+
private readonly _relationTypeToSubCategoryMap;
|
|
21
|
+
private readonly _lockMethods;
|
|
22
|
+
private readonly _getMethods;
|
|
23
|
+
private readonly _updateMethods;
|
|
24
|
+
private readonly _insertMethods;
|
|
25
|
+
set currentRelation(value: RelationAnyType);
|
|
26
|
+
get currentRelation(): RelationAnyType;
|
|
27
|
+
relationLocked: boolean;
|
|
28
|
+
set relationId(value: number);
|
|
29
|
+
get relationId(): number;
|
|
30
|
+
get relationSubCat(): RelmanSubCategory;
|
|
31
|
+
set relationSubCat(value: RelmanSubCategory);
|
|
32
|
+
set relationKind(value: RelationKind);
|
|
33
|
+
get relationKind(): RelationKind;
|
|
34
|
+
protected _readonly: boolean;
|
|
35
|
+
private _currentRelation;
|
|
36
|
+
private _relationId;
|
|
37
|
+
private _relationKind;
|
|
38
|
+
private _relationSubCat;
|
|
39
|
+
constructor(settingsService: RelationSettingsService, connector: RelationConnectorService, screenConfigService: RelationScreenConfigurationService, _coreDialogService: CoreDialogService, _relationEventService: RelationEventService);
|
|
40
|
+
init(options: any): Promise<void>;
|
|
41
|
+
saveRelation(): Promise<boolean>;
|
|
42
|
+
insertRelation(relationKind: RelationKind, relation: RelationAnyType): Promise<RelationAnyType>;
|
|
43
|
+
updateRelation(relationKind: RelationKind, relation: RelationAnyType): Promise<RelationAnyType>;
|
|
44
|
+
lockRelation(relationKind: RelationKind, relationNr: number): Promise<ValidationResult>;
|
|
45
|
+
insertCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
|
|
46
|
+
updateCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
|
|
47
|
+
insertSupplier(relation: SupplierFullObject): Promise<SupplierFullObject>;
|
|
48
|
+
updateSupplier(relation: SupplierFullObject): Promise<SupplierFullObject>;
|
|
49
|
+
insertEmployee(relation: EmployeeFullObject): Promise<EmployeeFullObject>;
|
|
50
|
+
updateEmployee(relation: EmployeeFullObject): Promise<EmployeeFullObject>;
|
|
51
|
+
private _getRelation;
|
|
52
|
+
private _getRelationFromKind;
|
|
53
|
+
getSubCategoryFor(relationKind: RelationKind, relationNameKind?: RelationNameKind, relationNr?: number): Promise<RelmanSubCategory>;
|
|
54
|
+
private _getCustomerFullObject;
|
|
55
|
+
private _getSupplierFullObject;
|
|
56
|
+
private _getEmployeeFullObject;
|
|
57
|
+
private _lockCustomerFullObject;
|
|
58
|
+
private _lockSupplierFullObject;
|
|
59
|
+
private _lockEmployeeFullObject;
|
|
60
|
+
private _lockBranchFullObject;
|
|
61
|
+
private _lockCompanyFullObject;
|
|
62
|
+
private _lockContactPerson;
|
|
63
|
+
private _getSubCategoryByRelationNameKind;
|
|
64
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { RelationSettingsService } from './relation-settings.service';
|
|
3
|
+
import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
|
|
4
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
5
|
+
import { RelationApi } from '@colijnit/relationapi';
|
|
6
|
+
import { MainApi } from '@colijnit/mainapi';
|
|
7
|
+
import { RelationSmallObject } from '@colijnit/relationapi/build/model/relation-small-object.bo';
|
|
8
|
+
import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
|
|
9
|
+
import { CustomerFullObject } from '@colijnit/relationapi/build/model/customer-full-object.bo';
|
|
10
|
+
import { SupplierFullObject } from '@colijnit/relationapi/build/model/supplier-full-object.bo';
|
|
11
|
+
import { EmployeeFullObject } from '@colijnit/relationapi/build/model/employee-full-object.bo';
|
|
12
|
+
import { ErrorService } from './error.service';
|
|
13
|
+
import { RelationNameKind } from '@colijnit/relationapi/build/enum/relation-name-kind.enum';
|
|
14
|
+
import { RelationEventService } from './relation-event.service';
|
|
15
|
+
import { LoginResponse } from '@colijnit/ioneconnector/build/model/login-response';
|
|
16
|
+
import { Title } from '@colijnit/mainapi/build/model/title.bo';
|
|
17
|
+
import { RelationPrivacySetting } from '@colijnit/relationapi/build/model/relation-privacy-setting.bo';
|
|
18
|
+
import { PrivacySetting } from '@colijnit/mainapi/build/model/privacy-setting.bo';
|
|
19
|
+
import { Language } from '@colijnit/mainapi/build/model/language.bo';
|
|
20
|
+
import { Country } from '@colijnit/ioneconnector/build/model/country.bo';
|
|
21
|
+
import { GetPostalCodeRetrievalOutputParams } from '@colijnit/mainapi/build/model/get-postal-code-retrieval-output-params';
|
|
22
|
+
import { Address } from '@colijnit/relationapi/build/model/address.bo';
|
|
23
|
+
export declare class RelationConnectorAdapterService implements OnDestroy {
|
|
24
|
+
private _settingsService;
|
|
25
|
+
private _errorService;
|
|
26
|
+
private _relationEventService;
|
|
27
|
+
connector: RelationApi;
|
|
28
|
+
mainConnector: MainApi;
|
|
29
|
+
loginResponse: LoginResponse;
|
|
30
|
+
private _boFactory;
|
|
31
|
+
private _loaderSub;
|
|
32
|
+
constructor(_settingsService: RelationSettingsService, _errorService: ErrorService, _relationEventService: RelationEventService);
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
connect(): Promise<void>;
|
|
35
|
+
logOut(): Promise<void>;
|
|
36
|
+
commit(): Promise<DataServiceResponseData>;
|
|
37
|
+
getObjectConfiguration(screenCfgModule: string, params?: string | string[], insertMode?: boolean): Promise<ObjectConfiguration[]>;
|
|
38
|
+
getDocumentContent(documentId: number, thumbnail?: boolean): Promise<string>;
|
|
39
|
+
getCountries(): Promise<Country[]>;
|
|
40
|
+
getPostalCodeRetrieval(postalCode: string, houseNr: string): Promise<GetPostalCodeRetrievalOutputParams>;
|
|
41
|
+
getRelationSmallObject(id: number): Promise<RelationSmallObject>;
|
|
42
|
+
getRelationNameKindByCustomerNr(relationNr: number): Promise<RelationNameKind>;
|
|
43
|
+
getTitles(): Promise<Title[]>;
|
|
44
|
+
getLanguages(): Promise<Language[]>;
|
|
45
|
+
getNextContactOptionSequenceNumber(): Promise<number>;
|
|
46
|
+
getRelationPrivacySettings(): Promise<RelationPrivacySetting[]>;
|
|
47
|
+
getPrivacySettings(): Promise<PrivacySetting[]>;
|
|
48
|
+
lockCustomerFullObject(relationNr: number): Promise<ValidationResult>;
|
|
49
|
+
getCustomerFullObject(relationNo: number): Promise<CustomerFullObject>;
|
|
50
|
+
insertCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
|
|
51
|
+
updateCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
|
|
52
|
+
lockSupplierFullObject(relationNr: number): Promise<ValidationResult>;
|
|
53
|
+
getSupplierFullObject(relationNo: number): Promise<SupplierFullObject>;
|
|
54
|
+
insertSupplier(relation: SupplierFullObject): Promise<SupplierFullObject>;
|
|
55
|
+
updateSupplier(relation: SupplierFullObject): Promise<SupplierFullObject>;
|
|
56
|
+
lockEmployeeFullObject(relationNr: number): Promise<ValidationResult>;
|
|
57
|
+
getEmployeeFullObject(relationNo: number): Promise<EmployeeFullObject>;
|
|
58
|
+
insertEmployee(relation: EmployeeFullObject): Promise<EmployeeFullObject>;
|
|
59
|
+
updateEmployee(relation: EmployeeFullObject): Promise<EmployeeFullObject>;
|
|
60
|
+
lockBranchFullObject(relationNr: number): Promise<ValidationResult>;
|
|
61
|
+
lockCompanyFullObject(relationNr: number): Promise<ValidationResult>;
|
|
62
|
+
lockContactPerson(relationNr: number): Promise<ValidationResult>;
|
|
63
|
+
insertAddress(address: Address): Promise<Address>;
|
|
64
|
+
updateAddress(address: Address): Promise<Address>;
|
|
65
|
+
private _handleExceptionFromResponse;
|
|
66
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { RelationConnectorAdapterService } from './relation-connector-adapter.service';
|
|
3
|
+
import { RelationSmallObject } from '@colijnit/relationapi/build/model/relation-small-object.bo';
|
|
4
|
+
import { ValidationResult } from '@colijnit/ioneconnector/build/model/validation-result';
|
|
5
|
+
import { SupplierFullObject } from '@colijnit/relationapi/build/model/supplier-full-object.bo';
|
|
6
|
+
import { CustomerFullObject } from '@colijnit/relationapi/build/model/customer-full-object.bo';
|
|
7
|
+
import { EmployeeFullObject } from '@colijnit/relationapi/build/model/employee-full-object.bo';
|
|
8
|
+
import { RelationNameKind } from '@colijnit/relationapi/build/enum/relation-name-kind.enum';
|
|
9
|
+
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
10
|
+
import { Title } from '@colijnit/mainapi/build/model/title.bo';
|
|
11
|
+
import { RelationPrivacySetting } from '@colijnit/relationapi/build/model/relation-privacy-setting.bo';
|
|
12
|
+
import { Language } from '@colijnit/mainapi/build/model/language.bo';
|
|
13
|
+
import { LoginResponse } from '@colijnit/ioneconnector/build/model/login-response';
|
|
14
|
+
import { Country } from '@colijnit/ioneconnector/build/model/country.bo';
|
|
15
|
+
import { GetPostalCodeRetrievalOutputParams } from '@colijnit/mainapi/build/model/get-postal-code-retrieval-output-params';
|
|
16
|
+
import { Address } from '@colijnit/relationapi/build/model/address.bo';
|
|
17
|
+
export declare class RelationConnectorService {
|
|
18
|
+
private _adapterService;
|
|
19
|
+
connectionInitialized: BehaviorSubject<boolean>;
|
|
20
|
+
constructor(_adapterService: RelationConnectorAdapterService);
|
|
21
|
+
connect(): Promise<void>;
|
|
22
|
+
logOut(): Promise<void>;
|
|
23
|
+
get loginResponse(): LoginResponse;
|
|
24
|
+
commit(): Promise<DataServiceResponseData>;
|
|
25
|
+
getRelationSmallObject(id: number): Promise<RelationSmallObject>;
|
|
26
|
+
getDocumentContent(documentId: number, thumbnail?: boolean): Promise<string>;
|
|
27
|
+
getCountries(): Promise<Country[]>;
|
|
28
|
+
getPostalCodeRetrieval(postalCode: string, houseNr: string): Promise<GetPostalCodeRetrievalOutputParams>;
|
|
29
|
+
getRelationNameKindByCustomerNr(relationNr: number): Promise<RelationNameKind>;
|
|
30
|
+
getTitles(): Promise<Title[]>;
|
|
31
|
+
getLanguages(): Promise<Language[]>;
|
|
32
|
+
getNextContactOptionSequenceNumber(): Promise<number>;
|
|
33
|
+
getRelationPrivacySettings(): Promise<RelationPrivacySetting[]>;
|
|
34
|
+
getCustomerFullObject(relationNo: number): Promise<CustomerFullObject>;
|
|
35
|
+
getSupplierFullObject(relationNo: number): Promise<SupplierFullObject>;
|
|
36
|
+
getEmployeeFullObject(relationNo: number): Promise<EmployeeFullObject>;
|
|
37
|
+
insertCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
|
|
38
|
+
updateCustomer(relation: CustomerFullObject): Promise<CustomerFullObject>;
|
|
39
|
+
insertSupplier(relation: SupplierFullObject): Promise<SupplierFullObject>;
|
|
40
|
+
updateSupplier(relation: SupplierFullObject): Promise<SupplierFullObject>;
|
|
41
|
+
insertEmployee(relation: EmployeeFullObject): Promise<EmployeeFullObject>;
|
|
42
|
+
updateEmployee(relation: EmployeeFullObject): Promise<EmployeeFullObject>;
|
|
43
|
+
lockCustomerFullObject(relationNr: number): Promise<ValidationResult>;
|
|
44
|
+
lockSupplierFullObject(relationNr: number): Promise<ValidationResult>;
|
|
45
|
+
lockEmployeeFullObject(relationNr: number): Promise<ValidationResult>;
|
|
46
|
+
lockBranchFullObject(relationNr: number): Promise<ValidationResult>;
|
|
47
|
+
lockCompanyFullObject(relationNr: number): Promise<ValidationResult>;
|
|
48
|
+
lockContactPerson(relationNr: number): Promise<ValidationResult>;
|
|
49
|
+
insertAddress(address: Address): Promise<Address>;
|
|
50
|
+
updateAddress(address: Address): Promise<Address>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { RelationAnyType } from '@colijnit/relationapi/build/model/relation-any-type';
|
|
3
|
+
export declare class RelationEventService {
|
|
4
|
+
readonly showLoader: BehaviorSubject<boolean>;
|
|
5
|
+
readonly relationLoaded: BehaviorSubject<RelationAnyType>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
|
|
2
|
+
import { BaseModuleScreenConfigService } from '@colijnit/corecomponents_v12';
|
|
3
|
+
import { RelationConnectorAdapterService } from './relation-connector-adapter.service';
|
|
4
|
+
export declare class RelationScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
5
|
+
private _relationConnectorAdapterService;
|
|
6
|
+
readonly screenModuleName: string;
|
|
7
|
+
private _screenConfigurationObjectCache;
|
|
8
|
+
constructor(_relationConnectorAdapterService: RelationConnectorAdapterService);
|
|
9
|
+
clear(): void;
|
|
10
|
+
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
11
|
+
private _setScreenConfigurationObjectCache;
|
|
12
|
+
private _screenConfigurationLoaded;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { DictionaryService } from './dictionary.service';
|
|
3
|
+
import { RelationSettings } from '../model/relation-settings';
|
|
4
|
+
export declare class RelationSettingsService {
|
|
5
|
+
private _dictionary;
|
|
6
|
+
readonly languageCodeToDictionary: Map<string, string>;
|
|
7
|
+
settingsInitialized: BehaviorSubject<boolean>;
|
|
8
|
+
set settings(value: any);
|
|
9
|
+
get settings(): RelationSettings;
|
|
10
|
+
get dictionaryKey(): string;
|
|
11
|
+
settingsLoaded: BehaviorSubject<boolean>;
|
|
12
|
+
private _settings;
|
|
13
|
+
constructor(_dictionary: DictionaryService);
|
|
14
|
+
createSettingsFromObject(obj: any): Promise<void>;
|
|
15
|
+
initialize(options: any): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RelationBaseService } from './relation-base.service';
|
|
2
|
+
import { CommunicationType } from '@colijnit/relationapi/build/enum/communication-type.enum';
|
|
3
|
+
import { Icon } from '../enum/icon.enum';
|
|
4
|
+
import { Address } from '@colijnit/relationapi/build/model/address.bo';
|
|
5
|
+
export declare class RelationService extends RelationBaseService {
|
|
6
|
+
readonly communicationTypeIcon: Map<CommunicationType, Icon>;
|
|
7
|
+
readonly communicationTypeLabel: Map<CommunicationType, string>;
|
|
8
|
+
insertAddress(address: Address): Promise<Address>;
|
|
9
|
+
updateAddress(address: Address): Promise<Address>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$css: '' !default;
|
|
2
|
+
$imported-modules: () !default;
|
|
3
|
+
|
|
4
|
+
@mixin export-module($module) {
|
|
5
|
+
@if (index($imported-modules, $module) == null) {
|
|
6
|
+
$imported-modules: append($imported-modules, $module) !global;
|
|
7
|
+
@content;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin screen-mobile {
|
|
12
|
+
@media only screen and (max-width: 700px) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$re-font-family: 'Public sans' !default;
|
|
2
|
+
|
|
3
|
+
$re-color-font: #171721 !default;
|
|
4
|
+
$re-color-action: #1A73E8 !default;
|
|
5
|
+
$re-color-border: #DCE4EA !default;
|
|
6
|
+
$re-color-light: white !default;
|
|
7
|
+
$re-color-background: #f8f8fa !default;
|
|
8
|
+
$re-color-background-selected: #f1fcff !default;
|
|
9
|
+
$re-color-background-popup: #212437 !default;
|
|
10
|
+
$re-color-background-popup-item: #2e3350 !default;
|
|
11
|
+
$re-color-background-popup-item-hover: #e8eceb !default;
|
|
12
|
+
|
|
13
|
+
$re-font-size: 12px !default;
|
|
14
|
+
$re-font-size-big: 14px !default;
|
|
15
|
+
$re-font-size-small: 10px !default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LanguageCode } from '../enum/language-code.enum';
|
|
2
|
+
export declare class RelationDictionaryService {
|
|
3
|
+
get language(): string;
|
|
4
|
+
private _dictionaryPromise;
|
|
5
|
+
private _dictionaries;
|
|
6
|
+
private _language;
|
|
7
|
+
private readonly _placeholder;
|
|
8
|
+
translation: {};
|
|
9
|
+
setDictionary(language: LanguageCode): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Returns the localized text for the given dictionary key.
|
|
12
|
+
* @param {string} key
|
|
13
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
14
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
15
|
+
* @returns {string} The translated text for given dictionary key
|
|
16
|
+
*/
|
|
17
|
+
get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
|
|
18
|
+
private _dictionaryLoaded;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { RelationDictionaryService } from './relation-dictionary.service';
|
|
3
|
+
export declare class RelationLocalizePipe implements PipeTransform {
|
|
4
|
+
private _dictionaryService;
|
|
5
|
+
constructor(_dictionaryService: RelationDictionaryService);
|
|
6
|
+
transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@colijnit/relation",
|
|
3
|
+
"version": "12.1.1",
|
|
4
|
+
"description": "Colijn IT relation module for Angular 12",
|
|
5
|
+
"repository": "npm/npm",
|
|
6
|
+
"author": "Colijn IT",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"private": false,
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"@angular/common": ">=12.2.0",
|
|
11
|
+
"@angular/core": ">=12.2.0",
|
|
12
|
+
"@colijnit/corecomponents": ">=1.12.0",
|
|
13
|
+
"@colijnit/corecomponents_v12": ">=12.2.14",
|
|
14
|
+
"@colijnit/ioneconnector": ">=3.1.11",
|
|
15
|
+
"@colijnit/mainapi": ">=1.0.27",
|
|
16
|
+
"@colijnit/relationapi": ">=1.0.9",
|
|
17
|
+
"@tweenjs/tween.js": ">=17.2.0"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"tslib": "^2.3.0"
|
|
21
|
+
},
|
|
22
|
+
"main": "bundles/colijnit-relation.umd.js",
|
|
23
|
+
"module": "fesm2015/colijnit-relation.js",
|
|
24
|
+
"es2015": "fesm2015/colijnit-relation.js",
|
|
25
|
+
"esm2015": "esm2015/colijnit-relation.js",
|
|
26
|
+
"fesm2015": "fesm2015/colijnit-relation.js",
|
|
27
|
+
"typings": "colijnit-relation.d.ts",
|
|
28
|
+
"metadata": "colijnit-relation.metadata.json",
|
|
29
|
+
"sideEffects": false
|
|
30
|
+
}
|
package/public_api.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export * from "./lib/relation-version";
|
|
2
|
+
export * from "./lib/component/relation/relation.component";
|
|
3
|
+
export * from "./lib/component/relation/relation.module";
|
|
4
|
+
export * from "./lib/component/relation-address/relation-address.component";
|
|
5
|
+
export * from "./lib/component/relation-address/relation-address.module";
|
|
6
|
+
export * from "./lib/component/relation-address-tile/relation-address-tile.component";
|
|
7
|
+
export * from "./lib/component/relation-address-tile/relation-address-tile.module";
|
|
8
|
+
export * from "./lib/component/relation-addresses/relation-addresses.component";
|
|
9
|
+
export * from "./lib/component/relation-addresses/relation-addresses.module";
|
|
10
|
+
export * from "./lib/component/relation-avatar/relation-avatar.component";
|
|
11
|
+
export * from "./lib/component/relation-avatar/relation-avatar.module";
|
|
12
|
+
export * from "./lib/component/relation-contact-options/relation-contact-options.component";
|
|
13
|
+
export * from "./lib/component/relation-contact-options/relation-contact-options.module";
|
|
14
|
+
export * from "./lib/component/relation-first-name/relation-first-name.component";
|
|
15
|
+
export * from "./lib/component/relation-first-name/relation-first-name.module";
|
|
16
|
+
export * from "./lib/component/relation-gender/relation-gender.component";
|
|
17
|
+
export * from "./lib/component/relation-gender/relation-gender.module";
|
|
18
|
+
export * from "./lib/component/relation-initials/relation-initials.component";
|
|
19
|
+
export * from "./lib/component/relation-initials/relation-initials.module";
|
|
20
|
+
export * from "./lib/component/relation-language/relation-language.component";
|
|
21
|
+
export * from "./lib/component/relation-language/relation-language.module";
|
|
22
|
+
export * from "./lib/component/relation-last-name/relation-last-name.component";
|
|
23
|
+
export * from "./lib/component/relation-last-name/relation-last-name.module";
|
|
24
|
+
export * from "./lib/component/relation-preferences/relation-preferences.component";
|
|
25
|
+
export * from "./lib/component/relation-preferences/relation-preferences.module";
|
|
26
|
+
export * from "./lib/component/relation-prefix-name/relation-prefix-name.component";
|
|
27
|
+
export * from "./lib/component/relation-prefix-name/relation-prefix-name.module";
|
|
28
|
+
export * from "./lib/component/relation-title/relation-title.component";
|
|
29
|
+
export * from "./lib/component/relation-title/relation-title.module";
|
|
30
|
+
export * from "./lib/service/relation.service";
|
|
31
|
+
export * from './lib/translation/relation-translation.module';
|
|
32
|
+
export * from './lib/translation/relation-translation.service';
|