@mediusinc/mng-commons 2.0.0-rc.5 → 2.0.0-rc.7

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 (34) hide show
  1. package/esm2020/lib/components/action/action.component.mjs +8 -6
  2. package/esm2020/lib/components/action/editor/action-editor.component.mjs +3 -3
  3. package/esm2020/lib/components/form/editor/form-editor.component.mjs +11 -7
  4. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +4 -6
  5. package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +7 -6
  6. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +4 -3
  7. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -3
  8. package/esm2020/lib/mng-commons.module.mjs +10 -7
  9. package/esm2020/lib/router/route-builder.mjs +24 -6
  10. package/esm2020/lib/router/tableview-route-builder.mjs +8 -1
  11. package/esm2020/lib/services/action-executor.service.mjs +1 -2
  12. package/esm2020/lib/utils/index.mjs +2 -1
  13. package/esm2020/lib/utils/object.util.mjs +59 -0
  14. package/esm2020/lib/utils/string.util.mjs +3 -2
  15. package/esm2020/lib/utils/type.util.mjs +3 -3
  16. package/fesm2015/mediusinc-mng-commons.mjs +148 -52
  17. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  18. package/fesm2020/mediusinc-mng-commons.mjs +145 -52
  19. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  20. package/lib/components/action/action.component.d.ts +2 -1
  21. package/lib/components/form/editor/form-editor.component.d.ts +4 -2
  22. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +1 -1
  23. package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +2 -0
  24. package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +2 -0
  25. package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +2 -0
  26. package/lib/mng-commons.module.d.ts +1 -1
  27. package/lib/router/route-builder.d.ts +1 -0
  28. package/lib/router/tableview-route-builder.d.ts +1 -0
  29. package/lib/utils/index.d.ts +1 -0
  30. package/lib/utils/object.util.d.ts +27 -0
  31. package/lib/utils/type.util.d.ts +4 -4
  32. package/package.json +8 -8
  33. package/scss/common/layout/_breadcrumb.scss +0 -6
  34. package/scss/mng-overrides/_layout_topbar.scss +1 -0
@@ -64,13 +64,14 @@ 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;
70
71
  ngOnDestroy(): void;
71
72
  triggerAction(action: ActionDescriptor<T>, parameters?: ActionParameters<T>, event?: Event): void;
72
73
  getConfirmationService(): ConfirmationService;
73
- getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
74
+ getConfirmationServiceInstanceKey(): string;
74
75
  onCustomActionCmpInst(instance: IActionComponent<T>): void;
75
76
  private processSubactions;
76
77
  private processSubscriptions;
@@ -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>>;
@@ -23,10 +25,10 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
23
25
  form: FormGroup;
24
26
  formOptions: FormlyFormOptions;
25
27
  formFields: FormlyFieldConfig[];
26
- formOrigItem?: T;
27
28
  formModel: any;
28
29
  formMessages: Message[];
29
30
  submitLoading$: Observable<boolean>;
31
+ private originalItemPrototype?;
30
32
  private subscriptions;
31
33
  constructor(mngCommonsService: MngCommonsService, translateService: TranslateService);
32
34
  ngOnInit(): void;
@@ -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
  }
@@ -22,7 +22,7 @@ export declare class MngFormlyFieldInputComponent<ET> extends FieldType<MngForml
22
22
  onFileClear(event: Event): void;
23
23
  addImageUrl(value?: string | null): void;
24
24
  removeImageUrlAt(idx: number): void;
25
- onImageUrlLoadError(idx: number, event: Event): void;
25
+ onImageUrlLoadError(): void;
26
26
  private updateFileFormControl;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldInputComponent<any>, never>;
28
28
  static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent<any>, "mng-formly-field-input", never, {}, {}, never, never, true, never>;
@@ -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;
@@ -95,6 +95,6 @@ export declare const primeNgModules: (typeof RippleModule)[];
95
95
  export declare class MngCommonsModule {
96
96
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
97
97
  static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
98
- static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent]>;
98
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent]>;
99
99
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
100
100
  }
@@ -57,4 +57,5 @@ export declare class RouteBuilder {
57
57
  private buildMenu;
58
58
  private createMenuItem;
59
59
  private findMenuItemGuards;
60
+ protected findMenuItemPermissions(): APermissions | undefined;
60
61
  }
@@ -37,6 +37,7 @@ export declare class TableviewRouteBuilderInternal extends RouteBuilder {
37
37
  [key: string]: APermissions;
38
38
  }): this;
39
39
  build(): Route;
40
+ protected findMenuItemPermissions(): APermissions | undefined;
40
41
  }
41
42
  export declare class TableviewRouteBuilder {
42
43
  static fromComponent<C extends AMngTableviewRouteComponent<any, any>>(path: string, component: Type<C>): TableviewRouteBuilderInternal;
@@ -5,6 +5,7 @@ export * from './enum.util';
5
5
  export * from './i18n.util';
6
6
  export * from './model.util';
7
7
  export * from './notification.util';
8
+ export * from './object.util';
8
9
  export * from './string.util';
9
10
  export * from './type.util';
10
11
  export * from './export.util';
@@ -0,0 +1,27 @@
1
+ import { ClassType } from '../types';
2
+ interface DeepCopyPropsOptions {
3
+ mapGettersToProperties?: boolean;
4
+ }
5
+ export interface DeepCopyOptions<P = object> extends DeepCopyPropsOptions {
6
+ objectPrototype?: ClassType<P>;
7
+ }
8
+ export declare class ObjectUtil {
9
+ static deepCopyObject<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
10
+ mapGettersToProperties: true;
11
+ }): T | Record<string, any>;
12
+ static deepCopyObject<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
13
+ objectPrototype: ClassType<P>;
14
+ } & {
15
+ mapGettersToProperties?: false;
16
+ }): P;
17
+ static deepCopyObject<T = object, P = object>(obj: T, options: DeepCopyOptions<P> & {
18
+ objectPrototype: ClassType<P>;
19
+ } & {
20
+ mapGettersToProperties: true;
21
+ }): P | Record<string, any>;
22
+ static deepCopyObject<T = object, P = object>(obj: T, options?: DeepCopyOptions<P>): T;
23
+ private static handleProp;
24
+ static getProperties(obj: object): string[];
25
+ static getGetters(obj: any): string[];
26
+ }
27
+ export {};
@@ -20,15 +20,15 @@ export declare class TypeUtil {
20
20
  /**
21
21
  * Defines type's id property.
22
22
  * @param targetType class.
23
- * @param typeName Name of the type.
23
+ * @param idProperty Id property
24
24
  */
25
- static defineReflectTypeIdProperty(targetType: ClassType<any>, idProperty: string | symbol): void;
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 typeName Name of the type.
29
+ * @param titleProperty Title property
30
30
  */
31
- static defineReflectTypeTitleProperty(targetType: ClassType<any>, titleProperty: string | symbol): void;
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.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "2.0.0-rc.5",
3
+ "version": "2.0.0-rc.7",
4
4
  "peerDependencies": {
5
- "@angular/common": "^15.2.0",
6
- "@angular/core": "^15.2.0",
7
- "@angular/forms": "^15.2.0",
8
- "@angular/router": "^15.2.0",
9
- "@ngx-formly/core": "^6.0.0",
5
+ "@angular/common": "^15.2.6",
6
+ "@angular/core": "^15.2.6",
7
+ "@angular/forms": "^15.2.6",
8
+ "@angular/router": "^15.2.6",
9
+ "@ngx-formly/core": "^6.1.3",
10
10
  "@ngx-translate/core": "^14.0.0",
11
- "primeng": "^15.3.0",
11
+ "primeng": "^15.4.1",
12
12
  "rxjs": "^7.8.0",
13
13
  "@angular/platform-browser": "^15.2.6",
14
14
  "@angular/animations": "^15.2.6"
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "file-saver": "^2.0.5",
18
18
  "reflect-metadata": "^0.1.13",
19
- "tslib": "^2.4.0"
19
+ "tslib": "^2.5.0"
20
20
  },
21
21
  "sideEffects": false,
22
22
  "module": "fesm2015/mediusinc-mng-commons.mjs",
@@ -15,12 +15,6 @@
15
15
  li {
16
16
  &.p-breadcrumb-chevron {
17
17
  margin: 0 0.75rem;
18
-
19
- &::before {
20
- content: '\2044';
21
- font-weight: bold;
22
- font-size: 1.25rem;
23
- }
24
18
  }
25
19
 
26
20
  .p-menuitem-link {
@@ -13,6 +13,7 @@
13
13
  box-shadow: 10px 10px 20px 2px #3e7c9433;
14
14
  top: 35px;
15
15
  min-width: 15rem;
16
+ z-index: 10;
16
17
  }
17
18
  }
18
19
  }