@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.
Files changed (67) hide show
  1. package/esm2020/lib/api/utils/medius-rest.util.mjs +8 -3
  2. package/esm2020/lib/components/action/action.component.mjs +17 -4
  3. package/esm2020/lib/components/action/editor/action-editor.component.mjs +1 -1
  4. package/esm2020/lib/components/action/models/action-execution.model.mjs +6 -1
  5. package/esm2020/lib/components/action/models/index.mjs +2 -1
  6. package/esm2020/lib/components/action/models/tableview-action-default-categories.model.mjs +11 -0
  7. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +1 -1
  8. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +17 -10
  9. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +5 -13
  10. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +5 -2
  11. package/esm2020/lib/components/tableview/table/table.component.mjs +48 -20
  12. package/esm2020/lib/components/tableview/tableview.component.mjs +9 -3
  13. package/esm2020/lib/data-providers/table.data-provider.mjs +9 -2
  14. package/esm2020/lib/data-providers/tableview.data-provider.mjs +30 -2
  15. package/esm2020/lib/descriptors/action.descriptor.mjs +11 -1
  16. package/esm2020/lib/descriptors/column.descriptor.mjs +106 -29
  17. package/esm2020/lib/descriptors/editor.descriptor.mjs +109 -7
  18. package/esm2020/lib/descriptors/field.descriptor.mjs +38 -4
  19. package/esm2020/lib/descriptors/filter.descriptor.mjs +13 -6
  20. package/esm2020/lib/descriptors/index.mjs +2 -2
  21. package/esm2020/lib/descriptors/table.descriptor.mjs +282 -16
  22. package/esm2020/lib/descriptors/tableview.descriptor.mjs +175 -3
  23. package/esm2020/lib/descriptors/types/table.type.mjs +10 -1
  24. package/esm2020/lib/mng-commons.module.mjs +5 -1
  25. package/esm2020/lib/models/index.mjs +2 -1
  26. package/esm2020/lib/models/tableview-attr.model.mjs +2 -0
  27. package/esm2020/lib/pipes/class-map.pipe.mjs +22 -0
  28. package/esm2020/lib/pipes/index.mjs +2 -1
  29. package/esm2020/lib/router/models/router.model.mjs +1 -1
  30. package/esm2020/lib/router/tableview-route-builder.mjs +41 -17
  31. package/esm2020/lib/services/action-executor.service.mjs +1 -1
  32. package/esm2020/lib/utils/tableview.util.mjs +144 -0
  33. package/fesm2015/mediusinc-mng-commons.mjs +1095 -128
  34. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  35. package/fesm2020/mediusinc-mng-commons.mjs +1077 -117
  36. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  37. package/lib/api/utils/medius-rest.util.d.ts +1 -0
  38. package/lib/components/action/action.component.d.ts +2 -1
  39. package/lib/components/action/models/action-execution.model.d.ts +2 -0
  40. package/lib/components/action/models/index.d.ts +1 -0
  41. package/lib/components/action/models/tableview-action-default-categories.model.d.ts +10 -0
  42. package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +9 -4
  43. package/lib/components/tableview/route/tableview-route.component.d.ts +0 -5
  44. package/lib/components/tableview/table/table.component.d.ts +4 -2
  45. package/lib/components/tableview/tableview.component.d.ts +3 -0
  46. package/lib/data-providers/table.data-provider.d.ts +6 -1
  47. package/lib/data-providers/tableview.data-provider.d.ts +16 -2
  48. package/lib/descriptors/action.descriptor.d.ts +4 -0
  49. package/lib/descriptors/column.descriptor.d.ts +39 -5
  50. package/lib/descriptors/editor.descriptor.d.ts +69 -11
  51. package/lib/descriptors/field.descriptor.d.ts +7 -2
  52. package/lib/descriptors/filter.descriptor.d.ts +7 -6
  53. package/lib/descriptors/index.d.ts +1 -1
  54. package/lib/descriptors/table.descriptor.d.ts +124 -8
  55. package/lib/descriptors/tableview.descriptor.d.ts +81 -7
  56. package/lib/descriptors/types/table.type.d.ts +8 -0
  57. package/lib/mng-commons.module.d.ts +72 -71
  58. package/lib/models/index.d.ts +1 -0
  59. package/lib/models/tableview-attr.model.d.ts +9 -0
  60. package/lib/pipes/class-map.pipe.d.ts +7 -0
  61. package/lib/pipes/index.d.ts +1 -0
  62. package/lib/router/models/router.model.d.ts +6 -0
  63. package/lib/router/tableview-route-builder.d.ts +3 -0
  64. package/lib/utils/tableview.util.d.ts +39 -0
  65. package/package.json +1 -1
  66. package/scss/mng-overrides/_theme_tableview.scss +17 -0
  67. 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
- private _columns;
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): TableDescriptor<T>;
83
+ withTitle(title: string): this;
56
84
  withHideHeader(hideHeader?: boolean): this;
57
- withDataKeyProperty(property: string): TableDescriptor<T>;
58
- withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
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): TableDescriptor<T>;
62
- withRowHeight(rowHeight: number): TableDescriptor<T>;
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
- private _table;
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
- private _tableTitle;
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 "./components/layout/breadcrumb.component";
15
- import * as i11 from "./components/layout/footer.component";
16
- import * as i12 from "./components/layout/main-layout.component";
17
- import * as i13 from "./components/layout/menu.component";
18
- import * as i14 from "./components/layout/menu-item.component";
19
- import * as i15 from "./components/layout/topbar.component";
20
- import * as i16 from "./components/layout/version.component";
21
- import * as i17 from "./components/form/autocomplete/autocomplete.component";
22
- import * as i18 from "./components/form/dropdown/dropdown.component";
23
- import * as i19 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
24
- import * as i20 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
25
- import * as i21 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
26
- import * as i22 from "./components/form/formly/fields/formly-field-label/formly-field-label.component";
27
- import * as i23 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
28
- import * as i24 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
29
- import * as i25 from "./components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component";
30
- import * as i26 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
31
- import * as i27 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
32
- import * as i28 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
33
- import * as i29 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
34
- import * as i30 from "./components/tableview/table/table.component";
35
- import * as i31 from "./components/tableview/tableview.component";
36
- import * as i32 from "./components/tableview/table/column-value/column-value.component";
37
- import * as i33 from "./components/tableview/table/column-filter/column-filter.component";
38
- import * as i34 from "./components/tableview/route/tableview-route.component";
39
- import * as i35 from "./components/form/editor/form-editor.component";
40
- import * as i36 from "./components/action/action.component";
41
- import * as i37 from "./components/action/editor/action-editor.component";
42
- import * as i38 from "./components/action/route/action-route.component";
43
- import * as i39 from "./components/button/button.component";
44
- import * as i40 from "@angular/common";
45
- import * as i41 from "@angular/router";
46
- import * as i42 from "@angular/common/http";
47
- import * as i43 from "@angular/forms";
48
- import * as i44 from "@ngx-translate/core";
49
- import * as i45 from "@ngx-formly/core";
50
- import * as i46 from "primeng/autocomplete";
51
- import * as i47 from "primeng/breadcrumb";
52
- import * as i48 from "primeng/button";
53
- import * as i49 from "primeng/calendar";
54
- import * as i50 from "primeng/card";
55
- import * as i51 from "primeng/checkbox";
56
- import * as i52 from "primeng/chip";
57
- import * as i53 from "primeng/confirmdialog";
58
- import * as i54 from "primeng/confirmpopup";
59
- import * as i55 from "primeng/dialog";
60
- import * as i56 from "primeng/dynamicdialog";
61
- import * as i57 from "primeng/dropdown";
62
- import * as i58 from "primeng/fileupload";
63
- import * as i59 from "primeng/inputnumber";
64
- import * as i60 from "primeng/inputmask";
65
- import * as i61 from "primeng/inputswitch";
66
- import * as i62 from "primeng/inputtext";
67
- import * as i63 from "primeng/inputtextarea";
68
- import * as i64 from "primeng/paginator";
69
- import * as i65 from "primeng/radiobutton";
70
- import * as i66 from "primeng/ripple";
71
- import * as i67 from "primeng/selectbutton";
72
- import * as i68 from "primeng/table";
73
- import * as i69 from "primeng/tag";
74
- import * as i70 from "primeng/toast";
75
- import * as i71 from "primeng/togglebutton";
76
- import * as i72 from "primeng/toolbar";
77
- import * as i73 from "primeng/tooltip";
78
- import * as i74 from "primeng/messages";
79
- import * as i75 from "primeng/progressspinner";
80
- import * as i76 from "primeng/tabview";
81
- import * as i77 from "primeng/fieldset";
82
- import * as i78 from "primeng/multiselect";
83
- import * as i79 from "primeng/skeleton";
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.MngBreadcrumbComponent, typeof i11.MngFooterComponent, typeof i12.MngMainLayoutComponent, typeof i13.MngMenuComponent, typeof i14.MngMenuItemComponent, typeof i15.MngTopbarComponent, typeof i16.MngVersionComponent, typeof i17.MngAutocompleteComponent, typeof i18.MngDropdownComponent, typeof i19.MngFormlyFieldWrapperComponent, typeof i20.MngFormlyTableWrapperComponent, typeof i21.MngFormlyFieldInputComponent, typeof i22.MngFormlyFieldLabelComponent, typeof i23.MngFormlyFieldDropdownComponent, typeof i24.MngFormlyFieldAutocompleteComponent, typeof i25.MngFormlyFieldLookupDialogComponent, typeof i26.MngFormlyFieldTableDialogMultiselectComponent, typeof i27.MngFormlyFieldTableDialogFormComponent, typeof i28.MngFormlyFieldTabsComponent, typeof i29.MngFormlyFieldFieldsetComponent, typeof i30.MngTableComponent, typeof i31.MngTableviewComponent, typeof i32.MngTableColumnValueComponent, typeof i33.MngTableColumnFilterComponent, typeof i34.MngTableviewRouteComponent, typeof i35.MngFormEditorComponent, typeof i36.MngActionComponent, typeof i37.MngActionEditorComponent, typeof i38.MngActionRouteComponent, typeof i39.MngButtonComponent], [typeof i40.CommonModule, typeof i41.RouterModule, typeof i42.HttpClientModule, typeof i43.ReactiveFormsModule, typeof i44.TranslateModule, typeof i45.FormlyModule, typeof i46.AutoCompleteModule, typeof i47.BreadcrumbModule, typeof i48.ButtonModule, typeof i49.CalendarModule, typeof i50.CardModule, typeof i51.CheckboxModule, typeof i52.ChipModule, typeof i53.ConfirmDialogModule, typeof i54.ConfirmPopupModule, typeof i55.DialogModule, typeof i56.DynamicDialogModule, typeof i57.DropdownModule, typeof i58.FileUploadModule, typeof i59.InputNumberModule, typeof i60.InputMaskModule, typeof i61.InputSwitchModule, typeof i62.InputTextModule, typeof i63.InputTextareaModule, typeof i64.PaginatorModule, typeof i65.RadioButtonModule, typeof i66.RippleModule, typeof i67.SelectButtonModule, typeof i68.TableModule, typeof i69.TagModule, typeof i70.ToastModule, typeof i71.ToggleButtonModule, typeof i72.ToolbarModule, typeof i73.TooltipModule, typeof i74.MessagesModule, typeof i75.ProgressSpinnerModule, typeof i76.TabViewModule, typeof i77.FieldsetModule, typeof i78.MultiSelectModule, typeof i79.SkeletonModule], [typeof i46.AutoCompleteModule, typeof i47.BreadcrumbModule, typeof i48.ButtonModule, typeof i49.CalendarModule, typeof i50.CardModule, typeof i51.CheckboxModule, typeof i52.ChipModule, typeof i53.ConfirmDialogModule, typeof i54.ConfirmPopupModule, typeof i55.DialogModule, typeof i56.DynamicDialogModule, typeof i57.DropdownModule, typeof i58.FileUploadModule, typeof i59.InputNumberModule, typeof i60.InputMaskModule, typeof i61.InputSwitchModule, typeof i62.InputTextModule, typeof i63.InputTextareaModule, typeof i64.PaginatorModule, typeof i65.RadioButtonModule, typeof i66.RippleModule, typeof i67.SelectButtonModule, typeof i68.TableModule, typeof i69.TagModule, typeof i70.ToastModule, typeof i71.ToggleButtonModule, typeof i72.ToolbarModule, typeof i73.TooltipModule, typeof i74.MessagesModule, typeof i75.ProgressSpinnerModule, typeof i76.TabViewModule, typeof i77.FieldsetModule, typeof i78.MultiSelectModule, typeof i79.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.MngBreadcrumbComponent, typeof i11.MngFooterComponent, typeof i12.MngMainLayoutComponent, typeof i13.MngMenuComponent, typeof i14.MngMenuItemComponent, typeof i15.MngTopbarComponent, typeof i16.MngVersionComponent, typeof i17.MngAutocompleteComponent, typeof i18.MngDropdownComponent, typeof i19.MngFormlyFieldWrapperComponent, typeof i20.MngFormlyTableWrapperComponent, typeof i21.MngFormlyFieldInputComponent, typeof i22.MngFormlyFieldLabelComponent, typeof i23.MngFormlyFieldDropdownComponent, typeof i24.MngFormlyFieldAutocompleteComponent, typeof i25.MngFormlyFieldLookupDialogComponent, typeof i26.MngFormlyFieldTableDialogMultiselectComponent, typeof i27.MngFormlyFieldTableDialogFormComponent, typeof i28.MngFormlyFieldTabsComponent, typeof i29.MngFormlyFieldFieldsetComponent, typeof i30.MngTableComponent, typeof i31.MngTableviewComponent, typeof i32.MngTableColumnValueComponent, typeof i33.MngTableColumnFilterComponent, typeof i34.MngTableviewRouteComponent, typeof i35.MngFormEditorComponent, typeof i36.MngActionComponent, typeof i37.MngActionEditorComponent, typeof i38.MngActionRouteComponent, typeof i39.MngButtonComponent]>;
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
  }
@@ -6,3 +6,4 @@ export * from './user.model';
6
6
  export * from './version.model';
7
7
  export * from './view-container.model';
8
8
  export * from './formly-field.model';
9
+ export * from './tableview-attr.model';
@@ -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
+ }
@@ -5,3 +5,4 @@ export * from './json-path.pipe';
5
5
  export * from './parametrize.pipe';
6
6
  export * from './getter.pipe';
7
7
  export * from './template.pipe';
8
+ export * from './class-map.pipe';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~14.1.0",
6
6
  "@angular/core": "~14.1.0",
@@ -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.13.0",
4
- "tag": "v0.13.0",
3
+ "version": "0.14.0",
4
+ "tag": "v0.14.0",
5
5
  "distance": 0,
6
- "hash": "204d307b",
6
+ "hash": "83dd723b",
7
7
  "dirty": false,
8
- "semver": "0.13.0",
9
- "raw": "v0.13.0-204d307b"
8
+ "semver": "0.14.0",
9
+ "raw": "v0.14.0-83dd723b"
10
10
  }