@mediusinc/mng-commons 0.13.0 → 0.14.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 +8 -3
- package/esm2020/lib/components/action/action.component.mjs +17 -4
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +1 -1
- package/esm2020/lib/components/action/models/action-execution.model.mjs +6 -1
- package/esm2020/lib/components/action/models/index.mjs +2 -1
- package/esm2020/lib/components/action/models/tableview-action-default-categories.model.mjs +11 -0
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +1 -1
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +17 -10
- package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +5 -13
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +5 -2
- package/esm2020/lib/components/tableview/table/table.component.mjs +48 -20
- package/esm2020/lib/components/tableview/tableview.component.mjs +9 -3
- package/esm2020/lib/data-providers/table.data-provider.mjs +9 -2
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +30 -2
- package/esm2020/lib/descriptors/action.descriptor.mjs +11 -1
- package/esm2020/lib/descriptors/column.descriptor.mjs +106 -29
- package/esm2020/lib/descriptors/editor.descriptor.mjs +109 -7
- package/esm2020/lib/descriptors/field.descriptor.mjs +38 -4
- package/esm2020/lib/descriptors/filter.descriptor.mjs +13 -6
- package/esm2020/lib/descriptors/index.mjs +2 -2
- package/esm2020/lib/descriptors/table.descriptor.mjs +282 -16
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +175 -3
- package/esm2020/lib/descriptors/types/table.type.mjs +10 -1
- package/esm2020/lib/mng-commons.module.mjs +5 -1
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/models/tableview-attr.model.mjs +2 -0
- package/esm2020/lib/pipes/class-map.pipe.mjs +22 -0
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/router/models/router.model.mjs +1 -1
- package/esm2020/lib/router/tableview-route-builder.mjs +41 -17
- package/esm2020/lib/services/action-executor.service.mjs +1 -1
- package/esm2020/lib/utils/tableview.util.mjs +144 -0
- package/fesm2015/mediusinc-mng-commons.mjs +1095 -128
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +1077 -117
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/utils/medius-rest.util.d.ts +1 -0
- package/lib/components/action/action.component.d.ts +2 -1
- package/lib/components/action/models/action-execution.model.d.ts +2 -0
- package/lib/components/action/models/index.d.ts +1 -0
- package/lib/components/action/models/tableview-action-default-categories.model.d.ts +10 -0
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +9 -4
- package/lib/components/tableview/route/tableview-route.component.d.ts +0 -5
- package/lib/components/tableview/table/table.component.d.ts +4 -2
- package/lib/components/tableview/tableview.component.d.ts +3 -0
- package/lib/data-providers/table.data-provider.d.ts +6 -1
- package/lib/data-providers/tableview.data-provider.d.ts +16 -2
- package/lib/descriptors/action.descriptor.d.ts +4 -0
- package/lib/descriptors/column.descriptor.d.ts +39 -5
- package/lib/descriptors/editor.descriptor.d.ts +69 -11
- package/lib/descriptors/field.descriptor.d.ts +7 -2
- package/lib/descriptors/filter.descriptor.d.ts +7 -6
- package/lib/descriptors/index.d.ts +1 -1
- package/lib/descriptors/table.descriptor.d.ts +124 -8
- package/lib/descriptors/tableview.descriptor.d.ts +81 -7
- package/lib/descriptors/types/table.type.d.ts +8 -0
- package/lib/mng-commons.module.d.ts +72 -71
- package/lib/models/index.d.ts +1 -0
- package/lib/models/tableview-attr.model.d.ts +9 -0
- package/lib/pipes/class-map.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/router/models/router.model.d.ts +6 -0
- package/lib/router/tableview-route-builder.d.ts +3 -0
- package/lib/utils/tableview.util.d.ts +39 -0
- package/package.json +1 -1
- package/scss/mng-overrides/_theme_tableview.scss +17 -0
- package/version-info.json +5 -5
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
|
+
import { MediusQueryResult } from '../api/models';
|
|
3
|
+
import { ILookupDataProvider } from '../data-providers';
|
|
2
4
|
import { IColumnValueComponent } from '../models';
|
|
5
|
+
import { TableviewAttributeDef } from '../models/tableview-attr.model';
|
|
3
6
|
import { ClassType, EnumType } from '../types';
|
|
4
|
-
import { ColumnDescriptor } from './column.descriptor';
|
|
7
|
+
import { ColumnDescriptor, ColumnDynamicDescriptor } from './column.descriptor';
|
|
5
8
|
import { ModelDescriptor } from './model.descriptor';
|
|
6
|
-
import { TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum } from './types';
|
|
9
|
+
import { ColumnTypeEnum, TableDynamicColumnsModeEnum, TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum } from './types';
|
|
7
10
|
export declare class TableDescriptor<T> {
|
|
8
11
|
private readonly _model;
|
|
12
|
+
private _modelType;
|
|
9
13
|
private _filterDisplay;
|
|
10
14
|
private _paginationMode;
|
|
11
15
|
private _rowsPerPageOptions;
|
|
12
16
|
private _defaultNumRows;
|
|
13
|
-
|
|
17
|
+
protected _columns: Array<ColumnDescriptor<any, T>>;
|
|
14
18
|
private _title?;
|
|
15
19
|
private _hideHeader;
|
|
16
20
|
private _dataKeyProperty?;
|
|
@@ -23,7 +27,26 @@ export declare class TableDescriptor<T> {
|
|
|
23
27
|
private _rowHeight?;
|
|
24
28
|
private _hasHover;
|
|
25
29
|
private _hasGridlines;
|
|
30
|
+
private _headerClassName?;
|
|
31
|
+
private _rowClassName?;
|
|
32
|
+
private _rowClassNameMapFn?;
|
|
33
|
+
private _autoGenerated;
|
|
26
34
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
35
|
+
/**
|
|
36
|
+
* generates descriptor based on modelType attribute definition
|
|
37
|
+
* @param modelType class type
|
|
38
|
+
* @param idProperty
|
|
39
|
+
* @param titleProperty
|
|
40
|
+
*/
|
|
41
|
+
static from<T>(modelType: ClassType<T>, idProperty?: string, titleProperty?: string): TableDescriptor<T>;
|
|
42
|
+
/**
|
|
43
|
+
* generates descriptor base on given attribute definition
|
|
44
|
+
* @param modelType class type
|
|
45
|
+
* @param attributes attributes from which descriptor is generated
|
|
46
|
+
* @param idProperty
|
|
47
|
+
* @param titleProperty
|
|
48
|
+
*/
|
|
49
|
+
static fromModelWithAttributes<T>(modelType: ClassType<T>, attributes: TableviewAttributeDef[], idProperty?: string, titleProperty?: string): TableDescriptor<T>;
|
|
27
50
|
get filterDisplay(): TableFilterDisplayEnum;
|
|
28
51
|
get paginationMode(): TablePaginationModeEnum;
|
|
29
52
|
get rowsPerPageOptions(): number[];
|
|
@@ -42,6 +65,10 @@ export declare class TableDescriptor<T> {
|
|
|
42
65
|
get rowHeight(): number | undefined;
|
|
43
66
|
get hasHover(): boolean;
|
|
44
67
|
get hasGridlines(): boolean;
|
|
68
|
+
get rowClassName(): string | undefined;
|
|
69
|
+
get rowClassNameMapFn(): ((className?: string | undefined, item?: T | undefined) => string) | undefined;
|
|
70
|
+
get headerClassName(): string | undefined;
|
|
71
|
+
getColumn(property: string): ColumnDescriptor<string, T> | undefined;
|
|
45
72
|
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
46
73
|
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
47
74
|
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
@@ -49,18 +76,107 @@ export declare class TableDescriptor<T> {
|
|
|
49
76
|
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
50
77
|
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
|
|
51
78
|
addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
|
|
79
|
+
removeColumn(property: string): void;
|
|
52
80
|
withFilterDisplay(filterDisplayType: TableFilterDisplayEnum): this;
|
|
53
81
|
withPaginationMode(paginationMode: TablePaginationModeEnum): this;
|
|
54
82
|
withRowsPerPage(rows: number, options?: Array<number>): this;
|
|
55
|
-
withTitle(title: string):
|
|
83
|
+
withTitle(title: string): this;
|
|
56
84
|
withHideHeader(hideHeader?: boolean): this;
|
|
57
|
-
withDataKeyProperty(property: string):
|
|
58
|
-
withDefaultSort(property: string, asc?: boolean):
|
|
85
|
+
withDataKeyProperty(property: string): this;
|
|
86
|
+
withDefaultSort(property: string, asc?: boolean): this;
|
|
59
87
|
withClassName(className: string): this;
|
|
60
88
|
withSize(size?: TableSizeEnum): this;
|
|
61
|
-
withTableFullHeightOffset(tableFullHeightOffset: number):
|
|
62
|
-
withRowHeight(rowHeight: number):
|
|
89
|
+
withTableFullHeightOffset(tableFullHeightOffset: number): this;
|
|
90
|
+
withRowHeight(rowHeight: number): this;
|
|
63
91
|
withHover(hover: boolean): this;
|
|
64
92
|
withGridlines(gridlines: boolean): this;
|
|
93
|
+
withRowClassName(rowClassName?: string, classNameMapFn?: (className?: string, item?: T) => string): this;
|
|
94
|
+
withHeaderClassName(headerClassName: string): this;
|
|
95
|
+
protected copyFieldsTo(obj: TableDescriptor<T>): void;
|
|
65
96
|
copy(): TableDescriptor<T>;
|
|
97
|
+
/**
|
|
98
|
+
* generates column based on attributes
|
|
99
|
+
* @param attribute attribute map
|
|
100
|
+
* @param column if provided, replaced by new, otherwise new is created
|
|
101
|
+
* @param args additional parameters
|
|
102
|
+
*/
|
|
103
|
+
private upsertColumnFromAttributeDef;
|
|
104
|
+
/**
|
|
105
|
+
* defines modified type of column
|
|
106
|
+
* DO NOT USE with enum (use withCustomEnumType)
|
|
107
|
+
* @param property column name
|
|
108
|
+
* @param columnType modified type
|
|
109
|
+
* @param args additional attributes
|
|
110
|
+
*/
|
|
111
|
+
withColumnModifiedType(property: string, columnType?: ColumnTypeEnum, ...args: any[]): this;
|
|
112
|
+
/**
|
|
113
|
+
* defines custom enum type for column
|
|
114
|
+
* @param property column name
|
|
115
|
+
* @param enumType
|
|
116
|
+
*/
|
|
117
|
+
withColumnModifiedEnum(property: string, enumType?: EnumType): this;
|
|
118
|
+
/**
|
|
119
|
+
* modifies column with class and lookup provider
|
|
120
|
+
* @param property column name
|
|
121
|
+
* @param lookupProvider lookupProvider for class
|
|
122
|
+
* @param itemsLabelProperty
|
|
123
|
+
* @param filterProperty
|
|
124
|
+
*/
|
|
125
|
+
withColumnModifiedLookup(property: string, lookupProvider: ILookupDataProvider<any, any>, itemsLabelProperty?: string, filterProperty?: string): this;
|
|
126
|
+
}
|
|
127
|
+
export declare class TableDynamicDescriptor extends TableDescriptor<any> {
|
|
128
|
+
private _excludedColumns;
|
|
129
|
+
private _filterColumns;
|
|
130
|
+
private _sortColumns;
|
|
131
|
+
private _sortColumnMode;
|
|
132
|
+
private _filterColumnMode;
|
|
133
|
+
protected _columns: ColumnDynamicDescriptor[];
|
|
134
|
+
constructor(idProperty?: string, titleProperty?: string);
|
|
135
|
+
get columns(): ColumnDynamicDescriptor[];
|
|
136
|
+
/**
|
|
137
|
+
* defines excluded columns when generating descriptor
|
|
138
|
+
* @param excludedColumn names of excluded columns
|
|
139
|
+
*/
|
|
140
|
+
withColumnsExcluded(excludedColumn: string[]): this;
|
|
141
|
+
/**
|
|
142
|
+
* defines column properties on which sort is defined or not depending on sortColumnMode
|
|
143
|
+
* @param sortOnColumns column names
|
|
144
|
+
* @param sortColumnMode INCLUDE_ONLY (default) only given columns will have sort, EXCLUDE given columns will NOT have sort
|
|
145
|
+
*/
|
|
146
|
+
withColumnsSort(sortOnColumns: string[], sortColumnMode?: TableDynamicColumnsModeEnum): this;
|
|
147
|
+
/**
|
|
148
|
+
* defines column properties on which filter is defined or not depending on filterColumnMode
|
|
149
|
+
* @param filterOnColumn column names
|
|
150
|
+
* @param filterColumnMode INCLUDE_ONLY (default) only given columns will have filter, EXCLUDE given columns will NOT have filter
|
|
151
|
+
*/
|
|
152
|
+
withColumnsFilter(filterOnColumn: string[], filterColumnMode?: TableDynamicColumnsModeEnum): this;
|
|
153
|
+
/**
|
|
154
|
+
* sets given type to column with given property and returns this table
|
|
155
|
+
* @param property column's property
|
|
156
|
+
* @param type custom type for column
|
|
157
|
+
* @param args addition arguments for column
|
|
158
|
+
*/
|
|
159
|
+
withColumnModifiedType(property: string, type: ColumnTypeEnum, ...args: any[]): this;
|
|
160
|
+
/**
|
|
161
|
+
* sets title to column with given property and returns this table
|
|
162
|
+
* @param property column's property
|
|
163
|
+
* @param title column's title
|
|
164
|
+
*/
|
|
165
|
+
withColumnTitle(property: string, title: string): this;
|
|
166
|
+
/**
|
|
167
|
+
* generates columns defined on table based on data fetched from api
|
|
168
|
+
* @param data data from api
|
|
169
|
+
*/
|
|
170
|
+
toTableDescriptorFromData(data: MediusQueryResult<any>): TableDescriptor<any>;
|
|
171
|
+
/**
|
|
172
|
+
* adds ColumnDynamicDescriptor to this table
|
|
173
|
+
* @param property column's property
|
|
174
|
+
*/
|
|
175
|
+
addColumn(property: string): ColumnDynamicDescriptor;
|
|
176
|
+
removeColumn(property: string): this;
|
|
177
|
+
/**
|
|
178
|
+
* creates deep copy of table dynamic descriptor
|
|
179
|
+
*/
|
|
180
|
+
copy(): TableDynamicDescriptor;
|
|
181
|
+
toTableDescriptor(): TableDescriptor<any>;
|
|
66
182
|
}
|
|
@@ -1,23 +1,44 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { FieldValidatorFn } from '@ngx-formly/core/lib/models/config';
|
|
3
|
+
import { ILookupDataProvider } from '../data-providers';
|
|
3
4
|
import { IColumnValueComponent } from '../models';
|
|
5
|
+
import { TableviewAttributeDef } from '../models/tableview-attr.model';
|
|
4
6
|
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
5
|
-
import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor } from './';
|
|
7
|
+
import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor, TableDynamicDescriptor } from './index';
|
|
8
|
+
import { ColumnTypeEnum, FieldInputTypeEnum, TableviewTypeEnum } from './types';
|
|
6
9
|
export declare class TableviewDescriptor<T> {
|
|
7
10
|
private readonly _model;
|
|
11
|
+
private _modelType;
|
|
12
|
+
protected _table: TableDescriptor<T>;
|
|
13
|
+
protected _viewEditor: EditorDescriptor<T>;
|
|
14
|
+
protected _addEditor: EditorDescriptor<T>;
|
|
15
|
+
protected _editEditor: EditorDescriptor<T>;
|
|
16
|
+
protected _tableTitle?: string;
|
|
8
17
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
9
|
-
|
|
18
|
+
/**
|
|
19
|
+
* generates descriptor from attribute definition of openaapi model
|
|
20
|
+
* @param modelType class type
|
|
21
|
+
* @param idProperty
|
|
22
|
+
* @param titleProperty
|
|
23
|
+
*/
|
|
24
|
+
static from<T>(modelType: ClassType<T>, idProperty?: string, titleProperty?: string): TableviewDescriptor<T>;
|
|
25
|
+
/**
|
|
26
|
+
* generates descriptor from given attribute definition
|
|
27
|
+
* @param modelType class type
|
|
28
|
+
* @param columnAttributes attribute definition to generate columns
|
|
29
|
+
* @param fieldAttributes attribute definition to generate fields, if undefined columnDefinition is used, if null editors are not generated
|
|
30
|
+
* @param idProperty
|
|
31
|
+
* @param titleProperty
|
|
32
|
+
*/
|
|
33
|
+
static fromModelWithDefinition<T>(modelType: ClassType<T>, columnAttributes: TableviewAttributeDef[], fieldAttributes?: TableviewAttributeDef[] | null, idProperty?: string, titleProperty?: string): TableviewDescriptor<T>;
|
|
10
34
|
get table(): TableDescriptor<T>;
|
|
11
|
-
private _viewEditor;
|
|
12
35
|
get viewEditor(): EditorDescriptor<T>;
|
|
13
|
-
private _addEditor;
|
|
14
36
|
get addEditor(): EditorDescriptor<T>;
|
|
15
|
-
private _editEditor;
|
|
16
37
|
get editEditor(): EditorDescriptor<T>;
|
|
17
|
-
|
|
18
|
-
get tableTitle(): string;
|
|
38
|
+
get tableTitle(): string | undefined;
|
|
19
39
|
get model(): ModelDescriptor<T>;
|
|
20
40
|
withTableDescriptor(descriptor: TableDescriptor<T>): this;
|
|
41
|
+
withEditorDescriptors(descriptor: EditorDescriptor<T>): this;
|
|
21
42
|
withViewDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
22
43
|
withAddDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
23
44
|
withEditDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
@@ -25,6 +46,9 @@ export declare class TableviewDescriptor<T> {
|
|
|
25
46
|
withValidator(name: string, expression: FieldValidatorFn): this;
|
|
26
47
|
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
27
48
|
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
49
|
+
removeColumn(property: string): void;
|
|
50
|
+
getField(property: string, editorType: TableviewTypeEnum): AFieldDescriptor<any, T> | null;
|
|
51
|
+
removeField(property: string): void;
|
|
28
52
|
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
29
53
|
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
30
54
|
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
@@ -39,4 +63,54 @@ export declare class TableviewDescriptor<T> {
|
|
|
39
63
|
addFieldManyEditor<FT>(property: string, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
40
64
|
addFieldManyToManyEditor<FT>(property: string, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
41
65
|
copy(): TableviewDescriptor<T>;
|
|
66
|
+
/**
|
|
67
|
+
* creates column and field with custom type, for example currency
|
|
68
|
+
* if field exists, it is replaced
|
|
69
|
+
* DO NOT USE WITH TYPES WHERE ARGS ARE REQUIRED - ERROR WILL BE THROWN
|
|
70
|
+
* for enum use withEnumType
|
|
71
|
+
* for custom class use withClassType
|
|
72
|
+
* @param property name of field
|
|
73
|
+
* @param columnType required column type
|
|
74
|
+
* @param fieldType optional, if not provided it is converted from column type
|
|
75
|
+
*/
|
|
76
|
+
withModifiedType(property: string, columnType: ColumnTypeEnum, fieldType?: FieldInputTypeEnum): this;
|
|
77
|
+
/**
|
|
78
|
+
* creates column with enum type
|
|
79
|
+
* if fields exists, it is replaced
|
|
80
|
+
* @param property property name
|
|
81
|
+
* @param enumType type of enum
|
|
82
|
+
* @param fieldType type of field, optional, default is Text
|
|
83
|
+
*/
|
|
84
|
+
withModifiedEnum(property: string, enumType?: EnumType, fieldType?: FieldInputTypeEnum): this;
|
|
85
|
+
/**
|
|
86
|
+
* generates column with custom class type
|
|
87
|
+
* field is generated only if lookupProvider is provided
|
|
88
|
+
* @param property property name
|
|
89
|
+
* @param modelType class type of object
|
|
90
|
+
* @param titleProperty
|
|
91
|
+
* @param lookupProvider
|
|
92
|
+
* @param itemsLabelProperty
|
|
93
|
+
* @param filterProperty
|
|
94
|
+
*/
|
|
95
|
+
withModifiedLookup<MT>(property: string, modelType?: ClassType<MT>, lookupProvider?: ILookupDataProvider<MT, any>, titleProperty?: string, itemsLabelProperty?: string, filterProperty?: string): this;
|
|
96
|
+
}
|
|
97
|
+
export declare class TableviewDynamicDescriptor extends TableviewDescriptor<any> {
|
|
98
|
+
protected _table: TableDynamicDescriptor;
|
|
99
|
+
constructor(idProperty?: string, titleProperty?: string);
|
|
100
|
+
get table(): TableDynamicDescriptor;
|
|
101
|
+
/**
|
|
102
|
+
* sets custom table descriptor
|
|
103
|
+
* @param descriptor
|
|
104
|
+
*/
|
|
105
|
+
withTableDescriptor(descriptor: TableDynamicDescriptor): this;
|
|
106
|
+
/**
|
|
107
|
+
* sets visibility hidden state to column with given property
|
|
108
|
+
* equals to be removing in auto and base tableview descriptor
|
|
109
|
+
* * @param property column's property
|
|
110
|
+
*/
|
|
111
|
+
removeColumn(property: string): this;
|
|
112
|
+
/**
|
|
113
|
+
* creates depp copy of tableview object and its children
|
|
114
|
+
*/
|
|
115
|
+
copy(): TableviewDynamicDescriptor;
|
|
42
116
|
}
|
|
@@ -11,3 +11,11 @@ export declare enum TableSizeEnum {
|
|
|
11
11
|
Normal = 1,
|
|
12
12
|
Large = 2
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* EXCLUDE default, all columns has sort and filter on by default, developer EXCLUDES properties from sort/filter
|
|
16
|
+
* INCLUDE_ONLY only selected columns have sort/filter, developers INCLUDES properties
|
|
17
|
+
*/
|
|
18
|
+
export declare enum TableDynamicColumnsModeEnum {
|
|
19
|
+
EXCLUDE = 0,
|
|
20
|
+
INCLUDE_ONLY = 1
|
|
21
|
+
}
|
|
@@ -11,80 +11,81 @@ import * as i6 from "./pipes/i18n-property.pipe";
|
|
|
11
11
|
import * as i7 from "./pipes/parametrize.pipe";
|
|
12
12
|
import * as i8 from "./pipes/getter.pipe";
|
|
13
13
|
import * as i9 from "./pipes/template.pipe";
|
|
14
|
-
import * as i10 from "./
|
|
15
|
-
import * as i11 from "./components/layout/
|
|
16
|
-
import * as i12 from "./components/layout/
|
|
17
|
-
import * as i13 from "./components/layout/
|
|
18
|
-
import * as i14 from "./components/layout/menu
|
|
19
|
-
import * as i15 from "./components/layout/
|
|
20
|
-
import * as i16 from "./components/layout/
|
|
21
|
-
import * as i17 from "./components/
|
|
22
|
-
import * as i18 from "./components/form/
|
|
23
|
-
import * as i19 from "./components/form/
|
|
24
|
-
import * as i20 from "./components/form/formly/wrappers/formly-
|
|
25
|
-
import * as i21 from "./components/form/formly/
|
|
26
|
-
import * as i22 from "./components/form/formly/fields/formly-field-
|
|
27
|
-
import * as i23 from "./components/form/formly/fields/formly-field-
|
|
28
|
-
import * as i24 from "./components/form/formly/fields/formly-field-
|
|
29
|
-
import * as i25 from "./components/form/formly/fields/formly-field-
|
|
30
|
-
import * as i26 from "./components/form/formly/fields/formly-field-
|
|
31
|
-
import * as i27 from "./components/form/formly/fields/formly-field-table-dialog-
|
|
32
|
-
import * as i28 from "./components/form/formly/fields/formly-field-
|
|
33
|
-
import * as i29 from "./components/form/formly/fields/formly-field-
|
|
34
|
-
import * as i30 from "./components/
|
|
35
|
-
import * as i31 from "./components/tableview/
|
|
36
|
-
import * as i32 from "./components/tableview/
|
|
37
|
-
import * as i33 from "./components/tableview/table/column-
|
|
38
|
-
import * as i34 from "./components/tableview/
|
|
39
|
-
import * as i35 from "./components/
|
|
40
|
-
import * as i36 from "./components/
|
|
41
|
-
import * as i37 from "./components/action/
|
|
42
|
-
import * as i38 from "./components/action/
|
|
43
|
-
import * as i39 from "./components/
|
|
44
|
-
import * as i40 from "
|
|
45
|
-
import * as i41 from "@angular/
|
|
46
|
-
import * as i42 from "@angular/
|
|
47
|
-
import * as i43 from "@angular/
|
|
48
|
-
import * as i44 from "@
|
|
49
|
-
import * as i45 from "@ngx-
|
|
50
|
-
import * as i46 from "
|
|
51
|
-
import * as i47 from "primeng/
|
|
52
|
-
import * as i48 from "primeng/
|
|
53
|
-
import * as i49 from "primeng/
|
|
54
|
-
import * as i50 from "primeng/
|
|
55
|
-
import * as i51 from "primeng/
|
|
56
|
-
import * as i52 from "primeng/
|
|
57
|
-
import * as i53 from "primeng/
|
|
58
|
-
import * as i54 from "primeng/
|
|
59
|
-
import * as i55 from "primeng/
|
|
60
|
-
import * as i56 from "primeng/
|
|
61
|
-
import * as i57 from "primeng/
|
|
62
|
-
import * as i58 from "primeng/
|
|
63
|
-
import * as i59 from "primeng/
|
|
64
|
-
import * as i60 from "primeng/
|
|
65
|
-
import * as i61 from "primeng/
|
|
66
|
-
import * as i62 from "primeng/
|
|
67
|
-
import * as i63 from "primeng/
|
|
68
|
-
import * as i64 from "primeng/
|
|
69
|
-
import * as i65 from "primeng/
|
|
70
|
-
import * as i66 from "primeng/
|
|
71
|
-
import * as i67 from "primeng/
|
|
72
|
-
import * as i68 from "primeng/
|
|
73
|
-
import * as i69 from "primeng/
|
|
74
|
-
import * as i70 from "primeng/
|
|
75
|
-
import * as i71 from "primeng/
|
|
76
|
-
import * as i72 from "primeng/
|
|
77
|
-
import * as i73 from "primeng/
|
|
78
|
-
import * as i74 from "primeng/
|
|
79
|
-
import * as i75 from "primeng/
|
|
80
|
-
import * as i76 from "primeng/
|
|
81
|
-
import * as i77 from "primeng/
|
|
82
|
-
import * as i78 from "primeng/
|
|
83
|
-
import * as i79 from "primeng/
|
|
14
|
+
import * as i10 from "./pipes/class-map.pipe";
|
|
15
|
+
import * as i11 from "./components/layout/breadcrumb.component";
|
|
16
|
+
import * as i12 from "./components/layout/footer.component";
|
|
17
|
+
import * as i13 from "./components/layout/main-layout.component";
|
|
18
|
+
import * as i14 from "./components/layout/menu.component";
|
|
19
|
+
import * as i15 from "./components/layout/menu-item.component";
|
|
20
|
+
import * as i16 from "./components/layout/topbar.component";
|
|
21
|
+
import * as i17 from "./components/layout/version.component";
|
|
22
|
+
import * as i18 from "./components/form/autocomplete/autocomplete.component";
|
|
23
|
+
import * as i19 from "./components/form/dropdown/dropdown.component";
|
|
24
|
+
import * as i20 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
|
|
25
|
+
import * as i21 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
|
|
26
|
+
import * as i22 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
|
|
27
|
+
import * as i23 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
|
|
28
|
+
import * as i24 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
|
|
29
|
+
import * as i25 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
|
|
30
|
+
import * as i26 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
|
|
31
|
+
import * as i27 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
|
|
32
|
+
import * as i28 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
|
|
33
|
+
import * as i29 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
34
|
+
import * as i30 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
35
|
+
import * as i31 from "./components/tableview/table/table.component";
|
|
36
|
+
import * as i32 from "./components/tableview/tableview.component";
|
|
37
|
+
import * as i33 from "./components/tableview/table/column-value/column-value.component";
|
|
38
|
+
import * as i34 from "./components/tableview/table/column-filter/column-filter.component";
|
|
39
|
+
import * as i35 from "./components/tableview/route/tableview-route.component";
|
|
40
|
+
import * as i36 from "./components/form/editor/form-editor.component";
|
|
41
|
+
import * as i37 from "./components/action/action.component";
|
|
42
|
+
import * as i38 from "./components/action/editor/action-editor.component";
|
|
43
|
+
import * as i39 from "./components/action/route/action-route.component";
|
|
44
|
+
import * as i40 from "./components/button/button.component";
|
|
45
|
+
import * as i41 from "@angular/common";
|
|
46
|
+
import * as i42 from "@angular/router";
|
|
47
|
+
import * as i43 from "@angular/common/http";
|
|
48
|
+
import * as i44 from "@angular/forms";
|
|
49
|
+
import * as i45 from "@ngx-translate/core";
|
|
50
|
+
import * as i46 from "@ngx-formly/core";
|
|
51
|
+
import * as i47 from "primeng/autocomplete";
|
|
52
|
+
import * as i48 from "primeng/breadcrumb";
|
|
53
|
+
import * as i49 from "primeng/button";
|
|
54
|
+
import * as i50 from "primeng/calendar";
|
|
55
|
+
import * as i51 from "primeng/card";
|
|
56
|
+
import * as i52 from "primeng/checkbox";
|
|
57
|
+
import * as i53 from "primeng/chip";
|
|
58
|
+
import * as i54 from "primeng/confirmdialog";
|
|
59
|
+
import * as i55 from "primeng/confirmpopup";
|
|
60
|
+
import * as i56 from "primeng/dialog";
|
|
61
|
+
import * as i57 from "primeng/dynamicdialog";
|
|
62
|
+
import * as i58 from "primeng/dropdown";
|
|
63
|
+
import * as i59 from "primeng/fileupload";
|
|
64
|
+
import * as i60 from "primeng/inputnumber";
|
|
65
|
+
import * as i61 from "primeng/inputmask";
|
|
66
|
+
import * as i62 from "primeng/inputswitch";
|
|
67
|
+
import * as i63 from "primeng/inputtext";
|
|
68
|
+
import * as i64 from "primeng/inputtextarea";
|
|
69
|
+
import * as i65 from "primeng/paginator";
|
|
70
|
+
import * as i66 from "primeng/radiobutton";
|
|
71
|
+
import * as i67 from "primeng/ripple";
|
|
72
|
+
import * as i68 from "primeng/selectbutton";
|
|
73
|
+
import * as i69 from "primeng/table";
|
|
74
|
+
import * as i70 from "primeng/tag";
|
|
75
|
+
import * as i71 from "primeng/toast";
|
|
76
|
+
import * as i72 from "primeng/togglebutton";
|
|
77
|
+
import * as i73 from "primeng/toolbar";
|
|
78
|
+
import * as i74 from "primeng/tooltip";
|
|
79
|
+
import * as i75 from "primeng/messages";
|
|
80
|
+
import * as i76 from "primeng/progressspinner";
|
|
81
|
+
import * as i77 from "primeng/tabview";
|
|
82
|
+
import * as i78 from "primeng/fieldset";
|
|
83
|
+
import * as i79 from "primeng/multiselect";
|
|
84
|
+
import * as i80 from "primeng/skeleton";
|
|
84
85
|
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
85
86
|
export declare class MngCommonsModule {
|
|
86
87
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
87
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
88
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.
|
|
89
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngFormlyFieldWrapperComponent, typeof i21.MngFormlyTableWrapperComponent, typeof i22.MngFormlyFieldInputComponent, typeof i23.MngFormlyFieldLabelComponent, typeof i24.MngFormlyFieldDropdownComponent, typeof i25.MngFormlyFieldAutocompleteComponent, typeof i26.MngFormlyFieldLookupDialogComponent, typeof i27.MngFormlyFieldTableDialogMultiselectComponent, typeof i28.MngFormlyFieldTableDialogFormComponent, typeof i29.MngFormlyFieldTabsComponent, typeof i30.MngFormlyFieldFieldsetComponent, typeof i31.MngTableComponent, typeof i32.MngTableviewComponent, typeof i33.MngTableColumnValueComponent, typeof i34.MngTableColumnFilterComponent, typeof i35.MngTableviewRouteComponent, typeof i36.MngFormEditorComponent, typeof i37.MngActionComponent, typeof i38.MngActionEditorComponent, typeof i39.MngActionRouteComponent, typeof i40.MngButtonComponent], [typeof i41.CommonModule, typeof i42.RouterModule, typeof i43.HttpClientModule, typeof i44.ReactiveFormsModule, typeof i45.TranslateModule, typeof i46.FormlyModule, typeof i47.AutoCompleteModule, typeof i48.BreadcrumbModule, typeof i49.ButtonModule, typeof i50.CalendarModule, typeof i51.CardModule, typeof i52.CheckboxModule, typeof i53.ChipModule, typeof i54.ConfirmDialogModule, typeof i55.ConfirmPopupModule, typeof i56.DialogModule, typeof i57.DynamicDialogModule, typeof i58.DropdownModule, typeof i59.FileUploadModule, typeof i60.InputNumberModule, typeof i61.InputMaskModule, typeof i62.InputSwitchModule, typeof i63.InputTextModule, typeof i64.InputTextareaModule, typeof i65.PaginatorModule, typeof i66.RadioButtonModule, typeof i67.RippleModule, typeof i68.SelectButtonModule, typeof i69.TableModule, typeof i70.TagModule, typeof i71.ToastModule, typeof i72.ToggleButtonModule, typeof i73.ToolbarModule, typeof i74.TooltipModule, typeof i75.MessagesModule, typeof i76.ProgressSpinnerModule, typeof i77.TabViewModule, typeof i78.FieldsetModule, typeof i79.MultiSelectModule, typeof i80.SkeletonModule], [typeof i47.AutoCompleteModule, typeof i48.BreadcrumbModule, typeof i49.ButtonModule, typeof i50.CalendarModule, typeof i51.CardModule, typeof i52.CheckboxModule, typeof i53.ChipModule, typeof i54.ConfirmDialogModule, typeof i55.ConfirmPopupModule, typeof i56.DialogModule, typeof i57.DynamicDialogModule, typeof i58.DropdownModule, typeof i59.FileUploadModule, typeof i60.InputNumberModule, typeof i61.InputMaskModule, typeof i62.InputSwitchModule, typeof i63.InputTextModule, typeof i64.InputTextareaModule, typeof i65.PaginatorModule, typeof i66.RadioButtonModule, typeof i67.RippleModule, typeof i68.SelectButtonModule, typeof i69.TableModule, typeof i70.TagModule, typeof i71.ToastModule, typeof i72.ToggleButtonModule, typeof i73.ToolbarModule, typeof i74.TooltipModule, typeof i75.MessagesModule, typeof i76.ProgressSpinnerModule, typeof i77.TabViewModule, typeof i78.FieldsetModule, typeof i79.MultiSelectModule, typeof i80.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngFormlyFieldWrapperComponent, typeof i21.MngFormlyTableWrapperComponent, typeof i22.MngFormlyFieldInputComponent, typeof i23.MngFormlyFieldLabelComponent, typeof i24.MngFormlyFieldDropdownComponent, typeof i25.MngFormlyFieldAutocompleteComponent, typeof i26.MngFormlyFieldLookupDialogComponent, typeof i27.MngFormlyFieldTableDialogMultiselectComponent, typeof i28.MngFormlyFieldTableDialogFormComponent, typeof i29.MngFormlyFieldTabsComponent, typeof i30.MngFormlyFieldFieldsetComponent, typeof i31.MngTableComponent, typeof i32.MngTableviewComponent, typeof i33.MngTableColumnValueComponent, typeof i34.MngTableColumnFilterComponent, typeof i35.MngTableviewRouteComponent, typeof i36.MngFormEditorComponent, typeof i37.MngActionComponent, typeof i38.MngActionEditorComponent, typeof i39.MngActionRouteComponent, typeof i40.MngButtonComponent]>;
|
|
89
90
|
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
90
91
|
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AttributeDef } from '../api/models';
|
|
2
|
+
import { ColumnTypeEnum, FieldInputTypeEnum } from '../descriptors/types';
|
|
3
|
+
import { ClassType, EnumType } from '../types';
|
|
4
|
+
export interface TableviewAttributeDef extends AttributeDef {
|
|
5
|
+
columnType: ColumnTypeEnum;
|
|
6
|
+
fieldType?: FieldInputTypeEnum;
|
|
7
|
+
enumType?: EnumType;
|
|
8
|
+
classType?: ClassType<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngClassMapPipe<T> implements PipeTransform {
|
|
4
|
+
transform(value?: string, classNameMapFn?: (className?: string, i?: T) => string, i?: T): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngClassMapPipe<any>, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngClassMapPipe<any>, "mngClassMapPipe", false>;
|
|
7
|
+
}
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -19,6 +19,12 @@ export interface MngRouterData extends Data {
|
|
|
19
19
|
tableviewPermissions?: {
|
|
20
20
|
[key: string]: APermissions;
|
|
21
21
|
};
|
|
22
|
+
tableviewActions?: {
|
|
23
|
+
hasAdd?: boolean;
|
|
24
|
+
hasEdit?: boolean;
|
|
25
|
+
hasDetails?: boolean;
|
|
26
|
+
hasDelete?: boolean;
|
|
27
|
+
};
|
|
22
28
|
topbarComponent?: Type<any>;
|
|
23
29
|
breadcrumbComponent?: Type<any>;
|
|
24
30
|
menuComponent?: Type<any>;
|
|
@@ -17,13 +17,16 @@ export declare class TableviewRouteBuilder<C extends AMngTableviewRouteComponent
|
|
|
17
17
|
private editPath;
|
|
18
18
|
private hasAdd;
|
|
19
19
|
private addPath;
|
|
20
|
+
private hasDelete;
|
|
20
21
|
private permissions?;
|
|
21
22
|
private constructor();
|
|
22
23
|
static fromComponent<C extends AMngTableviewRouteComponent<any, any>>(path: string, component: Type<C>): TableviewRouteBuilder<C>;
|
|
23
24
|
static from(path: string, descriptor: TableviewDescriptor<any>, dataProvider: ITableviewDataProvider<any, any>, actions: Array<ActionDescriptor<any>>): TableviewRouteBuilder<never>;
|
|
25
|
+
withReadOnly(permissions?: APermissions): this;
|
|
24
26
|
withDetails(hasDetails?: boolean, permissions?: APermissions, path?: string): this;
|
|
25
27
|
withAdd(hasAdd?: boolean, permissions?: APermissions, path?: string): this;
|
|
26
28
|
withEdit(hasEdit?: boolean, permissions?: APermissions, path?: string): this;
|
|
29
|
+
withDelete(hasDelete?: boolean, permissions?: APermissions): this;
|
|
27
30
|
withPermissions(read?: APermissions, add?: APermissions, edit?: APermissions, delet?: APermissions, details?: APermissions): this;
|
|
28
31
|
withPermissionsOther(key: string, permissions: APermissions): this;
|
|
29
32
|
withPermissionsObject(permissions: {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AttributeDef } from '../api/models';
|
|
2
|
+
import { ColumnDescriptor } from '../descriptors';
|
|
3
|
+
import { ColumnTypeEnum, FieldInputTypeEnum } from '../descriptors/types';
|
|
4
|
+
import { TableviewAttributeDef } from '../models/tableview-attr.model';
|
|
5
|
+
import { ClassType } from '../types';
|
|
6
|
+
export declare class TableviewUtil {
|
|
7
|
+
private static _dateRegex;
|
|
8
|
+
/**
|
|
9
|
+
* returns attributes from class type and extends to typed def with column and field enum type
|
|
10
|
+
* @param modelType class type
|
|
11
|
+
*/
|
|
12
|
+
static getAttributeDefMap<T>(modelType: ClassType<T>): TableviewAttributeDef[];
|
|
13
|
+
/**
|
|
14
|
+
* expands AttributeDef to TableviewAttributeDef with defined input and column enum type
|
|
15
|
+
* @param attributes open api specification model
|
|
16
|
+
*/
|
|
17
|
+
static expandAttributeDefWithTableviewTypes(attributes?: Array<AttributeDef> | null): TableviewAttributeDef[];
|
|
18
|
+
/**
|
|
19
|
+
* converts column to number or date on value based
|
|
20
|
+
* @param column column to be transformed
|
|
21
|
+
* @param value value to check if applicable
|
|
22
|
+
*/
|
|
23
|
+
static stringColumnConverter(column: ColumnDescriptor<any, any>, value: any): ColumnDescriptor<any, any>;
|
|
24
|
+
/**
|
|
25
|
+
* converts string type to column type enum, default is string
|
|
26
|
+
* @param property
|
|
27
|
+
*/
|
|
28
|
+
static toColumnType(property: string): ColumnTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* converts string type to type enum, default is text
|
|
31
|
+
* @param property
|
|
32
|
+
*/
|
|
33
|
+
static toFieldInputType(property: string): FieldInputTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
* convert column type to equivalent field input type
|
|
36
|
+
* @param type column type
|
|
37
|
+
*/
|
|
38
|
+
static toFieldInputTypeFromColumnType(type: ColumnTypeEnum): FieldInputTypeEnum;
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -45,3 +45,20 @@
|
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
.mng-table-header {
|
|
50
|
+
& > th {
|
|
51
|
+
&:not(:first-child):not(:last-child) {
|
|
52
|
+
border-radius: 0 !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:first-child {
|
|
56
|
+
border-top-right-radius: 0 !important;
|
|
57
|
+
border-bottom-right-radius: 0 !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:last-child {
|
|
61
|
+
border-radius: 0 8px 8px 0 !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
package/version-info.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"tag": "v0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
|
+
"tag": "v0.14.0",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "83dd723b",
|
|
7
7
|
"dirty": false,
|
|
8
|
-
"semver": "0.
|
|
9
|
-
"raw": "v0.
|
|
8
|
+
"semver": "0.14.0",
|
|
9
|
+
"raw": "v0.14.0-83dd723b"
|
|
10
10
|
}
|