@mediusinc/mng-commons 6.1.0-rc.1 → 6.2.0-rc.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/core/helpers/route.d.ts +1 -0
- package/core/models/menu.model.d.ts +1 -0
- package/fesm2022/mediusinc-mng-commons-core.mjs +3 -3
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +8 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +34 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +28 -4
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/form/components/autocomplete/autocomplete.component.d.ts +1 -0
- package/package.json +1 -1
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +11 -0
- package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +4 -1
- package/version-info.json +5 -5
|
@@ -44,6 +44,7 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnIn
|
|
|
44
44
|
private isFocused;
|
|
45
45
|
private userSelectedItem?;
|
|
46
46
|
private queryResultCacheSubject?;
|
|
47
|
+
private currentQuery?;
|
|
47
48
|
optionsLabelProperty: import("@angular/core").Signal<string | undefined>;
|
|
48
49
|
optionsValueProperty: import("@angular/core").Signal<string | undefined>;
|
|
49
50
|
get value(): any;
|
package/package.json
CHANGED
|
@@ -9,15 +9,23 @@ import { FieldValidationDescriptor } from './field-validation.descriptor';
|
|
|
9
9
|
export declare const fieldDescriptorEmptyLabelType = "_emptyLabel";
|
|
10
10
|
export declare abstract class AGenericFieldDescriptor {
|
|
11
11
|
protected _config: FieldConfig;
|
|
12
|
+
protected _formlyConfig: FormlyFieldConfig;
|
|
12
13
|
protected constructor();
|
|
13
14
|
get config(): object;
|
|
15
|
+
get formlyConfig(): FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
16
|
+
[additionalProperties: string]: any;
|
|
17
|
+
}>;
|
|
14
18
|
withConfig(config: FieldConfig): this;
|
|
19
|
+
withFormlyConfig(formlyConfig: FormlyFieldConfig): this;
|
|
15
20
|
/**
|
|
16
21
|
* Override toJSON implementation to prevent overflow with circular dependency.
|
|
17
22
|
* @ignore
|
|
18
23
|
*/
|
|
19
24
|
protected toJSON(): string;
|
|
20
25
|
}
|
|
26
|
+
export type FieldValidationOptsType = {
|
|
27
|
+
forceShowMessage?: boolean;
|
|
28
|
+
};
|
|
21
29
|
export type FieldClassNameType = {
|
|
22
30
|
field?: string;
|
|
23
31
|
grid?: string;
|
|
@@ -42,6 +50,7 @@ export declare abstract class AFieldDescriptor<FieldModel, EditorModel, FieldVal
|
|
|
42
50
|
/** @ignore */ protected _setter?: (item: EditorModel, value: FieldValue) => void;
|
|
43
51
|
/** @ignore */ protected _validations: Array<FieldValidationDescriptor<any, any, any>>;
|
|
44
52
|
/** @ignore */ protected _asyncValidations: Array<FieldValidationDescriptor<any, any, any>>;
|
|
53
|
+
/** @ignore */ protected _validationOpts: FieldValidationOptsType;
|
|
45
54
|
/** @ignore */ protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
46
55
|
/** @ignore */ protected _disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
47
56
|
/** @ignore */ protected _hiddenExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
|
|
@@ -73,6 +82,7 @@ export declare abstract class AFieldDescriptor<FieldModel, EditorModel, FieldVal
|
|
|
73
82
|
get setter(): ((item: EditorModel, value: FieldValue) => void) | undefined;
|
|
74
83
|
get validations(): FieldValidationDescriptor<any, any, any>[];
|
|
75
84
|
get asyncValidations(): FieldValidationDescriptor<any, any, any>[];
|
|
85
|
+
get validationOpts(): FieldValidationOptsType;
|
|
76
86
|
get requiredExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig) => boolean) | undefined;
|
|
77
87
|
get disabledExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig) => boolean) | undefined;
|
|
78
88
|
get hiddenExpression(): string | Observable<boolean> | ((field?: FormlyFieldConfig) => boolean) | undefined;
|
|
@@ -123,6 +133,7 @@ export declare abstract class AFieldDescriptor<FieldModel, EditorModel, FieldVal
|
|
|
123
133
|
removeValidation(name: string): this;
|
|
124
134
|
withAsyncValidation<Value = FieldValue, EditorValue = EditorModel>(name: string, asyncValidator?: FieldAsyncValidator<Value, EditorValue>, message?: FieldValidationMessage<Value, EditorValue>): this;
|
|
125
135
|
removeAsyncValidation(name: string): this;
|
|
136
|
+
withValidationOpts(validationOpts: FieldValidationOptsType): this;
|
|
126
137
|
withClassName(opts?: string | FieldClassNameType): this;
|
|
127
138
|
withSize(size?: FieldSizeEnum): this;
|
|
128
139
|
/**
|
|
@@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import { FormValidationMessage, FormValidator } from '../models/field-validation.model';
|
|
3
3
|
import { FieldGroupTypeEnum } from '../models/field.model';
|
|
4
4
|
import { CommonsFormlyFieldConfig } from '../models/formly-field.model';
|
|
5
|
-
import { AFieldDescriptor, AGenericFieldDescriptor } from './field-base.descriptor';
|
|
5
|
+
import { AFieldDescriptor, AGenericFieldDescriptor, FieldValidationOptsType } from './field-base.descriptor';
|
|
6
6
|
import { FieldValidationDescriptor, FieldValidationDescriptorOptsType } from './field-validation.descriptor';
|
|
7
7
|
export declare abstract class AFieldGroupDescriptor<EditorModel, ParentEditorModel = undefined> extends AGenericFieldDescriptor {
|
|
8
8
|
protected readonly _name: string;
|
|
@@ -10,6 +10,7 @@ export declare abstract class AFieldGroupDescriptor<EditorModel, ParentEditorMod
|
|
|
10
10
|
protected _title?: string | null;
|
|
11
11
|
protected _fields: AGenericFieldDescriptor[];
|
|
12
12
|
protected _validations: Array<FieldValidationDescriptor<any, any, any>>;
|
|
13
|
+
protected _validationOpts: FieldValidationOptsType;
|
|
13
14
|
protected _hiddenExpression?: string | ((field?: CommonsFormlyFieldConfig<EditorModel, EditorModel>) => boolean) | Observable<boolean>;
|
|
14
15
|
protected constructor(name: string);
|
|
15
16
|
removeField(property: string, filterFunction: (fields: AGenericFieldDescriptor[]) => AGenericFieldDescriptor[]): AGenericFieldDescriptor[];
|
|
@@ -17,6 +18,7 @@ export declare abstract class AFieldGroupDescriptor<EditorModel, ParentEditorMod
|
|
|
17
18
|
abstract get type(): FieldGroupTypeEnum;
|
|
18
19
|
abstract get fields(): AGenericFieldDescriptor[];
|
|
19
20
|
get validations(): FieldValidationDescriptor<any, any, any>[];
|
|
21
|
+
get validationOpts(): FieldValidationOptsType;
|
|
20
22
|
get name(): string;
|
|
21
23
|
get default(): boolean;
|
|
22
24
|
get hiddenExpression(): string | Observable<boolean> | ((field?: CommonsFormlyFieldConfig<EditorModel, EditorModel>) => boolean) | undefined;
|
|
@@ -24,6 +26,7 @@ export declare abstract class AFieldGroupDescriptor<EditorModel, ParentEditorMod
|
|
|
24
26
|
abstract copy(): AFieldGroupDescriptor<EditorModel, ParentEditorModel>;
|
|
25
27
|
withTitle(title?: string | null): this;
|
|
26
28
|
withValidation<Value = EditorModel, ParentValue = ParentEditorModel>(name: string, validator?: FormValidator<Value, ParentValue>, message?: FormValidationMessage<Value, ParentValue>, opts?: FieldValidationDescriptorOptsType): this;
|
|
29
|
+
withValidationOpts(validationOpts: FieldValidationOptsType): this;
|
|
27
30
|
withHidden(hiddenExpression: string | ((field?: CommonsFormlyFieldConfig<EditorModel, EditorModel>) => boolean) | Observable<boolean>): this;
|
|
28
31
|
}
|
|
29
32
|
export declare class FieldTabGroupDescriptor<EditorModel> extends AFieldGroupDescriptor<EditorModel> {
|
package/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "6.
|
|
4
|
-
"tag": "v6.
|
|
3
|
+
"version": "6.2.0-rc.0",
|
|
4
|
+
"tag": "v6.2.0-rc.0",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "3b7adfe2",
|
|
7
7
|
"dirty": true,
|
|
8
|
-
"semver": "6.
|
|
8
|
+
"semver": "6.2.0-rc.0+0.g3b7adfe2.dirty",
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "v6.
|
|
10
|
+
"raw": "v6.2.0-rc.0-3b7adfe2-dirty"
|
|
11
11
|
}
|