@blockly/block-test
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -83,3 +83,3 @@ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("blockly/core"));else if("function"==typeof define&&define.amd)define(["blockly/core"],e);else{var n="object"==typeof exports?e(require("blockly/core")):e(t.Blockly);for(var l in n)("object"==typeof exports?exports:t)[l]=n[l]}}(this,(function(t){return function(t){var e={};function n(l){if(e[l])return e[l].exports;var o=e[l]={i:l,l:!1,exports:{}};return t[l].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,l){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:l})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(l,o,function(e){return t[e]}.bind(null,o));return l},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"toolboxTestBlocks",(function(){return v})),n.d(e,"toolboxTestBlocksInit",(function(){return x}));var l=n(0); | ||
*/ | ||
l.Blocks.test_validators_dispose_block={init:function(){this.appendDummyInput().appendField("dispose block").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("Any changes to the text cause the block to be disposed")},validate:function(t){"default"!=t&&this.getSourceBlock().dispose(!0)}},l.Blocks.test_validators_text_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). The display text will remain the input text, but the value should be the default text. The input should be red after the first keystroke.")},validate:function(t){return null}},l.Blocks.test_validators_text_A={init:function(){this.appendDummyInput().appendField("remove 'a'").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("All 'a' characters are removed from field value. The display text will include invalid 'a' characters while the field is being edited, but the value will not.")},validate:function(t){return t.replace(/\a/g,"")}},l.Blocks.test_validators_text_B={init:function(){this.appendDummyInput().appendField("'b' -> null").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("Upon detecting a 'b' character the input will validated to null (invalid). Upon removal it should revert to being valid. The display text will remain the input text, but if the input text is invalid the value should be the default text.")},validate:function(t){return-1!=t.indexOf("b")?null:t}},l.Blocks.test_validators_angle_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldAngle(90,this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). The field will display the input while the field is being edited (this includes the text and the graphic), but the value should be the default value. The input should be red after the first keystroke.")},validate:function(t){return null}},l.Blocks.test_validators_angle_mult30_force={init:function(){this.appendDummyInput().appendField("force mult of 30").appendField(new l.FieldAngle(90,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The input value will be rounded to the nearest multiple of 30. The field will display the input while the field is being edited (this includes the text and the graphic), but the value will be the validated (rounded) value. Note: If you want to do rounding this is not the proper way, use the ROUND property of the field angle instead.")},validate:function(t){return 30*Math.round(t/30)}},l.Blocks.test_validators_angle_mult30_null={init:function(){this.appendDummyInput().appendField("not mult of 30 -> null").appendField(new l.FieldAngle(90,this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the input value is not a multiple of 30, the input will validated to null (invalid). The field will display the input while the field is being edited (this includes the text and the graphic), but if the input value is invalid the value should be the default value.")},validate:function(t){return t%30!=0?null:t}},l.Blocks.test_validators_checkbox_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldCheckbox(!0,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The new input always validates to null (invalid). This means that the field value should not change.")},validate:function(t){return null}},l.Blocks.test_validators_checkbox_match={init:function(){this.appendDummyInput().appendField("force match").appendField(new l.FieldCheckbox(!0),"MATCH").appendField(new l.FieldCheckbox(!0,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The validator for this block only works on the end-most checkbox. The validator will always return the value of the start-most checkbox. Therefor they should always match.")},validate:function(t){return this.sourceBlock_.getFieldValue("MATCH")}},l.Blocks.test_validators_checkbox_not_match_null={init:function(){this.appendDummyInput().appendField("not match -> null").appendField(new l.FieldCheckbox(!0),"MATCH").appendField(new l.FieldCheckbox(!0,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The validator for this block only works on the end-most checkbox. If the new value does not match the value of the start-most checkbox, it will return null (invalid), which means the field value should not change. Therefore they should always match.")},validate:function(t){return this.sourceBlock_.getFieldValue("MATCH")!=t?null:t}},l.Blocks.test_validators_colour_null={init:function(){const t=new l.FieldColour("#ff0000",this.validate);t.setColours(["#ffffff","#ffdcdc","#ffb4b4","#ff8c8c","#ff6464","#ff3c3c","#ff1414","#00ffff","#00dcdc","#00b4b4","#008c8c","#006464","#003c3c","#001414"]),this.appendDummyInput().appendField("always null").appendField(t,"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). This means the field value should not change.")},validate:function(t){return null}},l.Blocks.test_validators_colour_force_red={init:function(){const t=new l.FieldColour("#ff0000",this.validate);t.setColours(["#ffffff","#ffdcdc","#ffb4b4","#ff8c8c","#ff6464","#ff3c3c","#ff1414","#00ffff","#00dcdc","#00b4b4","#008c8c","#006464","#003c3c","#001414"]),this.appendDummyInput().appendField("force full red").appendField(t,"INPUT"),this.setColour(230),this.setCommentText("The input will have its red value replaced with full red.")},validate:function(t){return"#ff"+t.substr(3,4)}},l.Blocks.test_validators_colour_red_null={init:function(){const t=new l.FieldColour("#ff0000",this.validate);t.setColours(["#ffffff","#ffdcdc","#ffb4b4","#ff8c8c","#ff6464","#ff3c3c","#ff1414","#00ffff","#00dcdc","#00b4b4","#008c8c","#006464","#003c3c","#001414"]),this.appendDummyInput().appendField("not red -> null").appendField(t,"INPUT"),this.setColour(230),this.setCommentText("If the input does not have full red, the input will validate to null (invalid). Otherwise it will return the input value")},validate:function(t){return"ff"!=t.substr(1,2)?null:t}},l.Blocks.test_validators_dropdown_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldDropdown([["1a","1A"],["1b","1B"],["1c","1C"],["2a","2A"],["2b","2B"],["2c","2C"]],this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). This means the field value should not change.")},validate:function(t){return null}},l.Blocks.test_validators_dropdown_force_1s={init:function(){this.appendDummyInput().appendField("force 1s").appendField(new l.FieldDropdown([["1a","1A"],["1b","1B"],["1c","1C"],["2a","2A"],["2b","2B"],["2c","2C"]],this.validate),"INPUT"),this.setColour(230),this.setCommentText("The input's value will always change to start with 1.")},validate:function(t){return"1"+t.charAt(1)}},l.Blocks.test_validators_dropdown_1s_null={init:function(){this.appendDummyInput().appendField("not 1s -> null").appendField(new l.FieldDropdown([["1a","1A"],["1b","1B"],["1c","1C"],["2a","2A"],["2b","2B"],["2c","2C"]],this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the input does not start with 1, the input will validate to null (invalid). Otherwise it will return the input value.")},validate:function(t){return"1"!=t.charAt(0)?null:t}},l.Blocks.test_validators_number_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldNumber(123,null,null,null,this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). The field will display the input while the field is being edited, but the value should be the default value. The input should be red after the first keystroke.")},validate:function(t){return null}},l.Blocks.test_validators_number_mult10_force={init:function(){this.appendDummyInput().appendField("force mult of 10").appendField(new l.FieldNumber(123,null,null,null,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The input value will be rounded to the nearest multiple of 10. The field will display the input while the field is being edited, but the value should be the validated (rounded) value. Note: If you want to do rounding this is not the proper way, use the precision option of the number field constructor instead.")},validate:function(t){return 10*Math.round(t/10)}},l.Blocks.test_validators_number_mult10_null={init:function(){this.appendDummyInput().appendField("not mult of 10 -> null").appendField(new l.FieldNumber(123,null,null,null,this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the input value is not a multiple of 10, the input will validate to null (invalid). The field will display the input while the field is being edited, but if the input value is invalid the value should be the default value.")},validate:function(t){return t%10!=0?null:t}},l.Blocks.test_validators_variable_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldVariable("1a",this.validate),"INPUT"),this.setColour(230),this.setCommentText("All ids validate to null (invalid). This means the variable should not change.")},validate:function(t){return null}},l.Blocks.test_validators_variable_force_1s={init:function(){this.appendDummyInput().appendField("force 1s").appendField(new l.FieldVariable("1a",this.validate),"INPUT"),this.setColour(230),this.setCommentText("The id will always change to start with 1.")},validate:function(t){return"1"+t.charAt(1)}},l.Blocks.test_validators_variable_1s_null={init:function(){this.appendDummyInput().appendField("not 1s -> null").appendField(new l.FieldVariable("1a",this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the id does not start with 1, the id will validate to null (invalid). Otherwise it will return the id.")},validate:function(t){return"1"!=t.charAt(0)?null:t}}; | ||
l.Blocks.test_validators_dispose_block={init:function(){this.appendDummyInput().appendField("dispose block").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("Any changes to the text cause the block to be disposed")},validate:function(t){"default"!=t&&this.getSourceBlock().dispose(!0)}},l.Blocks.test_validators_text_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). The display text will remain the input text, but the value should be the default text. The input should be red after the first keystroke.")},validate:function(t){return null}},l.Blocks.test_validators_text_A={init:function(){this.appendDummyInput().appendField("remove 'a'").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("All 'a' characters are removed from field value. The display text will include invalid 'a' characters while the field is being edited, but the value will not.")},validate:function(t){return t.replace(/a/g,"")}},l.Blocks.test_validators_text_B={init:function(){this.appendDummyInput().appendField("'b' -> null").appendField(new l.FieldTextInput("default",this.validate),"INPUT"),this.setColour(230),this.setCommentText("Upon detecting a 'b' character the input will validated to null (invalid). Upon removal it should revert to being valid. The display text will remain the input text, but if the input text is invalid the value should be the default text.")},validate:function(t){return-1!=t.indexOf("b")?null:t}},l.Blocks.test_validators_angle_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldAngle(90,this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). The field will display the input while the field is being edited (this includes the text and the graphic), but the value should be the default value. The input should be red after the first keystroke.")},validate:function(t){return null}},l.Blocks.test_validators_angle_mult30_force={init:function(){this.appendDummyInput().appendField("force mult of 30").appendField(new l.FieldAngle(90,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The input value will be rounded to the nearest multiple of 30. The field will display the input while the field is being edited (this includes the text and the graphic), but the value will be the validated (rounded) value. Note: If you want to do rounding this is not the proper way, use the ROUND property of the field angle instead.")},validate:function(t){return 30*Math.round(t/30)}},l.Blocks.test_validators_angle_mult30_null={init:function(){this.appendDummyInput().appendField("not mult of 30 -> null").appendField(new l.FieldAngle(90,this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the input value is not a multiple of 30, the input will validated to null (invalid). The field will display the input while the field is being edited (this includes the text and the graphic), but if the input value is invalid the value should be the default value.")},validate:function(t){return t%30!=0?null:t}},l.Blocks.test_validators_checkbox_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldCheckbox(!0,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The new input always validates to null (invalid). This means that the field value should not change.")},validate:function(t){return null}},l.Blocks.test_validators_checkbox_match={init:function(){this.appendDummyInput().appendField("force match").appendField(new l.FieldCheckbox(!0),"MATCH").appendField(new l.FieldCheckbox(!0,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The validator for this block only works on the end-most checkbox. The validator will always return the value of the start-most checkbox. Therefore they should always match.")},validate:function(t){return this.sourceBlock_.getFieldValue("MATCH")}},l.Blocks.test_validators_checkbox_not_match_null={init:function(){this.appendDummyInput().appendField("not match -> null").appendField(new l.FieldCheckbox(!0),"MATCH").appendField(new l.FieldCheckbox(!0,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The validator for this block only works on the end-most checkbox. If the new value does not match the value of the start-most checkbox, it will return null (invalid), which means the field value should not change. Therefore they should always match.")},validate:function(t){return this.sourceBlock_.getFieldValue("MATCH")!=t?null:t}},l.Blocks.test_validators_colour_null={init:function(){const t=new l.FieldColour("#ff0000",this.validate);t.setColours(["#ffffff","#ffdcdc","#ffb4b4","#ff8c8c","#ff6464","#ff3c3c","#ff1414","#00ffff","#00dcdc","#00b4b4","#008c8c","#006464","#003c3c","#001414"]),this.appendDummyInput().appendField("always null").appendField(t,"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). This means the field value should not change.")},validate:function(t){return null}},l.Blocks.test_validators_colour_force_red={init:function(){const t=new l.FieldColour("#ff0000",this.validate);t.setColours(["#ffffff","#ffdcdc","#ffb4b4","#ff8c8c","#ff6464","#ff3c3c","#ff1414","#00ffff","#00dcdc","#00b4b4","#008c8c","#006464","#003c3c","#001414"]),this.appendDummyInput().appendField("force full red").appendField(t,"INPUT"),this.setColour(230),this.setCommentText("The input will have its red value replaced with full red.")},validate:function(t){return"#ff"+t.substr(3,4)}},l.Blocks.test_validators_colour_red_null={init:function(){const t=new l.FieldColour("#ff0000",this.validate);t.setColours(["#ffffff","#ffdcdc","#ffb4b4","#ff8c8c","#ff6464","#ff3c3c","#ff1414","#00ffff","#00dcdc","#00b4b4","#008c8c","#006464","#003c3c","#001414"]),this.appendDummyInput().appendField("not red -> null").appendField(t,"INPUT"),this.setColour(230),this.setCommentText("If the input does not have full red, the input will validate to null (invalid). Otherwise it will return the input value")},validate:function(t){return"ff"!=t.substr(1,2)?null:t}},l.Blocks.test_validators_dropdown_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldDropdown([["1a","1A"],["1b","1B"],["1c","1C"],["2a","2A"],["2b","2B"],["2c","2C"]],this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). This means the field value should not change.")},validate:function(t){return null}},l.Blocks.test_validators_dropdown_force_1s={init:function(){this.appendDummyInput().appendField("force 1s").appendField(new l.FieldDropdown([["1a","1A"],["1b","1B"],["1c","1C"],["2a","2A"],["2b","2B"],["2c","2C"]],this.validate),"INPUT"),this.setColour(230),this.setCommentText("The input's value will always change to start with 1.")},validate:function(t){return"1"+t.charAt(1)}},l.Blocks.test_validators_dropdown_1s_null={init:function(){this.appendDummyInput().appendField("not 1s -> null").appendField(new l.FieldDropdown([["1a","1A"],["1b","1B"],["1c","1C"],["2a","2A"],["2b","2B"],["2c","2C"]],this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the input does not start with 1, the input will validate to null (invalid). Otherwise it will return the input value.")},validate:function(t){return"1"!=t.charAt(0)?null:t}},l.Blocks.test_validators_number_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldNumber(123,null,null,null,this.validate),"INPUT"),this.setColour(230),this.setCommentText("All input validates to null (invalid). The field will display the input while the field is being edited, but the value should be the default value. The input should be red after the first keystroke.")},validate:function(t){return null}},l.Blocks.test_validators_number_mult10_force={init:function(){this.appendDummyInput().appendField("force mult of 10").appendField(new l.FieldNumber(123,null,null,null,this.validate),"INPUT"),this.setColour(230),this.setCommentText("The input value will be rounded to the nearest multiple of 10. The field will display the input while the field is being edited, but the value should be the validated (rounded) value. Note: If you want to do rounding this is not the proper way, use the precision option of the number field constructor instead.")},validate:function(t){return 10*Math.round(t/10)}},l.Blocks.test_validators_number_mult10_null={init:function(){this.appendDummyInput().appendField("not mult of 10 -> null").appendField(new l.FieldNumber(123,null,null,null,this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the input value is not a multiple of 10, the input will validate to null (invalid). The field will display the input while the field is being edited, but if the input value is invalid the value should be the default value.")},validate:function(t){return t%10!=0?null:t}},l.Blocks.test_validators_variable_null={init:function(){this.appendDummyInput().appendField("always null").appendField(new l.FieldVariable("1a",this.validate),"INPUT"),this.setColour(230),this.setCommentText("All ids validate to null (invalid). This means the variable should not change.")},validate:function(t){return null}},l.Blocks.test_validators_variable_force_1s={init:function(){this.appendDummyInput().appendField("force 1s").appendField(new l.FieldVariable("1a",this.validate),"INPUT"),this.setColour(230),this.setCommentText("The id will always change to start with 1.")},validate:function(t){return"1"+t.charAt(1)}},l.Blocks.test_validators_variable_1s_null={init:function(){this.appendDummyInput().appendField("not 1s -> null").appendField(new l.FieldVariable("1a",this.validate),"INPUT"),this.setColour(230),this.setCommentText("If the id does not start with 1, the id will validate to null (invalid). Otherwise it will return the id.")},validate:function(t){return"1"!=t.charAt(0)?null:t}}; | ||
/** | ||
@@ -86,0 +86,0 @@ * @license |
{ | ||
"name": "@blockly/block-test", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "A group of Blockly test blocks.", | ||
@@ -42,4 +42,4 @@ "scripts": { | ||
"devDependencies": { | ||
"@blockly/dev-scripts": "^1.2.4", | ||
"@blockly/dev-tools": "^2.1.2", | ||
"@blockly/dev-scripts": "^1.2.5", | ||
"@blockly/dev-tools": "^2.2.0", | ||
"blockly": "^3.20200924.1" | ||
@@ -65,3 +65,3 @@ }, | ||
], | ||
"gitHead": "57007093166c7dea82181d2d8e164cee5d883f94" | ||
"gitHead": "589d6e965a9deeb83e5e81d590781a4c80cc9d56" | ||
} |
@@ -15,3 +15,4 @@ /** | ||
import {category as stackCategory, onInit as initStack} from './stack'; | ||
import {category as statementCategory, onInit as initStatement} from './statement'; | ||
import { | ||
category as statementCategory, onInit as initStatement} from './statement'; | ||
@@ -18,0 +19,0 @@ |
@@ -180,2 +180,3 @@ /** | ||
Blockly.Xml.textToDom( | ||
/* eslint-disable max-len */ | ||
'<xml xmlns="https://developers.google.com/blockly/xml">\n' + | ||
@@ -203,3 +204,5 @@ ' <block type="test_connections_row_input">\n' + | ||
' </block>\n' + | ||
'</xml>'), | ||
'</xml>' | ||
/* eslint-enable max-len */ | ||
), | ||
workspace); | ||
@@ -206,0 +209,0 @@ }; |
@@ -85,2 +85,3 @@ /** | ||
Blockly.Xml.textToDom( | ||
/* eslint-disable max-len */ | ||
'<xml xmlns="https://developers.google.com/blockly/xml">\n' + | ||
@@ -108,3 +109,5 @@ ' <block type="test_connections_stack_next">\n' + | ||
' </block>\n' + | ||
'</xml>'), | ||
'</xml>' | ||
/* eslint-enable max-len */ | ||
), | ||
workspace); | ||
@@ -111,0 +114,0 @@ }; |
@@ -40,2 +40,3 @@ /** | ||
'kind': 'BLOCK', | ||
/* eslint-disable max-len */ | ||
'blockxml': ` | ||
@@ -45,2 +46,3 @@ <block type="text"> | ||
</block>`, | ||
/* eslint-enable max-len */ | ||
}, | ||
@@ -47,0 +49,0 @@ ], |
@@ -24,3 +24,5 @@ /** | ||
'src': | ||
/* eslint-disable max-len */ | ||
'data:image/png;base64,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', | ||
/* eslint-enable max-len */ | ||
'width': 50, | ||
@@ -27,0 +29,0 @@ 'height': 50, |
@@ -19,3 +19,4 @@ /** | ||
import {category as fieldEmoji, onInit as initEmoji} from './emojis'; | ||
import {category as fieldValidators, onInit as initValidators} from './validators'; | ||
import { | ||
category as fieldValidators, onInit as initValidators} from './validators'; | ||
@@ -22,0 +23,0 @@ /** |
@@ -66,3 +66,3 @@ /** | ||
validate: function(newValue) { | ||
return newValue.replace(/\a/g, ''); | ||
return newValue.replace(/a/g, ''); | ||
}, | ||
@@ -119,6 +119,6 @@ }; | ||
' multiple of 30. The field will display the input while the field is' + | ||
' being edited (this includes the text and the graphic), but the value' + | ||
' will be the validated (rounded) value. Note: If you want to do' + | ||
' rounding this is not the proper way, use the ROUND property of the' + | ||
' field angle instead.'); | ||
' being edited (this includes the text and the graphic), but the' + | ||
' value will be the validated (rounded) value. Note: If you want to' + | ||
' do rounding this is not the proper way, use the ROUND property of' + | ||
' the field angle instead.'); | ||
}, | ||
@@ -175,5 +175,5 @@ | ||
this.setCommentText( | ||
'The validator for this block only works on the' + | ||
' end-most checkbox. The validator will always return the value of the' + | ||
' start-most checkbox. Therefor they should always match.'); | ||
'The validator for this block only works on the end-most checkbox.' + | ||
' The validator will always return the value of the start-most' + | ||
' checkbox. Therefore they should always match.'); | ||
}, | ||
@@ -265,4 +265,4 @@ | ||
this.setCommentText( | ||
'If the input does not have full red, the input will' + | ||
' validate to null (invalid). Otherwise it will return the input value'); | ||
'If the input does not have full red, the input will validate to' + | ||
' null (invalid). Otherwise it will return the input value'); | ||
}, | ||
@@ -314,4 +314,3 @@ | ||
this.setCommentText( | ||
'The input\'s value will always change to start with' + | ||
' 1.'); | ||
'The input\'s value will always change to start with 1.'); | ||
}, | ||
@@ -337,4 +336,4 @@ | ||
this.setCommentText( | ||
'If the input does not start with 1, the input will' + | ||
' validate to null (invalid). Otherwise it will return the input value.'); | ||
'If the input does not start with 1, the input will validate to' + | ||
' null (invalid). Otherwise it will return the input value.'); | ||
}, | ||
@@ -359,5 +358,5 @@ | ||
this.setCommentText( | ||
'All input validates to null (invalid). The field' + | ||
' will display the input while the field is being edited, but the value' + | ||
' should be the default value. The input should be red after the first' + | ||
'All input validates to null (invalid). The field will display the' + | ||
' input while the field is being edited, but the value should be the' + | ||
' default value. The input should be red after the first' + | ||
' keystroke.'); | ||
@@ -381,5 +380,6 @@ }, | ||
' multiple of 10. The field will display the input while the field is' + | ||
' being edited, but the value should be the validated (rounded) value.' + | ||
' Note: If you want to do rounding this is not the proper way, use the' + | ||
' precision option of the number field constructor instead.'); | ||
' being edited, but the value should be the validated (rounded)' + | ||
' value. Note: If you want to do rounding this is not the proper' + | ||
' way, use the precision option of the number field constructor' + | ||
' instead.'); | ||
}, | ||
@@ -386,0 +386,0 @@ |
@@ -17,3 +17,5 @@ /** | ||
import {category as basicCategory, onInit as initBasic} from './basic'; | ||
import {category as connectionsCategory, onInit as initConnections} from './connections'; | ||
import { | ||
category as connectionsCategory, onInit as initConnections, | ||
} from './connections'; | ||
import {category as dragCategory, onInit as initDrag} from './drag'; | ||
@@ -20,0 +22,0 @@ import {category as fieldsCategory, onInit as initFields} from './fields'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
307175
4209