@bigbinary/neeto-form-frontend 1.2.19 → 1.2.20
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/en.json +0 -1
- package/dist/index.cjs.js +13 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Typography, Dropdown as Dropdown$2, Tooltip, Button as Button$1, Label,
|
|
|
7
7
|
import { assoc, prop, isEmpty, path, values, compose as compose$1, trim, useWith, split, either, isNil, equals, difference, reject, pluck, keys, pick, omit, insert, not, pipe as pipe$1, toLower, map, includes, isNotNil, times } from 'ramda';
|
|
8
8
|
import { useQuery, useQueryClient, useMutation } from 'react-query';
|
|
9
9
|
import i18next, { t as t$4 } from 'i18next';
|
|
10
|
-
import { Input, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, Delete, Plus, NeetoInvisible, MultipleChoice as MultipleChoice$2, ListDot, Dropdown as Dropdown$3, Rating as Rating$4, Smiley, Checkbox as Checkbox$2, Calendar, Upload, Check, Close, FileGeneric } from '@bigbinary/neeto-icons';
|
|
10
|
+
import { Input, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, Info, Delete, Plus, NeetoInvisible, MultipleChoice as MultipleChoice$2, ListDot, Dropdown as Dropdown$3, Rating as Rating$4, Smiley, Checkbox as Checkbox$2, Calendar, Upload, Check, Close, FileGeneric } from '@bigbinary/neeto-icons';
|
|
11
11
|
import axios from 'axios';
|
|
12
12
|
import ReactDOM, { unstable_batchedUpdates, flushSync as flushSync$1 } from 'react-dom';
|
|
13
13
|
import { Input as Input$1, Textarea, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
@@ -94,6 +94,7 @@ var QUERY_KEYS = {
|
|
|
94
94
|
FORMIK: "neetoFormFormik"
|
|
95
95
|
};
|
|
96
96
|
var DIRECT_UPLOAD_URL = "/api/direct_uploads";
|
|
97
|
+
var FIELD_CODE_DOC = "https://help.neetocal.com/public/p-0ee1deebdb";
|
|
97
98
|
|
|
98
99
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
99
100
|
if (source == null) return {};
|
|
@@ -10173,16 +10174,21 @@ var validateFieldCode = validateSchema(yup.string().trim().required(t$4("neetoFo
|
|
|
10173
10174
|
var FieldCode = withT(function (_ref) {
|
|
10174
10175
|
var t = _ref.t,
|
|
10175
10176
|
name = _ref.name;
|
|
10176
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
10177
|
-
className: "flex flex-col space-y-3"
|
|
10178
|
-
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
10179
|
-
className: "mt-4",
|
|
10180
|
-
style: "h4"
|
|
10181
|
-
}, t("neetoForm.questions.common.advancedProperties")), /*#__PURE__*/React__default.createElement(InputWithMaxLength, {
|
|
10177
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(InputWithMaxLength, {
|
|
10182
10178
|
required: true,
|
|
10179
|
+
className: "mt-14",
|
|
10183
10180
|
label: t("neetoForm.questions.common.questionFields.field.fieldCode"),
|
|
10184
10181
|
name: "".concat(name, ".fieldCode"),
|
|
10185
|
-
validate: validateFieldCode
|
|
10182
|
+
validate: validateFieldCode,
|
|
10183
|
+
labelProps: {
|
|
10184
|
+
helpIconProps: {
|
|
10185
|
+
icon: Info,
|
|
10186
|
+
className: "cursor-pointer",
|
|
10187
|
+
onClick: function onClick() {
|
|
10188
|
+
return window.open(FIELD_CODE_DOC, "_blank", "noopener,noreferrer");
|
|
10189
|
+
}
|
|
10190
|
+
}
|
|
10191
|
+
}
|
|
10186
10192
|
}));
|
|
10187
10193
|
});
|
|
10188
10194
|
|