Commit Graph

2658 Commits

Author SHA1 Message Date
Monica Kozbial
981dc09d85 Update access level of methods in FieldTextInput (#4359) 2020-10-13 10:55:56 -07:00
Sam El-Husseini
fba35d342c Add missing require Blockly.constants (#4366) 2020-10-12 17:56:42 -04:00
michellammertink
b27231c0e3 Add Blockly.constants dependency to utils/toolbox.js (#4360) 2020-10-12 11:53:49 -07:00
alschmiedt
ae4f894233 Make private methods protected (#4365) 2020-10-12 11:20:28 -07:00
Halit Anil Donmez
c913c027c5 select text on comment open (#4349) 2020-10-12 11:15:45 -07:00
Halit Anil Donmez
a131794ef0 add deprecation warning (#4356)
* add deprecation warning

* fix indent and update deprecation date
2020-10-07 13:16:27 -07:00
Halit Anil Donmez
9bafa7e40d do value update if the value is valid again (#4351)
* do value update if the value is valid again

* update the logic at set value

* fix tests

* update logging
2020-10-07 11:05:02 -07:00
alschmiedt
a0c0b86679 Fix toolbox types (#4355) 2020-10-07 11:04:10 -07:00
Maribeth Bottorff
ba9ea757b6 Change weights of default context menu items to support easier sorting (#4344) 2020-10-02 10:34:20 -07:00
alschmiedt
64fe425944 Fix toolbox resize problem (#4340) 2020-09-30 12:55:27 -07:00
alschmiedt
e9f46aea28 Fix adding an icon in xml definition (#4336) 2020-09-29 18:04:41 -07:00
Rachel Fenichel
3bf8a38020 Delete some deprecated functions 2020-09-28 13:09:19 -07:00
alschmiedt
3d698f4bcc Block factory fix (#4327) 2020-09-28 10:42:45 -07:00
alschmiedt
b01faa09e0 Fix typo (#4324) 2020-09-25 13:52:35 -07:00
Maribeth Bottorff
4ea112fcd3 Don't undo the change events from disableOrphans (#4304) 2020-09-25 11:46:29 -07:00
alschmiedt
bdfdb2ece5 Fix jsdoc errors and warnings (#4309) 2020-09-23 13:26:58 -07:00
alschmiedt
3969f3129f Fix bug in trashcan (#4306) 2020-09-22 16:35:22 -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
c6bea7c51b Call initsvg after loading field. (#4296) 2020-09-21 10:06:43 -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
alschmiedt
2523da5332 Fixes blocks flying when mutator is open (#4289) 2020-09-17 16:45:24 -07:00
alschmiedt
16980cd303 Fixes problem with dropdown scroll (#4287) 2020-09-17 11:57:24 -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
Maribeth Bottorff
f6688d0339 Convert toolbox position to enum (#4284)
Convert toolbox position to enum
2020-09-16 10:54:17 -07:00
alschmiedt
22d598484f Update blockToDom types to include document fragments (#4280) 2020-09-16 10:51:09 -07:00
Sam El-Husseini
d70d896a9f Fix field registry typings (#4281)
* Fix field registry types
2020-09-16 09:10:41 -07:00
Maribeth Bottorff
6017a953d1 Fix bugs related to events firing during block create (#4278)
Fix bugs related to events firing during block create and add test for expected block init behavior
2020-09-15 20:02:07 -07:00
Beka Westberg
315f135109 Fix mutators without flyouts (#4272) 2020-09-11 09:28:49 -07:00
alschmiedt
897296dce8 Adds check for isTextInput (#4262)
Necessary for developers using custom elements
2020-09-10 09:07:46 -07:00
Beka Westberg
47cc3b97b0 Add getTooltip (#4254)
* Add getTooltip

* Add tests

* Fix typings?

* Fix typings?

* PR Comments
2020-09-10 08:57:05 -07:00
Beka Westberg
c732484180 Add programmatically setting shadows Take 2 (#4215)
* Add programmatically setting shadows
2020-09-08 08:50:01 -07:00
alschmiedt
d01169fa79 Toolbox Rewrite (#4223)
Rewrite the toolbox in order to get rid of old closure code and make it easier to extend.

Co-authored-by: Maribeth Bottorff <maribethb@google.com>
2020-09-02 08:13:07 -07:00
Beka Westberg
af9be6d9c3 Update some inline docs in block.js (#4241)
* Update some inline docs in block.js

* Fix build error
2020-09-01 10:27:17 -07:00
Monica Kozbial
739b8b3adc Viewport change event (#4180)
* Adding viewport ui event emitting and tests

* comment out viewport ui event logic and add TODO for reference
2020-08-31 18:41:20 -07:00
Maribeth Bottorff
c13880d4d0 Use camel case for registry types (#4199) 2020-08-20 09:21:45 -07:00
Beka Westberg
2e2a5c230e Fix lastMarker_ disposal (#4184) 2020-08-19 13:21:44 -07:00
Sam El-Husseini
af571e27df Call apply colour when inserting a field to a block that has already been renderered (#4183) 2020-08-17 14:08:03 -07:00
Monica Kozbial
a89ff37bd8 Add checks to WorkspaceSvg dispose and fix shared Workspace tests (#4170)
* Fix workspace tests and add add checks for WorkspaceSvg dispose

* Move flyout test to WorkspaceSvg
2020-08-17 10:32:55 -07:00
Monica Kozbial
0a36117885 Replace console "WARNING" log calls with warn call (#4171) 2020-08-13 10:53:04 -07:00
Beka Westberg
111b47980d Fix toolbox sizes not being updated properly (#4139)
* Fix toolbox changing size

* Fix flyout changing size

* Fix mutator bumping blocks

* Fix accessing .flyout_
2020-08-13 08:19:40 -07:00
Monica Kozbial
f8f98831af Add zoom controls tests. (#4159) 2020-08-12 18:39:35 -07:00
Rachel Fenichel
0951b5e613 Update eslintrc for eslint v7, and resolve new lint errors 2020-08-10 15:10:48 -07:00
Maribeth Bottorff
9568d3f2cc Add tests for contextmenu_items (#4118)
Add tests for context menu items
2020-08-10 11:46:10 -07:00
mfallihee
254fb60481 Use toLocaleString to count decimal places consistently (#4124) 2020-08-10 10:47:14 -07:00
Monica Kozbial
12b5658109 Rename trashcan api calls for open/close lid. (#4110)
* Rename trashcan api calls for open/close lid.

* Update comments.
2020-08-05 12:25:35 -07:00
Rachel Fenichel
4368f97f85 Merge pull request #4079 from rachel-fenichel/deprecation_warnings
Deprecation warnings
2020-08-05 10:24:09 -07:00
Rachel Fenichel
f27354d8ab PR comments 2020-08-05 10:09:18 -07:00
seldomU
ade149d77c flyout button stores all the deserialized properties (#4107)
The properties can be useful for callbacks, see https://github.com/google/blockly/issues/4027#issuecomment-656325534
2020-08-05 07:54:19 -07:00