@bigbinary/neeto-fields-frontend 1.1.2 → 1.1.3
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/README.md +19 -11
- package/dist/index.cjs.js +17 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +17 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6869,7 +6869,8 @@ var Edit = function Edit(_ref) {
|
|
|
6869
6869
|
_useShowField$data = _useShowField.data,
|
|
6870
6870
|
_useShowField$data2 = _useShowField$data === void 0 ? {} : _useShowField$data,
|
|
6871
6871
|
_useShowField$data2$f = _useShowField$data2.field,
|
|
6872
|
-
field = _useShowField$data2$f === void 0 ? {} : _useShowField$data2$f
|
|
6872
|
+
field = _useShowField$data2$f === void 0 ? {} : _useShowField$data2$f,
|
|
6873
|
+
isLoading = _useShowField.isLoading;
|
|
6873
6874
|
var _useUpdateField = useUpdateField({
|
|
6874
6875
|
onSuccess: function onSuccess() {
|
|
6875
6876
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -6893,7 +6894,7 @@ var Edit = function Edit(_ref) {
|
|
|
6893
6894
|
};
|
|
6894
6895
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pane.Header, null, /*#__PURE__*/React.createElement(Typography, {
|
|
6895
6896
|
style: "h2"
|
|
6896
|
-
}, t("titles.editField"))), /*#__PURE__*/React.createElement(Form, {
|
|
6897
|
+
}, t("titles.editField"))), isLoading ? /*#__PURE__*/React.createElement(PageLoader, null) : /*#__PURE__*/React.createElement(Form, {
|
|
6897
6898
|
formikProps: {
|
|
6898
6899
|
initialValues: _objectSpread$4(_objectSpread$4({}, initialValues), assoc("kind", FIELD_KINDS[field.kind], field)),
|
|
6899
6900
|
validationSchema: generateValidationSchema(additionalValidations),
|
|
@@ -11766,19 +11767,7 @@ var FieldsDashboard = function FieldsDashboard(_ref) {
|
|
|
11766
11767
|
onClick: function onClick() {
|
|
11767
11768
|
return setIsPaneOpen(true);
|
|
11768
11769
|
}
|
|
11769
|
-
}),
|
|
11770
|
-
additionalValidations: paneProps === null || paneProps === void 0 ? void 0 : paneProps.validations,
|
|
11771
|
-
allowedKinds: allowedKinds,
|
|
11772
|
-
hideRequiredSwitch: paneProps === null || paneProps === void 0 ? void 0 : paneProps.hideRequiredSwitch,
|
|
11773
|
-
initialValues: paneProps === null || paneProps === void 0 ? void 0 : paneProps.initialValues,
|
|
11774
|
-
isOpen: isPaneOpen,
|
|
11775
|
-
ownerId: showOwnersInMenu ? selectedMenu : "",
|
|
11776
|
-
resourceType: showOwnersInMenu ? resourceType : selectedMenu //Currently we support only one resource type when fields are classified based on owners
|
|
11777
|
-
,
|
|
11778
|
-
selectedField: selectedField,
|
|
11779
|
-
onClose: handleClosePane,
|
|
11780
|
-
onMutationSuccess: paneProps === null || paneProps === void 0 ? void 0 : paneProps.onMutationSuccess
|
|
11781
|
-
}, paneProps === null || paneProps === void 0 ? void 0 : paneProps.children)),
|
|
11770
|
+
})),
|
|
11782
11771
|
searchProps: searchProps,
|
|
11783
11772
|
title: humanize(getDashBoardTitle({
|
|
11784
11773
|
isOwnerBased: showOwnersInMenu,
|
|
@@ -11798,7 +11787,19 @@ var FieldsDashboard = function FieldsDashboard(_ref) {
|
|
|
11798
11787
|
rowData: isEmpty(rowData) ? fields : rowData,
|
|
11799
11788
|
setIsPaneOpen: setIsPaneOpen,
|
|
11800
11789
|
totalCount: count
|
|
11801
|
-
})
|
|
11790
|
+
}), /*#__PURE__*/React.createElement(FieldsPane, {
|
|
11791
|
+
additionalValidations: paneProps === null || paneProps === void 0 ? void 0 : paneProps.validations,
|
|
11792
|
+
allowedKinds: allowedKinds,
|
|
11793
|
+
hideRequiredSwitch: paneProps === null || paneProps === void 0 ? void 0 : paneProps.hideRequiredSwitch,
|
|
11794
|
+
initialValues: paneProps === null || paneProps === void 0 ? void 0 : paneProps.initialValues,
|
|
11795
|
+
isOpen: isPaneOpen,
|
|
11796
|
+
ownerId: showOwnersInMenu ? selectedMenu : "",
|
|
11797
|
+
resourceType: showOwnersInMenu ? resourceType : selectedMenu //Currently we support only one resource type when fields are classified based on owners
|
|
11798
|
+
,
|
|
11799
|
+
selectedField: selectedField,
|
|
11800
|
+
onClose: handleClosePane,
|
|
11801
|
+
onMutationSuccess: paneProps === null || paneProps === void 0 ? void 0 : paneProps.onMutationSuccess
|
|
11802
|
+
}, paneProps === null || paneProps === void 0 ? void 0 : paneProps.children)), /*#__PURE__*/React.createElement(ReorderPane, {
|
|
11802
11803
|
isOpen: isReorderPaneOpen,
|
|
11803
11804
|
ownerId: showOwnersInMenu ? selectedMenu : "",
|
|
11804
11805
|
onClose: handleReorderPaneClose,
|