blixify-ui-web 1.2.249 → 1.2.250
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 +14 -4
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/display/newTable/index.d.ts +2 -1
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +396 -108
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/display/newTable/rowRendering.d.ts +66 -0
- package/lib/components/display/newTable/rowRendering.d.ts.map +1 -0
- package/lib/components/display/newTable/rowRendering.js +219 -0
- package/lib/components/display/newTable/rowRendering.js.map +1 -0
- package/lib/components/display/recordActions/index.d.ts +2 -0
- package/lib/components/display/recordActions/index.d.ts.map +1 -1
- package/lib/components/display/recordActions/index.js +8 -2
- package/lib/components/display/recordActions/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":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AA6Gf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AA2H1B,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;AA6Gf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AA2H1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFAu+fvB,CAAC"}
|
|
@@ -8131,9 +8131,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
8131
8131
|
var newTableRows = (0, react_1.useMemo)(function () { return handleKeepCustomRowActions(tableData); }, [tableData, (_100 = props.bareSettings) === null || _100 === void 0 ? void 0 : _100.bareNewDTW]);
|
|
8132
8132
|
var newTableSpaceRows = (0, react_1.useMemo)(function () { return handleKeepCustomRowActions(spaceTableData); }, [spaceTableData, (_101 = props.bareSettings) === null || _101 === void 0 ? void 0 : _101.bareNewDTW]);
|
|
8133
8133
|
/* eslint-enable */
|
|
8134
|
-
// INFO:
|
|
8135
|
-
//
|
|
8136
|
-
//
|
|
8134
|
+
// INFO: beside a record's title, the pencil opens its edit form for whoever
|
|
8135
|
+
// may update, and the bubble opens comments and logs for anyone who can see
|
|
8136
|
+
// it. The table adds a chevron that opens the read view: an editable title
|
|
8137
|
+
// cell is hard to click open, so the chevron is the sure way in. Cards open
|
|
8138
|
+
// their record from the card, so they carry no chevron.
|
|
8137
8139
|
var handleOpenRecordEdit = function (id) {
|
|
8138
8140
|
var _a, _b;
|
|
8139
8141
|
handleCaptureListScroll(id);
|
|
@@ -8143,7 +8145,15 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
8143
8145
|
setActivityId(id);
|
|
8144
8146
|
setActivityModal(true);
|
|
8145
8147
|
};
|
|
8148
|
+
var handleOpenRecordRead = function (id) {
|
|
8149
|
+
var _a, _b;
|
|
8150
|
+
handleCaptureListScroll(id);
|
|
8151
|
+
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
8152
|
+
};
|
|
8146
8153
|
var recordEditAction = canUpdateRecord ? handleOpenRecordEdit : undefined;
|
|
8154
|
+
// INFO: the chevron only navigates through handleNavigate, so a host that
|
|
8155
|
+
// routes by url gets none rather than a button that does nothing
|
|
8156
|
+
var recordOpenAction = hasNavigation ? handleOpenRecordRead : undefined;
|
|
8147
8157
|
var recordActivityAction = isActivityLog
|
|
8148
8158
|
? handleOpenRecordActivity
|
|
8149
8159
|
: undefined;
|
|
@@ -10673,7 +10683,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10673
10683
|
else {
|
|
10674
10684
|
// INFO: when bareNewDTW is enabled, render NewTable instead of legacy Table
|
|
10675
10685
|
if ((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareNewDTW) {
|
|
10676
|
-
return (react_1.default.createElement(newTable_1.NewTable, { darkModeBg: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkModeBg, showId: showId, paginationType: renderResolvedPaginationType(), data: newTableRows, spaceData: newTableSpaceRows !== null && newTableSpaceRows !== void 0 ? newTableSpaceRows : [], referencesOptions: listReferencesOptions, groups: handleBuildNewTableGroups(), onRowActivity: recordActivityAction, onRowEdit: recordEditAction, commentCounts: ((_d = props.organise) === null || _d === void 0 ? void 0 : _d.onFetchCommentCounts) ? commentCounts : undefined, onMoveRowToGroup: isDatasheetDefaults && canUpdateRecord && groupId
|
|
10686
|
+
return (react_1.default.createElement(newTable_1.NewTable, { darkModeBg: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkModeBg, showId: showId, paginationType: renderResolvedPaginationType(), data: newTableRows, spaceData: newTableSpaceRows !== null && newTableSpaceRows !== void 0 ? newTableSpaceRows : [], referencesOptions: listReferencesOptions, groups: handleBuildNewTableGroups(), onRowActivity: recordActivityAction, onRowEdit: recordEditAction, onRowOpen: recordOpenAction, commentCounts: ((_d = props.organise) === null || _d === void 0 ? void 0 : _d.onFetchCommentCounts) ? commentCounts : undefined, onMoveRowToGroup: isDatasheetDefaults && canUpdateRecord && groupId
|
|
10677
10687
|
? handleMoveRowToGroup
|
|
10678
10688
|
: undefined,
|
|
10679
10689
|
// INFO: per-group paging — scroll appends inside a band, page
|