blixify-ui-web 1.3.17 → 1.3.18
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/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +10 -3
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +9 -0
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwHf,OAAO,EAEL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAoJ1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwHf,OAAO,EAEL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAoJ1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFAs9hBvB,CAAC"}
|
|
@@ -4663,11 +4663,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
4663
4663
|
}
|
|
4664
4664
|
};
|
|
4665
4665
|
var handleGetItemError = function (err) {
|
|
4666
|
-
var _a, _b, _c;
|
|
4667
|
-
|
|
4666
|
+
var _a, _b, _c, _d, _e;
|
|
4667
|
+
// INFO: a failed record read sends the page back to the list, which loads
|
|
4668
|
+
// afresh, so the table shows loading until it does. A failed list read is
|
|
4669
|
+
// finished — loading there kept the skeleton (and a bareListComponent's
|
|
4670
|
+
// loading flag) on for good
|
|
4671
|
+
var isRecordView = resolvedType === "update" || resolvedType === "read";
|
|
4672
|
+
setTableLoading(isRecordView);
|
|
4668
4673
|
setModalVisible(false);
|
|
4669
4674
|
setLoading(false);
|
|
4670
|
-
if (
|
|
4675
|
+
if (isRecordView) {
|
|
4671
4676
|
if ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate)
|
|
4672
4677
|
props.organise.handleNavigate("list", "");
|
|
4673
4678
|
}
|
|
@@ -4678,6 +4683,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
4678
4683
|
: err.response.data.err);
|
|
4679
4684
|
else
|
|
4680
4685
|
console.log("Data Retrieval Error - " + err.message);
|
|
4686
|
+
// INFO: the page is told too, so it can show its own message or a retry
|
|
4687
|
+
(_e = (_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareListHandleError) === null || _e === void 0 ? void 0 : _e.call(_d, err);
|
|
4681
4688
|
setNotification({
|
|
4682
4689
|
title: "Data Retrieval Error",
|
|
4683
4690
|
type: false,
|