@elite.framework/ng.core 1.0.9 → 1.0.10

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.
@@ -1328,7 +1328,7 @@ class AttachmentTypeComponent extends FieldType {
1328
1328
  constructor(messageService) {
1329
1329
  super();
1330
1330
  this.messageService = messageService;
1331
- this.url = this.env.apiUrl + '/ESAPI/files';
1331
+ this.url = this.env.apiUrl + '/files';
1332
1332
  }
1333
1333
  get attachments() {
1334
1334
  return this.formControl.value || [];
@@ -3746,9 +3746,15 @@ class GenericSelectorTypeComponent extends FieldType {
3746
3746
  const vf = this.to['valueField'] || 'id';
3747
3747
  if (this.to['multiple']) {
3748
3748
  this.formControl.setValue(Array.isArray(val) ? val.map((c) => c[vf]) : []);
3749
+ if (this.props.change) {
3750
+ this.props.change(this.field, { item: this.selectedItem });
3751
+ }
3749
3752
  }
3750
3753
  else {
3751
3754
  this.formControl.setValue(val?.[vf] ?? null);
3755
+ if (this.props.change) {
3756
+ this.props.change(this.field, { item: this.selectedItem });
3757
+ }
3752
3758
  }
3753
3759
  }
3754
3760
  ngOnInit() {