ods-component-lib 1.18.103 → 1.18.105
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 +4 -0
- package/dist/components/devextreme/OdsTransfer.d.ts +2 -48
- package/dist/components/devextreme/treeview/DxTreeView.d.ts +3 -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,49 +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
|
-
}
|
|
10
|
-
export declare type TransferDirection = AntTransferDirection;
|
|
11
|
-
interface IAxiosProps {
|
|
12
|
-
token: string;
|
|
13
|
-
requestData?: any;
|
|
14
|
-
apiUrl: string;
|
|
15
|
-
environmentUrl: string;
|
|
16
|
-
requestQueryString?: any;
|
|
17
|
-
requestType: string;
|
|
18
|
-
}
|
|
19
|
-
interface ISummaryRowOptions {
|
|
20
|
-
summaryLoadedDataLabel?: string;
|
|
21
|
-
summaryTotalDataLabel?: string;
|
|
22
|
-
summaryFilteredDataLabel?: string;
|
|
23
|
-
summaryTotalCount?: number;
|
|
24
|
-
summaryTotalPageCountLabel?: string;
|
|
25
|
-
summarySumLabel?: string;
|
|
26
|
-
summaryAvgLabel?: string;
|
|
27
|
-
summaryMinLabel?: string;
|
|
28
|
-
summaryMaxLabel?: string;
|
|
29
|
-
summaryCountLabel?: string;
|
|
30
|
-
}
|
|
31
|
-
interface OdsTransferProps<RecordType = any> {
|
|
32
|
-
dataSource?: RecordType[];
|
|
33
|
-
language: string;
|
|
34
|
-
pagingEnable?: boolean;
|
|
35
|
-
pageSize?: number;
|
|
36
|
-
isServerSide: boolean;
|
|
37
|
-
axiosRequest?: IAxiosProps;
|
|
38
|
-
customSummary?: ISummaryRowOptions;
|
|
39
|
-
dataGridPageName?: string;
|
|
40
|
-
columns: any[];
|
|
41
|
-
pageTitle?: string;
|
|
42
|
-
keyExpr: string;
|
|
43
|
-
noDataText: string;
|
|
44
|
-
defaultPageSize: number;
|
|
45
|
-
targetKeys?: string[];
|
|
46
|
-
setTargetKeys?: (keys: string[]) => void;
|
|
47
|
-
}
|
|
48
|
-
declare const OdsTransfer: React.FC<OdsTransferProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const OdsTransfer: () => React.JSX.Element;
|
|
49
3
|
export default OdsTransfer;
|
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 };
|