gristlabs_grist-core/app/client/widgets
Dmitry S 48e90c4998 (core) Change how formula columns can be converted to data.
Summary:
- No longer convert data columns to formula by typing a leading "=". Instead,
  show a tooltip with a link to click if the conversion was intended.
- No longer convert a formula column to data by deleting its formula. Leave the
  column empty instead.
- Offer the option "Convert formula to data" in column menu for formulas.
- Offer the option to "Clear column"
- If a subset of rows is shown, offer "Clear values" and "Clear entire column".

- Add logic to detect when a view shows a subset of all rows.
- Factor out showTooltip() from showTransientTooltip().

- Add a bunch of test cases to cover various combinations (there are small
  variations in options depending on whether all rows are shown, on whether
  multiple columns are selected, and whether columns include data columns).

Test Plan: Added a bunch of test cases.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2746
2021-03-05 12:42:57 -05:00
..
AbstractWidget.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
AttachmentsEditor.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
AttachmentsWidget.css (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
AttachmentsWidget.ts (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
BaseEditor.js (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
CheckBox.css (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
CheckBox.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
CheckBoxEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ChoiceEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ChoiceTextBox.ts (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00
DateEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DiffBox.ts (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
EditorButtons.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorPlacement.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorTooltip.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
ErrorDom.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.css (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
FieldEditor.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
FormulaEditor.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
HyperLinkEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
HyperLinkTextBox.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NewAbstractWidget.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NewBaseEditor.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
NTextBox.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NTextEditor.ts (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
NumericTextBox.ts (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00
Reference.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Reference.ts (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00
ReferenceEditor.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
Spinner.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Spinner.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Switch.css (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
Switch.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
TextBox.css (core) move client code to core 2020-10-02 13:24:21 -04:00
TextEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
TextEditor.js (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
UserType.js (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
UserTypeImpl.js (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00