mmhglobal-dynamicform 2.37.2 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/esm2020/lib/components/datalistingfieldbase.component.mjs +75 -2
- package/esm2020/lib/sfdatetimepicker/sfdatetimepicker.component.mjs +60 -6
- package/esm2020/lib/zgrid/container/zgrid-container.component.mjs +7 -7
- package/esm2020/lib/zgrid/date-range-cell-filter.component.mjs +10 -10
- package/esm2020/lib/zgrid/zgrid.component.mjs +67 -92
- package/esm2020/lib/ztreelist/ztreelist.component.mjs +58 -111
- package/esm2020/lib/zudf/zudf.component.mjs +2 -2
- package/fesm2015/mmhglobal-dynamicform.mjs +247 -197
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +246 -197
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/lib/components/datalistingfieldbase.component.d.ts +7 -0
- package/lib/sfdatetimepicker/sfdatetimepicker.component.d.ts +10 -2
- package/lib/zgrid/container/zgrid-container.component.d.ts +5 -5
- package/lib/zgrid/date-range-cell-filter.component.d.ts +2 -2
- package/lib/zgrid/zgrid.component.d.ts +11 -14
- package/lib/ztreelist/ztreelist.component.d.ts +4 -7
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { EventEmitter } from "@angular/core";
|
|
|
3
3
|
/********** Ionic **********/
|
|
4
4
|
/********** Plugin **********/
|
|
5
5
|
import { Observable } from "rxjs";
|
|
6
|
+
import { TooltipDirective } from "@progress/kendo-angular-tooltip";
|
|
6
7
|
/********** Component & Service **********/
|
|
7
8
|
import { FieldBase } from "./fieldbase.component";
|
|
8
9
|
import { ZComponentService } from "../services/zcomponent.service";
|
|
@@ -15,6 +16,7 @@ export declare class DataListingFieldBase extends FieldBase {
|
|
|
15
16
|
showFormPage: EventEmitter<boolean>;
|
|
16
17
|
private popovercontainer;
|
|
17
18
|
dataItemContextMenu: ContextMenuComponent;
|
|
19
|
+
tooltipDir: TooltipDirective;
|
|
18
20
|
protected popoverData: any[];
|
|
19
21
|
toolbarItemList: {
|
|
20
22
|
name: string;
|
|
@@ -39,6 +41,11 @@ export declare class DataListingFieldBase extends FieldBase {
|
|
|
39
41
|
private getPopOverContentByCol;
|
|
40
42
|
private getPopOverContent;
|
|
41
43
|
private parsePopoverObject;
|
|
44
|
+
showTooltip(e: MouseEvent): void;
|
|
45
|
+
private isCommandColumn;
|
|
46
|
+
private getTargetCell;
|
|
47
|
+
private calculateVisibleWidth;
|
|
48
|
+
private calculateTooltipWidth;
|
|
42
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataListingFieldBase, never>;
|
|
43
50
|
static ɵcmp: i0.ɵɵComponentDeclaration<DataListingFieldBase, "ng-component", never, {}, { "showFormPage": "showFormPage"; }, never, never>;
|
|
44
51
|
}
|
|
@@ -3,10 +3,11 @@ import { OnInit } from "@angular/core";
|
|
|
3
3
|
/********** Ionic **********/
|
|
4
4
|
/********** Plugin **********/
|
|
5
5
|
import { DateTimePicker } from "@syncfusion/ej2-angular-calendars";
|
|
6
|
+
import { FormValidator } from '@syncfusion/ej2-inputs';
|
|
6
7
|
/********** Component & Service **********/
|
|
7
8
|
import { InputFieldBase } from "../components/inputfieldbase.component";
|
|
8
9
|
import { ZComponentService } from "../services/zcomponent.service";
|
|
9
|
-
import { ZComponent } from "mmhglobal-zcore";
|
|
10
|
+
import { ZComponent, ZField } from "mmhglobal-zcore";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class SfdatetimepickerComponent extends InputFieldBase implements ZComponent, OnInit {
|
|
12
13
|
sfdatetimepicker: DateTimePicker;
|
|
@@ -14,10 +15,17 @@ export declare class SfdatetimepickerComponent extends InputFieldBase implements
|
|
|
14
15
|
maxDate: Date;
|
|
15
16
|
interval: number;
|
|
16
17
|
disableStrictMode: boolean;
|
|
18
|
+
formObject?: FormValidator;
|
|
17
19
|
constructor(componentService: ZComponentService);
|
|
18
20
|
ngOnInit(): void;
|
|
19
21
|
ngAfterViewInit(): void;
|
|
20
|
-
|
|
22
|
+
private convertDateTimeValueToString;
|
|
23
|
+
private setDateRange;
|
|
24
|
+
updateElementClasses(form: any, fieldData: ZField): void;
|
|
25
|
+
private updateInputElements;
|
|
26
|
+
private updateTextboxElements;
|
|
27
|
+
onChange(args: any): void;
|
|
28
|
+
private parseAnyValueToDate;
|
|
21
29
|
private setMinAndMaxDateRange;
|
|
22
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<SfdatetimepickerComponent, never>;
|
|
23
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<SfdatetimepickerComponent, "app-sfdatetimepicker", never, {}, {}, never, never>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
|
-
import { OnInit, OnDestroy } from
|
|
3
|
-
import { DrawerComponent } from
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { DrawerComponent } from '@progress/kendo-angular-layout';
|
|
4
4
|
/********** Component & Service **********/
|
|
5
|
-
import { FieldBase } from
|
|
6
|
-
import { ZComponentService } from
|
|
7
|
-
import { MainService } from
|
|
5
|
+
import { FieldBase } from '../../components/fieldbase.component';
|
|
6
|
+
import { ZComponentService } from '../../services/zcomponent.service';
|
|
7
|
+
import { MainService } from '../../services/main.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ZgridContainerComponent extends FieldBase implements OnInit, OnDestroy {
|
|
10
10
|
componentService: ZComponentService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseFilterCellComponent, FilterService } from
|
|
2
|
-
import { ZField } from
|
|
1
|
+
import { BaseFilterCellComponent, FilterService } from '@progress/kendo-angular-grid';
|
|
2
|
+
import { ZField } from 'mmhglobal-zcore';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DateRangeFilterCellComponent extends BaseFilterCellComponent {
|
|
5
5
|
filter: any;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
|
-
import { OnInit, OnDestroy, AfterViewChecked, ChangeDetectorRef } from
|
|
2
|
+
import { OnInit, OnDestroy, AfterViewChecked, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
4
|
-
import { ActivatedRoute, Router } from
|
|
4
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
/********** Ionic **********/
|
|
6
6
|
/********** Plugin **********/
|
|
7
|
-
import { Observable, Subject, Subscription } from
|
|
7
|
+
import { Observable, Subject, Subscription } from 'rxjs';
|
|
8
8
|
import { ExcelExportData } from '@progress/kendo-angular-excel-export';
|
|
9
9
|
import { GridItem, SelectableSettings } from '@progress/kendo-angular-grid';
|
|
10
|
-
import { SortDescriptor, State } from
|
|
11
|
-
import {
|
|
12
|
-
import { GridDataResult, DataStateChangeEvent, PageChangeEvent, CellClickEvent, RowArgs } from "@progress/kendo-angular-grid";
|
|
10
|
+
import { SortDescriptor, State } from '@progress/kendo-data-query';
|
|
11
|
+
import { GridDataResult, DataStateChangeEvent, PageChangeEvent, CellClickEvent, RowArgs } from '@progress/kendo-angular-grid';
|
|
13
12
|
/********** Component & Service **********/
|
|
14
|
-
import { DataListingFieldBase } from
|
|
15
|
-
import { ZComponentService } from
|
|
16
|
-
import { MainService } from
|
|
17
|
-
import { ElementContainerDirective } from
|
|
18
|
-
import { ZGridBindingDirective } from
|
|
19
|
-
import { ZGridService } from
|
|
13
|
+
import { DataListingFieldBase } from '../components/datalistingfieldbase.component';
|
|
14
|
+
import { ZComponentService } from '../services/zcomponent.service';
|
|
15
|
+
import { MainService } from '../services/main.service';
|
|
16
|
+
import { ElementContainerDirective } from '../directives/elementcontainer.directive';
|
|
17
|
+
import { ZGridBindingDirective } from './zgrid.binding.directive';
|
|
18
|
+
import { ZGridService } from './zgrid.service';
|
|
20
19
|
import { WebApiService, ToastService, ZField, ZGroup, ZComponent, ZComponentOutputEvent, ZCoreService, StorageSessionService, FontAweSomeService, ZGridPostApiParams, ZGridSettings, ZGridCustomColumn, ResourceApiService, AuthService, StateSettingService, AlertService } from 'mmhglobal-zcore';
|
|
21
20
|
import * as i0 from "@angular/core";
|
|
22
21
|
export interface ZGrid {
|
|
@@ -53,7 +52,6 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
53
52
|
private resourceApiService;
|
|
54
53
|
private authService;
|
|
55
54
|
private alertService;
|
|
56
|
-
tooltipDir: TooltipDirective;
|
|
57
55
|
elementContainer: ElementContainerDirective;
|
|
58
56
|
zgrid: any;
|
|
59
57
|
oauthUrl: string;
|
|
@@ -116,7 +114,6 @@ export declare class ZgridComponent extends DataListingFieldBase implements ZCom
|
|
|
116
114
|
refreshGrid(event: ZComponentOutputEvent, group: ZGroup, me: any): void;
|
|
117
115
|
refreshData(): void;
|
|
118
116
|
clearData(): void;
|
|
119
|
-
showTooltip(e: MouseEvent): void;
|
|
120
117
|
truncateText(text: string, limit?: number): string;
|
|
121
118
|
rowSelectionKey: (context: RowArgs) => any;
|
|
122
119
|
getSelectedValues(): any;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/********** Angular **********/
|
|
2
|
-
import { OnInit, OnDestroy } from
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
/********** Ionic **********/
|
|
5
5
|
/********** Plugin **********/
|
|
6
6
|
import { Observable, Subscription, Subject } from 'rxjs';
|
|
7
7
|
import { CellClickEvent, ExpandEvent, ScrollMode } from '@progress/kendo-angular-treelist';
|
|
8
8
|
/********** Component & Service **********/
|
|
9
|
-
import { DataListingFieldBase } from
|
|
10
|
-
import { ZComponentService } from
|
|
11
|
-
import { FieldService, WebApiService, AuthService, ZComponent, ZField, ZGroup } from
|
|
12
|
-
import { TooltipDirective } from "@progress/kendo-angular-tooltip";
|
|
9
|
+
import { DataListingFieldBase } from '../components/datalistingfieldbase.component';
|
|
10
|
+
import { ZComponentService } from '../services/zcomponent.service';
|
|
11
|
+
import { FieldService, WebApiService, AuthService, ZComponent, ZField, ZGroup } from 'mmhglobal-zcore';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
export interface ZTreeListColumn {
|
|
15
14
|
field: string;
|
|
@@ -51,7 +50,6 @@ export declare class ZtreelistComponent extends DataListingFieldBase implements
|
|
|
51
50
|
private activatedRoute;
|
|
52
51
|
private router;
|
|
53
52
|
private authService;
|
|
54
|
-
tooltipDir: TooltipDirective;
|
|
55
53
|
ztreelist: any;
|
|
56
54
|
subscription: Subscription;
|
|
57
55
|
dataSource: any;
|
|
@@ -98,7 +96,6 @@ export declare class ZtreelistComponent extends DataListingFieldBase implements
|
|
|
98
96
|
addNew(): void;
|
|
99
97
|
refreshData(): void;
|
|
100
98
|
private setupGridButtons;
|
|
101
|
-
showTooltip(e: MouseEvent): void;
|
|
102
99
|
private createFormControlsForInlineEdit;
|
|
103
100
|
getInlineField(value: any): any;
|
|
104
101
|
getInlineForm(data: any, rowIndex: number): any;
|