blockly 12.0.0-beta.7 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blockly.min.js +8 -7
- package/blockly_compressed.js +2 -2
- package/blockly_compressed.js.map +1 -1
- package/msg/ab.js +6 -5
- package/msg/ace.js +6 -5
- package/msg/af.js +6 -5
- package/msg/am.js +6 -5
- package/msg/ar.js +9 -8
- package/msg/ast.js +6 -5
- package/msg/az.js +9 -8
- package/msg/ba.js +6 -5
- package/msg/bcc.js +6 -5
- package/msg/be-tarask.js +12 -11
- package/msg/be.js +7 -6
- package/msg/bg.js +9 -8
- package/msg/bn.js +6 -5
- package/msg/br.js +6 -5
- package/msg/bs.js +6 -5
- package/msg/ca.js +6 -5
- package/msg/cdo.js +6 -5
- package/msg/ce.js +28 -27
- package/msg/cs.js +7 -6
- package/msg/da.js +6 -5
- package/msg/de.js +8 -7
- package/msg/diq.js +13 -12
- package/msg/dtp.js +6 -5
- package/msg/dty.js +6 -5
- package/msg/ee.js +6 -5
- package/msg/el.js +6 -5
- package/msg/en-gb.js +6 -5
- package/msg/en.js +6 -5
- package/msg/eo.js +6 -5
- package/msg/es.js +7 -6
- package/msg/et.js +14 -13
- package/msg/eu.js +6 -5
- package/msg/fa.js +6 -5
- package/msg/fi.js +6 -5
- package/msg/fo.js +6 -5
- package/msg/fr.js +8 -7
- package/msg/frr.js +6 -5
- package/msg/gl.js +6 -5
- package/msg/gn.js +6 -5
- package/msg/gor.js +6 -5
- package/msg/ha.js +6 -5
- package/msg/hak.js +6 -5
- package/msg/he.js +8 -7
- package/msg/hi.js +6 -5
- package/msg/hr.js +15 -14
- package/msg/hrx.js +6 -5
- package/msg/hsb.js +6 -5
- package/msg/hu.js +6 -5
- package/msg/hy.js +6 -5
- package/msg/ia.js +8 -7
- package/msg/id.js +9 -8
- package/msg/ig.js +6 -5
- package/msg/inh.js +6 -5
- package/msg/is.js +6 -5
- package/msg/it.js +6 -5
- package/msg/ja.js +7 -6
- package/msg/ka.js +6 -5
- package/msg/kab.js +6 -5
- package/msg/kbd-cyrl.js +6 -5
- package/msg/km.js +6 -5
- package/msg/kn.js +6 -5
- package/msg/ko.js +21 -20
- package/msg/ksh.js +6 -5
- package/msg/ku-latn.js +6 -5
- package/msg/ky.js +6 -5
- package/msg/la.js +6 -5
- package/msg/lb.js +7 -6
- package/msg/lki.js +6 -5
- package/msg/lo.js +6 -5
- package/msg/lrc.js +6 -5
- package/msg/lt.js +6 -5
- package/msg/lv.js +6 -5
- package/msg/mg.js +6 -5
- package/msg/mk.js +6 -5
- package/msg/ml.js +6 -5
- package/msg/mnw.js +6 -5
- package/msg/ms.js +6 -5
- package/msg/my.js +6 -5
- package/msg/mzn.js +6 -5
- package/msg/nb.js +7 -6
- package/msg/ne.js +6 -5
- package/msg/nl.js +8 -7
- package/msg/oc.js +6 -5
- package/msg/olo.js +6 -5
- package/msg/pa.js +16 -15
- package/msg/pl.js +7 -6
- package/msg/pms.js +7 -6
- package/msg/ps.js +6 -5
- package/msg/pt-br.js +8 -7
- package/msg/pt.js +7 -6
- package/msg/ro.js +6 -5
- package/msg/ru.js +6 -5
- package/msg/sc.js +6 -5
- package/msg/sco.js +6 -5
- package/msg/sd.js +7 -6
- package/msg/shn.js +6 -5
- package/msg/si.js +6 -5
- package/msg/sk.js +12 -11
- package/msg/skr-arab.js +6 -5
- package/msg/sl.js +6 -5
- package/msg/smn.js +6 -5
- package/msg/sq.js +6 -5
- package/msg/sr-latn.js +6 -5
- package/msg/sr.js +6 -5
- package/msg/sv.js +10 -9
- package/msg/sw.js +6 -5
- package/msg/ta.js +6 -5
- package/msg/tcy.js +8 -7
- package/msg/tdd.js +6 -5
- package/msg/te.js +6 -5
- package/msg/th.js +6 -5
- package/msg/ti.js +6 -5
- package/msg/tl.js +38 -37
- package/msg/tlh.js +6 -5
- package/msg/tr.js +7 -6
- package/msg/ug-arab.js +53 -52
- package/msg/uk.js +6 -5
- package/msg/ur.js +6 -5
- package/msg/uz.js +6 -5
- package/msg/vi.js +6 -5
- package/msg/xmf.js +9 -8
- package/msg/yo.js +6 -5
- package/msg/zgh.js +9 -8
- package/msg/zh-hans.js +9 -8
- package/msg/zh-hant.js +6 -5
- package/package.json +1 -1
package/blockly.min.js
CHANGED
|
@@ -1052,7 +1052,7 @@ void 0:null==(d=c.getParentInput())?void 0:d.connection)?e:a}getNextSibling(a){i
|
|
|
1052
1052
|
a?d:(a=b.workspace.getTopBlocks(!0),b=a.indexOf(b.getRootBlock())+1,b>=a.length&&(b=0),b=a[b],null!=(c=this.getParentConnection(b))?c:b)):a.getSourceBlock()}getPreviousSibling(a){if(a.getParentInput()){var b=a.getParentInput(),c=null==b?void 0:b.getSourceBlock();if(!c||!b)return null;for(a=c.inputList.indexOf(b);0<=a;a--){var d=c.inputList[a];if(d.connection&&d!==b)return d.connection;d=d.fieldRow;if(d.length)return d[d.length-1]}}else{if(a.type===ConnectionType$$module$build$src$core$connection_type.PREVIOUS_STATEMENT||
|
|
1053
1053
|
a.type===ConnectionType$$module$build$src$core$connection_type.OUTPUT_VALUE)return d=a.targetConnection&&!a.targetConnection.getParentInput()?a.targetConnection:null,c=a.getSourceBlock(),d||this.getParentConnection(c.getRootBlock())!==a?d:(a=c.workspace.getTopBlocks(!0),c=a.indexOf(c.getRootBlock())-1,0>c&&(c=a.length-1),c=a[c],null!=(b=c.lastConnectionInStack(!1))?b:c);if(a.type===ConnectionType$$module$build$src$core$connection_type.NEXT_STATEMENT)return a.getSourceBlock()}return null}getParentConnection(a){let b;
|
|
1054
1054
|
return!a.outputConnection||(null==(b=a.previousConnection)?0:b.isConnected())?a.previousConnection:a.outputConnection}isNavigable(a){return a.canBeFocused()}isApplicable(a){return a instanceof RenderedConnection$$module$build$src$core$rendered_connection}},module$build$src$core$keyboard_nav$connection_navigation_policy={};module$build$src$core$keyboard_nav$connection_navigation_policy.ConnectionNavigationPolicy=ConnectionNavigationPolicy$$module$build$src$core$keyboard_nav$connection_navigation_policy;var FieldNavigationPolicy$$module$build$src$core$keyboard_nav$field_navigation_policy=class{getFirstChild(a){return null}getParent(a){return a.getSourceBlock()}getNextSibling(a){var b=a.getParentInput();const c=a.getSourceBlock();if(!c)return null;var d=c.inputList.indexOf(b);for(a=b.fieldRow.indexOf(a)+1;d<c.inputList.length;d++){b=c.inputList[d];const e=b.fieldRow;if(a<e.length)return e[a];a=0;let f;if(null==(f=b.connection)?0:f.targetBlock())return b.connection.targetBlock()}return null}getPreviousSibling(a){const b=
|
|
1055
|
-
a.getParentInput(),c=a.getSourceBlock();if(!c)return null;var d=c.inputList.indexOf(b);for(a=b.fieldRow.indexOf(a)-1;0<=d;d--){var e=c.inputList[d];let f;if((null==(f=e.connection)?0:f.targetBlock())&&e!==b)return e.connection.targetBlock();e=e.fieldRow;if(-1<a)return e[a];0<=d-1&&(a=c.inputList[d-1].fieldRow.length-1)}return null}isNavigable(a){let b;return a.canBeFocused()&&a.isClickable()
|
|
1055
|
+
a.getParentInput(),c=a.getSourceBlock();if(!c)return null;var d=c.inputList.indexOf(b);for(a=b.fieldRow.indexOf(a)-1;0<=d;d--){var e=c.inputList[d];let f;if((null==(f=e.connection)?0:f.targetBlock())&&e!==b)return e.connection.targetBlock();e=e.fieldRow;if(-1<a)return e[a];0<=d-1&&(a=c.inputList[d-1].fieldRow.length-1)}return null}isNavigable(a){let b;return a.canBeFocused()&&(a.isClickable()||a.isCurrentlyEditable())&&!((null==(b=a.getSourceBlock())?0:b.isSimpleReporter())&&a.isFullBlockField())&&
|
|
1056
1056
|
a.getParentInput().isVisible()}isApplicable(a){return a instanceof Field$$module$build$src$core$field}},module$build$src$core$keyboard_nav$field_navigation_policy={};module$build$src$core$keyboard_nav$field_navigation_policy.FieldNavigationPolicy=FieldNavigationPolicy$$module$build$src$core$keyboard_nav$field_navigation_policy;var WorkspaceNavigationPolicy$$module$build$src$core$keyboard_nav$workspace_navigation_policy=class{getFirstChild(a){a=a.getTopBlocks(!0);return a.length?a[0]:null}getParent(a){return null}getNextSibling(a){return null}getPreviousSibling(a){return null}isNavigable(a){return a.canBeFocused()}isApplicable(a){return a instanceof WorkspaceSvg$$module$build$src$core$workspace_svg}},module$build$src$core$keyboard_nav$workspace_navigation_policy={};
|
|
1057
1057
|
module$build$src$core$keyboard_nav$workspace_navigation_policy.WorkspaceNavigationPolicy=WorkspaceNavigationPolicy$$module$build$src$core$keyboard_nav$workspace_navigation_policy;var Navigator$$module$build$src$core$navigator=class{constructor(){this.rules=[new BlockNavigationPolicy$$module$build$src$core$keyboard_nav$block_navigation_policy,new FieldNavigationPolicy$$module$build$src$core$keyboard_nav$field_navigation_policy,new ConnectionNavigationPolicy$$module$build$src$core$keyboard_nav$connection_navigation_policy,new WorkspaceNavigationPolicy$$module$build$src$core$keyboard_nav$workspace_navigation_policy]}addNavigationPolicy(a){this.rules.push(a)}get(a){return this.rules.find(b=>
|
|
1058
1058
|
b.isApplicable(a))}getFirstChild(a){let b;const c=null==(b=this.get(a))?void 0:b.getFirstChild(a);if(!c)return null;let d;return null!=(d=this.get(c))&&d.isNavigable(c)?c:this.getNextSibling(c)}getParent(a){let b;const c=null==(b=this.get(a))?void 0:b.getParent(a);if(!c)return null;let d;return null!=(d=this.get(c))&&d.isNavigable(c)?c:this.getParent(c)}getNextSibling(a){let b;const c=null==(b=this.get(a))?void 0:b.getNextSibling(a);if(!c)return null;let d;return null!=(d=this.get(c))&&d.isNavigable(c)?
|
|
@@ -1720,7 +1720,7 @@ d,this.workspace_.id);fire$$module$build$src$core$events$utils(a)}selectParent()
|
|
|
1720
1720
|
a.toggleExpanded();return!0}selectNext(){if(!this.selectedItem_)return!1;const a=[...this.contents.values()];let b=a.indexOf(this.selectedItem_)+1;if(-1<b&&b<a.length){let c=a[b];for(;c&&!c.isSelectable();)c=a[++b];if(c&&c.isSelectable())return this.setSelectedItem(c),!0}return!1}selectPrevious(){if(!this.selectedItem_)return!1;const a=[...this.contents.values()];let b=a.indexOf(this.selectedItem_)-1;if(-1<b&&b<a.length){let c=a[b];for(;c&&!c.isSelectable();)c=a[--b];if(c&&c.isSelectable())return this.setSelectedItem(c),
|
|
1721
1721
|
!0}return!1}dispose(){this.workspace_.getComponentManager().removeComponent("toolbox");this.flyout.dispose();this.contents.forEach(a=>a.dispose());for(let a=0;a<this.boundEvents_.length;a++)unbind$$module$build$src$core$browser_events(this.boundEvents_[a]);this.boundEvents_=[];this.contents.clear();this.HtmlDiv&&(this.workspace_.getThemeManager().unsubscribe(this.HtmlDiv),removeNode$$module$build$src$core$utils$dom(this.HtmlDiv));$.getFocusManager$$module$build$src$core$focus_manager().unregisterTree(this)}getFocusableElement(){if(!this.HtmlDiv)throw Error("Toolbox DOM has not yet been created.");
|
|
1722
1722
|
return this.HtmlDiv}getFocusableTree(){return this}onNodeFocus(){}onNodeBlur(){}canBeFocused(){return!0}getRootFocusableNode(){return this}getRestoredFocusableNode(a){if(!a||a===this){let b;return null!=(b=this.getToolboxItems().find(c=>c.isSelectable()))?b:null}return null}getNestedTrees(){return[]}lookUpFocusableNode(a){return this.getToolboxItemById(a)}onTreeFocus(a,b){a!==this?this.getSelectedItem()!==a&&this.setSelectedItem(a):this.clearSelection()}onTreeBlur(a){}};register$$module$build$src$core$css('\n.blocklyToolboxDelete {\n cursor: url("<<<PATH>>>/handdelete.cur"), auto;\n}\n\n.blocklyToolboxGrab {\n cursor: url("<<<PATH>>>/handclosed.cur"), auto;\n cursor: grabbing;\n cursor: -webkit-grabbing;\n}\n\n/* Category tree in Toolbox. */\n.blocklyToolbox {\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n background-color: #ddd;\n overflow-x: visible;\n overflow-y: auto;\n padding: 4px 0 4px 0;\n position: absolute;\n z-index: 70; /* so blocks go under toolbox when dragging */\n -webkit-tap-highlight-color: transparent; /* issue #1345 */\n}\n\n.blocklyToolboxCategoryGroup {\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n}\n\n.blocklyToolboxCategoryGroup:focus {\n outline: none;\n}\n');
|
|
1723
|
-
register$$module$build$src$core$registry(Type$$module$build$src$core$registry.TOOLBOX,DEFAULT$$module$build$src$core$registry,Toolbox$$module$build$src$core$toolbox$toolbox);var module$build$src$core$toolbox$toolbox={};module$build$src$core$toolbox$toolbox.Toolbox=Toolbox$$module$build$src$core$toolbox$toolbox;var module$build$src$core$interfaces$i_navigation_policy={};var VERSION$$module$build$src$core$blockly="12.0.0
|
|
1723
|
+
register$$module$build$src$core$registry(Type$$module$build$src$core$registry.TOOLBOX,DEFAULT$$module$build$src$core$registry,Toolbox$$module$build$src$core$toolbox$toolbox);var module$build$src$core$toolbox$toolbox={};module$build$src$core$toolbox$toolbox.Toolbox=Toolbox$$module$build$src$core$toolbox$toolbox;var module$build$src$core$interfaces$i_navigation_policy={};var VERSION$$module$build$src$core$blockly="12.0.0",INPUT_VALUE$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.INPUT_VALUE,OUTPUT_VALUE$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.OUTPUT_VALUE,NEXT_STATEMENT$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.NEXT_STATEMENT,PREVIOUS_STATEMENT$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.PREVIOUS_STATEMENT,
|
|
1724
1724
|
TOOLBOX_AT_TOP$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.TOP,TOOLBOX_AT_BOTTOM$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.BOTTOM,TOOLBOX_AT_LEFT$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.LEFT,TOOLBOX_AT_RIGHT$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.RIGHT,svgResize$$module$build$src$core$blockly=svgResize$$module$build$src$core$common,getMainWorkspace$$module$build$src$core$blockly=
|
|
1725
1725
|
getMainWorkspace$$module$build$src$core$common,getSelected$$module$build$src$core$blockly=getSelected$$module$build$src$core$common,defineBlocksWithJsonArray$$module$build$src$core$blockly=defineBlocksWithJsonArray$$module$build$src$core$common,setParentContainer$$module$build$src$core$blockly=setParentContainer$$module$build$src$core$common,COLLAPSE_CHARS$$module$build$src$core$blockly=COLLAPSE_CHARS$$module$build$src$core$internal_constants,OPPOSITE_TYPE$$module$build$src$core$blockly=OPPOSITE_TYPE$$module$build$src$core$internal_constants,
|
|
1726
1726
|
RENAME_VARIABLE_ID$$module$build$src$core$blockly=RENAME_VARIABLE_ID$$module$build$src$core$internal_constants,DELETE_VARIABLE_ID$$module$build$src$core$blockly=DELETE_VARIABLE_ID$$module$build$src$core$internal_constants,COLLAPSED_INPUT_NAME$$module$build$src$core$blockly=COLLAPSED_INPUT_NAME$$module$build$src$core$constants,COLLAPSED_FIELD_NAME$$module$build$src$core$blockly=COLLAPSED_FIELD_NAME$$module$build$src$core$constants,VARIABLE_CATEGORY_NAME$$module$build$src$core$blockly=CATEGORY_NAME$$module$build$src$core$variables,
|
|
@@ -2215,6 +2215,7 @@ Blockly.Msg["CONTROLS_IF_IF_TITLE_IF"] = Blockly.Msg["CONTROLS_IF_MSG_IF"];
|
|
|
2215
2215
|
Blockly.Msg["CONTROLS_IF_MSG_THEN"] = Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"];
|
|
2216
2216
|
Blockly.Msg["CONTROLS_WHILEUNTIL_INPUT_DO"] = Blockly.Msg["CONTROLS_REPEAT_INPUT_DO"];
|
|
2217
2217
|
Blockly.Msg["LISTS_CREATE_WITH_ITEM_TITLE"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
|
|
2218
|
+
Blockly.Msg["LISTS_GET_INDEX_HELPURL"] = Blockly.Msg["LISTS_INDEX_OF_HELPURL"];
|
|
2218
2219
|
Blockly.Msg["LISTS_GET_INDEX_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
|
|
2219
2220
|
Blockly.Msg["LISTS_GET_SUBLIST_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
|
|
2220
2221
|
Blockly.Msg["LISTS_INDEX_OF_INPUT_IN_LIST"] = Blockly.Msg["LISTS_INLIST"];
|
|
@@ -2227,15 +2228,15 @@ Blockly.Msg["PROCEDURES_DEFRETURN_TITLE"] = Blockly.Msg["PROCEDURES_DEFNORETURN_
|
|
|
2227
2228
|
Blockly.Msg["TEXT_APPEND_VARIABLE"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
|
|
2228
2229
|
Blockly.Msg["TEXT_CREATE_JOIN_ITEM_TITLE_ITEM"] = Blockly.Msg["VARIABLES_DEFAULT_NAME"];
|
|
2229
2230
|
|
|
2230
|
-
Blockly.Msg["
|
|
2231
|
+
Blockly.Msg["MATH_HUE"] = "230";
|
|
2232
|
+
Blockly.Msg["LOOPS_HUE"] = "120";
|
|
2231
2233
|
Blockly.Msg["LISTS_HUE"] = "260";
|
|
2232
2234
|
Blockly.Msg["LOGIC_HUE"] = "210";
|
|
2233
|
-
Blockly.Msg["
|
|
2234
|
-
Blockly.Msg["MATH_HUE"] = "230";
|
|
2235
|
-
Blockly.Msg["PROCEDURES_HUE"] = "290";
|
|
2235
|
+
Blockly.Msg["VARIABLES_HUE"] = "330";
|
|
2236
2236
|
Blockly.Msg["TEXTS_HUE"] = "160";
|
|
2237
|
+
Blockly.Msg["PROCEDURES_HUE"] = "290";
|
|
2238
|
+
Blockly.Msg["COLOUR_HUE"] = "20";
|
|
2237
2239
|
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
|
|
2238
|
-
Blockly.Msg["VARIABLES_HUE"] = "330";
|
|
2239
2240
|
return Blockly.Msg;
|
|
2240
2241
|
}));
|
|
2241
2242
|
|
package/blockly_compressed.js
CHANGED
|
@@ -1052,7 +1052,7 @@ void 0:null==(d=c.getParentInput())?void 0:d.connection)?e:a}getNextSibling(a){i
|
|
|
1052
1052
|
a?d:(a=b.workspace.getTopBlocks(!0),b=a.indexOf(b.getRootBlock())+1,b>=a.length&&(b=0),b=a[b],null!=(c=this.getParentConnection(b))?c:b)):a.getSourceBlock()}getPreviousSibling(a){if(a.getParentInput()){var b=a.getParentInput(),c=null==b?void 0:b.getSourceBlock();if(!c||!b)return null;for(a=c.inputList.indexOf(b);0<=a;a--){var d=c.inputList[a];if(d.connection&&d!==b)return d.connection;d=d.fieldRow;if(d.length)return d[d.length-1]}}else{if(a.type===ConnectionType$$module$build$src$core$connection_type.PREVIOUS_STATEMENT||
|
|
1053
1053
|
a.type===ConnectionType$$module$build$src$core$connection_type.OUTPUT_VALUE)return d=a.targetConnection&&!a.targetConnection.getParentInput()?a.targetConnection:null,c=a.getSourceBlock(),d||this.getParentConnection(c.getRootBlock())!==a?d:(a=c.workspace.getTopBlocks(!0),c=a.indexOf(c.getRootBlock())-1,0>c&&(c=a.length-1),c=a[c],null!=(b=c.lastConnectionInStack(!1))?b:c);if(a.type===ConnectionType$$module$build$src$core$connection_type.NEXT_STATEMENT)return a.getSourceBlock()}return null}getParentConnection(a){let b;
|
|
1054
1054
|
return!a.outputConnection||(null==(b=a.previousConnection)?0:b.isConnected())?a.previousConnection:a.outputConnection}isNavigable(a){return a.canBeFocused()}isApplicable(a){return a instanceof RenderedConnection$$module$build$src$core$rendered_connection}},module$build$src$core$keyboard_nav$connection_navigation_policy={};module$build$src$core$keyboard_nav$connection_navigation_policy.ConnectionNavigationPolicy=ConnectionNavigationPolicy$$module$build$src$core$keyboard_nav$connection_navigation_policy;var FieldNavigationPolicy$$module$build$src$core$keyboard_nav$field_navigation_policy=class{getFirstChild(a){return null}getParent(a){return a.getSourceBlock()}getNextSibling(a){var b=a.getParentInput();const c=a.getSourceBlock();if(!c)return null;var d=c.inputList.indexOf(b);for(a=b.fieldRow.indexOf(a)+1;d<c.inputList.length;d++){b=c.inputList[d];const e=b.fieldRow;if(a<e.length)return e[a];a=0;let f;if(null==(f=b.connection)?0:f.targetBlock())return b.connection.targetBlock()}return null}getPreviousSibling(a){const b=
|
|
1055
|
-
a.getParentInput(),c=a.getSourceBlock();if(!c)return null;var d=c.inputList.indexOf(b);for(a=b.fieldRow.indexOf(a)-1;0<=d;d--){var e=c.inputList[d];let f;if((null==(f=e.connection)?0:f.targetBlock())&&e!==b)return e.connection.targetBlock();e=e.fieldRow;if(-1<a)return e[a];0<=d-1&&(a=c.inputList[d-1].fieldRow.length-1)}return null}isNavigable(a){let b;return a.canBeFocused()&&a.isClickable()
|
|
1055
|
+
a.getParentInput(),c=a.getSourceBlock();if(!c)return null;var d=c.inputList.indexOf(b);for(a=b.fieldRow.indexOf(a)-1;0<=d;d--){var e=c.inputList[d];let f;if((null==(f=e.connection)?0:f.targetBlock())&&e!==b)return e.connection.targetBlock();e=e.fieldRow;if(-1<a)return e[a];0<=d-1&&(a=c.inputList[d-1].fieldRow.length-1)}return null}isNavigable(a){let b;return a.canBeFocused()&&(a.isClickable()||a.isCurrentlyEditable())&&!((null==(b=a.getSourceBlock())?0:b.isSimpleReporter())&&a.isFullBlockField())&&
|
|
1056
1056
|
a.getParentInput().isVisible()}isApplicable(a){return a instanceof Field$$module$build$src$core$field}},module$build$src$core$keyboard_nav$field_navigation_policy={};module$build$src$core$keyboard_nav$field_navigation_policy.FieldNavigationPolicy=FieldNavigationPolicy$$module$build$src$core$keyboard_nav$field_navigation_policy;var WorkspaceNavigationPolicy$$module$build$src$core$keyboard_nav$workspace_navigation_policy=class{getFirstChild(a){a=a.getTopBlocks(!0);return a.length?a[0]:null}getParent(a){return null}getNextSibling(a){return null}getPreviousSibling(a){return null}isNavigable(a){return a.canBeFocused()}isApplicable(a){return a instanceof WorkspaceSvg$$module$build$src$core$workspace_svg}},module$build$src$core$keyboard_nav$workspace_navigation_policy={};
|
|
1057
1057
|
module$build$src$core$keyboard_nav$workspace_navigation_policy.WorkspaceNavigationPolicy=WorkspaceNavigationPolicy$$module$build$src$core$keyboard_nav$workspace_navigation_policy;var Navigator$$module$build$src$core$navigator=class{constructor(){this.rules=[new BlockNavigationPolicy$$module$build$src$core$keyboard_nav$block_navigation_policy,new FieldNavigationPolicy$$module$build$src$core$keyboard_nav$field_navigation_policy,new ConnectionNavigationPolicy$$module$build$src$core$keyboard_nav$connection_navigation_policy,new WorkspaceNavigationPolicy$$module$build$src$core$keyboard_nav$workspace_navigation_policy]}addNavigationPolicy(a){this.rules.push(a)}get(a){return this.rules.find(b=>
|
|
1058
1058
|
b.isApplicable(a))}getFirstChild(a){let b;const c=null==(b=this.get(a))?void 0:b.getFirstChild(a);if(!c)return null;let d;return null!=(d=this.get(c))&&d.isNavigable(c)?c:this.getNextSibling(c)}getParent(a){let b;const c=null==(b=this.get(a))?void 0:b.getParent(a);if(!c)return null;let d;return null!=(d=this.get(c))&&d.isNavigable(c)?c:this.getParent(c)}getNextSibling(a){let b;const c=null==(b=this.get(a))?void 0:b.getNextSibling(a);if(!c)return null;let d;return null!=(d=this.get(c))&&d.isNavigable(c)?
|
|
@@ -1720,7 +1720,7 @@ d,this.workspace_.id);fire$$module$build$src$core$events$utils(a)}selectParent()
|
|
|
1720
1720
|
a.toggleExpanded();return!0}selectNext(){if(!this.selectedItem_)return!1;const a=[...this.contents.values()];let b=a.indexOf(this.selectedItem_)+1;if(-1<b&&b<a.length){let c=a[b];for(;c&&!c.isSelectable();)c=a[++b];if(c&&c.isSelectable())return this.setSelectedItem(c),!0}return!1}selectPrevious(){if(!this.selectedItem_)return!1;const a=[...this.contents.values()];let b=a.indexOf(this.selectedItem_)-1;if(-1<b&&b<a.length){let c=a[b];for(;c&&!c.isSelectable();)c=a[--b];if(c&&c.isSelectable())return this.setSelectedItem(c),
|
|
1721
1721
|
!0}return!1}dispose(){this.workspace_.getComponentManager().removeComponent("toolbox");this.flyout.dispose();this.contents.forEach(a=>a.dispose());for(let a=0;a<this.boundEvents_.length;a++)unbind$$module$build$src$core$browser_events(this.boundEvents_[a]);this.boundEvents_=[];this.contents.clear();this.HtmlDiv&&(this.workspace_.getThemeManager().unsubscribe(this.HtmlDiv),removeNode$$module$build$src$core$utils$dom(this.HtmlDiv));$.getFocusManager$$module$build$src$core$focus_manager().unregisterTree(this)}getFocusableElement(){if(!this.HtmlDiv)throw Error("Toolbox DOM has not yet been created.");
|
|
1722
1722
|
return this.HtmlDiv}getFocusableTree(){return this}onNodeFocus(){}onNodeBlur(){}canBeFocused(){return!0}getRootFocusableNode(){return this}getRestoredFocusableNode(a){if(!a||a===this){let b;return null!=(b=this.getToolboxItems().find(c=>c.isSelectable()))?b:null}return null}getNestedTrees(){return[]}lookUpFocusableNode(a){return this.getToolboxItemById(a)}onTreeFocus(a,b){a!==this?this.getSelectedItem()!==a&&this.setSelectedItem(a):this.clearSelection()}onTreeBlur(a){}};register$$module$build$src$core$css('\n.blocklyToolboxDelete {\n cursor: url("<<<PATH>>>/handdelete.cur"), auto;\n}\n\n.blocklyToolboxGrab {\n cursor: url("<<<PATH>>>/handclosed.cur"), auto;\n cursor: grabbing;\n cursor: -webkit-grabbing;\n}\n\n/* Category tree in Toolbox. */\n.blocklyToolbox {\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n background-color: #ddd;\n overflow-x: visible;\n overflow-y: auto;\n padding: 4px 0 4px 0;\n position: absolute;\n z-index: 70; /* so blocks go under toolbox when dragging */\n -webkit-tap-highlight-color: transparent; /* issue #1345 */\n}\n\n.blocklyToolboxCategoryGroup {\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n}\n\n.blocklyToolboxCategoryGroup:focus {\n outline: none;\n}\n');
|
|
1723
|
-
register$$module$build$src$core$registry(Type$$module$build$src$core$registry.TOOLBOX,DEFAULT$$module$build$src$core$registry,Toolbox$$module$build$src$core$toolbox$toolbox);var module$build$src$core$toolbox$toolbox={};module$build$src$core$toolbox$toolbox.Toolbox=Toolbox$$module$build$src$core$toolbox$toolbox;var module$build$src$core$interfaces$i_navigation_policy={};var VERSION$$module$build$src$core$blockly="12.0.0
|
|
1723
|
+
register$$module$build$src$core$registry(Type$$module$build$src$core$registry.TOOLBOX,DEFAULT$$module$build$src$core$registry,Toolbox$$module$build$src$core$toolbox$toolbox);var module$build$src$core$toolbox$toolbox={};module$build$src$core$toolbox$toolbox.Toolbox=Toolbox$$module$build$src$core$toolbox$toolbox;var module$build$src$core$interfaces$i_navigation_policy={};var VERSION$$module$build$src$core$blockly="12.0.0",INPUT_VALUE$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.INPUT_VALUE,OUTPUT_VALUE$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.OUTPUT_VALUE,NEXT_STATEMENT$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.NEXT_STATEMENT,PREVIOUS_STATEMENT$$module$build$src$core$blockly=ConnectionType$$module$build$src$core$connection_type.PREVIOUS_STATEMENT,
|
|
1724
1724
|
TOOLBOX_AT_TOP$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.TOP,TOOLBOX_AT_BOTTOM$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.BOTTOM,TOOLBOX_AT_LEFT$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.LEFT,TOOLBOX_AT_RIGHT$$module$build$src$core$blockly=Position$$module$build$src$core$utils$toolbox.RIGHT,svgResize$$module$build$src$core$blockly=svgResize$$module$build$src$core$common,getMainWorkspace$$module$build$src$core$blockly=
|
|
1725
1725
|
getMainWorkspace$$module$build$src$core$common,getSelected$$module$build$src$core$blockly=getSelected$$module$build$src$core$common,defineBlocksWithJsonArray$$module$build$src$core$blockly=defineBlocksWithJsonArray$$module$build$src$core$common,setParentContainer$$module$build$src$core$blockly=setParentContainer$$module$build$src$core$common,COLLAPSE_CHARS$$module$build$src$core$blockly=COLLAPSE_CHARS$$module$build$src$core$internal_constants,OPPOSITE_TYPE$$module$build$src$core$blockly=OPPOSITE_TYPE$$module$build$src$core$internal_constants,
|
|
1726
1726
|
RENAME_VARIABLE_ID$$module$build$src$core$blockly=RENAME_VARIABLE_ID$$module$build$src$core$internal_constants,DELETE_VARIABLE_ID$$module$build$src$core$blockly=DELETE_VARIABLE_ID$$module$build$src$core$internal_constants,COLLAPSED_INPUT_NAME$$module$build$src$core$blockly=COLLAPSED_INPUT_NAME$$module$build$src$core$constants,COLLAPSED_FIELD_NAME$$module$build$src$core$blockly=COLLAPSED_FIELD_NAME$$module$build$src$core$constants,VARIABLE_CATEGORY_NAME$$module$build$src$core$blockly=CATEGORY_NAME$$module$build$src$core$variables,
|