Aaron Dodson
af5905a3e6
refactor!: Add setSelectedItem() to IToolbox. ( #8650 )
2024-11-12 11:45:20 -08:00
Aaron Dodson
ae2a140141
refactor!: Use one map for toolbox contents. ( #8654 )
2024-11-12 09:52:23 -08:00
Aaron Dodson
7bbbb959f0
feat!: Use CSS to specify field cursors. ( #8648 )
2024-11-11 07:54:17 -08:00
Aaron Dodson
8f2228658e
feat: Allow customizing GRID_UNIT for the Zelos renderer. ( #8636 )
2024-11-07 12:16:55 -08:00
Aaron Dodson
d804c1a3c4
refactor!: Improve ability to use CSS to style Blockly. ( #8647 )
...
* refactor!: Rename blocklyTreeIconClosed to blocklyToolboxCategoryIconClosed.
* refactor!: Rename blocklyTreeLabel to blocklyToolboxCategoryLabel
* refactor!: Rename blocklyToolboxDiv to blocklyToolbox.
* refactor: remove unreferenced CSS classes.
* refactor!: Remove the blocklyArrowTop and blocklyArrowBottom classes.
* feat: Add a blocklyTextInputField class to text fields.
2024-11-07 12:16:17 -08:00
Aaron Dodson
2523093cc9
refactor!: Remove the InsertionMarkerManager. ( #8649 )
...
* refactor!: Remove the InsertionMarkerManager.
* chore: Remove unused imports.
* chore: Remove import of insertion marker manager test.
2024-11-07 12:15:55 -08:00
Aaron Dodson
631190c5cb
chore: Remove unneeded handling for @suppress and @alias. ( #8633 )
2024-10-31 12:02:11 -07:00
Aaron Dodson
e4eb9751cb
fix: improve typings and export additional types ( #8631 )
2024-10-31 11:31:53 -07:00
Aaron Dodson
089179bb01
fix: Fix exception when disposing of a workspace with a variable block obscuring a shadow block. ( #8619 )
2024-10-15 13:45:39 -07:00
Aaron Dodson
aeb1a80672
feat: Allow specifying the default size of comments. ( #8618 )
2024-10-14 08:20:34 -07:00
Aaron Dodson
edd02f6955
fix: Take the flyout into account when positioning the workspace after a toolbox change. ( #8617 )
...
* fix: Take the flyout into account when positioning the workspace after a toolbox change.
* fix: Accomodate top-positioned toolboxes.
2024-10-14 08:19:49 -07:00
Aaron Dodson
9fc693140a
fix: Correctly calculate the bounds of hat blocks. ( #8616 )
2024-10-14 08:19:27 -07:00
Aaron Dodson
2dfd8c30ad
feat: Allow specifying the placeholder text of workspace comments. ( #8608 )
2024-10-02 10:32:44 -07:00
Aaron Dodson
14c9b1abcb
chore: remove obsolete comment. ( #8606 )
2024-10-02 09:52:16 -07:00
Aaron Dodson
e777086f16
refactor!: Update flyouts to use inflaters. ( #8601 )
...
* refactor: Update flyouts to use inflaters.
* fix: Specify an axis when creating flyout separators.
* chore: Remove unused import.
* chore: Fix tests.
* chore: Update documentation.
* chore: Improve code readability.
* refactor: Use null instead of undefined.
2024-10-02 09:20:45 -07:00
Aaron Dodson
e5c1a89cdf
fix: Fix bug that caused fields in the flyout to use the main workspace's scale. ( #8607 )
...
* fix: Fix bug that caused fields in the flyout to use the main workspace's scale.
* chore: remove errant param in docs.
2024-10-02 08:18:47 -07:00
Aaron Dodson
a4b522781c
fix: Fix bug that prevented dismissing the widgetdiv in a mutator workspace. ( #8600 )
...
* fix: Fix bug that prevented dismissing the widgetdiv in a mutator workspace.
* fix: Check if the correct workspace is null.
* fix: Remove errant this.
2024-10-02 08:18:21 -07:00
Aaron Dodson
ec5b6e7f71
feat: Add a BlockFlyoutInflater class. ( #8591 )
...
* feat: Add a BlockFlyoutInflater class.
* fix: Fix the capacity filter callback argument name.
* fix: Fix addBlockListeners comment.
* chore: Add license.
* chore: Add TSDoc.
* refactor: Make capacity filtering a normal method.
* fix: Bind flyout filter to `this`.
2024-09-27 14:12:59 -07:00
Aaron Dodson
bdc43bd0f7
feat: Add support for inflating flyout separators. ( #8592 )
...
* feat: Add support for inflating flyout separators.
* chore: Add license.
* chore: Add TSDoc.
* refactor: Allow specifying an axis for flyout separators.
2024-09-27 13:23:56 -07:00
Aaron Dodson
489aded31d
feat: Add inflaters for flyout labels and buttons. ( #8593 )
...
* feat: Add inflaters for flyout labels and buttons.
* chore: Temporarily re-add createDom().
* chore: fix JSDoc.
* chore: Add license.
* chore: Add TSDoc.
2024-09-27 13:22:36 -07:00
Aaron Dodson
6ec1bc5ba5
feat: Add the IFlyoutInflater interface. ( #8581 )
...
* feat: Add the IFlyoutInflater interface.
* fix: Add a return type for IFlyoutInflater.disposeElement().
* refactor: Add the gapForElement method.
2024-09-25 10:23:25 -07:00
Aaron Dodson
c79610cea6
refactor: remove redundant flyout positioning. ( #8573 )
...
* refactor: remove redundant flyout positioning.
* fix: handle the case where there is a flyout without a toolbox
2024-09-18 11:58:39 -07:00
Aaron Dodson
476d454c05
fix: include potential variables in variable dropdowns in the flyout ( #8574 )
2024-09-16 09:14:56 -07:00
Aaron Dodson
732bd7f616
fix: size text with computed styles even when hidden ( #8572 )
...
* fix: size text with computed styles even when hidden
* refactor: remove unneeded try/catch.
2024-09-13 09:58:57 -07:00
Aaron Dodson
def80b3f31
fix: improve flyout performance ( #8571 )
...
* fix: improve flyout performance
* refactor: don't call position() in show()
The later call to reflow() itself winds up calling position(), so this calculation is redundant.
2024-09-11 12:37:32 -07:00
Aaron Dodson
cb1c055bff
refactor: use getters for flyout width and height. ( #8564 )
2024-09-03 13:25:18 -07:00
Aaron Dodson
ba0762348d
fix: display the correct variable reference count when deleting a variable. ( #8549 )
2024-08-21 13:57:32 -07:00
Arun Chandran
d6125d4fb9
fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover ( #8536 )
...
* fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover
* fix: Remove setHighlighted method in menuitem
* fix: Remove blocklymenuitemhighlight css class
2024-08-21 09:01:07 -07:00
Aaron Dodson
14d119b204
fix: improve prompting when deleting variables ( #8529 )
...
* fix: improve variable deletion behaviors.
* fix: don't prompt about deletion of only 1 variable block when triggered programmatically.
* fix: include the triggering block in the count of referencing blocks
* fix: only count the triggering block as a referencing block if it's not in the flyout
2024-08-19 15:47:00 -07:00
Shreshtha Sharma
64fd9ad89a
feat: added blocklyHighlighted CSS class to highlighted block's root… ( #8407 )
...
* fix: added 'blocklyHighlighted' CSS class to highlighted block's root svg
* fix: added 'blocklyHighlighted' CSS class to highlighted block's root svg
* fix: added 'blocklyHighlighted' CSS class to highlighted block's root svg
* fix: added 'blocklyHighlighted' CSS class to highlighted block's root svg
* fix: added 'blocklyHighlighted' CSS class to highlighted block's root svg
2024-08-14 09:06:27 -07:00
Jeremiah Saunders
731fb40faa
feat: implement WorkspaceSvg class manipulation ( #8473 )
...
* Implement addClass and removeClass functions
* feat: implement `WorkspaceSvg` class manipulation
* Update core/workspace_svg.ts
* Update core/workspace_svg.ts
2024-08-13 11:14:05 -07:00
Adityajaiswal03
59fab944f4
feat: change blocklyEditableText to blocklyEditableField and blocklyNonEditableText to blocklyNonEditableField BREAKING CHANGE: The blocklyEditableText and blocklyNonEditableText identifiers have been renamed to blocklyEditableField and blocklyNonEditableField respectively. This change may require updates to any existing code that references the old identifiers. ( #8475 )
2024-08-12 13:10:38 -07:00
aishwaryavenkatesan
68dda11623
fix!: deleted styles without associated classes from css.ts, issue #8285 ( #8465 )
2024-08-07 09:07:34 -07:00
Shreshtha Sharma
9374c028d4
feat: added block's style as a CSS class to block's root SVG ( #8436 )
...
* fix: added block's style as a CSS class to block's root SVG
* fix: added block's style as a CSS class to block's root SVG
* fix: added block's style as a CSS class to block's root SVG
2024-08-06 09:35:35 -07:00
omwagh28
f10c3b0ee8
fix!: Renamed the blocklyTreeSelected CSS class to blocklyToolboxSelected https://github.com/google/blockly/issues/8351 ( #8459 )
2024-08-06 09:26:05 -07:00
Aaron Dodson
6887940e22
feat: add a method for subclasses of FieldVariable to get the default type. ( #8453 )
2024-08-02 10:57:15 -07:00
Aayush Khopade
8a1b01568e
feat: Add a blocklyNumberField CSS class to number fields ( #8414 )
...
* feat: Add a blocklyNumberField CSS class to number fields https://github.com/google/blockly/issues/8313
* feat: add 'blocklyNumberField' CSS class to FieldNumber Fixes https://github.com/google/blockly/issues/8313
2024-07-31 15:34:14 -07:00
UtkershBasnet
17db6039b5
fix!: Rename blocklyTreeIconOpen to blocklyToolboxCategoryIconOpen ( #8440 )
2024-07-31 15:33:25 -07:00
surajguduru
6393ab39ce
feat: add blocklyLabelField CSS class to label fields ( #8423 )
2024-07-30 18:26:17 -07:00
Tejas Ghatule
203e422977
feat: add the block's type as a CSS class to the block's root SVG ( #8428 )
...
* feat: Added the block's type as a CSS class to the block's root SVG https://github.com/google/blockly/issues/8268
* fix: Added the block type as a CSS class to the blocks root SVG https://github.com/google/blockly/issues/8268
2024-07-30 18:12:48 -07:00
Shreshtha Sharma
9c88970d46
feat: added blocklyNotDetetable class to block_svg ( #8406 )
...
* feat: added blocklynotdetetable class to block_svg
* feat: added blocklynotdetetable class to block_svg
2024-07-31 00:50:38 +01:00
dakshkanaujia
dc1f276759
fix!: Redundant blockly non selectable #8328 ( #8433 )
...
* Remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes
* Removed .gitpod file
* fix: remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes https://github.com/google/blockly/issues/8328
* fix: remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes #8328
* fix: remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes #8328
* fix: remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes #8328
* fix: remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes #8328
* fix: remove redundant blocklyNonSelectable class and integrate non-selectability into existing classes
2024-07-30 08:24:15 -07:00
Bhargav
4b95cb77af
feat: Added blocklyImageField CSS class to image fields https://github.com/google/blockly/issues/8314 ( #8439 )
2024-07-29 19:31:37 -07:00
Aaron Dodson
82c7aad4e7
feat: Add a VarTypeChange event. ( #8402 )
...
* feat: Add a VarTypeChange event.
* chore: Update copyright date.
* refactor: Inline fields in the constructor.
2024-07-29 12:00:52 -07:00
Skye
af0a724b3e
fix: use :focus pseudo class instead of blocklyFocused ( #8360 )
...
* bug: removed blocklyFocused from menu.ts and dropdown.ts, changed css style to :focus
* removed blocklyFocused from menu.ts
* resubmit
* core css removed blocklyFocused
* fix core css
* menu file import cleanup, linting error
2024-07-26 18:16:22 -07:00
Aaron Dodson
5d825f0a60
chore: Removed @internal annotation from public Field methods. ( #8426 )
...
* chore: Removed @internal annotation from public Field methods.
* chore: make forceRerender non-internal.
2024-07-25 10:07:48 -07:00
dianaprahoveanu23
2619fb803c
feat: Add a blocklyNotEditable CSS class to the block's root SVG ( #8391 )
...
* feat: added blockyNotEditable CSS class to the block's root SVG
* Run linter to fix code style issues
2024-07-23 08:33:59 -07:00
Aaron Dodson
91892ac303
refactor: deprecate and clean up variable-related methods. ( #8415 )
...
* refactor: deprecate and clean up variable-related methods.
* chore: Add deprecation JSDoc.
2024-07-22 17:13:20 -07:00
Shreyans Pathak
fb82c9c9bb
feat: add blocklyMiniWorkspaceBubble css class ( #8390 )
2024-07-22 16:09:10 -07:00
Chaitanya Yeole
76eebc2f24
feat: Add a blocklyBlock CSS class to the block's root SVG ( #8397 )
2024-07-22 16:05:19 -07:00