@bento-core/paginated-table 1.0.1-CDS.16 → 1.0.1-CDS.18

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.
@@ -16,7 +16,6 @@ function AddToCartDialogAlertView(props) {
16
16
  const closeAlertModelTimer = 4000;
17
17
  const AlertDialog = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_core.Dialog, {
18
18
  open: open,
19
- "aria-labelledby": "alert-dialog-title",
20
19
  "aria-describedby": "alert-dialog-description"
21
20
  }, /*#__PURE__*/_react.default.createElement(_core.DialogContent, {
22
21
  className: "alter-content"
@@ -28,14 +28,16 @@ function AddToCartDialogView(props) {
28
28
  }
29
29
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_core.Dialog, {
30
30
  open: open,
31
- "aria-labelledby": "alert-dialog-title",
32
31
  "aria-describedby": "alert-dialog-description"
33
32
  }, /*#__PURE__*/_react.default.createElement(_core.DialogContent, null, DisplayCustomText ? /*#__PURE__*/_react.default.createElement(DisplayCustomText, {
34
33
  onYesClick: onYesClick,
35
34
  onNoClick: onNoClick,
36
35
  activeFilters: activeFilters
37
36
  }) : /*#__PURE__*/_react.default.createElement(_core.DialogContentText, {
38
- id: "alert-dialog-description"
37
+ id: "alert-dialog-description",
38
+ style: {
39
+ color: 'black'
40
+ }
39
41
  }, "Are you sure to add All Files", ' ', numberOfFilesSelected, ' ', "to cart")), /*#__PURE__*/_react.default.createElement(_core.DialogActions, {
40
42
  className: "dialog_actions"
41
43
  }, /*#__PURE__*/_react.default.createElement(_core.Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/paginated-table",
3
- "version": "1.0.1-CDS.16",
3
+ "version": "1.0.1-CDS.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -13,8 +13,8 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "@bento-core/cart": "^1.0.1-CDS.1",
17
- "@bento-core/table": "^1.0.1-CDS.8",
16
+ "@bento-core/cart": "^1.0.1-CDS.2",
17
+ "@bento-core/table": "^1.0.1-CDS.10",
18
18
  "@bento-core/tool-tip": "^1.0.0",
19
19
  "@bento-core/util": "^1.0.1-CDS.0"
20
20
  },
@@ -28,5 +28,5 @@
28
28
  },
29
29
  "author": "CTOS Bento Team",
30
30
  "license": "ISC",
31
- "gitHead": "61639923b9c77418e4b96267b0e4e430d0756b55"
31
+ "gitHead": "2f8251eb1f659f347dcb60824e9d986b91a6be7e"
32
32
  }
@@ -3,63 +3,63 @@ import { actionTypes } from './Actions';
3
3
  const reducer = (state, action) => {
4
4
  const { type, payload } = action;
5
5
  switch (type) {
6
- case actionTypes.CUSTOMIZE_PAGINATION_ACTION:
7
- return {
8
- ...state,
9
- ...payload,
10
- };
11
- case actionTypes.ON_COLUMN_SORT:
12
- return {
13
- ...state,
14
- sortOrder: payload.sort,
15
- sortBy: payload.column,
16
- };
17
- case actionTypes.ON_PAGE_CHANGE:
18
- return {
19
- ...state,
20
- page: payload.pageNumb,
21
- };
22
- case actionTypes.ON_ROWS_PER_PAGE_CHANGE:
23
- return {
24
- ...state,
25
- rowsPerPage: payload.rowsPerPage,
26
- page: payload.page,
27
- };
28
- case actionTypes.VIEW_COLUMN_CHANGE:
29
- return {
30
- ...state,
31
- ...payload,
32
- };
33
- case actionTypes.ON_ROW_SELECT:
34
- return {
35
- ...state,
36
- selectedRows: payload,
37
- };
38
- case actionTypes.ON_PAGE_AND_TOTAL_COUNT_CHANGE:
39
- return {
40
- ...state,
41
- totalRowCount: payload.totalRowCount,
42
- page: payload.page,
43
- };
44
- case actionTypes.SET_TOTAL_ROW_COUNT:
45
- return {
46
- ...state,
47
- totalRowCount: payload,
48
- };
49
- case actionTypes.ON_ROW_DELETE:
50
- return {
51
- ...state,
52
- deletedRow: payload.deletedRow,
53
- selectedRows: payload.selectedRows,
54
- };
55
- case actionTypes.ON_ROWS_DELETE:
56
- return {
57
- ...state,
58
- deletedRows: payload.deleteRows,
59
- selectedRows: payload.selectedRows,
60
- };
61
- default:
62
- return state;
6
+ case actionTypes.CUSTOMIZE_PAGINATION_ACTION:
7
+ return {
8
+ ...state,
9
+ ...payload,
10
+ };
11
+ case actionTypes.ON_COLUMN_SORT:
12
+ return {
13
+ ...state,
14
+ sortOrder: payload.sort,
15
+ sortBy: payload.column,
16
+ };
17
+ case actionTypes.ON_PAGE_CHANGE:
18
+ return {
19
+ ...state,
20
+ page: payload.pageNumb,
21
+ };
22
+ case actionTypes.ON_ROWS_PER_PAGE_CHANGE:
23
+ return {
24
+ ...state,
25
+ rowsPerPage: payload.rowsPerPage,
26
+ page: payload.page,
27
+ };
28
+ case actionTypes.VIEW_COLUMN_CHANGE:
29
+ return {
30
+ ...state,
31
+ ...payload,
32
+ };
33
+ case actionTypes.ON_ROW_SELECT:
34
+ return {
35
+ ...state,
36
+ selectedRows: payload,
37
+ };
38
+ case actionTypes.ON_PAGE_AND_TOTAL_COUNT_CHANGE:
39
+ return {
40
+ ...state,
41
+ totalRowCount: payload.totalRowCount,
42
+ page: payload.page,
43
+ };
44
+ case actionTypes.SET_TOTAL_ROW_COUNT:
45
+ return {
46
+ ...state,
47
+ totalRowCount: payload,
48
+ };
49
+ case actionTypes.ON_ROW_DELETE:
50
+ return {
51
+ ...state,
52
+ deletedRow: payload.deletedRow,
53
+ selectedRows: payload.selectedRows,
54
+ };
55
+ case actionTypes.ON_ROWS_DELETE:
56
+ return {
57
+ ...state,
58
+ deletedRows: payload.deleteRows,
59
+ selectedRows: payload.selectedRows,
60
+ };
61
+ default:
62
+ return state;
63
63
  }
64
64
  };
65
65
 
@@ -59,20 +59,20 @@ const Text = ({
59
59
  export const ViewComponent = (props) => {
60
60
  const { type, customViewElem } = props;
61
61
  switch (type) {
62
- case types.BUTTON:
63
- return (<ButtonView {...props} />);
64
- case types.LINK:
65
- return (<LinkComponent {...props} />);
66
- case types.ICON:
67
- return <Img {...props} />;
68
- case types.TEXT:
69
- return <Text {...props} />;
70
- case types.TEXT_INPUT:
71
- return <TextFieldView {...props} />;
72
- case types.CUSTOM_ELEM:
73
- return customViewElem();
74
- default:
75
- return <></>;
62
+ case types.BUTTON:
63
+ return (<ButtonView {...props} />);
64
+ case types.LINK:
65
+ return (<LinkComponent {...props} />);
66
+ case types.ICON:
67
+ return <Img {...props} />;
68
+ case types.TEXT:
69
+ return <Text {...props} />;
70
+ case types.TEXT_INPUT:
71
+ return <TextFieldView {...props} />;
72
+ case types.CUSTOM_ELEM:
73
+ return customViewElem();
74
+ default:
75
+ return <></>;
76
76
  }
77
77
  };
78
78
 
@@ -15,7 +15,6 @@ function AddToCartDialogAlertView(props) {
15
15
  <>
16
16
  <Dialog
17
17
  open={open}
18
- aria-labelledby="alert-dialog-title"
19
18
  aria-describedby="alert-dialog-description"
20
19
  >
21
20
  <DialogContent className="alter-content">
@@ -30,7 +30,6 @@ function AddToCartDialogView(props) {
30
30
  <>
31
31
  <Dialog
32
32
  open={open}
33
- aria-labelledby="alert-dialog-title"
34
33
  aria-describedby="alert-dialog-description"
35
34
  >
36
35
  <DialogContent>
@@ -42,7 +41,7 @@ function AddToCartDialogView(props) {
42
41
  activeFilters={activeFilters}
43
42
  />
44
43
  ) : (
45
- <DialogContentText id="alert-dialog-description">
44
+ <DialogContentText id="alert-dialog-description" style={{ color: 'black' }}>
46
45
  Are you sure to add All Files
47
46
  {' '}
48
47
  {numberOfFilesSelected}