File

projects/aoc-client/core/utils/aoc-misc.ts

Index

Properties
Methods

Constructor

constructor(aocModelManager: AocModelManager)
Parameters :
Name Type Optional
aocModelManager AocModelManager No

Methods

cloneAbstractControl
cloneAbstractControl(control: T)
Type parameters :
  • T
Parameters :
Name Type Optional
control T No
Returns : T
deepAssign
deepAssign(model: T, obj: Record)
Type parameters :
  • T
Parameters :
Name Type Optional
model T No
obj Record<string | > No
Returns : void
deepClone
deepClone(obj: any, cloneFilter: any)
Parameters :
Name Type Optional Default value
obj any No
cloneFilter any No {}
Returns : any
diff
diff(m1: any, m2: any)

Calculate the difference between two objects

Parameters :
Name Type Optional
m1 any No
m2 any No
Returns : any
equal
equal(object1: any, object2: any)
Parameters :
Name Type Optional
object1 any No
object2 any No
Returns : boolean
extractReset
extractReset(control: ObjectLike<AbstractControl | reset>)

Extract a reset observable from control

Parameters :
Name Type Optional
control ObjectLike<AbstractControl | reset> No
Returns : Observable<void>
extractTouchedChanges
extractTouchedChanges(control: AbstractControl)

Extract a touched changed observable from an abstract control

Parameters :
Name Type Optional Description
control AbstractControl No

AbstractControl like object with markAsTouched method

Returns : Observable<boolean>
modelArraySort
modelArraySort(a: any, b: any)
Parameters :
Name Type Optional
a any No
b any No
Returns : number
modelEqual
modelEqual(m1: any, m2: any, logger?: AocUiLoggerInterface)

UNUSED

Parameters :
Name Type Optional
m1 any No
m2 any No
logger AocUiLoggerInterface Yes
Returns : any
modelEqual2
modelEqual2(m1: AocModel, m2: AocModel, modelEqualOptions?: AocModelEqualOptions)
Parameters :
Name Type Optional
m1 AocModel No
m2 AocModel No
modelEqualOptions AocModelEqualOptions Yes
Returns : boolean
modelShallowClone
modelShallowClone(modelClass, modelToClone: T)
Type parameters :
  • T
Parameters :
Name Type Optional
modelClass No
modelToClone T No
Returns : T

Properties

modelReservedKeys
Type : []
Default value : [ 'modification_time', 'modification_user', '__save__', '__delete__', '__timeOfRequest__', '__isRef__' ]

results matching ""

    No results matching ""