@colijnit/relation 12.1.1 → 12.1.3
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 -24
- package/bundles/colijnit-relation.umd.js +21 -5
- package/bundles/colijnit-relation.umd.js.map +1 -1
- package/colijnit-relation.metadata.json +1 -1
- package/esm2015/lib/component/base/relation-base.component.js +2 -1
- package/esm2015/lib/component/relation-contact-options/relation-contact-option.component.js +2 -2
- package/esm2015/lib/component/relation-contact-options/relation-contact-options.component.js +37 -21
- package/esm2015/lib/component/relation-contact-options/relation-contact-options.module.js +4 -3
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/esm2015/lib/relation-version.js +3 -3
- package/esm2015/lib/res/dictionary/dictionaries.js +1 -1
- package/fesm2015/colijnit-relation.js +42 -24
- package/fesm2015/colijnit-relation.js.map +1 -1
- package/lib/component/relation-contact-options/relation-contact-options.component.d.ts +4 -1
- package/lib/component/relation-contact-options/style/_layout.scss +44 -4
- package/lib/component/relation-contact-options/style/_material-definition.scss +17 -5
- package/lib/component/relation-contact-options/style/_theme.scss +18 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, ViewEncapsulation, Input, HostBinding, EventEmitter, Directive, Output, Pipe, NgModule, ChangeDetectorRef, ViewChild, ElementRef, HostListener, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import * as i1 from '@colijnit/corecomponents_v12';
|
|
4
|
-
import { CoreDialogService, BaseModuleScreenConfigService, BaseModuleService, CoreComponentsTranslationService, InputTextModule, ScreenConfigurationModule, InputRadioButtonModule, ListOfValuesModule, InputCheckboxModule, OverlayService, InputTextComponent, IconModule, ClickoutsideModule, OverlayModule, ColorSequenceService, ImageModule, FormMasterService, TileModule, TileSelectModule, CarouselModule, CoDialogModule, FormModule,
|
|
4
|
+
import { CoreDialogService, BaseModuleScreenConfigService, BaseModuleService, CoreComponentsTranslationService, InputTextModule, ScreenConfigurationModule, InputRadioButtonModule, ListOfValuesModule, InputCheckboxModule, OverlayService, InputTextComponent, IconModule, ClickoutsideModule, OverlayModule, ButtonModule, ColorSequenceService, ImageModule, FormMasterService, TileModule, TileSelectModule, CarouselModule, CoDialogModule, FormModule, CoreDialogModule, LoaderModule, CoreComponentsTranslationModule } from '@colijnit/corecomponents_v12';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { __awaiter } from 'tslib';
|
|
7
7
|
import { StringUtils } from '@colijnit/ioneconnector/build/utils/string-utils';
|
|
@@ -47,8 +47,8 @@ class Version {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
this.name = "@colijnit/relation";
|
|
49
49
|
this.description = "Colijn IT relation package";
|
|
50
|
-
this.symVer = "12.1.
|
|
51
|
-
this.publishDate = "
|
|
50
|
+
this.symVer = "12.1.3";
|
|
51
|
+
this.publishDate = "3/6/2024, 9:43:49 AM";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -1326,6 +1326,7 @@ class RelationBaseComponent {
|
|
|
1326
1326
|
this._relation = new CustomerFullObject();
|
|
1327
1327
|
}
|
|
1328
1328
|
set relation(value) {
|
|
1329
|
+
this._relation = value;
|
|
1329
1330
|
this.relationService.currentRelation = value;
|
|
1330
1331
|
}
|
|
1331
1332
|
get relation() {
|
|
@@ -2919,6 +2920,7 @@ class RelationContactOptionsComponent extends RelationScreenConfigBaseComponent
|
|
|
2919
2920
|
this.relationEventService = relationEventService;
|
|
2920
2921
|
this._overlayService = _overlayService;
|
|
2921
2922
|
this._changeDetector = _changeDetector;
|
|
2923
|
+
this.deleteClick = new EventEmitter();
|
|
2922
2924
|
this.commType = CommunicationType;
|
|
2923
2925
|
this.generalContactOptionsCfgNames = {
|
|
2924
2926
|
contactOptionValue: RelmanCfgName.ContactOptionValue,
|
|
@@ -3000,36 +3002,50 @@ class RelationContactOptionsComponent extends RelationScreenConfigBaseComponent
|
|
|
3000
3002
|
this.showNewOther = false;
|
|
3001
3003
|
this.showNewPhone = false;
|
|
3002
3004
|
}
|
|
3005
|
+
hideNewEmail() {
|
|
3006
|
+
if (this.showNewEmail) {
|
|
3007
|
+
this.showNewEmail = false;
|
|
3008
|
+
this._resetNew();
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
hideNewPhone() {
|
|
3012
|
+
if (this.showNewPhone) {
|
|
3013
|
+
this.showNewPhone = false;
|
|
3014
|
+
this._resetNew();
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3003
3017
|
}
|
|
3004
3018
|
RelationContactOptionsComponent.decorators = [
|
|
3005
3019
|
{ type: Component, args: [{
|
|
3006
3020
|
selector: 'co-relation-contact-options',
|
|
3007
3021
|
template: `
|
|
3008
|
-
|
|
3009
|
-
<div class="relation-contact-options-type-label" [textContent]="'EMAIL' | reLocalize"></div>
|
|
3010
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.PlusSimple)" class="relation-contact-options-plus-icon"
|
|
3011
|
-
(click)="showNewEmail = true"></co-icon>
|
|
3012
|
-
</div>
|
|
3013
|
-
<co-relation-contact-option class="new-contact-option" *ngIf="showNewEmail" [type]="commType.Email"
|
|
3014
|
-
(saveClick)="addContactOption($event)"></co-relation-contact-option>
|
|
3022
|
+
<div class="relation-contact-email">
|
|
3015
3023
|
<co-relation-contact-option-list [dragDropDisabled]="showNewEmail" [collection]="emailContactOptions" (deleteClick)="handleDeleteOption($event)"></co-relation-contact-option-list>
|
|
3024
|
+
<co-relation-contact-option class="new-contact-option" *ngIf="showNewEmail" [type]="commType.Email"
|
|
3025
|
+
(saveClick)="addContactOption($event)" (deleteClick)="hideNewEmail()"></co-relation-contact-option>
|
|
3016
3026
|
<div class="relation-contact-options-type-label-wrapper">
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
(click)="showNewPhone = true"></co-icon>
|
|
3027
|
+
<co-button [label]="'EMAIL' | reLocalize" [iconData]="iconCacheService.getIcon(icons.PlusSimple)" class="relation-contact-options-type-label"
|
|
3028
|
+
(click)="showNewEmail = true"></co-button>
|
|
3020
3029
|
</div>
|
|
3021
|
-
|
|
3022
|
-
|
|
3030
|
+
</div>
|
|
3031
|
+
<div class="relation-contact-phone">
|
|
3023
3032
|
<co-relation-contact-option-list [dragDropDisabled]="showNewPhone" [collection]="phoneContactOptions" (deleteClick)="handleDeleteOption($event)"></co-relation-contact-option-list>
|
|
3033
|
+
<co-relation-contact-option class="new-contact-option" *ngIf="showNewPhone" [type]="commType.Telephone"
|
|
3034
|
+
(saveClick)="addContactOption($event)" (deleteClick)="hideNewPhone()"></co-relation-contact-option>
|
|
3024
3035
|
<div class="relation-contact-options-type-label-wrapper">
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
(click)="showNewOtherPopup()"></co-icon>
|
|
3036
|
+
<co-button [label]="'PHONE' | reLocalize" [iconData]="iconCacheService.getIcon(icons.PlusSimple)" class="relation-contact-options-type-label"
|
|
3037
|
+
(click)="showNewPhone = true"></co-button>
|
|
3028
3038
|
</div>
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3039
|
+
</div>
|
|
3040
|
+
<!--div class="relation-contact-options-type-label-wrapper">
|
|
3041
|
+
<div class="relation-contact-options-type-label" [textContent]="'OTHER' | reLocalize"></div>
|
|
3042
|
+
<co-icon #overlayParent [iconData]="iconCacheService.getIcon(icons.PlusSimple)" class="relation-contact-options-plus-icon"
|
|
3043
|
+
(click)="showNewOtherPopup()"></co-icon>
|
|
3044
|
+
</div>
|
|
3045
|
+
<co-relation-contact-option class="new-contact-option" *ngIf="showNewOther" [type]="newOtherType"
|
|
3046
|
+
(saveClick)="addContactOption($event)"></co-relation-contact-option>
|
|
3047
|
+
<co-relation-contact-option-list [dragDropDisabled]="showNewOther" [collection]="otherContactOptions" (deleteClick)="handleDeleteOption($event)"></co-relation-contact-option-list-->
|
|
3048
|
+
`,
|
|
3033
3049
|
providers: [
|
|
3034
3050
|
OverlayService
|
|
3035
3051
|
],
|
|
@@ -3045,6 +3061,7 @@ RelationContactOptionsComponent.ctorParameters = () => [
|
|
|
3045
3061
|
{ type: ChangeDetectorRef }
|
|
3046
3062
|
];
|
|
3047
3063
|
RelationContactOptionsComponent.propDecorators = {
|
|
3064
|
+
deleteClick: [{ type: Output }],
|
|
3048
3065
|
overlayParent: [{ type: ViewChild, args: ['overlayParent', { read: ElementRef },] }],
|
|
3049
3066
|
showClass: [{ type: HostBinding, args: ['class.co-relation-contact-options',] }],
|
|
3050
3067
|
handleKeyDown: [{ type: HostListener, args: ['document:keydown', ['$event'],] }],
|
|
@@ -3127,7 +3144,7 @@ RelationContactOptionComponent.decorators = [
|
|
|
3127
3144
|
[leftIconData]="iconCacheService.getIcon(iconType)"
|
|
3128
3145
|
[showSaveCancel]="true"
|
|
3129
3146
|
></co-input-text>
|
|
3130
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.TrashBin)" (click)="deleteClick.emit(model)"></co-icon>
|
|
3147
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.TrashBin)" (click)="deleteClick.emit(model)" class="relation-contact-delete"></co-icon>
|
|
3131
3148
|
`,
|
|
3132
3149
|
encapsulation: ViewEncapsulation.None
|
|
3133
3150
|
},] }
|
|
@@ -3253,7 +3270,8 @@ RelationContactOptionsModule.decorators = [
|
|
|
3253
3270
|
IconModule,
|
|
3254
3271
|
ClickoutsideModule,
|
|
3255
3272
|
OverlayModule,
|
|
3256
|
-
DragDropModule
|
|
3273
|
+
DragDropModule,
|
|
3274
|
+
ButtonModule
|
|
3257
3275
|
],
|
|
3258
3276
|
declarations: [
|
|
3259
3277
|
RelationContactOptionsComponent,
|