@bigbinary/neeto-form-frontend 4.4.49 → 4.4.51
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 +6 -3
- package/app/javascript/src/translations/bg.json +6 -3
- package/app/javascript/src/translations/ca.json +6 -3
- package/app/javascript/src/translations/cs.json +6 -3
- package/app/javascript/src/translations/da.json +6 -3
- package/app/javascript/src/translations/de.json +6 -3
- package/app/javascript/src/translations/en.json +1 -0
- package/app/javascript/src/translations/es-MX.json +6 -3
- package/app/javascript/src/translations/es.json +6 -3
- package/app/javascript/src/translations/et.json +6 -3
- package/app/javascript/src/translations/fi.json +6 -3
- package/app/javascript/src/translations/fil.json +6 -3
- package/app/javascript/src/translations/fr.json +6 -3
- package/app/javascript/src/translations/he.json +6 -3
- package/app/javascript/src/translations/hi.json +6 -3
- package/app/javascript/src/translations/hr.json +6 -3
- package/app/javascript/src/translations/hu.json +6 -3
- package/app/javascript/src/translations/id.json +6 -3
- package/app/javascript/src/translations/it.json +6 -3
- package/app/javascript/src/translations/ja.json +6 -3
- package/app/javascript/src/translations/ko.json +6 -3
- package/app/javascript/src/translations/lv.json +6 -3
- package/app/javascript/src/translations/nl.json +6 -3
- package/app/javascript/src/translations/pl.json +6 -3
- package/app/javascript/src/translations/pt-BR.json +6 -3
- package/app/javascript/src/translations/pt.json +6 -3
- package/app/javascript/src/translations/ro.json +6 -3
- package/app/javascript/src/translations/ru.json +6 -3
- package/app/javascript/src/translations/sk.json +6 -3
- package/app/javascript/src/translations/sl.json +6 -3
- package/app/javascript/src/translations/sv.json +6 -3
- package/app/javascript/src/translations/th.json +6 -3
- package/app/javascript/src/translations/tr.json +6 -3
- package/app/javascript/src/translations/uk.json +6 -3
- package/app/javascript/src/translations/vi.json +6 -3
- package/app/javascript/src/translations/zh-CN.json +6 -3
- package/app/javascript/src/translations/zh-TW.json +6 -3
- package/dist/.ready +1 -1
- package/dist/BuildForm.js +101 -10
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +1 -1
- package/dist/UrlBuilder.js +3 -2
- package/dist/UrlBuilder.js.map +1 -1
- package/dist/cjs/BuildForm.js +100 -9
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +1 -1
- package/dist/cjs/UrlBuilder.js +3 -2
- package/dist/cjs/UrlBuilder.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{utils-fwFV6wY2.js → utils-Bx7lyV1r.js} +22 -2
- package/dist/cjs/utils-Bx7lyV1r.js.map +1 -0
- package/dist/cjs/v2/BuildForm.js +100 -9
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/cjs/v2/ExternalForm.js +1 -1
- package/dist/cjs/v2/UrlBuilder.js +3 -2
- package/dist/cjs/v2/UrlBuilder.js.map +1 -1
- package/dist/cjs/v2/index.js +1 -1
- package/dist/cjs/v2/{utils-ByVT_m97.js → utils-Aj2IcvC4.js} +22 -2
- package/dist/cjs/v2/utils-Aj2IcvC4.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{utils-B1PS7L37.js → utils-DeilPSgh.js} +22 -2
- package/dist/utils-DeilPSgh.js.map +1 -0
- package/dist/v2/BuildForm.js +101 -10
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/ExternalForm.js +1 -1
- package/dist/v2/UrlBuilder.js +3 -2
- package/dist/v2/UrlBuilder.js.map +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/{utils-B7UPP2PR.js → utils-D0bNPzlC.js} +22 -2
- package/dist/v2/utils-D0bNPzlC.js.map +1 -0
- package/package.json +3 -3
- package/dist/cjs/utils-fwFV6wY2.js.map +0 -1
- package/dist/cjs/v2/utils-ByVT_m97.js.map +0 -1
- package/dist/utils-B1PS7L37.js.map +0 -1
- package/dist/v2/utils-B7UPP2PR.js.map +0 -1
package/dist/v2/BuildForm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Alert, Dialog, Typography, Tooltip, DropdownMenu, Button, Empty, Switch
|
|
|
2
2
|
import { useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { isPresent, truncate, findBy, slugify, existsBy, removeBy, isNotPresent, findById, findIndexById, hyphenate, nullSafe, modifyBy, noop } from '@bigbinary/neeto-cist';
|
|
5
|
-
import { equals, path, when, assoc, includes, isEmpty, reject, keys, pick, omit, evolve, map, mergeLeft, prop, pipe, filter, isNotNil, values, uniq, join, pathSatisfies, assocPath, dissoc,
|
|
5
|
+
import { equals, path, when, assoc, includes, isEmpty, reject, keys, pick, omit, evolve, map, mergeLeft, prop, isNil, pipe, filter, isNotNil, values, uniq, join, pathSatisfies, assocPath, dissoc, pluck, append, paths, difference, startsWith, split, last, union, either, F, T } from 'ramda';
|
|
6
6
|
import { j as useDeleteQuestion, b as useForm, k as useCreateQuestion, l as useUpdateQuestion, m as useReorderQuestions, Q as QUERY_KEYS } from './useFormApi-B5a0zkAT.js';
|
|
7
7
|
import { r as QUESTION_ACTIONS, s as INDEPENDENT_LABELS_MAP, t as buildDisplayLabel, c as isFunction, u as SELECTABLE_KINDS, v as isAutoGeneratedQuestion, g as fieldWithFallback, w as isRichTextQuestion, x as SPOT_QUESTION_FIELD_CODE, y as isNameQuestion, N as NON_BASIC_LATIN_CHARACTERS_REGEX, z as RESERVED_FIELD_CODES, B as renameKey, j as LABEL_FIELDS, F as isDefaultLanguage, G as buildAddQuestionButtonProps, H as validateEditorContent, J as FIELD_CODES_REJECT_CHARS_REGEX, M as MIN_WORDS_SWITCH_LABEL_PROPS, K as MIN_WORDS, O as isImmutableField, a as QUESTIONS_WITHOUT_FIELD_CODE, T as NON_HIDEABLE_FIELDS, U as NON_READ_ONLY_FIELDS, V as OPINION_LABEL_MAX_LENGTH, W as RICH_TEXT_QUESTIONS, h as ADDRESS_FIELD_WIDTHS, A as ADDRESS_FIELD_TYPES, X as generateDefaultOptions, Z as MINIMUM_ADDRESS_FIELDS, _ as getDeletedRecords, $ as randomId, a0 as getActiveRecords, a1 as FILE_TYPES_MAP, a2 as FILE_GROUPS, a3 as OPINION_SCALE_MIN_VALUE_OPTIONS, a4 as OPINION_SCALE_MAX_VALUE_OPTIONS, l as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, a5 as MINIMUM_OPTIONS, a6 as IMAGE_HEIGHT_SLIDER_DEFAULTS, a7 as RATING_OPTIONS, a8 as STAR_RATING_MIN_VALUE_OPTIONS, a9 as STAR_RATING_MAX_VALUE_OPTIONS, aa as STAR_RATING_ICONS_MAP, ab as YES_NO_ICONS_MAP, ac as buildDisabledAddButtonHelpPopoverProps, ad as buildReorderPayload, ae as QUESTIONS_INITIAL_VALUE, af as isMandatoryField, ag as QUESTION_KINDS, Q as QUESTION_KIND, ah as getActiveQuestionKindDetails, ai as DEFAULT_AVAILABLE_LANGUAGES, aj as DEFAULT_ADVANCED_FEATURES } from './yup-Dxe5WpM2.js';
|
|
8
8
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -439,7 +439,7 @@ var getUniqueNumbersFromExistingFieldCodes = function getUniqueNumbersFromExisti
|
|
|
439
439
|
return parseInt(question.fieldCode.replace(prefix, "")) || 0;
|
|
440
440
|
});
|
|
441
441
|
};
|
|
442
|
-
var generateFieldCodePrefix = function generateFieldCodePrefix(label, kind) {
|
|
442
|
+
var generateFieldCodePrefix$1 = function generateFieldCodePrefix(label, kind) {
|
|
443
443
|
if (kind === QUESTION_TYPES.SPOT) {
|
|
444
444
|
return SPOT_QUESTION_FIELD_CODE;
|
|
445
445
|
}
|
|
@@ -467,13 +467,13 @@ var modifyDefaultValues = function modifyDefaultValues(_ref) {
|
|
|
467
467
|
optionsAttributes: map(assoc("label", ""))
|
|
468
468
|
}, values);
|
|
469
469
|
};
|
|
470
|
-
var generateUniqueFieldCode = function generateUniqueFieldCode(_ref2) {
|
|
470
|
+
var generateUniqueFieldCode$1 = function generateUniqueFieldCode(_ref2) {
|
|
471
471
|
var questions = _ref2.questions,
|
|
472
472
|
_ref2$label = _ref2.label,
|
|
473
473
|
label = _ref2$label === void 0 ? "" : _ref2$label,
|
|
474
474
|
_ref2$kind = _ref2.kind,
|
|
475
475
|
kind = _ref2$kind === void 0 ? "" : _ref2$kind;
|
|
476
|
-
var prefix = generateFieldCodePrefix(label, kind);
|
|
476
|
+
var prefix = generateFieldCodePrefix$1(label, kind);
|
|
477
477
|
var uniqueNumber = Math.max.apply(Math, [0].concat(_toConsumableArray(getUniqueNumbersFromExistingFieldCodes(prefix, questions))));
|
|
478
478
|
var candidateFieldCode = "";
|
|
479
479
|
|
|
@@ -533,7 +533,7 @@ var createFieldData = function createFieldData(_ref5) {
|
|
|
533
533
|
}), {}, {
|
|
534
534
|
kind: type,
|
|
535
535
|
nodeId: v4(),
|
|
536
|
-
fieldCode: generateUniqueFieldCode({
|
|
536
|
+
fieldCode: generateUniqueFieldCode$1({
|
|
537
537
|
questions: questions,
|
|
538
538
|
kind: type,
|
|
539
539
|
label: defaults["label"]
|
|
@@ -565,7 +565,7 @@ var duplicateFieldData = function duplicateFieldData(_ref6) {
|
|
|
565
565
|
optionsAttributes: optionsAttributes && optionsAttributes.map(omit(["id"])),
|
|
566
566
|
fieldsAttributes: fields && fields.map(omit(["id"])),
|
|
567
567
|
nodeId: v4(),
|
|
568
|
-
fieldCode: generateUniqueFieldCode({
|
|
568
|
+
fieldCode: generateUniqueFieldCode$1({
|
|
569
569
|
questions: questions,
|
|
570
570
|
kind: kind,
|
|
571
571
|
label: newQuestionLabel
|
|
@@ -1170,7 +1170,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1170
1170
|
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : LABEL_FIELDS.DEFAULT;
|
|
1171
1171
|
setFieldValue(name, label);
|
|
1172
1172
|
if (isEdit) return;
|
|
1173
|
-
var uniqueFieldCode = generateUniqueFieldCode({
|
|
1173
|
+
var uniqueFieldCode = generateUniqueFieldCode$1({
|
|
1174
1174
|
questions: questions,
|
|
1175
1175
|
label: label,
|
|
1176
1176
|
kind: kind
|
|
@@ -1530,6 +1530,33 @@ var Block = function Block(_ref) {
|
|
|
1530
1530
|
});
|
|
1531
1531
|
};
|
|
1532
1532
|
|
|
1533
|
+
var AdvancedProperties = function AdvancedProperties() {
|
|
1534
|
+
var _useState = useState(null),
|
|
1535
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1536
|
+
failedSubmitCount = _useState2[0],
|
|
1537
|
+
setFailedSubmitCount = _useState2[1];
|
|
1538
|
+
var _useTranslation = useTranslation(),
|
|
1539
|
+
t = _useTranslation.t;
|
|
1540
|
+
var _useFormikContext = useFormikContext(),
|
|
1541
|
+
errors = _useFormikContext.errors,
|
|
1542
|
+
isSubmitting = _useFormikContext.isSubmitting,
|
|
1543
|
+
submitCount = _useFormikContext.submitCount;
|
|
1544
|
+
useEffect(function () {
|
|
1545
|
+
if (!isSubmitting && isPresent(errors.fieldCode)) {
|
|
1546
|
+
setFailedSubmitCount(submitCount);
|
|
1547
|
+
}
|
|
1548
|
+
}, [isSubmitting]);
|
|
1549
|
+
return /*#__PURE__*/jsx(Accordion, {
|
|
1550
|
+
className: "neeto-form-nano-advanced-properties-accordion",
|
|
1551
|
+
"data-testid": "address-field-advanced-properties-card",
|
|
1552
|
+
defaultActiveKey: isNil(failedSubmitCount) ? null : 0,
|
|
1553
|
+
children: /*#__PURE__*/jsx(Accordion.Item, {
|
|
1554
|
+
title: t("neetoForm.common.advancedProperties"),
|
|
1555
|
+
children: /*#__PURE__*/jsx(FieldCode, {})
|
|
1556
|
+
})
|
|
1557
|
+
}, failedSubmitCount);
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1533
1560
|
var VARIANTS = {
|
|
1534
1561
|
hidden: {
|
|
1535
1562
|
opacity: 0,
|
|
@@ -1608,16 +1635,39 @@ var ADDRESS_FIELD_FORM_VALIDATION_SCHEMA = yup.object().shape({
|
|
|
1608
1635
|
})
|
|
1609
1636
|
});
|
|
1610
1637
|
var ERROR_MESSAGE_DELIMITER$1 = ". ";
|
|
1638
|
+
var DEFAULT_FIELD_CODE_PREFIX = "field";
|
|
1639
|
+
var MAX_FIELD_CODE_PREFIX_LENGTH = 30;
|
|
1640
|
+
var buildAddressFieldValidationSchema = function buildAddressFieldValidationSchema(_ref) {
|
|
1641
|
+
var isFieldCodeEnabled = _ref.isFieldCodeEnabled,
|
|
1642
|
+
takenFieldCodes = _ref.takenFieldCodes;
|
|
1643
|
+
if (!isFieldCodeEnabled) return ADDRESS_FIELD_FORM_VALIDATION_SCHEMA;
|
|
1644
|
+
var fieldCodeLabel = t("neetoForm.questions.common.questionFields.field.fieldCode");
|
|
1645
|
+
return ADDRESS_FIELD_FORM_VALIDATION_SCHEMA.shape({
|
|
1646
|
+
fieldCode: yup.string().trim().required(t("neetoForm.error.requiredField", {
|
|
1647
|
+
label: fieldCodeLabel
|
|
1648
|
+
})).matches(VALID_FIELD_CODE_REGEX, t("neetoForm.error.invalidField", {
|
|
1649
|
+
label: fieldCodeLabel
|
|
1650
|
+
})).notOneOf(takenFieldCodes, t("neetoForm.error.fieldCodeTaken"))
|
|
1651
|
+
});
|
|
1652
|
+
};
|
|
1611
1653
|
|
|
1612
1654
|
function ownKeys$7(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; }
|
|
1613
1655
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1614
1656
|
var removeDuplicateErrorMessages = pipe(filter(isNotNil), map(values), uniq, join(ERROR_MESSAGE_DELIMITER$1));
|
|
1657
|
+
var generateFieldCodePrefix = function generateFieldCodePrefix(label) {
|
|
1658
|
+
if (!label || NON_BASIC_LATIN_CHARACTERS_REGEX.test(label)) {
|
|
1659
|
+
return DEFAULT_FIELD_CODE_PREFIX;
|
|
1660
|
+
}
|
|
1661
|
+
var prefix = label.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "").slice(0, MAX_FIELD_CODE_PREFIX_LENGTH).replace(/_+$/, "");
|
|
1662
|
+
return prefix || DEFAULT_FIELD_CODE_PREFIX;
|
|
1663
|
+
};
|
|
1615
1664
|
var getAddressModalInitialValues = function getAddressModalInitialValues(field) {
|
|
1616
1665
|
return field ? _objectSpread$7(_objectSpread$7({}, field), {}, {
|
|
1617
1666
|
width: ADDRESS_FIELD_WIDTH_OPTIONS[field.width],
|
|
1618
1667
|
fieldType: ADDRESS_FIELD_TYPE_OPTIONS[field.fieldType]
|
|
1619
1668
|
}) : {
|
|
1620
1669
|
label: "",
|
|
1670
|
+
fieldCode: "",
|
|
1621
1671
|
isRequired: false,
|
|
1622
1672
|
width: ADDRESS_FIELD_WIDTH_OPTIONS[ADDRESS_FIELD_WIDTHS.FULL],
|
|
1623
1673
|
fieldType: ADDRESS_FIELD_TYPE_OPTIONS[ADDRESS_FIELD_TYPES.INPUT]
|
|
@@ -1637,6 +1687,19 @@ var formatErrorMessage$1 = function formatErrorMessage(error) {
|
|
|
1637
1687
|
if (typeof error === "string") return error;
|
|
1638
1688
|
return removeDuplicateErrorMessages(error);
|
|
1639
1689
|
};
|
|
1690
|
+
var generateUniqueFieldCode = function generateUniqueFieldCode(label, takenFieldCodes) {
|
|
1691
|
+
var prefix = generateFieldCodePrefix(label);
|
|
1692
|
+
var suffix = Math.max.apply(Math, [0].concat(_toConsumableArray(takenFieldCodes.filter(function (fieldCode) {
|
|
1693
|
+
return fieldCode.startsWith(prefix);
|
|
1694
|
+
}).map(function (fieldCode) {
|
|
1695
|
+
return parseInt(fieldCode.slice(prefix.length)) || 0;
|
|
1696
|
+
}))));
|
|
1697
|
+
while (true) {
|
|
1698
|
+
var fieldCode = "".concat(prefix).concat(suffix === 0 ? "" : suffix);
|
|
1699
|
+
if (!takenFieldCodes.includes(fieldCode)) return fieldCode;
|
|
1700
|
+
suffix += 1;
|
|
1701
|
+
}
|
|
1702
|
+
};
|
|
1640
1703
|
|
|
1641
1704
|
var _excluded$3 = ["width", "fieldType"];
|
|
1642
1705
|
function ownKeys$6(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; }
|
|
@@ -1654,9 +1717,36 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
1654
1717
|
setValue = _useField2[2].setValue;
|
|
1655
1718
|
var _useTranslation = useTranslation(),
|
|
1656
1719
|
t = _useTranslation.t;
|
|
1720
|
+
var _useBuildFormStore = useBuildFormStore(function (store) {
|
|
1721
|
+
var _store$formState;
|
|
1722
|
+
return {
|
|
1723
|
+
advancedFeatures: (_store$formState = store["formState"]) === null || _store$formState === void 0 ? void 0 : _store$formState["advancedFeatures"]
|
|
1724
|
+
};
|
|
1725
|
+
}, shallow),
|
|
1726
|
+
advancedFeatures = _useBuildFormStore.advancedFeatures;
|
|
1727
|
+
var isFieldCodeEnabled = advancedFeatures.fieldCode;
|
|
1657
1728
|
var defaultOptions = generateDefaultOptions(MINIMUM_ADDRESS_FIELDS);
|
|
1658
1729
|
var editingField = findById(selectedFieldId, fields);
|
|
1730
|
+
var isUnsavedField = isNil(editingField) || String(editingField.id).startsWith("draft");
|
|
1731
|
+
var takenFieldCodes = pluck("fieldCode", allFields.filter(function (field) {
|
|
1732
|
+
return field.id !== selectedFieldId && isPresent(field.fieldCode);
|
|
1733
|
+
}));
|
|
1659
1734
|
var initialValues = getAddressModalInitialValues(editingField);
|
|
1735
|
+
if (isFieldCodeEnabled && editingField && isNotPresent(initialValues.fieldCode)) {
|
|
1736
|
+
initialValues.fieldCode = generateUniqueFieldCode(editingField.label, takenFieldCodes);
|
|
1737
|
+
}
|
|
1738
|
+
var validationSchema = buildAddressFieldValidationSchema({
|
|
1739
|
+
isFieldCodeEnabled: isFieldCodeEnabled,
|
|
1740
|
+
takenFieldCodes: takenFieldCodes
|
|
1741
|
+
});
|
|
1742
|
+
var handleLabelChange = function handleLabelChange(setFieldValue) {
|
|
1743
|
+
return function (event) {
|
|
1744
|
+
var label = event.target.value;
|
|
1745
|
+
setFieldValue("label", label);
|
|
1746
|
+
if (!isFieldCodeEnabled || !isUnsavedField) return;
|
|
1747
|
+
setFieldValue("fieldCode", generateUniqueFieldCode(label, takenFieldCodes));
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1660
1750
|
var handleSubmit = function handleSubmit(_ref2) {
|
|
1661
1751
|
var width = _ref2.width,
|
|
1662
1752
|
fieldType = _ref2.fieldType,
|
|
@@ -1703,7 +1793,7 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
1703
1793
|
className: "flex min-h-0 flex-1 flex-col gap-4",
|
|
1704
1794
|
formikProps: {
|
|
1705
1795
|
initialValues: initialValues,
|
|
1706
|
-
validationSchema:
|
|
1796
|
+
validationSchema: validationSchema,
|
|
1707
1797
|
onSubmit: handleSubmit
|
|
1708
1798
|
},
|
|
1709
1799
|
children: function children(_ref3) {
|
|
@@ -1723,7 +1813,8 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
1723
1813
|
name: "label",
|
|
1724
1814
|
ref: initialFocusRef,
|
|
1725
1815
|
label: t("neetoForm.questions.common.questionFields.field.label"),
|
|
1726
|
-
placeholder: t("neetoForm.questions.address.fieldLabelPlaceholder")
|
|
1816
|
+
placeholder: t("neetoForm.questions.address.fieldLabelPlaceholder"),
|
|
1817
|
+
onChange: handleLabelChange(setFieldValue)
|
|
1727
1818
|
}), /*#__PURE__*/jsxs("div", {
|
|
1728
1819
|
className: "grid grid-cols-2 gap-6",
|
|
1729
1820
|
children: [/*#__PURE__*/jsx(Select$1, {
|
|
@@ -1753,7 +1844,7 @@ var ManagePane = function ManagePane(_ref) {
|
|
|
1753
1844
|
name: "isRequired",
|
|
1754
1845
|
size: "default"
|
|
1755
1846
|
})
|
|
1756
|
-
})]
|
|
1847
|
+
}), isFieldCodeEnabled && /*#__PURE__*/jsx(AdvancedProperties, {})]
|
|
1757
1848
|
})
|
|
1758
1849
|
}), /*#__PURE__*/jsx(Sheet.Footer, {
|
|
1759
1850
|
children: /*#__PURE__*/jsx("div", {
|