@mediusinc/mng-commons 1.3.0-1c14fa2b → 2.0.0-rc.0-08f92864
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/assets/i18n/en.json +9 -0
- package/assets/i18n/sl.json +9 -0
- package/esm2020/lib/api/utils/medius-rest.util.mjs +1 -1
- package/esm2020/lib/components/action/action.component.mjs +76 -20
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +12 -12
- package/esm2020/lib/components/action/localization/data-language-dropdown.component.mjs +6 -6
- package/esm2020/lib/components/action/models/action-component.model.mjs +1 -1
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +1 -1
- package/esm2020/lib/components/action/models/action-execution.model.mjs +1 -1
- package/esm2020/lib/components/action/route/action-route.component.mjs +6 -5
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +11 -10
- package/esm2020/lib/components/form/date-range/date-range.component.mjs +9 -8
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +13 -11
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +14 -11
- package/esm2020/lib/components/form/formly/fields/formly-field-action/formly-field-action.component.mjs +13 -9
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +8 -7
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +8 -7
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +11 -9
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +50 -20
- package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +27 -17
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +32 -12
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +21 -12
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +13 -11
- package/esm2020/lib/components/form/formly/models/formly-field.model.mjs +1 -1
- package/esm2020/lib/components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +10 -9
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +11 -10
- package/esm2020/lib/components/form/models/field-action-context.model.mjs +1 -1
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +7 -6
- package/esm2020/lib/components/layout/footer.component.mjs +6 -5
- package/esm2020/lib/components/layout/main-layout.component.mjs +8 -8
- package/esm2020/lib/components/layout/menu-item.component.mjs +43 -23
- package/esm2020/lib/components/layout/menu.component.mjs +24 -13
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +3 -3
- package/esm2020/lib/components/layout/topbar.component.mjs +14 -12
- package/esm2020/lib/components/layout/version.component.mjs +6 -6
- package/esm2020/lib/components/tableview/models/table.event.mjs +1 -1
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +38 -10
- package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +5 -6
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +14 -13
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +29 -12
- package/esm2020/lib/components/tableview/table/table.component.mjs +33 -17
- package/esm2020/lib/components/tableview/tableview.component.mjs +13 -11
- package/esm2020/lib/descriptors/action/action-button.descriptor.mjs +60 -0
- package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +2 -2
- package/esm2020/lib/descriptors/action/action.descriptor.mjs +579 -0
- package/esm2020/lib/descriptors/action/index.mjs +4 -0
- package/esm2020/lib/descriptors/editor/editor.descriptor.mjs +291 -0
- package/esm2020/lib/descriptors/editor/field-validation.descriptor.mjs +25 -0
- package/esm2020/lib/descriptors/editor/field.descriptor.mjs +990 -0
- package/esm2020/lib/descriptors/editor/index.mjs +4 -0
- package/esm2020/lib/descriptors/filter/filter.descriptor.mjs +370 -0
- package/esm2020/lib/descriptors/filter/index.mjs +2 -0
- package/esm2020/lib/descriptors/index.mjs +1 -11
- package/esm2020/lib/descriptors/table/column.descriptor.mjs +406 -0
- package/esm2020/lib/descriptors/table/index.mjs +3 -0
- package/esm2020/lib/descriptors/table/table.descriptor.mjs +497 -0
- package/esm2020/lib/descriptors/tableview/index.mjs +2 -0
- package/esm2020/lib/descriptors/tableview/tableview.descriptor.mjs +346 -0
- package/esm2020/lib/directives/component.directive.mjs +5 -4
- package/esm2020/lib/directives/template.directive.mjs +5 -4
- package/esm2020/lib/mng-commons.module.mjs +108 -138
- package/esm2020/lib/models/column-value.model.mjs +1 -1
- package/esm2020/lib/models/config.model.mjs +1 -1
- package/esm2020/lib/models/menu.model.mjs +1 -1
- package/esm2020/lib/models/view-container.model.mjs +1 -1
- package/esm2020/lib/pipes/boolean.pipe.mjs +5 -4
- package/esm2020/lib/pipes/class-map.pipe.mjs +5 -4
- package/esm2020/lib/pipes/enum.pipe.mjs +5 -4
- package/esm2020/lib/pipes/enumerate-async.pipe.mjs +5 -4
- package/esm2020/lib/pipes/enumerate.pipe.mjs +5 -4
- package/esm2020/lib/pipes/getter.pipe.mjs +5 -4
- package/esm2020/lib/pipes/i18n-property.pipe.mjs +5 -4
- package/esm2020/lib/pipes/json-path.pipe.mjs +5 -4
- package/esm2020/lib/pipes/locale-default-row-class.pipe.mjs +5 -4
- package/esm2020/lib/pipes/parametrize.pipe.mjs +5 -4
- package/esm2020/lib/pipes/template.pipe.mjs +5 -4
- package/esm2020/lib/provide-commons.mjs +73 -0
- package/esm2020/lib/router/index.mjs +2 -1
- package/esm2020/lib/router/models/router.model.mjs +1 -1
- package/esm2020/lib/router/route-builder.mjs +31 -144
- package/esm2020/lib/router/routes-builder.mjs +67 -0
- package/esm2020/lib/router/tableview-route-builder.mjs +2 -2
- package/esm2020/lib/security/authorization.guard.mjs +8 -5
- package/esm2020/lib/security/authorization.service.mjs +8 -5
- package/esm2020/lib/services/action-executor.service.mjs +13 -7
- package/esm2020/lib/services/commons.service.mjs +15 -10
- package/esm2020/lib/services/configuration.service.mjs +27 -20
- package/esm2020/lib/services/internal/commons-init.service.mjs +13 -7
- package/esm2020/lib/services/navigation.service.mjs +8 -5
- package/esm2020/lib/services/providers/config-service.provider.mjs +5 -4
- package/esm2020/lib/services/router.service.mjs +97 -0
- package/esm2020/lib/services/version.service.mjs +8 -5
- package/esm2020/lib/services/view-container.component.service.mjs +4 -4
- package/esm2020/lib/styles/styles.util.mjs +1 -1
- package/esm2020/lib/utils/action-data-provider.util.mjs +1 -1
- package/esm2020/lib/utils/editor-formly.util.mjs +2 -2
- package/esm2020/lib/utils/export.util.mjs +20 -0
- package/esm2020/lib/utils/i18n.util.mjs +1 -1
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/notification.util.mjs +1 -1
- package/esm2020/lib/utils/route.util.mjs +13 -1
- package/esm2020/lib/utils/tableview.util.mjs +1 -1
- package/esm2020/public-api.mjs +7 -1
- package/fesm2015/mediusinc-mng-commons.mjs +6767 -6381
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +6707 -6325
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/utils/medius-rest.util.d.ts +1 -1
- package/lib/components/action/action.component.d.ts +10 -5
- package/lib/components/action/editor/action-editor.component.d.ts +2 -2
- package/lib/components/action/localization/data-language-dropdown.component.d.ts +2 -2
- package/lib/components/action/models/action-component.model.d.ts +1 -1
- package/lib/components/action/models/action-confirmation-service.model.d.ts +1 -1
- package/lib/components/action/models/action-execution.model.d.ts +2 -2
- package/lib/components/action/route/action-route.component.d.ts +2 -2
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +1 -1
- package/lib/components/form/date-range/date-range.component.d.ts +1 -1
- package/lib/components/form/dropdown/dropdown.component.d.ts +1 -1
- package/lib/components/form/editor/form-editor.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-action/formly-field-action.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts +1 -1
- package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +3 -2
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +2 -2
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +1 -1
- package/lib/components/form/formly/models/formly-field.model.d.ts +2 -2
- package/lib/components/form/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.d.ts +1 -1
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +2 -2
- package/lib/components/form/models/field-action-context.model.d.ts +1 -1
- package/lib/components/layout/breadcrumb.component.d.ts +1 -1
- package/lib/components/layout/footer.component.d.ts +1 -1
- package/lib/components/layout/main-layout.component.d.ts +1 -1
- package/lib/components/layout/menu-item.component.d.ts +6 -2
- package/lib/components/layout/menu.component.d.ts +9 -3
- package/lib/components/layout/topbar.component.d.ts +1 -1
- package/lib/components/layout/version.component.d.ts +1 -1
- package/lib/components/tableview/models/table.event.d.ts +1 -1
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +9 -2
- package/lib/components/tableview/route/tableview-route.component.d.ts +3 -2
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +2 -2
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +2 -2
- package/lib/components/tableview/table/table.component.d.ts +4 -2
- package/lib/components/tableview/tableview.component.d.ts +3 -2
- package/lib/descriptors/{action-button.descriptor.d.ts → action/action-button.descriptor.d.ts} +1 -1
- package/lib/descriptors/action/action-confirmation.descriptor.d.ts +2 -2
- package/lib/descriptors/{action.descriptor.d.ts → action/action.descriptor.d.ts} +16 -8
- package/lib/descriptors/action/index.d.ts +3 -0
- package/lib/descriptors/{editor.descriptor.d.ts → editor/editor.descriptor.d.ts} +9 -6
- package/lib/descriptors/{field-validation.descriptor.d.ts → editor/field-validation.descriptor.d.ts} +1 -1
- package/lib/descriptors/{field.descriptor.d.ts → editor/field.descriptor.d.ts} +14 -10
- package/lib/descriptors/editor/index.d.ts +3 -0
- package/lib/descriptors/{filter.descriptor.d.ts → filter/filter.descriptor.d.ts} +11 -9
- package/lib/descriptors/filter/index.d.ts +1 -0
- package/lib/descriptors/index.d.ts +0 -10
- package/lib/descriptors/{column.descriptor.d.ts → table/column.descriptor.d.ts} +4 -4
- package/lib/descriptors/table/index.d.ts +2 -0
- package/lib/descriptors/{table.descriptor.d.ts → table/table.descriptor.d.ts} +12 -7
- package/lib/descriptors/tableview/index.d.ts +1 -0
- package/lib/descriptors/{tableview.descriptor.d.ts → tableview/tableview.descriptor.d.ts} +9 -7
- package/lib/directives/component.directive.d.ts +1 -1
- package/lib/directives/template.directive.d.ts +1 -1
- package/lib/mng-commons.module.d.ts +90 -88
- package/lib/models/column-value.model.d.ts +1 -1
- package/lib/models/config.model.d.ts +1 -0
- package/lib/models/menu.model.d.ts +1 -1
- package/lib/models/version.model.d.ts +1 -1
- package/lib/models/view-container.model.d.ts +1 -1
- package/lib/pipes/boolean.pipe.d.ts +1 -1
- package/lib/pipes/class-map.pipe.d.ts +1 -1
- package/lib/pipes/enum.pipe.d.ts +1 -1
- package/lib/pipes/enumerate-async.pipe.d.ts +1 -1
- package/lib/pipes/enumerate.pipe.d.ts +1 -1
- package/lib/pipes/getter.pipe.d.ts +1 -1
- package/lib/pipes/i18n-property.pipe.d.ts +1 -1
- package/lib/pipes/json-path.pipe.d.ts +1 -1
- package/lib/pipes/locale-default-row-class.pipe.d.ts +2 -2
- package/lib/pipes/parametrize.pipe.d.ts +1 -1
- package/lib/pipes/template.pipe.d.ts +1 -1
- package/lib/provide-commons.d.ts +3 -0
- package/lib/router/index.d.ts +1 -0
- package/lib/router/models/router.model.d.ts +5 -2
- package/lib/router/route-builder.d.ts +12 -48
- package/lib/router/routes-builder.d.ts +29 -0
- package/lib/router/tableview-route-builder.d.ts +2 -1
- package/lib/services/action-executor.service.d.ts +2 -1
- package/lib/services/commons.service.d.ts +3 -3
- package/lib/services/configuration.service.d.ts +4 -1
- package/lib/services/internal/commons-init.service.d.ts +4 -2
- package/lib/services/router.service.d.ts +22 -0
- package/lib/services/view-container.component.service.d.ts +1 -1
- package/lib/styles/styles.util.d.ts +2 -1
- package/lib/types/type.model.d.ts +8 -8
- package/lib/utils/editor-formly.util.d.ts +1 -1
- package/lib/utils/export.util.d.ts +5 -0
- package/lib/utils/i18n.util.d.ts +2 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/notification.util.d.ts +2 -1
- package/lib/utils/route.util.d.ts +55 -0
- package/lib/utils/tableview.util.d.ts +1 -1
- package/package.json +6 -6
- package/public-api.d.ts +6 -0
- package/scss/common/layout/_breadcrumb.scss +12 -2
- package/scss/common/layout/_exception.scss +1 -1
- package/scss/common/layout/_inlinemenu.scss +13 -0
- package/scss/common/layout/_login.scss +1 -0
- package/scss/common/layout/_rightmenu.scss +5 -0
- package/scss/common/layout/menu/_menu_common.scss +1 -1
- package/scss/common/theme/designer/_components.scss +4 -4
- package/scss/common/theme/designer/_mixins.scss +29 -0
- package/scss/common/theme/extensions/_datatable.scss +2 -2
- package/scss/common/variables/layout/_layout_dark.scss +0 -1
- package/scss/common/variables/layout/_layout_light.scss +0 -1
- package/scss/common/variables/theme/_theme_dark.scss +72 -46
- package/scss/common/variables/theme/_theme_light.scss +70 -33
- package/scss/mng-overrides/_layout_menu.scss +4 -0
- package/version-info.json +6 -6
- package/esm2020/lib/descriptors/action-button.descriptor.mjs +0 -60
- package/esm2020/lib/descriptors/action.descriptor.mjs +0 -560
- package/esm2020/lib/descriptors/column.descriptor.mjs +0 -405
- package/esm2020/lib/descriptors/editor.descriptor.mjs +0 -290
- package/esm2020/lib/descriptors/field-validation.descriptor.mjs +0 -25
- package/esm2020/lib/descriptors/field.descriptor.mjs +0 -987
- package/esm2020/lib/descriptors/filter.descriptor.mjs +0 -368
- package/esm2020/lib/descriptors/table.descriptor.mjs +0 -482
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +0 -344
|
@@ -3,7 +3,6 @@ import { APermissions } from '../security/model';
|
|
|
3
3
|
export interface MngMenuItem {
|
|
4
4
|
id?: string;
|
|
5
5
|
positionIndex?: number;
|
|
6
|
-
title?: string;
|
|
7
6
|
label?: string;
|
|
8
7
|
icon?: string;
|
|
9
8
|
items?: Array<MngMenuItem>;
|
|
@@ -27,4 +26,5 @@ export interface MngMenuItem {
|
|
|
27
26
|
skipLocationChange?: boolean;
|
|
28
27
|
replaceUrl?: boolean;
|
|
29
28
|
updated?: boolean;
|
|
29
|
+
lazyChildren?: boolean;
|
|
30
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type VersionConfigType = VersionConfig | VersionInfo | string | Array<VersionConfig> | undefined;
|
|
2
2
|
export interface VersionConfig {
|
|
3
3
|
displayName?: string;
|
|
4
4
|
info?: VersionInfo | string;
|
|
@@ -2,7 +2,7 @@ import { MessageService } from 'primeng/api';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MediusQueryParam } from '../api/models';
|
|
4
4
|
import { IDataProvider } from '../data-providers';
|
|
5
|
-
import { ActionDescriptor } from '../descriptors';
|
|
5
|
+
import { ActionDescriptor } from '../descriptors/action';
|
|
6
6
|
export interface IViewContainer<T, S> {
|
|
7
7
|
getMessageService(): MessageService | undefined;
|
|
8
8
|
getDataProvider(): IDataProvider<T, S> | undefined;
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class MngBooleanPipe implements PipeTransform {
|
|
4
4
|
transform(value: any, yes?: string, no?: string, icon?: boolean): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngBooleanPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean",
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngBooleanPipe, "boolean", true>;
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class MngClassMapPipe<T> implements PipeTransform {
|
|
4
4
|
transform(value?: string, classNameMapFn?: (className?: string, i?: T) => string, i?: T): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngClassMapPipe<any>, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngClassMapPipe<any>, "mngClassMapPipe",
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngClassMapPipe<any>, "mngClassMapPipe", true>;
|
|
7
7
|
}
|
package/lib/pipes/enum.pipe.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class MngEnumPipe implements PipeTransform {
|
|
5
5
|
transform(value: unknown, enumObj: EnumType | undefined, i18nPath?: string | null, nameAsValue?: boolean): any;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngEnumPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumPipe, "enum",
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumPipe, "enum", true>;
|
|
8
8
|
}
|
|
@@ -10,5 +10,5 @@ export declare class MngEnumerateAsyncPipe implements PipeTransform {
|
|
|
10
10
|
constructor(jsonPath: JsonPathPipe, translate: TranslateService);
|
|
11
11
|
transform(value: Observable<Array<unknown> | Set<unknown>>, jsonPath?: string, valueSeparator?: string, emptyValueReturn?: string, i18nBaseKey?: string): Observable<string>;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngEnumerateAsyncPipe, never>;
|
|
13
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumerateAsyncPipe, "mgnEnumerateAsync",
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumerateAsyncPipe, "mgnEnumerateAsync", true>;
|
|
14
14
|
}
|
|
@@ -10,7 +10,7 @@ export declare class MngEnumeratePipe implements PipeTransform {
|
|
|
10
10
|
constructor(jsonPath: JsonPathPipe, translate: TranslateService);
|
|
11
11
|
transform<T>(value: Array<T> | Set<T>, jsonPath?: string, valueSeparator?: string, emptyValueReturn?: string, i18nBaseKey?: string): string;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngEnumeratePipe, never>;
|
|
13
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumeratePipe, "mgnEnumerate",
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngEnumeratePipe, "mgnEnumerate", true>;
|
|
14
14
|
}
|
|
15
15
|
export declare class EnumeratePipeI18nHelper {
|
|
16
16
|
private jsonPathPipe;
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class MngGetterPipe implements PipeTransform {
|
|
4
4
|
transform<I, V>(item: I, getterFn: (item: I, value?: V | null) => unknown, value?: V | null): any;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngGetterPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngGetterPipe, "getter",
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngGetterPipe, "getter", true>;
|
|
7
7
|
}
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class MngI18nPropertyPipe implements PipeTransform {
|
|
5
5
|
transform(property: string, model: ModelDescriptor<any>): any;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngI18nPropertyPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngI18nPropertyPipe, "i18nProperty",
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngI18nPropertyPipe, "i18nProperty", true>;
|
|
8
8
|
}
|
|
@@ -9,5 +9,5 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare class JsonPathPipe implements PipeTransform {
|
|
10
10
|
transform(value: any, path?: string): any;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<JsonPathPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<JsonPathPipe, "jsonPath",
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<JsonPathPipe, "jsonPath", true>;
|
|
13
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Injector, PipeTransform } from '@angular/core';
|
|
2
|
-
import { TableDescriptor } from '../descriptors';
|
|
2
|
+
import { TableDescriptor } from '../descriptors/table';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MngLocaleDefaultRowClassPipe<T> implements PipeTransform {
|
|
5
5
|
private injector;
|
|
6
6
|
constructor(injector: Injector);
|
|
7
7
|
transform(value?: any, descriptor?: TableDescriptor<T>, item?: T): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngLocaleDefaultRowClassPipe<any>, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngLocaleDefaultRowClassPipe<any>, "mngLocaleDefaultRowClass",
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngLocaleDefaultRowClassPipe<any>, "mngLocaleDefaultRowClass", true>;
|
|
10
10
|
}
|
|
@@ -9,5 +9,5 @@ export declare class MngParametrizePipe implements PipeTransform {
|
|
|
9
9
|
private parametrizeStringAsRouterLink;
|
|
10
10
|
private parametrizeString;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngParametrizePipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngParametrizePipe, "parametrize",
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngParametrizePipe, "parametrize", true>;
|
|
13
13
|
}
|
|
@@ -6,5 +6,5 @@ export declare class MngTemplatePipe implements PipeTransform {
|
|
|
6
6
|
constructor(parametrizePipe: MngParametrizePipe);
|
|
7
7
|
transform(value: unknown, template?: string): any;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTemplatePipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MngTemplatePipe, "template",
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngTemplatePipe, "template", true>;
|
|
10
10
|
}
|
package/lib/router/index.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { Type } from '@angular/core';
|
|
|
2
2
|
import { ActivatedRouteSnapshot, Data } from '@angular/router';
|
|
3
3
|
import { MenuItem } from 'primeng/api';
|
|
4
4
|
import { ITableviewDataProvider } from '../../data-providers';
|
|
5
|
-
import { ActionDescriptor
|
|
5
|
+
import { ActionDescriptor } from '../../descriptors/action';
|
|
6
|
+
import { TableviewDescriptor } from '../../descriptors/tableview';
|
|
7
|
+
import { MngMenuItem } from '../../models';
|
|
6
8
|
import { APermissions } from '../../security/model';
|
|
7
|
-
export
|
|
9
|
+
export type BreadcrumbType = string | string[] | MngBreadcrumbMenuItem | MngBreadcrumbMenuItem[] | ((routeUrl: string, route: ActivatedRouteSnapshot) => MngBreadcrumbMenuItem[]);
|
|
8
10
|
export interface MngBreadcrumbMenuItem extends MenuItem {
|
|
9
11
|
isHome?: boolean;
|
|
10
12
|
}
|
|
@@ -25,6 +27,7 @@ export interface MngRouterData extends Data {
|
|
|
25
27
|
hasDetails?: boolean;
|
|
26
28
|
hasDelete?: boolean;
|
|
27
29
|
};
|
|
30
|
+
menuItems?: Array<MngMenuItem>;
|
|
28
31
|
topbarComponent?: Type<any>;
|
|
29
32
|
breadcrumbComponent?: Type<any>;
|
|
30
33
|
menuComponent?: Type<any>;
|
|
@@ -1,38 +1,13 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
|
-
import { LoadChildren, Route
|
|
2
|
+
import { DefaultExport, LoadChildren, Route } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import { MngMainLayoutComponent } from '../components/layout';
|
|
4
5
|
import { AMngTableviewRouteComponent } from '../components/tableview';
|
|
5
|
-
import { ITableviewDataProvider } from '../data-providers';
|
|
6
|
-
import { ActionDescriptor, TableviewDescriptor } from '../descriptors';
|
|
7
6
|
import { MngMenuItem } from '../models';
|
|
8
7
|
import { APermissions } from '../security/model';
|
|
9
8
|
import { BreadcrumbType, MngRouterData } from './models';
|
|
9
|
+
import { RoutesBuilder } from './routes-builder';
|
|
10
10
|
import { TableviewRouteBuilder } from './tableview-route-builder';
|
|
11
|
-
export declare class RoutesBuilder {
|
|
12
|
-
private readonly layoutRoute?;
|
|
13
|
-
private routes;
|
|
14
|
-
private currentRoute?;
|
|
15
|
-
private constructor();
|
|
16
|
-
static create(): RoutesBuilder;
|
|
17
|
-
static createWithLayout(layoutComponent?: typeof MngMainLayoutComponent, topbarComponent?: Type<any>, breadcrumbComponent?: Type<any>, menuComponent?: Type<any>, footerComponent?: Type<any>): RoutesBuilder;
|
|
18
|
-
addAngularRoute(route: Route): this;
|
|
19
|
-
addRouteRedirect(path: string, redirectTo: string, pathMatch?: 'full' | 'prefix'): this;
|
|
20
|
-
addLazyRoute(path: string, loadChildren: LoadChildren, canLoad?: Array<any>): this;
|
|
21
|
-
addRoute(path: string, component: Type<any>): this;
|
|
22
|
-
addTableview<C extends AMngTableviewRouteComponent<any, any>>(builder: TableviewRouteBuilder<C>): this;
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Use TableviewRouteBuilder with addTableview
|
|
25
|
-
*/
|
|
26
|
-
addTableviewRoutes<T, S>(path: string, descriptor: TableviewDescriptor<T>, tableviewDataProvider: ITableviewDataProvider<T, S>, actions?: Array<ActionDescriptor<T>>, hasDetails?: boolean, hasEdit?: boolean, hasAdd?: boolean): this;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use TableviewRouteBuilder with addTableview
|
|
29
|
-
*/
|
|
30
|
-
addTableviewRoutesFromComponent(path: string, component: Type<any>, hasDetails?: boolean, hasEdit?: boolean, hasAdd?: boolean): this;
|
|
31
|
-
addRouteBuilder(routeBuilder: RouteBuilder): this;
|
|
32
|
-
toRoute(): RouteBuilder;
|
|
33
|
-
buildRoutes(): Routes;
|
|
34
|
-
buildMenu(): Array<MngMenuItem>;
|
|
35
|
-
}
|
|
36
11
|
export declare class RouteBuilder {
|
|
37
12
|
private readonly route;
|
|
38
13
|
private routePath;
|
|
@@ -48,19 +23,16 @@ export declare class RouteBuilder {
|
|
|
48
23
|
private constructor();
|
|
49
24
|
static create(path: string, component: Type<any>): RouteBuilder;
|
|
50
25
|
static createRedirect(path: string, redirectTo: string, pathMatch?: 'full' | 'prefix'): RouteBuilder;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated This method is deprecated and should not be used.
|
|
28
|
+
* Use method {@link createLazyRouteComponent} or {@link createLazyRouteModule} instead.
|
|
29
|
+
*/
|
|
51
30
|
static createLazyRoute(path: string, loadChildren: LoadChildren, canLoad?: Array<any>): RouteBuilder;
|
|
31
|
+
static createLazyRouteModule(path: string, loadChildren: LoadChildren, canMatch?: Array<any>): RouteBuilder;
|
|
32
|
+
static createLazyRouteComponent(path: string, loadComponent: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>, canMatch?: Array<any>): RouteBuilder;
|
|
52
33
|
static createFromRoute(route: Route): RouteBuilder;
|
|
53
34
|
static createLayoutRoute(path: string, layoutComponent?: typeof MngMainLayoutComponent, topbarComponent?: Type<any>, breadcrumbComponent?: Type<any>, menuComponent?: Type<any>, footerComponent?: Type<any>): RouteBuilder;
|
|
54
35
|
static createTableview<C extends AMngTableviewRouteComponent<any, any>>(builder: TableviewRouteBuilder<C>): RouteBuilder;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use TableviewRouteBuilder
|
|
57
|
-
*/
|
|
58
|
-
static createTableviewRoutes<T, S>(path: string, descriptor: TableviewDescriptor<T>, dataProvider: ITableviewDataProvider<T, S>, actions?: Array<ActionDescriptor<T>>, hasDetails?: boolean, hasEdit?: boolean, hasAdd?: boolean): RouteBuilder;
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated Use TableviewRouteBuilder
|
|
61
|
-
*/
|
|
62
|
-
static createTableviewRoutesFromComponent(path: string, component: Type<any>, hasDetails?: boolean, hasEdit?: boolean, hasAdd?: boolean): RouteBuilder;
|
|
63
|
-
private static addActionsSubroutesToTableviewParent;
|
|
64
36
|
withRoot(routesBuilder: RoutesBuilder): this;
|
|
65
37
|
withParent(parent: RouteBuilder): this;
|
|
66
38
|
withBreadcrumb(breadcrumb: BreadcrumbType): this;
|
|
@@ -75,24 +47,16 @@ export declare class RouteBuilder {
|
|
|
75
47
|
withMngMenuItem(menuItem: MngMenuItem): this;
|
|
76
48
|
withMenuItem(icon?: string, label?: string, routerLink?: Array<string>): this;
|
|
77
49
|
withMenuItemChild(label: string, icon?: string, routerLink?: Array<string>): this;
|
|
78
|
-
|
|
50
|
+
withMngMenuItemChild(menuItem: MngMenuItem): this;
|
|
51
|
+
withMenuItemLazyChildren(): this;
|
|
79
52
|
withPermissions(permissions: APermissions): this;
|
|
80
53
|
addChild(path: string, component: Type<any>): RouteBuilder;
|
|
81
54
|
addChildBuilder(routeBuilder: RouteBuilder): this;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated
|
|
84
|
-
*/
|
|
85
|
-
addTableviewRoutes<T, S>(path: string, descriptor: TableviewDescriptor<T>, tableviewDataProvider: ITableviewDataProvider<T, S>, actions?: Array<ActionDescriptor<T>>, hasDetails?: boolean, hasEdit?: boolean, hasAdd?: boolean): RouteBuilder;
|
|
86
|
-
/**
|
|
87
|
-
* @deprecated
|
|
88
|
-
*/
|
|
89
|
-
addTableviewRoutesFromComponent(path: string, component: Type<any>, hasDetails?: boolean, hasEdit?: boolean, hasAdd?: boolean): RouteBuilder;
|
|
90
55
|
toParent(): RouteBuilder;
|
|
91
56
|
toRoot(): RoutesBuilder;
|
|
92
57
|
finish(): RoutesBuilder;
|
|
93
58
|
buildRoute(): Route;
|
|
94
|
-
buildMenu
|
|
59
|
+
private buildMenu;
|
|
95
60
|
private createMenuItem;
|
|
96
|
-
private adjustMenuRouterLinksFromBuilder;
|
|
97
61
|
private findMenuItemGuards;
|
|
98
62
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { DefaultExport, LoadChildren, Route, Routes } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { MngMainLayoutComponent } from '../components/layout';
|
|
5
|
+
import { AMngTableviewRouteComponent } from '../components/tableview';
|
|
6
|
+
import { RouteBuilder } from './route-builder';
|
|
7
|
+
import { TableviewRouteBuilder } from './tableview-route-builder';
|
|
8
|
+
export declare class RoutesBuilder {
|
|
9
|
+
private readonly layoutRoute?;
|
|
10
|
+
private routes;
|
|
11
|
+
private currentRoute?;
|
|
12
|
+
private constructor();
|
|
13
|
+
static create(): RoutesBuilder;
|
|
14
|
+
static createWithLayout(layoutComponent?: typeof MngMainLayoutComponent, topbarComponent?: Type<any>, breadcrumbComponent?: Type<any>, menuComponent?: Type<any>, footerComponent?: Type<any>): RoutesBuilder;
|
|
15
|
+
addAngularRoute(route: Route): this;
|
|
16
|
+
addRouteRedirect(path: string, redirectTo: string, pathMatch?: 'full' | 'prefix'): this;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated This method is deprecated and should not be used.
|
|
19
|
+
* Use method {@link addLazyRouteComponent} or {@link addLazyRouteModule} instead.
|
|
20
|
+
*/
|
|
21
|
+
addLazyRoute(path: string, loadChildren: LoadChildren, canLoad?: Array<any>): this;
|
|
22
|
+
addLazyRouteComponent(path: string, loadComponent: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>, canMatch?: Array<any>): this;
|
|
23
|
+
addLazyRouteModule(path: string, loadChildren: LoadChildren, canMatch?: Array<any>): this;
|
|
24
|
+
addRoute(path: string, component: Type<any>): this;
|
|
25
|
+
addTableview<C extends AMngTableviewRouteComponent<any, any>>(builder: TableviewRouteBuilder<C>): this;
|
|
26
|
+
addRouteBuilder(routeBuilder: RouteBuilder): this;
|
|
27
|
+
toRoute(): RouteBuilder;
|
|
28
|
+
buildRoutes(): Routes;
|
|
29
|
+
}
|
|
@@ -2,7 +2,8 @@ import { Type } from '@angular/core';
|
|
|
2
2
|
import { Route } from '@angular/router';
|
|
3
3
|
import { AMngTableviewRouteComponent } from '../components/tableview';
|
|
4
4
|
import { ITableviewDataProvider } from '../data-providers';
|
|
5
|
-
import { ActionDescriptor
|
|
5
|
+
import { ActionDescriptor } from '../descriptors/action';
|
|
6
|
+
import { TableviewDescriptor } from '../descriptors/tableview';
|
|
6
7
|
import { APermissions } from '../security/model';
|
|
7
8
|
import { RouteBuilder } from './route-builder';
|
|
8
9
|
export declare class TableviewRouteBuilder<C extends AMngTableviewRouteComponent<any, any>> {
|
|
@@ -7,7 +7,8 @@ import { Observable } from 'rxjs';
|
|
|
7
7
|
import { ActionContext, ActionContextValidation, ActionInstance, ActionParameters } from '../components/action/models';
|
|
8
8
|
import { MngTableCellClickEvent } from '../components/tableview/models';
|
|
9
9
|
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
10
|
-
import { ActionDescriptor, ActionEditorDescriptor
|
|
10
|
+
import { ActionDescriptor, ActionEditorDescriptor } from '../descriptors/action';
|
|
11
|
+
import { TableDescriptor } from '../descriptors/table';
|
|
11
12
|
import { MngError } from '../models';
|
|
12
13
|
import { MngParametrizePipe } from '../pipes';
|
|
13
14
|
import { MngConfigurationService } from './configuration.service';
|
|
@@ -17,7 +17,7 @@ export declare class MngCommonsService {
|
|
|
17
17
|
private translateLangChangeSubscription?;
|
|
18
18
|
private _menuMode;
|
|
19
19
|
private _menuModeSubject;
|
|
20
|
-
private _menuItems
|
|
20
|
+
private _menuItems?;
|
|
21
21
|
private _menuPinEnabled;
|
|
22
22
|
private _menuSidebarSlim;
|
|
23
23
|
private _menuActiveKeySubject;
|
|
@@ -63,8 +63,8 @@ export declare class MngCommonsService {
|
|
|
63
63
|
get menuModeIsSidebar$(): Observable<boolean>;
|
|
64
64
|
get menuActiveKey$(): Observable<string>;
|
|
65
65
|
get menuReset$(): Observable<any>;
|
|
66
|
-
get menuItems(): MngMenuItem[];
|
|
67
|
-
set menuItems(menuItems: MngMenuItem[]);
|
|
66
|
+
get menuItems(): MngMenuItem[] | undefined;
|
|
67
|
+
set menuItems(menuItems: MngMenuItem[] | undefined);
|
|
68
68
|
get menuPinEnabled(): boolean;
|
|
69
69
|
get menuSidebarSlim(): boolean;
|
|
70
70
|
get breadcrumbHome$(): Observable<MngMenuItem | null>;
|
|
@@ -20,7 +20,10 @@ export declare class MngConfigurationService {
|
|
|
20
20
|
* @param url Url to JSON file.
|
|
21
21
|
* @param loadImmediately Load is by default triggered on app initialization. If immediate load is required, pass true.
|
|
22
22
|
*/
|
|
23
|
-
addJsonSource(
|
|
23
|
+
addJsonSource(config?: {
|
|
24
|
+
url?: string;
|
|
25
|
+
enableEnvProd?: boolean;
|
|
26
|
+
}, loadImmediately?: boolean): Observable<boolean>;
|
|
24
27
|
/**
|
|
25
28
|
* Adds new config object from any object.
|
|
26
29
|
* @param config Config object.
|
|
@@ -2,15 +2,17 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MngCommonsService } from '../commons.service';
|
|
4
4
|
import { MngConfigurationService } from '../configuration.service';
|
|
5
|
+
import { MngRouterService } from '../router.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class MngCommonsInitService {
|
|
7
8
|
private translate;
|
|
8
9
|
private configurationService;
|
|
9
10
|
private mngCommons;
|
|
11
|
+
private mngRouter;
|
|
10
12
|
private readonly commonsInitializers;
|
|
11
13
|
private isInitialized;
|
|
12
|
-
constructor(translate: TranslateService, configurationService: MngConfigurationService, mngCommons: MngCommonsService, commonsInitializers: ReadonlyArray<() => Observable<unknown>>);
|
|
14
|
+
constructor(translate: TranslateService, configurationService: MngConfigurationService, mngCommons: MngCommonsService, mngRouter: MngRouterService, commonsInitializers: ReadonlyArray<() => Observable<unknown>>);
|
|
13
15
|
initialize(): Observable<void>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsInitService, [null, null, null, { optional: true; }]>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsInitService, [null, null, null, null, { optional: true; }]>;
|
|
15
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<MngCommonsInitService>;
|
|
16
18
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Router, Routes } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngRouterService {
|
|
5
|
+
private router;
|
|
6
|
+
private currentNavigationPath?;
|
|
7
|
+
private currentNavigationConfigModule?;
|
|
8
|
+
private currentNavigationConfigLoaded?;
|
|
9
|
+
private lazyLoadedRoutesConfig;
|
|
10
|
+
constructor(router: Router);
|
|
11
|
+
getRouteLoadedChildren(path: string | Array<string>): Routes | undefined;
|
|
12
|
+
getRouteLoadedChildren$(path: string | Array<string>): Observable<Routes>;
|
|
13
|
+
initialize(): void;
|
|
14
|
+
private startNavigation;
|
|
15
|
+
private finishNavigation;
|
|
16
|
+
private markNavigationConfigLoad;
|
|
17
|
+
private getLoadedRoutesFromRoute;
|
|
18
|
+
private getOrCreateRouteForModule;
|
|
19
|
+
private getModulePathFromRouterLink;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngRouterService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngRouterService>;
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageService } from 'primeng/api';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { IDataProvider } from '../data-providers';
|
|
4
|
-
import { ActionDescriptor } from '../descriptors';
|
|
4
|
+
import { ActionDescriptor } from '../descriptors/action';
|
|
5
5
|
import { IViewContainerEditor, IViewContainerTable, ViewContainerEditorCloseEvent, ViewContainerEditorResetEvent, ViewContainerTableReloadEvent } from '../models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ActionDescriptor
|
|
1
|
+
import { ActionDescriptor } from '../descriptors/action';
|
|
2
|
+
import { TableDescriptor } from '../descriptors/table';
|
|
2
3
|
export declare class StylesUtil {
|
|
3
4
|
static readonly BUTTON_ROUNDED_WIDTH_XS = 26;
|
|
4
5
|
static readonly BUTTON_ROUNDED_WIDTH_SM = 28;
|
|
@@ -9,15 +9,15 @@ export interface ClassType<T> extends Function {
|
|
|
9
9
|
export interface EnumType {
|
|
10
10
|
[key: string]: EnumConstantType;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
12
|
+
export type EnumConstantType = string | number;
|
|
13
|
+
export type IdType = number | string;
|
|
14
|
+
export type PrimitiveType = string | boolean | number;
|
|
15
|
+
export type PropertyType = PrimitiveType | Date | EnumType;
|
|
16
|
+
export type MngFieldValidator = (control: AbstractControl, field: FormlyFieldConfig, options?: {
|
|
17
17
|
[id: string]: any;
|
|
18
18
|
}) => ValidationErrors | boolean | null;
|
|
19
|
-
export
|
|
19
|
+
export type MngFieldAsyncValidator = (control: AbstractControl, field: FormlyFieldConfig, options?: {
|
|
20
20
|
[id: string]: any;
|
|
21
21
|
}) => Observable<ValidationErrors | boolean | null>;
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type MngFieldValidationMessage = string | ((error: any, field: FormlyFieldConfig) => string | Observable<string>);
|
|
23
|
+
export type MatchModeMapType = [string, string, MediusFilterMatchType, FilterTypeEnum | null];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
2
|
import { IFormEditorComponent } from '../components/form/models';
|
|
3
|
-
import { AFieldDescriptor, EditorDescriptor, FieldGroupDescriptor, FieldTabGroupDescriptor, FieldValidationDescriptor } from '../descriptors';
|
|
3
|
+
import { AFieldDescriptor, EditorDescriptor, FieldGroupDescriptor, FieldTabGroupDescriptor, FieldValidationDescriptor } from '../descriptors/editor';
|
|
4
4
|
export declare class EditorFormlyUtil {
|
|
5
5
|
static createFormlyConfigFromDescriptor(descriptor: EditorDescriptor<any>, formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig[];
|
|
6
6
|
static createFormlyTabType(tabGroups: FieldTabGroupDescriptor<any>[], formEditorComponent: IFormEditorComponent<unknown>): FormlyFieldConfig[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { TableviewDescriptor } from '../descriptors/tableview';
|
|
3
|
+
export declare class ExportUtils {
|
|
4
|
+
static prepareDataForExport(pageData: any[], delimiter: string, descriptor: TableviewDescriptor<any>, translate: TranslateService): string;
|
|
5
|
+
}
|
package/lib/utils/i18n.util.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { ModelDescriptor } from '../descriptors';
|
|
4
|
+
import { ActionDescriptor, ActionEditorDescriptor } from '../descriptors/action';
|
|
4
5
|
import { MngError } from '../models';
|
|
5
6
|
import { ClassType } from '../types';
|
|
6
7
|
export declare namespace I18nUtils {
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import { Message } from 'primeng/api';
|
|
3
|
-
import { ActionDescriptor
|
|
3
|
+
import { ActionDescriptor } from '../descriptors/action';
|
|
4
|
+
import { TableDescriptor } from '../descriptors/table';
|
|
4
5
|
import { IViewContainer, MngError } from '../models';
|
|
5
6
|
export declare class NotificationUtil {
|
|
6
7
|
static notification(viewContainer?: IViewContainer<any, any>, title?: string, message?: string, severity?: 'success' | 'warn' | 'error'): Message;
|
|
@@ -1,4 +1,59 @@
|
|
|
1
|
+
import { MenuItem } from 'primeng/api';
|
|
1
2
|
export declare class RouteUtil {
|
|
2
3
|
static removeEmptyPathSegments(path: Array<string>): string[];
|
|
3
4
|
static appendPathToBasePath(basePath: Array<string>, path: Array<string>): string[];
|
|
5
|
+
static adjustMenuLazyChildrenRouterLinks(rootMenuItem: MenuItem, lazyChildren: Array<MenuItem>): {
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
icon?: string | undefined;
|
|
8
|
+
command?: ((event?: any) => void) | undefined;
|
|
9
|
+
url?: string | undefined;
|
|
10
|
+
items?: MenuItem[] | undefined;
|
|
11
|
+
expanded?: boolean | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
visible?: boolean | undefined;
|
|
14
|
+
target?: string | undefined;
|
|
15
|
+
escape?: boolean | undefined;
|
|
16
|
+
routerLinkActiveOptions?: any;
|
|
17
|
+
separator?: boolean | undefined;
|
|
18
|
+
badge?: string | undefined;
|
|
19
|
+
tooltip?: string | undefined;
|
|
20
|
+
tooltipPosition?: string | undefined;
|
|
21
|
+
badgeStyleClass?: string | undefined;
|
|
22
|
+
style?: any;
|
|
23
|
+
styleClass?: string | undefined;
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
automationId?: any;
|
|
27
|
+
tabindex?: string | undefined;
|
|
28
|
+
routerLink?: any;
|
|
29
|
+
queryParams?: {
|
|
30
|
+
[k: string]: any;
|
|
31
|
+
} | undefined;
|
|
32
|
+
fragment?: string | undefined;
|
|
33
|
+
queryParamsHandling?: import("@angular/router").QueryParamsHandling | undefined;
|
|
34
|
+
preserveFragment?: boolean | undefined;
|
|
35
|
+
skipLocationChange?: boolean | undefined;
|
|
36
|
+
replaceUrl?: boolean | undefined;
|
|
37
|
+
iconStyle?: any;
|
|
38
|
+
iconClass?: string | undefined;
|
|
39
|
+
state?: {
|
|
40
|
+
[k: string]: any;
|
|
41
|
+
} | undefined;
|
|
42
|
+
tooltipOptions?: {
|
|
43
|
+
tooltipLabel?: string | undefined;
|
|
44
|
+
tooltipPosition?: string | undefined;
|
|
45
|
+
tooltipEvent?: string | undefined;
|
|
46
|
+
appendTo?: any;
|
|
47
|
+
positionStyle?: string | undefined;
|
|
48
|
+
tooltipStyleClass?: string | undefined;
|
|
49
|
+
tooltipZIndex?: string | undefined;
|
|
50
|
+
escape?: boolean | undefined;
|
|
51
|
+
disabled?: boolean | undefined;
|
|
52
|
+
positionTop?: number | undefined;
|
|
53
|
+
positionLeft?: number | undefined;
|
|
54
|
+
showDelay?: number | undefined;
|
|
55
|
+
hideDelay?: number | undefined;
|
|
56
|
+
life?: number | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
}[];
|
|
4
59
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AttributeDef } from '../api/models';
|
|
2
|
-
import { ColumnDescriptor } from '../descriptors';
|
|
2
|
+
import { ColumnDescriptor } from '../descriptors/table';
|
|
3
3
|
import { ColumnDisplayTypeEnum, ColumnTypeEnum, FieldInputTypeEnum } from '../descriptors/types';
|
|
4
4
|
import { TableviewAttributeDef } from '../models/tableview-attr.model';
|
|
5
5
|
import { ClassType } from '../types';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.0-08f92864",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "
|
|
6
|
-
"@angular/core": "
|
|
7
|
-
"@angular/forms": "
|
|
8
|
-
"@angular/router": "
|
|
5
|
+
"@angular/common": "~15.2.1",
|
|
6
|
+
"@angular/core": "~15.2.1",
|
|
7
|
+
"@angular/forms": "~15.2.1",
|
|
8
|
+
"@angular/router": "~15.2.1",
|
|
9
9
|
"@ngx-formly/core": "~6.0.0",
|
|
10
10
|
"@ngx-translate/core": "~14.0.0",
|
|
11
|
-
"primeng": "
|
|
11
|
+
"primeng": "~15.2.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"file-saver": "^2.0.5",
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './lib/mng-commons.module';
|
|
2
|
+
export * from './lib/provide-commons';
|
|
2
3
|
export * from './lib/api/services';
|
|
3
4
|
export * from './lib/components/layout/services';
|
|
4
5
|
export * from './lib/services';
|
|
@@ -22,7 +23,12 @@ export * from './lib/components/form/formly/models';
|
|
|
22
23
|
export * from './lib/components/form/formly';
|
|
23
24
|
export * from './lib/data-providers';
|
|
24
25
|
export * from './lib/descriptors';
|
|
26
|
+
export * from './lib/descriptors/action';
|
|
27
|
+
export * from './lib/descriptors/editor';
|
|
28
|
+
export * from './lib/descriptors/filter';
|
|
25
29
|
export * from './lib/descriptors/interfaces';
|
|
30
|
+
export * from './lib/descriptors/table';
|
|
31
|
+
export * from './lib/descriptors/tableview';
|
|
26
32
|
export * from './lib/descriptors/types';
|
|
27
33
|
export * from './lib/models';
|
|
28
34
|
export * from './lib/router';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
.layout-breadcrumb-container {
|
|
2
2
|
background-color: transparent;
|
|
3
|
+
padding-top: 30px;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
3
7
|
|
|
4
8
|
.layout-breadcrumb {
|
|
5
9
|
background: transparent;
|
|
6
10
|
border: 0 none;
|
|
7
11
|
border-radius: 0;
|
|
8
|
-
padding-left:
|
|
12
|
+
padding-left: 30px;
|
|
9
13
|
|
|
10
14
|
ul {
|
|
11
15
|
li {
|
|
@@ -24,7 +28,6 @@
|
|
|
24
28
|
|
|
25
29
|
.p-menuitem-text {
|
|
26
30
|
color: $textThirdColor;
|
|
27
|
-
font-weight: $submenuHeaderFontWeight;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -37,7 +40,14 @@
|
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
|
|
43
|
+
.layout-breadcrumb-left-items {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
.layout-breadcrumb-right-items {
|
|
49
|
+
display: flex;
|
|
50
|
+
|
|
41
51
|
.search-icon {
|
|
42
52
|
display: none;
|
|
43
53
|
align-items: center;
|