@mediusinc/mng-commons 0.8.0 → 0.9.0
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/esm2020/lib/api/utils/medius-rest.util.mjs +6 -6
- package/esm2020/lib/components/action/action.component.mjs +3 -2
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +6 -5
- package/esm2020/lib/components/action/route/action-route.component.mjs +2 -2
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +4 -4
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +1 -1
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +14 -15
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -4
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +3 -2
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +11 -11
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +10 -10
- package/esm2020/lib/components/tableview/table/table.component.mjs +10 -12
- package/esm2020/lib/components/tableview/tableview.component.mjs +2 -2
- package/esm2020/lib/descriptors/action.descriptor.mjs +14 -71
- package/esm2020/lib/descriptors/column.descriptor.mjs +22 -33
- package/esm2020/lib/descriptors/editor.descriptor.mjs +3 -11
- package/esm2020/lib/descriptors/field.descriptor.mjs +31 -95
- package/esm2020/lib/descriptors/filter.descriptor.mjs +6 -39
- package/esm2020/lib/descriptors/index.mjs +1 -3
- package/esm2020/lib/descriptors/interfaces/field-config.interface.mjs +2 -0
- package/esm2020/lib/descriptors/interfaces/index.mjs +3 -0
- package/esm2020/lib/descriptors/interfaces/lookup-descriptor.interface.mjs +2 -0
- package/esm2020/lib/descriptors/table.descriptor.mjs +6 -23
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +5 -5
- package/esm2020/lib/descriptors/types/action.type.mjs +53 -0
- package/esm2020/lib/descriptors/types/column.type.mjs +11 -0
- package/esm2020/lib/descriptors/types/editor.type.mjs +8 -0
- package/esm2020/lib/descriptors/types/field.type.mjs +53 -0
- package/esm2020/lib/descriptors/types/filter.type.mjs +31 -0
- package/esm2020/lib/descriptors/types/index.mjs +7 -0
- package/esm2020/lib/descriptors/types/table.type.mjs +17 -0
- package/esm2020/lib/pipes/enum.pipe.mjs +2 -2
- package/esm2020/lib/services/action-executor.service.mjs +8 -7
- package/esm2020/lib/services/commons.service.mjs +5 -21
- package/esm2020/lib/types/type.model.mjs +1 -1
- package/esm2020/lib/utils/editor-formly.util.mjs +16 -15
- package/esm2020/lib/utils/model.util.mjs +1 -1
- package/esm2020/lib/utils/styles.util.mjs +9 -9
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/mediusinc-mng-commons.mjs +325 -368
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +324 -368
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/utils/medius-rest.util.d.ts +3 -2
- package/lib/components/action/action.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +3 -2
- package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +2 -1
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +5 -4
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +8 -7
- package/lib/components/tableview/table/table.component.d.ts +3 -2
- package/lib/descriptors/action.descriptor.d.ts +9 -59
- package/lib/descriptors/column.descriptor.d.ts +3 -13
- package/lib/descriptors/editor.descriptor.d.ts +2 -9
- package/lib/descriptors/field.descriptor.d.ts +17 -72
- package/lib/descriptors/filter.descriptor.d.ts +8 -38
- package/lib/descriptors/index.d.ts +0 -2
- package/lib/descriptors/{field.descriptor.interface.d.ts → interfaces/field-config.interface.d.ts} +0 -0
- package/lib/descriptors/interfaces/index.d.ts +2 -0
- package/lib/descriptors/{lookup.descriptor.d.ts → interfaces/lookup-descriptor.interface.d.ts} +3 -3
- package/lib/descriptors/table.descriptor.d.ts +7 -21
- package/lib/descriptors/types/action.type.d.ts +45 -0
- package/lib/descriptors/types/column.type.d.ts +9 -0
- package/lib/descriptors/types/editor.type.d.ts +6 -0
- package/lib/descriptors/types/field.type.d.ts +44 -0
- package/lib/descriptors/types/filter.type.d.ts +27 -0
- package/lib/descriptors/types/index.d.ts +6 -0
- package/lib/descriptors/types/table.type.d.ts +13 -0
- package/lib/types/type.model.d.ts +2 -2
- package/lib/utils/model.util.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/esm2020/lib/descriptors/field.descriptor.interface.mjs +0 -2
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +0 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Params } from '@angular/router';
|
|
2
2
|
import { FilterMetadata, LazyLoadEvent } from 'primeng/api';
|
|
3
3
|
import { FilterDescriptor } from '../../descriptors';
|
|
4
|
+
import { FilterTypeEnum } from '../../descriptors/types';
|
|
4
5
|
import { MatchModeMapType } from '../../types';
|
|
5
6
|
import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
|
|
6
7
|
export declare class MediusRestUtil {
|
|
@@ -9,6 +10,6 @@ export declare class MediusRestUtil {
|
|
|
9
10
|
static fromPrimeLazyLoadEventToAngularQueryParams(event: LazyLoadEvent, defaultItemsPerPage?: number, defaultOffset?: number): Params;
|
|
10
11
|
static fromPrimeLazyLoadEventToMediusQueryParams(event: LazyLoadEvent): MediusQueryParam;
|
|
11
12
|
static addMediusFilterFromPrimeFilterMetadata(queryParamBuilder: MediusQueryParamBuilder, property: string, filterMetadata: FilterMetadata): void;
|
|
12
|
-
static getMediusFilterMatchTypeFromPrimeMatchMode(matchMode: string, dataType?:
|
|
13
|
-
static getMapping(matchMode: string, dataType?:
|
|
13
|
+
static getMediusFilterMatchTypeFromPrimeMatchMode(matchMode: string, dataType?: FilterTypeEnum): MediusFilterMatchType;
|
|
14
|
+
static getMapping(matchMode: string, dataType?: FilterTypeEnum, idx?: number): MatchModeMapType | null;
|
|
14
15
|
}
|
|
@@ -5,7 +5,8 @@ import { ConfirmationService } from 'primeng/api';
|
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { MediusQueryParam } from '../../api/models';
|
|
7
7
|
import { IDataProvider } from '../../data-providers';
|
|
8
|
-
import { ActionDescriptor,
|
|
8
|
+
import { ActionDescriptor, ActionLinkDescriptor } from '../../descriptors';
|
|
9
|
+
import { ActionLevelEnum } from '../../descriptors/types';
|
|
9
10
|
import { IViewContainer } from '../../models';
|
|
10
11
|
import { MngActionExecutorService, MngViewContainerComponentService } from '../../services';
|
|
11
12
|
import { IdType } from '../../types';
|
package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import { FieldGroupDescriptor } from '../../../../../descriptors';
|
|
4
|
+
import { FieldGroupTypeEnum } from '../../../../../descriptors/types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class MngFormlyFieldFieldsetComponent extends FieldType implements OnInit {
|
|
6
|
-
readonly typeFieldset =
|
|
7
|
-
readonly typeLogical =
|
|
7
|
+
readonly typeFieldset = FieldGroupTypeEnum.Fieldset;
|
|
8
|
+
readonly typeLogical = FieldGroupTypeEnum.Logical;
|
|
8
9
|
descriptor?: FieldGroupDescriptor<any>;
|
|
9
10
|
ngOnInit(): void;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldFieldsetComponent, never>;
|
|
@@ -4,7 +4,8 @@ import { FieldType } from '@ngx-formly/core';
|
|
|
4
4
|
import { Message } from 'primeng/api';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
6
|
import { MediusQueryResult } from '../../../../../api/models';
|
|
7
|
-
import {
|
|
7
|
+
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
8
|
+
import { FieldLookupConfig } from '../../../../../descriptors/interfaces';
|
|
8
9
|
import { MngTableComponent } from '../../../../tableview';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class MngFormlyFieldLookupDialogComponent<T, ET> extends FieldType implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { PrimeNGConfig, SelectItem } from 'primeng/api';
|
|
3
|
-
import { FilterDescriptor, FilterLookupDescriptor
|
|
3
|
+
import { FilterDescriptor, FilterLookupDescriptor } from '../../../../descriptors';
|
|
4
|
+
import { FilterLookupTypeEnum, TableFilterDisplayEnum } from '../../../../descriptors/types';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
@@ -8,10 +9,10 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
*/
|
|
9
10
|
export declare class MngTableColumnFilterComponent<T> implements OnInit {
|
|
10
11
|
private primeConfig;
|
|
11
|
-
readonly lookupTypeDropdown:
|
|
12
|
-
readonly lookupTypeAutocomplete:
|
|
12
|
+
readonly lookupTypeDropdown: FilterLookupTypeEnum;
|
|
13
|
+
readonly lookupTypeAutocomplete: FilterLookupTypeEnum;
|
|
13
14
|
descriptor: FilterDescriptor<T>;
|
|
14
|
-
display:
|
|
15
|
+
display: TableFilterDisplayEnum;
|
|
15
16
|
lookupDescriptor?: FilterLookupDescriptor<T>;
|
|
16
17
|
primeField: string;
|
|
17
18
|
primeType: string;
|
|
@@ -2,18 +2,19 @@ import { ElementRef, OnInit } from '@angular/core';
|
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { MessageService } from 'primeng/api';
|
|
4
4
|
import { ColumnDescriptor } from '../../../../descriptors';
|
|
5
|
+
import { ColumnTypeEnum } from '../../../../descriptors/types';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class MngTableColumnValueComponent<T, TT> implements OnInit {
|
|
7
8
|
private elementRef;
|
|
8
9
|
private messageService;
|
|
9
10
|
private translate;
|
|
10
|
-
readonly columnTypeString:
|
|
11
|
-
readonly columnTypeNumber:
|
|
12
|
-
readonly columnTypeCurrency:
|
|
13
|
-
readonly columnTypeBoolean:
|
|
14
|
-
readonly columnTypeDate:
|
|
15
|
-
readonly columnTypeEnum:
|
|
16
|
-
readonly columnTypeCustom:
|
|
11
|
+
readonly columnTypeString: ColumnTypeEnum;
|
|
12
|
+
readonly columnTypeNumber: ColumnTypeEnum;
|
|
13
|
+
readonly columnTypeCurrency: ColumnTypeEnum;
|
|
14
|
+
readonly columnTypeBoolean: ColumnTypeEnum;
|
|
15
|
+
readonly columnTypeDate: ColumnTypeEnum;
|
|
16
|
+
readonly columnTypeEnum: ColumnTypeEnum;
|
|
17
|
+
readonly columnTypeCustom: ColumnTypeEnum;
|
|
17
18
|
descriptor: ColumnDescriptor<T, TT>;
|
|
18
19
|
item: any;
|
|
19
20
|
styleMaxWidth: number | null;
|
|
@@ -7,6 +7,7 @@ import { Observable } from 'rxjs';
|
|
|
7
7
|
import { MediusQueryResult } from '../../../api/models';
|
|
8
8
|
import { ITableDataProvider } from '../../../data-providers';
|
|
9
9
|
import { ActionDescriptor, ColumnDescriptor, TableDescriptor } from '../../../descriptors';
|
|
10
|
+
import { TableFilterDisplayEnum } from '../../../descriptors/types';
|
|
10
11
|
import { MngComponentDirective, MngTemplateDirective } from '../../../directives';
|
|
11
12
|
import { IViewContainer } from '../../../models';
|
|
12
13
|
import { MngActionExecutorService, MngViewContainerComponentService } from '../../../services';
|
|
@@ -20,8 +21,8 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
20
21
|
private translate;
|
|
21
22
|
private actionExecutor;
|
|
22
23
|
private viewContainerService;
|
|
23
|
-
readonly filterDisplayRow:
|
|
24
|
-
readonly filterDisplayMenu:
|
|
24
|
+
readonly filterDisplayRow: TableFilterDisplayEnum;
|
|
25
|
+
readonly filterDisplayMenu: TableFilterDisplayEnum;
|
|
25
26
|
descriptor: TableDescriptor<T>;
|
|
26
27
|
items?: Observable<Array<T>> | Array<T>;
|
|
27
28
|
queryResult?: Observable<MediusQueryResult<T>> | MediusQueryResult<T>;
|
|
@@ -6,6 +6,7 @@ import { ActionContext, ActionContextValidation } from '../components/action/mod
|
|
|
6
6
|
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
7
7
|
import { ClassType, IdType } from '../types';
|
|
8
8
|
import { EditorDescriptor, ModelDescriptor } from './';
|
|
9
|
+
import { ActionActivationTriggerEnum, ActionEditorDialogSizeEnum, ActionEditorSubmitTypeEnum, ActionLevelEnum, ActionPositionEnum, ActionSizeEnum, ActionTypeEnum } from './types';
|
|
9
10
|
export declare class ActionDescriptor<T> {
|
|
10
11
|
protected readonly _model: ModelDescriptor<T> | null;
|
|
11
12
|
protected readonly _actionName: string;
|
|
@@ -23,7 +24,7 @@ export declare class ActionDescriptor<T> {
|
|
|
23
24
|
protected _icon?: string | null;
|
|
24
25
|
protected _tooltip?: string | null;
|
|
25
26
|
protected _className: string;
|
|
26
|
-
protected _size:
|
|
27
|
+
protected _size: ActionSizeEnum;
|
|
27
28
|
protected _isStyleText: boolean;
|
|
28
29
|
protected _isStyleOutlined: boolean;
|
|
29
30
|
protected _isStyleRaised: boolean;
|
|
@@ -70,7 +71,7 @@ export declare class ActionDescriptor<T> {
|
|
|
70
71
|
get isStyleText(): boolean;
|
|
71
72
|
get isStyleOutlined(): boolean;
|
|
72
73
|
get isStyleRaised(): boolean;
|
|
73
|
-
get size():
|
|
74
|
+
get size(): ActionSizeEnum;
|
|
74
75
|
get isSizeExtraSmall(): boolean;
|
|
75
76
|
get isSizeSmall(): boolean;
|
|
76
77
|
get isSizeLarge(): boolean;
|
|
@@ -109,7 +110,7 @@ export declare class ActionDescriptor<T> {
|
|
|
109
110
|
withIcon(icon: string | null): this;
|
|
110
111
|
withTooltip(tooltip: string | null): this;
|
|
111
112
|
withClassName(className: string): this;
|
|
112
|
-
withSize(size?:
|
|
113
|
+
withSize(size?: ActionSizeEnum): this;
|
|
113
114
|
withStyle(styleText?: boolean, styleOutlined?: boolean, styleRaised?: boolean): this;
|
|
114
115
|
withPosition(position: ActionPositionEnum): this;
|
|
115
116
|
/**
|
|
@@ -128,15 +129,6 @@ export declare class ActionDescriptor<T> {
|
|
|
128
129
|
withAfterRunAction<RT>(action: ActionDescriptor<RT>): this;
|
|
129
130
|
withOnRunErrorAction<RT>(action: ActionDescriptor<RT>): this;
|
|
130
131
|
}
|
|
131
|
-
export declare namespace ActionDescriptor {
|
|
132
|
-
enum SizeEnum {
|
|
133
|
-
ExtraSmall = 0,
|
|
134
|
-
Small = 1,
|
|
135
|
-
Normal = 2,
|
|
136
|
-
Large = 3,
|
|
137
|
-
ExtraLarge = 4
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
132
|
export declare class ActionSimpleDescriptor<T> extends ActionDescriptor<T> {
|
|
141
133
|
constructor(actionName: string, modelType?: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
142
134
|
}
|
|
@@ -147,7 +139,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
147
139
|
protected _hasFetchNotificationSuccess: boolean;
|
|
148
140
|
protected _fetchNotificationSuccessTitle?: string;
|
|
149
141
|
protected _fetchNotificationSuccessMessage?: string;
|
|
150
|
-
protected _dialogSize:
|
|
142
|
+
protected _dialogSize: ActionEditorDialogSizeEnum;
|
|
151
143
|
protected _dialogClassName?: string;
|
|
152
144
|
protected _dataProvider?: IEditorDataProvider<T, any>;
|
|
153
145
|
protected _fetchFunction?: (ctx: ActionContext<T, any>) => Observable<T>;
|
|
@@ -156,7 +148,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
156
148
|
constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
157
149
|
get editorTitle(): string | null | undefined;
|
|
158
150
|
get editorDescriptor(): EditorDescriptor<T>;
|
|
159
|
-
get dialogSize():
|
|
151
|
+
get dialogSize(): ActionEditorDialogSizeEnum;
|
|
160
152
|
get dialogClassName(): string | undefined;
|
|
161
153
|
get hasFetchNotificationSuccess(): boolean;
|
|
162
154
|
get fetchNotificationSuccessTitle(): string | undefined;
|
|
@@ -170,7 +162,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
170
162
|
withEditorTitle(title: string | null): this;
|
|
171
163
|
withDataProvider(dataProvider: IEditorDataProvider<T, any>): this;
|
|
172
164
|
withServiceType<S>(serviceType: Type<S>): this;
|
|
173
|
-
withDialogSize(size?:
|
|
165
|
+
withDialogSize(size?: ActionEditorDialogSizeEnum): this;
|
|
174
166
|
withDialogClassName(className: string): this;
|
|
175
167
|
withRunFunction<S>(fn: (ctx: ActionContext<T, S>) => Observable<T>): this;
|
|
176
168
|
withFetchFunction<S>(fn: (ctx: ActionContext<T, S>) => Observable<T>): this;
|
|
@@ -180,26 +172,11 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
|
180
172
|
withEditorActions(actions: ActionDescriptor<T>[]): this;
|
|
181
173
|
withEditorComponent(editorComponent: Type<any>): this;
|
|
182
174
|
}
|
|
183
|
-
export declare namespace ActionEditorDescriptor {
|
|
184
|
-
enum DialogSizeEnum {
|
|
185
|
-
ExtraSmall = 0,
|
|
186
|
-
Small = 1,
|
|
187
|
-
Normal = 2,
|
|
188
|
-
Large = 3,
|
|
189
|
-
ExtraLarge = 4
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
175
|
export declare class ActionEditorSubmitDescriptor<T> extends ActionDescriptor<T> {
|
|
193
176
|
private readonly _editorAction;
|
|
194
177
|
private readonly _submitType;
|
|
195
|
-
constructor(editorAction: ActionEditorDescriptor<T>, submitType?:
|
|
196
|
-
get submitType():
|
|
197
|
-
}
|
|
198
|
-
export declare namespace ActionEditorSubmitDescriptor {
|
|
199
|
-
enum TypeEnum {
|
|
200
|
-
Submit = 0,
|
|
201
|
-
Cancel = 1
|
|
202
|
-
}
|
|
178
|
+
constructor(editorAction: ActionEditorDescriptor<T>, submitType?: ActionEditorSubmitTypeEnum);
|
|
179
|
+
get submitType(): ActionEditorSubmitTypeEnum;
|
|
203
180
|
}
|
|
204
181
|
export declare class ActionEditorDetailsDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
205
182
|
static readonly ACTION_NAME = "details";
|
|
@@ -248,30 +225,3 @@ export declare class ActionLinkDescriptor<T> extends ActionDescriptor<T> {
|
|
|
248
225
|
withTarget(target?: '_self' | '_blank'): this;
|
|
249
226
|
withStyleLink(isStyleLink: boolean): this;
|
|
250
227
|
}
|
|
251
|
-
export declare enum ActionPositionEnum {
|
|
252
|
-
ToolbarLeft = 0,
|
|
253
|
-
ToolbarRight = 1,
|
|
254
|
-
TableHeader = 2,
|
|
255
|
-
RowInline = 3,
|
|
256
|
-
RowClick = 4,
|
|
257
|
-
FooterLeft = 5,
|
|
258
|
-
FooterRight = 6
|
|
259
|
-
}
|
|
260
|
-
export declare enum ActionActivationTriggerEnum {
|
|
261
|
-
OnClick = 0,
|
|
262
|
-
OnRoute = 1
|
|
263
|
-
}
|
|
264
|
-
export declare enum ActionTypeEnum {
|
|
265
|
-
Direct = 0,
|
|
266
|
-
Editor = 1
|
|
267
|
-
}
|
|
268
|
-
export declare enum ActionLevelEnum {
|
|
269
|
-
Default = 0,
|
|
270
|
-
Primary = 1,
|
|
271
|
-
Secondary = 2,
|
|
272
|
-
Info = 3,
|
|
273
|
-
Help = 4,
|
|
274
|
-
Success = 5,
|
|
275
|
-
Warning = 6,
|
|
276
|
-
Danger = 7
|
|
277
|
-
}
|
|
@@ -3,6 +3,7 @@ import { IColumnValueComponent } from '../models';
|
|
|
3
3
|
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
4
4
|
import { FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor } from './filter.descriptor';
|
|
5
5
|
import { TableDescriptor } from './table.descriptor';
|
|
6
|
+
import { ColumnTypeEnum } from './types';
|
|
6
7
|
export declare class ColumnDescriptor<T, TT> {
|
|
7
8
|
private readonly _table;
|
|
8
9
|
private readonly _property;
|
|
@@ -32,7 +33,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
32
33
|
private _customComponentType?;
|
|
33
34
|
private _hasCopyToClipboard;
|
|
34
35
|
constructor(table: TableDescriptor<TT>, property: string);
|
|
35
|
-
get columnType():
|
|
36
|
+
get columnType(): ColumnTypeEnum;
|
|
36
37
|
get title(): string | undefined;
|
|
37
38
|
get jsonPath(): string | undefined;
|
|
38
39
|
get isSortEnabled(): boolean;
|
|
@@ -59,7 +60,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
59
60
|
get currencyDisplay(): "symbol" | "code" | "name" | undefined;
|
|
60
61
|
get currencyFromProperty(): string | undefined;
|
|
61
62
|
get hasCopyToClipboard(): boolean;
|
|
62
|
-
asType(type?:
|
|
63
|
+
asType(type?: ColumnTypeEnum): this;
|
|
63
64
|
asNumber(displayFormat?: string, locale?: string): this;
|
|
64
65
|
asCurrency(currencyCode?: string, currencyFromProperty?: string, currencyDisplay?: 'symbol' | 'code' | 'name', displayFormat?: string, locale?: string): this;
|
|
65
66
|
asDate(displayFormat?: string): this;
|
|
@@ -78,14 +79,3 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
78
79
|
withCopyToClipboard(hasCopyToCliboard?: boolean): this;
|
|
79
80
|
copy(): ColumnDescriptor<T, TT>;
|
|
80
81
|
}
|
|
81
|
-
export declare namespace ColumnDescriptor {
|
|
82
|
-
enum TypeEnum {
|
|
83
|
-
String = 0,
|
|
84
|
-
Number = 1,
|
|
85
|
-
Currency = 2,
|
|
86
|
-
Boolean = 3,
|
|
87
|
-
Date = 4,
|
|
88
|
-
Enum = 5,
|
|
89
|
-
Custom = 6
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClassType, EnumConstantType, EnumType, MngFieldValidationMessage, MngFieldValidator } from '../types';
|
|
2
2
|
import { AFieldDescriptor, FieldGroupDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor, ModelDescriptor, TableDescriptor, TableviewDescriptor } from './';
|
|
3
|
+
import { TableviewTypeEnum } from './types';
|
|
3
4
|
export declare class EditorDescriptor<T> {
|
|
4
5
|
static readonly defaultGroupName = "_default";
|
|
5
6
|
private readonly _model;
|
|
@@ -10,7 +11,7 @@ export declare class EditorDescriptor<T> {
|
|
|
10
11
|
private _currentTabGroup?;
|
|
11
12
|
private _currentGroup?;
|
|
12
13
|
private _disabled;
|
|
13
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableviewEditorType?:
|
|
14
|
+
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string, tableviewEditorType?: TableviewTypeEnum);
|
|
14
15
|
get model(): ModelDescriptor<T>;
|
|
15
16
|
get tabs(): FieldTabGroupDescriptor<T>[];
|
|
16
17
|
get fields(): AFieldDescriptor<any, T>[];
|
|
@@ -34,11 +35,3 @@ export declare class EditorDescriptor<T> {
|
|
|
34
35
|
private createDefaultGroup;
|
|
35
36
|
private createDefaultTabGroup;
|
|
36
37
|
}
|
|
37
|
-
export declare namespace EditorDescriptor {
|
|
38
|
-
enum TableviewEditorTypeEnum {
|
|
39
|
-
None = 0,
|
|
40
|
-
View = 1,
|
|
41
|
-
Edit = 2,
|
|
42
|
-
Add = 3
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -7,8 +7,9 @@ import { MngFormFieldEvent, MngFormFieldEventData, MngFormFieldEventTypeEnum } f
|
|
|
7
7
|
import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
|
|
8
8
|
import { EnumValue } from '../models';
|
|
9
9
|
import { ClassType, EnumConstantType, EnumType, MngFieldValidationMessage, MngFieldValidator } from '../types';
|
|
10
|
-
import { ActionDescriptor, EditorDescriptor, FieldValidationDescriptor,
|
|
11
|
-
import { FieldConfig, FieldLookupConfig } from './
|
|
10
|
+
import { ActionDescriptor, EditorDescriptor, FieldValidationDescriptor, TableDescriptor, TableviewDescriptor } from './';
|
|
11
|
+
import { FieldConfig, FieldLookupConfig, ILookupDescriptor } from './interfaces';
|
|
12
|
+
import { FieldGroupTypeEnum, FieldInputTypeEnum, FieldLookupTypeEnum, FieldManyEditorActionEnum, FieldManyEditorTypeEnum, FieldManyToManyEditorActionEnum, FieldManyToManyEditorTypeEnum, FieldSizeEnum } from './types';
|
|
12
13
|
export declare abstract class AGenericFieldDescriptor<ET> {
|
|
13
14
|
protected readonly _editor: EditorDescriptor<ET>;
|
|
14
15
|
protected _config: FieldConfig;
|
|
@@ -36,7 +37,7 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
36
37
|
protected _fieldClassName?: string;
|
|
37
38
|
protected _labelClassName: string;
|
|
38
39
|
protected _inputClassName: string;
|
|
39
|
-
protected _size:
|
|
40
|
+
protected _size: FieldSizeEnum;
|
|
40
41
|
protected readonly _eventsSubject: Subject<MngFormFieldEvent<T, ET>>;
|
|
41
42
|
protected constructor(editor: EditorDescriptor<ET>, property: string);
|
|
42
43
|
get property(): string;
|
|
@@ -57,7 +58,7 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
57
58
|
get fieldClassName(): string | undefined;
|
|
58
59
|
get labelClassName(): string;
|
|
59
60
|
get inputClassName(): string;
|
|
60
|
-
get size():
|
|
61
|
+
get size(): FieldSizeEnum;
|
|
61
62
|
get isSizeSmall(): boolean;
|
|
62
63
|
get isSizeLarge(): boolean;
|
|
63
64
|
abstract copy(): AFieldDescriptor<T, ET>;
|
|
@@ -72,18 +73,11 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
72
73
|
withSetter(setter: (item: ET, value: T) => void): this;
|
|
73
74
|
withValidation(name: string, validator?: MngFieldValidator, message?: MngFieldValidationMessage): this;
|
|
74
75
|
withClassName(className: string, labelClassName?: string, inputClassName?: string, fieldClassName?: string): this;
|
|
75
|
-
withSize(size?:
|
|
76
|
+
withSize(size?: FieldSizeEnum): this;
|
|
76
77
|
nextEvent(type: MngFormFieldEventTypeEnum, cmpType: Type<any>, cmpInstance: any, data?: MngFormFieldEventData<T, ET>): void;
|
|
77
78
|
get events$(): Observable<MngFormFieldEvent<T, ET>>;
|
|
78
79
|
protected copyFieldsTo(obj: AFieldDescriptor<T, ET>): void;
|
|
79
80
|
}
|
|
80
|
-
export declare namespace FieldDescriptor {
|
|
81
|
-
enum SizeEnum {
|
|
82
|
-
Small = 0,
|
|
83
|
-
Normal = 1,
|
|
84
|
-
Large = 2
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
81
|
export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string | number | boolean | Date | File | File[], ET> {
|
|
88
82
|
private _fieldType;
|
|
89
83
|
private _rows?;
|
|
@@ -113,7 +107,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
113
107
|
private _fileOnSelectHandler?;
|
|
114
108
|
private _customComponentName?;
|
|
115
109
|
constructor(editor: EditorDescriptor<ET>, property: string);
|
|
116
|
-
get fieldType():
|
|
110
|
+
get fieldType(): FieldInputTypeEnum;
|
|
117
111
|
get rows(): number | undefined;
|
|
118
112
|
get numberMin(): number | undefined;
|
|
119
113
|
get numberMax(): number | undefined;
|
|
@@ -162,25 +156,9 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
162
156
|
withFileOnSelectHandler(fn: (file: File[] | null, control: AbstractControl) => void): void;
|
|
163
157
|
copy(): FieldInputDescriptor<ET>;
|
|
164
158
|
}
|
|
165
|
-
export declare namespace FieldInputDescriptor {
|
|
166
|
-
enum TypeEnum {
|
|
167
|
-
Hidden = 0,
|
|
168
|
-
Label = 1,
|
|
169
|
-
Text = 2,
|
|
170
|
-
Textarea = 3,
|
|
171
|
-
Number = 4,
|
|
172
|
-
Currency = 5,
|
|
173
|
-
Switch = 6,
|
|
174
|
-
Radio = 7,
|
|
175
|
-
Datepicker = 8,
|
|
176
|
-
Mask = 9,
|
|
177
|
-
File = 10,
|
|
178
|
-
Custom = 11
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
159
|
export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET> implements ILookupDescriptor<T> {
|
|
182
160
|
protected readonly _modelType: ClassType<T> | null;
|
|
183
|
-
protected _lookupType:
|
|
161
|
+
protected _lookupType: FieldLookupTypeEnum;
|
|
184
162
|
protected _itemsLabelProperty?: string;
|
|
185
163
|
protected _itemsLabelTranslate: boolean;
|
|
186
164
|
protected _itemsValueProperty?: string;
|
|
@@ -193,7 +171,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
|
|
|
193
171
|
protected _dialogTableDescriptor?: TableDescriptor<T>;
|
|
194
172
|
protected _dialogTableDataProvider?: ITableDataProvider<T, any>;
|
|
195
173
|
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T> | null);
|
|
196
|
-
get lookupType():
|
|
174
|
+
get lookupType(): FieldLookupTypeEnum;
|
|
197
175
|
get itemsLabelProperty(): string | undefined;
|
|
198
176
|
get itemsLabelTranslate(): boolean;
|
|
199
177
|
get itemsValueProperty(): string | undefined;
|
|
@@ -217,13 +195,6 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
|
|
|
217
195
|
asDialog(lookupTableDescriptor: TableDescriptor<T>, tableDataProvider?: ITableDataProvider<T, any>): this;
|
|
218
196
|
copy(): FieldLookupDescriptor<T, ET>;
|
|
219
197
|
}
|
|
220
|
-
export declare namespace FieldLookupDescriptor {
|
|
221
|
-
enum LookupTypeEnum {
|
|
222
|
-
Dropdown = 0,
|
|
223
|
-
Autocomplete = 1,
|
|
224
|
-
Dialog = 2
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
198
|
export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumValue<string | number>, ET> {
|
|
228
199
|
private readonly _enumType;
|
|
229
200
|
private readonly _optionEnumValues;
|
|
@@ -245,9 +216,9 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
|
|
|
245
216
|
private _excludeFilterProperty;
|
|
246
217
|
private _excludeValueProperty;
|
|
247
218
|
constructor(editor: EditorDescriptor<ET>, property: string, mainTableDescriptor: TableDescriptor<T>, lookupTableDescriptor: TableDescriptor<T>);
|
|
248
|
-
get fieldType():
|
|
219
|
+
get fieldType(): FieldManyToManyEditorTypeEnum;
|
|
249
220
|
get lookupTableDataProvider(): ITableDataProvider<T, any> | null;
|
|
250
|
-
get actions():
|
|
221
|
+
get actions(): FieldManyToManyEditorActionEnum[];
|
|
251
222
|
get hasLookupExcludeValues(): boolean;
|
|
252
223
|
get excludeFilterProperty(): string;
|
|
253
224
|
get excludeValueProperty(): string;
|
|
@@ -255,49 +226,29 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
|
|
|
255
226
|
get lookupTableDescriptor(): TableDescriptor<T>;
|
|
256
227
|
withLookup<S>(getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>, serviceType?: Type<S>): this;
|
|
257
228
|
withLookupDataProvider(dataProvider: ITableDataProvider<T, any>): this;
|
|
258
|
-
withActions(actions?: Array<
|
|
229
|
+
withActions(actions?: Array<FieldManyToManyEditorActionEnum>): this;
|
|
259
230
|
withLookupExclude(filterProperty: string, valueProperty: string, hasLookupExclude?: boolean): this;
|
|
260
231
|
copy(): FieldManyToManyEditorDescriptor<T, ET>;
|
|
261
232
|
}
|
|
262
|
-
export declare namespace FieldManyToManyEditorDescriptor {
|
|
263
|
-
enum TypeEnum {
|
|
264
|
-
DialogTableMultiselect = 0
|
|
265
|
-
}
|
|
266
|
-
enum ActionEnum {
|
|
267
|
-
Add = 0,
|
|
268
|
-
Delete = 1
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
233
|
export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
|
|
272
234
|
private readonly _tableviewDescriptor;
|
|
273
235
|
private _fieldType;
|
|
274
236
|
private _fieldActions;
|
|
275
237
|
private _actions;
|
|
276
238
|
constructor(editor: EditorDescriptor<ET>, property: string, tableviewDescriptor: TableviewDescriptor<T>);
|
|
277
|
-
get fieldType():
|
|
278
|
-
get fieldActions():
|
|
239
|
+
get fieldType(): FieldManyEditorTypeEnum;
|
|
240
|
+
get fieldActions(): FieldManyEditorActionEnum[];
|
|
279
241
|
get actions(): ActionDescriptor<T>[];
|
|
280
242
|
get tableviewDescriptor(): TableviewDescriptor<T>;
|
|
281
243
|
get tableDescriptor(): TableDescriptor<T>;
|
|
282
244
|
get editorForCreate(): EditorDescriptor<T>;
|
|
283
245
|
get editorForRead(): EditorDescriptor<T>;
|
|
284
246
|
get editorForUpdate(): EditorDescriptor<T>;
|
|
285
|
-
withFieldAction(action:
|
|
286
|
-
withFieldActions(actions:
|
|
247
|
+
withFieldAction(action: FieldManyEditorActionEnum): this;
|
|
248
|
+
withFieldActions(actions: FieldManyEditorActionEnum[]): this;
|
|
287
249
|
withAction(action: ActionDescriptor<T>): this;
|
|
288
250
|
copy(): FieldManyEditorDescriptor<T, ET>;
|
|
289
251
|
}
|
|
290
|
-
export declare namespace FieldManyEditorDescriptor {
|
|
291
|
-
enum TypeEnum {
|
|
292
|
-
DialogEditor = 0
|
|
293
|
-
}
|
|
294
|
-
enum ActionEnum {
|
|
295
|
-
View = 0,
|
|
296
|
-
Add = 1,
|
|
297
|
-
Edit = 2,
|
|
298
|
-
Delete = 3
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
252
|
export declare abstract class AFieldGroupDescriptor<ET> extends AGenericFieldDescriptor<ET> {
|
|
302
253
|
protected readonly _name: string;
|
|
303
254
|
protected readonly _default: boolean;
|
|
@@ -327,16 +278,10 @@ export declare class FieldTabGroupDescriptor<ET> extends AFieldGroupDescriptor<E
|
|
|
327
278
|
export declare class FieldGroupDescriptor<ET> extends AFieldGroupDescriptor<ET> {
|
|
328
279
|
private _type;
|
|
329
280
|
constructor(editor: EditorDescriptor<ET>, name: string);
|
|
330
|
-
get type():
|
|
281
|
+
get type(): FieldGroupTypeEnum;
|
|
331
282
|
get fields(): Array<AFieldDescriptor<any, ET>>;
|
|
332
283
|
groupName(): string;
|
|
333
284
|
addField(field: AFieldDescriptor<any, ET>): this;
|
|
334
285
|
asLogical(): this;
|
|
335
286
|
copy(): FieldGroupDescriptor<ET>;
|
|
336
287
|
}
|
|
337
|
-
export declare namespace FieldGroupDescriptor {
|
|
338
|
-
enum TypeEnum {
|
|
339
|
-
Fieldset = 0,
|
|
340
|
-
Logical = 1
|
|
341
|
-
}
|
|
342
|
-
}
|
|
@@ -4,10 +4,11 @@ import { MediusQueryParam } from '../api/models';
|
|
|
4
4
|
import { ILookupDataProvider } from '../data-providers';
|
|
5
5
|
import { EnumValue } from '../models';
|
|
6
6
|
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
7
|
-
import { ILookupDescriptor } from './
|
|
7
|
+
import { ILookupDescriptor } from './interfaces';
|
|
8
|
+
import { FilterLookupTypeEnum, FilterMatchModeEnum, FilterTypeEnum } from './types';
|
|
8
9
|
export declare class FilterDescriptor<T> {
|
|
9
10
|
protected readonly _property: string;
|
|
10
|
-
protected _filterType:
|
|
11
|
+
protected _filterType: FilterTypeEnum;
|
|
11
12
|
protected _filterProperty?: string;
|
|
12
13
|
protected _matchModes: string[] | null;
|
|
13
14
|
protected _numberMinFractionDigits?: number;
|
|
@@ -21,7 +22,7 @@ export declare class FilterDescriptor<T> {
|
|
|
21
22
|
protected _columnWidth: number | null;
|
|
22
23
|
protected _columnMinWidth: number | null;
|
|
23
24
|
constructor(property: string);
|
|
24
|
-
get filterType():
|
|
25
|
+
get filterType(): FilterTypeEnum;
|
|
25
26
|
get filterProperty(): string | undefined;
|
|
26
27
|
get matchModes(): string[] | null;
|
|
27
28
|
get numberMinFractionDigits(): number | undefined;
|
|
@@ -35,7 +36,7 @@ export declare class FilterDescriptor<T> {
|
|
|
35
36
|
get columnWidth(): number | null;
|
|
36
37
|
get columnMinWidth(): number | null;
|
|
37
38
|
get property(): string;
|
|
38
|
-
asFilterType(filterType:
|
|
39
|
+
asFilterType(filterType: FilterTypeEnum): this;
|
|
39
40
|
/**
|
|
40
41
|
* Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
|
|
41
42
|
* @param filterProperty
|
|
@@ -48,38 +49,13 @@ export declare class FilterDescriptor<T> {
|
|
|
48
49
|
withClassName(className: string): this;
|
|
49
50
|
withColumnClassName(className: string): this;
|
|
50
51
|
withColumnWidth(width?: number, minWidth?: number): this;
|
|
51
|
-
withMatchModes(matchModes: Array<
|
|
52
|
+
withMatchModes(matchModes: Array<FilterMatchModeEnum>): this;
|
|
52
53
|
copy(): FilterDescriptor<T>;
|
|
53
54
|
protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
|
|
54
55
|
}
|
|
55
|
-
export declare namespace FilterDescriptor {
|
|
56
|
-
enum TypeEnum {
|
|
57
|
-
String = 0,
|
|
58
|
-
Number = 1,
|
|
59
|
-
Boolean = 2,
|
|
60
|
-
Date = 3,
|
|
61
|
-
Lookup = 4,
|
|
62
|
-
LookupEnum = 5
|
|
63
|
-
}
|
|
64
|
-
enum MatchModeEnum {
|
|
65
|
-
StartsWith = "startsWith",
|
|
66
|
-
Contains = "contains",
|
|
67
|
-
EndsWith = "endsWith",
|
|
68
|
-
Equals = "equals",
|
|
69
|
-
NotEquals = "notEquals",
|
|
70
|
-
In = "in",
|
|
71
|
-
LessThan = "lt",
|
|
72
|
-
GreaterThan = "gt",
|
|
73
|
-
Between = "between",
|
|
74
|
-
DateIs = "dateIs",
|
|
75
|
-
DateIsNot = "dateIsNot",
|
|
76
|
-
DateBefore = "dateBefore",
|
|
77
|
-
DateAfter = "dateAfter"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
56
|
export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
|
|
81
57
|
protected readonly _modelType: ClassType<T> | null;
|
|
82
|
-
protected _lookupType?:
|
|
58
|
+
protected _lookupType?: FilterLookupTypeEnum;
|
|
83
59
|
protected _dataProvider?: ILookupDataProvider<T, any>;
|
|
84
60
|
protected _itemsLabelProperty?: string;
|
|
85
61
|
protected _itemsLabelTranslate: boolean;
|
|
@@ -90,7 +66,7 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
|
|
|
90
66
|
protected _autocompleteOpenOnFocus: boolean;
|
|
91
67
|
protected _autocompleteInlineSearch: boolean;
|
|
92
68
|
constructor(property: string, modelType: ClassType<T> | null);
|
|
93
|
-
get lookupType():
|
|
69
|
+
get lookupType(): FilterLookupTypeEnum | undefined;
|
|
94
70
|
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
95
71
|
get itemsLabelProperty(): string | undefined;
|
|
96
72
|
get itemsLabelTranslate(): boolean;
|
|
@@ -119,9 +95,3 @@ export declare class FilterLookupEnumDescriptor extends FilterLookupDescriptor<E
|
|
|
119
95
|
asAutocomplete(openOnFocus?: boolean): this;
|
|
120
96
|
copy(): FilterLookupEnumDescriptor;
|
|
121
97
|
}
|
|
122
|
-
export declare namespace FilterLookupDescriptor {
|
|
123
|
-
enum LookupTypeEnum {
|
|
124
|
-
Dropdown = 0,
|
|
125
|
-
Autocomplete = 1
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -2,10 +2,8 @@ export * from './action.descriptor';
|
|
|
2
2
|
export * from './column.descriptor';
|
|
3
3
|
export * from './editor.descriptor';
|
|
4
4
|
export * from './field.descriptor';
|
|
5
|
-
export * from './field.descriptor.interface';
|
|
6
5
|
export * from './field-validation.descriptor';
|
|
7
6
|
export * from './filter.descriptor';
|
|
8
|
-
export * from './lookup.descriptor';
|
|
9
7
|
export * from './model.descriptor';
|
|
10
8
|
export * from './table.descriptor';
|
|
11
9
|
export * from './tableview.descriptor';
|
package/lib/descriptors/{field.descriptor.interface.d.ts → interfaces/field-config.interface.d.ts}
RENAMED
|
File without changes
|
package/lib/descriptors/{lookup.descriptor.d.ts → interfaces/lookup-descriptor.interface.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam } from '
|
|
4
|
-
import { ILookupDataProvider } from '
|
|
5
|
-
import { ClassType } from '
|
|
3
|
+
import { MediusQueryParam } from '../../api/models';
|
|
4
|
+
import { ILookupDataProvider } from '../../data-providers';
|
|
5
|
+
import { ClassType } from '../../types';
|
|
6
6
|
export interface ILookupDescriptor<T> {
|
|
7
7
|
modelType: ClassType<T> | null;
|
|
8
8
|
itemsLabelProperty?: string;
|