@mediusinc/mng-commons 3.0.0-rc.0 → 3.0.0-rc.3
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/README.md +11 -10
- package/esm2022/lib/components/action/action.component.mjs +3 -3
- package/esm2022/lib/components/action/editor/action-editor.component.mjs +1 -1
- package/esm2022/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.mjs +20 -35
- package/esm2022/lib/components/layout/menu-item.component.mjs +1 -2
- package/esm2022/lib/components/tableview/table/table.component.mjs +3 -3
- package/esm2022/lib/descriptors/action/action-button.descriptor.mjs +10 -2
- package/esm2022/lib/descriptors/editor/field.descriptor.mjs +7 -2
- package/esm2022/lib/descriptors/table/table.descriptor.mjs +17 -4
- package/fesm2022/mediusinc-mng-commons.mjs +54 -43
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.d.ts +1 -0
- package/lib/descriptors/action/action-button.descriptor.d.ts +4 -1
- package/lib/descriptors/editor/field.descriptor.d.ts +3 -1
- package/lib/descriptors/table/table.descriptor.d.ts +17 -5
- package/package.json +3 -3
- package/scss/mng-overrides/_theme_tableview.scss +8 -0
package/lib/components/form/formly/fields/formly-field-custom/formly-field-custom.component.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { MngFormlyFieldConfig } from '../../models';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class MngFormlyFieldCustomComponent<ET> extends FieldType<MngFormlyFieldConfig> implements OnInit {
|
|
7
7
|
descriptor: FieldInputDescriptor<ET>;
|
|
8
|
+
inputs: Record<string, any>;
|
|
8
9
|
ngOnInit(): void;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldCustomComponent<any>, never>;
|
|
10
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldCustomComponent<any>, "mng-formly-field-custom", never, {}, {}, never, never, true, never>;
|
|
@@ -6,17 +6,20 @@ export declare class ActionButtonDescriptor {
|
|
|
6
6
|
private _styleClass;
|
|
7
7
|
private _badge?;
|
|
8
8
|
private _tooltip?;
|
|
9
|
+
private _tooltipPosition?;
|
|
9
10
|
withLabel(label?: string | null): this;
|
|
10
11
|
withIcon(icon: string | null): this;
|
|
11
12
|
withIconPosition(iconPosition: 'left' | 'right'): this;
|
|
12
13
|
withStyleClass(style: ButtonStyleBuilder): this;
|
|
13
14
|
withBadge(badge: string): this;
|
|
14
|
-
withTooltip(tooltip: string): this;
|
|
15
|
+
withTooltip(tooltip: string, position?: 'top' | 'bottom' | 'left' | 'right'): this;
|
|
16
|
+
withTooltipPosition(position: 'top' | 'bottom' | 'left' | 'right'): this;
|
|
15
17
|
get label(): string | null | undefined;
|
|
16
18
|
get icon(): string | null | undefined;
|
|
17
19
|
get iconPosition(): "left" | "right";
|
|
18
20
|
get styleClass(): ButtonStyleBuilder;
|
|
19
21
|
get badge(): string | undefined;
|
|
20
22
|
get tooltip(): string | undefined;
|
|
23
|
+
get tooltipPosition(): "top" | "bottom" | "left" | "right" | undefined;
|
|
21
24
|
copy(): ActionButtonDescriptor;
|
|
22
25
|
}
|
|
@@ -159,6 +159,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
159
159
|
private _imageUrlInputHiddenOnDisabled;
|
|
160
160
|
private _customComponentName?;
|
|
161
161
|
private _customComponentType?;
|
|
162
|
+
private _customComponentInputs?;
|
|
162
163
|
private _customComponentWrappers;
|
|
163
164
|
constructor(editor: EditorDescriptor<ET>, property: string);
|
|
164
165
|
/**
|
|
@@ -195,6 +196,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
195
196
|
get imageUrlInputVisibleOnDisabled(): boolean;
|
|
196
197
|
get customComponentName(): string | undefined;
|
|
197
198
|
get customComponentType(): Type<AMngFormlyCustomFieldComponent> | undefined;
|
|
199
|
+
get customComponentInputs(): Record<string, any> | undefined;
|
|
198
200
|
get customComponentWrappers(): string[];
|
|
199
201
|
get locale(): string | undefined;
|
|
200
202
|
get currency(): string | undefined;
|
|
@@ -214,7 +216,7 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
214
216
|
asFile(multiple?: boolean, maxFileSize?: number, accept?: string): this;
|
|
215
217
|
asImageFile(multiple?: boolean, maxFileSize?: number, accept?: string): this;
|
|
216
218
|
asImageUrl(multiple?: boolean, preview?: boolean, inputVisibleOnDisabled?: boolean): this;
|
|
217
|
-
asCustomComponent(customComponent: string | Type<AMngFormlyCustomFieldComponent>, useWrappers?: string[]): this;
|
|
219
|
+
asCustomComponent(customComponent: string | Type<AMngFormlyCustomFieldComponent>, useWrappers?: string[], componentInputs?: Record<string, any>): this;
|
|
218
220
|
withNumberValidation(min?: number, max?: number, step?: number, autoCorrect?: boolean): this;
|
|
219
221
|
withLocale(locale: string): this;
|
|
220
222
|
withNumberFractions(min?: number, max?: number): this;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { MediusQueryResult } from '../../api/models';
|
|
3
3
|
import { ILookupDataProvider } from '../../data-providers';
|
|
4
|
-
import { IColumnValueComponent } from '../../models';
|
|
5
|
-
import { TableviewAttributeDef } from '../../models/tableview-attr.model';
|
|
4
|
+
import { IColumnValueComponent, TableviewAttributeDef } from '../../models';
|
|
6
5
|
import { ClassType, EnumType } from '../../types';
|
|
7
6
|
import { ModelDescriptor } from '../model.descriptor';
|
|
8
7
|
import { ColumnDisplayTypeEnum, ColumnTypeEnum, TableDynamicColumnsModeEnum, TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum } from '../types';
|
|
@@ -104,8 +103,16 @@ export declare class TableDescriptor<T> {
|
|
|
104
103
|
withHideHeader(hideHeader?: boolean): this;
|
|
105
104
|
withDataKeyProperty(property: string): this;
|
|
106
105
|
withLoading(text?: string, icon?: string | null): this;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Helper method that enables/disables reorderable property on all columns currently in the descriptor.
|
|
108
|
+
* @param columnsReorderable: boolean
|
|
109
|
+
*/
|
|
110
|
+
withCurrentColumnsReorderable(columnsReorderable?: boolean): this;
|
|
111
|
+
/**
|
|
112
|
+
* Helper method that enables/disables toggleable property on all columns currently in the descriptor.
|
|
113
|
+
* @param columnsToggleable: boolean
|
|
114
|
+
*/
|
|
115
|
+
withCurrentColumnsToggleable(columnsToggleable?: boolean): this;
|
|
109
116
|
withDefaultSort(property: string, asc?: boolean): this;
|
|
110
117
|
withClassName(className: string): this;
|
|
111
118
|
withSize(size?: TableSizeEnum): this;
|
|
@@ -113,7 +120,12 @@ export declare class TableDescriptor<T> {
|
|
|
113
120
|
withRowHeight(rowHeight: number): this;
|
|
114
121
|
withHover(hover: boolean): this;
|
|
115
122
|
withGridlines(gridlines: boolean): this;
|
|
116
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Method that enables/disabled column resize feature with columnResizeMode on all columns.
|
|
125
|
+
* @param resizableColumns: boolean
|
|
126
|
+
* @param columnResizeMode: 'fit' | 'expand' = 'fit'
|
|
127
|
+
*/
|
|
128
|
+
withColumnsResizable(resizableColumns?: boolean, columnResizeMode?: 'fit' | 'expand'): this;
|
|
117
129
|
withRowClassName(rowClassName?: string, classNameMapFn?: (className?: string, item?: T) => string): this;
|
|
118
130
|
withHeaderClassName(headerClassName: string): this;
|
|
119
131
|
withLocalized(): this;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
+
"@angular/animations": "^16.0.0",
|
|
5
6
|
"@angular/common": "^16.0.0",
|
|
6
7
|
"@angular/core": "^16.0.0",
|
|
7
8
|
"@angular/forms": "^16.0.0",
|
|
8
|
-
"@angular/router": "^16.0.0",
|
|
9
|
-
"@angular/animations": "^16.0.0",
|
|
10
9
|
"@angular/platform-browser": "^16.0.0",
|
|
10
|
+
"@angular/router": "^16.0.0",
|
|
11
11
|
"@ngx-formly/core": "^6.1.3",
|
|
12
12
|
"@ngx-translate/core": "^14.0.0",
|
|
13
13
|
"primeng": "^16.0.0"
|