mirror of
https://github.com/gristlabs/grist-core.git
synced 2025-06-13 20:53:59 +00:00
Summary: - New UI for the modal look mostly following the design prepared previously. - Use <object> for rendering PDFs (on a Mac works on Firefox, Chrome, Safari; needs checking on Windows) - While we are at it, use <video> and <audio> for relevant files (object would render them too, but without the option to disable autoplay). - Use <object> for unknown types, except for text/html (unsafe) and other text types (need more work to render well). - Fix skipping save on Escape or when attachments are unsaved (previously a noop action was emitted, creating surprises with undo). - Display extension for files without preview, both in-cell and in the modal. - Replace tiny "eye" icon to preview particular attachment with double-clicking. - As an accidental feature, a particular attachment can be previewed by typing 1, 2, 3, etc into cell. - Renamed PreviewsWidget/PreviewModel to AttachmentsWidget/AttachmentsEditor. Test Plan: Unified old and new tests for attachments, added new test cases. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2667 |
||
|---|---|---|
| .. | ||
| AbstractWidget.js | ||
| AttachmentsEditor.ts | ||
| AttachmentsWidget.css | ||
| AttachmentsWidget.ts | ||
| BaseEditor.js | ||
| CheckBox.css | ||
| CheckBox.js | ||
| CheckBoxEditor.js | ||
| ChoiceEditor.js | ||
| ChoiceTextBox.js | ||
| DateEditor.js | ||
| DateTextBox.js | ||
| DateTimeEditor.css | ||
| DateTimeEditor.js | ||
| DateTimeTextBox.js | ||
| DiffBox.ts | ||
| EditorPlacement.ts | ||
| ErrorDom.ts | ||
| FieldBuilder.css | ||
| FieldBuilder.ts | ||
| FieldEditor.ts | ||
| FormulaEditor.ts | ||
| HyperLinkEditor.ts | ||
| HyperLinkTextBox.js | ||
| NewAbstractWidget.ts | ||
| NewBaseEditor.ts | ||
| NTextBox.ts | ||
| NTextEditor.ts | ||
| NumericTextBox.ts | ||
| Reference.css | ||
| Reference.js | ||
| ReferenceEditor.ts | ||
| Spinner.css | ||
| Spinner.ts | ||
| Switch.css | ||
| Switch.js | ||
| TextBox.css | ||
| TextBox.js | ||
| TextEditor.css | ||
| TextEditor.js | ||
| UserType.js | ||
| UserTypeImpl.js | ||