blixify-ui-web 1.3.35 → 1.3.37
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 +29 -32
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/display/drawer/index.d.ts +3 -1
- package/lib/components/display/drawer/index.d.ts.map +1 -1
- package/lib/components/display/drawer/index.js +63 -47
- package/lib/components/display/drawer/index.js.map +1 -1
- package/lib/components/display/newGrid/index.d.ts.map +1 -1
- package/lib/components/display/newGrid/index.js +1 -1
- package/lib/components/display/newGrid/index.js.map +1 -1
- package/lib/components/display/newKanban/index.d.ts.map +1 -1
- package/lib/components/display/newKanban/index.js +161 -21
- package/lib/components/display/newKanban/index.js.map +1 -1
- package/lib/components/input/markdown/index.d.ts.map +1 -1
- package/lib/components/input/markdown/index.js +1 -1
- package/lib/components/input/markdown/index.js.map +1 -1
- package/lib/tail.css +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,KASN,MAAM,OAAO,CAAC;AA8Hf,OAAO,EAGL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAsK1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAeF,eAAO,MAAM,YAAY,mFAq7jBvB,CAAC"}
|
|
@@ -102,7 +102,6 @@ var BookmarkIcon_1 = __importDefault(require("@heroicons/react/24/outline/Bookma
|
|
|
102
102
|
var solid_1 = require("@heroicons/react/24/solid");
|
|
103
103
|
var html2canvas_1 = __importDefault(require("html2canvas"));
|
|
104
104
|
var jspdf_1 = __importDefault(require("jspdf"));
|
|
105
|
-
var react_dom_1 = require("react-dom");
|
|
106
105
|
var react_1 = __importStar(require("react"));
|
|
107
106
|
var uuid_1 = require("uuid");
|
|
108
107
|
var button_1 = require("../../action/button");
|
|
@@ -7720,9 +7719,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
7720
7719
|
}); };
|
|
7721
7720
|
var handleSubmit = function (isDraft) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7722
7721
|
var preComplete, res, updatedMarkdownData_1, uploadedData_2, uploadTypes_1, err_25;
|
|
7723
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
7724
|
-
return __generator(this, function (
|
|
7725
|
-
switch (
|
|
7722
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7723
|
+
return __generator(this, function (_j) {
|
|
7724
|
+
switch (_j.label) {
|
|
7726
7725
|
case 0:
|
|
7727
7726
|
// INFO: re-entry guard — if a submit is already in-flight (double-click,
|
|
7728
7727
|
// rapid Enter keypresses, or concurrent bareSaveOnTabChange calls), return
|
|
@@ -7731,28 +7730,28 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
7731
7730
|
if (isSubmittingRef.current)
|
|
7732
7731
|
return [2 /*return*/];
|
|
7733
7732
|
isSubmittingRef.current = true;
|
|
7734
|
-
|
|
7733
|
+
_j.label = 1;
|
|
7735
7734
|
case 1:
|
|
7736
|
-
|
|
7735
|
+
_j.trys.push([1, 8, , 9]);
|
|
7737
7736
|
setLoading(true);
|
|
7738
7737
|
setModalVisible(true);
|
|
7739
7738
|
preComplete = true;
|
|
7740
7739
|
if (!((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareUpdateHandlePreComplete)) return [3 /*break*/, 3];
|
|
7741
7740
|
return [4 /*yield*/, props.bareSettings.bareUpdateHandlePreComplete(selectedData, handleResolveRawData())];
|
|
7742
7741
|
case 2:
|
|
7743
|
-
preComplete =
|
|
7744
|
-
|
|
7742
|
+
preComplete = _j.sent();
|
|
7743
|
+
_j.label = 3;
|
|
7745
7744
|
case 3:
|
|
7746
7745
|
if (!preComplete)
|
|
7747
7746
|
throw "Error";
|
|
7748
7747
|
if (!((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareUpdateHandleComplete)) return [3 /*break*/, 5];
|
|
7749
7748
|
return [4 /*yield*/, props.bareSettings.bareUpdateHandleComplete(selectedData, handleResolveRawData())];
|
|
7750
7749
|
case 4:
|
|
7751
|
-
|
|
7750
|
+
_j.sent();
|
|
7752
7751
|
return [3 /*break*/, 7];
|
|
7753
7752
|
case 5: return [4 /*yield*/, handleSubmitData(undefined, undefined, undefined, undefined, undefined, undefined, isDraft)];
|
|
7754
7753
|
case 6:
|
|
7755
|
-
res =
|
|
7754
|
+
res = _j.sent();
|
|
7756
7755
|
if (res) {
|
|
7757
7756
|
// INFO: bareUpdateHandlePostComplete is deliberately not called here.
|
|
7758
7757
|
// handleSubmitData already calls it once, right after the write, with
|
|
@@ -7812,7 +7811,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
7812
7811
|
setSelectedData(function (prev) { return (__assign(__assign({}, prev), updatedMarkdownData_1)); });
|
|
7813
7812
|
}
|
|
7814
7813
|
if (props.id === "new" || !props.id) {
|
|
7815
|
-
(_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.handleNavigate) === null || _e === void 0 ? void 0 : _e.call(_d, "update", res, (
|
|
7814
|
+
(_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.handleNavigate) === null || _e === void 0 ? void 0 : _e.call(_d, "update", res, handleResolveRecordTabId());
|
|
7816
7815
|
}
|
|
7817
7816
|
if (silentDraftRef.current) {
|
|
7818
7817
|
silentDraftRef.current = false;
|
|
@@ -7829,7 +7828,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
7829
7828
|
// INFO: Non-draft (final submit) — reset dirty tracking and rebase baseline.
|
|
7830
7829
|
// Usually the component navigates away, but in case it doesn't (e.g. custom onComplete
|
|
7831
7830
|
// that stays on the same page), ensure clean state for subsequent interactions.
|
|
7832
|
-
if ((
|
|
7831
|
+
if ((_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareUpsertPartialUpdate) {
|
|
7833
7832
|
loadedSelectedData.current = (0, updateModule_1.handleClonedDataAttribute)(selectedData, structure, props.devSettings.server, true, showId, true);
|
|
7834
7833
|
dirtyFieldsRef.current.clear();
|
|
7835
7834
|
}
|
|
@@ -7837,22 +7836,18 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
7837
7836
|
props.onComplete(res);
|
|
7838
7837
|
}
|
|
7839
7838
|
else {
|
|
7840
|
-
|
|
7841
|
-
(_j = (_h = props.organise) === null || _h === void 0 ? void 0 : _h.handleNavigate) === null || _j === void 0 ? void 0 : _j.call(_h, "read", res, selectedTab.id);
|
|
7842
|
-
}
|
|
7843
|
-
else
|
|
7844
|
-
(_l = (_k = props.organise) === null || _k === void 0 ? void 0 : _k.handleNavigate) === null || _l === void 0 ? void 0 : _l.call(_k, "read", res, "general");
|
|
7839
|
+
(_h = (_g = props.organise) === null || _g === void 0 ? void 0 : _g.handleNavigate) === null || _h === void 0 ? void 0 : _h.call(_g, "read", res, handleResolveRecordTabId());
|
|
7845
7840
|
}
|
|
7846
7841
|
}
|
|
7847
7842
|
}
|
|
7848
|
-
|
|
7843
|
+
_j.label = 7;
|
|
7849
7844
|
case 7:
|
|
7850
7845
|
setModalVisible(false);
|
|
7851
7846
|
setLoading(false);
|
|
7852
7847
|
isSubmittingRef.current = false;
|
|
7853
7848
|
return [3 /*break*/, 9];
|
|
7854
7849
|
case 8:
|
|
7855
|
-
err_25 =
|
|
7850
|
+
err_25 = _j.sent();
|
|
7856
7851
|
setModalVisible(false);
|
|
7857
7852
|
setLoading(false);
|
|
7858
7853
|
isSubmittingRef.current = false;
|
|
@@ -9083,6 +9078,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
9083
9078
|
}
|
|
9084
9079
|
}
|
|
9085
9080
|
};
|
|
9081
|
+
// INFO: the tab a just-created record opens on. A form opened from a list
|
|
9082
|
+
// inherits that list's tab — a board or grid — and a read view given a list
|
|
9083
|
+
// tab draws nothing, so the new record opened blank.
|
|
9084
|
+
var handleResolveRecordTabId = function () {
|
|
9085
|
+
return (selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.id) && selectedTab.type !== "list" ? selectedTab.id : "general";
|
|
9086
|
+
};
|
|
9086
9087
|
var handleBreadcrumbNavigate = function (type, dataId) {
|
|
9087
9088
|
var _a, _b;
|
|
9088
9089
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, type !== null && type !== void 0 ? type : "list", dataId !== null && dataId !== void 0 ? dataId : "", (selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.id) ? selectedTab.id : "general");
|
|
@@ -14222,20 +14223,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
14222
14223
|
renderContent(),
|
|
14223
14224
|
renderReadDrawer(),
|
|
14224
14225
|
canHostDrawer && renderDrawerDiscardModal(),
|
|
14225
|
-
isActivityLog &&
|
|
14226
|
-
!isInlineActivity &&
|
|
14227
|
-
typeof document !== "undefined" &&
|
|
14228
|
-
(0, react_dom_1.createPortal)(
|
|
14226
|
+
isActivityLog && !isInlineActivity && (react_1.default.createElement(drawer_1.Drawer, { darkMode: (_131 = props.organise) === null || _131 === void 0 ? void 0 : _131.darkMode, darkModeBg: (_132 = props.organise) === null || _132 === void 0 ? void 0 : _132.darkModeBg, testId: "dt-activity-drawer",
|
|
14229
14227
|
// INFO: z-50 lifts it over a Modal the table may sit in (z-40)
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14234
|
-
|
|
14235
|
-
|
|
14236
|
-
|
|
14237
|
-
|
|
14238
|
-
resizable: true, title: "Activity Log", content: renderActivityPanel(resolvedType === "read" ? ((_133 = props.id) !== null && _133 !== void 0 ? _133 : "") : activityId) })), document.body),
|
|
14228
|
+
zIndex: "z-50", open: activityModal,
|
|
14229
|
+
// INFO: the record stays set while the drawer slides out — clearing it
|
|
14230
|
+
// would remount the hidden panel collection-wide and fetch again. The
|
|
14231
|
+
// toolbar's collection-wide button clears it when it opens.
|
|
14232
|
+
onClose: function () { return setActivityModal(false); }, anchor: "responsive", maxWidth: "2xl", maxHeight: "75",
|
|
14233
|
+
// INFO: dragged like the read drawer; the width sticks across
|
|
14234
|
+
// opens while the list stays mounted
|
|
14235
|
+
resizable: true, title: "Activity Log", content: renderActivityPanel(resolvedType === "read" ? ((_133 = props.id) !== null && _133 !== void 0 ? _133 : "") : activityId) })),
|
|
14239
14236
|
renderScrollSentinel()));
|
|
14240
14237
|
});
|
|
14241
14238
|
//# sourceMappingURL=index.js.map
|