@mediusinc/mng-commons 2.0.0-rc.5 → 2.0.0-rc.6
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/components/action/action.component.mjs +7 -5
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +3 -3
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +5 -2
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +4 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +4 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -3
- package/esm2020/lib/utils/type.util.mjs +3 -3
- package/fesm2015/mediusinc-mng-commons.mjs +23 -15
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +23 -15
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/components/action/action.component.d.ts +1 -0
- package/lib/components/form/editor/form-editor.component.d.ts +3 -1
- package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +2 -0
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +2 -0
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +2 -0
- package/lib/utils/type.util.d.ts +4 -4
- package/package.json +1 -1
|
@@ -64,6 +64,7 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
|
|
|
64
64
|
buttonClass: string;
|
|
65
65
|
subactions: MenuItem[];
|
|
66
66
|
private subactionSubscriptions;
|
|
67
|
+
actionOrSubactionHasRunConfirmation: boolean;
|
|
67
68
|
constructor(routeService: ActivatedRoute, translate: TranslateService, authorization: MngAuthorizationService, actionExecutor: MngActionExecutorService, confirmationService: ConfirmationService, viewContainerService: MngViewContainerComponentService<T, S> | null);
|
|
68
69
|
ngOnInit(): void;
|
|
69
70
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -6,6 +6,7 @@ import { Message } from 'primeng/api';
|
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { EditorDescriptor } from '../../../descriptors/editor';
|
|
8
8
|
import { MngTemplateDirective } from '../../../directives';
|
|
9
|
+
import { IViewContainer } from '../../../models';
|
|
9
10
|
import { MngCommonsService } from '../../../services';
|
|
10
11
|
import { IFormEditorComponent, MngFormEditorSubmitEvent } from '../models';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +16,7 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
15
16
|
descriptor: EditorDescriptor<T>;
|
|
16
17
|
submitLoading: Observable<boolean> | boolean;
|
|
17
18
|
item?: T;
|
|
19
|
+
viewContainerInit?: IViewContainer<T, unknown>;
|
|
18
20
|
isSubmitButtonVisible: boolean;
|
|
19
21
|
isFormDisabled: null;
|
|
20
22
|
formSubmitEventEmitter: EventEmitter<MngFormEditorSubmitEvent<T>>;
|
|
@@ -48,5 +50,5 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
48
50
|
*/
|
|
49
51
|
private setInitialFormState;
|
|
50
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "viewContainerInit": "viewContainer"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
52
54
|
}
|
|
@@ -6,6 +6,7 @@ import { Observable, Subject } from 'rxjs';
|
|
|
6
6
|
import { MediusQueryResult } from '../../../../../api/models';
|
|
7
7
|
import { FieldLookupDescriptor } from '../../../../../descriptors/editor';
|
|
8
8
|
import { FieldLookupConfig } from '../../../../../descriptors/interfaces';
|
|
9
|
+
import { IViewContainer } from '../../../../../models';
|
|
9
10
|
import { MngTableComponent } from '../../../../tableview';
|
|
10
11
|
import { MngFormlyFieldConfig } from '../../models';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
@@ -27,6 +28,7 @@ export declare class MngFormlyFieldLookupDialogComponent<T, ET> extends FieldTyp
|
|
|
27
28
|
dialogSelectedItem: any;
|
|
28
29
|
dialogMessages: Message[];
|
|
29
30
|
dialogIsLoading$: Observable<boolean>;
|
|
31
|
+
viewContainer?: IViewContainer<any, unknown>;
|
|
30
32
|
private lookupDataProviderSubscription?;
|
|
31
33
|
private subscriptions;
|
|
32
34
|
constructor(injector: Injector);
|
|
@@ -3,6 +3,7 @@ import { FieldType } from '@ngx-formly/core';
|
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { ActionDescriptor } from '../../../../../descriptors/action';
|
|
5
5
|
import { FieldManyEditorDescriptor } from '../../../../../descriptors/editor';
|
|
6
|
+
import { IViewContainer } from '../../../../../models';
|
|
6
7
|
import { MngFormlyFieldConfig } from '../../models';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType<MngFormlyFieldConfig> implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -12,6 +13,7 @@ export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends Field
|
|
|
12
13
|
items$: Observable<Array<T>>;
|
|
13
14
|
actions: Array<ActionDescriptor<T>>;
|
|
14
15
|
toolbarRightActions: Array<ActionDescriptor<T>>;
|
|
16
|
+
viewContainer?: IViewContainer<any, unknown>;
|
|
15
17
|
private subscriptions;
|
|
16
18
|
private isDisabledSubject;
|
|
17
19
|
private isEnabled$;
|
|
@@ -3,6 +3,7 @@ import { FieldType } from '@ngx-formly/core';
|
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { MediusQueryResult } from '../../../../../api/models';
|
|
5
5
|
import { FieldManyToManyEditorDescriptor } from '../../../../../descriptors/editor';
|
|
6
|
+
import { IViewContainer } from '../../../../../models';
|
|
6
7
|
import { MngFormlyFieldConfig } from '../../models';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extends FieldType<MngFormlyFieldConfig> implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -23,6 +24,7 @@ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extend
|
|
|
23
24
|
hasDeleteAction: boolean;
|
|
24
25
|
private lookupDataProviderSubscription?;
|
|
25
26
|
private subscriptions;
|
|
27
|
+
viewContainer?: IViewContainer<any, unknown>;
|
|
26
28
|
constructor(injector: Injector);
|
|
27
29
|
ngOnInit(): void;
|
|
28
30
|
ngAfterViewInit(): void;
|
package/lib/utils/type.util.d.ts
CHANGED
|
@@ -20,15 +20,15 @@ export declare class TypeUtil {
|
|
|
20
20
|
/**
|
|
21
21
|
* Defines type's id property.
|
|
22
22
|
* @param targetType class.
|
|
23
|
-
* @param
|
|
23
|
+
* @param idProperty Id property
|
|
24
24
|
*/
|
|
25
|
-
static defineReflectTypeIdProperty(targetType: ClassType<
|
|
25
|
+
static defineReflectTypeIdProperty<T>(targetType: ClassType<T>, idProperty: keyof T | symbol): void;
|
|
26
26
|
/**
|
|
27
27
|
* Defines type's id property.
|
|
28
28
|
* @param targetType class.
|
|
29
|
-
* @param
|
|
29
|
+
* @param titleProperty Title property
|
|
30
30
|
*/
|
|
31
|
-
static defineReflectTypeTitleProperty(targetType: ClassType<
|
|
31
|
+
static defineReflectTypeTitleProperty<T>(targetType: ClassType<T>, titleProperty: keyof T | symbol): void;
|
|
32
32
|
/**
|
|
33
33
|
* Gets type name from reflect metadata.
|
|
34
34
|
* @param type Class.
|