Refactor SDK Api Changes Side affects ...

This commit is contained in:
2026-04-17 17:50:35 +03:30
parent a986295e19
commit ed8690f2be
39 changed files with 593 additions and 583 deletions
@@ -1,14 +1,3 @@
import { Component, Input } from '@angular/core';
import {
XReferenceDto,
defaultReferenceDto,
prepareReferenceDtoFields,
} from 'x-mabsut-api-sdk';
import {
VBaseDtoComponent,
VModelFieldDescriptor,
VModelValidationResult,
} from '../v-dto/v-dto.typings';
import {
toXString,
getFieldNames,
@@ -17,11 +6,22 @@ import {
isNullOrUndefined,
isNullOrEmptyString,
} from 'x-framework-core';
import {
XReferenceDto,
defaultReferenceDto,
prepareReferenceDtoFields,
} from 'x-saherelm-api-sdk';
import {
VReferencePresentType,
isVReferencePresentType,
VReferencePresentTypeIdentifier,
} from './v-reference.typings';
import {
VBaseDtoComponent,
VModelFieldDescriptor,
VModelValidationResult,
} from '../v-dto/v-dto.typings';
import { Component, Input } from '@angular/core';
@Component({
selector: 'v-reference',
@@ -133,7 +133,7 @@ export class VReferenceComponent extends VBaseDtoComponent<XReferenceDto<any>> {
* @returns
*/
validate(
model?: Partial<XReferenceDto<any>>
model?: Partial<XReferenceDto<any>>,
): VModelValidationResult<XReferenceDto<any>> {
//
let result: VModelValidationResult<XReferenceDto<any>> = undefined;
@@ -156,7 +156,7 @@ export class VReferenceComponent extends VBaseDtoComponent<XReferenceDto<any>> {
if (!isValid) {
//
validationErrors.push(
this.getExceptionMessage(XExceptionIDs.InvalidArgs)
this.getExceptionMessage(XExceptionIDs.InvalidArgs),
);
} else {
//
@@ -169,8 +169,8 @@ export class VReferenceComponent extends VBaseDtoComponent<XReferenceDto<any>> {
//
validationErrors.push(
`${this.resourceProvider(
this.AppResourceIDs.index
)}: ${this.getExceptionMessage(XExceptionIDs.InvalidArgs)}`
this.AppResourceIDs.index,
)}: ${this.getExceptionMessage(XExceptionIDs.InvalidArgs)}`,
);
}
@@ -181,8 +181,8 @@ export class VReferenceComponent extends VBaseDtoComponent<XReferenceDto<any>> {
//
validationErrors.push(
`${this.resourceProvider(
this.AppResourceIDs.provided_for
)}: ${this.getExceptionMessage(XExceptionIDs.InvalidArgs)}`
this.AppResourceIDs.provided_for,
)}: ${this.getExceptionMessage(XExceptionIDs.InvalidArgs)}`,
);
}
@@ -193,8 +193,8 @@ export class VReferenceComponent extends VBaseDtoComponent<XReferenceDto<any>> {
//
validationErrors.push(
`${this.resourceProvider(
this.AppResourceIDs.referenced_to
)}: ${this.getExceptionMessage(XExceptionIDs.InvalidArgs)}`
this.AppResourceIDs.referenced_to,
)}: ${this.getExceptionMessage(XExceptionIDs.InvalidArgs)}`,
);
}
}