ods-component-lib 1.18.19 → 1.18.28
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/README.md +30 -30
- package/dist/components/antd/button/OdsButton.d.ts +6 -4
- package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +1 -1
- package/dist/components/devextreme/OdsDataGridNew.d.ts +2 -1
- package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +4 -2
- package/dist/components/devextreme/index.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +26 -9
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/Commons/DateColumnCell.d.ts +4 -0
- package/dist/stories/Commons/Tag.d.ts +2 -0
- package/dist/stories/OdsButton/OdsButton.stories.d.ts +36 -0
- package/dist/stories/OdsButton/Samples/LinkButton.Sample.d.ts +1 -0
- package/dist/stories/OdsButton/Samples/PrimaryButton.Sample.d.ts +1 -0
- package/dist/stories/OdsButton/Samples/RoundButton.Sample.d.ts +1 -0
- package/dist/stories/OdsRemoteDataGrid/OdsRemoteDataGrid.stories.d.ts +68 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.Constants.d.ts +17 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.MockData.d.ts +5 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.Sample.d.ts +1 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.Constants.d.ts +17 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.MockData.d.ts +5 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.Sample.d.ts +1 -0
- package/dist/stories/OdsTextArea/OdsTextArea.stories.d.ts +23 -0
- package/dist/stories/OdsTextArea/Samples/FilledTextArea.Sample.d.ts +1 -0
- package/dist/stories/OdsTextArea/Samples/OutlinedTextArea.Sample.d.ts +1 -0
- package/package.json +26 -43
- /package/dist/components/antd/datepicker/{OdsDateRangePicker.d.ts → OdsDateRangepicker.d.ts} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function datetimeCellRender(value: any): string;
|
|
2
|
+
export declare function calculateFilterExpressionForColumn(column: any, value: any, operation: any, target: any): any;
|
|
3
|
+
export declare const isTimeGreaterThanMidnight: (dateString: any) => boolean;
|
|
4
|
+
export declare const calculateDateFilterExpression: (value: any, operation: any, column: any, target: any) => any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../../components/antd/button/OdsButton").IButtonProps) => import("react").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
type: {
|
|
8
|
+
options: string[];
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
options: string[];
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
shape: {
|
|
22
|
+
options: string[];
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
onClick: {
|
|
29
|
+
action: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
34
|
+
export declare const PrimaryButton: any;
|
|
35
|
+
export declare const RoundButton: any;
|
|
36
|
+
export declare const LinkButton: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LinkButtonTemplate: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PrimaryButtonTemplate: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RoundButtonTemplate: any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import("../../components/devextreme/OdsRemoteDataGrid").IOdsDataGridProps) => import("react").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
language: {
|
|
8
|
+
options: string[];
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
defaultValue: {
|
|
13
|
+
summary: string;
|
|
14
|
+
};
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
columns: {
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
dataSource: {
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
pageTitle: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
exportFileName: {
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
actionColumnEnable: {
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
actionButtonGroup: {
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
actionButtonGroupCaption: {
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
isServerSide: {
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
toolbarButtonGroup: {
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
pageSize: {
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
columnChooserPositionDisabled: {
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
edit: {
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
axiosRequest: {
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
customSummary: {
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
parameters: {
|
|
61
|
+
controls: {
|
|
62
|
+
exclude: any[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
67
|
+
export declare const Basic: any;
|
|
68
|
+
export declare const ActionColumns: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DataGridColumns: ({
|
|
3
|
+
dataField: string;
|
|
4
|
+
dataType: string;
|
|
5
|
+
caption: string;
|
|
6
|
+
cellRender?: undefined;
|
|
7
|
+
dataSource?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
dataField: string;
|
|
10
|
+
caption: string;
|
|
11
|
+
cellRender: (value: any) => import("react").JSX.Element;
|
|
12
|
+
dataSource: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: boolean;
|
|
15
|
+
}[];
|
|
16
|
+
dataType?: undefined;
|
|
17
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BasicDataGridTemplate: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DataGridColumns: ({
|
|
3
|
+
dataField: string;
|
|
4
|
+
dataType: string;
|
|
5
|
+
caption: string;
|
|
6
|
+
cellRender?: undefined;
|
|
7
|
+
dataSource?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
dataField: string;
|
|
10
|
+
caption: string;
|
|
11
|
+
cellRender: (value: any) => import("react").JSX.Element;
|
|
12
|
+
dataSource: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: boolean;
|
|
15
|
+
}[];
|
|
16
|
+
dataType?: undefined;
|
|
17
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DataGridWithActionColumnsTemplate: any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import TextArea from "../../components/antd/input/OdsTextArea";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof TextArea;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
size: {
|
|
8
|
+
options: string[];
|
|
9
|
+
control: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
variant: {
|
|
14
|
+
options: string[];
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
22
|
+
export declare const OutlinedTextArea: any;
|
|
23
|
+
export declare const FilledTextArea: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FilledTextAreaTemplate: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OutlinedTextAreaTemplate: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ods-component-lib",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.28",
|
|
4
4
|
"description": "Odeon design system component lib",
|
|
5
5
|
"author": "OdeonTechnology",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,78 +21,59 @@
|
|
|
21
21
|
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
22
22
|
"test:watch": "react-scripts test --env=jsdom",
|
|
23
23
|
"predeploy": "cd example && npm install && npm run build",
|
|
24
|
-
"deploy": "gh-pages -d example/build"
|
|
24
|
+
"deploy": "gh-pages -d example/build",
|
|
25
|
+
"storybook": "storybook dev -p 6006",
|
|
26
|
+
"build-storybook": "storybook build"
|
|
25
27
|
},
|
|
26
28
|
"peerDependencies": {
|
|
27
29
|
"react": "^18.2.0"
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"@ant-design/icons": "^5.1.4",
|
|
31
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
32
|
-
"@testing-library/react": "^13.4.0",
|
|
33
|
-
"@testing-library/user-event": "^13.5.0",
|
|
34
33
|
"@types/file-saver-es": "^2.0.1",
|
|
35
|
-
"@types/jest": "^27.5.2",
|
|
36
|
-
"@types/node": "^16.18.34",
|
|
37
34
|
"@types/react": "^18.2.9",
|
|
38
35
|
"@types/react-dom": "^18.2.4",
|
|
39
36
|
"@types/styled-components": "^5.1.26",
|
|
40
|
-
"antd": "5.
|
|
41
|
-
"
|
|
42
|
-
"devextreme": "23.1.3",
|
|
43
|
-
"devextreme-aspnet-data-nojquery": "^3.0.0",
|
|
37
|
+
"antd": "^5.5.2",
|
|
38
|
+
"devextreme": "^23.1.4",
|
|
44
39
|
"devextreme-react": "23.1.3",
|
|
45
40
|
"exceljs": "^4.3.0",
|
|
46
|
-
"file-saver": "^2.0.5",
|
|
47
41
|
"file-saver-es": "^2.0.5",
|
|
48
42
|
"html-react-parser": "^4.0.0",
|
|
49
43
|
"jspdf": "^2.5.1",
|
|
44
|
+
"microbundle-crl": "^0.13.11",
|
|
50
45
|
"moment": "^2.29.4",
|
|
51
|
-
"momentjs": "^2.0.0",
|
|
52
46
|
"ods-icon": "^1.0.13",
|
|
53
47
|
"react": "^18.2.0",
|
|
54
|
-
"react-docgen-typescript": "^2.2.2",
|
|
55
48
|
"react-fast-marquee": "^1.6.0",
|
|
49
|
+
"react-loading-overlay-ts": "^2.0.2",
|
|
56
50
|
"react-phone-input-2": "^2.15.1",
|
|
57
|
-
"react-
|
|
58
|
-
"
|
|
59
|
-
"styled-components": "^5.3.11",
|
|
60
|
-
"typescript": "^4.9.5",
|
|
61
|
-
"web-vitals": "^2.1.4",
|
|
62
|
-
"whatwg-fetch": "^3.6.20"
|
|
51
|
+
"react-spinners": "^0.13.8",
|
|
52
|
+
"styled-components": "^5.3.11"
|
|
63
53
|
},
|
|
64
54
|
"devDependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
55
|
+
"@chromatic-com/storybook": "^1.2.25",
|
|
56
|
+
"@storybook/addon-essentials": "^8.0.2",
|
|
57
|
+
"@storybook/addon-interactions": "^8.0.2",
|
|
58
|
+
"@storybook/addon-links": "^8.0.2",
|
|
59
|
+
"@storybook/addon-onboarding": "^8.0.2",
|
|
60
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
61
|
+
"@storybook/blocks": "^8.0.2",
|
|
62
|
+
"@storybook/react": "^8.0.2",
|
|
63
|
+
"@storybook/react-webpack5": "^8.0.2",
|
|
64
|
+
"@storybook/test": "^8.0.2",
|
|
70
65
|
"@types/react": "^16.9.27",
|
|
71
66
|
"@types/react-dom": "^16.9.7",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
73
|
-
"@typescript-eslint/parser": "^2.26.0",
|
|
74
67
|
"antd": "^5.5.2",
|
|
75
|
-
"babel-eslint": "^10.0.3",
|
|
76
68
|
"cross-env": "^7.0.2",
|
|
77
69
|
"eslint": "^6.8.0",
|
|
78
|
-
"eslint-
|
|
79
|
-
"eslint-config-standard": "^14.1.0",
|
|
80
|
-
"eslint-config-standard-react": "^9.2.0",
|
|
81
|
-
"eslint-plugin-import": "^2.18.2",
|
|
82
|
-
"eslint-plugin-node": "^11.0.0",
|
|
83
|
-
"eslint-plugin-prettier": "^3.1.1",
|
|
84
|
-
"eslint-plugin-promise": "^4.2.1",
|
|
85
|
-
"eslint-plugin-react": "^7.17.0",
|
|
86
|
-
"eslint-plugin-standard": "^4.0.1",
|
|
70
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
87
71
|
"gh-pages": "^2.2.0",
|
|
88
|
-
"microbundle-crl": "^0.13.11",
|
|
89
72
|
"npm-run-all": "^4.1.5",
|
|
90
|
-
"
|
|
73
|
+
"prop-types": "^15.8.1",
|
|
91
74
|
"react": "^18.2.0",
|
|
92
|
-
"react-app-rewired": "^2.2.1",
|
|
93
75
|
"react-dom": "^18.2.0",
|
|
94
|
-
"
|
|
95
|
-
"typescript": "^3.7.5"
|
|
76
|
+
"storybook": "^8.0.2"
|
|
96
77
|
},
|
|
97
78
|
"files": [
|
|
98
79
|
"dist"
|
|
@@ -100,7 +81,9 @@
|
|
|
100
81
|
"eslintConfig": {
|
|
101
82
|
"extends": [
|
|
102
83
|
"react-app",
|
|
103
|
-
"react-app/jest"
|
|
84
|
+
"react-app/jest",
|
|
85
|
+
"plugin:storybook/recommended",
|
|
86
|
+
"plugin:storybook/recommended"
|
|
104
87
|
],
|
|
105
88
|
"rules": {
|
|
106
89
|
"eqeqeq": "off",
|
/package/dist/components/antd/datepicker/{OdsDateRangePicker.d.ts → OdsDateRangepicker.d.ts}
RENAMED
|
File without changes
|