Commit Graph

136 Commits

Author SHA1 Message Date
Nick O'Leary f1bada7fd8
Ensure node validation tooltip is closed when field becomes valid 2022-05-02 20:56:01 +01:00
Stephen McLaughlin f04e3d5338
fix linting errors introduced in #3553 2022-04-27 15:31:14 +01:00
Nick O'Leary dc03d0b300
Merge pull request #3553 from Steve-Mcl/code-edit-ux-improvements
Code editor ux improvements around remembering state of each code editor in a flow
2022-04-27 14:35:43 +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 48a528a4b8
Ensure property validation is backwards compatible 2022-04-26 13:45:14 +01:00
Hiroyasu Nishiyama ace5f81a17 fix validation function argument check & eliminate option of standard validation function 2022-04-11 23:06:26 +09:00
Hiroyasu Nishiyama 9f98b4b082 add support of property validation message 2022-02-14 10:40:49 +09:00
Hiroyasu Nishiyama 711467abcd fix select menu label of config node to use paletteLabel 2021-11-24 14:06:45 +09:00
Nick O'Leary edb8a120bd
Ensure tab state updates properly when toggling enable state 2021-10-08 15:09:51 +01:00
Nick O'Leary c14177b0e8
Merge pull request #3160 from node-red/filter-configs
Allow a node to specify a filter for the config nodes it can pick from
2021-10-04 10:56:16 +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 253c489a33
Allow a node to specify a filter for the config nodes it can pick from 2021-09-30 19:44:34 +01:00
Nick O'Leary 0cbf4ac37d
Better regex for parsing config select width placeholder style 2021-09-29 19:12:13 +01:00
Nick O'Leary 9ccffee82c
Ensure config-node select inherits width properly from input
Fixes #3001
2021-09-29 19:06:34 +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
Nick O'Leary d4e1469450
Allow default tab to be specified when editing flows/groups/subflows 2021-09-26 20:46:28 +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 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
Hiroyasu Nishiyama d78e5932f9 update according to PR comments 2021-08-30 08:00:58 +09:00
Hiroyasu Nishiyama 6aecc3915c add support of environtment variable for tab & group 2021-08-19 21:15:13 +09:00
Nick O'Leary 735b9c5844
Handle just-copied-but-not-deployed node with credentials in editor
Fixes #3090
2021-07-26 14:50:00 +01:00
Steve-Mcl 46d17c3314 update code comments 2021-06-15 21:01:33 +01:00
Steve-Mcl 58da87898e integrate monaco
- refactors createEditor out to own code files
- moves ace editor to own code file
- adds monaco editor to own code file
- add monaco bootstrap
- update mst to include monaco asset
- update grunt to include new files and integrate
2021-04-29 17:58:41 +01:00
Steve-Mcl 71bdade7b9 prevent exception if ace is missing 2021-04-29 16:59:11 +01:00
Nick O'Leary 3d398cfd53
Tidy up typedInput syntax 2021-02-25 13:39:59 +00:00
Nick O'Leary 5f8804c25c
Ensure TypedInput Change event is passed type/value properties
Fixes #2883
2021-02-25 13:03:31 +00:00
Nick O'Leary f4c87af5c1
Increase credential load timeout to 30secs 2021-01-28 11:30:10 +00:00
Nick O'Leary 83d12f7d39
Handle timeouts when trying to load node credentials in editor
Fixes #2840
2021-01-28 11:15:15 +00:00
Nick O'Leary ccfde84769
Merge pull request #2812 from node-red/property-types
Support node property typing
2021-01-12 23:56:01 +00:00
Nick O'Leary ea2e3f25d8
Implement node property typing
See https://github.com/node-red/designs/pull/37
2021-01-08 14:19:12 +00:00
Nick O'Leary de15a1c36f
Add subflow meta data edit pane 2021-01-07 11:10:58 +00:00
Nick O'Leary 9a660f3fe9
Support npm subflow modules 2021-01-07 11:10:33 +00:00
Nick O'Leary 5e63471983
Use markdown editor if editText called with md mode 2020-10-05 20:38:05 +01:00
Nick O'Leary aaf134b1c5
Update ACE to 1.4.12-src-min-noconflict
Fixes #1988
2020-09-16 19:13:40 +01:00
Nick O'Leary 82677c304e
Show node help when switching node edit dialogs
Fixes #2652
2020-07-16 16:12:16 +01:00
Nick O'Leary 5b1fe9aa0a
Emit nodes:change event for config node users list modified 2020-06-15 22:31:47 +01:00
Hiroyasu Nishiyama 152e695f4c prevent conversion of circular structure 2020-06-10 19:56:16 +09:00
Nick O'Leary c061487a16
Massively reduce our dependency on d3 to render the view
This is a slightly scary set of changes to be making. It overhauls
how the view is rendered.

Rather than use d3 for every single part of generating the view,
we new use native DOM functions as much as possible.

d3 is still used for the basic heavy lifting of working out what
nodes/links etc need to be added/removed from the view. But once
it comes to rendering them, d3 is side-lined as much as possible.

There's room for further improvement. This change focusses on Nodes
and Links. It has not touched groups, subflow-ports and link-nodes.
2020-06-10 00:45:20 +01:00
Nick O'Leary 21866634b3
Track subflow instances on the subflow node itself 2020-06-08 11:49:43 +01:00
Nick O'Leary 22e7ddcb1d
Merge branch 'dev' into pr_2490 2020-05-22 15:43:17 +01:00
Nick O'Leary 57f0fbbb98
Add some more trap form elements to workaround Chrome autofill 2020-05-21 10:21:18 +01:00
Nick O'Leary fbd911ed27
[outliner] Keep outliner selection in sync with workspace 2020-05-14 22:08:25 +01:00
Kazuhito Yokoi 341c66a199 Fix description of grouping nodes 2020-05-13 12:32:02 +09:00
Nick O'Leary 73dde4de51
Allow node edit dialog to be opened on a non-default tab 2020-05-01 17:37:42 +01:00
Nick O'Leary 597c4a2e4f
Add createNodeIcon and getDarkerColor to RED.utils 2020-05-01 17:37:15 +01:00
Nick O'Leary 373267c53b
Add more consistent events in the editor
This introduces a much more consistent set of events within the editor
for whenever a element is added, removed or modified.

The events emited on the `RED.events` event system. The event names
take the form: `"<thing>:<action>"`.

`<thing>` can be one of:
 - nodes
 - flows
 - subflows
 - groups
 - links

`<action>` can be one of:
 - add
 - remove
 - change

The payload of the events is the object in question.

There is also:
 - flows:reorder    - when tabs are reordered. Payload is array of flow ids.
 - workspace:clear  - when the workspace is emptied - part of switching projects

The `nodes:change` event was already used by RED.nodes.dirty() to cause
the Deploy button to become active. This renames that event to:
 - workspace:dirty  - Payload is boolean flag for the dirty state

This commit also updates the Palette to use the subflows:change event to
only redraw subflows that have actually changed rather than refresh them
all whenever one of them *might* have changed. This removes a noticable
flicker of the icon which was needlessly being redrawn.
2020-04-20 22:23:34 +01:00
Nick O'Leary 294696daf5
Merge branch 'dev' into groups 2020-03-30 23:42:52 +01:00