ods-component-lib 1.18.231 → 1.18.233
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/modal/OdsAdvanceModal.d.ts +7 -0
- package/dist/components/devextreme/OdsMergeCellDataGrid/OdsMergeCellDataGrid.Functions.d.ts +1 -4
- package/dist/components/devextreme/OdsMergeCellDataGrid/OdsMergeCellDataGrid.Types.d.ts +3 -31
- package/dist/components/devextreme/OdsTimeline/OdsTimeline.Constants.d.ts +4 -0
- package/dist/components/devextreme/OdsTimeline/OdsTimeline.Functions.d.ts +6 -0
- package/dist/components/devextreme/OdsTimeline/OdsTimeline.Types.d.ts +77 -0
- package/dist/components/devextreme/OdsTimeline/OdsTimeline.d.ts +5 -0
- package/dist/components/devextreme/OdsTimeline/OdsTimelineDateFilter.d.ts +3 -0
- package/dist/components/devextreme/OdsTimeline/OdsTimelineSelectionColumn.d.ts +2 -0
- package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTable.Style.d.ts +9 -0
- package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTable.Types.d.ts +10 -2
- package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTable.d.ts +2 -2
- package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTableSelectionColumn.d.ts +1 -1
- package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTableTaskTemplate.d.ts +6 -0
- package/dist/index.css +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +335 -382
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +337 -385
- 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/OdsBasicDataGrid/OdsBasicDataGrid.stories.d.ts +110 -0
- package/dist/stories/OdsBasicDataGrid/Samples/MergeCells/MergeCells.Constants.d.ts +14 -0
- package/dist/stories/OdsBasicDataGrid/Samples/MergeCells/MergeCells.MockData.d.ts +7 -0
- package/dist/stories/OdsBasicDataGrid/Samples/MergeCells/MergeCells.Sample.d.ts +1 -0
- package/dist/stories/OdsModal/Samples/OdsModal.Sample.d.ts +1 -0
- package/dist/stories/OdsPivotGrid/OdsPivotGrid.stories.d.ts +15 -0
- package/dist/stories/OdsPivotGrid/Samples/BasicPivotGrid/BasicPivotGrid.Constants.d.ts +2 -0
- package/dist/stories/OdsPivotGrid/Samples/BasicPivotGrid/BasicPivotGrid.MockData.d.ts +7 -0
- package/dist/stories/OdsPivotGrid/Samples/BasicPivotGrid/BasicPivotGrid.Sample.d.ts +1 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/MergeCells/MergeCells.Constants.d.ts +5 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/MergeCells/MergeCells.MockData.d.ts +6 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/MergeCells/MergeCells.Sample.d.ts +1 -0
- package/dist/stories/OdsTimePicker/Samples/TimeRangePicker.d.ts +2 -0
- package/dist/stories/OdsTimeline/OdsTimeline.Constants.d.ts +3 -0
- package/dist/stories/OdsTimeline/OdsTimeline.Functions.d.ts +6 -0
- package/dist/stories/OdsTimeline/OdsTimeline.MockData.d.ts +39 -0
- package/dist/stories/OdsTimelineTable/OdsTimelineTable.stories.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
-
import {
|
|
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[];
|
|
2
|
+
import { IOdsDataGridProps, SummaryTypes } from "./OdsMergeCellDataGrid.Types";
|
|
6
3
|
export declare const getRequestHeaders: (props: any) => Headers;
|
|
7
4
|
export declare const concatFilteredLabel: (result: string, totalloaded: number, filteredRowCount: number, filterApplied: boolean, props: any) => string;
|
|
8
5
|
export declare const showSummaryItems: (props: IOdsDataGridProps) => boolean;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ButtonType } from "antd/es/button/buttonHelpers";
|
|
3
3
|
import { IButtonProps, IDataGridOptions, IEditingProps, ISelectionProps, ISummaryProps } from "devextreme-react/data-grid";
|
|
4
4
|
import { IColumnOptions, IMasterDetailDatas, IMasterDetailFeatures } from "../OdsMasterDetailDataGrid/types";
|
|
5
5
|
export declare type SummaryTypes = "avg" | "count" | "custom" | "max" | "min" | "sum";
|
|
6
|
-
export interface IMultiCellEditableDataGridProps {
|
|
7
|
-
hasFastUpdate?: boolean;
|
|
8
|
-
fastUpdateButtonText?: string;
|
|
9
|
-
fastUpdateModalTitle?: string;
|
|
10
|
-
fastUpdateModalCancelText?: string;
|
|
11
|
-
fastUpdateModalSaveText?: string;
|
|
12
|
-
fastUpdateFormRequiredFieldMessage?: string;
|
|
13
|
-
onFastUpdateButtonClick?: MouseEventHandler<Element> | undefined;
|
|
14
|
-
onFastUpdateFinish?: (values: any, selectedCellInfo: ICellInfo[]) => void;
|
|
15
|
-
onFastUpdateCancel?: () => void;
|
|
16
|
-
onFastUpdateFailed?: (errorInfo: any) => void;
|
|
17
|
-
}
|
|
18
6
|
interface IExportProps {
|
|
19
7
|
enabled: boolean;
|
|
20
8
|
allowExportSelectedData?: boolean;
|
|
@@ -24,8 +12,8 @@ interface IExportProps {
|
|
|
24
12
|
passiveText?: string;
|
|
25
13
|
}
|
|
26
14
|
export declare type ITooltipType = "raw" | "styled";
|
|
27
|
-
export interface IOdsDataGridProps extends IDataGridOptions
|
|
28
|
-
|
|
15
|
+
export interface IOdsDataGridProps extends IDataGridOptions {
|
|
16
|
+
refGrid: React.MutableRefObject<any>;
|
|
29
17
|
dataGridPageName?: string;
|
|
30
18
|
language: string;
|
|
31
19
|
exportFileName: string;
|
|
@@ -100,22 +88,6 @@ export interface IButtonGroup extends Omit<IButtonProps, "icon"> {
|
|
|
100
88
|
actionPermission?: boolean;
|
|
101
89
|
onclick?: React.MouseEventHandler<HTMLElement>;
|
|
102
90
|
}
|
|
103
|
-
export interface ICellInfo {
|
|
104
|
-
dataField: string;
|
|
105
|
-
pkValue: any;
|
|
106
|
-
}
|
|
107
|
-
export interface ICellIndexInfo {
|
|
108
|
-
rowIndex: number;
|
|
109
|
-
colIndex: number;
|
|
110
|
-
}
|
|
111
|
-
export interface IMouseSelectionInfo {
|
|
112
|
-
cellInfo: ICellInfo;
|
|
113
|
-
isActive: boolean;
|
|
114
|
-
}
|
|
115
|
-
export interface ICustomizeInfo {
|
|
116
|
-
value: any;
|
|
117
|
-
valueText: string;
|
|
118
|
-
}
|
|
119
91
|
export interface ICellMergeInfo {
|
|
120
92
|
FieldName: string;
|
|
121
93
|
StartRowIndex: number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const checkboxCellComponent: (props: any) => React.JSX.Element;
|
|
3
|
+
export declare const statusCellComponent: (props: any) => React.JSX.Element;
|
|
4
|
+
export declare const minimalHeaderCellComponent: (data: any, __el: any) => React.JSX.Element;
|
|
5
|
+
export declare const mapCustomTask: (item: any) => any;
|
|
6
|
+
export declare const setSelectedKeys: (datasource: any[], key?: string, selectedKeys?: number[] | string[]) => any[];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IColumnProps, IGanttOptions, IItemProps } from "devextreme-react/gantt";
|
|
3
|
+
export interface IMenuLinkItem {
|
|
4
|
+
text: string;
|
|
5
|
+
url: string;
|
|
6
|
+
queryParamNames?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface ICustomSelectionChange {
|
|
9
|
+
data: any;
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IDateRangeChange {
|
|
13
|
+
startDate: Date;
|
|
14
|
+
endDate: Date;
|
|
15
|
+
}
|
|
16
|
+
export interface IStatusColumnChange {
|
|
17
|
+
data: any;
|
|
18
|
+
status: boolean;
|
|
19
|
+
dataField: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ICheckboxColumnChange {
|
|
22
|
+
data: any;
|
|
23
|
+
isChecked: boolean;
|
|
24
|
+
dataField: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IOdsTimelineProps extends React.PropsWithChildren<IGanttOptions> {
|
|
27
|
+
/**
|
|
28
|
+
* Set columns for listview.
|
|
29
|
+
*/
|
|
30
|
+
customColumns?: IOdsTimelineColumnProps[];
|
|
31
|
+
/**
|
|
32
|
+
* Set task list. It is used for list view and timeline view.
|
|
33
|
+
*/
|
|
34
|
+
customTasks: any[];
|
|
35
|
+
/**
|
|
36
|
+
* Set data field name from task list. This is used for selection.
|
|
37
|
+
*/
|
|
38
|
+
customTaskKey?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Set key values to be selected. "multiSelectionEnabled" must be true.
|
|
41
|
+
*/
|
|
42
|
+
customSelectedKeys?: string[] | number[];
|
|
43
|
+
/**
|
|
44
|
+
* Set true if you want multi selection in list view.
|
|
45
|
+
*/
|
|
46
|
+
multiSelectionEnabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* This is a selection event that fired when selection is changed.
|
|
49
|
+
*/
|
|
50
|
+
onCustomSelectionChanged(e: ICustomSelectionChange): void;
|
|
51
|
+
/**
|
|
52
|
+
* This is a date range event that fired when date range is changed.
|
|
53
|
+
*/
|
|
54
|
+
onDateRangeChange(e: IDateRangeChange): void;
|
|
55
|
+
}
|
|
56
|
+
export interface IOdsTimelineColumnProps extends IColumnProps {
|
|
57
|
+
isMinimized?: boolean;
|
|
58
|
+
isStatusColumn?: boolean;
|
|
59
|
+
isCheckboxColumn?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface IOdsTimelineStatusColumnProps extends IOdsTimelineColumnProps {
|
|
62
|
+
onStatusColumnChange(e: IStatusColumnChange): void;
|
|
63
|
+
}
|
|
64
|
+
export interface IOdsTimelineCheckboxColumnProps extends IOdsTimelineColumnProps {
|
|
65
|
+
onCheckboxColumnChange(e: ICheckboxColumnChange): void;
|
|
66
|
+
}
|
|
67
|
+
export interface IOdsTimelineDateFilter extends IItemProps {
|
|
68
|
+
defaultStartDate?: Date;
|
|
69
|
+
defaultEndDate?: Date;
|
|
70
|
+
backText?: string;
|
|
71
|
+
nextText?: string;
|
|
72
|
+
onFilterRangeChange(e: IDateRangeChange): void;
|
|
73
|
+
}
|
|
74
|
+
export declare const enum DateDirection {
|
|
75
|
+
prevMonth = "previousMonth",
|
|
76
|
+
nextMonth = "nextMonth"
|
|
77
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useStyles: (props?: {
|
|
2
|
+
taskWidth: any;
|
|
3
|
+
progressPerc: any;
|
|
4
|
+
progressColor: any;
|
|
5
|
+
}) => import("antd-style").ReturnStyles<{
|
|
6
|
+
taskBar: import("antd-style").SerializedStyles;
|
|
7
|
+
taskProgress: import("antd-style").SerializedStyles;
|
|
8
|
+
taskBarTitle: import("antd-style").SerializedStyles;
|
|
9
|
+
}>;
|
|
@@ -44,14 +44,22 @@ export interface IOdsTimelineTableProps extends React.PropsWithChildren<IGanttOp
|
|
|
44
44
|
* Set true if you want multi selection in list view.
|
|
45
45
|
*/
|
|
46
46
|
multiSelectionEnabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Set true if it' s visible.
|
|
49
|
+
*/
|
|
50
|
+
toolbarVisible?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Set true if it' s visible.
|
|
53
|
+
*/
|
|
54
|
+
showDateFilter?: boolean;
|
|
47
55
|
/**
|
|
48
56
|
* This is a selection event that fired when selection is changed.
|
|
49
57
|
*/
|
|
50
|
-
onCustomSelectionChanged(e: ICustomSelectionChange): void;
|
|
58
|
+
onCustomSelectionChanged?(e: ICustomSelectionChange): void;
|
|
51
59
|
/**
|
|
52
60
|
* This is a date range event that fired when date range is changed.
|
|
53
61
|
*/
|
|
54
|
-
onDateRangeChange(e: IDateRangeChange): void;
|
|
62
|
+
onDateRangeChange?(e: IDateRangeChange): void;
|
|
55
63
|
}
|
|
56
64
|
export interface IOdsTimelineColumnProps extends IColumnProps {
|
|
57
65
|
isMinimized?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./OdsTimelineTable.css";
|
|
3
3
|
import { IOdsTimelineTableProps } from "./OdsTimelineTable.Types";
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
4
|
+
declare const OdsTimelineTable: React.ForwardRefExoticComponent<IOdsTimelineTableProps & React.RefAttributes<unknown>>;
|
|
5
|
+
export default OdsTimelineTable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ICustomSelectionChange, IOdsTimelineColumnProps } from "./OdsTimelineTable.Types";
|
|
2
|
-
export declare const OdsTimelineSelectionColumn: (selectionEvent
|
|
2
|
+
export declare const OdsTimelineSelectionColumn: (selectionEvent?: (e: ICustomSelectionChange) => void) => IOdsTimelineColumnProps;
|
package/dist/index.css
CHANGED
|
@@ -223,6 +223,14 @@ tr._2CvVM._3Xrp3._19iuB._3udtX {
|
|
|
223
223
|
pointer-events: none;
|
|
224
224
|
background-color: #f0f0f0;
|
|
225
225
|
}
|
|
226
|
+
._3lbve {
|
|
227
|
+
writing-mode: vertical-lr;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
._3sOBn {
|
|
231
|
+
vertical-align: middle !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
226
234
|
._3n8UJ {
|
|
227
235
|
background-color: lightgreen;
|
|
228
236
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ import OdsTreeListMenu from "./components/antd/treeListMenu/OdsTreeListMenu";
|
|
|
64
64
|
export { default as OdsTreeSelect } from "./components/antd/treeSelect/OdsTreeSelect";
|
|
65
65
|
export { default as OdsCurrencyInput } from "./components/antd/currencyInput/OdsCurrencyInput";
|
|
66
66
|
export { default as OdsMergeCellDataGrid } from "./components/devextreme/OdsMergeCellDataGrid/OdsMergeCellDataGrid";
|
|
67
|
+
export { default as OdsTimelineTable } from "./components/devextreme/OdsTimelineTable/OdsTimelineTable";
|
|
67
68
|
export { OdsButton };
|
|
68
69
|
export { OdsInput };
|
|
69
70
|
export { OdsDropdownButton };
|