@zeedhi/common 1.38.1 → 1.41.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/dist/style.css +1 -1
- package/dist/zd-common.esm.js +614 -190
- package/dist/zd-common.umd.js +619 -193
- package/package.json +2 -2
- package/types/components/zd-alert/alert.d.ts +2 -0
- package/types/components/zd-apex-chart/apex-chart.d.ts +11 -0
- package/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -8
- package/types/components/zd-button/button.d.ts +0 -8
- package/types/components/zd-button/interfaces.d.ts +0 -2
- package/types/components/zd-button-group/button-group.d.ts +0 -8
- package/types/components/zd-button-group/interfaces.d.ts +0 -2
- package/types/components/zd-card/card.d.ts +0 -8
- package/types/components/zd-card/interfaces.d.ts +0 -2
- package/types/components/zd-carousel/carousel.d.ts +0 -8
- package/types/components/zd-carousel/interfaces.d.ts +0 -2
- package/types/components/zd-component/component.d.ts +8 -0
- package/types/components/zd-component/interfaces.d.ts +2 -0
- package/types/components/zd-date/date-range.d.ts +1 -5
- package/types/components/zd-divider/divider.d.ts +0 -8
- package/types/components/zd-divider/interfaces.d.ts +0 -2
- package/types/components/zd-footer/footer.d.ts +0 -8
- package/types/components/zd-footer/interfaces.d.ts +0 -2
- package/types/components/zd-form/form.d.ts +10 -1
- package/types/components/zd-frame/frame.d.ts +1 -0
- package/types/components/zd-grid/grid-column.d.ts +2 -0
- package/types/components/zd-grid/grid-editable.d.ts +1 -1
- package/types/components/zd-grid/grid.d.ts +4 -0
- package/types/components/zd-grid/interfaces.d.ts +1 -0
- package/types/components/zd-header/header.d.ts +0 -8
- package/types/components/zd-icon/icon.d.ts +0 -8
- package/types/components/zd-icon/interfaces.d.ts +0 -2
- package/types/components/zd-input/input.d.ts +0 -8
- package/types/components/zd-iterable/column.d.ts +4 -2
- package/types/components/zd-list/interfaces.d.ts +0 -2
- package/types/components/zd-list/list.d.ts +0 -8
- package/types/components/zd-login/interfaces.d.ts +0 -1
- package/types/components/zd-login/login.d.ts +0 -4
- package/types/components/zd-menu/interfaces.d.ts +0 -1
- package/types/components/zd-menu/menu.d.ts +0 -4
- package/types/components/zd-progress/progress.d.ts +0 -8
- package/types/components/zd-select/select.d.ts +1 -0
- package/types/components/zd-select-multiple/select-multiple.d.ts +4 -0
- package/types/components/zd-select-tree/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree/select-tree.d.ts +6 -0
- package/types/components/zd-selectable-list/interfaces.d.ts +7 -0
- package/types/components/zd-selectable-list/selectable-list.d.ts +29 -0
- package/types/components/zd-steppers/interfaces.d.ts +0 -2
- package/types/components/zd-steppers/steppers.d.ts +0 -8
- package/types/components/zd-tree-grid/interfaces.d.ts +3 -1
- package/types/components/zd-tree-grid/tree-grid-editable.d.ts +4 -3
- package/types/utils/report/index.d.ts +2 -0
- package/types/utils/report/report-type/base-report.d.ts +3 -1
- package/types/utils/report/report-type/interfaces.d.ts +8 -2
- package/types/utils/report/report-type/xls-report.d.ts +1 -0
- package/types/utils/report/report-type/xls2-report.d.ts +16 -0
- package/types/utils/report/report-type/xls3-report.d.ts +16 -0
|
@@ -68,6 +68,10 @@ export declare class SelectTree extends TextInput implements ISelectTree {
|
|
|
68
68
|
* Defines if field value should be an object
|
|
69
69
|
*/
|
|
70
70
|
returnObject: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Prevents load select data when the input is focused
|
|
73
|
+
*/
|
|
74
|
+
preventLoadOnFocus: boolean;
|
|
71
75
|
/**
|
|
72
76
|
* Field used to make the item disabled
|
|
73
77
|
*/
|
|
@@ -90,6 +94,8 @@ export declare class SelectTree extends TextInput implements ISelectTree {
|
|
|
90
94
|
* @param props
|
|
91
95
|
*/
|
|
92
96
|
constructor(props: ISelectTree);
|
|
97
|
+
focus(event: Event, element: HTMLElement): Promise<void>;
|
|
98
|
+
protected afterFocus(): Promise<void>;
|
|
93
99
|
private createDataStructure;
|
|
94
100
|
/** create nodes from datasource object */
|
|
95
101
|
createNodesFromDatasource(buildTree?: boolean): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ISelectableList } from './interfaces';
|
|
2
|
+
import { List } from '../zd-list/list';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for SelectableList component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SelectableList extends List implements ISelectableList {
|
|
7
|
+
/**
|
|
8
|
+
* Applies specified css class to the selected item
|
|
9
|
+
*/
|
|
10
|
+
activeClass?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Specifies whether at least one element must be selected
|
|
13
|
+
*/
|
|
14
|
+
mandatory: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Defines the maximum number of elements the list has
|
|
17
|
+
*/
|
|
18
|
+
max?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the maximum number of elements the list has
|
|
21
|
+
*/
|
|
22
|
+
value?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Defines how many elements of the list can be selected at the same time
|
|
25
|
+
*/
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
constructor(props: ISelectableList);
|
|
28
|
+
change(event?: Event, element?: HTMLElement): void;
|
|
29
|
+
}
|
|
@@ -20,14 +20,6 @@ export declare class Steppers extends ComponentRender implements ISteppers {
|
|
|
20
20
|
* Array of steppers items
|
|
21
21
|
*/
|
|
22
22
|
items: ISteppersStep[];
|
|
23
|
-
/**
|
|
24
|
-
* Applies the dark theme variant to the stepper
|
|
25
|
-
*/
|
|
26
|
-
dark: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Applies the light theme variant to the stepper
|
|
29
|
-
*/
|
|
30
|
-
light: boolean;
|
|
31
23
|
/**
|
|
32
24
|
* Allow user to jump to any step
|
|
33
25
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { IGrid } from '../zd-grid/interfaces';
|
|
1
|
+
import { IGrid, IGridEditable } from '../zd-grid/interfaces';
|
|
2
2
|
export interface ITreeGrid extends IGrid {
|
|
3
3
|
parentField?: string;
|
|
4
4
|
openLevelOnLoad?: number | boolean;
|
|
5
5
|
fetchOnDemand?: boolean;
|
|
6
6
|
}
|
|
7
|
+
export interface ITreeGridEditable extends IGridEditable {
|
|
8
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IDictionary } from '@zeedhi/core';
|
|
2
2
|
import { TreeGrid } from './tree-grid';
|
|
3
3
|
import { GridColumnEditable } from '../zd-grid/grid-column-editable';
|
|
4
|
-
import { IGridColumnEditable
|
|
5
|
-
|
|
4
|
+
import { IGridColumnEditable } from '../zd-grid/interfaces';
|
|
5
|
+
import { ITreeGridEditable } from './interfaces';
|
|
6
|
+
export declare class TreeGridEditable extends TreeGrid implements ITreeGridEditable {
|
|
6
7
|
/**
|
|
7
8
|
* Editable columns
|
|
8
9
|
*/
|
|
@@ -25,7 +26,7 @@ export declare class TreeGridEditable extends TreeGrid implements IGridEditable
|
|
|
25
26
|
* Enter edit mode on double click
|
|
26
27
|
*/
|
|
27
28
|
doubleClickEdit: boolean;
|
|
28
|
-
constructor(props:
|
|
29
|
+
constructor(props: ITreeGridEditable);
|
|
29
30
|
/**
|
|
30
31
|
* Get Grid columns objects
|
|
31
32
|
* @param columns Grid columns parameter
|
|
@@ -3,4 +3,6 @@ export * from './interfaces';
|
|
|
3
3
|
export * from './report-type/csv-report';
|
|
4
4
|
export * from './report-type/pdf-report';
|
|
5
5
|
export * from './report-type/xls-report';
|
|
6
|
+
export * from './report-type/xls2-report';
|
|
7
|
+
export * from './report-type/xls3-report';
|
|
6
8
|
export * from './report-type/interfaces';
|
|
@@ -3,7 +3,7 @@ import { IColumn } from '../../../components';
|
|
|
3
3
|
import { IReportType, MetadataColumn, MetadataFilter } from './interfaces';
|
|
4
4
|
export declare abstract class BaseReport implements IReportType {
|
|
5
5
|
abstract route: string;
|
|
6
|
-
abstract buildDataset(data: IDictionary<any>[],
|
|
6
|
+
abstract buildDataset(data: IDictionary<any>[], metadata?: any): any;
|
|
7
7
|
abstract buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>, portrait?: boolean): Promise<any>;
|
|
8
8
|
protected buildColumns(columns: IColumn[]): MetadataColumn;
|
|
9
9
|
private isNumberComponent;
|
|
@@ -11,4 +11,6 @@ export declare abstract class BaseReport implements IReportType {
|
|
|
11
11
|
private getFormatOfColumn;
|
|
12
12
|
protected buildFilter(filter: IDictionary): MetadataFilter;
|
|
13
13
|
protected formatLangCode(lang?: string): string;
|
|
14
|
+
protected expressionZeedhiToXls: any;
|
|
15
|
+
protected colunmXLS: string;
|
|
14
16
|
}
|
|
@@ -2,7 +2,9 @@ import { IDictionary } from '@zeedhi/core';
|
|
|
2
2
|
import { IColumn } from '../../../components';
|
|
3
3
|
export interface IReportType {
|
|
4
4
|
readonly route: string;
|
|
5
|
-
|
|
5
|
+
type?: string;
|
|
6
|
+
buildDataset(data: IDictionary[], metadata: any): any;
|
|
7
|
+
buildDataset(data: IDictionary[], metadata?: any, columns?: IColumn[]): any;
|
|
6
8
|
buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary, portrait?: boolean): Promise<any>;
|
|
7
9
|
}
|
|
8
10
|
export declare type MetadataColumn = IDictionary<{
|
|
@@ -10,6 +12,7 @@ export declare type MetadataColumn = IDictionary<{
|
|
|
10
12
|
description: string;
|
|
11
13
|
sequence: number;
|
|
12
14
|
size: string;
|
|
15
|
+
expression?: string;
|
|
13
16
|
}>;
|
|
14
17
|
export declare type MetadataFilter = {
|
|
15
18
|
label: string;
|
|
@@ -34,5 +37,8 @@ export interface IMetadataObj {
|
|
|
34
37
|
Version: string;
|
|
35
38
|
};
|
|
36
39
|
staticData: {};
|
|
37
|
-
groups:
|
|
40
|
+
groups: Array<any>;
|
|
41
|
+
reportXLS?: boolean;
|
|
42
|
+
type?: string;
|
|
43
|
+
xlsMergedCell?: any[];
|
|
38
44
|
}
|
|
@@ -4,5 +4,6 @@ import { BaseReport } from './base-report';
|
|
|
4
4
|
export declare class XLSReport extends BaseReport {
|
|
5
5
|
readonly route: string;
|
|
6
6
|
buildDataset(data: IDictionary<any>[], columns: IColumn[]): string;
|
|
7
|
+
private formatRawDataSet;
|
|
7
8
|
buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>): Promise<string>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { IColumn } from '../../../components';
|
|
3
|
+
import { BaseReport } from './base-report';
|
|
4
|
+
import { IMetadataObj } from './interfaces';
|
|
5
|
+
export declare class XLS2Report extends BaseReport {
|
|
6
|
+
readonly route: string;
|
|
7
|
+
buildDataset(data: IDictionary<any>[], metadata: IMetadataObj): string;
|
|
8
|
+
buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>): Promise<string>;
|
|
9
|
+
private getColumnsName;
|
|
10
|
+
private initVars;
|
|
11
|
+
private formatRowFunc;
|
|
12
|
+
private setRowGroup;
|
|
13
|
+
private setIndexGroups;
|
|
14
|
+
private setRowNormal;
|
|
15
|
+
formatDataSet(metaData: IMetadataObj, dataSet: IDictionary[]): any[][];
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDictionary } from '@zeedhi/core';
|
|
2
|
+
import { IColumn } from '../../../components';
|
|
3
|
+
import { BaseReport } from './base-report';
|
|
4
|
+
import { IMetadataObj } from './interfaces';
|
|
5
|
+
export declare class XLS3Report extends BaseReport {
|
|
6
|
+
readonly route: string;
|
|
7
|
+
buildDataset(data: IDictionary<any>[], metadata: IMetadataObj): string;
|
|
8
|
+
buildMetadata(name: string, title: string, columns: IColumn[], filter?: IDictionary<any>): Promise<string>;
|
|
9
|
+
private getColumnsNameFormat3;
|
|
10
|
+
private initVars;
|
|
11
|
+
private setRowGroupFormat;
|
|
12
|
+
private formatRowFunc;
|
|
13
|
+
private setIndexGroups;
|
|
14
|
+
private setRowNormal;
|
|
15
|
+
formatDataSet(metaData: IMetadataObj, dataSet: IDictionary[]): string[][];
|
|
16
|
+
}
|