@mediusinc/mng-commons 2.0.0-rc.6 → 2.0.0-rc.8

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 (32) hide show
  1. package/esm2020/lib/components/action/action.component.mjs +2 -2
  2. package/esm2020/lib/components/form/editor/form-editor.component.mjs +7 -6
  3. package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +4 -6
  4. package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +5 -5
  5. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +24 -20
  6. package/esm2020/lib/components/layout/topbar-user.component.mjs +5 -4
  7. package/esm2020/lib/descriptors/editor/editor.descriptor.mjs +1 -1
  8. package/esm2020/lib/descriptors/editor/field.descriptor.mjs +1 -1
  9. package/esm2020/lib/mng-commons.module.mjs +10 -7
  10. package/esm2020/lib/router/route-builder.mjs +24 -6
  11. package/esm2020/lib/router/tableview-route-builder.mjs +19 -5
  12. package/esm2020/lib/services/action-executor.service.mjs +1 -2
  13. package/esm2020/lib/utils/index.mjs +2 -1
  14. package/esm2020/lib/utils/object.util.mjs +59 -0
  15. package/esm2020/lib/utils/string.util.mjs +3 -2
  16. package/fesm2015/mediusinc-mng-commons.mjs +164 -69
  17. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  18. package/fesm2020/mediusinc-mng-commons.mjs +165 -68
  19. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  20. package/lib/components/action/action.component.d.ts +1 -1
  21. package/lib/components/form/editor/form-editor.component.d.ts +1 -1
  22. package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +1 -1
  23. package/lib/descriptors/editor/editor.descriptor.d.ts +2 -2
  24. package/lib/descriptors/editor/field.descriptor.d.ts +14 -14
  25. package/lib/mng-commons.module.d.ts +1 -1
  26. package/lib/router/route-builder.d.ts +1 -0
  27. package/lib/router/tableview-route-builder.d.ts +1 -0
  28. package/lib/utils/index.d.ts +1 -0
  29. package/lib/utils/object.util.d.ts +27 -0
  30. package/package.json +8 -8
  31. package/scss/common/layout/_breadcrumb.scss +0 -6
  32. package/scss/mng-overrides/_layout_topbar.scss +1 -0
@@ -71,7 +71,7 @@ export declare class MngActionComponent<T, S> implements OnInit, OnChanges, OnDe
71
71
  ngOnDestroy(): void;
72
72
  triggerAction(action: ActionDescriptor<T>, parameters?: ActionParameters<T>, event?: Event): void;
73
73
  getConfirmationService(): ConfirmationService;
74
- getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
74
+ getConfirmationServiceInstanceKey(): string;
75
75
  onCustomActionCmpInst(instance: IActionComponent<T>): void;
76
76
  private processSubactions;
77
77
  private processSubscriptions;
@@ -25,10 +25,10 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
25
25
  form: FormGroup;
26
26
  formOptions: FormlyFormOptions;
27
27
  formFields: FormlyFieldConfig[];
28
- formOrigItem?: T;
29
28
  formModel: any;
30
29
  formMessages: Message[];
31
30
  submitLoading$: Observable<boolean>;
31
+ private originalItemPrototype?;
32
32
  private subscriptions;
33
33
  constructor(mngCommonsService: MngCommonsService, translateService: TranslateService);
34
34
  ngOnInit(): void;
@@ -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>;
@@ -46,7 +46,7 @@ export declare class EditorDescriptor<T> {
46
46
  static fromModelWithAttributes<T>(modelType: ClassType<T>, attributes: TableviewAttributeDef[], idProperty?: string, titleProperty?: string, tableEditorType?: TableviewEditorTypeEnum): EditorDescriptor<T>;
47
47
  get model(): ModelDescriptor<T>;
48
48
  get tabs(): FieldTabGroupDescriptor<T>[];
49
- get fields(): AFieldDescriptor<any, T>[];
49
+ get fields(): AFieldDescriptor<any, T, any>[];
50
50
  get tableviewEditorType(): TableviewEditorTypeEnum;
51
51
  get disabled(): boolean;
52
52
  get isLocalized(): boolean;
@@ -56,7 +56,7 @@ export declare class EditorDescriptor<T> {
56
56
  get localeLookup(): ((queryParam?: MediusQueryParam | undefined, service?: any, search?: string | undefined) => Observable<string[]>) | undefined;
57
57
  createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
58
58
  createFieldGroup(name: string, title?: string | null): FieldGroupDescriptor<T>;
59
- addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
59
+ addFieldDescriptor<FT, FVT = FT>(field: AFieldDescriptor<FT, T, FVT>): this;
60
60
  addField(property: string): FieldInputDescriptor<T>;
61
61
  /**
62
62
  * removes filed if exists in descriptor
@@ -24,7 +24,7 @@ export declare abstract class AGenericFieldDescriptor<ET> {
24
24
  get config(): FieldConfig;
25
25
  withConfig(config: FieldConfig): this;
26
26
  }
27
- export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescriptor<ET> {
27
+ export declare abstract class AFieldDescriptor<T, ET, VT = T> extends AGenericFieldDescriptor<ET> {
28
28
  protected readonly _property: string;
29
29
  protected _label?: string | null;
30
30
  protected _placeholder?: string;
@@ -32,9 +32,9 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
32
32
  protected _required: boolean;
33
33
  protected _requiredHideLabelMarker: boolean;
34
34
  protected _disabled: boolean;
35
- protected _defaultValue?: T;
36
- protected _getter?: (item: ET) => T;
37
- protected _setter?: (item: ET, value: T) => void;
35
+ protected _defaultValue?: VT;
36
+ protected _getter?: (item: ET) => VT;
37
+ protected _setter?: (item: ET, value: VT) => void;
38
38
  protected _validations: Array<FieldValidationDescriptor>;
39
39
  protected _asyncValidations: Array<FieldValidationDescriptor>;
40
40
  protected _requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>;
@@ -56,9 +56,9 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
56
56
  get required(): boolean;
57
57
  get requiredHideLabelMarker(): boolean;
58
58
  get disabled(): boolean;
59
- get defaultValue(): T | undefined;
60
- get getter(): ((item: ET) => T) | undefined;
61
- get setter(): ((item: ET, value: T) => void) | undefined;
59
+ get defaultValue(): VT | undefined;
60
+ get getter(): ((item: ET) => VT) | undefined;
61
+ get setter(): ((item: ET, value: VT) => void) | undefined;
62
62
  get validations(): FieldValidationDescriptor[];
63
63
  get asyncValidations(): FieldValidationDescriptor[];
64
64
  get requiredExpression(): string | ((field?: FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
@@ -79,16 +79,16 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
79
79
  get isSizeSmall(): boolean;
80
80
  get isSizeLarge(): boolean;
81
81
  get isLocalized(): boolean;
82
- abstract copy(): AFieldDescriptor<T, ET>;
82
+ abstract copy(): AFieldDescriptor<T, ET, VT>;
83
83
  withLabel(label: string | null): this;
84
84
  withPlaceholder(placeholder: string): this;
85
85
  withHelpText(helpText: string): this;
86
86
  withRequired(required?: boolean, requiredExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>, hideLabelMarker?: boolean): this;
87
87
  withDisabled(disabled?: boolean, disabledExpression?: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
88
88
  withHidden(hiddenExpression: string | ((field?: FormlyFieldConfig) => boolean) | Observable<boolean>): this;
89
- withDefaultValue(defaultValue: T): this;
90
- withGetter(getter: (item: ET) => T): this;
91
- withSetter(setter: (item: ET, value: T) => void): this;
89
+ withDefaultValue(defaultValue: VT): this;
90
+ withGetter(getter: (item: ET) => VT): this;
91
+ withSetter(setter: (item: ET, value: VT) => void): this;
92
92
  withValidation(name: string, validator?: MngFieldValidator, message?: MngFieldValidationMessage): this;
93
93
  withAsyncValidation(name: string, asyncValidator?: MngFieldAsyncValidator, message?: MngFieldValidationMessage): this;
94
94
  withClassName(className: string, labelClassName?: string, inputClassName?: string, fieldClassName?: string): this;
@@ -101,7 +101,7 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
101
101
  localized(tableview?: TableviewDescriptor<T>): this;
102
102
  nextEvent(type: MngFormFieldEventTypeEnum, cmpType: Type<any>, cmpInstance: any, data?: MngFormFieldEventData<T, ET>): void;
103
103
  get events$(): Observable<MngFormFieldEvent<T, ET>>;
104
- protected copyFieldsTo(obj: AFieldDescriptor<T, ET>): void;
104
+ protected copyFieldsTo(obj: AFieldDescriptor<T, ET, VT>): void;
105
105
  }
106
106
  export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string | string[] | number | boolean | Date | File | File[], ET> {
107
107
  private _fieldType;
@@ -267,7 +267,7 @@ export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor
267
267
  asAutocomplete(openOnFocus?: boolean): this;
268
268
  copy(): FieldLookupEnumDescriptor<ET>;
269
269
  }
270
- export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
270
+ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET, T[]> {
271
271
  private readonly _mainTableDescriptor;
272
272
  private readonly _lookupTableDescriptor;
273
273
  private _fieldType;
@@ -291,7 +291,7 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
291
291
  withLookupExclude(filterProperty: string, valueProperty: string, hasLookupExclude?: boolean): this;
292
292
  copy(): FieldManyToManyEditorDescriptor<T, ET>;
293
293
  }
294
- export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
294
+ export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET, T[]> {
295
295
  private readonly _tableviewDescriptor;
296
296
  private _fieldType;
297
297
  private _fieldActions;
@@ -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 {};
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0-rc.8",
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
  }