Comparing version 0.3.5 to 0.3.7
15
Alert.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Dialog', './Button', './dialog/commander', "./babelHelpers"], factory); | ||
define(['exports', 'react', './Dialog', './Button', './dialog/commander', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Dialog'), require('./Button'), require('./dialog/commander'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./Dialog'), require('./Button'), require('./dialog/commander'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Alert; | ||
@@ -39,3 +36,2 @@ | ||
*/ | ||
/** | ||
@@ -57,3 +53,3 @@ * @file melon/dialog/Alert | ||
var actions = _react2['default'].createElement(_Button2['default'], { | ||
label: '确定', | ||
label: '\u786E\u5B9A', | ||
key: 'submit', | ||
@@ -106,2 +102,3 @@ size: size, | ||
Alert.show = (0, _commander2['default'])(Alert); | ||
}); | ||
}); | ||
//# sourceMappingURL=Alert.js.map |
@@ -1,2 +0,1 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (root, factory) { | ||
@@ -15,3 +14,3 @@ if (typeof define === "function" && define.amd) { | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
@@ -97,2 +96,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=babelHelpers.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './boxgroup/Option', 'melon-core/classname/cxBuilder', 'melon-core/InputComponent', 'melon-core/Validity', "./babelHelpers"], factory); | ||
define(['exports', 'react', './boxgroup/Option', 'melon-core/classname/cxBuilder', 'melon-core/InputComponent', 'melon-core/Validity', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./boxgroup/Option'), require('melon-core/classname/cxBuilder'), require('melon-core/InputComponent'), require('melon-core/Validity'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./boxgroup/Option'), require('melon-core/classname/cxBuilder'), require('melon-core/InputComponent'), require('melon-core/Validity'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.createOptions = createOptions; | ||
@@ -218,2 +215,3 @@ | ||
BoxGroup.createOptions = createOptions; | ||
}); | ||
}); | ||
//# sourceMappingURL=BoxGroup.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../Icon', '../ripples/CenterRipple', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../Icon', '../ripples/CenterRipple', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../Icon'), require('../ripples/CenterRipple'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../Icon'), require('../ripples/CenterRipple'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -113,2 +110,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Option.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './breadcrumb/Item', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './breadcrumb/Item', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./breadcrumb/Item'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./breadcrumb/Item'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Breadcrumb; | ||
@@ -78,2 +75,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Breadcrumb.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = BreadcrumbItem; | ||
@@ -39,2 +36,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Item.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './ripples/TouchRipple', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './ripples/TouchRipple', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./ripples/TouchRipple'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./ripples/TouchRipple'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Button; | ||
@@ -77,2 +74,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Button.js.map |
12
Card.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Card; | ||
@@ -53,2 +50,3 @@ | ||
Card.displayName = 'Card'; | ||
}); | ||
}); | ||
//# sourceMappingURL=Card.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', "../../babelHelpers"], factory); | ||
define(['exports'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("../../babelHelpers")); | ||
factory(exports); | ||
} else { | ||
@@ -11,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.babelHelpers); | ||
factory(mod.exports); | ||
global.dom = mod.exports; | ||
} | ||
})(this, function (exports, babelHelpers) { | ||
})(this, function (exports) { | ||
'use strict'; | ||
@@ -117,2 +116,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=dom.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "../../babelHelpers"], factory); | ||
define(["exports"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("../../babelHelpers")); | ||
factory(exports); | ||
} else { | ||
@@ -11,13 +10,10 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.babelHelpers); | ||
factory(mod.exports); | ||
global.fn = mod.exports; | ||
} | ||
})(this, function (exports, babelHelpers) { | ||
})(this, function (exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.throttle = throttle; | ||
/** | ||
@@ -39,3 +35,3 @@ * Copyright 2016 Baidu Inc. All rights reserved. | ||
function throttle(func, wait) { | ||
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
@@ -103,2 +99,3 @@ | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=fn.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Dialog', './Button', './dialog/commander', "./babelHelpers"], factory); | ||
define(['exports', 'react', './Dialog', './Button', './dialog/commander', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Dialog'), require('./Button'), require('./dialog/commander'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./Dialog'), require('./Button'), require('./dialog/commander'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -52,3 +49,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var actions = [_react2['default'].createElement(_Button2['default'], { | ||
label: '取消', | ||
label: '\u53D6\u6D88', | ||
key: 'cancel', | ||
@@ -61,3 +58,3 @@ size: size, | ||
variants: [].concat(buttonVariants, ['cancel']) }), _react2['default'].createElement(_Button2['default'], { | ||
label: '确定', | ||
label: '\u786E\u5B9A', | ||
key: 'submit', | ||
@@ -101,2 +98,3 @@ type: 'button', | ||
Confirm.show = (0, _commander2['default'])(Confirm); | ||
}); | ||
}); | ||
//# sourceMappingURL=Confirm.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', './Mask', './common/util/dom', './dialog/DialogWindow', 'melon-core/classname/cxBuilder', 'react-motion', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', './Mask', './common/util/dom', './dialog/DialogWindow', 'melon-core/classname/cxBuilder', 'react-motion', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('./Mask'), require('./common/util/dom'), require('./dialog/DialogWindow'), require('melon-core/classname/cxBuilder'), require('react-motion'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('./Mask'), require('./common/util/dom'), require('./dialog/DialogWindow'), require('melon-core/classname/cxBuilder'), require('react-motion'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -259,2 +256,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Dialog.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = createDialogCommand; | ||
@@ -62,2 +59,3 @@ | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=commander.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -88,2 +85,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=DialogWindow.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', "../babelHelpers"], factory); | ||
define(['exports'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("../babelHelpers")); | ||
factory(exports); | ||
} else { | ||
@@ -11,15 +10,12 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.babelHelpers); | ||
factory(mod.exports); | ||
global.windowScrollHelper = mod.exports; | ||
} | ||
})(this, function (exports, babelHelpers) { | ||
})(this, function (exports) { | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.stop = stop; | ||
exports.restore = restore; | ||
exports.update = update; | ||
/** | ||
@@ -32,2 +28,4 @@ * @file melon/dialog/windowScrollHelper | ||
/* eslint-disable fecs-valid-dom-style */ | ||
function stopWindowScrolling(name) { | ||
@@ -99,2 +97,3 @@ | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=windowScrollHelper.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Mask', 'melon-core/classname/cxBuilder', './common/util/dom', "./babelHelpers"], factory); | ||
define(['exports', 'react', './Mask', 'melon-core/classname/cxBuilder', './common/util/dom', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Mask'), require('melon-core/classname/cxBuilder'), require('./common/util/dom'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./Mask'), require('melon-core/classname/cxBuilder'), require('./common/util/dom'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -156,2 +153,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Drawer.js.map |
12
Icon.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Icon; | ||
@@ -54,2 +51,3 @@ | ||
Icon.displayName = 'Icon'; | ||
}); | ||
}); | ||
//# sourceMappingURL=Icon.js.map |
12
Link.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Link; | ||
@@ -48,2 +45,3 @@ | ||
/* eslint-enable fecs-prefer-class */ | ||
}); | ||
}); | ||
//# sourceMappingURL=Link.js.map |
13
Mask.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './dialog/windowScrollHelper', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './dialog/windowScrollHelper', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./dialog/windowScrollHelper'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./dialog/windowScrollHelper'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -25,3 +22,2 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var windowScrollHelper = babelHelpers.interopRequireWildcard(_windowScrollHelper); | ||
/** | ||
@@ -109,2 +105,3 @@ * @file melon/Mask | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Mask.js.map |
{ | ||
"name": "melon", | ||
"version": "0.3.5", | ||
"version": "0.3.7", | ||
"description": "ui components for react", | ||
@@ -12,12 +12,13 @@ "main": "./src", | ||
"devDependencies": { | ||
"babel-core": "^6.13.2", | ||
"babel-istanbul": "^0.11.0", | ||
"babel-loader": "^6.2.5", | ||
"babel-plugin-external-helpers": "^6.8.0", | ||
"babel-plugin-external-helpers-insert-require": "^1.0.0", | ||
"babel-plugin-transform-es2015-modules-umd": "^6.12.0", | ||
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0", | ||
"babel-plugin-transform-es3-property-literals": "^6.8.0", | ||
"babel-preset-es2015": "^6.13.2", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.8.0", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-react": "^6.11.1", | ||
"babel-preset-stage-1": "^6.13.0", | ||
"babel-preset-stage-2": "^6.13.0", | ||
"babelify": "^7.3.0", | ||
@@ -27,29 +28,49 @@ "browserify": "^13.1.0", | ||
"coveralls": "^2.11.12", | ||
"css-loader": "^0.24.0", | ||
"esdoc": "^0.4.8", | ||
"esdoc-es7-plugin": "0.0.3", | ||
"expect": "^1.12.2", | ||
"expect-jsx": "^2.0.1", | ||
"jasmine-core": "^2.4.1", | ||
"express": "^4.14.0", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"fecs": "^0.8.6", | ||
"file-loader": "^0.9.0", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-babel-external-helpers": "^2.0.2", | ||
"gulp-clean": "^0.3.2", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"html-webpack-harddisk-plugin": "0.0.2", | ||
"html-webpack-plugin": "^2.22.0", | ||
"jasmine": "^2.4.1", | ||
"jasmine-expect-jsx": "^1.1.2", | ||
"json-loader": "^0.5.4", | ||
"karma": "^1.2.0", | ||
"karma-babel-preprocessor": "^6.0.1", | ||
"karma-browserify": "^5.1.0", | ||
"karma-browserstack-launcher": "^1.1.1", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-coverage": "^1.1.1", | ||
"karma-firefox-launcher": "^1.0.0", | ||
"karma-jasmine": "^1.0.2", | ||
"karma-mocha-reporter": "^2.1.0", | ||
"karma-sauce-launcher": "^1.0.0", | ||
"lodash": "^3.10.1", | ||
"nib": "^1.1.2", | ||
"react-addons-test-utils": "^0.14.3", | ||
"stylus": "^0.54.2", | ||
"watchify": "^3.7.0" | ||
"numen": "^0.2.0", | ||
"react-addons-test-utils": "^0.14.8", | ||
"react-hot-loader": "^1.3.0", | ||
"rimraf": "^2.5.4", | ||
"style-loader": "^0.13.1", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^2.3.1", | ||
"watchify": "^3.7.0", | ||
"webpack": "^1.13.1", | ||
"webpack-dev-middleware": "^1.8.3", | ||
"webpack-hot-middleware": "^2.12.2" | ||
}, | ||
"scripts": { | ||
"test": "./node_modules/.bin/karma start ./tool/karma.conf.js", | ||
"test-ci": "./node_modules/.bin/karma start ./tool/karma.ci.conf.js", | ||
"coveralls": "cat ./coverage/lcov/lcov.info | ./node_modules/.bin/coveralls", | ||
"start": "node tools/server.js", | ||
"build": "rimraf lib && gulp build", | ||
"lint": "fecs src", | ||
"build": "sh tool/build.sh", | ||
"release": "sh tool/release.sh", | ||
"doc": "esdoc -c esdoc.json" | ||
"docs": "esdoc -c esdoc.json", | ||
"setup": "rimraf asset && webpack --config=tools/webpack.dll.js", | ||
"test": "./node_modules/.bin/karma start ./test/karma.conf.js", | ||
"test-ci": "./node_modules/.bin/karma start ./test/karma.ci.conf.js", | ||
"coveralls": "cat ./coverage/lcov/lcov.info | ./node_modules/.bin/coveralls" | ||
}, | ||
@@ -87,3 +108,29 @@ "repository": { | ||
"react-motion": "^0.4.2" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015", | ||
"stage-2", | ||
"react" | ||
] | ||
}, | ||
"babelBuild": { | ||
"presets": [ | ||
[ | ||
"es2015", | ||
{ | ||
"loose": true, | ||
"modules": "umd" | ||
} | ||
], | ||
"stage-2", | ||
"react" | ||
], | ||
"plugins": [ | ||
"external-helpers", | ||
"external-helpers-insert-require", | ||
"transform-es3-property-literals", | ||
"transform-es3-member-expression-literals" | ||
] | ||
} | ||
} |
12
Pager.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Icon', 'melon-core/classname/cxBuilder', 'melon-core/util/array', "./babelHelpers"], factory); | ||
define(['exports', 'react', './Icon', 'melon-core/classname/cxBuilder', 'melon-core/util/array', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Icon'), require('melon-core/classname/cxBuilder'), require('melon-core/util/array'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./Icon'), require('melon-core/classname/cxBuilder'), require('melon-core/util/array'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -331,2 +328,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Pager.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -105,3 +102,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
Progress.prototype.barUpdate = function barUpdate() { | ||
var step = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0]; | ||
var step = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; | ||
var barName = arguments[1]; | ||
@@ -136,3 +133,3 @@ var stepValues = arguments[2]; | ||
Progress.prototype.scalePath = function scalePath(path) { | ||
var step = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1]; | ||
var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
@@ -302,2 +299,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Progress.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './region/Selector', './region/Area', './region/helper', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', './region/Selector', './region/Area', './region/helper', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./region/Selector'), require('./region/Area'), require('./region/helper'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./region/Selector'), require('./region/Area'), require('./region/helper'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -189,2 +186,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
Region.contextTypes = _InputComponent3['default'].contextTypes; | ||
}); | ||
}); | ||
//# sourceMappingURL=Region.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Selector', './Province', './City', './helper', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Selector', './Province', './City', './helper', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Selector'), require('./Province'), require('./City'), require('./helper'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Selector'), require('./Province'), require('./City'), require('./helper'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -31,3 +28,2 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var helper = babelHelpers.interopRequireWildcard(_helper); | ||
/** | ||
@@ -137,3 +133,2 @@ * @file Region/RegionArea | ||
return _react2['default'].createElement( | ||
@@ -174,2 +169,3 @@ 'li', | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Area.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Selector', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Selector', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Selector'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Selector'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -47,3 +44,5 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
RegionCity.prototype.onSelectorChange = function onSelectorChange(e) { | ||
var value = e.value; | ||
var _props = this.props; | ||
@@ -62,5 +61,5 @@ var datasource = _props.datasource; | ||
RegionCity.prototype.render = function render() { | ||
var datasource = this.props.datasource; | ||
return _react2['default'].createElement( | ||
@@ -90,2 +89,3 @@ 'li', | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=City.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "../babelHelpers"], factory); | ||
define(["exports"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("../babelHelpers")); | ||
factory(exports); | ||
} else { | ||
@@ -11,11 +10,9 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.babelHelpers); | ||
factory(mod.exports); | ||
global.helper = mod.exports; | ||
} | ||
})(this, function (exports, babelHelpers) { | ||
})(this, function (exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.selectAll = selectAll; | ||
@@ -25,3 +22,2 @@ exports.cancelAll = cancelAll; | ||
exports.isAllSelected = isAllSelected; | ||
/** | ||
@@ -74,2 +70,3 @@ * @file melon/region/mixin | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=helper.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Selector', './helper', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Selector', './helper', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Selector'), require('./helper'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Selector'), require('./helper'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -27,3 +24,2 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var helper = babelHelpers.interopRequireWildcard(_helper); | ||
/** | ||
@@ -56,2 +52,3 @@ * @file Region/RegionProvince | ||
RegionProvince.prototype.onSelectorChange = function onSelectorChange(e) { | ||
var value = e.value; | ||
@@ -79,5 +76,5 @@ var _props = this.props; | ||
RegionProvince.prototype.renderSelectedInfo = function renderSelectedInfo() { | ||
var datasource = this.props.datasource; | ||
var total = datasource.children && datasource.children.length; | ||
@@ -143,2 +140,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Province.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', '../Icon', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', '../Icon', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('../Icon'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('../Icon'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -117,2 +114,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Selector.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './RippleCircle', 'react-motion', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './RippleCircle', 'react-motion', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./RippleCircle'), require('react-motion'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./RippleCircle'), require('react-motion'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -76,5 +73,5 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var children = _props.children; | ||
var now = this.state.now; | ||
var styles = [{ | ||
@@ -135,2 +132,3 @@ key: now, | ||
CenterRipple.displayName = 'CenterRipple'; | ||
}); | ||
}); | ||
//# sourceMappingURL=CenterRipple.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', "../babelHelpers"], factory); | ||
define(['exports', 'react', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -76,2 +73,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=RippleCircle.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', './RippleCircle', '../common/util/dom', 'melon-core/classname/cxBuilder', 'react-motion', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', './RippleCircle', '../common/util/dom', 'melon-core/classname/cxBuilder', 'react-motion', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('./RippleCircle'), require('../common/util/dom'), require('melon-core/classname/cxBuilder'), require('react-motion'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('./RippleCircle'), require('../common/util/dom'), require('melon-core/classname/cxBuilder'), require('react-motion'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -157,2 +154,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=TouchRipple.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './scrollview/Bar', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', './scrollview/Bar', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./scrollview/Bar'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./scrollview/Bar'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -90,5 +87,6 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var content = _refs.content; | ||
var position = this.state.position; | ||
this.getDirections().forEach(function (key) { | ||
@@ -105,2 +103,4 @@ var contentSize = content[SIZES[key]]; | ||
ScrollView.prototype.onAction = function onAction(direction, e) { | ||
var _setScrollPercent; | ||
var action = e.action; | ||
@@ -112,5 +112,3 @@ var position = e.position; | ||
case 'change': | ||
var pos = {}; | ||
pos[direction] = position; | ||
this.setScrollPercent(pos); | ||
this.setScrollPercent((_setScrollPercent = {}, _setScrollPercent[direction] = position, _setScrollPercent)); | ||
break; | ||
@@ -126,3 +124,2 @@ } | ||
var current = this.state.position; | ||
@@ -176,3 +173,2 @@ | ||
var direction = this.props.direction; | ||
var directions = direction === 'both' ? Object.keys(DIRECTIONS) : [direction]; | ||
@@ -189,3 +185,2 @@ return directions; | ||
return directions.map(function (dir, index) { | ||
@@ -250,2 +245,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=ScrollView.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../common/util/dom', '../common/util/fn', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../common/util/dom', '../common/util/fn', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../common/util/dom'), require('../common/util/fn'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../common/util/dom'), require('../common/util/fn'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -25,3 +22,2 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var dom = babelHelpers.interopRequireWildcard(_dom); | ||
/** | ||
@@ -123,5 +119,6 @@ * @file melon/ScrollViewBar | ||
var thumbSize = _props2.thumbSize; | ||
var main = this.refs.main; | ||
var me = this; | ||
@@ -222,2 +219,3 @@ var isVertical = direction === 'vertical'; | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Bar.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', './Icon', './select/SeparatePopup', 'melon-core/Validity', 'melon-core/InputComponent', './select/OptionGroup', './select/Option', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', './Icon', './select/SeparatePopup', 'melon-core/Validity', 'melon-core/InputComponent', './select/OptionGroup', './select/Option', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('./Icon'), require('./select/SeparatePopup'), require('melon-core/Validity'), require('melon-core/InputComponent'), require('./select/OptionGroup'), require('./select/Option'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('./Icon'), require('./select/SeparatePopup'), require('melon-core/Validity'), require('melon-core/InputComponent'), require('./select/OptionGroup'), require('./select/Option'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.createOptions = createOptions; | ||
@@ -345,2 +342,3 @@ | ||
Select.createOptions = createOptions; | ||
}); | ||
}); | ||
//# sourceMappingURL=Select.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = SelectOption; | ||
@@ -73,2 +70,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Option.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Option', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', './Option', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Option'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('./Option'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = SelectOptionGroup; | ||
@@ -71,2 +68,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=OptionGroup.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-motion', '../common/util/dom', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'react-motion', '../common/util/dom', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-motion'), require('../common/util/dom'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('react-motion'), require('../common/util/dom'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -239,2 +236,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=SeparatePopup.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Table', './table/SelectorColumn', './table/SelectorRow', "./babelHelpers"], factory); | ||
define(['exports', 'react', './Table', './table/SelectorColumn', './table/SelectorRow', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Table'), require('./table/SelectorColumn'), require('./table/SelectorRow'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./Table'), require('./table/SelectorColumn'), require('./table/SelectorRow'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -213,2 +210,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=SelectableTable.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', 'melon-core/InputComponent', 'melon-core/Validity', 'melon-core/classname/cxBuilder', './common/util/dom', './slider/Bar', './slider/getNewValue', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', 'melon-core/InputComponent', 'melon-core/Validity', 'melon-core/classname/cxBuilder', './common/util/dom', './slider/Bar', './slider/getNewValue', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('melon-core/InputComponent'), require('melon-core/Validity'), require('melon-core/classname/cxBuilder'), require('./common/util/dom'), require('./slider/Bar'), require('./slider/getNewValue'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('melon-core/InputComponent'), require('melon-core/Validity'), require('melon-core/classname/cxBuilder'), require('./common/util/dom'), require('./slider/Bar'), require('./slider/getNewValue'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -232,2 +229,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=Slider.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../Tooltip', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../Tooltip', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../Tooltip'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../Tooltip'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -117,2 +114,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Bar.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "../common/util/dom", "../babelHelpers"], factory); | ||
define(['exports', '../common/util/dom', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("../common/util/dom"), require("../babelHelpers")); | ||
factory(exports, require('../common/util/dom'), require('../babelHelpers')); | ||
} else { | ||
@@ -15,9 +14,6 @@ var mod = { | ||
})(this, function (exports, _dom, babelHelpers) { | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = getNewValue; | ||
/** | ||
@@ -37,2 +33,3 @@ * @file 获取新值 | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=getNewValue.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', './Button', './common/util/dom', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', './Button', './common/util/dom', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('./Button'), require('./common/util/dom'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('./Button'), require('./common/util/dom'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -29,3 +26,2 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
var dom = babelHelpers.interopRequireWildcard(_dom); | ||
/** | ||
@@ -259,4 +255,4 @@ * @file melon/SnackBar | ||
SnackBar.show = function (message) { | ||
var duration = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1]; | ||
var direction = arguments.length <= 2 || arguments[2] === undefined ? 'bl' : arguments[2]; | ||
var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; | ||
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'bl'; | ||
@@ -295,2 +291,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=SnackBar.js.map |
12
Table.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './table/Row', './common/util/dom', 'melon-core/classname/cxBuilder', './table/Column', "./babelHelpers"], factory); | ||
define(['exports', 'react', './table/Row', './common/util/dom', 'melon-core/classname/cxBuilder', './table/Column', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./table/Row'), require('./common/util/dom'), require('melon-core/classname/cxBuilder'), require('./table/Column'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./table/Row'), require('./common/util/dom'), require('melon-core/classname/cxBuilder'), require('./table/Column'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -236,2 +233,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
Table.Column = _Column2['default']; | ||
}); | ||
}); | ||
//# sourceMappingURL=Table.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -106,2 +103,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Cell.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', "../babelHelpers"], factory); | ||
define(['exports', 'react', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -91,2 +88,3 @@ var TableColumn = function (_Component) { | ||
TableColumn._TABLE_COMPONENT_ = 'COLUMN'; | ||
}); | ||
}); | ||
//# sourceMappingURL=Column.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Cell', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './Cell', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Cell'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./Cell'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -172,2 +169,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Row.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', '../Icon', './Column', "../babelHelpers"], factory); | ||
define(['exports', 'react', '../Icon', './Column', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('../Icon'), require('./Column'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('../Icon'), require('./Column'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -120,2 +117,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
TableSelectorColumn._TABLE_COMPONENT_ = 'COLUMN'; | ||
}); | ||
}); | ||
//# sourceMappingURL=SelectorColumn.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Row', "../babelHelpers"], factory); | ||
define(['exports', 'react', './Row', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Row'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('./Row'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -54,2 +51,3 @@ var _Row3 = babelHelpers.interopRequireDefault(_Row2); | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=SelectorRow.js.map |
12
Tabs.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './tabs/Tab', './tabs/Panel', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', './tabs/Tab', './tabs/Panel', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./tabs/Tab'), require('./tabs/Panel'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./tabs/Tab'), require('./tabs/Panel'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -203,2 +200,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
Tabs.Tab = _Tab2['default']; | ||
}); | ||
}); | ||
//# sourceMappingURL=Tabs.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = TabsPanel; | ||
@@ -56,2 +53,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Panel.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Tab; | ||
@@ -69,2 +66,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Tab.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', './textbox/FloatLabel', './textbox/Input', 'melon-core/Validity', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', './textbox/FloatLabel', './textbox/Input', 'melon-core/Validity', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('./textbox/FloatLabel'), require('./textbox/Input'), require('melon-core/Validity'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('./textbox/FloatLabel'), require('./textbox/Input'), require('melon-core/Validity'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -94,5 +91,10 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
TextBox.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
var value = nextProps.value; | ||
var defaultValue = nextProps.defaultValue; | ||
if (value === void 0) { | ||
value = defaultValue; | ||
} | ||
// 多行文本框应该可以自动更新高度 | ||
@@ -280,2 +282,3 @@ if (nextProps.multiline && this.state.value !== value) { | ||
TextBox.contextTypes = _InputComponent3['default'].contextTypes; | ||
}); | ||
}); | ||
//# sourceMappingURL=TextBox.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = TextBoxFloatingLabel; | ||
@@ -55,2 +52,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=FloatLabel.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,6 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
/** | ||
@@ -72,2 +68,3 @@ * @file TextBox/Input | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Input.js.map |
12
Title.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = Title; | ||
@@ -58,2 +55,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Title.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', './ripples/CenterRipple', 'melon-core/Validity', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', './ripples/CenterRipple', 'melon-core/Validity', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require('./ripples/CenterRipple'), require('melon-core/Validity'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require('./ripples/CenterRipple'), require('melon-core/Validity'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -150,2 +147,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
Toggle.contextTypes = _InputComponent3['default'].contextTypes; | ||
}); | ||
}); | ||
//# sourceMappingURL=Toggle.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
exports.default = ToolBar; | ||
@@ -50,2 +47,3 @@ | ||
ToolBar.displayName = 'ToolBar'; | ||
}); | ||
}); | ||
//# sourceMappingURL=ToolBar.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', './common/util/dom', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', './common/util/dom', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('./common/util/dom'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('./common/util/dom'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -274,2 +271,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
})(); | ||
}); | ||
}); | ||
//# sourceMappingURL=Tooltip.js.map |
14
Tree.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'react-dom', 'melon-core/classname/cxBuilder', './tree/TreeNode', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'react-dom', 'melon-core/classname/cxBuilder', './tree/TreeNode', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('react-dom'), require('melon-core/classname/cxBuilder'), require('./tree/TreeNode'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('react-dom'), require('melon-core/classname/cxBuilder'), require('./tree/TreeNode'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -130,3 +127,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
Tree.createTreeNodes = function (datasource) { | ||
var level = arguments.length <= 1 || arguments[1] === undefined ? 1 : arguments[1]; | ||
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; | ||
@@ -169,2 +166,3 @@ | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Tree.js.map |
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../Icon', "../babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', '../Icon', '../babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../Icon'), require("../babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('../Icon'), require('../babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -159,2 +156,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
TreeNode.ICON = ['expand-less', 'expand-more']; | ||
}); | ||
}); | ||
//# sourceMappingURL=TreeNode.js.map |
147
Uploader.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', './Button', './Icon', './Progress', './Link', 'melon-core/Validity', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', './Button', './Icon', './Progress', './Link', 'melon-core/Validity', 'melon-core/InputComponent', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('./Button'), require('./Icon'), require('./Progress'), require('./Link'), require('melon-core/Validity'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('./Button'), require('./Icon'), require('./Progress'), require('./Link'), require('melon-core/Validity'), require('melon-core/InputComponent'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -93,12 +90,44 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
this.props.upload({ | ||
var _props = this.props; | ||
var upload = _props.upload; | ||
var onSelect = _props.onSelect; | ||
var event = { | ||
target: this, | ||
files: e.target.files | ||
}).then(function (result) { | ||
return _this2.setFile(result); | ||
}, function (error) { | ||
return _this2.clearFile(); | ||
}); | ||
}; | ||
if (upload) { | ||
upload(event).then(function (result) { | ||
return _this2.setFile(result); | ||
}, function (error) { | ||
return _this2.clearFile(); | ||
}); | ||
return; | ||
} | ||
onSelect(event); | ||
}; | ||
Uploader.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
var value = nextProps.value; | ||
_InputComponent.prototype.componentWillReceiveProps.call(this, nextProps); | ||
if (value) { | ||
this.setState({ | ||
isUploaded: true, | ||
isUploading: false, | ||
value: value | ||
}); | ||
} else { | ||
this.setState({ | ||
isUploaded: false, | ||
value: value | ||
}); | ||
} | ||
}; | ||
Uploader.prototype.setUploading = function setUploading() { | ||
@@ -111,29 +140,28 @@ this.setState({ | ||
Uploader.prototype.setFile = function setFile(value) { | ||
var _this3 = this; | ||
this.setState({ | ||
isUploaded: true, | ||
isUploading: false | ||
}, function () { | ||
_InputComponent.prototype.onChange.call(_this3, { | ||
type: 'change', | ||
target: _this3, | ||
value: value | ||
}); | ||
isUploading: false, | ||
value: value | ||
}); | ||
_InputComponent.prototype.onChange.call(this, { | ||
type: 'change', | ||
target: this, | ||
value: value | ||
}); | ||
}; | ||
Uploader.prototype.clearFile = function clearFile() { | ||
var _this4 = this; | ||
this.setState({ | ||
isUploaded: false, | ||
isUploading: false | ||
}, function () { | ||
isUploading: false, | ||
value: '' | ||
}); | ||
_InputComponent.prototype.onChange.call(_this4, { | ||
type: 'change', | ||
target: _this4, | ||
value: '' | ||
}); | ||
_InputComponent.prototype.onChange.call(this, { | ||
type: 'change', | ||
target: this, | ||
value: '' | ||
}); | ||
@@ -143,3 +171,3 @@ }; | ||
Uploader.prototype.renderUploadFile = function renderUploadFile() { | ||
var _this5 = this; | ||
var _this3 = this; | ||
@@ -156,3 +184,3 @@ var _state = this.state; | ||
onChange: function onChange(e) { | ||
_this5.onFileChange(e); | ||
_this3.onFileChange(e); | ||
}, | ||
@@ -163,3 +191,3 @@ accept: this.props.accept }); | ||
Uploader.prototype.renderUploadButton = function renderUploadButton() { | ||
var _this6 = this; | ||
var _this4 = this; | ||
@@ -170,5 +198,5 @@ var _state2 = this.state; | ||
var value = _state2.value; | ||
var _props = this.props; | ||
var size = _props.size; | ||
var btnText = _props.btnText; | ||
var _props2 = this.props; | ||
var size = _props2.size; | ||
var placeholder = _props2.placeholder; | ||
@@ -187,5 +215,6 @@ | ||
'div', | ||
{ className: cx().part('uploaded').build() }, | ||
_react2['default'].createElement(_Icon2['default'], { icon: 'done', size: size }), | ||
' 已上传', | ||
{ className: cx.getPartClassName('content') }, | ||
_react2['default'].createElement('image', { | ||
className: cx.getPartClassName('preview'), | ||
src: value }), | ||
_react2['default'].createElement( | ||
@@ -196,5 +225,5 @@ _Link2['default'], | ||
href: value, | ||
variants: ['button'], | ||
title: '\u70B9\u51FB\u67E5\u770B', | ||
target: '_blank' }, | ||
'查看' | ||
value | ||
), | ||
@@ -206,6 +235,7 @@ _react2['default'].createElement( | ||
type: 'button', | ||
title: '\u91CD\u65B0\u9009\u62E9', | ||
onClick: function onClick() { | ||
_this6.clearFile(); | ||
_this4.clearFile(); | ||
} }, | ||
'重选' | ||
_react2['default'].createElement(_Icon2['default'], { icon: 'refresh' }) | ||
) | ||
@@ -216,11 +246,14 @@ ); | ||
return _react2['default'].createElement( | ||
_Button2['default'], | ||
'div', | ||
{ | ||
type: 'button', | ||
variants: ['raised'], | ||
className: cx.getPartClassName('content'), | ||
onClick: function onClick() { | ||
_this6.refs.file.click(); | ||
_this4.refs.file.click(); | ||
} }, | ||
_react2['default'].createElement(_Icon2['default'], { icon: 'file-upload' }), | ||
btnText | ||
_react2['default'].createElement( | ||
'span', | ||
{ className: cx.getPartClassName('placeholder') }, | ||
placeholder | ||
) | ||
); | ||
@@ -234,14 +267,12 @@ }; | ||
var name = props.name; | ||
var label = props.label; | ||
var style = props.style; | ||
var className = cx(props).addStates(this.getStyleStates()).build(); | ||
return _react2['default'].createElement( | ||
'div', | ||
{ className: cx(props).addStates(this.getStyleStates()).build() }, | ||
{ | ||
className: className, | ||
style: style }, | ||
_react2['default'].createElement('input', { name: name, type: 'hidden', value: value }), | ||
label ? _react2['default'].createElement( | ||
'label', | ||
{ className: cx().part('label').build() }, | ||
label | ||
) : null, | ||
this.renderUploadFile(), | ||
@@ -262,12 +293,9 @@ this.renderUploadButton(), | ||
Uploader.propTypes = babelHelpers['extends']({}, _InputComponent3['default'].propTypes, { | ||
multiple: _react.PropTypes.bool, | ||
accept: _react.PropTypes.string, | ||
files: _react.PropTypes.array, | ||
upload: _react.PropTypes.func.isRequired, | ||
btnText: _react.PropTypes.string, | ||
label: _react.PropTypes.string | ||
placeholder: _react.PropTypes.string | ||
}); | ||
Uploader.defaultProps = babelHelpers['extends']({}, _InputComponent3['default'].defaultProps, { | ||
btnText: '点击上传' | ||
placeholder: '点击上传' | ||
}); | ||
@@ -277,2 +305,3 @@ | ||
Uploader.contextTypes = _InputComponent3['default'].contextTypes; | ||
}); | ||
}); | ||
//# sourceMappingURL=Uploader.js.map |
12
Zippy.js
@@ -1,7 +0,6 @@ | ||
/*! 2016 Baidu Inc. All Rights Reserved */ | ||
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', "./babelHelpers"], factory); | ||
define(['exports', 'react', 'melon-core/classname/cxBuilder', './babelHelpers'], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require("./babelHelpers")); | ||
factory(exports, require('react'), require('melon-core/classname/cxBuilder'), require('./babelHelpers')); | ||
} else { | ||
@@ -17,5 +16,3 @@ var mod = { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.__esModule = true; | ||
@@ -85,2 +82,3 @@ var _react2 = babelHelpers.interopRequireDefault(_react); | ||
}; | ||
}); | ||
}); | ||
//# sourceMappingURL=Zippy.js.map |
Sorry, the diff of this file is not supported yet
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
1289247
171
52
7
6595