mmhglobal-dynamicform 1.3.13 → 2.0.0-beta.2
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/animations/component-animations.mjs +12 -0
- package/esm2020/lib/components/buttonfieldbase.component.mjs +62 -0
- package/esm2020/lib/components/containerfieldbase.component.mjs +42 -0
- package/esm2020/lib/components/datalistingfieldbase.component.mjs +138 -0
- package/esm2020/lib/components/fieldbase.component.mjs +90 -0
- package/esm2020/lib/components/inputfieldbase.component.mjs +78 -0
- package/esm2020/lib/directives/scrollbar.theme.directive.mjs +13 -11
- package/esm2020/lib/embed-components/input-field-addons/input-field-addons.component.mjs +69 -0
- package/esm2020/lib/input-error-message/input-error-message.component.mjs +33 -0
- package/esm2020/lib/kcard/kcard.component.mjs +84 -0
- package/esm2020/lib/mmhglobal-dynamicform.module.mjs +53 -12
- package/esm2020/lib/pipe/htmlSanitize.pipe.mjs +18 -0
- package/esm2020/lib/services/component-error-handler.service.mjs +84 -0
- package/esm2020/lib/services/main.service.mjs +173 -73
- package/esm2020/lib/services/zcomponent.debug.service.mjs +17 -8
- package/esm2020/lib/services/zcomponent.service.mjs +133 -9
- package/esm2020/lib/uiappmenucontent/uiappmenucontent.component.mjs +15 -23
- package/esm2020/lib/uicontainer/uicontainer.component.mjs +2 -2
- package/esm2020/lib/uicontent/uicontent.component.mjs +21 -9
- package/esm2020/lib/uiheader/uiheader.component.mjs +61 -28
- package/esm2020/lib/uimenucontent/uimenucontent.component.mjs +3 -3
- package/esm2020/lib/uipage/uipage.component.mjs +41 -26
- package/esm2020/lib/uivalidationmessage/uivalidationmessage.component.mjs +2 -2
- package/esm2020/lib/zbullet/zbullet.component.mjs +3 -2
- package/esm2020/lib/zbuttons/zbuttons.component.mjs +45 -91
- package/esm2020/lib/zcard/zcard.component.mjs +13 -60
- package/esm2020/lib/zcheckbox/zcheckbox.component.mjs +14 -159
- package/esm2020/lib/zchip/zchip.component.mjs +34 -64
- package/esm2020/lib/zcodeeditor/zcodeeditor.component.mjs +4 -3
- package/esm2020/lib/zdaterange/zdaterange.component.mjs +3 -3
- package/esm2020/lib/zdatetime/zdatetime.component.mjs +22 -74
- package/esm2020/lib/zdiv/zdiv.component.mjs +63 -40
- package/esm2020/lib/zdiv/zdiv.pipe.mjs +2 -2
- package/esm2020/lib/zform/zform.component.mjs +9 -7
- package/esm2020/lib/zformcontrol/zformcontrol.component.mjs +5 -3
- package/esm2020/lib/zgauge/zgauge.component.mjs +34 -70
- package/esm2020/lib/zgrid/zgrid.binding.directive.mjs +32 -30
- package/esm2020/lib/zgrid/zgrid.component.mjs +246 -135
- package/esm2020/lib/zimg/zimg.component.mjs +44 -108
- package/esm2020/lib/zinput-container/zinput-container.component.mjs +63 -0
- package/esm2020/lib/zinput-container/zinput-container.pipe.mjs +120 -0
- package/esm2020/lib/zkcard/zkcard.component.mjs +2 -2
- package/esm2020/lib/zlabel/zlabel.component.mjs +18 -94
- package/esm2020/lib/zmfb/zmfb.component.mjs +70 -91
- package/esm2020/lib/zmodal/zmodal-mobile.component.mjs +15 -11
- package/esm2020/lib/zmodal/zmodal.component.mjs +14 -10
- package/esm2020/lib/znumeric/znumeric.component.mjs +18 -94
- package/esm2020/lib/zpostselectinput/zpostselectinput.component.mjs +35 -87
- package/esm2020/lib/zprogressbar/zprogressbar.component.mjs +59 -0
- package/esm2020/lib/zreport/zreport.component.mjs +25 -27
- package/esm2020/lib/zselectmultiple/zselectmultiple.component.mjs +39 -194
- package/esm2020/lib/ztab/ztab.component.mjs +17 -45
- package/esm2020/lib/ztab/ztab.pipe.mjs +6 -4
- package/esm2020/lib/ztext/ztext.component.mjs +20 -180
- package/esm2020/lib/ztextarea/ztextarea.component.mjs +23 -101
- package/esm2020/lib/ztexteditor/ztexteditor.component.mjs +3 -2
- package/esm2020/lib/ztree/ztree.component.mjs +25 -41
- package/esm2020/lib/ztreelist/ztreelist.component.mjs +104 -143
- package/esm2020/lib/zudf/zudf.component.mjs +12 -8
- package/esm2020/lib/zupload/zupload.component.mjs +18 -39
- package/esm2020/lib/zworkflowbuttons/zworkflowbuttons.component.mjs +45 -77
- package/esm2020/public-api.mjs +15 -2
- package/fesm2015/mmhglobal-dynamicform.mjs +4529 -4392
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +4496 -4367
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/lib/animations/component-animations.d.ts +1 -0
- package/lib/components/buttonfieldbase.component.d.ts +18 -0
- package/lib/components/containerfieldbase.component.d.ts +19 -0
- package/lib/components/datalistingfieldbase.component.d.ts +30 -0
- package/lib/components/fieldbase.component.d.ts +30 -0
- package/lib/components/inputfieldbase.component.d.ts +19 -0
- package/lib/embed-components/input-field-addons/input-field-addons.component.d.ts +16 -0
- package/lib/input-error-message/input-error-message.component.d.ts +15 -0
- package/lib/kcard/kcard.component.d.ts +21 -0
- package/lib/mmhglobal-dynamicform.module.d.ts +40 -32
- package/lib/pipe/htmlSanitize.pipe.d.ts +10 -0
- package/lib/services/component-error-handler.service.d.ts +14 -0
- package/lib/services/main.service.d.ts +23 -5
- package/lib/services/zcomponent.debug.service.d.ts +4 -1
- package/lib/services/zcomponent.service.d.ts +20 -4
- package/lib/uiappmenucontent/uiappmenucontent.component.d.ts +4 -3
- package/lib/uicontent/uicontent.component.d.ts +6 -2
- package/lib/uiheader/uiheader.component.d.ts +13 -9
- package/lib/zbuttons/zbuttons.component.d.ts +11 -20
- package/lib/zcard/zcard.component.d.ts +6 -20
- package/lib/zcheckbox/zcheckbox.component.d.ts +6 -36
- package/lib/zchip/zchip.component.d.ts +7 -16
- package/lib/zdatetime/zdatetime.component.d.ts +6 -14
- package/lib/zdiv/zdiv.component.d.ts +11 -18
- package/lib/zformcontrol/zformcontrol.component.d.ts +2 -1
- package/lib/zgauge/zgauge.component.d.ts +11 -14
- package/lib/zgrid/zgrid.binding.directive.d.ts +4 -2
- package/lib/zgrid/zgrid.component.d.ts +26 -27
- package/lib/zimg/zimg.component.d.ts +12 -31
- package/lib/zinput-container/zinput-container.component.d.ts +26 -0
- package/lib/zinput-container/zinput-container.pipe.d.ts +20 -0
- package/lib/zlabel/zlabel.component.d.ts +6 -25
- package/lib/zmfb/zmfb.component.d.ts +12 -20
- package/lib/zmodal/zmodal-mobile.component.d.ts +4 -1
- package/lib/zmodal/zmodal.component.d.ts +4 -1
- package/lib/znumeric/znumeric.component.d.ts +7 -29
- package/lib/zpostselectinput/zpostselectinput.component.d.ts +9 -19
- package/lib/zprogressbar/zprogressbar.component.d.ts +28 -0
- package/lib/zreport/zreport.component.d.ts +8 -11
- package/lib/zselectmultiple/zselectmultiple.component.d.ts +10 -35
- package/lib/ztab/ztab.component.d.ts +6 -19
- package/lib/ztext/ztext.component.d.ts +7 -35
- package/lib/ztextarea/ztextarea.component.d.ts +9 -27
- package/lib/ztree/ztree.component.d.ts +6 -12
- package/lib/ztreelist/ztreelist.component.d.ts +17 -27
- package/lib/zupload/zupload.component.d.ts +6 -13
- package/lib/zworkflowbuttons/zworkflowbuttons.component.d.ts +6 -20
- package/package.json +1 -1
- package/public-api.d.ts +14 -1
|
@@ -7,6 +7,7 @@ import { Subscription, Observable } from "rxjs";
|
|
|
7
7
|
import { DialogContentBase, DialogRef } from '@progress/kendo-angular-dialog';
|
|
8
8
|
/********** Component & Service **********/
|
|
9
9
|
import { ZGroup, ModalPageParams, WebApiService, AlertService, ZCoreService, FieldService, ResourceApiService, ZComponentOutputEvent } from "mmhglobal-zcore";
|
|
10
|
+
import { ComponentErrorHandlerService } from "../services/component-error-handler.service";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class ZmodalComponent extends DialogContentBase implements OnInit, OnDestroy {
|
|
12
13
|
dialog: DialogRef;
|
|
@@ -14,6 +15,7 @@ export declare class ZmodalComponent extends DialogContentBase implements OnInit
|
|
|
14
15
|
private zcoreService;
|
|
15
16
|
private webApiService;
|
|
16
17
|
private resourceApiService;
|
|
18
|
+
private componentErrorHandler;
|
|
17
19
|
private fieldService;
|
|
18
20
|
private platform;
|
|
19
21
|
private alertService;
|
|
@@ -21,7 +23,8 @@ export declare class ZmodalComponent extends DialogContentBase implements OnInit
|
|
|
21
23
|
group: ZGroup;
|
|
22
24
|
subscription: Subscription;
|
|
23
25
|
backButtonSubscription: Subscription;
|
|
24
|
-
constructor(dialog: DialogRef, modalCtrl: ModalController, zcoreService: ZCoreService, webApiService: WebApiService, resourceApiService: ResourceApiService,
|
|
26
|
+
constructor(dialog: DialogRef, modalCtrl: ModalController, zcoreService: ZCoreService, webApiService: WebApiService, resourceApiService: ResourceApiService, componentErrorHandler: ComponentErrorHandlerService, // Use in mmhglobal-zmodal.helper
|
|
27
|
+
fieldService: FieldService, platform: Platform, alertService: AlertService);
|
|
25
28
|
ngOnInit(): void;
|
|
26
29
|
ngOnDestroy(): void;
|
|
27
30
|
onCancel(event?: ZComponentOutputEvent): void;
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
3
|
/********** Component & Service **********/
|
|
5
|
-
import { ZComponent
|
|
4
|
+
import { ZComponent } from "mmhglobal-zcore";
|
|
5
|
+
import { InputFieldBase } from '../components/inputfieldbase.component';
|
|
6
|
+
import { ZComponentService } from '../services/zcomponent.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ZnumericComponent implements ZComponent, OnInit {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
form: FormGroup;
|
|
11
|
-
componentProperties: ZComponentProperties;
|
|
12
|
-
constructor();
|
|
8
|
+
export declare class ZnumericComponent extends InputFieldBase implements ZComponent, OnInit {
|
|
9
|
+
inputMode: string;
|
|
10
|
+
constructor(compService: ZComponentService);
|
|
13
11
|
ngOnInit(): void;
|
|
14
12
|
valueHandler(): number;
|
|
15
|
-
onChange(value: any): void;
|
|
16
|
-
isMobileScreen(): boolean;
|
|
17
|
-
setEnable: (status: boolean) => void;
|
|
18
|
-
setVisible: (status: boolean) => void;
|
|
19
|
-
setRequire: (status: boolean) => void;
|
|
20
|
-
getIon_InvalidClass(form: FormGroup, data: ZField): string;
|
|
21
|
-
getStyle(RightAlign: boolean): string;
|
|
22
|
-
autocorrectHandler(): "on" | "off";
|
|
23
|
-
inputmodeHandler(): string;
|
|
24
|
-
getKendoStyle(): {
|
|
25
|
-
margin: string;
|
|
26
|
-
width: string;
|
|
27
|
-
"background-color": string;
|
|
28
|
-
color: string;
|
|
29
|
-
} | {
|
|
30
|
-
margin: string;
|
|
31
|
-
width: string;
|
|
32
|
-
"background-color"?: undefined;
|
|
33
|
-
color?: undefined;
|
|
34
|
-
};
|
|
35
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZnumericComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZnumericComponent, "app-znumeric", never, {
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZnumericComponent, "app-znumeric", never, {}, {}, never, never>;
|
|
37
15
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit, OnDestroy } from "@angular/core";
|
|
3
|
-
import { FormGroup } from "@angular/forms";
|
|
4
3
|
/********** Ionic **********/
|
|
5
4
|
import { IonicSelectableComponent } from "ionic-selectable";
|
|
6
5
|
/********** Plugin **********/
|
|
7
6
|
import { Observable } from "rxjs";
|
|
8
7
|
/********** Component & Service **********/
|
|
9
|
-
import { CacheService, ResourceApiService, WebApiService, ZComponent
|
|
8
|
+
import { CacheService, ResourceApiService, WebApiService, ZComponent } from "mmhglobal-zcore";
|
|
9
|
+
import { InputFieldBase } from "../components/inputfieldbase.component";
|
|
10
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ZpostselectinputComponent implements ZComponent, OnInit, OnDestroy {
|
|
12
|
+
export declare class ZpostselectinputComponent extends InputFieldBase implements ZComponent, OnInit, OnDestroy {
|
|
12
13
|
private resourceApiService;
|
|
13
14
|
private webApiService;
|
|
14
15
|
private cacheService;
|
|
15
|
-
data: ZField;
|
|
16
|
-
group: ZGroup;
|
|
17
|
-
form: FormGroup;
|
|
18
16
|
selectComponent: IonicSelectableComponent;
|
|
19
17
|
items: Array<any>;
|
|
20
18
|
modelzData: Array<any>;
|
|
@@ -27,20 +25,19 @@ export declare class ZpostselectinputComponent implements ZComponent, OnInit, On
|
|
|
27
25
|
itemTemplate: string;
|
|
28
26
|
infiniteScrollPageNo: number;
|
|
29
27
|
isLoading: boolean;
|
|
30
|
-
componentProperties: ZComponentProperties;
|
|
31
28
|
private debounceSub;
|
|
32
29
|
dataInfo: {};
|
|
33
|
-
constructor(resourceApiService: ResourceApiService, webApiService: WebApiService, cacheService: CacheService);
|
|
30
|
+
constructor(resourceApiService: ResourceApiService, webApiService: WebApiService, cacheService: CacheService, compService: ZComponentService);
|
|
34
31
|
ngOnDestroy(): void;
|
|
35
32
|
ngOnInit(): void;
|
|
36
33
|
lazyLoadDataOptions(): Observable<any>;
|
|
37
34
|
getItemsData(): any;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
onChange(event: {
|
|
35
|
+
onChange_desktop(event: any): void;
|
|
36
|
+
onChange_mobile(event: {
|
|
41
37
|
component: IonicSelectableComponent;
|
|
42
38
|
value: any;
|
|
43
39
|
}): void;
|
|
40
|
+
private handleInfiniteScrollOnChange;
|
|
44
41
|
clearItems(): void;
|
|
45
42
|
toggleItems(): void;
|
|
46
43
|
confirmItems(): void;
|
|
@@ -57,14 +54,7 @@ export declare class ZpostselectinputComponent implements ZComponent, OnInit, On
|
|
|
57
54
|
handleClose(): void;
|
|
58
55
|
handleBlur(): void;
|
|
59
56
|
getItemTemplate(item: any, data: any, group: any, itemValueField: string, itemTextField: string): any;
|
|
60
|
-
getReadOnlyValue(): any;
|
|
61
|
-
getGroupValue(value: string, group: ZGroup): any;
|
|
62
|
-
setEnable: (status: boolean) => void;
|
|
63
|
-
setVisible: (status: boolean) => void;
|
|
64
|
-
setRequire: (status: boolean) => void;
|
|
65
|
-
isMobileScreen(): boolean;
|
|
66
|
-
getIon_InvalidClass(form: FormGroup, data: ZField): string;
|
|
67
57
|
onAddItem(event: any): any;
|
|
68
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZpostselectinputComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZpostselectinputComponent, "app-zpostselectinput", never, {
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZpostselectinputComponent, "app-zpostselectinput", never, {}, {}, never, never>;
|
|
70
60
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/********** Angular **********/
|
|
2
|
+
import { OnInit } from "@angular/core";
|
|
3
|
+
import { LabelSettings, ProgressBarAnimation } from "@progress/kendo-angular-progressbar";
|
|
4
|
+
/********** Ionic **********/
|
|
5
|
+
/********** Plugin **********/
|
|
6
|
+
/********** Component & Service **********/
|
|
7
|
+
import { ZComponent } from 'mmhglobal-zcore';
|
|
8
|
+
import { FieldBase } from "../components/fieldbase.component";
|
|
9
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ZprogressbarComponent extends FieldBase implements ZComponent, OnInit {
|
|
12
|
+
private animation;
|
|
13
|
+
private label;
|
|
14
|
+
value: any;
|
|
15
|
+
minValue: number;
|
|
16
|
+
maxValue: number;
|
|
17
|
+
options: {
|
|
18
|
+
indeterminate: boolean;
|
|
19
|
+
animation: ProgressBarAnimation;
|
|
20
|
+
label: LabelSettings;
|
|
21
|
+
progressStyles: any;
|
|
22
|
+
emptyStyles: any;
|
|
23
|
+
};
|
|
24
|
+
constructor(compService: ZComponentService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZprogressbarComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZprogressbarComponent, "app-zprogressbar", never, {}, {}, never, never>;
|
|
28
|
+
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit, AfterViewInit } from "@angular/core";
|
|
3
|
-
/********** Ionic **********/
|
|
4
|
-
/********** Plugin **********/
|
|
5
3
|
import { TelerikReportViewerComponent } from "@progress/telerik-angular-report-viewer";
|
|
6
4
|
/********** Component & Service **********/
|
|
7
|
-
import { ResourceApiService
|
|
5
|
+
import { ResourceApiService } from "mmhglobal-zcore";
|
|
6
|
+
import { FieldBase } from "../components/fieldbase.component";
|
|
7
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ZreportComponent implements OnInit, AfterViewInit {
|
|
9
|
+
export declare class ZreportComponent extends FieldBase implements OnInit, AfterViewInit {
|
|
10
10
|
private resourceApiService;
|
|
11
|
-
constructor(resourceApiService: ResourceApiService);
|
|
12
11
|
viewer: TelerikReportViewerComponent;
|
|
13
|
-
data: ZField;
|
|
14
|
-
group: ZGroup;
|
|
15
|
-
componentProperties: ZComponentProperties;
|
|
16
12
|
title: string;
|
|
17
13
|
viewerContainerStyle: {
|
|
18
14
|
position: string;
|
|
@@ -20,10 +16,11 @@ export declare class ZreportComponent implements OnInit, AfterViewInit {
|
|
|
20
16
|
height: string;
|
|
21
17
|
"font-family": string;
|
|
22
18
|
};
|
|
19
|
+
isVisible: boolean;
|
|
23
20
|
resourceURL: any;
|
|
24
21
|
ReportSource: any;
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
private paramToResizeReportViewer;
|
|
23
|
+
constructor(compService: ZComponentService, resourceApiService: ResourceApiService);
|
|
27
24
|
ngOnInit(): void;
|
|
28
25
|
ngAfterViewInit(): void;
|
|
29
26
|
ready(): void;
|
|
@@ -37,5 +34,5 @@ export declare class ZreportComponent implements OnInit, AfterViewInit {
|
|
|
37
34
|
getFontAwesome(iconName: string): string;
|
|
38
35
|
private resizeViewer;
|
|
39
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZreportComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZreportComponent, "app-zreport", never, {
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZreportComponent, "app-zreport", never, {}, {}, never, never>;
|
|
41
38
|
}
|
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit, OnDestroy } from "@angular/core";
|
|
3
|
-
import { FormGroup } from "@angular/forms";
|
|
4
3
|
/********** Ionic **********/
|
|
5
4
|
import { IonicSelectableComponent } from "ionic-selectable";
|
|
6
5
|
/********** Plugin **********/
|
|
7
6
|
import { Observable } from "rxjs";
|
|
8
7
|
/********** Component & Service **********/
|
|
9
|
-
import { ResourceApiService, WebApiService, CacheService, ClickableIcons,
|
|
8
|
+
import { ResourceApiService, WebApiService, CacheService, ClickableIcons, ZComponent, TooltipsInfoProperties } from "mmhglobal-zcore";
|
|
9
|
+
import { InputFieldBase } from "../components/inputfieldbase.component";
|
|
10
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
10
11
|
import { FilterExpandSettings } from "@progress/kendo-angular-treeview";
|
|
11
12
|
import { DropDownFilterSettings } from "@progress/kendo-angular-dropdowns";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class ZselectmultipleComponent implements ZComponent, OnInit, OnDestroy {
|
|
14
|
+
export declare class ZselectmultipleComponent extends InputFieldBase implements ZComponent, OnInit, OnDestroy {
|
|
14
15
|
private resourceApiService;
|
|
15
16
|
private webApiService;
|
|
16
17
|
private cacheService;
|
|
17
|
-
data: ZField;
|
|
18
|
-
group: ZGroup;
|
|
19
|
-
form: FormGroup;
|
|
20
|
-
iconList: ClickableIcons[];
|
|
21
|
-
buttonList: ButtonList[];
|
|
22
18
|
selectComponent: IonicSelectableComponent;
|
|
23
19
|
showTooltipsInfoIcon: boolean;
|
|
24
20
|
showTooltipsInfoBySide: boolean;
|
|
25
21
|
tooltipsInfo: TooltipsInfoProperties;
|
|
26
|
-
|
|
27
|
-
tooltipsDisplayIcon: any;
|
|
22
|
+
iconList: ClickableIcons[];
|
|
28
23
|
items: Array<any>;
|
|
29
24
|
modelzData: Array<any>;
|
|
30
25
|
infinitezData: Array<any>;
|
|
@@ -36,14 +31,13 @@ export declare class ZselectmultipleComponent implements ZComponent, OnInit, OnD
|
|
|
36
31
|
itemTemplate: string;
|
|
37
32
|
infiniteScrollPageNo: number;
|
|
38
33
|
isLoading: boolean;
|
|
39
|
-
componentProperties: ZComponentProperties;
|
|
40
34
|
private debounceSub;
|
|
41
35
|
allowCustomValue: boolean;
|
|
42
36
|
autoClose: boolean;
|
|
43
37
|
parsedItemsData: any[];
|
|
44
38
|
dataInfo: {};
|
|
45
39
|
filterSettings: DropDownFilterSettings;
|
|
46
|
-
constructor(resourceApiService: ResourceApiService, webApiService: WebApiService, cacheService: CacheService);
|
|
40
|
+
constructor(resourceApiService: ResourceApiService, webApiService: WebApiService, cacheService: CacheService, compService: ZComponentService);
|
|
47
41
|
ngOnDestroy(): void;
|
|
48
42
|
virtual: any;
|
|
49
43
|
ngOnInit(): void;
|
|
@@ -63,42 +57,23 @@ export declare class ZselectmultipleComponent implements ZComponent, OnInit, OnD
|
|
|
63
57
|
handleClose(): void;
|
|
64
58
|
handleBlur(): void;
|
|
65
59
|
getItemTemplate(item: any, data: any, group: any, itemValueField: string, itemTextField: string): any;
|
|
66
|
-
getReadOnlyValue(): any;
|
|
67
|
-
getIsRequiredValue(): any;
|
|
68
|
-
getGroupValue(value: string, group: ZGroup): any;
|
|
69
|
-
getClass(form: FormGroup, data: ZField): string;
|
|
70
|
-
getIon_InvalidClass(form: FormGroup, data: ZField): string;
|
|
71
60
|
onAddItem(event: any): any;
|
|
72
61
|
clearData(): void;
|
|
73
62
|
clearItems(): void;
|
|
74
63
|
confirmItems(): void;
|
|
75
64
|
toggleItems(): void;
|
|
76
|
-
onIconClick(clickAction: string): void;
|
|
77
|
-
onNavigateTo(clickAction: string): void;
|
|
78
65
|
disableOpenOnFocus(comboboxComponent: any): any;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onChange(event: {
|
|
66
|
+
onChange_desktop(event: any): void;
|
|
67
|
+
onChange_mobile(event: {
|
|
82
68
|
component: IonicSelectableComponent;
|
|
83
69
|
value: any;
|
|
84
70
|
}): void;
|
|
85
|
-
|
|
86
|
-
setVisible: (status: boolean) => void;
|
|
87
|
-
setRequire: (status: boolean) => void;
|
|
88
|
-
setLabelText(newText: string): void;
|
|
89
|
-
isMobileScreen(): boolean;
|
|
90
|
-
/********** TooltipsInfo **********/
|
|
91
|
-
setTooltipsInfoClass(): "tooltipsinfo-text" | "tooltipsinfo-text-wide";
|
|
92
|
-
setTooltipsInfoColor(): string;
|
|
93
|
-
setTooltipsInfoIcon(displayIcon?: string): void;
|
|
94
|
-
setTooltipsDisplayText(displayText?: string): void;
|
|
95
|
-
setTooltipsInfoSideBySide(): "ion-row divselectmultiple tooltipsinfo-right" | "ion-row divselectmultiple";
|
|
96
|
-
getFontAwesome(iconName: string): string;
|
|
71
|
+
private handleInfiniteScrollOnChange;
|
|
97
72
|
get filterExpandSettings(): FilterExpandSettings;
|
|
98
73
|
hasChildren: (dataitem: any) => boolean;
|
|
99
74
|
handleMultiSelectTreeFilter(value: string): void;
|
|
100
75
|
onMultiSelectTreeSearch(items: any[], searchedText: string): any[];
|
|
101
76
|
contains(text: string, searchedText: string): boolean;
|
|
102
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZselectmultipleComponent, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZselectmultipleComponent, "app-zselectmultiple", never, {
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZselectmultipleComponent, "app-zselectmultiple", never, {}, {}, never, never>;
|
|
104
79
|
}
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
/********** Angular **********/
|
|
2
1
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
|
-
/********** Ionic **********/
|
|
5
|
-
/********** Plugin **********/
|
|
6
2
|
import { TabStripComponent } from '@progress/kendo-angular-layout';
|
|
7
|
-
|
|
8
|
-
import {
|
|
3
|
+
import { ZComponent, ZTabItem } from 'mmhglobal-zcore';
|
|
4
|
+
import { ContainerFieldBase } from '../components/containerfieldbase.component';
|
|
5
|
+
import { ZComponentService } from '../services/zcomponent.service';
|
|
9
6
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ZtabComponent implements ZComponent, OnInit {
|
|
11
|
-
private authService;
|
|
12
|
-
data: ZField;
|
|
13
|
-
group: ZGroup;
|
|
14
|
-
form: FormGroup;
|
|
7
|
+
export declare class ZtabComponent extends ContainerFieldBase implements ZComponent, OnInit {
|
|
15
8
|
tabstrip: TabStripComponent;
|
|
16
9
|
state: {
|
|
17
10
|
lastSelectedTabIndex: number;
|
|
18
11
|
currentTabs: ZTabItem[];
|
|
19
12
|
allTabs: ZTabItem[];
|
|
20
13
|
};
|
|
21
|
-
|
|
22
|
-
constructor(authService: AuthService);
|
|
14
|
+
constructor(compService: ZComponentService);
|
|
23
15
|
ngOnInit(): void;
|
|
24
16
|
private setCurrentTabs;
|
|
25
17
|
private refreshCurrentTabs;
|
|
26
|
-
ComponentIsVisible(field: ZField): any;
|
|
27
18
|
selectTab: (index: number) => void;
|
|
28
19
|
getSelectedTab(tabIndex: number): boolean;
|
|
29
20
|
setSelectTab(tabIndex: number): void;
|
|
@@ -32,10 +23,6 @@ export declare class ZtabComponent implements ZComponent, OnInit {
|
|
|
32
23
|
private saveState;
|
|
33
24
|
setTabsVisible: (tabIndexes: number[], status: boolean) => void;
|
|
34
25
|
setTabCounter: (tabIndex: number, counter: number | string) => void;
|
|
35
|
-
setEnable: (status: boolean) => void;
|
|
36
|
-
setVisible: (status: boolean) => void;
|
|
37
|
-
setRequire: (status: boolean) => void;
|
|
38
|
-
getFontAwesome(iconName: string): string;
|
|
39
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZtabComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZtabComponent, "app-ztab", never, {
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZtabComponent, "app-ztab", never, {}, {}, never, never>;
|
|
41
28
|
}
|
|
@@ -1,54 +1,26 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit } from "@angular/core";
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
3
|
/********** Ionic **********/
|
|
5
4
|
/********** Plugin **********/
|
|
6
5
|
/********** Component & Service **********/
|
|
7
|
-
import {
|
|
6
|
+
import { ZComponent, ClickableIcons, AdornmentProperties } from 'mmhglobal-zcore';
|
|
7
|
+
import { InputFieldBase } from "../components/inputfieldbase.component";
|
|
8
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ZtextComponent implements ZComponent, OnInit {
|
|
10
|
-
data: ZField;
|
|
11
|
-
group: ZGroup;
|
|
12
|
-
form: FormGroup;
|
|
10
|
+
export declare class ZtextComponent extends InputFieldBase implements ZComponent, OnInit {
|
|
13
11
|
iconList: ClickableIcons[];
|
|
14
12
|
adornmentList: any[];
|
|
15
|
-
componentProperties: ZComponentProperties;
|
|
16
|
-
showTooltipsInfoIcon: boolean;
|
|
17
|
-
showTooltipsInfoBySide: boolean;
|
|
18
|
-
tooltipsInfo: TooltipsInfoProperties;
|
|
19
|
-
tooltipsDisplayText: string;
|
|
20
|
-
tooltipsDisplayIcon: any;
|
|
21
13
|
showClearButton: any;
|
|
22
|
-
|
|
23
|
-
constructor();
|
|
14
|
+
constructor(compService: ZComponentService);
|
|
24
15
|
ngOnInit(): void;
|
|
16
|
+
private setupClickableIconList;
|
|
25
17
|
mapInputType(fieldType: string): string;
|
|
26
18
|
mapInputMode(fieldType: string): string;
|
|
27
|
-
getReadOnlyValue(): any;
|
|
28
|
-
isMobileScreen(): boolean;
|
|
29
|
-
setEnable: (status: boolean) => void;
|
|
30
|
-
setVisible: (status: boolean) => void;
|
|
31
|
-
setRequire: (status: boolean) => void;
|
|
32
|
-
getIon_InvalidClass(form: FormGroup, data: ZField): string;
|
|
33
|
-
getStyle(RightAlign: boolean): string;
|
|
34
|
-
setTextboxClass(): "notmobile-textbox-onfocus" | "notmobile-textbox";
|
|
35
|
-
/********** Textbox Event **********/
|
|
36
|
-
textboxOnClick(): void;
|
|
37
|
-
onChange(event: any): void;
|
|
38
|
-
/********** Icon Button **********/
|
|
39
|
-
onIconClick(clickAction: string): void;
|
|
40
|
-
onNavigateTo(clickAction: string): void;
|
|
41
19
|
/********** Adornment **********/
|
|
42
20
|
getAdornmentBackgroundColor(adornment: AdornmentProperties): string;
|
|
43
21
|
adornmentLook(adornment: AdornmentProperties): string;
|
|
44
22
|
onAdornmentClick(adornment: AdornmentProperties): void;
|
|
45
23
|
readOnlyOnClear(): void;
|
|
46
|
-
/********** TooltipsInfo **********/
|
|
47
|
-
setTooltipsInfoClass(): "tooltipsinfo-text" | "tooltipsinfo-text-wide";
|
|
48
|
-
setTooltipsInfoColor(): string;
|
|
49
|
-
setTooltipsInfoIcon(displayIcon?: string): void;
|
|
50
|
-
setTooltipsDisplayText(displayText?: string): void;
|
|
51
|
-
setTooltipsInfoSideBySide(): "ion-row divtextbox tooltipsinfo-right" | "ion-row divtextbox";
|
|
52
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZtextComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZtextComponent, "app-ztext", never, {
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZtextComponent, "app-ztext", never, {}, {}, never, never>;
|
|
54
26
|
}
|
|
@@ -1,36 +1,18 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import { FormGroup } from '@angular/forms';
|
|
4
3
|
/********** Ionic **********/
|
|
5
4
|
/********** Plugin **********/
|
|
6
5
|
/********** Component & Service **********/
|
|
7
|
-
import { ZComponent
|
|
6
|
+
import { ZComponent } from 'mmhglobal-zcore';
|
|
7
|
+
import { InputFieldBase } from '../components/inputfieldbase.component';
|
|
8
|
+
import { ZComponentService } from '../services/zcomponent.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ZtextareaComponent implements ZComponent, OnInit {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
form: FormGroup;
|
|
13
|
-
defaultResizable: string;
|
|
14
|
-
itemValueField: string;
|
|
15
|
-
itemTextField: string;
|
|
16
|
-
itemDataField: string;
|
|
17
|
-
itemTemplate: string;
|
|
18
|
-
infinitezData: Array<any>;
|
|
19
|
-
infiniteSearchText: any;
|
|
20
|
-
modelzData: Array<any>;
|
|
21
|
-
componentProperties: ZComponentProperties;
|
|
22
|
-
constructor();
|
|
10
|
+
export declare class ZtextareaComponent extends InputFieldBase implements ZComponent, OnInit {
|
|
11
|
+
constructor(compService: ZComponentService);
|
|
12
|
+
charCounterDisplayStr: string;
|
|
23
13
|
ngOnInit(): void;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
setRequire: (status: boolean) => void;
|
|
27
|
-
onValueChange(value: any): void;
|
|
28
|
-
private onChangeEvent;
|
|
29
|
-
getReadOnlyValue(): any;
|
|
30
|
-
isMobileScreen(): boolean;
|
|
31
|
-
getIon_InvalidClass(form: FormGroup, data: ZField): string;
|
|
32
|
-
getClass(form: FormGroup, data: ZField): string;
|
|
33
|
-
onClick(): void;
|
|
14
|
+
private setCharCounterDisplayStr;
|
|
15
|
+
onChange(event: any, fieldValue?: any): void;
|
|
34
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZtextareaComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZtextareaComponent, "app-ztextarea", never, {
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZtextareaComponent, "app-ztextarea", never, {}, {}, never, never>;
|
|
36
18
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit, ElementRef, AfterViewInit } from "@angular/core";
|
|
3
|
-
import { FormGroup } from "@angular/forms";
|
|
4
3
|
/********** Ionic **********/
|
|
5
4
|
/********** Plugin **********/
|
|
6
5
|
import { TreeItemDropEvent, TreeItemDragEvent } from "@progress/kendo-angular-treeview";
|
|
7
6
|
/********** Component & Service **********/
|
|
8
|
-
import { ZComponent,
|
|
7
|
+
import { ZComponent, ZField, ZGroup } from "mmhglobal-zcore";
|
|
8
|
+
import { DataListingFieldBase } from "../components/datalistingfieldbase.component";
|
|
9
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ZtreeComponent implements ZComponent, OnInit, AfterViewInit {
|
|
11
|
-
data: ZField;
|
|
12
|
-
group: ZGroup;
|
|
13
|
-
form: FormGroup;
|
|
11
|
+
export declare class ZtreeComponent extends DataListingFieldBase implements ZComponent, OnInit, AfterViewInit {
|
|
14
12
|
nodetemplate: ElementRef;
|
|
15
13
|
items: Array<any>;
|
|
16
14
|
originalItemList: any;
|
|
@@ -23,8 +21,7 @@ export declare class ZtreeComponent implements ZComponent, OnInit, AfterViewInit
|
|
|
23
21
|
itemIndex: any[];
|
|
24
22
|
selectedKeys: any[];
|
|
25
23
|
absoluteText: boolean;
|
|
26
|
-
|
|
27
|
-
constructor();
|
|
24
|
+
constructor(compService: ZComponentService);
|
|
28
25
|
ngOnInit(): void;
|
|
29
26
|
ngAfterViewInit(): void;
|
|
30
27
|
getItems(): any;
|
|
@@ -37,9 +34,6 @@ export declare class ZtreeComponent implements ZComponent, OnInit, AfterViewInit
|
|
|
37
34
|
private expandAllNode;
|
|
38
35
|
handleCollapse(node: any): void;
|
|
39
36
|
handleExpand(node: any): void;
|
|
40
|
-
setEnable: (status: boolean) => void;
|
|
41
|
-
setVisible: (status: boolean) => void;
|
|
42
|
-
setRequire: (status: boolean) => void;
|
|
43
37
|
getTemplate(dataItem: any, data: ZField, group: ZGroup): any;
|
|
44
38
|
convertToTreeItems(dataSet: any[]): any[];
|
|
45
39
|
onSelectionChange(event: any): void;
|
|
@@ -54,5 +48,5 @@ export declare class ZtreeComponent implements ZComponent, OnInit, AfterViewInit
|
|
|
54
48
|
private search;
|
|
55
49
|
private contains;
|
|
56
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZtreeComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZtreeComponent, "app-ztree", never, {
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZtreeComponent, "app-ztree", never, {}, {}, never, never>;
|
|
58
52
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit, OnDestroy } from "@angular/core";
|
|
3
|
-
import { FormGroup } from "@angular/forms";
|
|
4
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
4
|
/********** Ionic **********/
|
|
6
5
|
/********** Plugin **********/
|
|
7
6
|
import { Subscription, Subject } from 'rxjs';
|
|
8
7
|
import { CellClickEvent, ScrollMode } from '@progress/kendo-angular-treelist';
|
|
9
8
|
/********** Component & Service **********/
|
|
10
|
-
import { ZComponent,
|
|
9
|
+
import { ZComponent, FieldService, WebApiService, AuthService } from "mmhglobal-zcore";
|
|
10
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
11
|
+
import { DataListingFieldBase } from "../components/datalistingfieldbase.component";
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export interface ZTreeListColumn {
|
|
13
14
|
field: string;
|
|
@@ -41,40 +42,27 @@ export declare class ZTreeListOptions {
|
|
|
41
42
|
pageAble?: any;
|
|
42
43
|
constructor(sortable?: boolean, resizable?: boolean, filterable?: boolean, reorderable?: boolean, columnMenu?: boolean, scrollable?: ScrollMode, refresh?: boolean, autoBind?: boolean, dataSource?: string, dataBound?: any, idField?: string, parentIdField?: string, columns?: Array<any>, aggregate?: any, pageAble?: any);
|
|
43
44
|
}
|
|
44
|
-
export declare class ZtreelistComponent implements ZComponent, OnInit, OnDestroy {
|
|
45
|
+
export declare class ZtreelistComponent extends DataListingFieldBase implements ZComponent, OnInit, OnDestroy {
|
|
45
46
|
private fieldService;
|
|
46
47
|
private webapiService;
|
|
47
48
|
private activatedRoute;
|
|
48
49
|
private router;
|
|
49
50
|
private authService;
|
|
50
|
-
data: ZField;
|
|
51
|
-
group: ZGroup;
|
|
52
|
-
form: FormGroup;
|
|
53
51
|
ztreelist: any;
|
|
54
52
|
subscription: Subscription;
|
|
55
|
-
dataSource:
|
|
53
|
+
dataSource: any;
|
|
56
54
|
idField: string;
|
|
57
55
|
parentIdField: string;
|
|
58
56
|
options: ZTreeListOptions;
|
|
59
|
-
|
|
57
|
+
gridBtn: any;
|
|
60
58
|
fieldgridColVisible: any[];
|
|
61
59
|
pageSize: number;
|
|
62
|
-
inlineEditedFormGroups:
|
|
60
|
+
inlineEditedFormGroups: {};
|
|
63
61
|
isLoading: boolean;
|
|
64
62
|
treelistSubject: Subject<any>;
|
|
65
|
-
|
|
66
|
-
private heightReduce;
|
|
67
|
-
constructor(fieldService: FieldService, webapiService: WebApiService, activatedRoute: ActivatedRoute, router: Router, authService: AuthService);
|
|
63
|
+
constructor(compService: ZComponentService, fieldService: FieldService, webapiService: WebApiService, activatedRoute: ActivatedRoute, router: Router, authService: AuthService);
|
|
68
64
|
ngOnInit(): void;
|
|
69
65
|
ngOnDestroy(): void;
|
|
70
|
-
getGridStyle(): {
|
|
71
|
-
"height.px": number;
|
|
72
|
-
"width.px": number;
|
|
73
|
-
};
|
|
74
|
-
private getGridHeight;
|
|
75
|
-
setEnable: (status: boolean) => void;
|
|
76
|
-
setVisible: (status: boolean) => void;
|
|
77
|
-
setRequire: (status: boolean) => void;
|
|
78
66
|
setData: (gData: any) => void;
|
|
79
67
|
isButtonHidden(col: any, cellContain: any): any;
|
|
80
68
|
buttonClick(button: any, cellContext: any): void;
|
|
@@ -91,18 +79,20 @@ export declare class ZtreelistComponent implements ZComponent, OnInit, OnDestroy
|
|
|
91
79
|
private getResouceURL;
|
|
92
80
|
cellClickHandler(event: CellClickEvent): void;
|
|
93
81
|
private editModel;
|
|
94
|
-
private createFormControlsForInlineEdit;
|
|
95
|
-
getInlineField(value: any): any;
|
|
96
|
-
getInlineForm(dataItem: any): any;
|
|
97
|
-
isInlineEditColVisible(dataItem: any, column: any): boolean;
|
|
98
82
|
getFormat(col: any): string;
|
|
99
83
|
setHeaderText(columnName: string, newHeaderTitle: string): void;
|
|
100
84
|
getColClass(dataItem: any, col: any): string;
|
|
101
|
-
setGridIsLoading(triggered: boolean): void;
|
|
102
85
|
onFilterChange(event: any): void;
|
|
103
|
-
private mapFilterOperator;
|
|
104
86
|
filterable(value: any): boolean;
|
|
105
87
|
sortable(value: any): boolean;
|
|
88
|
+
addNew(): void;
|
|
89
|
+
refreshData(): void;
|
|
90
|
+
private setupGridButtons;
|
|
91
|
+
private createFormControlsForInlineEdit;
|
|
92
|
+
getInlineField(value: any): any;
|
|
93
|
+
getInlineForm(data: any, rowIndex: number): any;
|
|
94
|
+
getFormControlData(value: any): any[];
|
|
95
|
+
isInlineEditColVisible(dataItem: any, column: any): boolean;
|
|
106
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZtreelistComponent, never>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZtreelistComponent, "app-ztreelist", never, {
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZtreelistComponent, "app-ztreelist", never, {}, {}, never, never>;
|
|
108
98
|
}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
2
|
import { OnInit, NgZone } from "@angular/core";
|
|
3
|
-
import { FormGroup } from "@angular/forms";
|
|
4
3
|
import { FileInfo, SuccessEvent, RemoveEvent, UploadEvent, FileRestrictions, ChunkSettings, SelectEvent, UploadComponent } from "@progress/kendo-angular-upload";
|
|
5
4
|
/********** Component & Service **********/
|
|
6
|
-
import { AuthService, ZCoreService, CompressImageService, ZComponent
|
|
5
|
+
import { AuthService, ZCoreService, CompressImageService, ZComponent } from "mmhglobal-zcore";
|
|
6
|
+
import { ZComponentService } from "../services/zcomponent.service";
|
|
7
|
+
import { InputFieldBase } from "../components/inputfieldbase.component";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class MyFileInfo implements FileInfo {
|
|
9
10
|
name: string;
|
|
10
11
|
uid?: string;
|
|
11
12
|
myUid?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare class ZuploadComponent implements ZComponent, OnInit {
|
|
14
|
+
export declare class ZuploadComponent extends InputFieldBase implements ZComponent, OnInit {
|
|
14
15
|
private authService;
|
|
15
16
|
private compressImage;
|
|
16
17
|
private zcoreService;
|
|
17
18
|
private ngZone;
|
|
18
|
-
data: ZField;
|
|
19
|
-
group: ZGroup;
|
|
20
|
-
form: FormGroup;
|
|
21
19
|
uploadComponent: UploadComponent;
|
|
22
|
-
componentProperties: ZComponentProperties;
|
|
23
20
|
uploadAttachmentUrl: string;
|
|
24
21
|
uploadSaveUrl: string;
|
|
25
22
|
uploadRemoveUrl: string;
|
|
@@ -33,12 +30,8 @@ export declare class ZuploadComponent implements ZComponent, OnInit {
|
|
|
33
30
|
fileList: any[];
|
|
34
31
|
restrictions: FileRestrictions;
|
|
35
32
|
chunkSettings: ChunkSettings;
|
|
36
|
-
constructor(authService: AuthService, compressImage: CompressImageService, zcoreService: ZCoreService, ngZone: NgZone);
|
|
33
|
+
constructor(compService: ZComponentService, authService: AuthService, compressImage: CompressImageService, zcoreService: ZCoreService, ngZone: NgZone);
|
|
37
34
|
ngOnInit(): void;
|
|
38
|
-
setEnable: (status: boolean) => void;
|
|
39
|
-
setVisible: (status: boolean) => void;
|
|
40
|
-
setRequire: (status: boolean) => void;
|
|
41
|
-
getIon_InvalidClass(form: FormGroup, data: ZField): string;
|
|
42
35
|
onSuccess(e: SuccessEvent): void;
|
|
43
36
|
private compressionConfigHandler;
|
|
44
37
|
private convertSizeToByte;
|
|
@@ -48,5 +41,5 @@ export declare class ZuploadComponent implements ZComponent, OnInit {
|
|
|
48
41
|
selectEventHandler(e: SelectEvent): void;
|
|
49
42
|
clearFiles(): void;
|
|
50
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZuploadComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZuploadComponent, "app-zupload", never, {
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZuploadComponent, "app-zupload", never, {}, {}, never, never>;
|
|
52
45
|
}
|