@bigbinary/neeto-rules-frontend 2.5.15-beta-7 → 2.5.15-beta-8
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/dist/NeetoRules.js +5 -25
- package/dist/NeetoRules.js.map +1 -1
- package/dist/NeetoRulesForm.js +86 -29
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/RulePreview.js +3 -7
- package/dist/RulePreview.js.map +1 -1
- package/dist/cjs/NeetoRules.js +4 -24
- package/dist/cjs/NeetoRules.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +86 -29
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/RulePreview.js +3 -7
- package/dist/cjs/RulePreview.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -87,7 +87,7 @@ var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
|
|
|
87
87
|
|
|
88
88
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
89
89
|
|
|
90
|
-
var css = ".neeto-
|
|
90
|
+
var css = ".neeto-rules-main-content__container{height:100dvh!important}.neeto-rules-main-card .neeto-ui-btn.underline{text-align:left}.neeto-rules-side-panel{flex-grow:0;flex-shrink:0}.neeto-rules-side-panel--small{width:320px}@media (min-width:1024px){.neeto-rules-side-panel--small{width:380px}}.neeto-rules-side-panel--large{width:380px}@media (min-width:1024px){.neeto-rules-side-panel--large{width:480px}}.neeto-rules-json-editor__wrapper{height:35vh;position:relative}.neeto-rules-json-editor__editor{height:100%}.neeto-rules-json-editor__dynamic-variables{position:absolute;right:1rem;top:1rem;z-index:10}[data-tippy-root]{z-index:99999!important}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19sYXlvdXQuc2NzcyIsImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9tYWluLnNjc3MiLCJhcHAvamF2YXNjcmlwdC9zcmMvc3R5bGVzaGVldHMvY29tcG9uZW50cy9fcGFuZS5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3JjL3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX2pzb24tZWRpdG9yLnNjc3MiLCJhcHAvamF2YXNjcmlwdC9zcmMvc3R5bGVzaGVldHMvY29tcG9uZW50cy9fZHJvcGRvd24uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxQ0FDRSx1QkNDRixDREVBLCtDQUNFLGVDQ0YsQ0NOQSx3QkFFRSxXQUFBLENBREEsYURVRixDQ1BFLCtCQUNFLFdEU0osQ0NQSSwwQkFIRiwrQkFJSSxXRFVKLENBQ0YsQ0NQRSwrQkFDRSxXRFNKLENDUEksMEJBSEYsK0JBSUksV0RVSixDQUNGLENFMUJFLGtDQUVFLFdBQUEsQ0FEQSxpQkY4QkosQ0UxQkUsaUNBQ0UsV0Y0QkosQ0V6QkUsNENBQ0UsaUJBQUEsQ0FFQSxVQUFBLENBREEsUUFBQSxDQUVBLFVGMkJKLENHekNBLGtCQUNFLHVCSDRDRiIsInNvdXJjZXNDb250ZW50IjpbIi5uZWV0by1ydWxlcy1tYWluLWNvbnRlbnRfX2NvbnRhaW5lciB7XG4gIGhlaWdodDogMTAwZHZoICFpbXBvcnRhbnQ7XG59XG5cbi5uZWV0by1ydWxlcy1tYWluLWNhcmQgLm5lZXRvLXVpLWJ0bi51bmRlcmxpbmUge1xuICB0ZXh0LWFsaWduOiBsZWZ0O1xufSIsIi5uZWV0by1ydWxlcy1tYWluLWNvbnRlbnRfX2NvbnRhaW5lciB7XG4gIGhlaWdodDogMTAwZHZoICFpbXBvcnRhbnQ7XG59XG5cbi5uZWV0by1ydWxlcy1tYWluLWNhcmQgLm5lZXRvLXVpLWJ0bi51bmRlcmxpbmUge1xuICB0ZXh0LWFsaWduOiBsZWZ0O1xufVxuXG4ubmVldG8tcnVsZXMtc2lkZS1wYW5lbCB7XG4gIGZsZXgtc2hyaW5rOiAwO1xuICBmbGV4LWdyb3c6IDA7XG59XG4ubmVldG8tcnVsZXMtc2lkZS1wYW5lbC0tc21hbGwge1xuICB3aWR0aDogMzIwcHg7XG59XG5AbWVkaWEgKG1pbi13aWR0aDogMTAyNHB4KSB7XG4gIC5uZWV0by1ydWxlcy1zaWRlLXBhbmVsLS1zbWFsbCB7XG4gICAgd2lkdGg6IDM4MHB4O1xuICB9XG59XG4ubmVldG8tcnVsZXMtc2lkZS1wYW5lbC0tbGFyZ2Uge1xuICB3aWR0aDogMzgwcHg7XG59XG5AbWVkaWEgKG1pbi13aWR0aDogMTAyNHB4KSB7XG4gIC5uZWV0by1ydWxlcy1zaWRlLXBhbmVsLS1sYXJnZSB7XG4gICAgd2lkdGg6IDQ4MHB4O1xuICB9XG59XG5cbi5uZWV0by1ydWxlcy1qc29uLWVkaXRvcl9fd3JhcHBlciB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgaGVpZ2h0OiAzNXZoO1xufVxuLm5lZXRvLXJ1bGVzLWpzb24tZWRpdG9yX19lZGl0b3Ige1xuICBoZWlnaHQ6IDEwMCU7XG59XG4ubmVldG8tcnVsZXMtanNvbi1lZGl0b3JfX2R5bmFtaWMtdmFyaWFibGVzIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDFyZW07XG4gIHJpZ2h0OiAxcmVtO1xuICB6LWluZGV4OiAxMDtcbn1cblxuW2RhdGEtdGlwcHktcm9vdF0ge1xuICB6LWluZGV4OiA5OTk5OSAhaW1wb3J0YW50O1xufSIsIi5uZWV0by1ydWxlcy1zaWRlLXBhbmVsIHtcbiAgZmxleC1zaHJpbms6IDA7XG4gIGZsZXgtZ3JvdzogMDtcblxuICAmLS1zbWFsbCB7XG4gICAgd2lkdGg6IDMyMHB4O1xuXG4gICAgQG1lZGlhIChtaW4td2lkdGg6IDEwMjRweCkge1xuICAgICAgd2lkdGg6IDM4MHB4O1xuICAgIH1cbiAgfVxuXG4gICYtLWxhcmdlIHtcbiAgICB3aWR0aDogMzgwcHg7XG5cbiAgICBAbWVkaWEgKG1pbi13aWR0aDogMTAyNHB4KSB7XG4gICAgICB3aWR0aDogNDgwcHg7XG4gICAgfVxuICB9XG59IiwiLm5lZXRvLXJ1bGVzLWpzb24tZWRpdG9yIHtcbiAgJl9fd3JhcHBlciB7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGhlaWdodDogMzV2aDtcbiAgfVxuXG4gICZfX2VkaXRvciB7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICB9XG5cbiAgJl9fZHluYW1pYy12YXJpYWJsZXMge1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB0b3A6IDFyZW07XG4gICAgcmlnaHQ6IDFyZW07XG4gICAgei1pbmRleDogMTA7XG4gIH1cbn1cbiIsIltkYXRhLXRpcHB5LXJvb3RdIHtcbiAgei1pbmRleDogOTk5OTkgIWltcG9ydGFudDtcbn1cbiJdfQ== */";
|
|
91
91
|
n(css,{});
|
|
92
92
|
|
|
93
93
|
var useActiveField = function useActiveField(name) {
|
|
@@ -574,7 +574,9 @@ var LongTextField = function LongTextField(_ref2) {
|
|
|
574
574
|
_ref2$selectedField = _ref2.selectedField,
|
|
575
575
|
selectedField = _ref2$selectedField === void 0 ? {} : _ref2$selectedField,
|
|
576
576
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
577
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
577
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
578
|
+
_ref2$required = _ref2.required,
|
|
579
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
578
580
|
var _useActiveField2 = useActiveField(name, {
|
|
579
581
|
shouldAutoFocus: shouldAutoFocus
|
|
580
582
|
}),
|
|
@@ -584,8 +586,8 @@ var LongTextField = function LongTextField(_ref2) {
|
|
|
584
586
|
return /*#__PURE__*/jsxRuntime.jsx(Textarea, {
|
|
585
587
|
name: name,
|
|
586
588
|
ref: ref,
|
|
589
|
+
required: required,
|
|
587
590
|
rows: rows,
|
|
588
|
-
required: true,
|
|
589
591
|
className: "w-full",
|
|
590
592
|
onFocus: setFieldActive
|
|
591
593
|
});
|
|
@@ -1087,7 +1089,9 @@ var Target$g = function Target(_ref) {
|
|
|
1087
1089
|
var DateField$1 = function DateField(_ref2) {
|
|
1088
1090
|
var name = _ref2.name,
|
|
1089
1091
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
1090
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
1092
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
1093
|
+
_ref2$required = _ref2.required,
|
|
1094
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
1091
1095
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
1092
1096
|
t = _useTranslation2.t;
|
|
1093
1097
|
var _useField3 = formik.useField("".concat(name, ".value")),
|
|
@@ -1104,6 +1108,7 @@ var DateField$1 = function DateField(_ref2) {
|
|
|
1104
1108
|
setFieldActive = _useActiveField2.setFieldActive;
|
|
1105
1109
|
return /*#__PURE__*/jsxRuntime.jsx(DatePicker, {
|
|
1106
1110
|
ref: ref,
|
|
1111
|
+
required: required,
|
|
1107
1112
|
defaultValue: field.value,
|
|
1108
1113
|
label: t("neetoRules.form.selectDate"),
|
|
1109
1114
|
name: "".concat(name, ".value"),
|
|
@@ -1138,6 +1143,7 @@ var EmailIdFields = function EmailIdFields(_ref) {
|
|
|
1138
1143
|
children: /*#__PURE__*/jsxRuntime.jsx(MultiEmailInput, {
|
|
1139
1144
|
name: name,
|
|
1140
1145
|
onFocus: onFocus,
|
|
1146
|
+
required: true,
|
|
1141
1147
|
label: t("neetoRules.common.emailIds"),
|
|
1142
1148
|
placeholder: t("neetoRules.placeholders.emailField"),
|
|
1143
1149
|
ref: initialFocusRef,
|
|
@@ -1251,7 +1257,9 @@ var SelectField$2 = function SelectField(_ref2) {
|
|
|
1251
1257
|
selectedField = _ref2.selectedField,
|
|
1252
1258
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
1253
1259
|
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
1254
|
-
className = _ref2.className
|
|
1260
|
+
className = _ref2.className,
|
|
1261
|
+
_ref2$required = _ref2.required,
|
|
1262
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
1255
1263
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
1256
1264
|
t = _useTranslation2.t;
|
|
1257
1265
|
var _useField3 = formik.useField(name),
|
|
@@ -1285,6 +1293,7 @@ var SelectField$2 = function SelectField(_ref2) {
|
|
|
1285
1293
|
return /*#__PURE__*/jsxRuntime.jsx(Select$1, {
|
|
1286
1294
|
className: className,
|
|
1287
1295
|
name: name,
|
|
1296
|
+
required: required,
|
|
1288
1297
|
innerRef: ref,
|
|
1289
1298
|
label: defaultLabel,
|
|
1290
1299
|
options: dropdownOptions,
|
|
@@ -1401,6 +1410,7 @@ var EmailFields = function EmailFields(_ref2) {
|
|
|
1401
1410
|
children: [showFieldSelection && /*#__PURE__*/react.createElement(SelectField$2, {
|
|
1402
1411
|
index: index,
|
|
1403
1412
|
selectedField: selectedField,
|
|
1413
|
+
required: true,
|
|
1404
1414
|
shouldAutoFocus: true,
|
|
1405
1415
|
className: "mb-6",
|
|
1406
1416
|
dropdownOptions: fieldOptions,
|
|
@@ -1418,6 +1428,7 @@ var EmailFields = function EmailFields(_ref2) {
|
|
|
1418
1428
|
initialFocusRef: isFirstFieldInForm("emails") ? initialFocusRef : null,
|
|
1419
1429
|
onFocus: setFieldActive
|
|
1420
1430
|
}), !selectedField.hideSubject && /*#__PURE__*/jsxRuntime.jsx(Input$1, {
|
|
1431
|
+
required: true,
|
|
1421
1432
|
className: "mb-4",
|
|
1422
1433
|
"data-cy": "email-action-subject-text-field",
|
|
1423
1434
|
label: t("neetoRules.labels.subject"),
|
|
@@ -1426,6 +1437,7 @@ var EmailFields = function EmailFields(_ref2) {
|
|
|
1426
1437
|
type: "text",
|
|
1427
1438
|
onFocus: setFieldActive
|
|
1428
1439
|
}), /*#__PURE__*/jsxRuntime.jsx(EditorAction, {
|
|
1440
|
+
required: true,
|
|
1429
1441
|
label: t("neetoRules.labels.body"),
|
|
1430
1442
|
name: "".concat(name, ".body"),
|
|
1431
1443
|
value: (_action$metadata = action.metadata) === null || _action$metadata === void 0 ? void 0 : _action$metadata.body,
|
|
@@ -1481,7 +1493,9 @@ var Target$d = function Target(_ref) {
|
|
|
1481
1493
|
var Input = function Input(_ref2) {
|
|
1482
1494
|
var name = _ref2.name,
|
|
1483
1495
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
1484
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
1496
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
1497
|
+
_ref2$required = _ref2.required,
|
|
1498
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
1485
1499
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
1486
1500
|
t = _useTranslation2.t;
|
|
1487
1501
|
var _useActiveField2 = useActiveField(name, {
|
|
@@ -1491,6 +1505,7 @@ var Input = function Input(_ref2) {
|
|
|
1491
1505
|
setFieldActive = _useActiveField2.setFieldActive;
|
|
1492
1506
|
return /*#__PURE__*/jsxRuntime.jsx(Input$1, {
|
|
1493
1507
|
ref: ref,
|
|
1508
|
+
required: required,
|
|
1494
1509
|
className: "my-auto",
|
|
1495
1510
|
label: t("neetoRules.labels.value"),
|
|
1496
1511
|
name: "".concat(name, ".value"),
|
|
@@ -1572,6 +1587,7 @@ var InlineInput = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
|
1572
1587
|
ref: inputWrapperRef,
|
|
1573
1588
|
children: /*#__PURE__*/jsxRuntime.jsx(Input$2, _objectSpread$m(_objectSpread$m({
|
|
1574
1589
|
autoFocus: true,
|
|
1590
|
+
required: true,
|
|
1575
1591
|
className: "neeto-planner-inline-input",
|
|
1576
1592
|
"data-cy": "inline-input-field",
|
|
1577
1593
|
value: inputValue,
|
|
@@ -1737,10 +1753,9 @@ var Target$b = function Target(_ref) {
|
|
|
1737
1753
|
var _useTranslation = reactI18next.useTranslation(),
|
|
1738
1754
|
t = _useTranslation.t;
|
|
1739
1755
|
var _useField = formik.useField(name),
|
|
1740
|
-
_useField2 = _slicedToArray(_useField,
|
|
1741
|
-
field = _useField2[0]
|
|
1742
|
-
_useField2[1];
|
|
1743
|
-
var meta = _useField2[2];
|
|
1756
|
+
_useField2 = _slicedToArray(_useField, 2),
|
|
1757
|
+
field = _useField2[0],
|
|
1758
|
+
meta = _useField2[1];
|
|
1744
1759
|
var _useActiveField = useActiveField(name),
|
|
1745
1760
|
isFieldActive = _useActiveField.isFieldActive,
|
|
1746
1761
|
setFieldActive = _useActiveField.setFieldActive;
|
|
@@ -1811,7 +1826,9 @@ var MultiSelect$1 = function MultiSelect(_ref2) {
|
|
|
1811
1826
|
name = _ref2.name,
|
|
1812
1827
|
selectedField = _ref2.selectedField,
|
|
1813
1828
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
1814
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
1829
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
1830
|
+
_ref2$required = _ref2.required,
|
|
1831
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
1815
1832
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
1816
1833
|
t = _useTranslation2.t;
|
|
1817
1834
|
var _useActiveField2 = useActiveField(name, {
|
|
@@ -1841,6 +1858,7 @@ var MultiSelect$1 = function MultiSelect(_ref2) {
|
|
|
1841
1858
|
className: "space-y-3",
|
|
1842
1859
|
children: /*#__PURE__*/jsxRuntime.jsx(Select$1, {
|
|
1843
1860
|
name: name,
|
|
1861
|
+
required: required,
|
|
1844
1862
|
isMulti: true,
|
|
1845
1863
|
innerRef: ref,
|
|
1846
1864
|
label: defaultLabel,
|
|
@@ -1864,10 +1882,9 @@ var Target$a = function Target(_ref) {
|
|
|
1864
1882
|
var _useTranslation = reactI18next.useTranslation(),
|
|
1865
1883
|
t = _useTranslation.t;
|
|
1866
1884
|
var _useField = formik.useField(name),
|
|
1867
|
-
_useField2 = _slicedToArray(_useField,
|
|
1868
|
-
field = _useField2[0]
|
|
1869
|
-
_useField2[1];
|
|
1870
|
-
var meta = _useField2[2];
|
|
1885
|
+
_useField2 = _slicedToArray(_useField, 2),
|
|
1886
|
+
field = _useField2[0],
|
|
1887
|
+
meta = _useField2[1];
|
|
1871
1888
|
var _useActiveField = useActiveField(name),
|
|
1872
1889
|
isFieldActive = _useActiveField.isFieldActive,
|
|
1873
1890
|
setFieldActive = _useActiveField.setFieldActive;
|
|
@@ -1938,7 +1955,9 @@ var MultiSelectCheckbox$1 = function MultiSelectCheckbox(_ref2) {
|
|
|
1938
1955
|
dropdownOptions = _ref2$dropdownOptions === void 0 ? [] : _ref2$dropdownOptions,
|
|
1939
1956
|
name = _ref2.name,
|
|
1940
1957
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
1941
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
1958
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
1959
|
+
_ref2$required = _ref2.required,
|
|
1960
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
1942
1961
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
1943
1962
|
t = _useTranslation2.t;
|
|
1944
1963
|
var _useActiveField2 = useActiveField(name, {
|
|
@@ -1962,6 +1981,7 @@ var MultiSelectCheckbox$1 = function MultiSelectCheckbox(_ref2) {
|
|
|
1962
1981
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1963
1982
|
className: "space-y-3",
|
|
1964
1983
|
children: [/*#__PURE__*/jsxRuntime.jsx(Label, {
|
|
1984
|
+
required: required,
|
|
1965
1985
|
children: defaultLabel
|
|
1966
1986
|
}), neetoCist.isNotEmpty(dropdownOptions) ? dropdownOptions.map(function (option) {
|
|
1967
1987
|
return /*#__PURE__*/react.createElement(Checkbox, {
|
|
@@ -2050,6 +2070,7 @@ var NoteField = function NoteField(_ref2) {
|
|
|
2050
2070
|
ref: ref,
|
|
2051
2071
|
value: value,
|
|
2052
2072
|
variables: variables,
|
|
2073
|
+
required: true,
|
|
2053
2074
|
label: defaultLabel,
|
|
2054
2075
|
onFocus: setFieldActive
|
|
2055
2076
|
});
|
|
@@ -2115,7 +2136,9 @@ var RadioField$2 = function RadioField(_ref2) {
|
|
|
2115
2136
|
_ref2$className = _ref2.className,
|
|
2116
2137
|
className = _ref2$className === void 0 ? "" : _ref2$className,
|
|
2117
2138
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
2118
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
2139
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
2140
|
+
_ref2$required = _ref2.required,
|
|
2141
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
2119
2142
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
2120
2143
|
t = _useTranslation2.t;
|
|
2121
2144
|
var _useField3 = formik.useField(name),
|
|
@@ -2149,6 +2172,7 @@ var RadioField$2 = function RadioField(_ref2) {
|
|
|
2149
2172
|
return neetoCist.isNotEmpty(options) ? /*#__PURE__*/jsxRuntime.jsx(Radio, {
|
|
2150
2173
|
className: className,
|
|
2151
2174
|
name: name,
|
|
2175
|
+
required: required,
|
|
2152
2176
|
stacked: true,
|
|
2153
2177
|
label: defaultLabel,
|
|
2154
2178
|
value: selectedOption.value,
|
|
@@ -2740,6 +2764,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2740
2764
|
}) : /*#__PURE__*/jsxRuntime.jsx(RadioField$2, {
|
|
2741
2765
|
index: index,
|
|
2742
2766
|
selectedField: selectedField,
|
|
2767
|
+
required: true,
|
|
2743
2768
|
shouldAutoFocus: true,
|
|
2744
2769
|
name: "".concat(name, ".value"),
|
|
2745
2770
|
options: valueOptions
|
|
@@ -2758,6 +2783,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2758
2783
|
}) : /*#__PURE__*/jsxRuntime.jsx(SelectField$2, {
|
|
2759
2784
|
index: index,
|
|
2760
2785
|
selectedField: selectedField,
|
|
2786
|
+
required: true,
|
|
2761
2787
|
shouldAutoFocus: true,
|
|
2762
2788
|
dropdownOptions: valueOptions,
|
|
2763
2789
|
name: "".concat(name, ".value")
|
|
@@ -2811,6 +2837,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2811
2837
|
}) : /*#__PURE__*/jsxRuntime.jsx(MultiSelect$1, {
|
|
2812
2838
|
index: index,
|
|
2813
2839
|
selectedField: selectedField,
|
|
2840
|
+
required: true,
|
|
2814
2841
|
shouldAutoFocus: true,
|
|
2815
2842
|
dropdownOptions: valueOptions,
|
|
2816
2843
|
name: "".concat(name, ".value")
|
|
@@ -2829,6 +2856,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2829
2856
|
}) : /*#__PURE__*/jsxRuntime.jsx(MultiSelectCheckbox$1, {
|
|
2830
2857
|
index: index,
|
|
2831
2858
|
selectedField: selectedField,
|
|
2859
|
+
required: true,
|
|
2832
2860
|
shouldAutoFocus: true,
|
|
2833
2861
|
dropdownOptions: valueOptions,
|
|
2834
2862
|
name: "".concat(name, ".value")
|
|
@@ -2847,6 +2875,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2847
2875
|
index: index,
|
|
2848
2876
|
name: name,
|
|
2849
2877
|
selectedField: selectedField,
|
|
2878
|
+
required: true,
|
|
2850
2879
|
shouldAutoFocus: true
|
|
2851
2880
|
});
|
|
2852
2881
|
}
|
|
@@ -2863,6 +2892,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2863
2892
|
index: index,
|
|
2864
2893
|
name: name,
|
|
2865
2894
|
selectedField: selectedField,
|
|
2895
|
+
required: true,
|
|
2866
2896
|
shouldAutoFocus: true
|
|
2867
2897
|
});
|
|
2868
2898
|
}
|
|
@@ -2880,6 +2910,7 @@ var ActionSubItem = function ActionSubItem(_ref) {
|
|
|
2880
2910
|
}) : /*#__PURE__*/jsxRuntime.jsx(LongTextField, {
|
|
2881
2911
|
index: index,
|
|
2882
2912
|
selectedField: selectedField,
|
|
2913
|
+
required: true,
|
|
2883
2914
|
shouldAutoFocus: true,
|
|
2884
2915
|
defaultLabel: t("neetoRules.labels.body"),
|
|
2885
2916
|
defaultSeparator: t("neetoRules.common.as"),
|
|
@@ -3042,7 +3073,9 @@ var DateField = function DateField(_ref2) {
|
|
|
3042
3073
|
var name = _ref2.name,
|
|
3043
3074
|
selectedField = _ref2.selectedField,
|
|
3044
3075
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
3045
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
3076
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3077
|
+
_ref2$required = _ref2.required,
|
|
3078
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
3046
3079
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
3047
3080
|
t = _useTranslation2.t;
|
|
3048
3081
|
var _useField3 = formik.useField(name),
|
|
@@ -3066,6 +3099,7 @@ var DateField = function DateField(_ref2) {
|
|
|
3066
3099
|
};
|
|
3067
3100
|
return /*#__PURE__*/jsxRuntime.jsx(DatePicker, {
|
|
3068
3101
|
ref: ref,
|
|
3102
|
+
required: required,
|
|
3069
3103
|
defaultValue: field.value,
|
|
3070
3104
|
error: meta.touched && meta.error,
|
|
3071
3105
|
label: t("neetoRules.form.selectDate"),
|
|
@@ -3116,7 +3150,9 @@ var InputField$1 = function InputField(_ref2) {
|
|
|
3116
3150
|
var name = _ref2.name,
|
|
3117
3151
|
placeholder = _ref2.placeholder,
|
|
3118
3152
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
3119
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
3153
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3154
|
+
_ref2$required = _ref2.required,
|
|
3155
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
3120
3156
|
var _useField3 = formik.useField(name),
|
|
3121
3157
|
_useField4 = _slicedToArray(_useField3, 3),
|
|
3122
3158
|
field = _useField4[0];
|
|
@@ -3131,6 +3167,7 @@ var InputField$1 = function InputField(_ref2) {
|
|
|
3131
3167
|
name: name,
|
|
3132
3168
|
placeholder: placeholder,
|
|
3133
3169
|
ref: ref,
|
|
3170
|
+
required: required,
|
|
3134
3171
|
label: placeholder,
|
|
3135
3172
|
value: field.value || "",
|
|
3136
3173
|
onFocus: setFieldActive,
|
|
@@ -3141,7 +3178,7 @@ var InputField$1 = function InputField(_ref2) {
|
|
|
3141
3178
|
};
|
|
3142
3179
|
InputField$1.Target = Target$5;
|
|
3143
3180
|
|
|
3144
|
-
var _excluded$9 = ["name", "dropdownOptions", "shouldAutoFocus"];
|
|
3181
|
+
var _excluded$9 = ["name", "dropdownOptions", "shouldAutoFocus", "required"];
|
|
3145
3182
|
function ownKeys$j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3146
3183
|
function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3147
3184
|
var Target$4 = function Target(_ref) {
|
|
@@ -3208,6 +3245,8 @@ var MultiSelect = function MultiSelect(_ref2) {
|
|
|
3208
3245
|
dropdownOptions = _ref2.dropdownOptions,
|
|
3209
3246
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
3210
3247
|
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3248
|
+
_ref2$required = _ref2.required,
|
|
3249
|
+
required = _ref2$required === void 0 ? false : _ref2$required,
|
|
3211
3250
|
otherProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
3212
3251
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
3213
3252
|
t = _useTranslation2.t;
|
|
@@ -3234,6 +3273,7 @@ var MultiSelect = function MultiSelect(_ref2) {
|
|
|
3234
3273
|
className: "space-y-3",
|
|
3235
3274
|
children: /*#__PURE__*/jsxRuntime.jsx(Select$1, _objectSpread$j({
|
|
3236
3275
|
name: name,
|
|
3276
|
+
required: required,
|
|
3237
3277
|
isMulti: true,
|
|
3238
3278
|
innerRef: ref,
|
|
3239
3279
|
label: t("neetoRules.labels.selectValues"),
|
|
@@ -3246,7 +3286,7 @@ var MultiSelect = function MultiSelect(_ref2) {
|
|
|
3246
3286
|
};
|
|
3247
3287
|
MultiSelect.Target = Target$4;
|
|
3248
3288
|
|
|
3249
|
-
var _excluded$8 = ["name", "dropdownOptions", "shouldAutoFocus"];
|
|
3289
|
+
var _excluded$8 = ["name", "dropdownOptions", "shouldAutoFocus", "required"];
|
|
3250
3290
|
function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3251
3291
|
function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3252
3292
|
var Target$3 = function Target(_ref) {
|
|
@@ -3313,6 +3353,8 @@ var MultiSelectCheckbox = function MultiSelectCheckbox(_ref2) {
|
|
|
3313
3353
|
dropdownOptions = _ref2.dropdownOptions,
|
|
3314
3354
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
3315
3355
|
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3356
|
+
_ref2$required = _ref2.required,
|
|
3357
|
+
required = _ref2$required === void 0 ? false : _ref2$required,
|
|
3316
3358
|
otherProps = _objectWithoutProperties(_ref2, _excluded$8);
|
|
3317
3359
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
3318
3360
|
t = _useTranslation2.t;
|
|
@@ -3337,6 +3379,7 @@ var MultiSelectCheckbox = function MultiSelectCheckbox(_ref2) {
|
|
|
3337
3379
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3338
3380
|
className: "space-y-3",
|
|
3339
3381
|
children: [/*#__PURE__*/jsxRuntime.jsx(Label, {
|
|
3382
|
+
required: required,
|
|
3340
3383
|
children: defaultLabel
|
|
3341
3384
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3342
3385
|
className: "space-y-3",
|
|
@@ -3457,7 +3500,9 @@ var Target$2 = function Target(_ref) {
|
|
|
3457
3500
|
var MultiSelectCreate = function MultiSelectCreate(_ref2) {
|
|
3458
3501
|
var name = _ref2.name,
|
|
3459
3502
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
3460
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
3503
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3504
|
+
_ref2$required = _ref2.required,
|
|
3505
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
3461
3506
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
3462
3507
|
t = _useTranslation2.t;
|
|
3463
3508
|
var _useField3 = formik.useField(name),
|
|
@@ -3479,6 +3524,7 @@ var MultiSelectCreate = function MultiSelectCreate(_ref2) {
|
|
|
3479
3524
|
};
|
|
3480
3525
|
return /*#__PURE__*/jsxRuntime.jsx(Select$1, {
|
|
3481
3526
|
name: name,
|
|
3527
|
+
required: required,
|
|
3482
3528
|
isCreateable: true,
|
|
3483
3529
|
isMulti: true,
|
|
3484
3530
|
className: "mt-4 w-full",
|
|
@@ -3494,7 +3540,7 @@ var MultiSelectCreate = function MultiSelectCreate(_ref2) {
|
|
|
3494
3540
|
MultiSelectCreate.Target = Target$2;
|
|
3495
3541
|
|
|
3496
3542
|
var _excluded$7 = ["name", "options", "placeholder", "onClick"],
|
|
3497
|
-
_excluded2 = ["name", "options", "handleOnChange", "shouldAutoFocus", "showLabel"];
|
|
3543
|
+
_excluded2 = ["name", "options", "handleOnChange", "shouldAutoFocus", "showLabel", "required"];
|
|
3498
3544
|
function ownKeys$h(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3499
3545
|
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3500
3546
|
var Target$1 = function Target(_ref) {
|
|
@@ -3547,6 +3593,8 @@ var RadioField$1 = function RadioField(_ref2) {
|
|
|
3547
3593
|
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3548
3594
|
_ref2$showLabel = _ref2.showLabel,
|
|
3549
3595
|
showLabel = _ref2$showLabel === void 0 ? true : _ref2$showLabel,
|
|
3596
|
+
_ref2$required = _ref2.required,
|
|
3597
|
+
required = _ref2$required === void 0 ? false : _ref2$required,
|
|
3550
3598
|
otherProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
3551
3599
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
3552
3600
|
t = _useTranslation2.t;
|
|
@@ -3574,6 +3622,7 @@ var RadioField$1 = function RadioField(_ref2) {
|
|
|
3574
3622
|
};
|
|
3575
3623
|
return /*#__PURE__*/jsxRuntime.jsx(Radio$1, _objectSpread$h(_objectSpread$h({
|
|
3576
3624
|
ref: ref,
|
|
3625
|
+
required: required,
|
|
3577
3626
|
stacked: true,
|
|
3578
3627
|
label: showLabel && t("neetoRules.labels.selectValue"),
|
|
3579
3628
|
value: selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value,
|
|
@@ -3640,7 +3689,9 @@ var SelectField$1 = function SelectField(_ref2) {
|
|
|
3640
3689
|
placeholder = _ref2.placeholder,
|
|
3641
3690
|
handleSelect = _ref2.handleSelect,
|
|
3642
3691
|
_ref2$shouldAutoFocus = _ref2.shouldAutoFocus,
|
|
3643
|
-
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus
|
|
3692
|
+
shouldAutoFocus = _ref2$shouldAutoFocus === void 0 ? false : _ref2$shouldAutoFocus,
|
|
3693
|
+
_ref2$required = _ref2.required,
|
|
3694
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
3644
3695
|
var _useTranslation2 = reactI18next.useTranslation(),
|
|
3645
3696
|
t = _useTranslation2.t;
|
|
3646
3697
|
var _useField3 = formik.useField(name),
|
|
@@ -3671,6 +3722,7 @@ var SelectField$1 = function SelectField(_ref2) {
|
|
|
3671
3722
|
};
|
|
3672
3723
|
return /*#__PURE__*/jsxRuntime.jsx(Select$1, {
|
|
3673
3724
|
name: name,
|
|
3725
|
+
required: required,
|
|
3674
3726
|
innerRef: ref,
|
|
3675
3727
|
label: placeholder || t("neetoRules.labels.selectValue"),
|
|
3676
3728
|
options: dropdownOptions,
|
|
@@ -3780,6 +3832,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3780
3832
|
onClick: onClick,
|
|
3781
3833
|
name: "".concat(name, ".value")
|
|
3782
3834
|
}) : /*#__PURE__*/jsxRuntime.jsx(InputField$1, {
|
|
3835
|
+
required: true,
|
|
3783
3836
|
name: "".concat(name, ".value"),
|
|
3784
3837
|
placeholder: t("neetoRules.common.value")
|
|
3785
3838
|
});
|
|
@@ -3792,6 +3845,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3792
3845
|
name: "".concat(name, ".value")
|
|
3793
3846
|
}) : /*#__PURE__*/jsxRuntime.jsx(LongTextField, {
|
|
3794
3847
|
index: index,
|
|
3848
|
+
required: true,
|
|
3795
3849
|
defaultLabel: t("neetoRules.labels.text"),
|
|
3796
3850
|
name: "".concat(name, ".value")
|
|
3797
3851
|
});
|
|
@@ -3804,6 +3858,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3804
3858
|
}) : /*#__PURE__*/jsxRuntime.jsx(RadioField$1, {
|
|
3805
3859
|
index: index,
|
|
3806
3860
|
options: options,
|
|
3861
|
+
required: true,
|
|
3807
3862
|
name: "".concat(name, ".value")
|
|
3808
3863
|
});
|
|
3809
3864
|
}
|
|
@@ -3814,6 +3869,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3814
3869
|
name: "".concat(name, ".value")
|
|
3815
3870
|
}) : /*#__PURE__*/jsxRuntime.jsx(SelectField$1, {
|
|
3816
3871
|
index: index,
|
|
3872
|
+
required: true,
|
|
3817
3873
|
dropdownOptions: options,
|
|
3818
3874
|
name: "".concat(name, ".value")
|
|
3819
3875
|
});
|
|
@@ -3824,6 +3880,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3824
3880
|
dropdownOptions: options,
|
|
3825
3881
|
name: "".concat(name, ".values")
|
|
3826
3882
|
}) : /*#__PURE__*/jsxRuntime.jsx(MultiSelect, {
|
|
3883
|
+
required: true,
|
|
3827
3884
|
dropdownOptions: options,
|
|
3828
3885
|
name: "".concat(name, ".values")
|
|
3829
3886
|
});
|
|
@@ -3834,6 +3891,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3834
3891
|
dropdownOptions: options,
|
|
3835
3892
|
name: "".concat(name, ".values")
|
|
3836
3893
|
}) : /*#__PURE__*/jsxRuntime.jsx(MultiSelectCheckbox, {
|
|
3894
|
+
required: true,
|
|
3837
3895
|
dropdownOptions: options,
|
|
3838
3896
|
name: "".concat(name, ".values")
|
|
3839
3897
|
});
|
|
@@ -3843,6 +3901,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3843
3901
|
onClick: onClick,
|
|
3844
3902
|
name: "".concat(name, ".values")
|
|
3845
3903
|
}) : /*#__PURE__*/jsxRuntime.jsx(MultiSelectCreate, {
|
|
3904
|
+
required: true,
|
|
3846
3905
|
name: "".concat(name, ".values")
|
|
3847
3906
|
});
|
|
3848
3907
|
}
|
|
@@ -3851,6 +3910,7 @@ var ValueField = function ValueField(_ref) {
|
|
|
3851
3910
|
onClick: onClick,
|
|
3852
3911
|
name: "".concat(name, ".value")
|
|
3853
3912
|
}) : /*#__PURE__*/jsxRuntime.jsx(DateField, {
|
|
3913
|
+
required: true,
|
|
3854
3914
|
name: "".concat(name, ".value"),
|
|
3855
3915
|
selectedField: field
|
|
3856
3916
|
});
|
|
@@ -3960,6 +4020,7 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
|
|
|
3960
4020
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3961
4021
|
className: "flex flex-col space-y-4",
|
|
3962
4022
|
children: [/*#__PURE__*/jsxRuntime.jsx(SelectField$1, {
|
|
4023
|
+
required: true,
|
|
3963
4024
|
shouldAutoFocus: true,
|
|
3964
4025
|
dropdownOptions: verbOptions,
|
|
3965
4026
|
handleSelect: handleVerbChange,
|
|
@@ -4432,7 +4493,7 @@ var getConditionsSchema = function getConditionsSchema(element) {
|
|
|
4432
4493
|
if (selectedCondition !== null && selectedCondition !== void 0 && (_selectedCondition$no = selectedCondition.noValueForVerbs) !== null && _selectedCondition$no !== void 0 && _selectedCondition$no.includes(verb)) {
|
|
4433
4494
|
return yup__namespace.object();
|
|
4434
4495
|
}
|
|
4435
|
-
if ([constants.CONDITION_VALUE_TYPES.date, constants.CONDITION_VALUE_TYPES.radio, constants.CONDITION_VALUE_TYPES.select].includes(type)) {
|
|
4496
|
+
if ([constants.CONDITION_VALUE_TYPES.date, constants.CONDITION_VALUE_TYPES.radio, constants.CONDITION_VALUE_TYPES.dropdown, constants.CONDITION_VALUE_TYPES.select].includes(type)) {
|
|
4436
4497
|
return yup__namespace.object().shape({
|
|
4437
4498
|
value: yup__namespace.string().required(i18next.t("neetoRules.validations.required.value"))
|
|
4438
4499
|
});
|
|
@@ -6092,10 +6153,6 @@ var Form = function Form(_ref) {
|
|
|
6092
6153
|
data: initialValues,
|
|
6093
6154
|
label: t("neetoRules.common.name"),
|
|
6094
6155
|
name: "name"
|
|
6095
|
-
}), /*#__PURE__*/jsxRuntime.jsx(TextareaField, {
|
|
6096
|
-
data: initialValues,
|
|
6097
|
-
label: t("neetoRules.common.description"),
|
|
6098
|
-
name: "description"
|
|
6099
6156
|
}), showStatusSwitch && /*#__PURE__*/jsxRuntime.jsx(Status, {}), typeof _children === "function" ? _children === null || _children === void 0 ? void 0 : _children(_objectSpread$1({
|
|
6100
6157
|
values: values,
|
|
6101
6158
|
formattedValues: buildPayload(data, values),
|