Aaron Dodson
cf96aac58e
Migrate core/procedures.js to goog.module syntax ( #5265 )
...
* Migrate core/procedures.js to ES6 const/let
* Migrate core/procedures.js to goog.module
* Migrate core/procedures.js to named requires
* clang-format core/procedures.js
* Rename xml to utilsXml to disambiguate from Xml
2021-08-11 14:04:02 -07:00
Rachel Fenichel
b3f837a8d2
Replace references to constants with internalConstants
2021-07-21 15:33:55 -07:00
Neil Fraser
6a6c630f8c
Back out variable change.
2021-06-09 11:41:42 -07:00
Neil Fraser
76b5517008
Use null-prototype objects for maps
...
A {} has a bunch of names already defined on it (like ‘toString’). When using an object as a map with arbitrary keys, it should not inherit from Object.prototype.
2021-06-09 11:41:42 -07:00
Neil Fraser
e661c92a36
More JSDoc improvements
2021-05-27 21:30:26 -07:00
Neil Fraser
d919b0af21
Update JSDoc from Array.<> to Array<>
...
Same with Object.
2021-05-27 21:30:26 -07:00
Neil Fraser
4436e2814d
Use localeCompare’s case insensitivity option
...
Variables and procedures now sorted using local rules, not Unicode code points. Verified that ’sensitivity’ survives Closure compiler without quotes.
2021-05-19 09:57:14 -07:00
Beka Westberg
75319312c1
Revert "Move ProcedureBlock to interface"
...
This reverts commit 918bdc2359 .
2021-05-10 15:34:36 -07:00
Beka Westberg
8a00303aa7
Revert "Rename to IProcedureBlock"
...
This reverts commit c8a065fa13 .
2021-05-10 15:33:12 -07:00
Beka Westberg
c8a065fa13
Rename to IProcedureBlock
2021-05-08 07:57:38 -07:00
Beka Westberg
918bdc2359
Move ProcedureBlock to interface
2021-05-06 12:22:40 -07:00
Beka Westberg
43e95af14e
Fix getDefinition being too restrictive
2021-04-25 14:46:51 -07:00
Sam El-Husseini
63d26dc186
Add extra requires check ( #4677 )
...
* Add extra requires check
2021-03-05 09:50:51 -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
05ab37690e
Missing requiretypes, m through r
2021-02-17 14:39:15 -08:00
Monica Kozbial
29b96d8d35
Fix ui event checks ( #4512 )
2020-12-08 16:21:52 -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
Maribeth Bottorff
be50de6650
Procedure ( #3875 )
...
* Use getBlocksByType to speed up allProcedures generation
* Add tests for allProcedures
* Add error messages for some tests
2020-05-01 11:44:26 -07:00
Maribeth Bottorff
ba682040b1
Procedures.allProcedures only searches top blocks because procedures can only be top-level blocks. ( #3854 )
2020-04-22 14:51:24 -07: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
Beka Westberg
6d1bb201f7
feat: Improved procedure arg interaction. ( #3527 )
...
* feat: Improved procedure arg interaction.
* Added docs.
* Fixed typos and typings.
* Fixed typings?
* Changed visibility to private.
2020-01-07 13:55:46 -08:00
Neil Fraser
123f436e04
Add parens around inline assignments ( #3381 )
2019-10-31 15:17:35 -07:00
Sam El-Husseini
730dee7aca
Fix warnings in procedures. ( #3304 )
2019-10-23 17:51:24 -04:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Rachel Fenichel
e523943ee9
Merge pull request #2615 from BeksOmega/fixes/Procedures
...
Fixed Procedure Empty Names & Procedure Parameters
2019-07-23 11:21:22 -07:00
Neil Fraser
74be35e23d
Rename Blockly.Xml.utils to Blockly.utils.xml
2019-07-08 13:29:43 -07:00
Beka Westberg
7b02728ff2
Cleaned up unamed handling w/ safename.
2019-07-08 10:48:42 -07:00
Beka Westberg
87fbe0447b
Fixed procedures not handling empty names. Renenabled/fixed tests.
2019-07-08 09:23:16 -07:00
alschmiedt
c45be91f7a
Fixes spacing problem in procedure name
2019-07-03 11:40:55 -07:00
Neil Fraser
aca1a43ec8
Fix regular expressions.
...
1) Simplifications.
2) Enable toolbox category colours to be specified using the full range of CSS formats (not just hue or #rrggbb).
3) Fix bug where `Blockly.utils.checkMessageReferences('%{BKY_today} %{BKY_xxx}')` returns true.
2019-06-10 11:03:22 -07:00
Beka Westberg
73ff710a4d
Added getSourceBlock function to field. ( #2508 )
2019-05-29 12:50:00 -07:00
Neil Fraser
9f528922a7
Fix some dependencies
2019-05-24 15:45:05 -07:00
Neil Fraser
dddb94aedd
Fix circular dependency.
2018-10-16 11:34:10 -07:00
Neil Fraser
e62bb1af73
Remove all calls to goog.dom.createDom
...
All XML node cereations are now centralized.
2018-10-16 11:34:10 -07:00
Rachel Fenichel
6092e4c517
Calls to getAllBlocks should pass a value for _ordered_
2018-09-13 16:06:19 -07:00
Neil Fraser
0583bee502
Correct requires for goog.dom
2018-07-11 12:20:02 -07:00
Neil Fraser
4cb4b42f8d
Use named properties on Msg.
2018-04-27 11:50:51 -07:00
Rachel Fenichel
4c9b602523
Move event classes into separate files, and update requires accordingly
2018-02-27 17:47:33 -08:00
Neil Fraser
10dbf2cc6d
Random typos.
...
@rachel-fenichel LGTMs in person.
2018-02-21 17:47:01 -08:00
marisaleung
234c53157f
Fix Blockly.Procedures.isNameUsed return values.
...
Add tests for Procedures.isNameUsed() so this bug never happens again.
2017-07-28 12:02:14 -07:00
marisaleung
733d869f8e
Add VariableType checks.
2017-07-20 16:47:37 -07:00
Tom
c85106a920
Typo in a deprecated variable's value ( #1228 )
...
Misspelled variable name, should be Blockly.PROCEDURE_CATEGORY_NAME.
2017-07-18 11:23:29 -07:00
marisaleung
aff9c4867c
Correctly named block events called.
2017-06-08 15:44:43 -07:00
Rachel Fenichel
507c13ed33
Fix #1069 ( #1073 )
2017-05-02 17:06:03 -07:00
Rachel Fenichel
4152542c2f
Fix some lint errors
2017-02-03 14:01:18 -08:00
Andrew n marshall
e95991cba8
Adding @namespace annotations for JSDoc. ( #900 )
2017-02-01 09:10:35 -08:00
Rachel Fenichel
4872a6ad7f
Enable custom flyout categories.
2017-01-23 17:21:48 -08:00
Rachel Fenichel
158df44a94
Init procedure blocks with empty name, and set default name in xml in Blockly.Procedures.flyoutCategory
2017-01-03 18:41:28 -08:00
picklesrus
d215314ffd
Revert "Convert createDom calls to createUntypedDom"
2016-07-20 15:21:45 -07:00
Rodrigo Queiro
d9a3569706
Convert createDom calls to createUntypedDom ( #481 )
...
Unless they could be converted to use goog.dom.TagName, in which case do
that. createDom is going to require goog.dom.TagName member as the
tagName parameter. This change prepares for that.
2016-07-18 07:18:17 -07:00