@colijnit/relation 12.1.1 → 12.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # Relation
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project corecomponents` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project corecomponents`.
8
- > Note: Don't forget to add `--project corecomponents` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build relation` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build relation`, go to the dist folder `cd dist/corecomponents` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test relation` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # Relation
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project corecomponents` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project corecomponents`.
8
+ > Note: Don't forget to add `--project corecomponents` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build relation` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build relation`, go to the dist folder `cd dist/corecomponents` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test relation` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -31,8 +31,8 @@
31
31
  function Version() {
32
32
  this.name = "@colijnit/relation";
33
33
  this.description = "Colijn IT relation package";
34
- this.symVer = "12.1.1";
35
- this.publishDate = "20-2-2024 16:04:35";
34
+ this.symVer = "12.1.2";
35
+ this.publishDate = "4-3-2024 17:56:10";
36
36
  }
37
37
  return Version;
38
38
  }());
@@ -2139,6 +2139,7 @@
2139
2139
  return this._relation;
2140
2140
  },
2141
2141
  set: function (value) {
2142
+ this._relation = value;
2142
2143
  this.relationService.currentRelation = value;
2143
2144
  },
2144
2145
  enumerable: false,
@@ -3751,6 +3752,7 @@
3751
3752
  _this.relationEventService = relationEventService;
3752
3753
  _this._overlayService = _overlayService;
3753
3754
  _this._changeDetector = _changeDetector;
3755
+ _this.deleteClick = new i0.EventEmitter();
3754
3756
  _this.commType = communicationType_enum.CommunicationType;
3755
3757
  _this.generalContactOptionsCfgNames = {
3756
3758
  contactOptionValue: RelmanCfgName.ContactOptionValue,
@@ -3843,12 +3845,24 @@
3843
3845
  this.showNewOther = false;
3844
3846
  this.showNewPhone = false;
3845
3847
  };
3848
+ RelationContactOptionsComponent.prototype.hideNewEmail = function () {
3849
+ if (this.showNewEmail) {
3850
+ this.showNewEmail = false;
3851
+ this._resetNew();
3852
+ }
3853
+ };
3854
+ RelationContactOptionsComponent.prototype.hideNewPhone = function () {
3855
+ if (this.showNewPhone) {
3856
+ this.showNewPhone = false;
3857
+ this._resetNew();
3858
+ }
3859
+ };
3846
3860
  return RelationContactOptionsComponent;
3847
3861
  }(RelationScreenConfigBaseComponent));
3848
3862
  RelationContactOptionsComponent.decorators = [
3849
3863
  { type: i0.Component, args: [{
3850
3864
  selector: 'co-relation-contact-options',
3851
- template: "\n <div class=\"relation-contact-options-type-label-wrapper\">\n <div class=\"relation-contact-options-type-label\" [textContent]=\"'EMAIL' | reLocalize\"></div>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\" class=\"relation-contact-options-plus-icon\"\n (click)=\"showNewEmail = true\"></co-icon>\n </div>\n <co-relation-contact-option class=\"new-contact-option\" *ngIf=\"showNewEmail\" [type]=\"commType.Email\"\n (saveClick)=\"addContactOption($event)\"></co-relation-contact-option>\n <co-relation-contact-option-list [dragDropDisabled]=\"showNewEmail\" [collection]=\"emailContactOptions\" (deleteClick)=\"handleDeleteOption($event)\"></co-relation-contact-option-list>\n <div class=\"relation-contact-options-type-label-wrapper\">\n <div class=\"relation-contact-options-type-label\" [textContent]=\"'PHONE' | reLocalize\"></div>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\" class=\"relation-contact-options-plus-icon\"\n (click)=\"showNewPhone = true\"></co-icon>\n </div>\n <co-relation-contact-option class=\"new-contact-option\" *ngIf=\"showNewPhone\" [type]=\"commType.Telephone\"\n (saveClick)=\"addContactOption($event)\"></co-relation-contact-option>\n <co-relation-contact-option-list [dragDropDisabled]=\"showNewPhone\" [collection]=\"phoneContactOptions\" (deleteClick)=\"handleDeleteOption($event)\"></co-relation-contact-option-list>\n <div class=\"relation-contact-options-type-label-wrapper\">\n <div class=\"relation-contact-options-type-label\" [textContent]=\"'OTHER' | reLocalize\"></div>\n <co-icon #overlayParent [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\" class=\"relation-contact-options-plus-icon\"\n (click)=\"showNewOtherPopup()\"></co-icon>\n </div>\n <co-relation-contact-option class=\"new-contact-option\" *ngIf=\"showNewOther\" [type]=\"newOtherType\"\n (saveClick)=\"addContactOption($event)\"></co-relation-contact-option>\n <co-relation-contact-option-list [dragDropDisabled]=\"showNewOther\" [collection]=\"otherContactOptions\" (deleteClick)=\"handleDeleteOption($event)\"></co-relation-contact-option-list>\n ",
3865
+ template: "\n <div class=\"relation-contact-email\">\n <co-relation-contact-option-list [dragDropDisabled]=\"showNewEmail\" [collection]=\"emailContactOptions\" (deleteClick)=\"handleDeleteOption($event)\"></co-relation-contact-option-list>\n <co-relation-contact-option class=\"new-contact-option\" *ngIf=\"showNewEmail\" [type]=\"commType.Email\"\n (saveClick)=\"addContactOption($event)\" (deleteClick)=\"hideNewEmail()\"></co-relation-contact-option>\n <div class=\"relation-contact-options-type-label-wrapper\">\n <co-button [label]=\"'EMAIL' | reLocalize\" [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\" class=\"relation-contact-options-type-label\"\n (click)=\"showNewEmail = true\"></co-button>\n </div>\n </div>\n <div class=\"relation-contact-phone\">\n <co-relation-contact-option-list [dragDropDisabled]=\"showNewPhone\" [collection]=\"phoneContactOptions\" (deleteClick)=\"handleDeleteOption($event)\"></co-relation-contact-option-list>\n <co-relation-contact-option class=\"new-contact-option\" *ngIf=\"showNewPhone\" [type]=\"commType.Telephone\"\n (saveClick)=\"addContactOption($event)\" (deleteClick)=\"hideNewPhone()\"></co-relation-contact-option>\n <div class=\"relation-contact-options-type-label-wrapper\">\n <co-button [label]=\"'PHONE' | reLocalize\" [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\" class=\"relation-contact-options-type-label\"\n (click)=\"showNewPhone = true\"></co-button>\n </div>\n </div>\n <!--div class=\"relation-contact-options-type-label-wrapper\">\n <div class=\"relation-contact-options-type-label\" [textContent]=\"'OTHER' | reLocalize\"></div>\n <co-icon #overlayParent [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\" class=\"relation-contact-options-plus-icon\"\n (click)=\"showNewOtherPopup()\"></co-icon>\n </div>\n <co-relation-contact-option class=\"new-contact-option\" *ngIf=\"showNewOther\" [type]=\"newOtherType\"\n (saveClick)=\"addContactOption($event)\"></co-relation-contact-option>\n <co-relation-contact-option-list [dragDropDisabled]=\"showNewOther\" [collection]=\"otherContactOptions\" (deleteClick)=\"handleDeleteOption($event)\"></co-relation-contact-option-list-->\n",
3852
3866
  providers: [
3853
3867
  i1.OverlayService
3854
3868
  ],
@@ -3864,6 +3878,7 @@
3864
3878
  { type: i0.ChangeDetectorRef }
3865
3879
  ]; };
3866
3880
  RelationContactOptionsComponent.propDecorators = {
3881
+ deleteClick: [{ type: i0.Output }],
3867
3882
  overlayParent: [{ type: i0.ViewChild, args: ['overlayParent', { read: i0.ElementRef },] }],
3868
3883
  showClass: [{ type: i0.HostBinding, args: ['class.co-relation-contact-options',] }],
3869
3884
  handleKeyDown: [{ type: i0.HostListener, args: ['document:keydown', ['$event'],] }],
@@ -3953,7 +3968,7 @@
3953
3968
  RelationContactOptionComponent.decorators = [
3954
3969
  { type: i0.Component, args: [{
3955
3970
  selector: 'co-relation-contact-option',
3956
- template: "\n <div class=\"relation-contact-option-sequence\" *ngIf=\"model.sequence !== null && model.sequence !== undefined\"\n [textContent]=\"model.sequence\"></div>\n <co-input-text #input\n [placeholder]=\"label | reLocalize\"\n [model]=\"model.value\"\n [leftIconData]=\"iconCacheService.getIcon(iconType)\"\n [showSaveCancel]=\"true\"\n ></co-input-text>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.TrashBin)\" (click)=\"deleteClick.emit(model)\"></co-icon>\n ",
3971
+ template: "\n <div class=\"relation-contact-option-sequence\" *ngIf=\"model.sequence !== null && model.sequence !== undefined\"\n [textContent]=\"model.sequence\"></div>\n <co-input-text #input\n [placeholder]=\"label | reLocalize\"\n [model]=\"model.value\"\n [leftIconData]=\"iconCacheService.getIcon(iconType)\"\n [showSaveCancel]=\"true\"\n ></co-input-text>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.TrashBin)\" (click)=\"deleteClick.emit(model)\" class=\"relation-contact-delete\"></co-icon>\n ",
3957
3972
  encapsulation: i0.ViewEncapsulation.None
3958
3973
  },] }
3959
3974
  ];
@@ -4073,7 +4088,8 @@
4073
4088
  i1.IconModule,
4074
4089
  i1.ClickoutsideModule,
4075
4090
  i1.OverlayModule,
4076
- dragDrop.DragDropModule
4091
+ dragDrop.DragDropModule,
4092
+ i1.ButtonModule
4077
4093
  ],
4078
4094
  declarations: [
4079
4095
  RelationContactOptionsComponent,