@mediusinc/mng-commons 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/i18n/en.json +5 -1
- package/assets/i18n/sl.json +6 -2
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +1 -1
- package/esm2020/lib/api/models/filter-match-type.model.mjs +1 -1
- package/esm2020/lib/api/models/filter-param.model.mjs +16 -27
- package/esm2020/lib/api/models/mappers.mjs +7 -7
- package/esm2020/lib/api/models/query-mode.model.mjs +1 -1
- package/esm2020/lib/api/models/query-param.model.mjs +38 -37
- package/esm2020/lib/api/models/query-result.model.mjs +14 -13
- package/esm2020/lib/api/services/crud-api.abstract.service.mjs +28 -21
- package/esm2020/lib/api/utils/medius-rest.util.mjs +11 -7
- package/esm2020/lib/api/utils/object-serializer.util.mjs +23 -21
- package/esm2020/lib/components/action/action.component.mjs +10 -7
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +16 -13
- 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 +8 -6
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +16 -14
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +16 -15
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +21 -24
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +4 -4
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +13 -13
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +12 -11
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +4 -4
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +1 -3
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +1 -3
- package/esm2020/lib/components/form/models/form-editor.event.mjs +1 -1
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +3 -3
- package/esm2020/lib/components/layout/footer.component.mjs +3 -3
- package/esm2020/lib/components/layout/main-layout.component.mjs +4 -4
- package/esm2020/lib/components/layout/menu-item.component.mjs +36 -34
- package/esm2020/lib/components/layout/menu.component.mjs +3 -3
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +4 -1
- package/esm2020/lib/components/layout/topbar.component.mjs +5 -4
- package/esm2020/lib/components/tableview/index.mjs +1 -1
- package/esm2020/lib/components/tableview/models/table.event.mjs +1 -1
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +2 -2
- package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +1 -1
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +9 -4
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +4 -3
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +1 -1
- package/esm2020/lib/components/tableview/table/table.component.mjs +27 -26
- package/esm2020/lib/components/tableview/tableview.component.mjs +11 -3
- package/esm2020/lib/config/formly.config.mjs +30 -22
- package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
- package/esm2020/lib/data-providers/base.data-provider.mjs +1 -1
- package/esm2020/lib/data-providers/editor.data-provider.mjs +2 -2
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +1 -1
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +2 -2
- package/esm2020/lib/descriptors/action.descriptor.mjs +3 -5
- package/esm2020/lib/descriptors/editor.descriptor.mjs +21 -9
- package/esm2020/lib/descriptors/field.validator.mjs +1 -1
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/model.descriptor.mjs +3 -3
- package/esm2020/lib/descriptors/table.descriptor.mjs +2 -2
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +2 -2
- package/esm2020/lib/directives/component.directive.mjs +2 -2
- package/esm2020/lib/directives/template.directive.mjs +2 -3
- package/esm2020/lib/mng-commons.module.mjs +27 -37
- package/esm2020/lib/models/user.model.mjs +1 -1
- package/esm2020/lib/pipes/boolean.pipe.mjs +1 -1
- package/esm2020/lib/pipes/property-path.pipe.mjs +1 -1
- package/esm2020/lib/router/models/router.model.mjs +1 -1
- package/esm2020/lib/router/route-builder.mjs +41 -36
- package/esm2020/lib/services/action.service.mjs +19 -15
- package/esm2020/lib/services/commons.service.mjs +15 -23
- package/esm2020/lib/services/configuration.service.mjs +3 -4
- package/esm2020/lib/services/navigation.service.mjs +2 -2
- package/esm2020/lib/services/providers/config-service.provider.mjs +2 -2
- package/esm2020/lib/services/providers/formly-config.provider.mjs +1 -1
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +1 -1
- package/esm2020/lib/types/type.decorator.mjs +1 -1
- package/esm2020/lib/types/type.model.mjs +1 -1
- package/esm2020/lib/utils/editor-formly.util.mjs +7 -21
- package/esm2020/lib/utils/i18n.util.mjs +2 -2
- package/esm2020/lib/utils/model.util.mjs +1 -1
- package/esm2020/lib/utils/route.util.mjs +1 -1
- package/esm2020/lib/utils/toast.util.mjs +3 -2
- package/esm2020/lib/utils/type.util.mjs +2 -1
- package/fesm2015/mediusinc-mng-commons.mjs +3078 -3049
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +2999 -2966
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/filter-param.model.d.ts +1 -1
- package/lib/api/services/crud-api.abstract.service.d.ts +6 -6
- package/lib/api/utils/medius-rest.util.d.ts +1 -1
- package/lib/api/utils/object-serializer.util.d.ts +5 -5
- package/lib/components/action/action.component.d.ts +3 -3
- package/lib/components/action/dialog/action-dialog.component.d.ts +9 -8
- package/lib/components/action/models/action-execution.model.d.ts +1 -1
- package/lib/components/action/route/action-route.component.d.ts +2 -2
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +4 -3
- package/lib/components/form/dropdown/dropdown.component.d.ts +4 -3
- package/lib/components/form/editor/form-editor.component.d.ts +7 -6
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +1 -1
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +1 -3
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +1 -3
- package/lib/components/layout/main-layout.component.d.ts +3 -3
- package/lib/components/layout/menu-item.component.d.ts +7 -7
- package/lib/components/layout/services/main-layout.component.service.d.ts +1 -1
- package/lib/components/layout/topbar.component.d.ts +4 -4
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -1
- package/lib/components/tableview/route/tableview-route.component.d.ts +1 -1
- package/lib/components/tableview/services/tableview.component.service.d.ts +3 -2
- package/lib/components/tableview/table/table.component.d.ts +21 -19
- package/lib/components/tableview/tableview.component.d.ts +6 -4
- package/lib/config/formly.config.d.ts +2 -1
- package/lib/descriptors/action.descriptor.d.ts +2 -2
- package/lib/descriptors/editor.descriptor.d.ts +9 -7
- package/lib/descriptors/lookup.descriptor.d.ts +1 -1
- package/lib/descriptors/table.descriptor.d.ts +4 -4
- package/lib/descriptors/tableview.descriptor.d.ts +1 -1
- package/lib/mng-commons.module.d.ts +23 -22
- package/lib/router/models/router.model.d.ts +1 -1
- package/lib/router/route-builder.d.ts +4 -4
- package/lib/services/action.service.d.ts +3 -3
- package/lib/services/commons.service.d.ts +6 -6
- package/lib/services/navigation.service.d.ts +1 -1
- package/lib/services/providers/formly-config.provider.d.ts +1 -1
- package/lib/utils/editor-formly.util.d.ts +1 -1
- package/lib/utils/model.util.d.ts +1 -1
- package/lib/utils/toast.util.d.ts +1 -1
- package/package.json +1 -1
- package/scss/common/layout/_breadcrumb.scss +6 -6
- package/scss/common/layout/_config.scss +7 -8
- package/scss/common/layout/_exception.scss +12 -11
- package/scss/common/layout/_footer.scss +3 -3
- package/scss/common/layout/_help.scss +8 -9
- package/scss/common/layout/_inlinemenu.scss +3 -3
- package/scss/common/layout/_invoice.scss +16 -16
- package/scss/common/layout/_landing.scss +57 -60
- package/scss/common/layout/_loader.scss +0 -1
- package/scss/common/layout/_login.scss +3 -4
- package/scss/common/layout/_main.scss +3 -3
- package/scss/common/layout/_mixins.scss +28 -20
- package/scss/common/layout/_rightmenu.scss +5 -5
- package/scss/common/layout/_topbar.scss +7 -5
- package/scss/common/layout/_typography.scss +11 -6
- package/scss/common/layout/_utils.scss +1 -1
- package/scss/common/layout/_widgets.scss +20 -19
- package/scss/common/layout/menu/_menu_common.scss +6 -6
- package/scss/common/layout/menu/_menu_overlay.scss +1 -1
- package/scss/common/layout/menu/_menu_sidebar.scss +6 -5
- package/scss/common/layout/menu/_menu_slim.scss +2 -3
- package/scss/common/layout/menu/_menu_static.scss +1 -1
- package/scss/common/layout/menu/_menu_theme.scss +2 -3
- package/scss/common/theme/designer/_colors.scss +11 -12
- package/scss/common/theme/designer/_common.scss +4 -3
- package/scss/common/theme/designer/_mixins.scss +56 -56
- package/scss/common/theme/designer/components/button/_button.scss +32 -20
- package/scss/common/theme/designer/components/button/_speeddial.scss +1 -1
- package/scss/common/theme/designer/components/button/_splitbutton.scss +2 -1
- package/scss/common/theme/designer/components/data/_carousel.scss +1 -1
- package/scss/common/theme/designer/components/data/_datatable.scss +5 -5
- package/scss/common/theme/designer/components/data/_filter.scss +2 -3
- package/scss/common/theme/designer/components/data/_fullcalendar.scss +10 -10
- package/scss/common/theme/designer/components/data/_orderlist.scss +2 -2
- package/scss/common/theme/designer/components/data/_paginator.scss +1 -1
- package/scss/common/theme/designer/components/data/_picklist.scss +1 -1
- package/scss/common/theme/designer/components/data/_timeline.scss +3 -6
- package/scss/common/theme/designer/components/data/_tree.scss +2 -2
- package/scss/common/theme/designer/components/data/_treetable.scss +2 -3
- package/scss/common/theme/designer/components/input/_autocomplete.scss +8 -8
- package/scss/common/theme/designer/components/input/_calendar.scss +6 -6
- package/scss/common/theme/designer/components/input/_cascadeselect.scss +1 -1
- package/scss/common/theme/designer/components/input/_checkbox.scss +4 -4
- package/scss/common/theme/designer/components/input/_chips.scss +4 -4
- package/scss/common/theme/designer/components/input/_colorpicker.scss +2 -2
- package/scss/common/theme/designer/components/input/_dropdown.scss +2 -2
- package/scss/common/theme/designer/components/input/_editor.scss +7 -7
- package/scss/common/theme/designer/components/input/_inputgroup.scss +1 -1
- package/scss/common/theme/designer/components/input/_inputmask.scss +1 -1
- package/scss/common/theme/designer/components/input/_inputnumber.scss +1 -1
- package/scss/common/theme/designer/components/input/_inputswitch.scss +2 -2
- package/scss/common/theme/designer/components/input/_inputtext.scss +3 -3
- package/scss/common/theme/designer/components/input/_listbox.scss +1 -1
- package/scss/common/theme/designer/components/input/_multiselect.scss +5 -6
- package/scss/common/theme/designer/components/input/_radiobutton.scss +2 -2
- package/scss/common/theme/designer/components/input/_rating.scss +1 -1
- package/scss/common/theme/designer/components/input/_selectbutton.scss +1 -1
- package/scss/common/theme/designer/components/input/_togglebutton.scss +1 -1
- package/scss/common/theme/designer/components/input/_treeselect.scss +2 -2
- package/scss/common/theme/designer/components/menu/_contextmenu.scss +3 -2
- package/scss/common/theme/designer/components/menu/_dock.scss +4 -4
- package/scss/common/theme/designer/components/menu/_megamenu.scss +10 -9
- package/scss/common/theme/designer/components/menu/_menu.scss +2 -2
- package/scss/common/theme/designer/components/menu/_menubar.scss +12 -11
- package/scss/common/theme/designer/components/menu/_panelmenu.scss +1 -2
- package/scss/common/theme/designer/components/menu/_slidemenu.scss +3 -2
- package/scss/common/theme/designer/components/menu/_steps.scss +1 -2
- package/scss/common/theme/designer/components/menu/_tieredmenu.scss +3 -2
- package/scss/common/theme/designer/components/messages/_message.scss +1 -1
- package/scss/common/theme/designer/components/messages/_toast.scss +1 -2
- package/scss/common/theme/designer/components/misc/_avatar.scss +1 -1
- package/scss/common/theme/designer/components/misc/_badge.scss +1 -1
- package/scss/common/theme/designer/components/misc/_blockui.scss +1 -1
- package/scss/common/theme/designer/components/misc/_chip.scss +2 -2
- package/scss/common/theme/designer/components/misc/_inplace.scss +0 -1
- package/scss/common/theme/designer/components/misc/_scrolltop.scss +1 -1
- package/scss/common/theme/designer/components/misc/_skeleton.scss +1 -1
- package/scss/common/theme/designer/components/misc/_tag.scss +1 -1
- package/scss/common/theme/designer/components/misc/_terminal.scss +8 -8
- package/scss/common/theme/designer/components/multimedia/_galleria.scss +1 -1
- package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +2 -4
- package/scss/common/theme/designer/components/overlay/_dialog.scss +3 -3
- package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +2 -4
- package/scss/common/theme/designer/components/panel/_accordion.scss +2 -2
- package/scss/common/theme/designer/components/panel/_divider.scss +1 -1
- package/scss/common/theme/designer/components/panel/_scrollpanel.scss +1 -1
- package/scss/common/theme/designer/components/panel/_splitter.scss +1 -1
- package/scss/common/theme/extensions/_button.scss +18 -6
- package/scss/common/theme/extensions/_orderlist.scss +0 -1
- package/scss/common/theme/extensions/_picklist.scss +0 -1
- package/scss/common/theme/extensions/_tree.scss +0 -1
- package/scss/common/variables/layout/_common.scss +9 -9
- package/scss/common/variables/layout/_layout_dark.scss +12 -12
- package/scss/common/variables/layout/_layout_light.scss +13 -13
- package/scss/common/variables/theme/_theme_dark.scss +76 -76
- package/scss/common/variables/theme/_theme_light.scss +80 -80
- package/scss/layout/default/_mng-variables-layout-dark.scss +1 -1
- package/scss/mng-commons-dark.scss +2 -2
- package/scss/mng-commons-light.scss +2 -2
- package/scss/mng-overrides/_layout_dialog.scss +4 -3
- package/scss/mng-overrides/_layout_forms.scss +1 -1
- package/scss/mng-overrides/_layout_radio.scss +1 -1
- package/scss/mng-overrides/_theme_datepicker.scss +7 -0
- package/scss/mng-overrides/_theme_dialog.scss +0 -1
- package/scss/mng-overrides/_theme_dropdown.scss +0 -1
- package/scss/mng-overrides/_theme_styles.scss +1 -0
- package/scss/mng-overrides/_theme_tableview.scss +6 -6
- package/scss/theme/default/_mng-variables-theme-dark.scss +2 -1
- package/scss/theme/default/_mng-variables-theme-light.scss +2 -1
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AttributeDef } from './serialization.model';
|
|
13
12
|
import { MediusFilterMatchType } from './filter-match-type.model';
|
|
13
|
+
import { AttributeDef } from './serialization.model';
|
|
14
14
|
export declare class MediusFilterParam {
|
|
15
15
|
'property'?: string;
|
|
16
16
|
'filterMatchCaseSensitive'?: boolean;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam, MediusQueryResult } from '../models';
|
|
4
3
|
import { ClassType } from '../../types';
|
|
4
|
+
import { MediusQueryParam, MediusQueryResult } from '../models';
|
|
5
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;
|
|
9
9
|
private readonly objectSerializer;
|
|
10
10
|
protected constructor(type: ClassType<T>, queryResultType: ClassType<QRT>, http: HttpClient);
|
|
11
|
+
createPost(item: T): Observable<T>;
|
|
12
|
+
getAllPost(queryParam?: MediusQueryParam): Observable<QRT>;
|
|
13
|
+
getByIdGet(id: any): Observable<T>;
|
|
14
|
+
updatePut(id: any, item: T): Observable<T>;
|
|
15
|
+
removeDelete(id: any, item: T): Observable<any>;
|
|
11
16
|
protected abstract getBasePath(): string;
|
|
12
17
|
protected abstract getServiceBasePath(): string;
|
|
13
18
|
protected getGetAllPostPath(): string;
|
|
@@ -15,9 +20,4 @@ export declare abstract class AMngCrudApiService<T, QRT extends MediusQueryResul
|
|
|
15
20
|
protected getUpdatePutPath(id: any, item: T): string;
|
|
16
21
|
protected getGetByIdGetPath(id: any): string;
|
|
17
22
|
protected getRemoveDeletePath(id: any, item: T): string;
|
|
18
|
-
createPost(item: T): Observable<T>;
|
|
19
|
-
getAllPost(queryParam?: MediusQueryParam): Observable<QRT>;
|
|
20
|
-
getByIdGet(id: any): Observable<T>;
|
|
21
|
-
updatePut(id: any, item: T): Observable<T>;
|
|
22
|
-
removeDelete(id: any, item: T): Observable<any>;
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Params } from '@angular/router';
|
|
2
2
|
import { FilterMetadata, LazyLoadEvent } from 'primeng/api';
|
|
3
|
-
import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
|
|
4
3
|
import { FilterDescriptor } from '../../descriptors';
|
|
4
|
+
import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
|
|
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;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AttributeDef, SerializableTypeMap } from '../models';
|
|
2
1
|
import { ClassType } from '../../types';
|
|
2
|
+
import { AttributeDef, SerializableTypeMap } from '../models';
|
|
3
3
|
export declare class ObjectSerializer {
|
|
4
|
+
private static _instance;
|
|
4
5
|
private readonly _primitives;
|
|
5
6
|
private readonly _typeMap;
|
|
6
7
|
private readonly _enumMap;
|
|
7
|
-
|
|
8
|
+
get primitives(): string[];
|
|
9
|
+
get typeMap(): SerializableTypeMap;
|
|
10
|
+
get enumMap(): SerializableTypeMap;
|
|
8
11
|
/**
|
|
9
12
|
* Only use one instance of object (out of Angular context)
|
|
10
13
|
*/
|
|
11
14
|
static get(): ObjectSerializer;
|
|
12
|
-
get primitives(): string[];
|
|
13
|
-
get typeMap(): SerializableTypeMap;
|
|
14
|
-
get enumMap(): SerializableTypeMap;
|
|
15
15
|
findAttributeDefinitionByClassType(type: ClassType<any>, attributeName: string): AttributeDef | null;
|
|
16
16
|
findAttributeDefinition(typeName: string, attributeName: string): AttributeDef | null;
|
|
17
17
|
findAttributesDefinitionByClassType(type: ClassType<any>): Array<AttributeDef> | null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
4
|
import { ConfirmationService } from 'primeng/api';
|
|
6
|
-
import {
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
7
6
|
import { ActionDescriptor } from '../../descriptors';
|
|
8
|
-
import { IActionConfirmationService, ActionData } from './models';
|
|
9
7
|
import { MngActionService } from '../../services';
|
|
8
|
+
import { IdType } from '../../types';
|
|
10
9
|
import { TableviewComponentService } from '../tableview/services';
|
|
10
|
+
import { ActionData, IActionConfirmationService } from './models';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class MngActionComponent<T, S> implements OnInit, IActionConfirmationService {
|
|
13
13
|
private route;
|
|
@@ -2,13 +2,13 @@ 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 {
|
|
5
|
+
import { IEditorDataProvider } from '../../../data-providers';
|
|
6
6
|
import { ActionEditorDescriptor } from '../../../descriptors';
|
|
7
|
+
import { MngTemplateDirective } from '../../../directives';
|
|
8
|
+
import { MngActionService, MngCommonsService } from '../../../services';
|
|
7
9
|
import { IdType } from '../../../types';
|
|
8
|
-
import { IEditorDataProvider } from '../../../data-providers';
|
|
9
10
|
import { MngFormEditorSubmitEvent } from '../../form/models';
|
|
10
|
-
import {
|
|
11
|
-
import { MngTemplateDirective } from '../../../directives';
|
|
11
|
+
import { ActionData, ActionRunResult } from '../models';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class MngActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
14
14
|
private injector;
|
|
@@ -16,24 +16,25 @@ export declare class MngActionDialogComponent<T, S> implements OnInit, OnDestroy
|
|
|
16
16
|
dialogRef: DynamicDialogRef;
|
|
17
17
|
dialogConfig: DynamicDialogConfig;
|
|
18
18
|
private actionService;
|
|
19
|
+
private mngCommonsService;
|
|
19
20
|
action: ActionEditorDescriptor<T>;
|
|
20
21
|
itemId?: IdType;
|
|
21
22
|
item?: T;
|
|
22
23
|
actionData?: ActionData;
|
|
23
24
|
dataProvider?: IEditorDataProvider<T, S>;
|
|
24
25
|
templates: QueryList<MngTemplateDirective>;
|
|
26
|
+
cmpId: string;
|
|
27
|
+
isSaveButton: boolean;
|
|
25
28
|
private submitButtonElementRef;
|
|
26
29
|
private editorComponent;
|
|
27
|
-
cmpId: string;
|
|
28
30
|
private loadingSubject;
|
|
29
|
-
private submitLoadingSubject;
|
|
30
31
|
loading$: Observable<boolean>;
|
|
32
|
+
private submitLoadingSubject;
|
|
31
33
|
submitLoading$: Observable<boolean>;
|
|
32
|
-
isSaveButton: boolean;
|
|
33
34
|
private tableviewService?;
|
|
34
35
|
private sourceComponent;
|
|
35
36
|
private subscriptions;
|
|
36
|
-
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService);
|
|
37
|
+
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService, mngCommonsService: MngCommonsService);
|
|
37
38
|
ngOnInit(): void;
|
|
38
39
|
ngOnDestroy(): void;
|
|
39
40
|
onSubmit(event: MngFormEditorSubmitEvent<T>): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { IdType } from '../../../types';
|
|
4
3
|
import { IDataProvider } from '../../../data-providers';
|
|
4
|
+
import { IdType } from '../../../types';
|
|
5
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;
|
|
@@ -2,9 +2,9 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { ConfirmationService } from 'primeng/api';
|
|
4
4
|
import { ActionDescriptor } from '../../../descriptors';
|
|
5
|
-
import { IActionConfirmationService } from '../models';
|
|
6
5
|
import { MngActionService, MngNavigationService } from '../../../services';
|
|
7
6
|
import { TableviewComponentService } from '../../tableview/services';
|
|
7
|
+
import { IActionConfirmationService } from '../models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy, IActionConfirmationService {
|
|
10
10
|
private router;
|
|
@@ -13,12 +13,12 @@ export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy,
|
|
|
13
13
|
private navigationService;
|
|
14
14
|
private actionService;
|
|
15
15
|
private tableviewService;
|
|
16
|
+
cmpId: string;
|
|
16
17
|
private actions;
|
|
17
18
|
private activeAction?;
|
|
18
19
|
private dialogRef?;
|
|
19
20
|
private dialogCloseSubscription?;
|
|
20
21
|
private subscriptions;
|
|
21
|
-
cmpId: string;
|
|
22
22
|
constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService: MngNavigationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
ngOnDestroy(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { AutoComplete } from 'primeng/autocomplete';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { ILookupDataProvider } from '../../../data-providers';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -13,8 +14,8 @@ export declare class MngAutocompleteComponent implements OnInit, ControlValueAcc
|
|
|
13
14
|
placeholder?: string;
|
|
14
15
|
className: string | null;
|
|
15
16
|
dropdownClassName: string | null;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
valueChangeEventEmitter: EventEmitter<any>;
|
|
18
|
+
primeAutocomplete?: AutoComplete;
|
|
18
19
|
private suggestionsSubject;
|
|
19
20
|
private searchSubscription;
|
|
20
21
|
private dataProviderService;
|
|
@@ -32,5 +33,5 @@ export declare class MngAutocompleteComponent implements OnInit, ControlValueAcc
|
|
|
32
33
|
setDisabledState(isDisabled: boolean): void;
|
|
33
34
|
writeValue(obj: any): void;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never>;
|
|
36
37
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Dropdown } from 'primeng/dropdown';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { ILookupDataProvider } from '../../../data-providers';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -15,8 +16,8 @@ export declare class MngDropdownComponent implements OnInit, ControlValueAccesso
|
|
|
15
16
|
showClear: boolean;
|
|
16
17
|
className: string | null;
|
|
17
18
|
dropdownClassName: string | null;
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
valueChangeEventEmitter: EventEmitter<any>;
|
|
20
|
+
primeDropdown?: Dropdown;
|
|
20
21
|
private itemsSubject;
|
|
21
22
|
private dataProviderService;
|
|
22
23
|
private onChangeFn;
|
|
@@ -30,5 +31,5 @@ export declare class MngDropdownComponent implements OnInit, ControlValueAccesso
|
|
|
30
31
|
setDisabledState(isDisabled: boolean): void;
|
|
31
32
|
writeValue(obj: any): void;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never>;
|
|
34
35
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
5
|
import { Message } from 'primeng/api';
|
|
5
6
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
7
7
|
import { EditorDescriptor } from '../../../descriptors';
|
|
8
8
|
import { MngTemplateDirective } from '../../../directives';
|
|
9
|
+
import { MngFormEditorSubmitEvent } from '../models';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class MngFormEditorComponent<T> implements OnInit,
|
|
11
|
+
export declare class MngFormEditorComponent<T> implements OnInit, OnDestroy {
|
|
11
12
|
private translateService;
|
|
12
13
|
descriptor: EditorDescriptor<T>;
|
|
13
14
|
submitLoading: Observable<boolean> | boolean;
|
|
14
15
|
item?: T;
|
|
15
16
|
isSubmitButtonVisible: boolean;
|
|
16
17
|
isFormDisabled: null;
|
|
17
|
-
|
|
18
|
+
formSubmitEventEmitter: EventEmitter<MngFormEditorSubmitEvent<T>>;
|
|
18
19
|
templates: QueryList<MngTemplateDirective>;
|
|
19
20
|
submitButtonElementRef?: ElementRef;
|
|
20
21
|
form: FormGroup;
|
|
@@ -27,13 +28,13 @@ export declare class MngFormEditorComponent<T> implements OnInit, AfterContentIn
|
|
|
27
28
|
private subscriptions;
|
|
28
29
|
constructor(translateService: TranslateService);
|
|
29
30
|
ngOnInit(): void;
|
|
30
|
-
ngAfterContentInit(): void;
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
submit(): void;
|
|
33
33
|
onSubmit(event: Event): void;
|
|
34
|
+
getFormValue(): T;
|
|
34
35
|
private isAnyFieldInvalid;
|
|
35
36
|
private updateFormModel;
|
|
36
37
|
private updateFormState;
|
|
37
38
|
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"; }, { "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never>;
|
|
39
40
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { FieldType } from '@ngx-formly/core';
|
|
3
4
|
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType {
|
|
6
|
+
export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType implements OnInit {
|
|
6
7
|
aFormControl: FormControl;
|
|
7
8
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
9
|
ngOnInit(): void;
|
package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { FieldType } from '@ngx-formly/core';
|
|
3
4
|
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MngFormlyFieldDropdownComponent<T> extends FieldType {
|
|
6
|
+
export declare class MngFormlyFieldDropdownComponent<T> extends FieldType implements OnInit {
|
|
6
7
|
dFormControl: FormControl;
|
|
7
8
|
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
9
|
ngOnInit(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
+
import { ActionDescriptor, FieldManyEditorDescriptor } from '../../../../../descriptors';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class MngFormlyFieldTableDialogFormComponent<T, ET> extends FieldType implements OnInit, OnDestroy {
|
|
7
7
|
descriptor: FieldManyEditorDescriptor<T, ET>;
|
package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { FieldWrapper } from '@ngx-formly/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MngFormlyFieldWrapperComponent extends FieldWrapper
|
|
5
|
-
ngOnInit(): void;
|
|
3
|
+
export declare class MngFormlyFieldWrapperComponent extends FieldWrapper {
|
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldWrapperComponent, never>;
|
|
7
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldWrapperComponent, "mng-formly-field-wrapper", never, {}, {}, never, never>;
|
|
8
6
|
}
|
package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { FieldWrapper } from '@ngx-formly/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MngFormlyTableWrapperComponent extends FieldWrapper
|
|
5
|
-
ngOnInit(): void;
|
|
3
|
+
export declare class MngFormlyTableWrapperComponent extends FieldWrapper {
|
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyTableWrapperComponent, never>;
|
|
7
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyTableWrapperComponent, "mng-formly-table-wrapper", never, {}, {}, never, never>;
|
|
8
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AfterViewInit, QueryList, Type } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnInit, QueryList, Type } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { MngTemplateDirective } from '../../directives';
|
|
3
4
|
import { MngCommonsService } from '../../services';
|
|
4
5
|
import { MngMainLayoutComponentService } from './services';
|
|
5
|
-
import { MngTemplateDirective } from '../../directives';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class MngMainLayoutComponent implements AfterViewInit {
|
|
7
|
+
export declare class MngMainLayoutComponent implements OnInit, AfterViewInit {
|
|
8
8
|
private route;
|
|
9
9
|
mngCommons: MngCommonsService;
|
|
10
10
|
mainLayoutService: MngMainLayoutComponentService;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
3
|
import { MngCommonsService } from '../../services';
|
|
5
4
|
import { MngMainLayoutComponentService } from './services';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class MngMenuItemComponent implements OnInit, OnDestroy {
|
|
8
7
|
router: Router;
|
|
9
|
-
private cd;
|
|
10
8
|
mngCommons: MngCommonsService;
|
|
11
9
|
mainLayoutService: MngMainLayoutComponentService;
|
|
12
10
|
item: any;
|
|
13
11
|
index: number;
|
|
14
12
|
root: boolean;
|
|
15
13
|
parentKey: string | null;
|
|
14
|
+
key: string;
|
|
16
15
|
active: boolean;
|
|
17
16
|
hover: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
private itemUrl?;
|
|
18
|
+
private menuSourceSubscription?;
|
|
19
|
+
private menuResetSubscription?;
|
|
20
|
+
private routerEventsSubscription?;
|
|
21
|
+
constructor(router: Router, mngCommons: MngCommonsService, mainLayoutService: MngMainLayoutComponentService);
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
updateActiveStateFromRoute(): void;
|
|
24
24
|
itemClick(event: Event): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OnInit, QueryList, Type } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnInit, QueryList, Type } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { MngMainLayoutComponentService } from './services';
|
|
4
|
-
import { MngCommonsService } from '../../services';
|
|
5
3
|
import { MngTemplateDirective } from '../../directives';
|
|
6
4
|
import { IUser } from '../../models';
|
|
5
|
+
import { MngCommonsService } from '../../services';
|
|
6
|
+
import { MngMainLayoutComponentService } from './services';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class MngTopbarComponent implements OnInit {
|
|
8
|
+
export declare class MngTopbarComponent implements OnInit, AfterViewInit {
|
|
9
9
|
private route;
|
|
10
10
|
mngCommons: MngCommonsService;
|
|
11
11
|
mainLayoutService: MngMainLayoutComponentService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { TableviewDescriptor, ActionDescriptor } from '../../../descriptors';
|
|
3
2
|
import { ITableviewDataProvider } from '../../../data-providers';
|
|
3
|
+
import { ActionDescriptor, TableviewDescriptor } from '../../../descriptors';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare abstract class AMngTableviewRouteComponent<T, S> implements OnInit {
|
|
6
6
|
descriptor: TableviewDescriptor<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { AMngTableviewRouteComponent } from './tableview-route.abstract.component';
|
|
4
3
|
import { ITableviewDataProvider } from '../../../data-providers';
|
|
5
4
|
import { ActionDescriptor, TableviewDescriptor } from '../../../descriptors';
|
|
5
|
+
import { AMngTableviewRouteComponent } from './tableview-route.abstract.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class MngTableviewRouteComponent<T, S> extends AMngTableviewRouteComponent<T, S> implements OnInit {
|
|
8
8
|
private route;
|
|
@@ -6,8 +6,9 @@ export declare class TableviewComponentService<T, S> {
|
|
|
6
6
|
dataProvider?: ITableviewDataProvider<T, S>;
|
|
7
7
|
messageService?: MessageService;
|
|
8
8
|
actions: Array<ActionDescriptor<T>>;
|
|
9
|
-
|
|
10
|
-
reloadTable():
|
|
9
|
+
private _reloadTableSubject;
|
|
10
|
+
get reloadTable$(): import("rxjs").Observable<any>;
|
|
11
|
+
triggerTableReload(event: any): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableviewComponentService<any, any>, never>;
|
|
12
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<TableviewComponentService<any, any>>;
|
|
13
14
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { AfterContentInit, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, EventEmitter, Injector, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
4
|
import { LazyLoadEvent, SortMeta } from 'primeng/api';
|
|
4
5
|
import { FilterMetadata } from 'primeng/api/filtermetadata';
|
|
6
|
+
import { Table } from 'primeng/table';
|
|
5
7
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
7
8
|
import { MediusQueryResult } from '../../../api/models';
|
|
8
|
-
import { ColumnDescriptor, TableDescriptor } from '../../../descriptors';
|
|
9
9
|
import { ITableDataProvider } from '../../../data-providers';
|
|
10
|
+
import { ColumnDescriptor, TableDescriptor } from '../../../descriptors';
|
|
10
11
|
import { MngTemplateDirective } from '../../../directives';
|
|
12
|
+
import { MngTableCellClickEvent, MngTableLoadEvent } from '../models';
|
|
11
13
|
import { TableviewComponentService } from '../services';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
15
|
export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit, OnDestroy {
|
|
@@ -25,11 +27,11 @@ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit
|
|
|
25
27
|
dataProvider?: ITableDataProvider<T, any>;
|
|
26
28
|
useQueryParams: boolean;
|
|
27
29
|
selectionEnabled: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
loadEventEmitter: EventEmitter<MngTableLoadEvent>;
|
|
31
|
+
cellClickEventEmitter: EventEmitter<MngTableCellClickEvent<T>>;
|
|
32
|
+
selectionChangeEventEmitter: EventEmitter<T[]>;
|
|
31
33
|
templates: QueryList<MngTemplateDirective>;
|
|
32
|
-
|
|
34
|
+
primeTable: Table;
|
|
33
35
|
captionTemplate?: TemplateRef<any>;
|
|
34
36
|
columnActionTemplate?: TemplateRef<any>;
|
|
35
37
|
useDataProvider: boolean;
|
|
@@ -37,14 +39,6 @@ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit
|
|
|
37
39
|
queryResult$?: Observable<MediusQueryResult<T>>;
|
|
38
40
|
loading$?: Observable<boolean>;
|
|
39
41
|
dataProviderInfiniteScrollItems: Array<T>;
|
|
40
|
-
private dataProviderService;
|
|
41
|
-
private dataProviderQueryResultSubject;
|
|
42
|
-
private dataProviderLoadingSubject;
|
|
43
|
-
private dataProviderLatestLazyLoadEvent?;
|
|
44
|
-
private dataProviderLatestLazyLoadEventVersion;
|
|
45
|
-
private dataProviderLatestQueryParam?;
|
|
46
|
-
private dataProviderLatestQueryParamVersion;
|
|
47
|
-
private dataProviderSubscription?;
|
|
48
42
|
readonly rowsPerPageOptions: number[];
|
|
49
43
|
rows: number;
|
|
50
44
|
offset: number;
|
|
@@ -52,14 +46,22 @@ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit
|
|
|
52
46
|
filterMetadata: {
|
|
53
47
|
[s: string]: FilterMetadata | FilterMetadata[];
|
|
54
48
|
};
|
|
55
|
-
private isFilterChanged;
|
|
56
|
-
private isSortChanged;
|
|
57
49
|
infiniteScroll: boolean;
|
|
58
50
|
scrollHeight: 'flex' | null;
|
|
59
51
|
rowHeight: number | null;
|
|
60
52
|
selection: Array<T>;
|
|
61
|
-
private
|
|
53
|
+
private dataProviderService;
|
|
54
|
+
private dataProviderQueryResultSubject;
|
|
55
|
+
private dataProviderLoadingSubject;
|
|
56
|
+
private dataProviderLatestLazyLoadEvent?;
|
|
57
|
+
private dataProviderLatestLazyLoadEventVersion;
|
|
58
|
+
private dataProviderLatestQueryParam?;
|
|
59
|
+
private dataProviderLatestQueryParamVersion;
|
|
60
|
+
private dataProviderSubscription?;
|
|
61
|
+
private isFilterChanged;
|
|
62
|
+
private isSortChanged;
|
|
62
63
|
private filterDescriptors;
|
|
64
|
+
private subscriptions;
|
|
63
65
|
constructor(injector: Injector, router: Router, activatedRoute: ActivatedRoute, translate: TranslateService, tableviewService: TableviewComponentService<T, S>);
|
|
64
66
|
ngOnInit(): void;
|
|
65
67
|
ngAfterContentInit(): void;
|
|
@@ -75,5 +77,5 @@ export declare class MngTableComponent<T, S> implements OnInit, AfterContentInit
|
|
|
75
77
|
private updatePrimeSortAndFilter;
|
|
76
78
|
private getDefaultSortMeta;
|
|
77
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, { optional: true; }]>;
|
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionEnabled": "selectionEnabled"; }, { "loadEventEmitter": "
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "descriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionEnabled": "selectionEnabled"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; }, ["templates"], never>;
|
|
79
81
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
5
5
|
import { DialogService } from 'primeng/dynamicdialog';
|
|
6
|
-
import { MngActionService } from '../../services';
|
|
7
|
-
import { TableviewDescriptor, ActionDescriptor } from '../../descriptors';
|
|
8
6
|
import { ITableviewDataProvider } from '../../data-providers';
|
|
7
|
+
import { ActionDescriptor, TableviewDescriptor } from '../../descriptors';
|
|
8
|
+
import { MngActionService } from '../../services';
|
|
9
9
|
import { MngTableCellClickEvent } from './models';
|
|
10
10
|
import { TableviewComponentService } from './services';
|
|
11
11
|
import { MngTableComponent } from './table/table.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MngTableviewComponent<T, S> implements OnInit {
|
|
13
|
+
export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy {
|
|
14
14
|
private route;
|
|
15
15
|
private messageService;
|
|
16
16
|
private translateService;
|
|
@@ -26,8 +26,10 @@ export declare class MngTableviewComponent<T, S> implements OnInit {
|
|
|
26
26
|
rowInlineActions: ActionDescriptor<T>[];
|
|
27
27
|
toolbarLeftActions: ActionDescriptor<T>[];
|
|
28
28
|
toolbarRightActions: ActionDescriptor<T>[];
|
|
29
|
+
private subscriptions;
|
|
29
30
|
constructor(route: ActivatedRoute, messageService: MessageService, translateService: TranslateService, dialogService: DialogService, confirmationService: ConfirmationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
|
|
30
31
|
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
31
33
|
reloadTable(): void;
|
|
32
34
|
onTableCellClick(event: MngTableCellClickEvent<T>): void;
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MngFormlyFieldWrapperComponent } from '../components/form/formly/wrappers';
|
|
5
5
|
export declare const formlyWrappersConfig: {
|
|
@@ -11,4 +11,5 @@ export declare function getRequiredValidationMessage(translate: TranslateService
|
|
|
11
11
|
export declare function getMinLengthValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
12
12
|
export declare function getMaxLengthValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
13
13
|
export declare function getTextPatternValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
14
|
+
export declare function getEmailValidationMessage(translate: TranslateService): (error: any, field: FormlyFieldConfig) => Observable<string> | undefined;
|
|
14
15
|
export declare const getFormlyValidationMessages: (translate: TranslateService) => any[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import { ActionExecContext } from '../components/action/models';
|
|
3
|
+
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
2
4
|
import { ClassType } from '../types';
|
|
3
5
|
import { EditorDescriptor, ModelDescriptor } from './';
|
|
4
|
-
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
5
|
-
import { ActionExecContext } from '../components/action/models';
|
|
6
6
|
export declare class ActionDescriptor<T> {
|
|
7
7
|
protected readonly _model: ModelDescriptor<T>;
|
|
8
8
|
protected readonly _actionName: string;
|