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
Gabriel Fleury
e29d7abfdb
fix!: Rename editing CSS class to blocklyEditing ( #8287 ) ( #8301 )
...
* chore!: Rename editing CSS class to blocklyEditing (#8287 )
* further changes
2024-07-22 15:38:40 -07:00
Gabriel Fleury
348313a1b6
feat: Add a blocklyCollapsed CSS class to collapsed blocks' root SVG ( #8264 ) ( #8308 )
...
* feat: Add a blocklyCollapsed CSS class to collapsed blocks' root SVG (#8264 )
* format
2024-07-22 15:14:45 -07:00
Gabriel Fleury
58abf6ef89
fix: Remove references to getFastTextWidth ( #8277 ) ( #8307 )
...
* feat: Remove references to getFastTextWidth (#8277 )
* format
2024-07-22 15:14:17 -07:00
Aaron Dodson
26e6d80e15
refactor: clean up VariableModel. ( #8416 )
2024-07-22 10:51:56 -07:00
Aaron Dodson
21c0a7d999
refactor!: Use IVariableMap instead of VariableMap ( #8401 )
...
* refactor: use IVariableMap in place of VariableMap.
* refactor!: move variable deletion prompting out of VariableMap.
* chore: Remove unused imports.
2024-07-22 09:17:40 -07:00
Aaron Dodson
294ef74d1b
refactor: Use IVariableModel instead of VariableModel. ( #8400 )
...
* refactor: Use IVariableModel methods instead of directly accessing properties.
* refactor: replace references to VariableModel with IVariableModel.
2024-07-19 14:58:04 -07:00
Aaron Dodson
02e64bebbe
refactor: make VariableMap implement IVariableMap. ( #8395 )
...
* refactor: make VariableMap implement IVariableMap.
* chore: remove unused arrayUtils import.
* chore: fix comment on variable map backing store.
* chore: Added JSDoc to new VariableMap methods.
* chore: Improve test descriptions.
2024-07-19 10:53:16 -07:00
Beka Westberg
107403bc0f
Merge pull request #8394 from google/develop
...
chore: develop into V12 to pin node version
2024-07-18 18:46:10 +00:00
Aaron Dodson
32f8e24337
refactor: update the variable interfaces. ( #8388 )
2024-07-18 11:01:22 -07:00
Beka Westberg
9fa4b2c966
chore: fix package-lock
2024-07-18 17:22:25 +00:00
Christopher Allen
1e3d3fde1c
chore: Pin node.js v22 to v22.4.1 in CI ( #8393 )
...
This should work around nodejs/node#53902 / npm/cli#7657 et al.
2024-07-18 17:12:57 +01:00
Suryansh Shakya
0a1524f577
feat: added blocklyToolboxFlyout CSS class to the flyout ( #8386 )
2024-07-17 10:45:11 -07:00