mmhglobal-dynamicform 2.6.4 → 2.7.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.
@@ -4,11 +4,12 @@ import { Router, ActivatedRoute } from '@angular/router';
4
4
  import { ModalController, NavController } from '@ionic/angular';
5
5
  /********** Plugin **********/
6
6
  import { Observable, Subscription } from 'rxjs';
7
+ import { DialogRef, DialogService, DialogSettings } from '@progress/kendo-angular-dialog';
7
8
  /********** Component & Service **********/
8
- import { AlertService, CacheService, FieldService, ResourceApiService, TranslationService, WebApiService, StorageSessionService, ZComponentOutputEvent, ZComponentSize, ZCoreService, ZField, ZGroup } from 'mmhglobal-zcore';
9
- import { ModalService, ModalResponse } from 'mmhglobal-zmodal';
10
9
  import { ZComponentDebugService } from './zcomponent.debug.service';
11
10
  import { ComponentErrorHandlerService } from './component-error-handler.service';
11
+ import { ModalService, ModalResponse } from 'mmhglobal-zmodal';
12
+ import { AlertService, CacheService, FieldService, ResourceApiService, TranslationService, WebApiService, StorageSessionService, OAuth2Service, SignalrService, ZComponentOutputEvent, ZComponentSize, ZCoreService, ZField, ZGroup, PushChangeEvent } from 'mmhglobal-zcore';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class MainService {
14
15
  private router;
@@ -26,6 +27,9 @@ export declare class MainService {
26
27
  private storageService;
27
28
  private debugService;
28
29
  private translationService;
30
+ private signalr;
31
+ private dialogService;
32
+ private oauth2Service;
29
33
  private group;
30
34
  private oauthEnvironmentUrl;
31
35
  private environment;
@@ -38,7 +42,11 @@ export declare class MainService {
38
42
  private NAVIGATED_RELOAD_GRID_STORAGE_KEY;
39
43
  private CLONE_NEW_MODEL_CACHE_KEY;
40
44
  private readonly secretKey;
41
- constructor(router: Router, activatedRoute: ActivatedRoute, modalCtrl: ModalController, navController: NavController, alertService: AlertService, cacheService: CacheService, fieldService: FieldService, resourceApiService: ResourceApiService, componentErrorHandler: ComponentErrorHandlerService, webApiService: WebApiService, zcoreService: ZCoreService, modalService: ModalService, storageService: StorageSessionService, debugService: ZComponentDebugService, translationService: TranslationService);
45
+ constructor(router: Router, activatedRoute: ActivatedRoute, modalCtrl: ModalController, navController: NavController, alertService: AlertService, cacheService: CacheService, fieldService: FieldService, resourceApiService: ResourceApiService, componentErrorHandler: ComponentErrorHandlerService, webApiService: WebApiService, zcoreService: ZCoreService, modalService: ModalService, storageService: StorageSessionService, debugService: ZComponentDebugService, translationService: TranslationService, signalr: SignalrService, dialogService: DialogService, oauth2Service: OAuth2Service);
46
+ getListFieldName: (fieldName: string) => Observable<string>;
47
+ clearFormListFields: () => void;
48
+ signalrGetEvent(): Observable<PushChangeEvent>;
49
+ dialogOpen(options: DialogSettings): DialogRef;
42
50
  startUp(): void;
43
51
  setGroup(group: ZGroup): void;
44
52
  getResourceServerData(): Observable<any>;
@@ -55,6 +63,8 @@ export declare class MainService {
55
63
  setNavigationParams(urlParams: string[]): void;
56
64
  setRouteParam(routeParams: string[]): void;
57
65
  private isValueInLastElement;
66
+ navigateFromMenu(pageName: string): void;
67
+ resetRouteParam(): void;
58
68
  private getNavigationParams;
59
69
  getNavigationParentParam(): any;
60
70
  getNavigationCurrentParam(): any;
@@ -65,7 +75,7 @@ export declare class MainService {
65
75
  removeLastRouteParam(): void;
66
76
  backNavigation(event: ZComponentOutputEvent, group: ZGroup, me: any): void;
67
77
  private navigateBackToPreviousPage;
68
- private getStartupPage;
78
+ getStartupPage(): string;
69
79
  private historyBack;
70
80
  refreshGrid(event: ZComponentOutputEvent, group: ZGroup, me: any, gridOptionName?: string): void;
71
81
  private refreshPage;
@@ -169,10 +169,10 @@ export declare class ZudfComponent extends ContainerFieldBase implements ZCompon
169
169
  private setContainerFieldErrorAsNull;
170
170
  /**
171
171
  * Validates a form and returns its ZModel if it is valid.
172
- *
172
+ * @param skipRemoveMvgFieldValue Whether to skip removing the values of mvg fields from the zModel object.
173
173
  * @returns The form's ZModel if it is valid, or undefined otherwise.
174
174
  */
175
- getValidatedFormZModel(): any;
175
+ getValidatedFormZModel(skipRemovePrefix?: boolean, skipRemoveMvgFieldValue?: boolean): any;
176
176
  /**
177
177
  * Retrieves a modified version of the zModel object, with mvg (multi value group) fields removed and property prefixes removed.
178
178
  * @param skipRemovePrefix Whether to skip removing the default property prefix.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmhglobal-dynamicform",
3
- "version": "2.6.4",
3
+ "version": "2.7.0",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.1"