mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Update exports to new agreed syntax
This commit is contained in:
@@ -69,6 +69,7 @@ const Role = {
|
||||
// ARIA role for a tree item that sometimes may be expanded or collapsed.
|
||||
TREEITEM: 'treeitem'
|
||||
};
|
||||
exports.Role = Role;
|
||||
|
||||
/**
|
||||
* ARIA states and properties.
|
||||
@@ -134,6 +135,7 @@ const State = {
|
||||
// ARIA property for slider minimum value. Value: number.
|
||||
VALUEMIN: 'valuemin'
|
||||
};
|
||||
exports.State = State;
|
||||
|
||||
/**
|
||||
* Sets the role of an element.
|
||||
@@ -146,6 +148,7 @@ const State = {
|
||||
const setRole = function(element, roleName) {
|
||||
element.setAttribute(ROLE_ATTRIBUTE, roleName);
|
||||
};
|
||||
exports.setRole = setRole;
|
||||
|
||||
/**
|
||||
* Sets the state or property of an element.
|
||||
@@ -164,10 +167,4 @@ const setState = function(element, stateName, value) {
|
||||
const attrStateName = ARIA_PREFIX + stateName;
|
||||
element.setAttribute(attrStateName, value);
|
||||
};
|
||||
|
||||
exports = {
|
||||
Role,
|
||||
State,
|
||||
setRole,
|
||||
setState,
|
||||
};
|
||||
exports.setState = setState;
|
||||
|
||||
@@ -175,7 +175,7 @@ goog.addDependency('../../core/touch.js', ['Blockly.Touch'], ['Blockly.internalC
|
||||
goog.addDependency('../../core/touch_gesture.js', ['Blockly.TouchGesture'], ['Blockly.Gesture', 'Blockly.browserEvents', 'Blockly.utils', 'Blockly.utils.Coordinate', 'Blockly.utils.object']);
|
||||
goog.addDependency('../../core/trashcan.js', ['Blockly.Trashcan'], ['Blockly.ComponentManager', 'Blockly.DeleteArea', 'Blockly.Events', 'Blockly.Events.TrashcanOpen', 'Blockly.IAutoHideable', 'Blockly.IPositionable', 'Blockly.Options', 'Blockly.Xml', 'Blockly.browserEvents', 'Blockly.internalConstants', 'Blockly.registry', 'Blockly.uiPosition', 'Blockly.utils', 'Blockly.utils.Rect', 'Blockly.utils.Svg', 'Blockly.utils.dom', 'Blockly.utils.toolbox'], {'lang': 'es5'});
|
||||
goog.addDependency('../../core/utils.js', ['Blockly.utils'], ['Blockly.Msg', 'Blockly.internalConstants', 'Blockly.utils.Coordinate', 'Blockly.utils.Rect', 'Blockly.utils.colour', 'Blockly.utils.global', 'Blockly.utils.string', 'Blockly.utils.style', 'Blockly.utils.userAgent']);
|
||||
goog.addDependency('../../core/utils/aria.js', ['Blockly.utils.aria'], []);
|
||||
goog.addDependency('../../core/utils/aria.js', ['Blockly.utils.aria'], [], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/utils/colour.js', ['Blockly.utils.colour'], [], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/utils/coordinate.js', ['Blockly.utils.Coordinate'], [], {'lang': 'es6', 'module': 'goog'});
|
||||
goog.addDependency('../../core/utils/deprecation.js', ['Blockly.utils.deprecation'], [], {'lang': 'es6', 'module': 'goog'});
|
||||
|
||||
Reference in New Issue
Block a user