Commits (5)
{
"lerna": "2.0.0",
"version": "1.54.0",
"version": "1.55.0",
"npmClient": "yarn",
"useWorkspaces": true
}
......@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.55.0"></a>
# [1.55.0](https://gitlab.com/4geit/react-packages/compare/v1.54.0...v1.55.0) (2017-10-05)
### Features
* **Data table Store:** Add a store method removeItem ([901b541](https://gitlab.com/4geit/react-packages/commit/901b541))
<a name="1.54.0"></a>
# [1.54.0](https://gitlab.com/4geit/react-packages/compare/v1.53.0...v1.54.0) (2017-10-05)
......
{
"name": "@4geit/rct-chatbox-grid-store",
"version": "1.54.0",
"version": "1.55.0",
"description": "store for the chatbox-grid component",
"main": "dist/index.js",
"module": "dist/index.js",
......
......@@ -156,8 +156,8 @@ class RctChatboxGridStore {
try {
const { client: { apis: { Account } } } = swaggerClientStore
const { body } = await Account[updateOperationId]({
id: { itemId, },
body:{ maximized, }
id: itemId,
body: { maximized, }
})
runInAction(() => {
this.inProgress = false
......
......@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.55.0"></a>
# [1.55.0](https://gitlab.com/4geit/react-packages/compare/v1.54.0...v1.55.0) (2017-10-05)
### Features
* **Data table Store:** Add a store method removeItem ([901b541](https://gitlab.com/4geit/react-packages/commit/901b541))
* **storybook:** add MUI Menu component test ([b9690e3](https://gitlab.com/4geit/react-packages/commit/b9690e3))
<a name="1.53.0"></a>
# [1.53.0](https://gitlab.com/4geit/react-packages/compare/v1.52.1...v1.53.0) (2017-10-04)
......
{
"name": "@4geit/rct-data-table-component",
"version": "1.53.0",
"version": "1.55.0",
"description": "data table component for react apps",
"main": "dist/index.js",
"module": "dist/index.js",
......@@ -12,7 +12,7 @@
"author": "Caner Candan <caner@candan.fr>",
"license": "MIT",
"dependencies": {
"@4geit/rct-data-table-store": "^1.50.0",
"@4geit/rct-data-table-store": "^1.55.0",
"enzyme": "^2.x",
"material-ui": "next",
"material-ui-icons": "^1.0.0-beta.14",
......
......@@ -64,7 +64,7 @@ export default class RctDataTableComponent extends Component {
}
handleRemoveClick = ({ id }) => () => {
const { dataTableStore, deleteOperationId } = this.props
dataTableStore.removeItem({id, deleteOperationId})
dataTableStore.removeItem({ id, deleteOperationId })
}
handleClick(event) {
this.props.dataTableStore.setOpen(true)
......
......@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="1.55.0"></a>
# [1.55.0](https://gitlab.com/4geit/react-packages/compare/v1.54.0...v1.55.0) (2017-10-05)
### Features
* **Data table Store:** Add a store method removeItem ([901b541](https://gitlab.com/4geit/react-packages/commit/901b541))
<a name="1.50.0"></a>
# [1.50.0](https://gitlab.com/4geit/react-packages/compare/v1.49.0...v1.50.0) (2017-10-04)
......
{
"name": "@4geit/rct-data-table-store",
"version": "1.50.0",
"version": "1.55.0",
"description": "data table store to use with data table components",
"main": "dist/index.js",
"module": "dist/index.js",
......
......@@ -70,8 +70,23 @@ class RctDataTableStore {
@action editItem(value) {
this.data = value
}
@action removeItem(value) {
this.data = value
@action async removeItem({ deleteOperationId, id }) {
deleteOperationId = deleteOperationId || 'productDelete'
this.inProgress = true
try {
const { client: { apis: { Account } } } = swaggerClientStore
const { body } = await Account[deleteOperationId]({
id,
})
runInAction(() => {
this.inProgress = false
})
} catch (err) {
console.error(err)
runInAction(() => {
notificationStore.newMessage(err.message)
})
}
}
}
......
......@@ -46,6 +46,7 @@ import notificationMenuStore from '@4geit/rct-notification-menu-store'
import Card, { CardActions, CardContent } from 'material-ui/Card'
import IconButton from 'material-ui/IconButton'
import CloseIcon from 'material-ui-icons/Close'
import NotificationsIcon from 'material-ui-icons/Notifications'
import TextField from 'material-ui/TextField'
import Grid from 'material-ui/Grid'
import Paper from 'material-ui/Paper'
......@@ -62,6 +63,7 @@ import List, {
} from 'material-ui/List'
import Divider from 'material-ui/Divider'
import { GridList, GridListTile } from 'material-ui/GridList'
import Menu, { MenuItem } from 'material-ui/Menu'
// load roboto font to entrypoint
import 'typeface-roboto'
......@@ -291,6 +293,13 @@ storiesOf('MUI', module)
</FormGroup>
))
)
.add('Menu', () => (
<Menu open={ true }>
<MenuItem component="a" href="http://google.com">
<Typography>test</Typography>
</MenuItem>
</Menu>
))
storiesOf('RctLoginComponent', module)
.addDecorator(centered)
.add('with card width',
......