sea-chart 2.0.40 → 2.0.43
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/dist/api/index.js +4 -4
- package/dist/components/cell-factory/SimpleCellFormatter.js +1 -1
- package/dist/components/cell-factory/link-content.js +4 -4
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-popover/color-rules/color-rule.js +1 -1
- package/dist/components/color-popover/color-rules/index.js +1 -1
- package/dist/components/color-popover/color-rules-popover.js +6 -6
- package/dist/components/color-popover/color-selector-popover.js +2 -2
- package/dist/components/color-setting/color-group-selector.js +1 -1
- package/dist/components/common-add-tool/index.js +2 -2
- package/dist/components/data-process-setter/hide-column-setter.js +1 -1
- package/dist/components/data-process-setter/sort-setter.js +2 -2
- package/dist/components/drill-down-settings/drill-down-fields-popover/index.js +4 -4
- package/dist/components/icon/index.js +1 -1
- package/dist/components/popover/hide-column-popover/hide-column-popover.js +1 -1
- package/dist/components/popover/sort-popover/sort-popover.js +1 -1
- package/dist/components/row-card/row-card-header-cell.js +2 -2
- package/dist/components/row-card/row-card-header.js +1 -1
- package/dist/components/row-card/row-card-item.js +2 -2
- package/dist/components/row-card/row-card.js +2 -2
- package/dist/components/statistic-record-dialog/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/types-dialog/index.js +9 -10
- package/dist/context.js +2 -2
- package/dist/services/map-json.js +4 -4
- package/dist/settings/basic-number-card/style-settings.js +1 -1
- package/dist/settings/map-settings/map-style-settings.js +1 -1
- package/dist/settings/stacks-settings/index.js +1 -1
- package/dist/settings/style-settings.js +1 -1
- package/dist/settings/table-settings/data-settings.js +1 -1
- package/dist/settings/trend-settings/style-setting.js +2 -2
- package/dist/settings/widgets/date-summary-item.js +2 -2
- package/dist/settings/widgets/numeric-summary-item.js +2 -2
- package/dist/settings/widgets/summary-settings.js +2 -2
- package/dist/settings/widgets/switch/index.js +1 -1
- package/dist/settings/widgets/text-horizontal-settings.js +2 -2
- package/dist/settings/widgets/y-axis-group-settings.js +1 -1
- package/dist/utils/cell-value-utils.js +1 -1
- package/dist/utils/chart-utils/base-utils.js +8 -8
- package/dist/utils/chart-utils/original-data-utils/basic-chart-calculator.js +1 -1
- package/dist/utils/chart-utils/original-data-utils/compare-bar-chart-calculator.js +2 -2
- package/dist/utils/chart-utils/original-data-utils/completeness-calculator.js +1 -1
- package/dist/utils/chart-utils/sql-statistics-utils.js +8 -8
- package/dist/utils/collaborator-utils.js +1 -1
- package/dist/utils/collaborator.js +2 -2
- package/dist/utils/column-utils.js +12 -12
- package/dist/utils/common-utils.js +1 -1
- package/dist/utils/date-translate.js +1 -1
- package/dist/utils/object-utils.js +1 -1
- package/dist/utils/options-utils.js +2 -2
- package/dist/utils/row-record-utils.js +2 -2
- package/dist/utils/sql/chart-data-sql.js +58 -58
- package/dist/utils/sql/column-2-sql-column.js +18 -18
- package/dist/view/index.js +2 -2
- package/dist/view/title/index.js +2 -2
- package/dist/view/wrapper/area-group.js +3 -3
- package/dist/view/wrapper/area.js +6 -5
- package/dist/view/wrapper/bar-compare.js +4 -4
- package/dist/view/wrapper/bar-custom-stack.js +4 -4
- package/dist/view/wrapper/bar-group.js +8 -4
- package/dist/view/wrapper/bar-stack.js +3 -3
- package/dist/view/wrapper/bar.js +2 -2
- package/dist/view/wrapper/basic-number-card.js +8 -8
- package/dist/view/wrapper/chart-component.js +45 -44
- package/dist/view/wrapper/combination.js +6 -6
- package/dist/view/wrapper/completeness-group.js +7 -7
- package/dist/view/wrapper/completeness.js +4 -4
- package/dist/view/wrapper/dashboard.js +12 -9
- package/dist/view/wrapper/funnel.js +7 -2
- package/dist/view/wrapper/heat-map.js +8 -8
- package/dist/view/wrapper/horizontal-bar-group.js +7 -5
- package/dist/view/wrapper/horizontal-bar-stack.js +4 -4
- package/dist/view/wrapper/horizontal-bar.js +3 -3
- package/dist/view/wrapper/line-group.js +11 -5
- package/dist/view/wrapper/line.js +3 -3
- package/dist/view/wrapper/mirror.js +5 -5
- package/dist/view/wrapper/pie.js +4 -4
- package/dist/view/wrapper/ring.js +6 -6
- package/dist/view/wrapper/scatter.js +2 -2
- package/dist/view/wrapper/table/index.js +1 -1
- package/dist/view/wrapper/table/one-dimension-table-with-numeric-columns.js +3 -3
- package/dist/view/wrapper/table/pivot-table-display-name.js +1 -1
- package/dist/view/wrapper/table/two-dimension-table.js +9 -9
- package/dist/view/wrapper/table-element/components/formatter.js +14 -2
- package/dist/view/wrapper/table-element/components/formatters/FileFormatter/index.js +1 -1
- package/dist/view/wrapper/table-element/components/formatters/link-formatter.js +17 -17
- package/dist/view/wrapper/table-element/components/link-formatter.js +17 -17
- package/dist/view/wrapper/table-element/components/record.js +3 -3
- package/dist/view/wrapper/table-element/components/records.js +4 -4
- package/dist/view/wrapper/table-element/components/utils.js +1 -1
- package/dist/view/wrapper/table-element/css/index.css +79 -0
- package/dist/view/wrapper/treemap.js +2 -2
- package/dist/view/wrapper/trend.js +18 -18
- package/package.json +2 -2
|
@@ -31,8 +31,8 @@ const TextHorizontalSettings = _ref => {
|
|
|
31
31
|
};
|
|
32
32
|
}, {});
|
|
33
33
|
};
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
35
|
-
className: (0, _classnames.default)('mt-0 mb-4
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
className: (0, _classnames.default)('mt-0 mb-4 settings-text-horizontal-align sea-chart-select-group', className)
|
|
36
36
|
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Label, null, _intl.default.get('Text_horizontal_alignment')), /*#__PURE__*/_react.default.createElement(_DTableRadioGroup2.default, {
|
|
37
37
|
activeOption: validValue,
|
|
38
38
|
options: _constants.HORIZONTAL_ALIGNS,
|
|
@@ -349,7 +349,7 @@ class YAxisGroupSettings extends _react.Component {
|
|
|
349
349
|
if (!summary_columns || !Array.isArray(summary_columns)) return null;
|
|
350
350
|
return summary_columns.map((item, index) => {
|
|
351
351
|
return /*#__PURE__*/_react.default.createElement(_numericSummaryItem.default, {
|
|
352
|
-
key:
|
|
352
|
+
key: `number-column-${index}`,
|
|
353
353
|
index: index + 1,
|
|
354
354
|
value: item,
|
|
355
355
|
chart: chart,
|
|
@@ -12,6 +12,6 @@ const isArrayCellValue = column => {
|
|
|
12
12
|
data
|
|
13
13
|
} = column;
|
|
14
14
|
return _dtableUtils.MULTIPLE_CELL_VALUE_COLUMN_TYPE_MAP[type] || _dtableUtils.FORMULA_COLUMN_TYPES_MAP[type] && data && data.result_type === _dtableUtils.FORMULA_RESULT_TYPE.ARRAY && _dtableUtils.COLLABORATOR_COLUMN_TYPES.includes(data.array_type) // the collaborator lookup is not formatted
|
|
15
|
-
|
|
15
|
+
;
|
|
16
16
|
};
|
|
17
17
|
exports.isArrayCellValue = isArrayCellValue;
|
|
@@ -573,7 +573,7 @@ BaseUtils.formatEmptyName = (dataList, column_groupby_column_key, emptyName) =>
|
|
|
573
573
|
if (!item.name && item.name !== 0) {
|
|
574
574
|
item.name = emptyName;
|
|
575
575
|
}
|
|
576
|
-
if (column_groupby_column_key && !item.group_name) {
|
|
576
|
+
if (column_groupby_column_key && !item.group_name && item.group_name !== 0) {
|
|
577
577
|
item.group_name = emptyName;
|
|
578
578
|
}
|
|
579
579
|
if (!item.slugId) {
|
|
@@ -1683,10 +1683,10 @@ BaseUtils.formatedTableSqlRowsByCollaboratorAndMultiple = (chart, sqlRows, chart
|
|
|
1683
1683
|
newSqlRows.forEach(item => {
|
|
1684
1684
|
summarySQLColumnName2ColumnKeys.forEach(key => {
|
|
1685
1685
|
if (key.startsWith('AVG')) {
|
|
1686
|
-
item[
|
|
1686
|
+
item[`COUNT(${key.slice(3)})`] = item['COUNT(*)'];
|
|
1687
1687
|
// Update avg
|
|
1688
1688
|
const newKey = 'SUM' + key.slice(3);
|
|
1689
|
-
item[key] = item[newKey] / item[
|
|
1689
|
+
item[key] = item[newKey] / item[`COUNT(${key.slice(3)})`];
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
});
|
|
@@ -1698,7 +1698,7 @@ BaseUtils.formatedTableSqlRowsByCollaboratorAndMultiple = (chart, sqlRows, chart
|
|
|
1698
1698
|
newSqlRows.forEach(item => {
|
|
1699
1699
|
summarySQLColumnName2ColumnKeys.forEach(key => {
|
|
1700
1700
|
if (key.startsWith('AVG')) {
|
|
1701
|
-
item[
|
|
1701
|
+
item[`COUNT(${key.slice(3)})`] = item['COUNT(*)'];
|
|
1702
1702
|
}
|
|
1703
1703
|
});
|
|
1704
1704
|
});
|
|
@@ -1719,7 +1719,7 @@ BaseUtils.formatedTableSqlRowsByCollaboratorAndMultiple = (chart, sqlRows, chart
|
|
|
1719
1719
|
// Avg: The avg is calculated by sum / count
|
|
1720
1720
|
if (key.startsWith('AVG')) {
|
|
1721
1721
|
newKey = 'SUM' + key.slice(3);
|
|
1722
|
-
newSqlRows[rowIndex][
|
|
1722
|
+
newSqlRows[rowIndex][`COUNT(${key.slice(3)})`] = newSqlRows[rowIndex][`COUNT(${key.slice(3)})`] + item['COUNT(*)'];
|
|
1723
1723
|
}
|
|
1724
1724
|
// Sum
|
|
1725
1725
|
if (newKey.startsWith('SUM') && newSqlRows[rowIndex][newKey]) {
|
|
@@ -1753,7 +1753,7 @@ BaseUtils.formatedTableSqlRowsByCollaboratorAndMultiple = (chart, sqlRows, chart
|
|
|
1753
1753
|
// Avg: The avg is calculated by sum / count
|
|
1754
1754
|
if (key.startsWith('AVG')) {
|
|
1755
1755
|
newKey = 'SUM' + key.slice(3);
|
|
1756
|
-
obj[
|
|
1756
|
+
obj[`COUNT(${key.slice(3)})`] = item['COUNT(*)'];
|
|
1757
1757
|
}
|
|
1758
1758
|
// Sum
|
|
1759
1759
|
if (newKey.startsWith('SUM')) {
|
|
@@ -1773,7 +1773,7 @@ BaseUtils.formatedTableSqlRowsByCollaboratorAndMultiple = (chart, sqlRows, chart
|
|
|
1773
1773
|
// Update avg
|
|
1774
1774
|
if (key.startsWith('AVG')) {
|
|
1775
1775
|
const newKey = 'SUM' + key.slice(3);
|
|
1776
|
-
item[key] = item[newKey] / item[
|
|
1776
|
+
item[key] = item[newKey] / item[`COUNT(${key.slice(3)})`];
|
|
1777
1777
|
}
|
|
1778
1778
|
});
|
|
1779
1779
|
});
|
|
@@ -1855,7 +1855,7 @@ BaseUtils.updateCollaboratorAndMultipleAvg = (pivot_rows, all) => {
|
|
|
1855
1855
|
let allSum = 0;
|
|
1856
1856
|
let allCount = 0;
|
|
1857
1857
|
cell.rows.forEach(r => {
|
|
1858
|
-
allSum = allSum + r[
|
|
1858
|
+
allSum = allSum + r[`SUM(${avgColumnName})`];
|
|
1859
1859
|
allCount = allCount + r['COUNT(*)'];
|
|
1860
1860
|
});
|
|
1861
1861
|
|
|
@@ -492,7 +492,7 @@ async function calculateCustomBar(statItem, value, _ref4) {
|
|
|
492
492
|
if (!Array.isArray(column_groupby_numeric_columns) || column_groupby_numeric_columns.length === 0) {
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
|
-
const yAxisType =
|
|
495
|
+
const yAxisType = `${_constants.Y_AXIS_TYPE_PREFIX}${index}`;
|
|
496
496
|
column_groupby_numeric_columns.forEach(numericSummaryColumn => {
|
|
497
497
|
const {
|
|
498
498
|
column_key: summary_column_key,
|
|
@@ -28,8 +28,8 @@ async function calculator(chart, value, _ref) {
|
|
|
28
28
|
x_axis_compared_date_range_end,
|
|
29
29
|
display_increase
|
|
30
30
|
} = chart;
|
|
31
|
-
const groupName1 =
|
|
32
|
-
const groupName2 =
|
|
31
|
+
const groupName1 = `${x_axis_date_range_start} - ${x_axis_date_range_end}`;
|
|
32
|
+
const groupName2 = `${x_axis_compared_date_range_start} - ${x_axis_compared_date_range_end}`;
|
|
33
33
|
const table = (0, _dtableUtils.getTableById)(value.tables, table_id);
|
|
34
34
|
const view = table && (0, _dtableUtils.getViewById)(table.views, view_id);
|
|
35
35
|
if (!view || !x_axis_column_key) {
|
|
@@ -144,7 +144,7 @@ async function calculator(chart, value, _ref) {
|
|
|
144
144
|
let targetValue = (0, _rowUtils.getCellValue)(row, formulaRow, targetColumn);
|
|
145
145
|
currentValue = (0, _dtableUtils.isNumber)(currentValue) ? currentValue : 0;
|
|
146
146
|
targetValue = (0, _dtableUtils.isNumber)(targetValue) ? targetValue : 0;
|
|
147
|
-
const concatLabel =
|
|
147
|
+
const concatLabel = `${label}_${groupLabel}`;
|
|
148
148
|
if (labelCountMap[concatLabel]) {
|
|
149
149
|
labelCountMap[concatLabel].currentValue = currentValue + labelCountMap[concatLabel].currentValue;
|
|
150
150
|
labelCountMap[concatLabel].targetValue = targetValue + labelCountMap[concatLabel].targetValue;
|
|
@@ -768,7 +768,7 @@ SQLStatisticsUtils.customChartSQLResult2JavaScript = async (chart, sqlRows, char
|
|
|
768
768
|
const {
|
|
769
769
|
column_groupby_numeric_columns
|
|
770
770
|
} = stack;
|
|
771
|
-
const y_axis_type =
|
|
771
|
+
const y_axis_type = `${_constants.Y_AXIS_TYPE_PREFIX}${index}`;
|
|
772
772
|
let summaryMethods = [];
|
|
773
773
|
let originalMethods = [];
|
|
774
774
|
let groupColumnNames = [];
|
|
@@ -878,8 +878,8 @@ SQLStatisticsUtils.compareSQLResult2Javascript = async (chart, sqlRows, chartSQL
|
|
|
878
878
|
y_axis_summary_method,
|
|
879
879
|
display_increase
|
|
880
880
|
} = config;
|
|
881
|
-
const groupName1 =
|
|
882
|
-
const groupName2 =
|
|
881
|
+
const groupName1 = `${x_axis_date_range_start} - ${x_axis_date_range_end}`;
|
|
882
|
+
const groupName2 = `${x_axis_compared_date_range_start} - ${x_axis_compared_date_range_end}`;
|
|
883
883
|
const dateRangeResult = new Map();
|
|
884
884
|
let dateComparedResult = new Map();
|
|
885
885
|
const isAdvanced = y_axis_summary_type === _constants.CHART_SUMMARY_TYPE.ADVANCED;
|
|
@@ -1353,7 +1353,7 @@ SQLStatisticsUtils.groupingTwoDimensionChartSQLResult2JavaScript = async (chart,
|
|
|
1353
1353
|
const bEmpty = isEmptyGroupName(b);
|
|
1354
1354
|
if (aEmpty && !bEmpty) return 1;
|
|
1355
1355
|
if (!aEmpty && bEmpty) return -1;
|
|
1356
|
-
return
|
|
1356
|
+
return `${a !== null && a !== void 0 ? a : ''}`.localeCompare(`${b !== null && b !== void 0 ? b : ''}`);
|
|
1357
1357
|
});
|
|
1358
1358
|
nameGroupMap.forEach((groupSet, name) => {
|
|
1359
1359
|
groupNameList.forEach(groupName => {
|
|
@@ -1390,7 +1390,7 @@ SQLStatisticsUtils.groupingTwoDimensionChartSQLResult2JavaScript = async (chart,
|
|
|
1390
1390
|
const aOrder = groupOrder.has(a.group_name) ? groupOrder.get(a.group_name) : Number.MAX_SAFE_INTEGER;
|
|
1391
1391
|
const bOrder = groupOrder.has(b.group_name) ? groupOrder.get(b.group_name) : Number.MAX_SAFE_INTEGER;
|
|
1392
1392
|
if (aOrder !== bOrder) return aOrder - bOrder;
|
|
1393
|
-
return
|
|
1393
|
+
return `${(_a$group_name = a.group_name) !== null && _a$group_name !== void 0 ? _a$group_name : ''}`.localeCompare(`${(_b$group_name = b.group_name) !== null && _b$group_name !== void 0 ? _b$group_name : ''}`);
|
|
1394
1394
|
});
|
|
1395
1395
|
orderedResult.push(...items);
|
|
1396
1396
|
});
|
|
@@ -1835,8 +1835,8 @@ SQLStatisticsUtils.completenessSQlResult = async (chart, sqlRows, chartSQLMap, t
|
|
|
1835
1835
|
const res = [];
|
|
1836
1836
|
sqlRows.forEach((row, index) => {
|
|
1837
1837
|
const nameValue = row[name_column.key];
|
|
1838
|
-
const targetValue = row[
|
|
1839
|
-
const completedValue = row[
|
|
1838
|
+
const targetValue = row[`SUM(${target_column.name})`];
|
|
1839
|
+
const completedValue = row[`SUM(${completed_column.name})`];
|
|
1840
1840
|
const groupby = row[sqlColumnGroupbyColumnKey] || _intl.default.get('Empty');
|
|
1841
1841
|
let completedRate;
|
|
1842
1842
|
if (!targetValue && completedValue) {
|
|
@@ -1883,7 +1883,7 @@ SQLStatisticsUtils.completenessSQlResult = async (chart, sqlRows, chartSQLMap, t
|
|
|
1883
1883
|
const deduplicatedRes = [];
|
|
1884
1884
|
const keyMap = {};
|
|
1885
1885
|
res.forEach(item => {
|
|
1886
|
-
const key =
|
|
1886
|
+
const key = `${item.name}_${item.group_name}`;
|
|
1887
1887
|
if (!keyMap[key]) {
|
|
1888
1888
|
keyMap[key] = item;
|
|
1889
1889
|
deduplicatedRes.push(item);
|
|
@@ -98,7 +98,7 @@ async function getUsers(emails, cb) {
|
|
|
98
98
|
}
|
|
99
99
|
const generateDefaultUser = name => {
|
|
100
100
|
const mediaUrl = _context.default.getSetting('mediaUrl');
|
|
101
|
-
const defaultAvatarUrl =
|
|
101
|
+
const defaultAvatarUrl = `${mediaUrl}avatars/default.png`;
|
|
102
102
|
return {
|
|
103
103
|
name,
|
|
104
104
|
email: name,
|
|
@@ -13,7 +13,7 @@ const getKnownCreatorByEmail = (collaborators, email) => {
|
|
|
13
13
|
let {
|
|
14
14
|
mediaUrl
|
|
15
15
|
} = window.dtable || {};
|
|
16
|
-
let defaultAvatarUrl =
|
|
16
|
+
let defaultAvatarUrl = `${mediaUrl}avatars/default.png`;
|
|
17
17
|
if (email === 'anonymous' || email === 'Automation Rule') {
|
|
18
18
|
return {
|
|
19
19
|
name: email,
|
|
@@ -41,7 +41,7 @@ const generateDefaultUser = name => {
|
|
|
41
41
|
let {
|
|
42
42
|
mediaUrl
|
|
43
43
|
} = window.dtable;
|
|
44
|
-
let defaultAvatarUrl =
|
|
44
|
+
let defaultAvatarUrl = `${mediaUrl}avatars/default.png`;
|
|
45
45
|
return {
|
|
46
46
|
name,
|
|
47
47
|
avatar_url: defaultAvatarUrl
|
|
@@ -354,43 +354,43 @@ const getSummaryResult = function (results, summaryMethod) {
|
|
|
354
354
|
exports.getSummaryResult = getSummaryResult;
|
|
355
355
|
const getSqlGroup = (column, groupBy) => {
|
|
356
356
|
const columnName = (column === null || column === void 0 ? void 0 : column.name) || '';
|
|
357
|
-
const validColumnName =
|
|
357
|
+
const validColumnName = `\`${columnName}\``;
|
|
358
358
|
const type = (column === null || column === void 0 ? void 0 : column.type) || '';
|
|
359
359
|
if (type === _dtableUtils.CellType.CTIME || type === _dtableUtils.CellType.MTIME || type === _dtableUtils.CellType.DATE) {
|
|
360
360
|
const dateGranularity = (groupBy['date_granularity'] || '').toUpperCase();
|
|
361
361
|
if (['DAY', 'DAYS_7', 'DAYS_30'].includes(dateGranularity)) {
|
|
362
|
-
return
|
|
362
|
+
return `ISODATE(${validColumnName})`;
|
|
363
363
|
}
|
|
364
364
|
if (dateGranularity === 'WEEK') {
|
|
365
|
-
return
|
|
365
|
+
return `ISODATE(STARTOFWEEK(${validColumnName}, "monday"))`;
|
|
366
366
|
}
|
|
367
367
|
if (dateGranularity === 'MONTH') {
|
|
368
|
-
return
|
|
368
|
+
return `ISOMONTH(${validColumnName})`;
|
|
369
369
|
}
|
|
370
370
|
if (dateGranularity === 'QUARTER') {
|
|
371
|
-
return
|
|
371
|
+
return `CONCATENATE(year(${validColumnName}), "-Q", quarter(${validColumnName}))`;
|
|
372
372
|
}
|
|
373
373
|
if (dateGranularity === 'YEAR') {
|
|
374
|
-
return
|
|
374
|
+
return `YEAR(${validColumnName})`;
|
|
375
375
|
}
|
|
376
376
|
if (dateGranularity === 'MAX') {
|
|
377
|
-
return
|
|
377
|
+
return `MAX(${validColumnName})`;
|
|
378
378
|
}
|
|
379
379
|
if (dateGranularity === 'MIN') {
|
|
380
|
-
return
|
|
380
|
+
return `MIN(${validColumnName})`;
|
|
381
381
|
}
|
|
382
|
-
return
|
|
382
|
+
return `ISOMONTH(${validColumnName})`;
|
|
383
383
|
}
|
|
384
384
|
if (type === _dtableUtils.CellType.GEOLOCATION) {
|
|
385
385
|
const geolocationGranularity = (groupBy['geolocation_granularity'] || '').toUpperCase();
|
|
386
386
|
if (geolocationGranularity === 'PROVINCE') {
|
|
387
|
-
return
|
|
387
|
+
return `PROVINCE(${validColumnName})`;
|
|
388
388
|
}
|
|
389
389
|
if (geolocationGranularity === 'CITY') {
|
|
390
|
-
return
|
|
390
|
+
return `CITY(${validColumnName})`;
|
|
391
391
|
}
|
|
392
392
|
if (geolocationGranularity === 'DISTRICT') {
|
|
393
|
-
return
|
|
393
|
+
return `DISTRICT(${validColumnName})`;
|
|
394
394
|
}
|
|
395
395
|
return validColumnName;
|
|
396
396
|
}
|
|
@@ -146,7 +146,7 @@ const generateCurrentBaseImageThumbnailUrl = _ref => {
|
|
|
146
146
|
size
|
|
147
147
|
} = _ref;
|
|
148
148
|
if (!partUrl || typeof partUrl !== 'string') return '';
|
|
149
|
-
return
|
|
149
|
+
return `${server}/thumbnail/workspace/${workspaceID}/asset/${dtableUuid}${partUrl}?size=${size}`;
|
|
150
150
|
};
|
|
151
151
|
exports.generateCurrentBaseImageThumbnailUrl = generateCurrentBaseImageThumbnailUrl;
|
|
152
152
|
const isInternalUrl = url => {
|
|
@@ -83,6 +83,6 @@ function convertQuarterToDate(yearQuarter) {
|
|
|
83
83
|
const year = timeDetailList[0];
|
|
84
84
|
const quarter = timeDetailList[1];
|
|
85
85
|
const quarterTime = quarterTimeMap[quarter];
|
|
86
|
-
const timeString =
|
|
86
|
+
const timeString = `${year}-${quarterTime}`;
|
|
87
87
|
return new Date(timeString);
|
|
88
88
|
}
|
|
@@ -17,7 +17,7 @@ class ObjectUtils {
|
|
|
17
17
|
}
|
|
18
18
|
static isObjectChanged(source, comparison) {
|
|
19
19
|
if (!this.iterable(source)) {
|
|
20
|
-
throw new Error(
|
|
20
|
+
throw new Error(`source should be a Object or Array , but got ${this.getDataType(source)}`);
|
|
21
21
|
}
|
|
22
22
|
if (this.getDataType(source) !== this.getDataType(comparison)) {
|
|
23
23
|
return true;
|
|
@@ -29,7 +29,7 @@ const generatorCommonOption = function () {
|
|
|
29
29
|
if (optionType === 'divide') {
|
|
30
30
|
return {
|
|
31
31
|
value: validOption,
|
|
32
|
-
key:
|
|
32
|
+
key: `divide-${index}`,
|
|
33
33
|
type: optionType,
|
|
34
34
|
name: '',
|
|
35
35
|
isDuplicate: false,
|
|
@@ -40,7 +40,7 @@ const generatorCommonOption = function () {
|
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
42
|
value: validOption,
|
|
43
|
-
key:
|
|
43
|
+
key: `${name}-${index}`,
|
|
44
44
|
type: optionType,
|
|
45
45
|
name,
|
|
46
46
|
isDuplicate,
|
|
@@ -253,7 +253,7 @@ const getFormattedCell = function (column, row) {
|
|
|
253
253
|
departments
|
|
254
254
|
});
|
|
255
255
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
256
|
-
key:
|
|
256
|
+
key: `${rowId}_${display_column_key}`,
|
|
257
257
|
className: "link"
|
|
258
258
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
259
259
|
className: "link-name"
|
|
@@ -295,7 +295,7 @@ const getFormattedCell = function (column, row) {
|
|
|
295
295
|
return /*#__PURE__*/_react.default.createElement(_SingleSelectOption.default, {
|
|
296
296
|
column: column,
|
|
297
297
|
value: item,
|
|
298
|
-
key:
|
|
298
|
+
key: `row-operation-multiple-select-${index}`
|
|
299
299
|
});
|
|
300
300
|
}));
|
|
301
301
|
}
|