gristlabs_grist-core/app/client/lib
Alex Hall 8f531ef622 (core) Reference and ReferenceList formatters
Summary:
Previously, ref/reflist columns were formatted entirely based on their visible column, since they received values from the visible or display columns rather than the actual row IDs. This creates `ReferenceFormatter` and `ReferenceListFormatter` which still delegate most of the formatting work to a visible column formatter but fix a few issues:

- ReferenceList columns now actually use the options (e.g. date format) of the visible column to format their elements. Previously they were formatted generically because the visible column formatter wasn't expecting a list.
- Invalid references aren't formatted with an `#Invalid Ref` prefix.
- When the ref column displays the Row ID, it doesn't have a visible or display column. Previously this led to the references being formatted as just numbers in most cases, with special code in the widget to display them like `Table1[2]`. Now they are consistently formatted in that style throughout.

Test Plan: Updated existing tests.

Reviewers: jarek

Reviewed By: jarek

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3212
2022-01-13 18:09:33 +02:00
..
ACIndex.ts (core) Fix autocomplete selection when options include emoji 2021-10-04 22:58:00 -04:00
ACSelect.ts (core) Replace time zone selector with one based on the newer autocomplete. 2021-07-23 08:02:05 -04:00
autocomplete.ts (core) Add rules to eslint to better match our coding conventions. 2021-05-24 12:56:18 -04:00
browserGlobals.js (core) move client code to core 2020-10-02 13:24:21 -04:00
browserInfo.ts (core) Add our very own implementation of tokenfield (aka pillbox, tag list) 2021-05-03 17:16:24 -04:00
chartUtil.ts (core) Fix error bars for bar chart 2022-01-04 17:58:52 +01:00
copyToClipboard.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
CustomSectionElement.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
dblclick.ts (core) Fix double-tap on Android failing to select tapped cell; ensure gestures don't get interpreted as double-tap 2021-02-10 09:22:14 -05:00
Delay.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
dispose.d.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
dispose.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DocPluginManager.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
dom.js (core) move client code to core 2020-10-02 13:24:21 -04:00
domAsync.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
download.js (core) move client code to core 2020-10-02 13:24:21 -04:00
FocusLayer.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
fromKoSave.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
guessTimezone.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
helpScout.ts (core) Update HelpScout beacon to work with embedded documentation articles. 2021-12-09 22:22:55 -05:00
HomePluginManager.ts (core) Adding import from google drive to the home screen 2021-08-05 20:46:11 +02:00
imports.d.ts (core) tweak how search bar places cursor on sections 2021-08-30 09:26:28 -04:00
imports.js (core) tweak how search bar places cursor on sections 2021-08-30 09:26:28 -04:00
ImportSourceElement.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
koArray.d.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
koArray.js (core) move client code to core 2020-10-02 13:24:21 -04:00
koArrayWrap.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
koDom.js (core) Scrolling to the active record when editor is activated 2022-01-10 23:35:08 +01:00
koDomScrolly.css (core) move client code to core 2020-10-02 13:24:21 -04:00
koDomScrolly.js (core) move client code to core 2020-10-02 13:24:21 -04:00
koForm.css (core) move client code to core 2020-10-02 13:24:21 -04:00
koForm.js (core) move client code to core 2020-10-02 13:24:21 -04:00
koSession.js (core) move client code to core 2020-10-02 13:24:21 -04:00
koUtil.js (core) move client code to core 2020-10-02 13:24:21 -04:00
loadScript.js (core) move client code to core 2020-10-02 13:24:21 -04:00
localStorageObs.ts (core) Make mobile the default mode. 2021-02-25 11:31:43 -05:00
log.ts (core) support ?embed=true and &style=light for a clean embed experience 2020-08-14 13:34:38 -04:00
Mousetrap.js (core) Improve focus and keyboard shortcuts in modals. 2020-10-03 22:56:00 -04:00
multiselect.css (core) move client code to core 2020-10-02 13:24:21 -04:00
multiselect.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ObservableMap.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ObservableSet.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ReferenceUtils.ts (core) Reference and ReferenceList formatters 2022-01-13 18:09:33 +02:00
SafeBrowser.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
SafeBrowserProcess.css (core) move client code to core 2020-10-02 13:24:21 -04:00
sessionObs.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
sortUtil.ts (core) Adding sort options for columns. 2021-11-03 15:31:39 +01:00
tableUtil.ts (core) Check document ID when parsing pasted references 2021-11-30 13:40:17 +02:00
testState.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
textUtils.ts (core) Check document ID when parsing pasted references 2021-11-30 13:40:17 +02:00
TokenField.ts (core) Disable mousedown on token delete button 2021-09-16 10:45:06 -07:00
uploads.ts (core) Extending Google Drive integration scope 2021-10-01 10:47:12 +02:00
UrlState.ts (core) Fixes persistence of the aclAsUser_ parameters across navigation 2021-05-19 09:51:38 +02:00