@bigbinary/neeto-form-frontend 4.4.54-beta1 → 4.4.54-beta3
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/BuildForm.js +4 -4
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +2 -2
- package/dist/UrlBuilder.js +2 -2
- package/dist/cjs/BuildForm.js +4 -4
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +2 -2
- package/dist/cjs/UrlBuilder.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{utils-CetNKt1c.js → utils-DkzQcu6R.js} +8 -15
- package/dist/cjs/utils-DkzQcu6R.js.map +1 -0
- package/dist/cjs/v2/BuildForm.js +4 -4
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/cjs/v2/ExternalForm.js +2 -2
- package/dist/cjs/v2/UrlBuilder.js +2 -2
- package/dist/cjs/v2/index.js +2 -2
- package/dist/cjs/v2/{utils-C4mc-fBv.js → utils-DF4T4m5g.js} +8 -15
- package/dist/cjs/v2/utils-DF4T4m5g.js.map +1 -0
- package/dist/cjs/v2/{yup-BU9GEfgJ.js → yup-BYZxGYQT.js} +2 -2
- package/dist/cjs/v2/yup-BYZxGYQT.js.map +1 -0
- package/dist/cjs/{yup-D9_Bpt2X.js → yup-Cy_8XyN-.js} +2 -2
- package/dist/cjs/yup-Cy_8XyN-.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/{utils-Dk-FAItH.js → utils-CZKXpXMw.js} +8 -15
- package/dist/utils-CZKXpXMw.js.map +1 -0
- package/dist/v2/BuildForm.js +4 -4
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/ExternalForm.js +2 -2
- package/dist/v2/UrlBuilder.js +2 -2
- package/dist/v2/index.js +2 -2
- package/dist/v2/{utils-Ds5w4vXX.js → utils-DlcYlVi6.js} +8 -15
- package/dist/v2/utils-DlcYlVi6.js.map +1 -0
- package/dist/v2/{yup-DTFTJl9E.js → yup-eAZgNU6P.js} +2 -2
- package/dist/v2/yup-eAZgNU6P.js.map +1 -0
- package/dist/{yup-WoBODD2n.js → yup-Cl8wC8xx.js} +2 -2
- package/dist/yup-Cl8wC8xx.js.map +1 -0
- package/package.json +5 -5
- package/dist/cjs/utils-CetNKt1c.js.map +0 -1
- package/dist/cjs/v2/utils-C4mc-fBv.js.map +0 -1
- package/dist/cjs/v2/yup-BU9GEfgJ.js.map +0 -1
- package/dist/cjs/yup-D9_Bpt2X.js.map +0 -1
- package/dist/utils-Dk-FAItH.js.map +0 -1
- package/dist/v2/utils-Ds5w4vXX.js.map +0 -1
- package/dist/v2/yup-DTFTJl9E.js.map +0 -1
- package/dist/yup-WoBODD2n.js.map +0 -1
package/dist/v2/ExternalForm.js
CHANGED
|
@@ -18,8 +18,8 @@ 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-BZtUzxW_.js';
|
|
19
19
|
import { g as getComponentDisplayName } from './index-CUrkh_zd.js';
|
|
20
20
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
21
|
-
import { d as clientI18nInstance, e as getWithExpiry, f as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, c as generateInitValues, h as generateFormResponse, i as clearLocalStorageValues } from './utils-
|
|
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-
|
|
21
|
+
import { d as clientI18nInstance, e as getWithExpiry, f as clearEmailVerificationDetails, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, c as generateInitValues, h as generateFormResponse, i as clearLocalStorageValues } from './utils-DlcYlVi6.js';
|
|
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-eAZgNU6P.js';
|
|
23
23
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
24
24
|
import { withT } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
25
25
|
import '@babel/runtime/helpers/toConsumableArray';
|
package/dist/v2/UrlBuilder.js
CHANGED
|
@@ -10,9 +10,9 @@ 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-BZtUzxW_.js';
|
|
13
|
-
import { b as buildDateQueryParameters, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, m as mergeRefs, c as generateInitValues } from './utils-
|
|
13
|
+
import { b as buildDateQueryParameters, F as FormikWrap, g as getFieldComponent, a as buildAutoCompleteAttribute, m as mergeRefs, c as generateInitValues } from './utils-DlcYlVi6.js';
|
|
14
14
|
import { parsePhoneNumber } from 'libphonenumber-js';
|
|
15
|
-
import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-
|
|
15
|
+
import { Q as QUESTION_KIND, a as QUESTIONS_WITHOUT_FIELD_CODE } from './yup-eAZgNU6P.js';
|
|
16
16
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
17
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
18
18
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
package/dist/v2/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import '@babel/runtime/helpers/typeof';
|
|
|
24
24
|
import '@bigbinary/neeto-editor/utils';
|
|
25
25
|
import '@bigbinary/neeto-atoms';
|
|
26
26
|
import 'classnames';
|
|
27
|
-
import './yup-
|
|
27
|
+
import './yup-eAZgNU6P.js';
|
|
28
28
|
import 'react';
|
|
29
29
|
import 'react/jsx-runtime';
|
|
30
30
|
import 'lucide-react';
|
|
@@ -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-DlcYlVi6.js';
|
|
53
53
|
import 'libphonenumber-js';
|
|
54
54
|
import '@bigbinary/neeto-editor/v2/EditorContent';
|
|
55
55
|
import '@bigbinary/neeto-molecules/v2/PhoneNumber';
|
|
@@ -2,7 +2,7 @@ import { useEffect, useState, useImperativeHandle, memo, Fragment as Fragment$1
|
|
|
2
2
|
import { useFormikContext, useField, Field as Field$1, FastField } from 'formik';
|
|
3
3
|
import { isPresent, findBy, isNotEmpty, filterBy, findById, isNotPresent, hyphenate, noop, toLabelAndValue, getRandomInt, randomPick, slugify, notEqualsDeep } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { dayjs, buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
|
-
import { c as isFunction, d as isEmptyValues, Q as QUESTION_KIND, A as ADDRESS_FIELD_TYPES, S as SPOT_QUESTION_DEFAULT_VALUE, Y as YES_NO_VALUES, P as PARENTHESES_REGEX, R as RATING_VALUES, E as EMAIL_REGEX, e as SCHEMA_LESS_QUESTION_KINDS, I as INTEGER_REGEX, D as DECIMAL_REGEX, f as SIX_DIGIT_NUMBER_REGEX, g as fieldWithFallback, h as ADDRESS_FIELD_WIDTHS, j as LABEL_FIELDS, k as generateArray, l as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, m as RADIO_DESELECT_KEYS, n as RATING_OPTIONS, o as ICONS_MAP, q as YES_NO_DISPLAY_ICONS_MAP } from './yup-
|
|
5
|
+
import { c as isFunction, d as isEmptyValues, Q as QUESTION_KIND, A as ADDRESS_FIELD_TYPES, S as SPOT_QUESTION_DEFAULT_VALUE, Y as YES_NO_VALUES, P as PARENTHESES_REGEX, R as RATING_VALUES, E as EMAIL_REGEX, e as SCHEMA_LESS_QUESTION_KINDS, I as INTEGER_REGEX, D as DECIMAL_REGEX, f as SIX_DIGIT_NUMBER_REGEX, g as fieldWithFallback, h as ADDRESS_FIELD_WIDTHS, j as LABEL_FIELDS, k as generateArray, l as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, m as RADIO_DESELECT_KEYS, n as RATING_OPTIONS, o as ICONS_MAP, q as YES_NO_DISPLAY_ICONS_MAP } from './yup-eAZgNU6P.js';
|
|
6
6
|
import { parsePhoneNumber } from 'libphonenumber-js';
|
|
7
7
|
import { getFromLocalStorage, setToLocalStorage, removeFromLocalStorage, dayjs as dayjs$1, withEventTargetValue } from '@bigbinary/neeto-commons-frontend/v2/utils';
|
|
8
8
|
import { pick, mergeRight, omit, isEmpty, max, when, is, last, includes, __, mergeLeft, isNil, clamp, prop, trim, map, zipObj, identity, pluck, values, pipe, dec, equals } from 'ramda';
|
|
@@ -223,20 +223,13 @@ var buildDateQueryParameters = function buildDateQueryParameters(_ref, value) {
|
|
|
223
223
|
mode = _ref$mode === void 0 ? "date" : _ref$mode;
|
|
224
224
|
var date = mode === "time" ? dayjs.utc(value, TIME_FORMAT, true) : dayjs(value);
|
|
225
225
|
if (!value || !date.isValid()) return {};
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
// URL values use NeetoForm's machine-readable format, independent of display preferences.
|
|
229
|
-
parameters["".concat(fieldCode, ".date")] = date.format(DATE_PREFILL_FORMAT);
|
|
230
|
-
}
|
|
231
|
-
if (mode !== "date") {
|
|
232
|
-
parameters["".concat(fieldCode, ".time")] = date.format(TIME_FORMAT);
|
|
233
|
-
}
|
|
234
|
-
return parameters;
|
|
226
|
+
var format = mode === "time" ? TIME_FORMAT : DATE_PREFILL_FORMAT;
|
|
227
|
+
return _defineProperty({}, fieldCode, mode === "datetime" ? date.toISOString() : date.format(format));
|
|
235
228
|
};
|
|
236
|
-
var getDateFromQueryParameters = function getDateFromQueryParameters(
|
|
237
|
-
var fieldCode =
|
|
238
|
-
|
|
239
|
-
mode =
|
|
229
|
+
var getDateFromQueryParameters = function getDateFromQueryParameters(_ref3, parameters) {
|
|
230
|
+
var fieldCode = _ref3.fieldCode,
|
|
231
|
+
_ref3$mode = _ref3.mode,
|
|
232
|
+
mode = _ref3$mode === void 0 ? "date" : _ref3$mode;
|
|
240
233
|
var date = resolveValue(parameters["".concat(fieldCode, ".date")]);
|
|
241
234
|
var time = resolveValue(parameters["".concat(fieldCode, ".time")]);
|
|
242
235
|
var hasSplitValue = mode !== "time" && date !== undefined || mode !== "date" && time !== undefined;
|
|
@@ -2944,4 +2937,4 @@ var getVisibleOptions = function getVisibleOptions(options) {
|
|
|
2944
2937
|
};
|
|
2945
2938
|
|
|
2946
2939
|
export { FormikWrap as F, buildAutoCompleteAttribute as a, buildDateQueryParameters as b, generateInitValues as c, clientI18nInstance$1 as d, getWithExpiry as e, clearEmailVerificationDetails as f, getFieldComponent as g, generateFormResponse as h, clearLocalStorageValues as i, mergeRefs as m, renderButtonsInOrder as r };
|
|
2947
|
-
//# sourceMappingURL=utils-
|
|
2940
|
+
//# sourceMappingURL=utils-DlcYlVi6.js.map
|