@bigbinary/neeto-form-frontend 4.4.44 → 4.4.45
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/.ready +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-Bd1yi8HI.js → utils-Dkclh-w8.js} +36 -24
- package/dist/cjs/v2/utils-Dkclh-w8.js.map +1 -0
- 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-DpoXv3Qp.js → utils-DQ5yUUGl.js} +37 -25
- package/dist/v2/utils-DQ5yUUGl.js.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/v2/utils-Bd1yi8HI.js.map +0 -1
- package/dist/v2/utils-DpoXv3Qp.js.map +0 -1
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-09-
|
|
1
|
+
Built at 2026-09-04T07:52:35.707Z
|
|
@@ -20,7 +20,7 @@ var reactI18next = require('react-i18next');
|
|
|
20
20
|
var useFormApi = require('./useFormApi-DD0_MxNV.js');
|
|
21
21
|
var index$1 = require('./index-C1-XsBQ0.js');
|
|
22
22
|
var jsxRuntime = require('react/jsx-runtime');
|
|
23
|
-
var utils = require('./utils-
|
|
23
|
+
var utils = require('./utils-Dkclh-w8.js');
|
|
24
24
|
var yup = require('./yup-Rnk6JNb8.js');
|
|
25
25
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
26
26
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
@@ -12,7 +12,7 @@ var PageLoader = require('@bigbinary/neeto-molecules/v2/PageLoader');
|
|
|
12
12
|
var ramda = require('ramda');
|
|
13
13
|
var reactI18next = require('react-i18next');
|
|
14
14
|
var useFormApi = require('./useFormApi-DD0_MxNV.js');
|
|
15
|
-
var utils = require('./utils-
|
|
15
|
+
var utils = require('./utils-Dkclh-w8.js');
|
|
16
16
|
var libphonenumberJs = require('libphonenumber-js');
|
|
17
17
|
var yup = require('./yup-Rnk6JNb8.js');
|
|
18
18
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/cjs/v2/index.js
CHANGED
|
@@ -51,7 +51,7 @@ require('@babel/runtime/regenerator');
|
|
|
51
51
|
require('@bigbinary/neeto-molecules/v2/HelpPopover');
|
|
52
52
|
require('@bigbinary/neeto-hotkeys');
|
|
53
53
|
require('@bigbinary/neeto-molecules/v2/PageLoader');
|
|
54
|
-
require('./utils-
|
|
54
|
+
require('./utils-Dkclh-w8.js');
|
|
55
55
|
require('libphonenumber-js');
|
|
56
56
|
require('@bigbinary/neeto-editor/v2/EditorContent');
|
|
57
57
|
require('@bigbinary/neeto-molecules/v2/PhoneNumber');
|
|
@@ -378,9 +378,6 @@ var buildEmailVerificationEntries = function buildEmailVerificationEntries() {
|
|
|
378
378
|
}, emailQuestionsRequiringVerification);
|
|
379
379
|
return ramda.zipObj(fieldNames, Array(fieldNames.length).fill(""));
|
|
380
380
|
};
|
|
381
|
-
var getLabel = function getLabel(label, isRequired) {
|
|
382
|
-
return isRequired ? "".concat(label, "*") : label;
|
|
383
|
-
};
|
|
384
381
|
var generateInitValues = function generateInitValues(_ref1) {
|
|
385
382
|
var questions = _ref1.questions,
|
|
386
383
|
_ref1$initialValues = _ref1.initialValues,
|
|
@@ -1147,9 +1144,10 @@ var CaptchaField = function CaptchaField(_ref) {
|
|
|
1147
1144
|
className: "neeto-form-engine-input__wrapper",
|
|
1148
1145
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1149
1146
|
className: "neeto-form-engine-input__label-wrapper",
|
|
1150
|
-
children: label && /*#__PURE__*/jsxRuntime.jsx(
|
|
1147
|
+
children: label && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
1151
1148
|
className: "neeto-form-engine-label",
|
|
1152
|
-
|
|
1149
|
+
required: isRequired,
|
|
1150
|
+
children: label
|
|
1153
1151
|
})
|
|
1154
1152
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1155
1153
|
className: classnames({
|
|
@@ -1305,10 +1303,11 @@ var DateField = function DateField(_ref) {
|
|
|
1305
1303
|
className: "neeto-form-engine-input__wrapper",
|
|
1306
1304
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1307
1305
|
className: "neeto-form-engine-input__label-wrapper",
|
|
1308
|
-
children: label && /*#__PURE__*/jsxRuntime.jsx(
|
|
1306
|
+
children: label && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
1309
1307
|
className: "neeto-form-engine-label",
|
|
1310
1308
|
"data-testid": "".concat(neetoCist.hyphenate(label), "-input-label"),
|
|
1311
|
-
|
|
1309
|
+
required: isRequired,
|
|
1310
|
+
children: label
|
|
1312
1311
|
})
|
|
1313
1312
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1314
1313
|
className: "neeto-form-engine-date-picker",
|
|
@@ -1914,10 +1913,11 @@ var OpinionScaleField = function OpinionScaleField(_ref) {
|
|
|
1914
1913
|
className: "neeto-form-engine-input__wrapper neeto-form-engine-opinion-scale",
|
|
1915
1914
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1916
1915
|
className: "neeto-form-engine-input__label-wrapper",
|
|
1917
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1916
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
1918
1917
|
className: "neeto-form-engine-label",
|
|
1919
1918
|
"data-testid": "opinion-scale-input-label",
|
|
1920
|
-
|
|
1919
|
+
required: isRequired,
|
|
1920
|
+
children: label
|
|
1921
1921
|
})
|
|
1922
1922
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1923
1923
|
className: "neeto-form-nano-opinion-scale",
|
|
@@ -2036,6 +2036,7 @@ function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
|
|
|
2036
2036
|
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2037
2037
|
var Choices = function Choices(_ref) {
|
|
2038
2038
|
var label = _ref.label,
|
|
2039
|
+
isRequired = _ref.isRequired,
|
|
2039
2040
|
options = _ref.options,
|
|
2040
2041
|
type = _ref.type,
|
|
2041
2042
|
name = _ref.name,
|
|
@@ -2098,9 +2099,10 @@ var Choices = function Choices(_ref) {
|
|
|
2098
2099
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2099
2100
|
className: "neeto-form-engine-choices__wrapper",
|
|
2100
2101
|
"data-testid": "".concat(neetoCist.hyphenate(label), "-select-container-wrapper"),
|
|
2101
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
2102
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
2102
2103
|
className: "neeto-form-engine-label",
|
|
2103
2104
|
"data-testid": "".concat(neetoCist.hyphenate(label), "-input-label"),
|
|
2105
|
+
required: isRequired,
|
|
2104
2106
|
children: label
|
|
2105
2107
|
}), /*#__PURE__*/jsxRuntime.jsx(ChoiceWrapper, _objectSpread$a(_objectSpread$a({}, isCheckBox ? {} : {
|
|
2106
2108
|
disabled: disabled,
|
|
@@ -2252,11 +2254,12 @@ var OptionsField = function OptionsField(_ref) {
|
|
|
2252
2254
|
return /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread$9(_objectSpread$9({
|
|
2253
2255
|
error: getError(meta),
|
|
2254
2256
|
isDisabled: isReadOnly,
|
|
2255
|
-
label: getLabel(label, isRequired),
|
|
2256
2257
|
options: transformedOptions,
|
|
2258
|
+
required: isRequired,
|
|
2257
2259
|
type: kind
|
|
2258
2260
|
}, _objectSpread$9(_objectSpread$9({
|
|
2259
2261
|
isRequired: isRequired,
|
|
2262
|
+
label: label,
|
|
2260
2263
|
name: name
|
|
2261
2264
|
}, isDropdown && {
|
|
2262
2265
|
filterOption: customFilter,
|
|
@@ -2329,12 +2332,13 @@ var PhoneNumberField = function PhoneNumberField(_ref) {
|
|
|
2329
2332
|
});
|
|
2330
2333
|
};
|
|
2331
2334
|
|
|
2332
|
-
var _excluded$2 = ["name", "label", "error", "lowestRatingLabel", "averageRatingLabel", "highestRatingLabel", "value", "disabled"];
|
|
2335
|
+
var _excluded$2 = ["name", "label", "isRequired", "error", "lowestRatingLabel", "averageRatingLabel", "highestRatingLabel", "value", "disabled"];
|
|
2333
2336
|
function ownKeys$8(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; }
|
|
2334
2337
|
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2335
2338
|
var Rating = function Rating(_ref) {
|
|
2336
2339
|
var name = _ref.name,
|
|
2337
2340
|
label = _ref.label,
|
|
2341
|
+
isRequired = _ref.isRequired,
|
|
2338
2342
|
error = _ref.error,
|
|
2339
2343
|
lowestRatingLabel = _ref.lowestRatingLabel,
|
|
2340
2344
|
averageRatingLabel = _ref.averageRatingLabel,
|
|
@@ -2375,9 +2379,10 @@ var Rating = function Rating(_ref) {
|
|
|
2375
2379
|
};
|
|
2376
2380
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2377
2381
|
className: "neeto-form-engine-rating",
|
|
2378
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
2382
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
2379
2383
|
className: "neeto-form-engine-label",
|
|
2380
2384
|
"data-testid": "rating-input-label",
|
|
2385
|
+
required: isRequired,
|
|
2381
2386
|
children: label
|
|
2382
2387
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2383
2388
|
className: "neeto-form-engine-rating__row",
|
|
@@ -2413,10 +2418,12 @@ var RatingField = function RatingField(_ref) {
|
|
|
2413
2418
|
children: function children(_ref2) {
|
|
2414
2419
|
var meta = _ref2.meta,
|
|
2415
2420
|
field = _ref2.field;
|
|
2416
|
-
return /*#__PURE__*/jsxRuntime.jsx(Rating$1, _objectSpread$7(_objectSpread$7({}, field), {}, {
|
|
2421
|
+
return /*#__PURE__*/jsxRuntime.jsx(Rating$1, _objectSpread$7(_objectSpread$7({}, _objectSpread$7(_objectSpread$7({}, field), {}, {
|
|
2422
|
+
isRequired: isRequired,
|
|
2423
|
+
label: label
|
|
2424
|
+
})), {}, {
|
|
2417
2425
|
disabled: isReadOnly,
|
|
2418
2426
|
error: meta.touched ? meta.error : "",
|
|
2419
|
-
label: getLabel(label, isRequired),
|
|
2420
2427
|
averageRatingLabel: yup.fieldWithFallback(question, "averageRatingLabel") || yup.RATING_VALUES.AVERAGE.label,
|
|
2421
2428
|
highestRatingLabel: yup.fieldWithFallback(question, "highestRatingLabel") || yup.RATING_VALUES.GOOD.label,
|
|
2422
2429
|
lowestRatingLabel: yup.fieldWithFallback(question, "lowestRatingLabel") || yup.RATING_VALUES.BAD.label
|
|
@@ -2451,10 +2458,11 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
2451
2458
|
className: "neeto-form-engine-input__wrapper",
|
|
2452
2459
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2453
2460
|
className: "neeto-form-engine-input__label-wrapper",
|
|
2454
|
-
children: label && /*#__PURE__*/jsxRuntime.jsx(
|
|
2461
|
+
children: label && /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
2455
2462
|
className: "neeto-form-engine-label",
|
|
2456
2463
|
"data-testid": "".concat(neetoCist.hyphenate(label), "-input-label"),
|
|
2457
|
-
|
|
2464
|
+
required: isRequired,
|
|
2465
|
+
children: label
|
|
2458
2466
|
})
|
|
2459
2467
|
}), /*#__PURE__*/jsxRuntime.jsx(formik.FastField, {
|
|
2460
2468
|
debouncedPlaceholder: debouncedPlaceholder,
|
|
@@ -2537,11 +2545,12 @@ var RatingButton = function RatingButton(_ref) {
|
|
|
2537
2545
|
};
|
|
2538
2546
|
var RatingButton$1 = /*#__PURE__*/React.memo(RatingButton);
|
|
2539
2547
|
|
|
2540
|
-
var _excluded = ["label", "minValue", "maxValue", "error"];
|
|
2548
|
+
var _excluded = ["label", "isRequired", "minValue", "maxValue", "error"];
|
|
2541
2549
|
function ownKeys$4(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; }
|
|
2542
2550
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2543
2551
|
var StarRating = function StarRating(_ref) {
|
|
2544
2552
|
var label = _ref.label,
|
|
2553
|
+
isRequired = _ref.isRequired,
|
|
2545
2554
|
minValue = _ref.minValue,
|
|
2546
2555
|
maxValue = _ref.maxValue,
|
|
2547
2556
|
error = _ref.error,
|
|
@@ -2550,9 +2559,10 @@ var StarRating = function StarRating(_ref) {
|
|
|
2550
2559
|
className: "neeto-form-engine-input__wrapper neeto-form-engine-star-rating",
|
|
2551
2560
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2552
2561
|
className: "neeto-form-engine-input__label-wrapper",
|
|
2553
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2562
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
2554
2563
|
className: "neeto-form-engine-label",
|
|
2555
2564
|
"data-testid": "star-rating-input-label",
|
|
2565
|
+
required: isRequired,
|
|
2556
2566
|
children: label
|
|
2557
2567
|
})
|
|
2558
2568
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -2599,12 +2609,13 @@ var StarRatingField = function StarRatingField(_ref) {
|
|
|
2599
2609
|
field = _ref2.field;
|
|
2600
2610
|
return /*#__PURE__*/jsxRuntime.jsx(StarRating$1, _objectSpread$3({
|
|
2601
2611
|
iconType: iconType,
|
|
2612
|
+
isRequired: isRequired,
|
|
2613
|
+
label: label,
|
|
2602
2614
|
maxValue: maxValue,
|
|
2603
2615
|
minValue: minValue,
|
|
2604
2616
|
name: name,
|
|
2605
2617
|
disabled: isReadOnly,
|
|
2606
|
-
error: meta.touched ? meta.error : ""
|
|
2607
|
-
label: getLabel(label, isRequired)
|
|
2618
|
+
error: meta.touched ? meta.error : ""
|
|
2608
2619
|
}, field));
|
|
2609
2620
|
}
|
|
2610
2621
|
});
|
|
@@ -2764,10 +2775,11 @@ var YesNoField = function YesNoField(_ref) {
|
|
|
2764
2775
|
className: "neeto-form-engine-input__wrapper",
|
|
2765
2776
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2766
2777
|
className: "neeto-form-engine-input__label-wrapper",
|
|
2767
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2778
|
+
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
2768
2779
|
className: "neeto-form-engine-label",
|
|
2769
2780
|
"data-testid": "yes-no-label",
|
|
2770
|
-
|
|
2781
|
+
required: isRequired,
|
|
2782
|
+
children: label
|
|
2771
2783
|
})
|
|
2772
2784
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2773
2785
|
className: "neeto-form-nano-yes-no",
|
|
@@ -2858,4 +2870,4 @@ exports.getFieldComponent = getFieldComponent;
|
|
|
2858
2870
|
exports.getWithExpiry = getWithExpiry;
|
|
2859
2871
|
exports.mergeRefs = mergeRefs;
|
|
2860
2872
|
exports.renderButtonsInOrder = renderButtonsInOrder;
|
|
2861
|
-
//# sourceMappingURL=utils-
|
|
2873
|
+
//# sourceMappingURL=utils-Dkclh-w8.js.map
|