|
|
@ -1,7 +1,6 @@ |
|
|
import { ABP, escapeHtmlChars } from '@abp/ng.core'; |
|
|
import { ABP, escapeHtmlChars } from '@abp/ng.core'; |
|
|
import { InjectFlags, InjectOptions, InjectionToken, Type } from '@angular/core'; |
|
|
import { InjectFlags, InjectOptions, InjectionToken, Type } from '@angular/core'; |
|
|
import { Observable, of } from 'rxjs'; |
|
|
import { Observable, of } from 'rxjs'; |
|
|
import { O } from 'ts-toolbelt'; |
|
|
|
|
|
import { ActionCallback } from './actions'; |
|
|
import { ActionCallback } from './actions'; |
|
|
import { |
|
|
import { |
|
|
Prop, |
|
|
Prop, |
|
|
@ -13,6 +12,7 @@ import { |
|
|
PropsFactory, |
|
|
PropsFactory, |
|
|
} from './props'; |
|
|
} from './props'; |
|
|
import { FormPropTooltip } from './form-props'; |
|
|
import { FormPropTooltip } from './form-props'; |
|
|
|
|
|
import { FilteredWithOptions, PartialWithOptions } from '../utils/model.utils'; |
|
|
|
|
|
|
|
|
export class EntityPropList<R = any> extends PropList<R, EntityProp<R>> {} |
|
|
export class EntityPropList<R = any> extends PropList<R, EntityProp<R>> {} |
|
|
|
|
|
|
|
|
@ -71,8 +71,7 @@ export class EntityProp<R = any> extends Prop<R> { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export type EntityPropOptions<R = any> = O.Optional< |
|
|
type OptionalKeys = |
|
|
O.Writable<EntityProp<R>>, |
|
|
|
|
|
| 'permission' |
|
|
| 'permission' |
|
|
| 'visible' |
|
|
| 'visible' |
|
|
| 'columnVisible' |
|
|
| 'columnVisible' |
|
|
@ -83,8 +82,9 @@ export type EntityPropOptions<R = any> = O.Optional< |
|
|
| 'valueResolver' |
|
|
| 'valueResolver' |
|
|
| 'action' |
|
|
| 'action' |
|
|
| 'component' |
|
|
| 'component' |
|
|
| 'enumList' |
|
|
| 'enumList'; |
|
|
>; |
|
|
export type EntityPropOptions<R = any> = PartialWithOptions<EntityProp<R>, OptionalKeys> & |
|
|
|
|
|
FilteredWithOptions<EntityProp<R>, OptionalKeys>; |
|
|
|
|
|
|
|
|
export type EntityPropDefaults<R = any> = Record<string, EntityProp<R>[]>; |
|
|
export type EntityPropDefaults<R = any> = Record<string, EntityProp<R>[]>; |
|
|
export type EntityPropContributorCallback<R = any> = PropContributorCallback<EntityPropList<R>>; |
|
|
export type EntityPropContributorCallback<R = any> = PropContributorCallback<EntityPropList<R>>; |
|
|
|