alschmiedt
fe41814958
Fix missing dependency ( #4722 )
2021-03-24 13:08:20 -07:00
Sam El-Husseini
63d26dc186
Add extra requires check ( #4677 )
...
* Add extra requires check
2021-03-05 09:50:51 -08:00
Rachel Fenichel
750b62030b
First pass at creating connectionTypes and inputTYpes
2021-03-04 10:22:24 -08:00
Sam El-Husseini
f97730e83c
Sort requires ( #4658 )
...
* Cleanup gulp method to sort requires
2021-02-25 17:17:42 -08:00
Sam El-Husseini
ab8a11784d
Fix event related missing requires ( #4656 )
...
* Fix event related missing requires
2021-02-25 14:28:11 -08:00
Rachel Fenichel
1d8c234d33
Update uses of bindEvent_, bindEventWithChecks_, and unbindEvent_. Add missing requires for Blockly.browserEvents.
2021-02-23 11:23:28 -08:00
Rachel Fenichel
2360a12493
Fix remaining trivial missing requireTypes
2021-02-19 13:17:14 -08:00
alschmiedt
a3adc42e8a
Remove keyboard navigation from core ( #4593 )
2021-01-19 11:50:51 -08:00
alschmiedt
fe0f401977
Fix collapsing bug and add tests ( #4568 )
2021-01-11 09:05:59 -08:00
Rachel Fenichel
40928634e5
Add some missing requires and requireTypes
2021-01-08 15:03:55 -08:00
Monica Kozbial
40ef586260
Refactoring Ui events in core ( #4418 )
...
* Ui events base (#4370 )
* Add constants for new ui event types
* Add property to indicate an event as UI event
* Click events (#4372 )
* Creating new ui base class.
* Refactor theme event (#4391 )
* Add themeName property to theme event
* Refactor marker move events. (#4389 )
* Refactor trashcan open event (#4392 )
* Refactor selected event (#4387 )
* Refactor toolbox item change event (#4394 )
* Refactor bubble open events (#4390 )
* Refactor block drag event (#4388 )
* Viewport events (#4395 )
* Fix event filtering for ui events (#4401 )
* Move events to new directory and rename Ui events base (#4400 )
* Move events to new directory and rename Ui events base
* Add missing fromJson implementation for click event (#4410 )
* Adding serialization tests for events
* Zoom controls event (#4407 )
* Refactor zoom event
* Rename IS_UI_EVENT to isUiEvent
2020-11-04 14:43:54 -08:00
Anjali Pal
eff3fcc289
set data-id on block svgs for IE11 ( #4425 )
2020-11-02 14:08:12 -08:00
alschmiedt
f1498e7f07
Keyboard shortcuts ( #4421 )
...
* Adds shortcut registry and removes action and key map (#4398 )
* Adds Shortcut tests and refactored navigation tests (#4412 )
* Adds shortcut items (#4408 )
* Add shortcuts for navigation (#4409 )
* Add final keyboard shortcut cleanup (#4413 )
2020-11-02 13:30:05 -08:00
Sam El-Husseini
fba35d342c
Add missing require Blockly.constants ( #4366 )
2020-10-12 17:56:42 -04:00
Rachel Fenichel
3bf8a38020
Delete some deprecated functions
2020-09-28 13:09:19 -07:00
Monica Kozbial
395a2b3fcc
Don't update disabled on children of collapsed blocks. ( #4302 )
2020-09-21 14:33:16 -07:00
Rachel Fenichel
f76560e883
Don't update disabled on unrendered children
2020-09-21 10:44:03 -07:00
Monica Kozbial
ab5a51e2a4
Revert "Don't render children of collapsed blocks ( #4264 )" ( #4300 )
...
This reverts commit 96e8fc794e .
2020-09-21 10:40:01 -07:00
Monica Kozbial
96e8fc794e
Don't render children of collapsed blocks ( #4264 )
...
* Partially revert collapsed block changes and add additional handling for setting children of collapsed blocks to not rendered
* Improve performance by checking if child is rendered in updateDisabled
2020-09-18 16:08:39 -07:00
Sam El-Husseini
db40e44b7c
Move Blockly.utils.dom.SvgElementType to Blockly.utils.Svg ( #4285 )
...
* Move SVGElementType to its own file shaving off 2.7KB
2020-09-16 14:42:58 -07:00
alschmiedt
22d598484f
Update blockToDom types to include document fragments ( #4280 )
2020-09-16 10:51:09 -07:00
Rachel Fenichel
5b393eed76
More cleanup
2020-07-16 14:11:48 -06:00
Rachel Fenichel
6990ac5efd
Fix annotation and remove redundant 'Blockly.'
2020-07-16 14:08:27 -06:00
Rachel Fenichel
2f5663b1ec
Add deprecation helper + 2 uses
2020-07-16 13:59:32 -06:00
Sam El-Husseini
0f3db47fa5
Use generics to derive SVG element type ( #4036 )
...
* Encapsulate type in a generic to automatically derive type of SVG element when using createSvgElement
2020-07-13 10:40:31 -07:00
Maribeth Bottorff
e4bbd451a3
Use Context Menu registry for block-level menu options ( #4032 )
...
Use registry for block-level context menu items.
2020-07-10 19:11:48 -07:00
Sam El-Husseini
1052f7548b
Enable unusedPrivateMembers check ( #3924 )
...
* Add unusedPrivateMembers check
2020-05-28 17:44:16 -07:00
Sam El-Husseini
acfc335870
Type fixes for Dropdown / Widget divs ( #3911 )
...
* Stricter typechecks in dropdown and widget div
2020-05-28 08:42:26 -07:00
Bluefox
6f3e27cf16
Do not add COLLAPSED_WARNINGS_WARNING by deleting of warning
...
If some block tries to remove warning with `block.setWarningText(null, block.id)` in collapsed state, the warning will be shown anyway.
2020-05-25 11:40:59 +02:00
Sam El-Husseini
317834ff59
Add accessibility interfaces and fix navigation types ( #3908 )
...
* Add accessibility interfaces and fix navigation types
2020-05-21 11:18:10 -07:00
Sam El-Husseini
6809f63555
Rename bounding box to bounded element ( #3909 )
2020-05-20 11:21:26 -07:00
Sam El-Husseini
fd916fdb9b
Bounding Box interface ( #3906 )
...
* Add an interface describing a bounding box registered on the workspace
* Clear the bounding box array
* PR comments
* Update chromedriver
2020-05-19 18:06:11 -07:00
Maribeth Bottorff
781dbd974d
Make block.removeInput return a boolean. ( #3832 )
...
Make block.removeInput return a boolean.
2020-04-17 17:47:58 -07:00
Sam El-Husseini
4b20383831
Add Selectable interface ( #3823 )
...
* Add I Selectable interface
2020-04-16 18:22:32 -07:00
Beka Westberg
9e98df9949
Fix collapsed blocks not updating when modified ( #3806 )
...
* Stop recursive render calls
* Fix visibility bugs.
* Make toString ignore collapsed input.
* Add automatic collapse rendering handling
* Fix insertion markers with collapsed
* Add tests
* Fix build?
* PR comments
* Add missing jsdoc
2020-04-16 13:02:05 -07:00
Monica Kozbial
a9223b0b22
Typo fixes. ( #3769 )
2020-03-25 15:47:27 -07:00
Sam El-Husseini
7e1f81cf11
Insertion marker properties in theme ( #3752 )
...
* Pipe inseriton marker colour and opacity from theme
2020-03-18 10:15:30 -07:00
Sam El-Husseini
14428a0da4
Fix two memory leaks ( #3747 )
...
* Fix two memory leaks
2020-03-13 14:49:08 -07:00
Sam El-Husseini
5db1574852
Move cursor on tab if we're in keyboard nav mode. ( #3738 )
2020-03-12 09:42:19 -07:00
Sam El-Husseini
29dc7bd7f7
Adjust marker and cursor colours from the theme ( #3735 )
...
* Support adjusting marker and cursor colours from the theme
2020-03-11 11:23:29 -07:00
Sam El-Husseini
13ac939b91
Support passing renderer overrides in options ( #3734 )
...
* Support passing in renderer options through workspace options.
2020-03-10 18:36:29 -07:00
Sam El-Husseini
8c5c33902b
Flash on render ( #3721 )
...
* Flash a block when it's renderered in debug mode
2020-03-05 13:26:10 -08:00
Beka Westberg
392d25eb39
fix: Break breaking undo.
2020-02-18 16:01:18 -08:00
alschmiedt
0c60c119a2
Update to use knew variable ( #3694 )
2020-02-17 14:08:27 -08:00
Neil Fraser
4e2f8e6e02
Use SPDX licences.
...
This is a followup to #3127 .
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
alschmiedt
513e85bf4a
Checks keyboardAccessibility flag before rendering ( #3671 )
2020-01-30 14:11:47 -08:00
Beka Westberg
025d087e6a
fix: Fixed insertion preview logic. And fixed markers not handling typed statements. ( #3526 )
...
* Added planned functions.
* Added default getConnectionPreviewMethod method.
* Moved show preview logic into their new functions.
* Fixed default getConnectinPreviewMethod logic.
* Reverted to lastConnectionInRow call (for output connections) for behavioral backwards-compat.
* Added zelos logic.
* Removed unused functions, and added docs.
2020-01-24 07:49:31 -08:00
alschmiedt
130297f795
Add colour methods back to blockSvg ( #3626 )
...
* Add colour methods back to blockSvg
2020-01-22 07:34:46 -08:00
Monica Kozbial
8f787a3e41
Re-rendering block in setMutator. ( #3574 )
2020-01-13 10:32:22 -08:00
Monica Kozbial
26db9167db
Move of render contant START_HAT into ConstantProvider. ( #3563 )
...
* Move of render contant START_HAT into ConstantProvider.
2020-01-07 16:18:05 -08:00