mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
5d671bf0b3
Summary: This is https://phab.getgrist.com/D3205 plus some changes (https://github.com/dsagal/grist/compare/type-convert...type-convert-server?expand=1) that move the conversion process to the backend. A new user action ConvertFromColumn uses `call_external` so that the data engine can delegate back to ActiveDoc. Code for creating formatters and parsers is significantly refactored so that most of the logic is in `common` and can be used in different ways. Test Plan: The original diff adds plenty of tests. Reviewers: georgegevoian Reviewed By: georgegevoian Subscribers: dsagal Differential Revision: https://phab.getgrist.com/D3240
13 lines
540 B
TypeScript
13 lines
540 B
TypeScript
import {UIRowId} from 'app/common/UIRowId';
|
|
import {TableData} from "./TableData";
|
|
|
|
/**
|
|
* Return whether a table identified by the rowId of its metadata record, should normally be
|
|
* hidden from the user (e.g. as an option in the page-widget picker).
|
|
*/
|
|
export function isHiddenTable(tablesData: TableData, tableRef: UIRowId): boolean {
|
|
const tableId = tablesData.getValue(tableRef, 'tableId') as string|undefined;
|
|
return tablesData.getValue(tableRef, 'summarySourceTable') !== 0 ||
|
|
Boolean(tableId?.startsWith('GristHidden'));
|
|
}
|