Commit Graph

100 Commits

Author SHA1 Message Date
Nick O'Leary e3d6d242ac
Fix handling of spacebar inside JSON visual editor
Fixes #3682

The treeList keyboard handling was consuming the event - used
to select the item in the list.

The fix here adds a 'selectable' flag on the treeList that can
be used to disabled (=false) the keyboard selection of items.
2022-06-16 23:29:46 +01:00
Kazuhito Yokoi c5af71e0a2 Change icon path from png to svg 2022-05-05 20:38:55 +09:00
Steve-Mcl bf8bfa582a fix error initialising flow tab editor
fixes #3577
2022-05-04 15:16:35 +01:00
Nick O'Leary bd626899df
Fix linting error from merge 2022-04-28 11:17:32 +01:00
Nick O'Leary ff57de0753
Merge branch 'dev' into diagnostics 2022-04-27 22:30:13 +01:00
Stephen McLaughlin f04e3d5338
fix linting errors introduced in #3553 2022-04-27 15:31:14 +01:00
Steve-Mcl 3e16cc4912 Add i18n for json editor title when readonly 2022-04-27 12:52:41 +01:00
Steve-Mcl fcdf252f03 rename jsonButtons to toolbarButtons 2022-04-27 12:52:01 +01:00
Steve-Mcl b23fea9cb5 group json editor toolbar buttons 2022-04-27 12:50:45 +01:00
Stephen McLaughlin e714ff35c4
Merge branch 'dev' into diagnostics 2022-04-27 12:08:32 +01:00
Steve-Mcl 194eb4e266 code editor ux improvements
* Save and restore editor selection(s), cursor(s), scroll pos etc
* Improve focusing of editor at appropriate times
* Works with both ace and monaco
* Backwards compatible and (almost) fully functional with existing nodes
2022-04-27 11:23:13 +01:00
Nick O'Leary 0fec9c7c55
Apply i18n messages to diagnostics dialog 2022-04-26 16:24:13 +01:00
Nick O'Leary 12a25c37aa
Merge branch 'master' into dev 2022-04-20 10:56:55 +01:00
Steve-Mcl 8f013776df fix model markers
- monaco depreciated model.getModeId() replaced with model._languageId
2022-04-10 09:13:41 +01:00
Dave Conway-Jones 77e2e44abc
Fix markdown editor to mark up orderedlists correctly
to close #3513
2022-03-31 13:45:07 +01:00
Steve-Mcl 5633c5224e Add system info UI 2022-03-29 20:59:35 +01:00
Stephen McLaughlin 73ff852648
backward compatible equality testing of immutables
- make non object equality tests non strict
- this aligns with prior condition
2022-03-10 11:22:59 +00:00
Stephen McLaughlin 10f77fdf1a
permit non strict comparison of string or number 2022-03-08 23:13:41 +00:00
Steve-Mcl 84a9cf7adf handle errors by circ refs, undefined, BigInt etc 2022-03-08 14:20:12 +00:00
Steve-Mcl a49927f173 do JSON comparison of old value/new value
fixes #3475
2022-03-08 14:07:03 +00:00
Steve-Mcl 4d84926ed2 Update monaco for Predefined Environment Variables
- add Predefined Environment Variables to snippet suggestions
- update jsdoc for `env.get`
2022-02-14 13:38:37 +00:00
Hiroyasu Nishiyama b06049d5a3 fix opening/closing subflow template not to make subflow changed 2022-01-27 12:57:37 +09:00
Nick O'Leary 42358419ad
Fix vertical align of subflow port labels 2022-01-25 17:08:04 +00:00
ralphwetzel eb1b8b577f
Merge branch 'node-red:dev' into dev 2022-01-13 23:36:23 +01:00
ralphwetzel 28f91685ce Subflow: Add labels to OUTPUT nodes 2022-01-13 23:33:06 +01:00
Nick O'Leary 0cf9b5f3df
Improve jsonata legacy mode detection regex
Fixes #3290
2022-01-12 21:56:38 +00:00
Steve-Mcl b5e48aa509 load extralibs when expanding monaco. fixes #3319 2022-01-08 19:29:49 +00:00
Nick O'Leary 9af7357ca4
Avoid adding empty env properties to tabs/groups
Fixes #3306
2021-12-27 12:03:40 +00:00
Nick O'Leary 0f0cb3ac6d
Fix setting object env var properties so they can be undone 2021-10-28 12:14:03 +01:00
Nick O'Leary 893ef227d4
Merge pull request #3084 from Steve-Mcl/theme-monaco-theme
Permit plugin theme to theme monaco editor
2021-10-05 10:42:08 +01:00
Nick O'Leary da114fa3a5
Merge pull request #3152 from node-red/link-call
Add Link Call node
2021-10-01 15:59:43 +01:00
Nick O'Leary da210e2ae4
Ignore top-level await errs in monaco
Fixes #3138
2021-09-29 17:19:12 +01:00
Nick O'Leary b01fd24e15
Add link-call node and add return mode for link-out node 2021-09-29 10:45:00 +01:00
Steve-Mcl 5825da9c76 Merge branch 'dev' into theme-monaco-theme 2021-09-21 14:06:54 +01:00
Nick O'Leary 234e77fd06
Rename registerEditPane function 2021-09-02 22:12:32 +01:00
Nick O'Leary 87ac831c8a
Simplify edit pane api 2021-09-02 21:59:30 +01:00
Nick O'Leary 4e92492165
Edit panes should not need to create own tray content div 2021-09-02 21:44:06 +01:00
Nick O'Leary c3d0b1114f
Fix jshint error 2021-09-02 16:37:13 +01:00
Nick O'Leary 4463a7d4ba
Move envVar list component to own file 2021-09-02 16:14:35 +01:00
Nick O'Leary 741fe3dd90
Move tab edit dialog into editor and use new edit panes 2021-09-02 14:29:58 +01:00
Nick O'Leary e910f3915d
Initial refactor of edit dialogs to separate panes 2021-09-02 10:33:43 +01:00
Nick O'Leary 27ed81614b
Remove default ctrl-enter keybinding from monaco editor
Fixes #3093
2021-07-30 11:50:21 +01:00
Steve-Mcl 8a1d81989b use codeEditor.options.theme 2021-07-26 21:02:11 +01:00
Steve-Mcl d7a2fc2be4 use them plugin theme `monacoTheme` if present 2021-07-25 15:16:49 +01:00
Nick O'Leary 56df8d8bd3
Merge pull request #3031 from Steve-Mcl/monaco0252
Update Monaco Editor to V0.25.2 (latest)
2021-06-28 15:28:09 +01:00
Steve-Mcl 04d91d1422 prevent promise rejection when loading editor 2021-06-24 11:28:39 +01:00
Steve-Mcl db90e1f801 remove unnecessary global uncaught promise handler
- monaco issue https://github.com/microsoft/monaco-editor/issues/2382
2021-06-24 11:27:24 +01:00
Steve-Mcl 0a8f7085f3 allow static private field to have initializer 2021-06-17 08:44:44 +01:00
Steve-Mcl c908502644 add 2 ace compatible functions
- clearSelection - blocky node
- selectAll - obvious addition
2021-06-16 22:36:00 +01:00
Steve-Mcl 1a73a27102 add diagnosticCodesToIgnore 2345
- handles issue with Intl.DateTimeFormat when `options` is a variable
2021-06-15 23:15:54 +01:00