@bigbinary/neeto-form-frontend 3.10.13 → 3.10.15

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.
@@ -26,7 +26,7 @@ import { a as isBlank, g as getComponentDisplayName, p as parseServerError } fro
26
26
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
27
27
  import Check from '@bigbinary/neeto-icons/Check';
28
28
  import { jsx, jsxs } from 'react/jsx-runtime';
29
- import { c as clientI18nInstance, d as getWithExpiry, g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, e as generateFormResponse, f as clearLocalStorageValues } from './utils-BfdHlZ_G.js';
29
+ import { c as clientI18nInstance, d as getWithExpiry, g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, r as renderButtonsInOrder, m as mergeRefs, e as generateFormResponse, f as clearLocalStorageValues } from './utils-DsCV6pFi.js';
30
30
  import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
31
31
  import '@babel/runtime/helpers/toConsumableArray';
32
32
  import '@bigbinary/neeto-commons-frontend/constants';
@@ -10,7 +10,7 @@ import Button from '@bigbinary/neetoui/Button';
10
10
  import NoData from '@bigbinary/neetoui/NoData';
11
11
  import { map, mergeLeft, filter, pluck, isEmpty } from 'ramda';
12
12
  import { useTranslation } from 'react-i18next';
13
- import { g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs } from './utils-BfdHlZ_G.js';
13
+ import { g as generateInitValues, F as FormikWrap, a as getFieldComponent, b as buildAutoCompleteAttribute, m as mergeRefs } from './utils-DsCV6pFi.js';
14
14
  import { a as useForm } from './useFormApi-DtoxIPE7.js';
15
15
  import { parsePhoneNumber } from 'libphonenumber-js';
16
16
  import { Q as QUESTIONS_WITHOUT_FIELD_CODE } from './constants-DwXbiMSR.js';
@@ -35,10 +35,10 @@ var uuid = require('uuid');
35
35
  var NoData = require('@bigbinary/neetoui/NoData');
36
36
  var Pane = require('@bigbinary/neetoui/Pane');
37
37
  var Form$2 = require('@bigbinary/neetoui/formik/Form');
38
- var Textarea = require('@bigbinary/neetoui/formik/Textarea');
39
38
  var Accordion = require('@bigbinary/neetoui/Accordion');
40
39
  var Select = require('@bigbinary/neetoui/formik/Select');
41
40
  var Switch = require('@bigbinary/neetoui/formik/Switch');
41
+ var Textarea = require('@bigbinary/neetoui/formik/Textarea');
42
42
  var NeetoEditor = require('@bigbinary/neeto-editor/Editor');
43
43
  var Button = require('@bigbinary/neetoui/Button');
44
44
  var Input = require('@bigbinary/neetoui/formik/Input');
@@ -999,19 +999,19 @@ var Form$1 = function Form(_ref) {
999
999
  label: t("neetoForm.common.hideQuestion"),
1000
1000
  labelProps: hideSwitchLabelProps(hideQuestionHelpDoc),
1001
1001
  name: "isHidden"
1002
- }), shouldShowReadOnlySwitch && /*#__PURE__*/jsxRuntime.jsx(Switch, {
1003
- label: t("neetoForm.common.readOnly"),
1004
- labelProps: readOnlySwitchLabelProps(readOnlyHelpDoc),
1005
- name: "isReadOnly"
1006
1002
  })]
1007
1003
  }), (shouldShowFieldCode || shouldShowReadOnlySwitch) && /*#__PURE__*/jsxRuntime.jsx(Accordion, {
1008
1004
  className: "neeto-form-nano-advanced-properties-accordion",
1009
1005
  "data-cy": "advanced-properties-card",
1010
1006
  children: /*#__PURE__*/jsxRuntime.jsx(Accordion.Item, {
1011
1007
  title: t("neetoForm.common.advancedProperties"),
1012
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
1008
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
1013
1009
  className: "flex flex-col space-y-4",
1014
- children: shouldShowFieldCode && /*#__PURE__*/jsxRuntime.jsx(FieldCode, {})
1010
+ children: [shouldShowFieldCode && /*#__PURE__*/jsxRuntime.jsx(FieldCode, {}), shouldShowReadOnlySwitch && /*#__PURE__*/jsxRuntime.jsx(Switch, {
1011
+ label: t("neetoForm.common.readOnly"),
1012
+ labelProps: readOnlySwitchLabelProps(readOnlyHelpDoc),
1013
+ name: "isReadOnly"
1014
+ })]
1015
1015
  })
1016
1016
  })
1017
1017
  })]