@bigbinary/neeto-rules-frontend 0.0.90 → 0.0.91
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 +9 -3
- package/dist/index.cjs.js +2088 -831
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2088 -831
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -216,7 +216,7 @@ const initialProps = {
|
|
|
216
216
|
| label | To specify the text to be displayed above the field. `string` |
|
|
217
217
|
| options | To provide options for the Radio input. `[{label, value}]` |
|
|
218
218
|
|
|
219
|
-
###
|
|
219
|
+
### EventConditions
|
|
220
220
|
|
|
221
221
|
```jsx
|
|
222
222
|
const initialProps = {
|
|
@@ -238,7 +238,12 @@ const initialProps = {
|
|
|
238
238
|
},
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
-
<
|
|
241
|
+
<EventConditions
|
|
242
|
+
name="events"
|
|
243
|
+
data={initialProps}
|
|
244
|
+
performerName="performer"
|
|
245
|
+
conditionsName="conditions"
|
|
246
|
+
/>;
|
|
242
247
|
```
|
|
243
248
|
|
|
244
249
|
#### API
|
|
@@ -248,6 +253,7 @@ const initialProps = {
|
|
|
248
253
|
| data | The same `initialProp` that is passed to `data` prop in `NeetoRulesForm`. |
|
|
249
254
|
| name | Name of the field. The name should be same as that in the initialProp |
|
|
250
255
|
| performerName | Name of the performer field. The performerName should be same as that in the initialProp |
|
|
256
|
+
| conditionsName | Name of the conditions field. The conditionsName should be same as that in the initialProp |
|
|
251
257
|
| label | To specify the text to be displayed above the field. `string` |
|
|
252
258
|
| onSelectEvent | `(name, selectedOption) => void` This method will trigger when we select an event option. The `name` is to refer the event in the formik context. |
|
|
253
259
|
|
|
@@ -342,7 +348,7 @@ const initialProps = {
|
|
|
342
348
|
{
|
|
343
349
|
value: "add_tags",
|
|
344
350
|
label: "Add Tags",
|
|
345
|
-
type: "multiSelect", // Types : emailToIds, emailTo, email, dropdown, list, multiSelect, note
|
|
351
|
+
type: "multiSelect", // Types : emailToIds, emailTo, email, dropdown, list, multiSelect, note, date, text, textarea, decimal, number, regex
|
|
346
352
|
hideSeparator: true,
|
|
347
353
|
placeholder: "Select tags",
|
|
348
354
|
dropdownOptions: [
|