ods-component-lib 1.18.104 → 1.18.106
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/antd/form/OdsBasicForm.d.ts +18 -0
- package/dist/components/antd/icon/OdsIcon.d.ts +10 -0
- package/dist/components/antd/modal/OdsAdvanceModal.d.ts +7 -0
- package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +7 -0
- package/dist/components/antd/select/OdsMultiSelect.d.ts +9 -0
- package/dist/components/custom/OdsLogin.d.ts +8 -0
- package/dist/components/devextreme/DxDataPopupForm.d.ts +3 -0
- package/dist/components/devextreme/DynamicIcon.d.ts +5 -0
- package/dist/components/devextreme/OdsDataGridNew.d.ts +56 -0
- package/dist/components/devextreme/OdsProfDataGrid.d.ts +3 -0
- package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.Functions.d.ts +1 -0
- package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.Types.d.ts +80 -0
- package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.d.ts +5 -0
- package/dist/components/devextreme/OdsTransfer.d.ts +2 -57
- package/dist/components/devextreme/treeview/DxTreeView.d.ts +3 -0
- package/dist/index.css +21 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +383 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +383 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsAdvanceModal/OdsAdvanceModal.stories.d.ts +42 -0
- package/dist/stories/OdsAdvanceModal/Samples/BasicOdsAdvanceModal.sample.d.ts +8 -0
- package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +9 -0
- package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +1 -0
- package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +1 -0
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +1 -0
- package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +2 -0
- package/dist/utils/DynamicIcon.d.ts +5 -0
- package/package.json +2 -1
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Constant.d.ts +0 -17
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormProps, ButtonProps } from 'antd';
|
|
3
|
+
export interface IFormItemRuleProps {
|
|
4
|
+
required?: boolean;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IFormItemProps {
|
|
8
|
+
label?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
formItemType: string;
|
|
11
|
+
rules?: IFormItemRuleProps[];
|
|
12
|
+
}
|
|
13
|
+
export interface IFormProps extends FormProps {
|
|
14
|
+
formItems: IFormItemProps[];
|
|
15
|
+
formButtons: ButtonProps[];
|
|
16
|
+
}
|
|
17
|
+
declare function OdsBasicForm(props: IFormProps): React.JSX.Element;
|
|
18
|
+
export default OdsBasicForm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconBaseProps } from "@ant-design/icons/lib/components/Icon";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface IconProps extends IconBaseProps {
|
|
4
|
+
type: string;
|
|
5
|
+
twoToneColor?: string;
|
|
6
|
+
iconComponent?: string;
|
|
7
|
+
iconSVCName?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function OdsIcon(props: IconProps): React.JSX.Element;
|
|
10
|
+
export default OdsIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SelectProps } from "antd";
|
|
3
|
+
import { IOdsSelectOption } from "./OdsSelect.styled";
|
|
4
|
+
export interface OdsMultiSelectProps extends SelectProps {
|
|
5
|
+
selectAllText?: string | undefined;
|
|
6
|
+
dataSource: IOdsSelectOption[];
|
|
7
|
+
}
|
|
8
|
+
declare const OdsMultiSelect: (props: OdsMultiSelectProps) => React.JSX.Element;
|
|
9
|
+
export default OdsMultiSelect;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDataGridOptions, IEditingProps, ISelectionProps, IButtonProps } from 'devextreme-react/data-grid';
|
|
3
|
+
import { ButtonType } from "antd/es/button/buttonHelpers";
|
|
4
|
+
interface IButtonGroup extends IButtonProps {
|
|
5
|
+
type?: ButtonType;
|
|
6
|
+
label?: string;
|
|
7
|
+
onclick?: React.MouseEventHandler<HTMLElement>;
|
|
8
|
+
actionPermission?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface IEditingoptions extends IEditingProps {
|
|
11
|
+
formItems?: any[];
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ISelectOptions extends ISelectionProps {
|
|
15
|
+
selectEnable: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface IOdsDataGridProps extends IDataGridOptions {
|
|
18
|
+
actionButtonGroup?: IButtonGroup[];
|
|
19
|
+
toolbarButtonGroup?: IButtonGroup[];
|
|
20
|
+
exportFileName?: string;
|
|
21
|
+
summaryTotalColumnName?: string;
|
|
22
|
+
storeState?: boolean;
|
|
23
|
+
summaryTotalDataCount?: number;
|
|
24
|
+
summaryTotalDataDisplayLabel?: string;
|
|
25
|
+
summaryTotalPagesize?: number;
|
|
26
|
+
editHintLabel?: string;
|
|
27
|
+
editButtonClick?: any;
|
|
28
|
+
deleteButtonClick?: any;
|
|
29
|
+
pageTitle?: string;
|
|
30
|
+
pageSize?: number;
|
|
31
|
+
pagingEnable?: boolean;
|
|
32
|
+
searchEnable?: boolean;
|
|
33
|
+
filterEnable?: boolean;
|
|
34
|
+
headerFilterEnable?: boolean;
|
|
35
|
+
columnChooserPositionDisabled?: boolean;
|
|
36
|
+
editEnable?: boolean;
|
|
37
|
+
popupTitle?: string;
|
|
38
|
+
scroll?: any;
|
|
39
|
+
exportEnable?: boolean;
|
|
40
|
+
customPopup?: boolean;
|
|
41
|
+
onExportingCustom?: any;
|
|
42
|
+
filterEnabledShow?: boolean;
|
|
43
|
+
scrolUseNative?: boolean;
|
|
44
|
+
formItems?: any[];
|
|
45
|
+
hintForDeleteButton?: string;
|
|
46
|
+
hintForEditButton?: string;
|
|
47
|
+
exportFormats?: string[];
|
|
48
|
+
actionPermission?: boolean;
|
|
49
|
+
columns: any[];
|
|
50
|
+
actionColumnEnable?: boolean;
|
|
51
|
+
edit?: IEditingoptions;
|
|
52
|
+
selectOptions?: ISelectOptions;
|
|
53
|
+
actionColumnCaption?: string;
|
|
54
|
+
}
|
|
55
|
+
declare function OdsDataGridNew(props: IOdsDataGridProps): React.JSX.Element;
|
|
56
|
+
export default OdsDataGridNew;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const onExporting: (e: any, baseFileName: string, getSummary: any) => void;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonType } from "antd/es/button";
|
|
3
|
+
import { IButtonProps, IDataGridOptions, IEditingProps, ISummaryProps } from "devextreme-react/data-grid";
|
|
4
|
+
interface IColumnConfig {
|
|
5
|
+
dataField: string;
|
|
6
|
+
caption: string;
|
|
7
|
+
allowSorting?: boolean;
|
|
8
|
+
allowSearch?: boolean;
|
|
9
|
+
cellRender?: (data: any) => JSX.Element | string;
|
|
10
|
+
calculateFilterExpression?: (value: any, operation: string, target: string) => any;
|
|
11
|
+
format?: string | object;
|
|
12
|
+
}
|
|
13
|
+
interface IPagerProps {
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
showPageSizeSelector?: boolean;
|
|
16
|
+
showInfo?: boolean;
|
|
17
|
+
displayMode?: 'full' | 'compact';
|
|
18
|
+
infoText?: string;
|
|
19
|
+
}
|
|
20
|
+
interface IExportProps {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
allowExportSelectedData?: boolean;
|
|
23
|
+
fileName?: string;
|
|
24
|
+
}
|
|
25
|
+
interface IToolbarButton {
|
|
26
|
+
type: string;
|
|
27
|
+
label: string;
|
|
28
|
+
onClick: () => void;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface IEditingoptions extends IEditingProps {
|
|
32
|
+
formItems?: any[];
|
|
33
|
+
title?: string;
|
|
34
|
+
}
|
|
35
|
+
interface IButtonGroup extends IButtonProps {
|
|
36
|
+
type?: ButtonType;
|
|
37
|
+
label?: string;
|
|
38
|
+
onclick?: React.MouseEventHandler<HTMLElement>;
|
|
39
|
+
actionPermission?: boolean;
|
|
40
|
+
icon: any;
|
|
41
|
+
}
|
|
42
|
+
export interface ISummaryRowOptions {
|
|
43
|
+
summaryLoadedDataLabel?: string;
|
|
44
|
+
summaryTotalDataLabel?: string;
|
|
45
|
+
summaryFilteredDataLabel?: string;
|
|
46
|
+
summaryItems?: ISummaryProps[];
|
|
47
|
+
summaryTotalCount?: number;
|
|
48
|
+
summaryTotalPageCountLabel?: string;
|
|
49
|
+
showSumInSummary?: boolean;
|
|
50
|
+
showAvgInSummary?: boolean;
|
|
51
|
+
showCountInSummary?: boolean;
|
|
52
|
+
showMaxInSummary?: boolean;
|
|
53
|
+
showMinInSummary?: boolean;
|
|
54
|
+
summarySumLabel?: string;
|
|
55
|
+
summaryAvgLabel?: string;
|
|
56
|
+
summaryMinLabel?: string;
|
|
57
|
+
summaryMaxLabel?: string;
|
|
58
|
+
summaryCountLabel?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IVirtualDataGridProps extends IDataGridOptions {
|
|
61
|
+
columns: IColumnConfig[];
|
|
62
|
+
sortingProps?: any;
|
|
63
|
+
pagerProps?: IPagerProps;
|
|
64
|
+
exportProps?: IExportProps;
|
|
65
|
+
customSummary?: ISummaryRowOptions;
|
|
66
|
+
actionButtonGroup?: IButtonGroup[];
|
|
67
|
+
actionColumnEnable?: boolean;
|
|
68
|
+
pageTitle?: string;
|
|
69
|
+
language?: string;
|
|
70
|
+
isFilterPanel?: boolean;
|
|
71
|
+
pageSize?: number;
|
|
72
|
+
toolbarButtonGroup?: IToolbarButton[];
|
|
73
|
+
edit?: IEditingoptions;
|
|
74
|
+
columnChooserPositionDisabled?: boolean;
|
|
75
|
+
dataGridPageName?: string;
|
|
76
|
+
totalRecordCount: number;
|
|
77
|
+
columnResizingMode?: 'nextColumn' | 'widget';
|
|
78
|
+
dataGridRef: any;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -1,58 +1,3 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
3
|
-
import 'devextreme/dist/css/dx.light.css';
|
|
4
|
-
import './styles.css';
|
|
5
|
-
export interface Column {
|
|
6
|
-
title: string;
|
|
7
|
-
dataIndex: string;
|
|
8
|
-
key?: string;
|
|
9
|
-
caption?: string;
|
|
10
|
-
tooltip?: {
|
|
11
|
-
enable: boolean;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare type TransferDirection = AntTransferDirection;
|
|
15
|
-
interface IAxiosProps {
|
|
16
|
-
token: string;
|
|
17
|
-
requestData?: any;
|
|
18
|
-
apiUrl: string;
|
|
19
|
-
environmentUrl: string;
|
|
20
|
-
requestQueryString?: any;
|
|
21
|
-
requestType: string;
|
|
22
|
-
}
|
|
23
|
-
interface ISummaryRowOptions {
|
|
24
|
-
summaryLoadedDataLabel?: string;
|
|
25
|
-
summaryTotalDataLabel?: string;
|
|
26
|
-
summaryFilteredDataLabel?: string;
|
|
27
|
-
summaryTotalCount?: number;
|
|
28
|
-
summaryTotalPageCountLabel?: string;
|
|
29
|
-
summarySumLabel?: string;
|
|
30
|
-
summaryAvgLabel?: string;
|
|
31
|
-
summaryMinLabel?: string;
|
|
32
|
-
summaryMaxLabel?: string;
|
|
33
|
-
summaryCountLabel?: string;
|
|
34
|
-
}
|
|
35
|
-
interface OdsTransferProps<RecordType = any> {
|
|
36
|
-
dataSource?: RecordType[];
|
|
37
|
-
language: string;
|
|
38
|
-
pagingEnable?: boolean;
|
|
39
|
-
pageSize?: number;
|
|
40
|
-
isServerSide: boolean;
|
|
41
|
-
axiosRequest?: IAxiosProps;
|
|
42
|
-
customSummary?: ISummaryRowOptions;
|
|
43
|
-
dataGridPageName?: string;
|
|
44
|
-
columns: any[];
|
|
45
|
-
pageTitle?: string;
|
|
46
|
-
keyExpr: string;
|
|
47
|
-
noDataText: string;
|
|
48
|
-
defaultPageSize: number;
|
|
49
|
-
targetKeys?: string[];
|
|
50
|
-
noContentMainText: string;
|
|
51
|
-
noContentSubText: string;
|
|
52
|
-
onTargetKeysChange?: (keys: string[]) => void;
|
|
53
|
-
onSelectChange?: (sourceSelectedKeys: string[], targetSelectedKeys: string[]) => void;
|
|
54
|
-
}
|
|
55
|
-
export declare const getRequestHeaders: (props: any) => Headers;
|
|
56
|
-
export declare const concatFilteredLabel: (result: string, totalloaded: number, filteredRowCount: number, filterApplied: boolean, props: any) => string;
|
|
57
|
-
declare const OdsTransfer: React.FC<OdsTransferProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const OdsTransfer: () => React.JSX.Element;
|
|
58
3
|
export default OdsTransfer;
|
package/dist/index.css
CHANGED
|
@@ -181,6 +181,27 @@ tr._2CvVM._3Xrp3._19iuB._3udtX {
|
|
|
181
181
|
padding: 0 !important;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
._2abwP {
|
|
185
|
+
background-color: lightgreen;
|
|
186
|
+
}
|
|
187
|
+
._1V_Vz {
|
|
188
|
+
-webkit-touch-callout: none;
|
|
189
|
+
-webkit-user-select: none;
|
|
190
|
+
-moz-user-select: none;
|
|
191
|
+
user-select: none;
|
|
192
|
+
}
|
|
193
|
+
._edHyI {
|
|
194
|
+
background-color: lightgray;
|
|
195
|
+
}
|
|
196
|
+
._mZ4Ke {
|
|
197
|
+
font-weight: 900;
|
|
198
|
+
/* border-bottom: 1px solid lightgray; */
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
._n1i4q {
|
|
202
|
+
padding: 0 !important;
|
|
203
|
+
}
|
|
204
|
+
|
|
184
205
|
._3n8UJ {
|
|
185
206
|
background-color: lightgreen;
|
|
186
207
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ import OdsFilter from "./components/filter/OdsFilter";
|
|
|
51
51
|
import OdsFilterTagView from "./components/filter/OdsFilterTagView";
|
|
52
52
|
import OdsFileUpload from "./components/antd/fileUpload/OdsFileUpload";
|
|
53
53
|
import OdsBasicDataGrid from "./components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid";
|
|
54
|
+
import OdsTransfer from "./components/devextreme/OdsTransfer";
|
|
55
|
+
import OdsServerSideDatagrid from "./components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid";
|
|
54
56
|
export { OdsButton };
|
|
55
57
|
export { OdsInput };
|
|
56
58
|
export { OdsDropdownButton };
|
|
@@ -105,3 +107,5 @@ export { OdsDataGrid };
|
|
|
105
107
|
export { OdsDisplayGrid };
|
|
106
108
|
export { OdsRemoteDataGrid } from "./components/devextreme/index";
|
|
107
109
|
export { OdsBasicDataGrid };
|
|
110
|
+
export { OdsTransfer };
|
|
111
|
+
export { OdsServerSideDatagrid };
|