-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from RXNT/ED-6474_-_update_collapsible_field_…
…for_bulk_delete Ed 6474 update collapsible field for bulk delete
- Loading branch information
Showing
13 changed files
with
758 additions
and
455 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,15 @@ | |
"description": "Extra widgets for Mozilla's react-jsonschema-form", | ||
"private": false, | ||
"author": "[email protected]", | ||
"version": "0.9.67", | ||
"version": "0.9.68", | ||
"scripts": { | ||
"build:lib": "rimraf lib && cross-env NODE_ENV=production babel -d lib/ src/", | ||
"build:dist": "rimraf dist && cross-env NODE_ENV=production webpack --config webpack.config.dist.js --optimize-minimize", | ||
"build:playground": "rimraf build && cross-env NODE_ENV=production webpack --config webpack.config.prod.js --optimize-minimize && cp playground/index.prod.html build/index.html", | ||
"cs-check": "prettier -l $npm_package_prettierOptions '{playground,src,test}/**/*.js'", | ||
"cs-format": "prettier $npm_package_prettierOptions '{playground,src,test}/**/*.js' --write", | ||
"dist": "npm run build:lib && npm run build:dist", | ||
"lint": "eslint src test playground", | ||
"lint": "eslint --fix src test playground", | ||
"precommit": "lint-staged", | ||
"publish-to-gh-pages": "npm run build:playground && gh-pages --dist build/", | ||
"publish-to-npm": "npm run dist && npm publish && npm version patch", | ||
|
@@ -95,6 +95,7 @@ | |
"istanbul-reports": "1.1.4", | ||
"jest": "^23.6.0", | ||
"jsdom": "^11.12.0", | ||
"json-rules-engine-simplified": "^0.1.17", | ||
"lint-staged": "^6.0.0", | ||
"moment": "^2.20.1", | ||
"prettier": "^1.7.4", | ||
|
@@ -104,6 +105,7 @@ | |
"react-day-picker": "^7.0.5", | ||
"react-dom": "^16.0.0", | ||
"react-jsonschema-form": "^1.0.0", | ||
"react-jsonschema-form-conditionals": "^0.3.15", | ||
"react-rte": "^0.15.0", | ||
"react-test-renderer": "^16.0.0", | ||
"react-transform-catch-errors": "^1.0.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import schema from "./schema"; | ||
import uiSchema from "./uiSchema"; | ||
import rules from "./rules.json"; | ||
|
||
export default { | ||
schema, | ||
uiSchema, | ||
...rules, | ||
formData: { | ||
medicationData: { | ||
medications: [ | ||
{ drugId: 0, quantity: 21, useGeneric: true, isSelected: true }, | ||
{ drugId: 1, quantity: 22, useGeneric: true, isSelected: true }, | ||
{ drugId: 3, quantity: 23, useGeneric: true, isSelected: true }, | ||
{ drugId: 1, quantity: 24, useGeneric: true, isSelected: true }, | ||
], | ||
}, | ||
}, | ||
{ drugId: 1, quantity: 24, useGeneric: true, isSelected: true } | ||
] | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"rules": [ | ||
{ | ||
"conditions": { | ||
"medicationData$medications_no_active": "truthy" | ||
}, | ||
"event": { | ||
"type": "remove", | ||
"params": { | ||
"field": "medicationData.medications" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.