@progress/kendo-react-common
Advanced tools
Comparing version 1.1.0-dev.201806060837 to 1.1.0-dev.201806121401
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],t):"object"==typeof exports?exports.KendoReactCommon=t(require("prop-types"),require("react")):e.KendoReactCommon=t(e.PropTypes,e.React)}(window,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(function(e){return!0!==e&&!!e}).map(function(e){return Array.isArray(e)?t.classNames.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,n){return e[n]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),i=n(1),a=n(0),s=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},n.state={focused:!1},n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,o=e.value,i=e.placeholder,s=e.valid,c=e.style,l=a.classNames({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(o||i),"k-state-invalid":!s&&void 0!==s},r);return u.createElement("span",{className:l,onFocus:this.handleFocus,onBlur:this.handleBlur,style:c},this.props.children,t?n?u.createElement("label",{htmlFor:n,className:"k-label"},t):u.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:i.string,id:i.string,value:i.string,placeholder:i.string,valid:i.bool},t}(u.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.noop=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.guid=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.classNames=r.classNames;var o=n(5);t.guid=o.guid;var u=n(4);t.noop=u.noop;var i=n(3);t.FloatingLabel=i.default}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prop-types"),require("react")):"function"==typeof define&&define.amd?define(["prop-types","react"],t):"object"==typeof exports?exports.KendoReactCommon=t(require("prop-types"),require("react")):e.KendoReactCommon=t(e.PropTypes,e.React)}(window,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(function(e){return!0!==e&&!!e}).map(function(e){return Array.isArray(e)?t.classNames.apply(void 0,e):"object"==typeof e?Object.keys(e).map(function(t,n){return e[n]||e[t]&&t||null}).filter(function(e){return null!==e}).join(" "):e}).filter(function(e){return!!e}).join(" ")}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),a=n(1),i=n(0),s=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},n.state={focused:!1},n}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,o=e.value,a=e.placeholder,s=e.valid,c=e.style,l=i.classNames({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(o||a),"k-state-invalid":!s&&void 0!==s},r);return u.createElement("span",{className:l,onFocus:this.handleFocus,onBlur:this.handleBlur,style:c},this.props.children,t?n?u.createElement("label",{htmlFor:n,className:"k-label"},t):u.createElement("span",{className:"k-label"},t):null)},t.propTypes={label:a.string,id:a.string,value:a.string,placeholder:a.string,valid:a.bool},t}(u.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.noop=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Keys={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.guid=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.classNames=r.classNames;var o=n(6);t.guid=o.guid;var u=n(5);t.Keys=u.Keys;var a=n(4);t.noop=a.noop;var i=n(3);t.FloatingLabel=i.default}])}); |
/** | ||
* @hidden | ||
*/ | ||
declare const enum Keys { | ||
'backspace' = 8, | ||
'tab' = 9, | ||
'enter' = 13, | ||
'shift' = 16, | ||
'ctrl' = 17, | ||
'alt' = 18, | ||
'pauseBreak' = 19, | ||
'capsLock' = 20, | ||
'esc' = 27, | ||
'space' = 32, | ||
'pageUp' = 33, | ||
'pageDown' = 34, | ||
'end' = 35, | ||
'home' = 36, | ||
'left' = 37, | ||
'up' = 38, | ||
'right' = 39, | ||
'down' = 40, | ||
'insert' = 45, | ||
'delete' = 46, | ||
'command' = 91, | ||
'leftCommand' = 91, | ||
'rightCommand' = 93, | ||
'numpad *' = 106, | ||
'numpad +' = 107, | ||
'numpad -' = 109, | ||
'numpad .' = 110, | ||
'numpad /' = 111, | ||
'numLock' = 144, | ||
'scrollLock' = 145, | ||
'myComputer' = 182, | ||
'myCalculator' = 183, | ||
';' = 186, | ||
'=' = 187, | ||
',' = 188, | ||
'-' = 189, | ||
'.' = 190, | ||
'/' = 191, | ||
'`' = 192, | ||
'[' = 219, | ||
'\\' = 220, | ||
']' = 221, | ||
'\'' = 222 | ||
} | ||
declare const Keys: { | ||
backspace: number; | ||
tab: number; | ||
enter: number; | ||
shift: number; | ||
esc: number; | ||
space: number; | ||
pageUp: number; | ||
pageDown: number; | ||
end: number; | ||
home: number; | ||
left: number; | ||
up: number; | ||
right: number; | ||
down: number; | ||
delete: number; | ||
}; | ||
export { Keys }; |
@@ -0,1 +1,22 @@ | ||
/** | ||
* @hidden | ||
*/ | ||
var Keys = { | ||
backspace: 8, | ||
tab: 9, | ||
enter: 13, | ||
shift: 16, | ||
esc: 27, | ||
space: 32, | ||
pageUp: 33, | ||
pageDown: 34, | ||
end: 35, | ||
home: 36, | ||
left: 37, | ||
up: 38, | ||
right: 39, | ||
down: 40, | ||
delete: 46 | ||
}; | ||
export { Keys }; | ||
//# sourceMappingURL=keys.js.map |
import { classNames } from './classNames'; | ||
import { guid } from './guid'; | ||
import { Keys } from './keys'; | ||
import { noop } from './noop'; | ||
import FloatingLabel from './FloatingLabel'; | ||
export { classNames, guid, noop, FloatingLabel }; | ||
export { classNames, guid, Keys, noop, FloatingLabel }; | ||
//# sourceMappingURL=main.js.map |
/** | ||
* @hidden | ||
*/ | ||
declare const enum Keys { | ||
'backspace' = 8, | ||
'tab' = 9, | ||
'enter' = 13, | ||
'shift' = 16, | ||
'ctrl' = 17, | ||
'alt' = 18, | ||
'pauseBreak' = 19, | ||
'capsLock' = 20, | ||
'esc' = 27, | ||
'space' = 32, | ||
'pageUp' = 33, | ||
'pageDown' = 34, | ||
'end' = 35, | ||
'home' = 36, | ||
'left' = 37, | ||
'up' = 38, | ||
'right' = 39, | ||
'down' = 40, | ||
'insert' = 45, | ||
'delete' = 46, | ||
'command' = 91, | ||
'leftCommand' = 91, | ||
'rightCommand' = 93, | ||
'numpad *' = 106, | ||
'numpad +' = 107, | ||
'numpad -' = 109, | ||
'numpad .' = 110, | ||
'numpad /' = 111, | ||
'numLock' = 144, | ||
'scrollLock' = 145, | ||
'myComputer' = 182, | ||
'myCalculator' = 183, | ||
';' = 186, | ||
'=' = 187, | ||
',' = 188, | ||
'-' = 189, | ||
'.' = 190, | ||
'/' = 191, | ||
'`' = 192, | ||
'[' = 219, | ||
'\\' = 220, | ||
']' = 221, | ||
'\'' = 222 | ||
} | ||
declare const Keys: { | ||
backspace: number; | ||
tab: number; | ||
enter: number; | ||
shift: number; | ||
esc: number; | ||
space: number; | ||
pageUp: number; | ||
pageDown: number; | ||
end: number; | ||
home: number; | ||
left: number; | ||
up: number; | ||
right: number; | ||
down: number; | ||
delete: number; | ||
}; | ||
export { Keys }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @hidden | ||
*/ | ||
var Keys = { | ||
backspace: 8, | ||
tab: 9, | ||
enter: 13, | ||
shift: 16, | ||
esc: 27, | ||
space: 32, | ||
pageUp: 33, | ||
pageDown: 34, | ||
end: 35, | ||
home: 36, | ||
left: 37, | ||
up: 38, | ||
right: 39, | ||
down: 40, | ||
delete: 46 | ||
}; | ||
exports.Keys = Keys; | ||
//# sourceMappingURL=keys.js.map |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.guid = guid_1.guid; | ||
var keys_1 = require("./keys"); | ||
exports.Keys = keys_1.Keys; | ||
var noop_1 = require("./noop"); | ||
@@ -9,0 +11,0 @@ exports.noop = noop_1.noop; |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-common",["react","prop-types"],function(i){var n,r;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){r=t(e)}],execute:function(){!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=6)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.classNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!0!==e&&!!e}).map(function(n){return Array.isArray(n)?r.classNames.apply(void 0,n):"object"==typeof n?Object.keys(n).map(function(e,t){return n[t]||n[e]&&e||null}).filter(function(e){return null!==e}).join(" "):n}).filter(function(e){return!!e}).join(" ")}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),u=n(1),l=n(0),a=function(n){function e(e){var t=n.call(this,e)||this;return t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t.state={focused:!1},t}return o(e,n),e.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,o=e.value,u=e.placeholder,a=e.valid,i=e.style,s=l.classNames({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(o||u),"k-state-invalid":!a&&void 0!==a},r);return c.createElement("span",{className:s,onFocus:this.handleFocus,onBlur:this.handleBlur,style:i},this.props.children,t?n?c.createElement("label",{htmlFor:n,className:"k-label"},t):c.createElement("span",{className:"k-label"},t):null)},e.propTypes={label:u.string,id:u.string,value:u.string,placeholder:u.string,valid:u.bool},e}(c.Component);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.classNames=r.classNames;var o=n(5);t.guid=o.guid;var u=n(4);t.noop=u.noop;var a=n(3);t.FloatingLabel=a.default,function(e){for(var t in e)i(t,e[t])}(t)}])}}}); | ||
System.register("@progress/kendo-react-common",["react","prop-types"],function(i){var n,r;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){n=t(e)},function(e){r=t(e)}],execute:function(){!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=7)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.classNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return!0!==e&&!!e}).map(function(n){return Array.isArray(n)?r.classNames.apply(void 0,n):"object"==typeof n?Object.keys(n).map(function(e,t){return n[t]||n[e]&&e||null}).filter(function(e){return null!==e}).join(" "):n}).filter(function(e){return!!e}).join(" ")}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),u=n(1),l=n(0),a=function(n){function e(e){var t=n.call(this,e)||this;return t.handleFocus=function(e){t.setState({focused:!0})},t.handleBlur=function(e){t.setState({focused:!1})},t.state={focused:!1},t}return o(e,n),e.prototype.render=function(){var e=this.props,t=e.label,n=e.id,r=e.className,o=e.value,u=e.placeholder,a=e.valid,s=e.style,i=l.classNames({"k-textbox-container":!0,"k-state-focused":this.state.focused,"k-state-empty":!(o||u),"k-state-invalid":!a&&void 0!==a},r);return c.createElement("span",{className:i,onFocus:this.handleFocus,onBlur:this.handleBlur,style:s},this.props.children,t?n?c.createElement("label",{htmlFor:n,className:"k-label"},t):c.createElement("span",{className:"k-label"},t):null)},e.propTypes={label:u.string,id:u.string,value:u.string,placeholder:u.string,valid:u.bool},e}(c.Component);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Keys={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.guid=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.classNames=r.classNames;var o=n(6);t.guid=o.guid;var u=n(5);t.Keys=u.Keys;var a=n(4);t.noop=a.noop;var s=n(3);t.FloatingLabel=s.default,function(e){for(var t in e)i(t,e[t])}(t)}])}}}); |
{ | ||
"name": "@progress/kendo-react-common", | ||
"description": "Kendo UI for React Common Utilities package", | ||
"version": "1.1.0-dev.201806060837", | ||
"version": "1.1.0-dev.201806121401", | ||
"repository": { | ||
@@ -14,3 +14,3 @@ "type": "git", | ||
"scripts": { | ||
"test": "gulp test", | ||
"test": "cd ../../ && npm run test -- --testPathPattern=/packages/utils/.*", | ||
"e2e": "gulp e2e", | ||
@@ -17,0 +17,0 @@ "start": "gulp start", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
32345
470