Commit Graph

2576 Commits

Author SHA1 Message Date
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
Monica Kozbial
40efb59a34 Unbind event handlers in dispose of zoom controls. (#4031)
* Unbind event handlers in dispose of zoom controls.

* Move event handler references to constructor.
2020-07-10 17:34:53 -07:00
Monica Kozbial
d3b8b78035 Update click event handling for workspace and trashcan. (#4024)
* Update click event handling for workspace and trashcan.

* Fix typo

* Change event name for trashcan flyout open
2020-07-10 13:23:08 -07:00
Monica Kozbial
fdd0f4f25f Emit UI event on zoom control clicks. (#4025)
* Emit UI event on zoom control clicks.

* Fix typo

* Update jsdoc for mouse event handlers.
2020-07-10 10:15:09 -07:00
Rachel Fenichel
c9c8af12a7 Remove some old deprecated functions 2020-07-08 17:31:16 -07:00
alschmiedt
459b1ef1fb Update jsdoc for keyboard nav (#4023) 2020-07-07 17:31:04 -07:00
Maribeth Bottorff
5e55d89d3b Context menu registry, initial version. (#3930)
* initial version of registry for context menu options
* Registers workspace-level context menu options
2020-07-07 10:41:53 -07:00
Sam El-Husseini
8f5966ec75 Fix field dropdown with images (#4016)
* Fix field dropdown with images
2020-07-06 10:55:00 -07:00
alschmiedt
5c4677010c Fix theme and add example (#3988) 2020-06-29 11:00:22 -07:00
Monica Kozbial
bd887665b8 Handle undefined colour (#3997) 2020-06-29 10:47:24 -07:00
Sam El-Husseini
9e7f3b07e9 Advanced compilation fixes (#3995)
* Advanced compilation fixes
2020-06-25 11:59:03 -07:00
Monica Kozbial
9d4b9884fe Fixing JSDoc syntax errors. (#3993) 2020-06-24 13:47:39 -07:00
alschmiedt
95986574cc Update Console Logs for Toolbox (#3986)
* Add check for toolbox categories

* Fix
2020-06-22 16:26:30 -07:00
Sam El-Husseini
9152c55c9f Fix multiline field not rendered in flyout (#3984) 2020-06-22 15:52:18 -07:00
Monica Kozbial
4ac4332f5e Update logic for field default values. (#3953)
* Update logic for field default values.

* Fix bugs

* Use contant for default value.

* Fix FieldColour

* Update field number tests.

* Update field angle test.

* Minor update.

* Update field checkbox test.

* Undo enabling logging

* Remove only.

* Update field colour test.

* Update invalid test cases for field colour

* Update field label tests

* Update field textinput test.

* Minor cleanup

* Make lint happy.
2020-06-12 15:18:28 -07:00
alschmiedt
4335bb6452 Add opt quiet to remove field (#3968)
* Add opt quiet to remove field
2020-06-12 14:18:28 -07:00
alschmiedt
9ec8305889 Update documentation (#3965) 2020-06-12 10:48:49 -07:00
Sam El-Husseini
c9563c1d24 Revert "Add programmatically setting shadows (#3902)"
This reverts commit 3aa1963be8.
2020-06-12 08:54:04 -07:00
alschmiedt
8585ef111c Remove @package (#3961) 2020-06-12 08:17:16 -07:00
alschmiedt
84e9802cdb Fix disposing of a workspace (#3960) 2020-06-11 14:14:18 -07:00
Sam El-Husseini
60ea4cc106 Merge branch 'master' into develop 2020-06-11 13:19:47 -07:00
Sam El-Husseini
6bcecc97db Merge pull request #3958 from samelhusseini/support_noflyout_workspace
No flyout mutator
2020-06-11 13:15:51 -07:00
alschmiedt
6811010caf Fix emitting workspace event (#3959) 2020-06-11 11:30:54 -07:00
alschmiedt
b2650e6cef Update availble connections when we have unplugged a block (#3954)
* Update availble connections when we have unplugged a block
2020-06-11 10:50:23 -07:00
alschmiedt
0272401dcb Emit workspace click event (#3956) 2020-06-11 10:21:55 -07:00
Sam El-Husseini
f1977fd5e3 No flyout mutator 2020-06-11 09:28:40 -07:00
alschmiedt
b1211f6dd2 Add a console warning for defining a toolbox using JSON (#3937) 2020-06-10 11:11:28 -07:00
alschmiedt
1349017c8a Check if a gesture is in progress before doing keyboard nav (#3950)
* Check if a gesture is in progress before doing keyboard nav
2020-06-10 10:28:02 -07:00
Monica Kozbial
8a2caf5c32 Distinguish between unset maxInstance and set to 0. (#3949) 2020-06-09 16:38:16 -07:00
alschmiedt
d91b5038c3 Revert not closing the flyout for a tree separator (#3944) 2020-06-09 10:27:06 -07:00
alschmiedt
14479fd7e2 Update Toolbox Interface (#3934)
* Update toolbox interface
2020-06-08 09:17:38 -07:00
Sam El-Husseini
717e342b82 Register themes (#3932)
* Add theme registry:

* Fix mocha tests
2020-06-05 09:23:00 -07:00
alschmiedt
b77a30450e Fix performance (#3931)
* Speed up performance for converting the xml to json
2020-06-05 09:22:52 -07:00
Sam El-Husseini
d6ad7c488b Add theme registry: 2020-06-04 17:56:56 -07:00
alschmiedt
26e84fef11 Add ability to add blocks by type (#3928)
* Add ability to add blocks by type
2020-06-04 12:49:04 -07:00
alschmiedt
4b0e202761 Add support for adding objects to the registry (#3927)
Support adding objects to the registry
2020-06-04 11:53:06 -07:00
alschmiedt
00df97a59d Add plugin options (#3922)
* Adds a plugin through options

* Fix requires

* Fix pr comments
2020-05-29 13:22:25 -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
alschmiedt
2b2ff909a9 Update interfaces (#3920) 2020-05-27 12:52:54 -07:00
alschmiedt
6bc60894db Toolbox interface (#3918)
* Add toolbox interface
2020-05-27 10:06:18 -07:00
Rachel Fenichel
2450a74101 Merge pull request #3915 from GermanBluefox/patch-4
Do not add COLLAPSED_WARNINGS_WARNING by deleting of warning
2020-05-26 14:13:48 -07:00
alschmiedt
61054ee55a Registry (#3914)
Create a global registry that fields, renderers and future objects can use
2020-05-26 11:21:42 -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
b84d25fe2d Strict types in input (#3912)
* Strict types in input.js
2020-05-21 17:57:13 -07:00
Sam El-Husseini
e3babee1f3 Add Blockly.utils.Metrics @record (#3913)
* Add Blockly.utils.Metrics
2020-05-21 15:03:17 -07:00
Beka Westberg
3aa1963be8 Add programmatically setting shadows (#3902)
* Add programmatically setting shadows
2020-05-21 11:44:08 -07: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
3f4faeab46 Cleanup types under components/ (#3910)
* Fix types under components

* Fix menu
2020-05-20 16:54:53 -07:00
Sam El-Husseini
6809f63555 Rename bounding box to bounded element (#3909) 2020-05-20 11:21:26 -07:00