@bigbinary/neeto-form-frontend 4.4.51 → 4.4.53
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 +2 -1
- package/app/javascript/src/translations/bg.json +2 -1
- package/app/javascript/src/translations/ca.json +2 -1
- package/app/javascript/src/translations/cs.json +2 -1
- package/app/javascript/src/translations/da.json +2 -1
- package/app/javascript/src/translations/de.json +2 -1
- package/app/javascript/src/translations/es-MX.json +2 -1
- package/app/javascript/src/translations/es.json +2 -1
- package/app/javascript/src/translations/et.json +2 -1
- package/app/javascript/src/translations/fi.json +2 -1
- package/app/javascript/src/translations/fil.json +2 -1
- package/app/javascript/src/translations/fr.json +2 -1
- package/app/javascript/src/translations/he.json +2 -1
- package/app/javascript/src/translations/hi.json +2 -1
- package/app/javascript/src/translations/hr.json +2 -1
- package/app/javascript/src/translations/hu.json +2 -1
- package/app/javascript/src/translations/id.json +2 -1
- package/app/javascript/src/translations/it.json +2 -1
- package/app/javascript/src/translations/ja.json +2 -1
- package/app/javascript/src/translations/ko.json +2 -1
- package/app/javascript/src/translations/lv.json +2 -1
- package/app/javascript/src/translations/nl.json +2 -1
- package/app/javascript/src/translations/pl.json +2 -1
- package/app/javascript/src/translations/pt-BR.json +2 -1
- package/app/javascript/src/translations/pt.json +2 -1
- package/app/javascript/src/translations/ro.json +2 -1
- package/app/javascript/src/translations/ru.json +2 -1
- package/app/javascript/src/translations/sk.json +2 -1
- package/app/javascript/src/translations/sl.json +2 -1
- package/app/javascript/src/translations/sv.json +2 -1
- package/app/javascript/src/translations/th.json +2 -1
- package/app/javascript/src/translations/tr.json +2 -1
- package/app/javascript/src/translations/uk.json +2 -1
- package/app/javascript/src/translations/vi.json +2 -1
- package/app/javascript/src/translations/zh-CN.json +2 -1
- package/app/javascript/src/translations/zh-TW.json +2 -1
- package/dist/.ready +1 -1
- package/dist/cjs/v2/BuildForm.js +3 -1
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/cjs/v2/ExternalForm.js +1 -1
- package/dist/cjs/v2/UrlBuilder.js +1 -1
- package/dist/cjs/v2/index.js +1 -1
- package/dist/cjs/v2/{utils-Aj2IcvC4.js → utils-Be7FvTwm.js} +7 -3
- package/dist/cjs/v2/utils-Be7FvTwm.js.map +1 -0
- package/dist/v2/BuildForm.js +3 -1
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/ExternalForm.js +1 -1
- package/dist/v2/UrlBuilder.js +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/{utils-D0bNPzlC.js → utils-BxO9Xno3.js} +7 -3
- package/dist/v2/utils-BxO9Xno3.js.map +1 -0
- package/package.json +7 -7
- package/dist/cjs/v2/utils-Aj2IcvC4.js.map +0 -1
- package/dist/v2/utils-D0bNPzlC.js.map +0 -1
package/dist/v2/ExternalForm.js
CHANGED
|
@@ -18,7 +18,7 @@ import { I18nextProvider, useTranslation } from 'react-i18next';
|
|
|
18
18
|
import { d as usePublicForm, g as useCreateSubmission, h as useUpdateSubmission, f as useSubmission, Q as QUERY_KEYS } from './useFormApi-B5a0zkAT.js';
|
|
19
19
|
import { g as getComponentDisplayName } from './index-CUrkh_zd.js';
|
|
20
20
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
21
|
-
import { c as clientI18nInstance, d as getWithExpiry, e as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, a as generateInitValues, f as generateFormResponse, h as clearLocalStorageValues } from './utils-
|
|
21
|
+
import { c as clientI18nInstance, d as getWithExpiry, e as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, a as generateInitValues, f as generateFormResponse, h as clearLocalStorageValues } from './utils-BxO9Xno3.js';
|
|
22
22
|
import { i as isBlank, C as CALLOUT_POSITIONS, b as CALLOUT_STYLES, L as LAST_ELEMENTS_THRESHOLD, Q as QUESTION_KIND, p as parseServerError } from './yup-Dxe5WpM2.js';
|
|
23
23
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
24
24
|
import { withT } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
package/dist/v2/UrlBuilder.js
CHANGED
|
@@ -10,7 +10,7 @@ import PageLoader from '@bigbinary/neeto-molecules/v2/PageLoader';
|
|
|
10
10
|
import { mergeLeft, map, filter, pluck, isEmpty } from 'ramda';
|
|
11
11
|
import { useTranslation } from 'react-i18next';
|
|
12
12
|
import { d as usePublicForm } from './useFormApi-B5a0zkAT.js';
|
|
13
|
-
import { F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs, a as generateInitValues } from './utils-
|
|
13
|
+
import { F as FormikWrap, g as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs, a as generateInitValues } from './utils-BxO9Xno3.js';
|
|
14
14
|
import { parsePhoneNumber } from 'libphonenumber-js';
|
|
15
15
|
import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-Dxe5WpM2.js';
|
|
16
16
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
package/dist/v2/index.js
CHANGED
|
@@ -49,7 +49,7 @@ import '@babel/runtime/regenerator';
|
|
|
49
49
|
import '@bigbinary/neeto-molecules/v2/HelpPopover';
|
|
50
50
|
import '@bigbinary/neeto-hotkeys';
|
|
51
51
|
import '@bigbinary/neeto-molecules/v2/PageLoader';
|
|
52
|
-
import './utils-
|
|
52
|
+
import './utils-BxO9Xno3.js';
|
|
53
53
|
import 'libphonenumber-js';
|
|
54
54
|
import '@bigbinary/neeto-editor/v2/EditorContent';
|
|
55
55
|
import '@bigbinary/neeto-molecules/v2/PhoneNumber';
|
|
@@ -377,6 +377,9 @@ var buildEmailVerificationEntries = function buildEmailVerificationEntries() {
|
|
|
377
377
|
}, emailQuestionsRequiringVerification);
|
|
378
378
|
return zipObj(fieldNames, Array(fieldNames.length).fill(""));
|
|
379
379
|
};
|
|
380
|
+
var getLabel = function getLabel(label, isRequired) {
|
|
381
|
+
return isRequired ? "".concat(label, "*") : label;
|
|
382
|
+
};
|
|
380
383
|
var generateInitValues = function generateInitValues(_ref1) {
|
|
381
384
|
var questions = _ref1.questions,
|
|
382
385
|
_ref1$initialValues = _ref1.initialValues,
|
|
@@ -2103,10 +2106,10 @@ var Choices$1 = function Choices(_ref) {
|
|
|
2103
2106
|
};
|
|
2104
2107
|
return /*#__PURE__*/jsxs("div", {
|
|
2105
2108
|
className: "neeto-form-engine-choices__wrapper",
|
|
2106
|
-
"data-testid": "".concat(hyphenate(label), "-select-container-wrapper"),
|
|
2109
|
+
"data-testid": "".concat(hyphenate(getLabel(label, isRequired)), "-select-container-wrapper"),
|
|
2107
2110
|
children: [/*#__PURE__*/jsx(Label, {
|
|
2108
2111
|
className: "neeto-form-engine-label",
|
|
2109
|
-
"data-testid": "".concat(hyphenate(label), "-input-label"),
|
|
2112
|
+
"data-testid": "".concat(hyphenate(getLabel(label, isRequired)), "-input-label"),
|
|
2110
2113
|
required: isRequired,
|
|
2111
2114
|
children: label
|
|
2112
2115
|
}), /*#__PURE__*/jsx(ChoiceWrapper, _objectSpread$a(_objectSpread$a({}, isCheckBox ? {} : {
|
|
@@ -2267,6 +2270,7 @@ var OptionsField = function OptionsField(_ref) {
|
|
|
2267
2270
|
label: label,
|
|
2268
2271
|
name: name
|
|
2269
2272
|
}, isDropdown && {
|
|
2273
|
+
dataTestId: hyphenate(getLabel(label, isRequired)),
|
|
2270
2274
|
filterOption: customFilter,
|
|
2271
2275
|
size: size
|
|
2272
2276
|
}), !isDropdown && {
|
|
@@ -2875,4 +2879,4 @@ var getVisibleOptions = function getVisibleOptions(options) {
|
|
|
2875
2879
|
};
|
|
2876
2880
|
|
|
2877
2881
|
export { FormikWrap as F, generateInitValues as a, buildAutoCompleteAttribute as b, clientI18nInstance$1 as c, getWithExpiry as d, clearEmailVerificationDetails as e, generateFormResponse as f, getFieldComponent as g, clearLocalStorageValues as h, mergeRefs as m, renderButtonsInOrder as r };
|
|
2878
|
-
//# sourceMappingURL=utils-
|
|
2882
|
+
//# sourceMappingURL=utils-BxO9Xno3.js.map
|