Steve-Mcl
3f27dc89d8
Add overloads for context/flow/global set/get/keys
2021-06-23 22:27:13 +01:00
Nick O'Leary
d6f6efc189
Lower tray zIndex when overlay tray being opened
...
Fixes #3019
2021-06-23 14:34:52 +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
Nick O'Leary
754a36fbc9
Merge branch 'master' into dev
2021-06-16 13:42:56 +01:00
Nick O'Leary
85dafc0b3c
Ensure RED.clipboard.import displays the right library
...
Fixes #3021
2021-06-16 13:41:58 +01:00
Nick O'Leary
1a27e60e55
Allow RED.popover.panel to specify a closeButton to ignore click events on
2021-06-16 11:44:40 +01:00
Nick O'Leary
2c710736e8
Use browser default language for initial page load
2021-06-16 11:44:35 +01:00
Nick O'Leary
69b9ff69be
Add css var for node font color
2021-06-16 11:44:30 +01:00
Nick O'Leary
a3a4fc0cc2
Fix label padding of toggleButton
2021-06-16 11:44:25 +01:00
Nick O'Leary
ae686bb15d
Give sidebar open tab a bit more room for its label
2021-06-16 11:44:20 +01:00
Nick O'Leary
68a5325849
Bump version to 2.0.0-beta.2
2021-06-16 11:44:14 +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
Steve-Mcl
a9cf34ab56
prevent IE script error
...
- even though monaco does not work in EI, scripts must not fail to load
2021-06-15 21:02:30 +01:00
Steve-Mcl
46d17c3314
update code comments
2021-06-15 21:01:33 +01:00
Hiroyasu Nishiyama
93c25f5d1b
Update message catalogue
2021-06-13 14:19:36 +09:00
Steve-Mcl
aa6ec60c34
fix up issues with function node types
...
- node.status add overload
- remove examples as they dont render correctly
- correct Number and Object types to number and object
2021-06-11 18:44:37 +01:00
Steve-Mcl
7d24e5b279
node.status snippet enums for fill and shape
2021-06-11 08:01:38 +01:00
Steve-Mcl
12253e23b5
Add setReadOnly support
2021-06-10 21:18:29 +01:00
Nick O'Leary
89c84522d2
Merge branch 'master' into dev
2021-06-10 14:19:24 +01:00
Nick O'Leary
98172764ac
Handle node icon paths for scoped modules
...
Fixes #3013
2021-06-10 14:15:43 +01:00
Nick O'Leary
ff5e038c49
Improve contrast of export dialog JSON font color
2021-06-08 11:54:58 +01:00
Nick O'Leary
ce905ba2c4
Merge branch 'master' into dev
2021-06-08 11:44:31 +01:00
Nick O'Leary
4edea59ab1
Merge branch 'pr_2990' into dev
2021-06-08 10:56:57 +01:00
Nick O'Leary
9b46dbaff1
Switch editableList buttons from <a> to <button> elements
2021-06-08 10:56:04 +01:00
Nick O'Leary
bd00c728d1
Merge pull request #3008 from Steve-Mcl/node-red-typings-update
...
Node red typings update
2021-06-08 10:29:03 +01:00
Steve-Mcl
714a5e26b3
add env.get to function node defs
2021-06-05 12:42:54 +01:00
Steve-Mcl
7f2c6e40d3
fix typescript errors in node-red d.ts def files
2021-06-05 12:42:13 +01:00
Steve-Mcl
db676ec223
add snippet for env.get
2021-06-05 12:34:47 +01:00
Steve-Mcl
ffb3e511a7
update monaco v0.24.0
2021-06-05 12:28:25 +01:00
Nick O'Leary
e9e64f6a44
Add option to RED.nodes.createCompleteNodeSet to include node dimensions
...
This allows the linter to use a flow json with more than just position
information.
2021-06-04 13:53:01 +01:00
Jiye Yu
4140ff03d7
fix typo in zh-CN translation ( #3003 )
2021-06-03 19:03:00 +01:00
Nick O'Leary
7c02e4d66a
Merge branch 'master' into dev
2021-06-02 15:40:56 +01:00
Nick O'Leary
a92f8f36c1
Keep proper track of moved/changed state in undo/redo history
...
Fixes #2999
2021-06-02 14:07:22 +01:00
Nick O'Leary
01b5fc4d49
Merge pull request #2987 from node-red/clean-ids
...
Change node id generation to give fixed length values without '.'
2021-05-27 12:18:38 +01:00
Nick O'Leary
de142ac9d6
Add css named variables for certain key colors
2021-05-25 21:03:01 +01:00
Nick O'Leary
bc17ebd90e
Fix css of node help table of contents elements
2021-05-24 10:23:00 +01:00
Steve-Mcl
e1c5764fbf
move new inject button to existing edit form
...
- revert refactoring of building editableList (not needed now)
- remove node button modifier click & tray.show feature
- add inject button to editableList [buttons] array
- add `id` option to editableList to permit DOM access after creation
- get the new inject button via its `id` and float it to the right
- removed the popup tray buttons i18n entries
2021-05-22 10:52:44 +01:00
Steve-Mcl
bae6bfc32d
Add inject values without deploy feature
2021-05-20 21:12:32 +01:00
Nick O'Leary
a9164e63ab
Merge branch 'dev' into pr_2971
2021-05-18 16:30:13 +01:00
Nick O'Leary
4f77bbeb2b
Update for 1.3.5
2021-05-18 11:52:49 +01:00
Nick O'Leary
8bbed2c831
Change node id generation to give fixed length values without '.'
2021-05-18 11:32:17 +01:00
Nick O'Leary
6b43a23c4b
Merge branch 'master' into dev
2021-05-14 21:18:32 +01:00
Nick O'Leary
be9521f659
Revert some of #2967 to fix treeList gutter width calculation
2021-05-14 21:17:47 +01:00
Nick O'Leary
fe64c6a841
Merge branch 'master' into dev
2021-05-13 14:30:02 +01:00
Nick O'Leary
2bbdc85a29
Prevent unknown node from breaking editor
...
If a node provides a .js file that registers a type
but its .html is empty, then the editor will know about
the type, but there will be no node definition.
This fix handles that in some of the utility functions
for generating node appearance.
This wasn't an exhaustive check for these things - just
some obvious candidates that I hit in testing 'bad' nodes
2021-05-13 14:28:01 +01:00
Nick O'Leary
15aa249f64
Stop module with missing types from preventing editor load
2021-05-13 14:06:43 +01:00
Nick O'Leary
fdf58e1225
Fix lint errors in editor hooks
2021-05-13 14:00:21 +01:00
Nick O'Leary
866f305686
Open subflow tab next to active tab rather than at the end
2021-05-13 13:57:29 +01:00
Nick O'Leary
1550e5343c
Merge branch 'master' into dev
2021-05-13 13:42:26 +01:00
Nick O'Leary
1a30fe4a1a
Improve red-ui-node-icon css and add red-ui-node-icon-small modifier class
2021-05-13 13:39:29 +01:00
Nick O'Leary
4ff991764e
Updates to encode/decode message when passed over debug comms link
2021-05-13 13:38:34 +01:00
Nick O'Leary
c47b553a8e
Add viewAddPort viewRemovePort viewAddNode viewRemoveNode hooks to view
2021-05-13 13:36:50 +01:00
Nick O'Leary
319af51f84
Add RED.hooks to editor
2021-05-13 13:35:12 +01:00
Nick O'Leary
5dbaaae68e
Merge branch 'master' into dev
2021-05-12 16:00:36 +01:00
Nick O'Leary
b77cd56a01
Migrate from node-sass to sass
...
node-sass is deprecated and doesn't work on Node 16.
sass is actively maintained and considered the canonical sass
implementation.
2021-05-11 18:13:21 +01:00
Nick O'Leary
8f7686cd7b
Handle sidebar tab that no longer exists when setting first active
2021-05-11 16:42:32 +01:00
Nick O'Leary
ade318bb78
Support mousewheel scroll in tab bar
2021-05-11 15:58:01 +01:00
Nick O'Leary
ed3aa8189f
Shrink default notification box
...
Also reduces Inject/Debug notification display time as 5 seconds is a
long time for a message telling you it worked
2021-05-11 14:45:53 +01:00
Nick O'Leary
3e43597617
Prevent error whilst drag/drop importing from leaving dropTarget visible
...
Fixes #2982
2021-05-11 14:10:40 +01:00
Nick O'Leary
e641b0a965
Fix scaling issues when dragging nodes into scaled workspace
2021-05-10 21:03:27 +01:00
Kazuhito Yokoi
5c31bd54e4
Fix incorrect shortcut keys in info tips
2021-05-06 20:09:35 +09:00
Nick O'Leary
71ba73b38f
Merge branch 'master' into dev
2021-05-04 11:19:05 +01:00
Nick O'Leary
db0ff74857
Reduce code duplication around node/label generation
2021-05-04 11:12:55 +01:00
Steve-Mcl
1acb073737
add support for explicit calls to ace.setFontSize
...
- found node-red-contrib-ui-svg explicitly calling ace function
2021-05-04 10:34:29 +01:00
Steve-Mcl
251dda3652
missing editor destroy() calls
2021-05-04 09:04:13 +01:00
Steve-Mcl
22db24509d
Ensure monaco exists before attempting cleanup
2021-05-04 09:03:35 +01:00
Steve-Mcl
ffbd140a97
bug fix orphaned models and graphical tray glitch
...
- ensure models are disposed correctly
- clean up any orphaned models left after editor:close
- improve concurrent multiple instances javascript models
- fix graphical glitch
2021-05-03 16:19:01 +01:00
Steve-Mcl
dedf5c52d9
better support for multiple editors
...
- as the javascript model is singleton, need to disable
syntax checking when editor not focused
(support multiple instances of js editor (function node))
2021-05-02 23:11:29 +01:00
Steve-Mcl
10465c5d68
treat appcache files as shell (uibuilder support)
2021-05-02 23:00:35 +01:00
Steve-Mcl
1f4f64a7c0
handle node-red style affecting monaco rename box
2021-05-02 22:44:48 +01:00
Steve-Mcl
0a80186a92
Merge branch 'dev' into monaco2
2021-05-01 21:56:45 +01:00
Nick O'Leary
635bdf15cb
Fix use of paletteLabel in help tab
...
Fixes #2973
2021-05-01 21:55:50 +01:00
Steve-Mcl
a72bdfdacc
Handle known bug (monaco-editor issue No 2382)
...
- handles "Uncaught (in promise) Canceled: Canceled"
2021-05-01 11:40:43 +01:00
Steve-Mcl
dc3e04456c
remove temporary debugging window variable
2021-05-01 11:01:04 +01:00
Nick O'Leary
b0e4fb7602
Fix infotip display following i18n update
2021-04-30 13:54:25 +01:00
Steve-Mcl
df7aa3339b
dont tokenise JSONata
...
- monaco has jsonata tokeniser
2021-04-29 18:11:47 +01:00
Steve-Mcl
cc7def89af
ensure monaco is correctly sized
2021-04-29 17:59:12 +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
bded5490d2
add utility func getBrowserInfo
...
- prep for monaco - for slimming down monaco on mobile
- prep for monaco - needed to prevent monaco on IE
2021-04-29 17:35:11 +01:00
Steve-Mcl
c3715a2a3d
ensure editor is removed
...
- Fixes issue with left over HTML in the DOM
2021-04-29 17:32:44 +01:00
Steve-Mcl
abf084f6c2
Dont call to ACE, re-use createEditor instead
2021-04-29 17:31:38 +01:00
Steve-Mcl
37ba409dc3
ensure mode is set for event log viewer
2021-04-29 17:29:54 +01:00
Steve-Mcl
f29488b24f
prevent editor context menu being clipped by sidebar
...
- raise / lower tray z-index for correct slide animation
2021-04-29 17:03:17 +01:00
Steve-Mcl
71bdade7b9
prevent exception if ace is missing
2021-04-29 16:59:11 +01:00
Steve-Mcl
60d97c887d
missing args from JSONata $now signature
2021-04-29 16:57:22 +01:00
Steve-Mcl
1f7884dc70
add typings for basic intellisense
2021-04-29 16:54:29 +01:00
Steve-Mcl
69dafd6c68
add codeEditor settings
2021-04-29 16:53:59 +01:00
Steve-Mcl
64b79cd5ac
add monaco dist
...
- includes themes from https://github.com/brijeshb42/monaco-themes
2021-04-29 16:52:22 +01:00
Nick O'Leary
9886af3cec
Fix jshint error in treeList
2021-04-29 14:09:21 +01:00
Nick O'Leary
08e73d9d7d
Merge pull request #2967 from hanc2006/master
...
Fixed remove item when depth=0 and wrong gutter calc treeList widget
2021-04-29 14:00:02 +01:00
Nick O'Leary
b0e349b215
Update for 1.3.4
2021-04-29 11:22:22 +01:00
Daniele
a150d8e289
Update packages/node_modules/@node-red/editor-client/src/js/ui/common/treeList.js
...
Thanks for the tip, I'll remember next time.
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
2021-04-28 23:37:26 +02:00
Nick O'Leary
91f5542a57
Fix importing node to currently flow rather than match its old z value
...
If you import a node whose z value is a known existing tab, it is getting
imported to that tab, rather than the expected behaviour of being imported
to the current tab.
This commit fixes that by checked if the node is being imported to a tab
that was included in the import, rather than pre-existing.
2021-04-28 20:54:31 +01:00
GitHub
d47a8aa562
Fix remove item when depth=0 and wrong gutter calc
2021-04-28 17:25:26 +02:00
Nick O'Leary
8e7efd98b2
Don't let 'escape' whilst moving nodes interrupt things
...
Fixes #2960
2021-04-26 16:48:21 +01:00
Nick O'Leary
1d12017f11
Sort context stores in TypedInput and ensure default first
...
Fixes #2954
2021-04-26 10:13:57 +01:00
Kazuhito Yokoi
372122037f
Fix margin between nodes on palette
2021-04-21 13:14:46 +09:00
Nick O'Leary
23a5cb1917
Ensure typedInput option is selected in dropdown menu
...
Part of #2945
2021-04-20 23:39:21 +01:00
Nick O'Leary
f8d5fef3c4
Ensure typedInput without value has focus class removed
...
Closes #2945
2021-04-20 23:25:56 +01:00