ods-component-lib 1.18.102 → 1.18.103
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/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Constant.d.ts +17 -0
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Constants.d.ts +17 -0
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Functions.d.ts +11 -0
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Types.d.ts +99 -0
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.d.ts +5 -0
- package/dist/index.css +23 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1162 -36
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1163 -38
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/antd/form/OdsBasicForm.d.ts +0 -18
- package/dist/components/antd/icon/OdsIcon.d.ts +0 -10
- package/dist/components/antd/modal/OdsAdvanceModal.d.ts +0 -7
- package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +0 -7
- package/dist/components/antd/select/OdsMultiSelect.d.ts +0 -9
- package/dist/components/custom/OdsLogin.d.ts +0 -8
- package/dist/components/devextreme/DxDataPopupForm.d.ts +0 -3
- package/dist/components/devextreme/DynamicIcon.d.ts +0 -5
- package/dist/components/devextreme/OdsDataGridNew.d.ts +0 -56
- package/dist/components/devextreme/OdsProfDataGrid.d.ts +0 -3
- package/dist/components/devextreme/treeview/DxTreeView.d.ts +0 -3
- package/dist/stories/OdsAdvanceModal/OdsAdvanceModal.stories.d.ts +0 -42
- package/dist/stories/OdsAdvanceModal/Samples/BasicOdsAdvanceModal.sample.d.ts +0 -8
- package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +0 -9
- package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +0 -1
- package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +0 -1
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +0 -1
- package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +0 -2
- package/dist/utils/DynamicIcon.d.ts +0 -5
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare let constants: {
|
|
2
|
+
totalPageCount: number;
|
|
3
|
+
loadedPageCount: number;
|
|
4
|
+
totalRecordCount: number;
|
|
5
|
+
exportFormats: string[];
|
|
6
|
+
selectedCellBgColor: string;
|
|
7
|
+
allowedDataTypesForMultiCellEditing: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const columnSelectedFieds: {
|
|
10
|
+
dataField: string;
|
|
11
|
+
dataType: string;
|
|
12
|
+
caption: string;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const onCancelEditEvent: CustomEvent<{
|
|
16
|
+
rowData: any;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare let constants: {
|
|
2
|
+
totalPageCount: number;
|
|
3
|
+
loadedPageCount: number;
|
|
4
|
+
totalRecordCount: number;
|
|
5
|
+
exportFormats: string[];
|
|
6
|
+
selectedCellBgColor: string;
|
|
7
|
+
allowedDataTypesForMultiCellEditing: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const columnSelectedFieds: {
|
|
10
|
+
dataField: string;
|
|
11
|
+
dataType: string;
|
|
12
|
+
caption: string;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const onCancelEditEvent: CustomEvent<{
|
|
16
|
+
rowData: any;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { ICellInfo, IOdsDataGridProps, SummaryTypes } from "./OdsBasicDataGrid.Types";
|
|
3
|
+
export declare const checkCellSelectionConstraints: (e: any) => boolean;
|
|
4
|
+
export declare const cellAlreadySelected: (pkValue: any, dataField: string, cellInfos: ICellInfo[]) => boolean;
|
|
5
|
+
export declare const addNewFieldForFastUpdate: (data: any[]) => any[];
|
|
6
|
+
export declare const getRequestHeaders: (props: any) => Headers;
|
|
7
|
+
export declare const concatFilteredLabel: (result: string, totalloaded: number, filteredRowCount: number, filterApplied: boolean, props: any) => string;
|
|
8
|
+
export declare const showSummaryItems: (props: IOdsDataGridProps) => boolean;
|
|
9
|
+
export declare const getSummaryItems: (props: IOdsDataGridProps, columns: any[], grid: any, isMultiLevelColumn?: boolean) => ReactElement[];
|
|
10
|
+
export declare const getSummaryItem: (col: any, visibleIndex: number, summaryType: SummaryTypes, isMultiLevelColumn: boolean, label?: string) => ReactElement;
|
|
11
|
+
export declare const getMultiLevelColumns: (col: any) => any;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React, { MouseEventHandler } from "react";
|
|
2
|
+
import { ButtonType } from "antd/es/button/buttonHelpers";
|
|
3
|
+
import { IButtonProps, IDataGridOptions, IEditingProps, ISelectionProps, ISummaryProps } from "devextreme-react/data-grid";
|
|
4
|
+
export declare type SummaryTypes = "avg" | "count" | "custom" | "max" | "min" | "sum";
|
|
5
|
+
export interface IMultiCellEditableDataGridProps {
|
|
6
|
+
hasFastUpdate?: boolean;
|
|
7
|
+
fastUpdateButtonText?: string;
|
|
8
|
+
fastUpdateModalTitle?: string;
|
|
9
|
+
fastUpdateModalCancelText?: string;
|
|
10
|
+
fastUpdateModalSaveText?: string;
|
|
11
|
+
fastUpdateFormRequiredFieldMessage?: string;
|
|
12
|
+
onFastUpdateButtonClick?: MouseEventHandler<Element> | undefined;
|
|
13
|
+
onFastUpdateFinish?: (values: any, selectedCellInfo: ICellInfo[]) => void;
|
|
14
|
+
onFastUpdateCancel?: () => void;
|
|
15
|
+
onFastUpdateFailed?: (errorInfo: any) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface IOdsDataGridProps extends IDataGridOptions, IMultiCellEditableDataGridProps {
|
|
18
|
+
dataGridPageName?: string;
|
|
19
|
+
language: string;
|
|
20
|
+
exportFileName: string;
|
|
21
|
+
filterEnabledShow: boolean;
|
|
22
|
+
pageTitle?: string;
|
|
23
|
+
toolbarButtonGroup?: IButtonGroup[];
|
|
24
|
+
actionButtonGroup?: IButtonGroup[];
|
|
25
|
+
actionButtonGroupCaption?: string;
|
|
26
|
+
columns: any[];
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
actionColumnEnable: boolean;
|
|
29
|
+
selectOptions?: ISelectOptions;
|
|
30
|
+
columnChooserPositionDisabled?: boolean;
|
|
31
|
+
pagingEnable?: boolean;
|
|
32
|
+
edit?: IEditingoptions;
|
|
33
|
+
isServerSide?: boolean;
|
|
34
|
+
axiosRequest?: IAxiosProps;
|
|
35
|
+
customSummary?: ISummaryRowOptions;
|
|
36
|
+
handleEditorPreparing?: any;
|
|
37
|
+
isFilterRow?: boolean;
|
|
38
|
+
filterData?: any[];
|
|
39
|
+
detailGridColums?: any[];
|
|
40
|
+
showMasterDetail?: boolean;
|
|
41
|
+
detailData?: any;
|
|
42
|
+
}
|
|
43
|
+
export interface ISummaryRowOptions {
|
|
44
|
+
summaryLoadedDataLabel?: string;
|
|
45
|
+
summaryTotalDataLabel?: string;
|
|
46
|
+
summaryFilteredDataLabel?: string;
|
|
47
|
+
summaryItems?: ISummaryProps[];
|
|
48
|
+
summaryTotalCount?: number;
|
|
49
|
+
summaryTotalPageCountLabel?: string;
|
|
50
|
+
showSumInSummary?: boolean;
|
|
51
|
+
showAvgInSummary?: boolean;
|
|
52
|
+
showCountInSummary?: boolean;
|
|
53
|
+
showMaxInSummary?: boolean;
|
|
54
|
+
showMinInSummary?: boolean;
|
|
55
|
+
summarySumLabel?: string;
|
|
56
|
+
summaryAvgLabel?: string;
|
|
57
|
+
summaryMinLabel?: string;
|
|
58
|
+
summaryMaxLabel?: string;
|
|
59
|
+
summaryCountLabel?: string;
|
|
60
|
+
}
|
|
61
|
+
interface IAxiosProps {
|
|
62
|
+
token: string;
|
|
63
|
+
requestData?: any;
|
|
64
|
+
apiUrl: string;
|
|
65
|
+
environmentUrl: string;
|
|
66
|
+
requestQueryString?: any;
|
|
67
|
+
requestType: string;
|
|
68
|
+
}
|
|
69
|
+
interface IEditingoptions extends IEditingProps {
|
|
70
|
+
formItems?: any[];
|
|
71
|
+
title?: string;
|
|
72
|
+
}
|
|
73
|
+
interface ISelectOptions extends ISelectionProps {
|
|
74
|
+
selectEnable: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface IButtonGroup extends Omit<IButtonProps, 'icon'> {
|
|
77
|
+
icon?: JSX.Element;
|
|
78
|
+
type?: ButtonType;
|
|
79
|
+
label?: string;
|
|
80
|
+
actionPermission?: boolean;
|
|
81
|
+
onclick?: React.MouseEventHandler<HTMLElement>;
|
|
82
|
+
}
|
|
83
|
+
export interface ICellInfo {
|
|
84
|
+
dataField: string;
|
|
85
|
+
pkValue: any;
|
|
86
|
+
}
|
|
87
|
+
export interface ICellIndexInfo {
|
|
88
|
+
rowIndex: number;
|
|
89
|
+
colIndex: number;
|
|
90
|
+
}
|
|
91
|
+
export interface IMouseSelectionInfo {
|
|
92
|
+
cellInfo: ICellInfo;
|
|
93
|
+
isActive: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface ICustomizeInfo {
|
|
96
|
+
value: any;
|
|
97
|
+
valueText: string;
|
|
98
|
+
}
|
|
99
|
+
export {};
|
package/dist/index.css
CHANGED
|
@@ -158,6 +158,29 @@ tr._2CvVM._3Xrp3._19iuB._3udtX {
|
|
|
158
158
|
width: max-content;
|
|
159
159
|
display: inline-block;
|
|
160
160
|
}
|
|
161
|
+
._pfzj_ {
|
|
162
|
+
background-color: lightgreen;
|
|
163
|
+
}
|
|
164
|
+
._2nqLu {
|
|
165
|
+
-webkit-touch-callout: none;
|
|
166
|
+
-webkit-user-select: none;
|
|
167
|
+
-moz-user-select: none;
|
|
168
|
+
user-select: none;
|
|
169
|
+
}
|
|
170
|
+
._3w58W {
|
|
171
|
+
background-color: lightgray;
|
|
172
|
+
}
|
|
173
|
+
._13m3V {
|
|
174
|
+
font-weight: 900;
|
|
175
|
+
/* border-bottom: 1px solid lightgray; */
|
|
176
|
+
}
|
|
177
|
+
._2Sks5 {
|
|
178
|
+
/* border-bottom: 1px solid lightgray; */
|
|
179
|
+
}
|
|
180
|
+
._K4Fg8 {
|
|
181
|
+
padding: 0 !important;
|
|
182
|
+
}
|
|
183
|
+
|
|
161
184
|
._3n8UJ {
|
|
162
185
|
background-color: lightgreen;
|
|
163
186
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ import OdsModal from "./components/antd/modal/OdsModal";
|
|
|
50
50
|
import OdsFilter from "./components/filter/OdsFilter";
|
|
51
51
|
import OdsFilterTagView from "./components/filter/OdsFilterTagView";
|
|
52
52
|
import OdsFileUpload from "./components/antd/fileUpload/OdsFileUpload";
|
|
53
|
+
import OdsBasicDataGrid from "./components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid";
|
|
53
54
|
export { OdsButton };
|
|
54
55
|
export { OdsInput };
|
|
55
56
|
export { OdsDropdownButton };
|
|
@@ -103,3 +104,4 @@ export { OdsFileUpload };
|
|
|
103
104
|
export { OdsDataGrid };
|
|
104
105
|
export { OdsDisplayGrid };
|
|
105
106
|
export { OdsRemoteDataGrid } from "./components/devextreme/index";
|
|
107
|
+
export { OdsBasicDataGrid };
|