blixify-ui-web 1.2.253 → 1.2.255
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/columnTypes/lookup.d.ts +12 -4
- package/lib/components/data/columnTypes/lookup.d.ts.map +1 -1
- package/lib/components/data/columnTypes/lookup.js +22 -5
- package/lib/components/data/columnTypes/lookup.js.map +1 -1
- package/lib/components/data/dataTemplate/chartBuilder.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/chartBuilder.js +19 -7
- package/lib/components/data/dataTemplate/chartBuilder.js.map +1 -1
- package/lib/components/data/dataTemplate/chartView.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/chartView.js +5 -1
- package/lib/components/data/dataTemplate/chartView.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +28 -13
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/settingsModal.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/settingsModal.js +8 -1
- package/lib/components/data/dataTemplate/settingsModal.js.map +1 -1
- package/lib/components/data/dataTemplate/viewStatePersistence.d.ts +2 -5
- package/lib/components/data/dataTemplate/viewStatePersistence.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/viewStatePersistence.js +15 -4
- package/lib/components/data/dataTemplate/viewStatePersistence.js.map +1 -1
- package/lib/components/data/flexFilter/index.d.ts.map +1 -1
- package/lib/components/data/flexFilter/index.js +5 -2
- package/lib/components/data/flexFilter/index.js.map +1 -1
- package/lib/components/data/listModule.d.ts.map +1 -1
- package/lib/components/data/listModule.js +13 -12
- package/lib/components/data/listModule.js.map +1 -1
- package/lib/components/data/readModule.d.ts +3 -0
- package/lib/components/data/readModule.d.ts.map +1 -1
- package/lib/components/data/readModule.js +43 -18
- package/lib/components/data/readModule.js.map +1 -1
- package/lib/components/display/groupSection/index.d.ts +5 -0
- package/lib/components/display/groupSection/index.d.ts.map +1 -1
- package/lib/components/display/groupSection/index.js +35 -4
- package/lib/components/display/groupSection/index.js.map +1 -1
- package/lib/components/display/hoverTooltip/index.d.ts +22 -0
- package/lib/components/display/hoverTooltip/index.d.ts.map +1 -0
- package/lib/components/display/hoverTooltip/index.js +203 -0
- package/lib/components/display/hoverTooltip/index.js.map +1 -0
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +23 -23
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/display/newTable/tagLine.d.ts +12 -0
- package/lib/components/display/newTable/tagLine.d.ts.map +1 -0
- package/lib/components/display/newTable/tagLine.js +141 -0
- package/lib/components/display/newTable/tagLine.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +5 -2
- package/lib/components/index.js.map +1 -1
- package/lib/tail.css +1 -1
- package/package.json +1 -1
|
@@ -1943,13 +1943,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1943
1943
|
// person columns, monday's groupable kinds
|
|
1944
1944
|
var handleGetGroupByOptions = function () {
|
|
1945
1945
|
var _a, _b, _c, _d, _e, _f;
|
|
1946
|
-
return (_f = (_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.organise) === null || _a === void 0 ? void 0 : _a.renderGroupByOptions) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (_e = (_d = props === null || props === void 0 ? void 0 : props.organise) === null || _d === void 0 ? void 0 : _d.renderReferenceLabelOptions) === null || _e === void 0 ? void 0 : _e.call(_d, props.collectionId, true)) !== null && _f !== void 0 ? _f : structure
|
|
1946
|
+
return (_f = (0, lookup_1.handleDropLookupOptions)((_c = (_b = (_a = props === null || props === void 0 ? void 0 : props.organise) === null || _a === void 0 ? void 0 : _a.renderGroupByOptions) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (_e = (_d = props === null || props === void 0 ? void 0 : props.organise) === null || _d === void 0 ? void 0 : _d.renderReferenceLabelOptions) === null || _e === void 0 ? void 0 : _e.call(_d, props.collectionId, true), structure)) !== null && _f !== void 0 ? _f : structure
|
|
1947
1947
|
.filter(function (eachColumn) {
|
|
1948
1948
|
return !eachColumn.hide &&
|
|
1949
|
+
(0, lookup_1.handleIsQueryableColumn)(eachColumn) &&
|
|
1949
1950
|
["list", "boolean", "person"].includes(eachColumn.type);
|
|
1950
1951
|
})
|
|
1951
1952
|
.map(function (eachColumn) { return ({ key: eachColumn.id, label: eachColumn.name }); });
|
|
1952
1953
|
};
|
|
1954
|
+
// INFO: a saved view or the host may still group by a lookup, which the
|
|
1955
|
+
// host cannot group by, so such a list is drawn ungrouped
|
|
1956
|
+
var handleCheckLookupGroupBy = function () {
|
|
1957
|
+
return !!groupId &&
|
|
1958
|
+
!(0, lookup_1.handleIsQueryableColumn)(structure.find(function (eachDS) { return eachDS.id === groupId; }));
|
|
1959
|
+
};
|
|
1953
1960
|
// INFO: notify — only a user's choice is handed back; a list opening on a
|
|
1954
1961
|
// view or syncing the host's own groupBy tells the host nothing new
|
|
1955
1962
|
var handleChangeGroupBy = function (value, notify) {
|
|
@@ -7408,7 +7415,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
7408
7415
|
reqData = __assign(__assign({ spaceId: props.collectionId, query: exportQueryList, userData: {
|
|
7409
7416
|
userEmail: downloadLinkOnly ? "" : exportCSVEmail,
|
|
7410
7417
|
userName: (_d = (_c = props.devSettings.currentUser) === null || _c === void 0 ? void 0 : _c.userName) !== null && _d !== void 0 ? _d : "",
|
|
7411
|
-
}, downloadLinkOnly: downloadLinkOnly, exportType: exportType === "excel" ? "excel" : undefined, excludeReferenceId: (_f = (_e = props.organise) === null || _e === void 0 ? void 0 : _e.exportSettings) === null || _f === void 0 ? void 0 : _f.excludeReferenceId, excludeSecondaryLabel: (_h = (_g = props.organise) === null || _g === void 0 ? void 0 : _g.exportSettings) === null || _h === void 0 ? void 0 : _h.excludeSecondaryLabel, csvHeaderUseName: (_k = (_j = props.organise) === null || _j === void 0 ? void 0 : _j.exportSettings) === null || _k === void 0 ? void 0 : _k.csvHeaderUseName, dateFormatString: (_m = (_l = props.organise) === null || _l === void 0 ? void 0 : _l.exportSettings) === null || _m === void 0 ? void 0 : _m.dateFormatString, excludeDataId: (_p = (_o = props.organise) === null || _o === void 0 ? void 0 : _o.exportSettings) === null || _p === void 0 ? void 0 : _p.excludeDataId, columnIds: (_r = (_q = props.organise) === null || _q === void 0 ? void 0 : _q.exportSettings) === null || _r === void 0 ? void 0 : _r.columnIds, sort: (_t = (_s = props.organise) === null || _s === void 0 ? void 0 : _s.exportSettings) === null || _t === void 0 ? void 0 : _t.sort, groupBy: groupId, sumAttributeId: exportSumAttributeIds, viewId: (selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.id) !== "general" ? selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.name : undefined }, (exportType === "qr-data" && {
|
|
7418
|
+
}, downloadLinkOnly: downloadLinkOnly, exportType: exportType === "excel" ? "excel" : undefined, excludeReferenceId: (_f = (_e = props.organise) === null || _e === void 0 ? void 0 : _e.exportSettings) === null || _f === void 0 ? void 0 : _f.excludeReferenceId, excludeSecondaryLabel: (_h = (_g = props.organise) === null || _g === void 0 ? void 0 : _g.exportSettings) === null || _h === void 0 ? void 0 : _h.excludeSecondaryLabel, csvHeaderUseName: (_k = (_j = props.organise) === null || _j === void 0 ? void 0 : _j.exportSettings) === null || _k === void 0 ? void 0 : _k.csvHeaderUseName, dateFormatString: (_m = (_l = props.organise) === null || _l === void 0 ? void 0 : _l.exportSettings) === null || _m === void 0 ? void 0 : _m.dateFormatString, excludeDataId: (_p = (_o = props.organise) === null || _o === void 0 ? void 0 : _o.exportSettings) === null || _p === void 0 ? void 0 : _p.excludeDataId, columnIds: (_r = (_q = props.organise) === null || _q === void 0 ? void 0 : _q.exportSettings) === null || _r === void 0 ? void 0 : _r.columnIds, sort: (_t = (_s = props.organise) === null || _s === void 0 ? void 0 : _s.exportSettings) === null || _t === void 0 ? void 0 : _t.sort, groupBy: handleCheckLookupGroupBy() ? undefined : groupId, sumAttributeId: exportSumAttributeIds, viewId: (selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.id) !== "general" ? selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.name : undefined }, (exportType === "qr-data" && {
|
|
7412
7419
|
public: true,
|
|
7413
7420
|
publicLink: window.location.origin,
|
|
7414
7421
|
})), { hideSubItems: hideSubItems });
|
|
@@ -8027,10 +8034,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
8027
8034
|
// supported and left out where it is not (Firebase, union).
|
|
8028
8035
|
var handleGetSortOptions = function () {
|
|
8029
8036
|
var _a, _b, _c;
|
|
8030
|
-
var baseOptions = (_c = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.renderReferenceLabelOptions) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (isViewSettingsEnabled
|
|
8037
|
+
var baseOptions = (_c = (0, lookup_1.handleDropLookupOptions)((_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.renderReferenceLabelOptions) === null || _b === void 0 ? void 0 : _b.call(_a), structure)) !== null && _c !== void 0 ? _c : (isViewSettingsEnabled
|
|
8031
8038
|
? getViewSettingsColumns()
|
|
8032
8039
|
.filter(function (eachColumn) {
|
|
8033
|
-
return
|
|
8040
|
+
return (0, lookup_1.handleIsQueryableColumn)(eachColumn) &&
|
|
8041
|
+
!utils_1.NON_SORT_COLUMN_DATA_TYPES.includes(eachColumn.type);
|
|
8034
8042
|
})
|
|
8035
8043
|
.map(function (eachColumn) {
|
|
8036
8044
|
var _a;
|
|
@@ -8118,6 +8126,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
8118
8126
|
.filter(function (eachColumn) {
|
|
8119
8127
|
return (isFormulaViewSupported ||
|
|
8120
8128
|
eachColumn.type !== "formula") &&
|
|
8129
|
+
(0, lookup_1.handleIsQueryableColumn)(eachColumn) &&
|
|
8121
8130
|
!utils_1.NON_SORT_COLUMN_DATA_TYPES.includes(eachColumn.type);
|
|
8122
8131
|
})
|
|
8123
8132
|
.map(function (eachColumn) {
|
|
@@ -9900,8 +9909,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
9900
9909
|
// INFO: a person column's sections come from the loaded rows — reading
|
|
9901
9910
|
// one band per member would cost a request per member on every load
|
|
9902
9911
|
var groupAttributeDS = structure.find(function (eachDS) { return eachDS.id === groupId; });
|
|
9903
|
-
return ((
|
|
9904
|
-
(groupAttributeDS === null || groupAttributeDS === void 0 ? void 0 : groupAttributeDS.type) === "
|
|
9912
|
+
return (!handleCheckLookupGroupBy() &&
|
|
9913
|
+
((groupAttributeDS === null || groupAttributeDS === void 0 ? void 0 : groupAttributeDS.type) === "list" ||
|
|
9914
|
+
(groupAttributeDS === null || groupAttributeDS === void 0 ? void 0 : groupAttributeDS.type) === "boolean") &&
|
|
9905
9915
|
!!((_d = (0, groupSections_1.handleGetGroupOptions)(groupAttributeDS)) === null || _d === void 0 ? void 0 : _d.length));
|
|
9906
9916
|
};
|
|
9907
9917
|
// INFO: a list or grid tab draws the table's group sections, unless the
|
|
@@ -10159,9 +10169,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10159
10169
|
// INFO: the grouped column and its sections in option order — a status
|
|
10160
10170
|
// column's options, Yes / No, or the workspace's members
|
|
10161
10171
|
var handleGetGroupColumn = function () {
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10172
|
+
if (!groupId || handleCheckLookupGroupBy())
|
|
10173
|
+
return undefined;
|
|
10174
|
+
return displayStructure.find(function (eachDS) { return eachDS.id === groupId; });
|
|
10165
10175
|
};
|
|
10166
10176
|
var handleGetGroupColumnOptions = function () {
|
|
10167
10177
|
return (0, groupSections_1.handleGetGroupOptions)(handleGetGroupColumn(), props.devSettings.organisationMembers);
|
|
@@ -10171,7 +10181,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10171
10181
|
// Unknown (a value outside the options) and No Value
|
|
10172
10182
|
var handleBuildNewTableGroups = function () {
|
|
10173
10183
|
var _a;
|
|
10174
|
-
if (!groupId ||
|
|
10184
|
+
if (!groupId ||
|
|
10185
|
+
!((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareNewDTW) ||
|
|
10186
|
+
handleCheckLookupGroupBy())
|
|
10175
10187
|
return undefined;
|
|
10176
10188
|
var isGroupPaging = renderCheckGroupPaging();
|
|
10177
10189
|
var sections = (0, groupSections_1.handleBuildGroupSections)({
|
|
@@ -10262,6 +10274,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10262
10274
|
return eachColumn.type === "number" &&
|
|
10263
10275
|
!eachColumn.ratingMax &&
|
|
10264
10276
|
!eachColumn.hide &&
|
|
10277
|
+
(0, lookup_1.handleIsQueryableColumn)(eachColumn) &&
|
|
10265
10278
|
!hiddenIds.includes(eachColumn.id);
|
|
10266
10279
|
})
|
|
10267
10280
|
.map(function (eachColumn) { return eachColumn.id; });
|
|
@@ -10630,7 +10643,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10630
10643
|
};
|
|
10631
10644
|
var renderGroupTable = function (multipleSelect) {
|
|
10632
10645
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26;
|
|
10633
|
-
if (groupId &&
|
|
10646
|
+
if (groupId &&
|
|
10647
|
+
!((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareNewDTW) &&
|
|
10648
|
+
!handleCheckLookupGroupBy()) {
|
|
10634
10649
|
// INFO: sections are keyed off the raw rows, in option order, with
|
|
10635
10650
|
// Unknown and No Value last — the same sections the new table draws
|
|
10636
10651
|
var sections = (0, groupSections_1.handleBuildGroupSections)({
|
|
@@ -11542,7 +11557,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
11542
11557
|
}
|
|
11543
11558
|
else {
|
|
11544
11559
|
var id = eachData.id;
|
|
11545
|
-
var title = eachData[calendarSettings_1.title];
|
|
11560
|
+
var title = (0, readModule_1.handleCutPreviewText)(eachData[calendarSettings_1.title]);
|
|
11546
11561
|
var startDate = (0, dayjs_1.default)(eachData[calendarSettings_1.startDate], "YYYY-MM-DD HH:mm A");
|
|
11547
11562
|
var endDate = calendarSettings_1.endDate &&
|
|
11548
11563
|
eachData[calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.endDate]
|
|
@@ -11781,7 +11796,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
11781
11796
|
}
|
|
11782
11797
|
tasks.push({
|
|
11783
11798
|
id: eachData.id,
|
|
11784
|
-
name: (_a = eachData[timelineSettings_1.title]) !== null && _a !== void 0 ? _a : "",
|
|
11799
|
+
name: (_a = (0, readModule_1.handleCutPreviewText)(eachData[timelineSettings_1.title])) !== null && _a !== void 0 ? _a : "",
|
|
11785
11800
|
start: startDate.toDate(),
|
|
11786
11801
|
end: endDate.toDate(),
|
|
11787
11802
|
color: color,
|