blixify-ui-web 1.3.26 → 1.3.28
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 +33 -17
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/settingsModal.d.ts +1 -1
- package/lib/components/data/dataTemplate/settingsModal.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/settingsModal.js +55 -20
- package/lib/components/data/dataTemplate/settingsModal.js.map +1 -1
- package/lib/components/data/dataTemplate/timelineBars.d.ts +7 -0
- package/lib/components/data/dataTemplate/timelineBars.d.ts.map +1 -0
- package/lib/components/data/dataTemplate/timelineBars.js +27 -0
- package/lib/components/data/dataTemplate/timelineBars.js.map +1 -0
- package/lib/components/display/newKanban/index.d.ts.map +1 -1
- package/lib/components/display/newKanban/index.js +18 -12
- package/lib/components/display/newKanban/index.js.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;
|
|
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;AAuJ1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFAkjiBvB,CAAC"}
|
|
@@ -178,6 +178,7 @@ var chartView_1 = require("./chartView");
|
|
|
178
178
|
var referenceScan_1 = require("./referenceScan");
|
|
179
179
|
var relatedRecords_1 = require("./relatedRecords");
|
|
180
180
|
var flexFilter_1 = require("../flexFilter");
|
|
181
|
+
var timelineBars_1 = require("./timelineBars");
|
|
181
182
|
var viewStatePersistence_1 = require("./viewStatePersistence");
|
|
182
183
|
var permissions_1 = require("./permissions");
|
|
183
184
|
var columnWidth_1 = require("../../display/newTable/columnWidth");
|
|
@@ -4140,6 +4141,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
4140
4141
|
if (nextTabs.some(function (eachTab, index) { return eachTab !== allTabs[index]; }))
|
|
4141
4142
|
(_d = (_c = props.organise) === null || _c === void 0 ? void 0 : _c.onChangeTabs) === null || _d === void 0 ? void 0 : _d.call(_c, nextTabs);
|
|
4142
4143
|
};
|
|
4144
|
+
// INFO: a tab just added opens at once — its id is its name, so it is
|
|
4145
|
+
// known before the app saves it. An edited tab leaves the reader where
|
|
4146
|
+
// they are
|
|
4147
|
+
var handleAddedTabs = function (nextTabs) {
|
|
4148
|
+
var _a, _b, _c, _d, _e;
|
|
4149
|
+
var previousCount = (_c = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.extendedTabs) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0;
|
|
4150
|
+
(_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.onChangeTabs) === null || _e === void 0 ? void 0 : _e.call(_d, nextTabs);
|
|
4151
|
+
var addedTab = nextTabs[nextTabs.length - 1];
|
|
4152
|
+
if (editTabIndex < 0 && nextTabs.length > previousCount && (addedTab === null || addedTab === void 0 ? void 0 : addedTab.name))
|
|
4153
|
+
handleSelectTab((0, utils_1.lowercaseTextToId)(addedTab.name));
|
|
4154
|
+
};
|
|
4143
4155
|
var handleSelectTab = function (id) {
|
|
4144
4156
|
var _a, _b;
|
|
4145
4157
|
if (id === "blixify_new_tab") {
|
|
@@ -12259,20 +12271,23 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12259
12271
|
if (calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.startDate) {
|
|
12260
12272
|
for (var _i = 0, spaceTableData_1 = spaceTableData; _i < spaceTableData_1.length; _i++) {
|
|
12261
12273
|
var eachData = spaceTableData_1[_i];
|
|
12274
|
+
var rawStart = (0, timelineBars_1.handleReadDateText)(eachData[calendarSettings_1.startDate]);
|
|
12275
|
+
var rawEnd = calendarSettings_1.endDate
|
|
12276
|
+
? (0, timelineBars_1.handleReadDateText)(eachData[calendarSettings_1.endDate])
|
|
12277
|
+
: undefined;
|
|
12262
12278
|
// INFO: skip only the undated row — a union mixes collections, so
|
|
12263
12279
|
// one row without a date must not hide every row after it
|
|
12264
|
-
if (!
|
|
12280
|
+
if (!rawStart)
|
|
12265
12281
|
continue;
|
|
12266
|
-
else if (!(0, dateFormat_1.handleParseListDate)(
|
|
12282
|
+
else if (!(0, dateFormat_1.handleParseListDate)(rawStart, handleFindColumnDateFormat(calendarSettings_1.startDate)).isValid()) {
|
|
12267
12283
|
continue;
|
|
12268
12284
|
}
|
|
12269
12285
|
else {
|
|
12270
12286
|
var id = eachData.id;
|
|
12271
12287
|
var title = (0, readModule_1.handleCutPreviewText)(eachData[calendarSettings_1.title]);
|
|
12272
|
-
var startDate = (0, dateFormat_1.handleParseListDate)(
|
|
12273
|
-
var endDate = calendarSettings_1.endDate &&
|
|
12274
|
-
|
|
12275
|
-
? (0, dateFormat_1.handleParseListDate)(eachData[calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.endDate], handleFindColumnDateFormat(calendarSettings_1.endDate))
|
|
12288
|
+
var startDate = (0, dateFormat_1.handleParseListDate)(rawStart, handleFindColumnDateFormat(calendarSettings_1.startDate));
|
|
12289
|
+
var endDate = calendarSettings_1.endDate && rawEnd
|
|
12290
|
+
? (0, dateFormat_1.handleParseListDate)(rawEnd, handleFindColumnDateFormat(calendarSettings_1.endDate))
|
|
12276
12291
|
: startDate;
|
|
12277
12292
|
var eventAvailability = {
|
|
12278
12293
|
id: id,
|
|
@@ -12362,7 +12377,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12362
12377
|
// INFO: viewSwitch — optional Month/Week/Agenda toggle. The range
|
|
12363
12378
|
// query follows via calendarView ("dayGridMonth" ↔ "timeGridWeek");
|
|
12364
12379
|
// agenda lists the fetched month chronologically.
|
|
12365
|
-
|
|
12380
|
+
// INFO: a tab that names no views gets them all — a tab made from
|
|
12381
|
+
// "+ New Tab" saves none, and showed no switcher at all
|
|
12382
|
+
var viewSwitchOptions = (_36 = calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.viewSwitch) !== null && _36 !== void 0 ? _36 : [
|
|
12383
|
+
"month",
|
|
12384
|
+
"week",
|
|
12385
|
+
"day",
|
|
12386
|
+
"agenda",
|
|
12387
|
+
];
|
|
12366
12388
|
var VIEW_VARIANT_MAP = {
|
|
12367
12389
|
month: "fullMonth",
|
|
12368
12390
|
week: "weekTimeGrid",
|
|
@@ -12489,8 +12511,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12489
12511
|
return tasks;
|
|
12490
12512
|
for (var _i = 0, _b = spaceTableData; _i < _b.length; _i++) {
|
|
12491
12513
|
var eachData = _b[_i];
|
|
12492
|
-
var rawStart = eachData[timelineSettings_1.startDate];
|
|
12493
|
-
var rawEnd = eachData[timelineSettings_1.endDate];
|
|
12514
|
+
var rawStart = (0, timelineBars_1.handleReadDateText)(eachData[timelineSettings_1.startDate]);
|
|
12515
|
+
var rawEnd = (0, timelineBars_1.handleReadDateText)(eachData[timelineSettings_1.endDate]);
|
|
12494
12516
|
// INFO: a bar needs both ends — skip only the incomplete row so one
|
|
12495
12517
|
// undated record in a union does not drop every bar after it
|
|
12496
12518
|
if (!rawStart || !rawEnd)
|
|
@@ -12505,13 +12527,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12505
12527
|
var groupValue = eachData[timelineSettings_1.groupId];
|
|
12506
12528
|
color = TIMELINE_COLOR_HEX_1[timelineValuesWithColour_1[groupValue]];
|
|
12507
12529
|
}
|
|
12508
|
-
tasks.push({
|
|
12509
|
-
id: eachData.id,
|
|
12510
|
-
name: (_a = (0, readModule_1.handleCutPreviewText)(eachData[timelineSettings_1.title])) !== null && _a !== void 0 ? _a : "",
|
|
12511
|
-
start: startDate.toDate(),
|
|
12512
|
-
end: endDate.toDate(),
|
|
12513
|
-
color: color,
|
|
12514
|
-
});
|
|
12530
|
+
tasks.push(__assign(__assign({ id: eachData.id, name: (_a = (0, readModule_1.handleCutPreviewText)(eachData[timelineSettings_1.title])) !== null && _a !== void 0 ? _a : "" }, (0, timelineBars_1.handleGetTimelineSpan)(startDate, endDate)), { color: color }));
|
|
12515
12531
|
}
|
|
12516
12532
|
return tasks;
|
|
12517
12533
|
};
|
|
@@ -12957,7 +12973,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
12957
12973
|
} })))));
|
|
12958
12974
|
}
|
|
12959
12975
|
else if (addTabModal) {
|
|
12960
|
-
return (react_1.default.createElement(settingsModal_1.TabModal, { type: resolvedType, tabs: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.extendedTabs, editIndex: editTabIndex >= 0 ? editTabIndex : undefined, hiddenViewTypes: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.hiddenTabViewTypes, onChangeTabs: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.onChangeTabs, model: structure, collectionId: props.collectionId, renderReferenceLabelOptions: (_x = props.organise) === null || _x === void 0 ? void 0 : _x.renderReferenceLabelOptions, onClose: function () {
|
|
12976
|
+
return (react_1.default.createElement(settingsModal_1.TabModal, { type: resolvedType, tabs: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.extendedTabs, editIndex: editTabIndex >= 0 ? editTabIndex : undefined, hiddenViewTypes: (_v = props.organise) === null || _v === void 0 ? void 0 : _v.hiddenTabViewTypes, onChangeTabs: ((_w = props.organise) === null || _w === void 0 ? void 0 : _w.onChangeTabs) ? handleAddedTabs : undefined, model: structure, collectionId: props.collectionId, renderReferenceLabelOptions: (_x = props.organise) === null || _x === void 0 ? void 0 : _x.renderReferenceLabelOptions, onClose: function () {
|
|
12961
12977
|
handlePopUpModal(false);
|
|
12962
12978
|
} }));
|
|
12963
12979
|
}
|