@mediusinc/mng-commons 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/api/services/{abstract-crud-api.service.mjs → crud-api.abstract.service.mjs} +2 -2
- package/esm2020/lib/api/services/index.mjs +2 -2
- package/esm2020/lib/api/utils/medius-rest.util.mjs +1 -1
- package/esm2020/lib/api/utils/object-serializer.util.mjs +1 -1
- package/esm2020/lib/components/action/action.component.mjs +9 -7
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +15 -26
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
- package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
- package/esm2020/lib/components/action/models/index.mjs +3 -0
- package/esm2020/lib/components/action/route/action-route.component.mjs +8 -8
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +11 -12
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +6 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +5 -5
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +5 -5
- package/esm2020/lib/components/form/index.mjs +3 -3
- package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
- package/esm2020/lib/components/form/models/index.mjs +2 -0
- package/esm2020/lib/components/layout/main-layout.component.mjs +36 -15
- package/esm2020/lib/components/layout/menu-item.component.mjs +4 -4
- package/esm2020/lib/components/layout/menu.component.mjs +6 -6
- package/esm2020/lib/components/layout/services/index.mjs +2 -0
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +5 -5
- package/esm2020/lib/components/layout/topbar.component.mjs +35 -16
- package/esm2020/lib/components/tableview/models/index.mjs +2 -0
- package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +2 -2
- package/esm2020/lib/components/tableview/services/index.mjs +2 -0
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +4 -4
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +3 -3
- package/esm2020/lib/components/tableview/table/table.component.mjs +11 -11
- package/esm2020/lib/components/tableview/tableview.component.mjs +11 -12
- package/esm2020/lib/config/formly.config.mjs +13 -13
- package/esm2020/lib/{models/config → config/models}/index.mjs +1 -1
- package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
- package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
- package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
- package/esm2020/lib/data-providers/index.mjs +6 -0
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
- package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
- package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
- package/esm2020/lib/descriptors/field.validator.mjs +21 -0
- package/esm2020/lib/descriptors/index.mjs +8 -0
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
- package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
- package/esm2020/lib/descriptors/table.descriptor.mjs +401 -0
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
- package/esm2020/lib/directives/component.directive.mjs +23 -0
- package/esm2020/lib/directives/index.mjs +2 -1
- package/esm2020/lib/directives/template.directive.mjs +11 -7
- package/esm2020/lib/mng-commons.module.mjs +137 -70
- package/esm2020/lib/models/index.mjs +3 -0
- package/esm2020/lib/models/router.model.mjs +2 -0
- package/esm2020/lib/models/user.model.mjs +2 -0
- package/esm2020/lib/pipes/boolean.pipe.mjs +5 -5
- package/esm2020/lib/pipes/property-path.pipe.mjs +5 -5
- package/esm2020/lib/services/action.service.mjs +6 -7
- package/esm2020/lib/services/commons.service.mjs +5 -9
- package/esm2020/lib/services/configuration.service.mjs +2 -1
- package/esm2020/lib/services/providers/config-service.provider.mjs +10 -2
- package/esm2020/lib/services/providers/formly-config.provider.mjs +1 -1
- package/esm2020/lib/services/providers/index.mjs +2 -1
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
- package/esm2020/lib/services/tokens/index.mjs +3 -0
- package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
- package/esm2020/lib/types/index.mjs +3 -0
- package/esm2020/lib/types/type.decorator.mjs +7 -0
- package/esm2020/lib/types/type.model.mjs +2 -0
- package/esm2020/lib/utils/editor-formly.util.mjs +2 -2
- package/esm2020/lib/utils/i18n.util.mjs +1 -1
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/model.util.mjs +1 -1
- package/esm2020/lib/utils/toast.util.mjs +2 -2
- package/esm2020/lib/utils/type.util.mjs +2 -2
- package/esm2020/public-api.mjs +12 -11
- package/fesm2015/mediusinc-mng-commons.mjs +509 -377
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +502 -371
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/services/{abstract-crud-api.service.d.ts → crud-api.abstract.service.d.ts} +2 -2
- package/lib/api/services/index.d.ts +1 -1
- package/lib/api/utils/medius-rest.util.d.ts +1 -1
- package/lib/api/utils/object-serializer.util.d.ts +1 -1
- package/lib/components/action/action.component.d.ts +8 -8
- package/lib/components/action/dialog/action-dialog.component.d.ts +13 -16
- package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +2 -2
- package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +3 -3
- package/lib/components/action/models/index.d.ts +2 -0
- package/lib/components/action/route/action-route.component.d.ts +6 -6
- package/lib/components/form/autocomplete/{mng-autocomplete.component.d.ts → autocomplete.component.d.ts} +1 -1
- package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts} +1 -1
- package/lib/components/form/editor/form-editor.component.d.ts +6 -6
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +3 -3
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +4 -4
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +3 -3
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +3 -3
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +3 -3
- package/lib/components/form/index.d.ts +2 -2
- package/lib/components/form/models/form-editor.event.d.ts +5 -0
- package/lib/components/form/models/index.d.ts +1 -0
- package/lib/components/layout/main-layout.component.d.ts +12 -4
- package/lib/components/layout/menu-item.component.d.ts +3 -3
- package/lib/components/layout/menu.component.d.ts +3 -3
- package/lib/components/layout/services/index.d.ts +1 -0
- package/lib/components/layout/services/main-layout.component.service.d.ts +3 -3
- package/lib/components/layout/topbar.component.d.ts +13 -6
- package/lib/components/tableview/models/index.d.ts +1 -0
- package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +2 -2
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +2 -2
- package/lib/components/tableview/services/index.d.ts +1 -0
- package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +2 -2
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +1 -1
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +1 -1
- package/lib/components/tableview/table/table.component.d.ts +8 -8
- package/lib/components/tableview/tableview.component.d.ts +9 -10
- package/lib/config/formly.config.d.ts +3 -3
- package/lib/{models/config → config/models}/index.d.ts +0 -0
- package/lib/{models/config → config/models}/mng-config.model.d.ts +0 -3
- package/lib/data-providers/base.data-provider.d.ts +17 -0
- package/lib/data-providers/editor.data-provider.d.ts +25 -0
- package/lib/data-providers/index.d.ts +5 -0
- package/lib/data-providers/lookup.data-provider.d.ts +14 -0
- package/lib/data-providers/table.data-provider.d.ts +6 -0
- package/lib/data-providers/tableview.data-provider.d.ts +15 -0
- package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +6 -3
- package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +5 -7
- package/lib/{models/validators → descriptors}/field.validator.d.ts +0 -0
- package/lib/descriptors/index.d.ts +7 -0
- package/lib/{models/interfaces/lookup.model.d.ts → descriptors/lookup.descriptor.d.ts} +3 -3
- package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +0 -0
- package/lib/{models/descriptors/table-descriptor.model.d.ts → descriptors/table.descriptor.d.ts} +5 -5
- package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +1 -3
- package/lib/directives/component.directive.d.ts +11 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/template.directive.d.ts +7 -5
- package/lib/mng-commons.module.d.ts +70 -69
- package/lib/models/{router/index.d.ts → index.d.ts} +1 -0
- package/lib/models/router.model.d.ts +14 -0
- package/lib/models/{user/user.model.d.ts → user.model.d.ts} +0 -0
- package/lib/pipes/boolean.pipe.d.ts +3 -3
- package/lib/pipes/property-path.pipe.d.ts +3 -3
- package/lib/services/action.service.d.ts +6 -6
- package/lib/services/commons.service.d.ts +2 -4
- package/lib/services/providers/config-service.provider.d.ts +1 -1
- package/lib/services/providers/formly-config.provider.d.ts +1 -1
- package/lib/services/providers/index.d.ts +1 -0
- package/lib/services/tokens/browser-storage.token.d.ts +2 -0
- package/lib/services/tokens/index.d.ts +2 -0
- package/lib/services/tokens/module-config.token.d.ts +3 -0
- package/lib/{models/types → types}/index.d.ts +0 -0
- package/lib/{models/types → types}/type.decorator.d.ts +0 -0
- package/lib/{models/types → types}/type.model.d.ts +0 -0
- package/lib/utils/editor-formly.util.d.ts +1 -1
- package/lib/utils/i18n.util.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/model.util.d.ts +3 -3
- package/lib/utils/toast.util.d.ts +3 -3
- package/lib/utils/type.util.d.ts +1 -1
- package/{mediusinc-mng-commons-0.1.0.tgz → mediusinc-mng-commons-0.2.0.tgz} +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +10 -9
- package/scss/common/layout/_help.scss +3 -3
- package/scss/common/layout/_landing.scss +1 -1
- package/scss/common/variables/layout/_common.scss +2 -0
- package/scss/common/variables/layout/_layout_dark.scss +4 -3
- package/scss/common/variables/layout/_layout_light.scss +4 -3
- package/scss/layout/default/_mng-variables-layout-light.scss +2 -2
- package/scss/mng-commons-dark.scss +0 -5
- package/scss/mng-commons-light.scss +0 -8
- package/scss/theme/default/_mng-variables-theme-light.scss +4 -4
- package/.pnpm-debug.log +0 -15
- package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +0 -114
- package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +0 -113
- package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
- package/esm2020/lib/models/action/action.model.mjs +0 -58
- package/esm2020/lib/models/action/index.mjs +0 -2
- package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -325
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -671
- package/esm2020/lib/models/descriptors/index.mjs +0 -6
- package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -401
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -133
- package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
- package/esm2020/lib/models/events/index.mjs +0 -3
- package/esm2020/lib/models/events/table-event.model.mjs +0 -16
- package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
- package/esm2020/lib/models/interfaces/index.mjs +0 -3
- package/esm2020/lib/models/interfaces/lookup.model.mjs +0 -2
- package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
- package/esm2020/lib/models/providers/index.mjs +0 -2
- package/esm2020/lib/models/router/index.mjs +0 -2
- package/esm2020/lib/models/router/router.model.mjs +0 -2
- package/esm2020/lib/models/types/index.mjs +0 -3
- package/esm2020/lib/models/types/type.decorator.mjs +0 -7
- package/esm2020/lib/models/types/type.model.mjs +0 -2
- package/esm2020/lib/models/user/index.mjs +0 -2
- package/esm2020/lib/models/user/user.model.mjs +0 -2
- package/esm2020/lib/models/validators/field.validator.mjs +0 -21
- package/esm2020/lib/models/validators/index.mjs +0 -2
- package/lib/models/action/index.d.ts +0 -1
- package/lib/models/descriptors/index.d.ts +0 -5
- package/lib/models/events/editor-event.model.d.ts +0 -11
- package/lib/models/events/index.d.ts +0 -2
- package/lib/models/interfaces/index.d.ts +0 -2
- package/lib/models/providers/data-provider.model.d.ts +0 -62
- package/lib/models/providers/index.d.ts +0 -1
- package/lib/models/router/router.model.d.ts +0 -9
- package/lib/models/user/index.d.ts +0 -1
- package/lib/models/validators/index.d.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MediusQueryParam, MediusQueryResult } from '../models';
|
|
4
|
-
import { ClassType } from '../../
|
|
5
|
-
export declare abstract class
|
|
4
|
+
import { ClassType } from '../../types';
|
|
5
|
+
export declare abstract class AMngCrudApiService<T, QRT extends MediusQueryResult<T>> {
|
|
6
6
|
protected type: ClassType<T>;
|
|
7
7
|
protected queryResultType: ClassType<QRT>;
|
|
8
8
|
protected http: HttpClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './crud-api.abstract.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Params } from '@angular/router';
|
|
2
2
|
import { FilterMetadata, LazyLoadEvent } from 'primeng/api';
|
|
3
3
|
import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
|
|
4
|
-
import { FilterDescriptor } from '../../
|
|
4
|
+
import { FilterDescriptor } from '../../descriptors';
|
|
5
5
|
export declare class MediusRestUtil {
|
|
6
6
|
static readonly matchModeMapping: Array<[string, string, MediusFilterMatchType]>;
|
|
7
7
|
static fromAngularQueryParamsToMediusQueryParams(params: Params, filterDescriptors: Array<FilterDescriptor<any>>, defaultItemsPerPage?: number, defaultOffset?: number): MediusQueryParam;
|
|
@@ -3,14 +3,13 @@ import { ActivatedRoute } from '@angular/router';
|
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { ConfirmationService } from 'primeng/api';
|
|
6
|
-
import { IdType } from '../../
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { IConfirmationService } from '../../models/interfaces';
|
|
6
|
+
import { IdType } from '../../types';
|
|
7
|
+
import { ActionDescriptor } from '../../descriptors';
|
|
8
|
+
import { IActionConfirmationService, ActionData } from './models';
|
|
10
9
|
import { MngActionService } from '../../services';
|
|
11
|
-
import { TableviewComponentService } from '../tableview/
|
|
10
|
+
import { TableviewComponentService } from '../tableview/services';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class
|
|
12
|
+
export declare class MngActionComponent<T, S> implements OnInit, IActionConfirmationService {
|
|
14
13
|
private route;
|
|
15
14
|
private translate;
|
|
16
15
|
private actionService;
|
|
@@ -26,11 +25,12 @@ export declare class ActionComponent<T, S> implements OnInit, IConfirmationServi
|
|
|
26
25
|
$isVisible: Observable<boolean>;
|
|
27
26
|
$isEnabled: Observable<boolean>;
|
|
28
27
|
$label: Observable<string | null>;
|
|
28
|
+
$tooltip: Observable<string | null>;
|
|
29
29
|
constructor(route: ActivatedRoute, translate: TranslateService, actionService: MngActionService, confirmationService: ConfirmationService, tableviewService: TableviewComponentService<T, S>);
|
|
30
30
|
ngOnInit(): void;
|
|
31
31
|
triggerAction(event: Event): void;
|
|
32
32
|
getConfirmationService(): ConfirmationService;
|
|
33
33
|
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionComponent<any, any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionComponent<any, any>, "mng-action", never, { "action": "action"; "item": "item"; "itemId": "itemId"; "actionData": "actionData"; }, {}, never, never>;
|
|
36
36
|
}
|
|
@@ -2,29 +2,26 @@ import { Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { ActionData, ActionRunResult } from '
|
|
6
|
-
import { ActionEditorDescriptor } from '../../../
|
|
7
|
-
import { IdType } from '../../../
|
|
8
|
-
import { IEditorDataProvider } from '../../../
|
|
9
|
-
import {
|
|
10
|
-
import { MngActionService
|
|
11
|
-
import {
|
|
5
|
+
import { ActionData, ActionRunResult } from '../models';
|
|
6
|
+
import { ActionEditorDescriptor } from '../../../descriptors';
|
|
7
|
+
import { IdType } from '../../../types';
|
|
8
|
+
import { IEditorDataProvider } from '../../../data-providers';
|
|
9
|
+
import { MngFormEditorSubmitEvent } from '../../form/models';
|
|
10
|
+
import { MngActionService } from '../../../services';
|
|
11
|
+
import { MngTemplateDirective } from '../../../directives';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class MngActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
14
14
|
private injector;
|
|
15
15
|
private translate;
|
|
16
16
|
dialogRef: DynamicDialogRef;
|
|
17
17
|
dialogConfig: DynamicDialogConfig;
|
|
18
18
|
private actionService;
|
|
19
|
-
private mngCommonsService;
|
|
20
19
|
action: ActionEditorDescriptor<T>;
|
|
21
20
|
itemId?: IdType;
|
|
22
21
|
item?: T;
|
|
23
22
|
actionData?: ActionData;
|
|
24
23
|
dataProvider?: IEditorDataProvider<T, S>;
|
|
25
|
-
|
|
26
|
-
private visibleChangeEventEmitter;
|
|
27
|
-
templates: QueryList<TemplateDirective>;
|
|
24
|
+
templates: QueryList<MngTemplateDirective>;
|
|
28
25
|
private submitButtonElementRef;
|
|
29
26
|
private editorComponent;
|
|
30
27
|
cmpId: string;
|
|
@@ -36,14 +33,14 @@ export declare class ActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
|
36
33
|
private tableviewService?;
|
|
37
34
|
private sourceComponent;
|
|
38
35
|
private subscriptions;
|
|
39
|
-
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService
|
|
36
|
+
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService);
|
|
40
37
|
ngOnInit(): void;
|
|
41
38
|
ngOnDestroy(): void;
|
|
42
|
-
onSubmit(event:
|
|
39
|
+
onSubmit(event: MngFormEditorSubmitEvent<T>): void;
|
|
43
40
|
closeDialog(result?: ActionRunResult<T, any, any>): void;
|
|
44
41
|
saveItem(): void;
|
|
45
42
|
private loadItemWithDataProvider;
|
|
46
43
|
private setDialogHeaderTitle;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionDialogComponent<any, any>, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionDialogComponent<any, any>, "mng-action-dialog", never, { "action": "action"; "itemId": "itemId"; "item": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; }, {}, ["templates"], never>;
|
|
49
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfirmationService } from 'primeng/api';
|
|
2
|
-
import { ActionDescriptor } from '
|
|
3
|
-
export interface
|
|
2
|
+
import { ActionDescriptor } from '../../../descriptors';
|
|
3
|
+
export interface IActionConfirmationService {
|
|
4
4
|
getConfirmationService(): ConfirmationService;
|
|
5
5
|
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
6
6
|
}
|
package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { IdType } from '
|
|
4
|
-
import { IDataProvider } from '
|
|
5
|
-
import { TableviewComponentService } from '../../
|
|
3
|
+
import { IdType } from '../../../types';
|
|
4
|
+
import { IDataProvider } from '../../../data-providers';
|
|
5
|
+
import { TableviewComponentService } from '../../tableview/services';
|
|
6
6
|
export declare class ActionExecContext<T, S, DP extends IDataProvider<T, S>> {
|
|
7
7
|
readonly dataProvider?: DP | undefined;
|
|
8
8
|
readonly serviceInstance?: S | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { ConfirmationService } from 'primeng/api';
|
|
4
|
-
import { ActionDescriptor } from '../../../
|
|
5
|
-
import {
|
|
4
|
+
import { ActionDescriptor } from '../../../descriptors';
|
|
5
|
+
import { IActionConfirmationService } from '../models';
|
|
6
6
|
import { MngActionService, MngNavigationService } from '../../../services';
|
|
7
|
-
import { TableviewComponentService } from '../../tableview/
|
|
7
|
+
import { TableviewComponentService } from '../../tableview/services';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy, IActionConfirmationService {
|
|
10
10
|
private router;
|
|
11
11
|
private route;
|
|
12
12
|
private confirmationService;
|
|
@@ -27,6 +27,6 @@ export declare class ActionRouteComponent<T, S> implements OnInit, OnDestroy, IC
|
|
|
27
27
|
private activateAction;
|
|
28
28
|
private deactivateAction;
|
|
29
29
|
private findActiveAction;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionRouteComponent<any, any>, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionRouteComponent<any, any>, "mng-action-route", never, {}, {}, never, never>;
|
|
32
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ILookupDataProvider } from '../../../
|
|
4
|
+
import { ILookupDataProvider } from '../../../data-providers';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const MNG_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider;
|
|
7
7
|
export declare class MngAutocompleteComponent implements OnInit, ControlValueAccessor {
|
package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ILookupDataProvider } from '../../../
|
|
4
|
+
import { ILookupDataProvider } from '../../../data-providers';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const MNG_DROPDOWN_VALUE_ACCESSOR: ExistingProvider;
|
|
7
7
|
export declare class MngDropdownComponent implements OnInit, ControlValueAccessor {
|
|
@@ -4,10 +4,10 @@ import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
|
4
4
|
import { Message } from 'primeng/api';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import { EditorDescriptor } from '../../../
|
|
8
|
-
import {
|
|
7
|
+
import { EditorDescriptor } from '../../../descriptors';
|
|
8
|
+
import { MngTemplateDirective } from '../../../directives';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class MngFormEditorComponent<T> implements OnInit, AfterContentInit, OnDestroy {
|
|
11
11
|
private translateService;
|
|
12
12
|
descriptor: EditorDescriptor<T>;
|
|
13
13
|
submitLoading: Observable<boolean> | boolean;
|
|
@@ -15,7 +15,7 @@ export declare class FormEditorComponent<T> implements OnInit, AfterContentInit,
|
|
|
15
15
|
isSubmitButtonVisible: boolean;
|
|
16
16
|
isFormDisabled: null;
|
|
17
17
|
private submitEventEmitter;
|
|
18
|
-
templates: QueryList<
|
|
18
|
+
templates: QueryList<MngTemplateDirective>;
|
|
19
19
|
submitButtonElementRef?: ElementRef;
|
|
20
20
|
form: FormGroup;
|
|
21
21
|
formOptions: FormlyFormOptions;
|
|
@@ -34,6 +34,6 @@ export declare class FormEditorComponent<T> implements OnInit, AfterContentInit,
|
|
|
34
34
|
private isAnyFieldInvalid;
|
|
35
35
|
private updateFormModel;
|
|
36
36
|
private updateFormState;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "submitEventEmitter": "onSubmit"; }, ["templates"], never>;
|
|
39
39
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import { FieldLookupDescriptor } from '../../../../../
|
|
3
|
+
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType {
|
|
6
6
|
aFormControl: FormControl;
|
|
7
7
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
8
|
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldAutocompleteComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never>;
|
|
11
11
|
}
|
package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import { FieldLookupDescriptor } from '../../../../../
|
|
3
|
+
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class MngFormlyFieldDropdownComponent<T> extends FieldType {
|
|
6
6
|
dFormControl: FormControl;
|
|
7
7
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
8
|
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldDropdownComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never>;
|
|
11
11
|
}
|
package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldType } from '@ngx-formly/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
3
|
+
export declare class MngFormlyFieldFieldsetComponent extends FieldType {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldFieldsetComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldFieldsetComponent, "mng-formly-field-fieldset", never, {}, {}, never, never>;
|
|
6
6
|
}
|
package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { FieldType } from '@ngx-formly/core';
|
|
4
|
-
import { FieldInputDescriptor } from '../../../../../
|
|
4
|
+
import { FieldInputDescriptor } from '../../../../../descriptors';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class MngFormlyFieldInputComponent extends FieldType implements OnInit {
|
|
7
7
|
iFormControl: FormControl;
|
|
8
8
|
descriptor: FieldInputDescriptor<any>;
|
|
9
9
|
ngOnInit(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldInputComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent, "mng-formly-field-input", never, {}, {}, never, never>;
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import { Observable, Subject } from 'rxjs';
|
|
4
|
-
import { FieldManyEditorDescriptor, ActionDescriptor } from '../../../../../
|
|
4
|
+
import { FieldManyEditorDescriptor, ActionDescriptor } from '../../../../../descriptors';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
|
|
7
7
|
descriptor: FieldManyEditorDescriptor<T, ET>;
|
|
8
8
|
itemsSubject: Subject<Array<T>>;
|
|
9
9
|
items$: Observable<Array<T>>;
|
|
@@ -12,6 +12,6 @@ export declare class FormlyFieldTableDialogFormComponent<T, ET> extends FieldTyp
|
|
|
12
12
|
private subscriptions;
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogFormComponent<any, any>, "mng-formly-table-dialog-form-field", never, {}, {}, never, never>;
|
|
17
17
|
}
|
|
@@ -3,9 +3,9 @@ import { FieldType } from '@ngx-formly/core';
|
|
|
3
3
|
import { Message } from 'primeng/api';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { MediusQueryResult } from '../../../../../api/models';
|
|
6
|
-
import { FieldManyToManyEditorDescriptor } from '../../../../../
|
|
6
|
+
import { FieldManyToManyEditorDescriptor } from '../../../../../descriptors';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
|
|
9
9
|
private injector;
|
|
10
10
|
descriptor: FieldManyToManyEditorDescriptor<T, ET>;
|
|
11
11
|
itemsSubject: Subject<Array<T>>;
|
|
@@ -31,6 +31,6 @@ export declare class FormlyFieldTableDialogMultiselectComponent<T, ET> extends F
|
|
|
31
31
|
hideDialog(): void;
|
|
32
32
|
addItems(): void;
|
|
33
33
|
removeItem(item: any): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, "mng-formly-table-multiselect-add-field", never, {}, {}, never, never>;
|
|
36
36
|
}
|
package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldType } from '@ngx-formly/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
3
|
+
export declare class MngFormlyFieldTabsComponent extends FieldType {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTabsComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTabsComponent, "mng-formly-field-tabs", never, {}, {}, never, never>;
|
|
6
6
|
}
|
package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FieldWrapper } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class MngFormlyFieldWrapperComponent extends FieldWrapper implements OnInit {
|
|
5
5
|
ngOnInit(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldWrapperComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldWrapperComponent, "mng-formly-field-wrapper", never, {}, {}, never, never>;
|
|
8
8
|
}
|
package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FieldWrapper } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class MngFormlyTableWrapperComponent extends FieldWrapper implements OnInit {
|
|
5
5
|
ngOnInit(): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyTableWrapperComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyTableWrapperComponent, "mng-formly-table-wrapper", never, {}, {}, never, never>;
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from './editor/form-editor.component';
|
|
2
|
-
export * from './autocomplete/
|
|
3
|
-
export * from './dropdown/
|
|
2
|
+
export * from './autocomplete/autocomplete.component';
|
|
3
|
+
export * from './dropdown/dropdown.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './form-editor.event';
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, QueryList, Type } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
3
|
import { MngCommonsService } from '../../services';
|
|
3
|
-
import {
|
|
4
|
+
import { MngMainLayoutComponentService } from './services';
|
|
5
|
+
import { MngTemplateDirective } from '../../directives';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class MngMainLayoutComponent implements AfterViewInit {
|
|
8
|
+
private route;
|
|
6
9
|
mngCommons: MngCommonsService;
|
|
7
|
-
mainLayoutService:
|
|
8
|
-
|
|
10
|
+
mainLayoutService: MngMainLayoutComponentService;
|
|
11
|
+
templates: QueryList<MngTemplateDirective>;
|
|
12
|
+
topbarComponent: Type<any>;
|
|
13
|
+
menuComponent: Type<any>;
|
|
14
|
+
footerComponent: Type<any>;
|
|
15
|
+
constructor(route: ActivatedRoute, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
16
|
+
ngOnInit(): void;
|
|
9
17
|
ngAfterViewInit(): void;
|
|
10
18
|
onWindowResize(event: UIEvent): void;
|
|
11
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponent, never>;
|
|
@@ -2,13 +2,13 @@ import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { MngCommonsService } from '../../services';
|
|
5
|
-
import {
|
|
5
|
+
import { MngMainLayoutComponentService } from './services';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
8
8
|
router: Router;
|
|
9
9
|
private cd;
|
|
10
10
|
mngCommons: MngCommonsService;
|
|
11
|
-
mainLayoutService:
|
|
11
|
+
mainLayoutService: MngMainLayoutComponentService;
|
|
12
12
|
item: any;
|
|
13
13
|
index: number;
|
|
14
14
|
root: boolean;
|
|
@@ -18,7 +18,7 @@ export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
menuSourceSubscription: Subscription;
|
|
19
19
|
menuResetSubscription: Subscription;
|
|
20
20
|
key: string;
|
|
21
|
-
constructor(router: Router, cd: ChangeDetectorRef, mngCommons: MngCommonsService, mainLayoutService:
|
|
21
|
+
constructor(router: Router, cd: ChangeDetectorRef, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
updateActiveStateFromRoute(): void;
|
|
24
24
|
itemClick(event: Event): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MngCommonsService } from '../../services';
|
|
2
|
-
import {
|
|
2
|
+
import { MngMainLayoutComponentService } from './services';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MngMenuComponent {
|
|
5
5
|
mngCommons: MngCommonsService;
|
|
6
|
-
mainLayoutService:
|
|
7
|
-
constructor(mngCommons: MngCommonsService, mainLayoutService:
|
|
6
|
+
mainLayoutService: MngMainLayoutComponentService;
|
|
7
|
+
constructor(mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngMenuComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngMenuComponent, "mng-menu", never, {}, {}, never, never>;
|
|
10
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './main-layout.component.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MngCommonsService } from '../../../services';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class MngMainLayoutComponentService {
|
|
5
5
|
private mngCommons;
|
|
6
6
|
private _overlayMenuActive;
|
|
7
7
|
private _overlayMenuActiveSubject;
|
|
@@ -60,6 +60,6 @@ export declare class MainLayoutComponentService {
|
|
|
60
60
|
isMobile(): boolean;
|
|
61
61
|
private isWidthDesktop;
|
|
62
62
|
private isWidthMobile;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
64
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngMainLayoutComponentService, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MngMainLayoutComponentService>;
|
|
65
65
|
}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
1
|
+
import { OnInit, QueryList, Type } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { MngMainLayoutComponentService } from './services';
|
|
3
4
|
import { MngCommonsService } from '../../services';
|
|
4
|
-
import {
|
|
5
|
+
import { MngTemplateDirective } from '../../directives';
|
|
6
|
+
import { IUser } from '../../models';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class MngTopbarComponent implements OnInit {
|
|
9
|
+
private route;
|
|
7
10
|
mngCommons: MngCommonsService;
|
|
8
|
-
mainLayoutService:
|
|
11
|
+
mainLayoutService: MngMainLayoutComponentService;
|
|
12
|
+
templates: QueryList<MngTemplateDirective>;
|
|
13
|
+
breadcrumbComponent: Type<any>;
|
|
14
|
+
menuComponent: Type<any>;
|
|
9
15
|
languages: Array<string>;
|
|
10
16
|
selectedLanguage: string;
|
|
11
17
|
user?: IUser;
|
|
12
|
-
constructor(mngCommons: MngCommonsService, mainLayoutService:
|
|
13
|
-
switchLanguage(language: string): void;
|
|
18
|
+
constructor(route: ActivatedRoute, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
14
19
|
ngOnInit(): void;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
switchLanguage(language: string): void;
|
|
15
22
|
logout(user: IUser, event: Event): void;
|
|
16
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTopbarComponent, never>;
|
|
17
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngTopbarComponent, "mng-topbar", never, {}, {}, never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './table.event';
|
package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LazyLoadEvent } from 'primeng/api';
|
|
2
|
-
import { MediusQueryParam } from '
|
|
3
|
-
import { ColumnDescriptor } from '
|
|
2
|
+
import { MediusQueryParam } from '../../../api/models';
|
|
3
|
+
import { ColumnDescriptor } from '../../../descriptors';
|
|
4
4
|
export declare class MngTableLoadEvent {
|
|
5
5
|
queryParam?: MediusQueryParam;
|
|
6
6
|
originalEvent?: LazyLoadEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TableviewDescriptor, ActionDescriptor } from '../../../
|
|
2
|
-
import { ITableviewDataProvider } from '../../../
|
|
1
|
+
import { TableviewDescriptor, ActionDescriptor } from '../../../descriptors';
|
|
2
|
+
import { ITableviewDataProvider } from '../../../data-providers';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare abstract class AMngTableviewRouteComponent<T, S> {
|
|
5
5
|
descriptor: TableviewDescriptor<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tableview.component.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITableviewDataProvider } from '../../models/providers';
|
|
2
|
-
import { ActionDescriptor } from '../../models/descriptors';
|
|
3
1
|
import { MessageService } from 'primeng/api';
|
|
2
|
+
import { ITableviewDataProvider } from '../../../data-providers';
|
|
3
|
+
import { ActionDescriptor } from '../../../descriptors';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TableviewComponentService<T, S> {
|
|
6
6
|
dataProvider?: ITableviewDataProvider<T, S>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FilterDescriptor, FilterLookupDescriptor, TableDescriptor } from '../../../../
|
|
2
|
+
import { FilterDescriptor, FilterLookupDescriptor, TableDescriptor } from '../../../../descriptors';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Cannot be on push change detection strategy because of filter updates triggered from route which causes to force update values in force metadata
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnDescriptor } from '../../../../
|
|
1
|
+
import { ColumnDescriptor } from '../../../../descriptors';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MngTableColumnValueComponent<T, TT> {
|
|
4
4
|
readonly columnTypeString: ColumnDescriptor.TypeEnum;
|