@bigbinary/neeto-rules-frontend 2.7.31 → 2.7.33-beta1
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/app/javascript/src/translations/ar.json +5 -1
- package/app/javascript/src/translations/bg.json +5 -1
- package/app/javascript/src/translations/ca.json +5 -1
- package/app/javascript/src/translations/cs.json +5 -1
- package/app/javascript/src/translations/da.json +5 -1
- package/app/javascript/src/translations/de.json +5 -1
- package/app/javascript/src/translations/en.json +2 -1
- package/app/javascript/src/translations/es-MX.json +5 -1
- package/app/javascript/src/translations/es.json +5 -1
- package/app/javascript/src/translations/et.json +5 -1
- package/app/javascript/src/translations/fi.json +5 -1
- package/app/javascript/src/translations/fil.json +5 -1
- package/app/javascript/src/translations/fr.json +5 -1
- package/app/javascript/src/translations/he.json +5 -1
- package/app/javascript/src/translations/hi.json +5 -1
- package/app/javascript/src/translations/hr.json +5 -1
- package/app/javascript/src/translations/hu.json +5 -1
- package/app/javascript/src/translations/id.json +5 -1
- package/app/javascript/src/translations/it.json +5 -1
- package/app/javascript/src/translations/ja.json +5 -1
- package/app/javascript/src/translations/ko.json +5 -1
- package/app/javascript/src/translations/lv.json +507 -0
- package/app/javascript/src/translations/nl.json +5 -1
- package/app/javascript/src/translations/pl.json +5 -1
- package/app/javascript/src/translations/pt-BR.json +5 -1
- package/app/javascript/src/translations/pt.json +5 -1
- package/app/javascript/src/translations/ro.json +5 -1
- package/app/javascript/src/translations/ru.json +5 -1
- package/app/javascript/src/translations/sk.json +5 -1
- package/app/javascript/src/translations/sl.json +5 -1
- package/app/javascript/src/translations/sv.json +5 -1
- package/app/javascript/src/translations/th.json +5 -1
- package/app/javascript/src/translations/tr.json +5 -1
- package/app/javascript/src/translations/uk.json +5 -1
- package/app/javascript/src/translations/vi.json +5 -1
- package/app/javascript/src/translations/zh-CN.json +5 -1
- package/app/javascript/src/translations/zh-TW.json +5 -1
- package/dist/.ready +1 -1
- package/dist/NeetoRulesBuilder.js +4 -6
- package/dist/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/NeetoRulesBuilder.js +4 -6
- package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesBuilder.js +6 -8
- package/dist/cjs/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/v2/NeetoRulesBuilder.js +6 -8
- package/dist/v2/NeetoRulesBuilder.js.map +1 -1
- package/package.json +5 -5
|
@@ -3,10 +3,10 @@ import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructurin
|
|
|
3
3
|
import { f as flatten, S as SHORTCUTS } from '../keyboardShortcuts-CsMwT9YF.js';
|
|
4
4
|
import { useShallow } from 'zustand/shallow';
|
|
5
5
|
import { useState, useRef, useEffect, Fragment, createElement, useCallback, useMemo, isValidElement } from 'react';
|
|
6
|
-
import { Button, Select, Input, Checkbox, Typography, RadioGroup, Textarea, DatePicker, Popover, Tooltip, MultiEmailInput, TimePicker, Spinner } from '@bigbinary/neeto-atoms';
|
|
7
|
-
import { Input as Input$1, Select as Select$1, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
8
6
|
import classNames from 'classnames';
|
|
9
7
|
import { useFormikContext, getIn, useField, Formik, Form as Form$1 } from 'formik';
|
|
8
|
+
import { Button, Select, Input, Checkbox, Typography, RadioGroup, Textarea, DatePicker, Popover, Tooltip, MultiEmailInput, TimePicker, Spinner } from '@bigbinary/neeto-atoms';
|
|
9
|
+
import { Input as Input$1, Select as Select$1, ActionBlock } from '@bigbinary/neeto-atoms/formik';
|
|
10
10
|
import { isNotEmpty, toLabelAndValue, removeBy, findBy, isPresent, isNot, noop } from '@bigbinary/neeto-cist';
|
|
11
11
|
import Container from '@bigbinary/neeto-molecules/v2/Container';
|
|
12
12
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
@@ -5421,8 +5421,7 @@ var Form = function Form(_ref) {
|
|
|
5421
5421
|
}, []);
|
|
5422
5422
|
var submitForm = function submitForm(values, formikBag) {
|
|
5423
5423
|
if (isNotEmpty(errorFields)) {
|
|
5424
|
-
|
|
5425
|
-
return;
|
|
5424
|
+
return Promise.reject(new Error(t("neetoRules.form.errors.ruleHasErrorFields")));
|
|
5426
5425
|
}
|
|
5427
5426
|
var rule = valuesToRuleModel({
|
|
5428
5427
|
values: values,
|
|
@@ -5438,16 +5437,15 @@ var Form = function Form(_ref) {
|
|
|
5438
5437
|
rule: rule,
|
|
5439
5438
|
schema: schema
|
|
5440
5439
|
}).length) {
|
|
5441
|
-
|
|
5442
|
-
return;
|
|
5440
|
+
return Promise.reject(new Error(t("neetoRules.form.errors.incompleteRule")));
|
|
5443
5441
|
}
|
|
5444
5442
|
if (isCancelledNameGeneration) {
|
|
5445
5443
|
saveRuleName(values);
|
|
5446
|
-
return;
|
|
5444
|
+
return Promise.reject(new Error(t("neetoRules.form.errors.pendingRuleNameSave")));
|
|
5447
5445
|
}
|
|
5448
5446
|
var payload = buildPayload(data, values);
|
|
5449
5447
|
resetPanelState();
|
|
5450
|
-
handleSubmit(payload, formikBag, waitForGeneratedRuleName);
|
|
5448
|
+
return handleSubmit(payload, formikBag, waitForGeneratedRuleName);
|
|
5451
5449
|
};
|
|
5452
5450
|
return /*#__PURE__*/jsx(Formik, {
|
|
5453
5451
|
enableReinitialize: true,
|