├── .gitignore ├── .npmignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── docs ├── asset-manifest.json ├── favicon.ico ├── index.html ├── precache-manifest.e012afa12f2c99b2d230df197b606f82.js └── static │ ├── css │ ├── main.6ba08d2b.chunk.css │ └── main.6ba08d2b.chunk.css.map │ └── js │ ├── 1.6582865d.chunk.js │ ├── 1.6582865d.chunk.js.map │ ├── main.20a12729.chunk.js │ ├── main.20a12729.chunk.js.map │ ├── runtime~main.e8bd0c2b.js │ └── runtime~main.e8bd0c2b.js.map ├── index.js ├── lib ├── HandleBar.js ├── Helpers.js ├── Pane.js ├── Splitter.js ├── index.js ├── splitters.css └── typings │ └── index.d.ts ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.css ├── App.scss ├── App.tsx ├── components │ └── Splitters │ │ ├── HandleBar.tsx │ │ ├── Helpers.ts │ │ ├── Pane.tsx │ │ ├── Splitter.tsx │ │ ├── index.tsx │ │ ├── splitters.css │ │ ├── splitters.scss │ │ └── typings │ │ └── index.d.ts └── index.tsx ├── tsconfig.json ├── tsconfig.prod.json ├── tslint.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env 15 | .idea 16 | npm-debug.log* 17 | yarn-debug.log* 18 | yarn-error.log* 19 | 20 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | /docs 12 | /public 13 | /src 14 | /tsconfig.json 15 | /tslint.json 16 | 17 | # misc 18 | .DS_Store 19 | .env 20 | .idea 21 | yarn.lock 22 | npm-debug.log* 23 | yarn-debug.log* 24 | yarn-error.log* 25 | 26 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at martinnovak@outlook.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | If you have some idea how to improve React-Splitters feel free to open pull request. 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Martin Novák 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Splitters for React 2 | 3 | v. 1.2.0 4 | 5 | **New version changes** 6 | 7 | * fixed [issue](https://github.com/martinnov92/React-Splitters/issues/15) 8 | 9 | v. 1.1.0 10 | 11 | **New version changes** 12 | 13 | * fixed issue with `getBoundingClientRect` in React 16 14 | 15 | [NPM](https://www.npmjs.com/package/m-react-splitters) 16 | 17 | [Demo](https://martinnov92.github.io/React-Splitters/) 18 | 19 | Install: `npm install --save m-react-splitters` 20 | 21 | --------- 22 | 23 | Splitters for React has been written in TypeScript. 24 | 25 | This splitter supports touch screens. 26 | 27 | There are two options how the splitter can work. 28 | You can either select to resize splitters as you are holding and dragging the handlebar, or you can 29 | postponed the resize. 30 | 31 | Splitters can be nested, but you have to specify what positions (vertical / horizontal) are they going to be and their sizes. 32 | 33 | Left pane's (primary) width is calculated by `JavaScript`, the other panel's width is set by `CSS`. 34 | 35 | Usage in your projects: 36 | Please import splitters like this: 37 | 38 | ``` 39 | import Splitter from 'm-react-splitters'; 40 | import 'm-react-splitters/lib/splitters.css'; 41 | ``` 42 | 43 | Vertical splitter 44 | ```js 45 | primaryPaneMinWidth={number} 46 | primaryPaneMaxWidth="string" (% or px) 47 | primaryPaneWidth="string" (% or px) 48 | ``` 49 | 50 | Vertical splitter 51 | ```js 52 | primaryPaneMinWidth={number} 53 | primaryPaneMaxWidth="string" (% or px) 54 | primaryPaneWidth="string" (% or px) 55 | ``` 56 | 57 | Horizontal splitter 58 | ```js 59 | primaryPaneMinHeight={number} 60 | primaryPaneMaxHeight="string" (% or px) 61 | primaryPaneHeight="string" (% or px) 62 | ``` 63 | 64 | Another options for splitter are: 65 | 66 | * `postPoned`: Boolean 67 | 68 | * this specifies how the resize will work 69 | * default is false 70 | 71 | * `className`: string 72 | * `primaryPaneClassName`: string 73 | * `secondaryPaneClassName`: string 74 | * `dispatchResize`: Boolean 75 | 76 | * This dispatch resize event, it is meant for other components which resize on window resize 77 | * it's something like temporary callback function 78 | * Default is false 79 | 80 | * or you can use: 81 | 82 | `onDragFinished`: function 83 | 84 | * `maximizedPrimaryPane`: Boolean 85 | * `minimalizedPrimaryPane`: Boolean 86 | 87 | ```tsx 88 | 96 | 103 |
104 |
105 |
106 |
107 |
108 | ``` -------------------------------------------------------------------------------- /docs/asset-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "main.css": "/React-Splitters/static/css/main.6ba08d2b.chunk.css", 3 | "main.js": "/React-Splitters/static/js/main.20a12729.chunk.js", 4 | "main.js.map": "/React-Splitters/static/js/main.20a12729.chunk.js.map", 5 | "static/js/1.6582865d.chunk.js": "/React-Splitters/static/js/1.6582865d.chunk.js", 6 | "static/js/1.6582865d.chunk.js.map": "/React-Splitters/static/js/1.6582865d.chunk.js.map", 7 | "runtime~main.js": "/React-Splitters/static/js/runtime~main.e8bd0c2b.js", 8 | "runtime~main.js.map": "/React-Splitters/static/js/runtime~main.e8bd0c2b.js.map", 9 | "static/css/main.6ba08d2b.chunk.css.map": "/React-Splitters/static/css/main.6ba08d2b.chunk.css.map", 10 | "index.html": "/React-Splitters/index.html", 11 | "precache-manifest.e012afa12f2c99b2d230df197b606f82.js": "/React-Splitters/precache-manifest.e012afa12f2c99b2d230df197b606f82.js", 12 | "service-worker.js": "/React-Splitters/service-worker.js" 13 | } -------------------------------------------------------------------------------- /docs/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinnov92/React-Splitters/c9ca351426e55c41c2016c9cc1c647dd17974783/docs/favicon.ico -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | React App
-------------------------------------------------------------------------------- /docs/precache-manifest.e012afa12f2c99b2d230df197b606f82.js: -------------------------------------------------------------------------------- 1 | self.__precacheManifest = [ 2 | { 3 | "revision": "e8bd0c2b273fc34ffdca", 4 | "url": "/React-Splitters/static/js/runtime~main.e8bd0c2b.js" 5 | }, 6 | { 7 | "revision": "20a12729a29cfec227ab", 8 | "url": "/React-Splitters/static/js/main.20a12729.chunk.js" 9 | }, 10 | { 11 | "revision": "6582865d9c9b8076c0ee", 12 | "url": "/React-Splitters/static/js/1.6582865d.chunk.js" 13 | }, 14 | { 15 | "revision": "20a12729a29cfec227ab", 16 | "url": "/React-Splitters/static/css/main.6ba08d2b.chunk.css" 17 | }, 18 | { 19 | "revision": "95be091a1382400dfe4393622c88296b", 20 | "url": "/React-Splitters/index.html" 21 | } 22 | ]; -------------------------------------------------------------------------------- /docs/static/css/main.6ba08d2b.chunk.css: -------------------------------------------------------------------------------- 1 | .splitter{height:100%;position:relative;display:flex;flex:0 0 100%;align-content:flex-start;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.pane{flex-grow:1;height:100%}.splitter.horizontal{flex-wrap:nowrap;flex-direction:column}.splitter .pane:first-child{width:100%;height:100%;flex-grow:0;flex-shrink:0;flex-basis:auto}.splitter .pane:last-child{flex:1 1;flex-grow:1;flex-shrink:1;flex-basis:0;overflow:hidden}.bottom-detail-pane{padding:10px;background-color:#e7f5ce;z-index:10}.splitter .pane.bottom-detail-pane{overflow:auto}.handle-bar{width:10px;height:100%;min-width:10px;display:flex;justify-content:center;align-items:center;position:relative;z-index:20;background-color:#eeeff0;cursor:col-resize;font-size:14px}.handle-bar .handle-bar_drag{width:4px;height:20px;border-left:1px solid rgba(0,0,0,.0980392);border-right:1px solid rgba(0,0,0,.0980392)}.handle-bar.horizontal{width:100%;height:10px;min-height:10px;cursor:row-resize}.handle-bar.horizontal .handle-bar_drag{width:20px;height:4px;border-top:1px solid rgba(0,0,0,.0980392);border-bottom:1px solid rgba(0,0,0,.0980392);border-right:0;border-left:0}.handle-bar.handle-bar_clone,.handle-bar:active,.handle-bar:hover{background-color:#ccc}.handle-bar.handle-bar_clone{position:absolute;opacity:.9;z-index:12000}.handle-bar.resize-not-allowed{cursor:auto}.handle-bar.resize-not-allowed:hover{background-color:#eeeff0}.handle-bar.resize-not-allowed .handle-bar_drag{display:none}.rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}*{padding:0;margin:0;box-sizing:border-box}#root{width:100vw;height:100vh;overflow:hidden}.app,.splitter-wrapper{width:100%;height:100%;position:relative}.pane,.splitter-wrapper{overflow:hidden}.placeholder{height:100%;display:flex;flex-wrap:wrap;align-content:center;align-items:center;background-color:#f9f9f9;color:#394053;font-size:6em;font-family:Arial}.placeholder,.placeholder p,.placeholder span{width:100%;text-align:center}.placeholder p{display:block;font-size:18px}.placeholder._1{background-color:#bcd4de}.placeholder._2{background-color:#a5ccd1}.placeholder._3{background-color:#a0b9bf}.placeholder._4{background-color:#9dacb2} 2 | /*# sourceMappingURL=main.6ba08d2b.chunk.css.map */ -------------------------------------------------------------------------------- /docs/static/css/main.6ba08d2b.chunk.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["/Users/martinnovak/Documents/WORK/web_pages/GitHub/TypeScript Splitters_v1/src/components/Splitters/splitters.css","/Users/martinnovak/Documents/WORK/web_pages/GitHub/TypeScript Splitters_v1/src/App.css"],"names":[],"mappings":"AAAA,UACE,YAAa,AACb,kBAAmB,AACnB,aAAc,AACd,cAAe,AACf,yBAA0B,AAC1B,yBAAkB,AAAlB,sBAAkB,AAAlB,qBAAkB,AAAlB,gBAAkB,CAAE,AAEtB,MACE,YAAa,AACb,WAAa,CAAE,AAEjB,qBACE,iBAAkB,AAClB,qBAAuB,CAAE,AAE3B,4BACE,WAAY,AACZ,YAAa,AACb,YAAa,AACb,cAAe,AACf,eAAiB,CAAE,AAErB,2BACE,SAAY,AACZ,YAAa,AACb,cAAe,AACf,aAAc,AACd,eAAiB,CAAE,AAErB,oBACE,aAAc,AACd,yBAA0B,AAC1B,UAAY,CAAE,AAEhB,mCACE,aAAe,CAAE,AAGnB,YACE,WAAY,AACZ,YAAa,AACb,eAAgB,AAChB,aAAc,AACd,uBAAwB,AACxB,mBAAoB,AACpB,kBAAmB,AACnB,WAAY,AACZ,yBAA0B,AAC1B,kBAAmB,AACnB,cAAgB,CAAE,AAClB,6BACE,UAAW,AACX,YAAa,AACb,2CAAgD,AAChD,2CAAiD,CAAE,AACrD,uBACE,WAAY,AACZ,YAAa,AACb,gBAAiB,AACjB,iBAAmB,CAAE,AACrB,wCACE,WAAY,AACZ,WAAY,AACZ,0CAA+C,AAC/C,6CAAkD,AAClD,eAAgB,AAChB,aAAe,CAAE,AACrB,kEACE,qBAAuB,CAAE,AAC3B,6BACE,kBAAmB,AACnB,WAAY,AACZ,aAAe,CAAE,AACnB,+BACE,WAAa,CAAE,AACf,qCACE,wBAA0B,CAAE,AAC9B,gDACE,YAAc,CAAE,AAEtB,WACE,gCAAyB,AAAzB,uBAAyB,CAAE,AClF7B,EACE,UAAW,AACX,SAAU,AACV,qBAAuB,CAAE,AAE3B,MACE,YAAa,AACb,aAAc,AACd,eAAiB,CAAE,AAOrB,uBAJE,WAAY,AACZ,YAAa,AACb,iBAAmB,CAMA,AAErB,wBACE,eAAiB,CAAE,AAErB,aAEE,YAAa,AACb,aAAc,AACd,eAAgB,AAChB,qBAAsB,AACtB,mBAAoB,AAEpB,yBAA0B,AAC1B,cAAe,AACf,cAAe,AACf,iBAAmB,CAAE,AAIrB,8CAdA,WAAY,AAMZ,iBAAmB,CAYI,AAJvB,eAEE,cAAe,AACf,cAAgB,CACK,AACvB,gBACE,wBAA0B,CAAE,AAC9B,gBACE,wBAA0B,CAAE,AAC9B,gBACE,wBAA0B,CAAE,AAC9B,gBACE,wBAA0B,CAAE","file":"main.6ba08d2b.chunk.css","sourcesContent":[".splitter {\n height: 100%;\n position: relative;\n display: flex;\n flex: 0 0 100%;\n align-content: flex-start;\n user-select: text; }\n\n.pane {\n flex-grow: 1;\n height: 100%; }\n\n.splitter.horizontal {\n flex-wrap: nowrap;\n flex-direction: column; }\n\n.splitter .pane:first-child {\n width: 100%;\n height: 100%;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: auto; }\n\n.splitter .pane:last-child {\n flex: 1 1 0;\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0;\n overflow: hidden; }\n\n.bottom-detail-pane {\n padding: 10px;\n background-color: #e7f5ce;\n z-index: 10; }\n\n.splitter .pane.bottom-detail-pane {\n overflow: auto; }\n\n/*handle bar*/\n.handle-bar {\n width: 10px;\n height: 100%;\n min-width: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n z-index: 20;\n background-color: #eeeff0;\n cursor: col-resize;\n font-size: 14px; }\n .handle-bar .handle-bar_drag {\n width: 4px;\n height: 20px;\n border-left: 1px solid rgba(0, 0, 0, 0.0980392);\n border-right: 1px solid rgba(0, 0, 0, 0.0980392); }\n .handle-bar.horizontal {\n width: 100%;\n height: 10px;\n min-height: 10px;\n cursor: row-resize; }\n .handle-bar.horizontal .handle-bar_drag {\n width: 20px;\n height: 4px;\n border-top: 1px solid rgba(0, 0, 0, 0.0980392);\n border-bottom: 1px solid rgba(0, 0, 0, 0.0980392);\n border-right: 0;\n border-left: 0; }\n .handle-bar:active, .handle-bar:hover, .handle-bar.handle-bar_clone {\n background-color: #ccc; }\n .handle-bar.handle-bar_clone {\n position: absolute;\n opacity: .9;\n z-index: 12000; }\n .handle-bar.resize-not-allowed {\n cursor: auto; }\n .handle-bar.resize-not-allowed:hover {\n background-color: #eeeff0; }\n .handle-bar.resize-not-allowed .handle-bar_drag {\n display: none; }\n\n.rotate-90 {\n transform: rotate(90deg); }\n","* {\n padding: 0;\n margin: 0;\n box-sizing: border-box; }\n\n#root {\n width: 100vw;\n height: 100vh;\n overflow: hidden; }\n\n.app {\n width: 100%;\n height: 100%;\n position: relative; }\n\n.splitter-wrapper {\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden; }\n\n.pane {\n overflow: hidden; }\n\n.placeholder {\n width: 100%;\n height: 100%;\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n align-items: center;\n text-align: center;\n background-color: #f9f9f9;\n color: #394053;\n font-size: 6em;\n font-family: Arial; }\n .placeholder span {\n width: 100%;\n text-align: center; }\n .placeholder p {\n width: 100%;\n display: block;\n font-size: 18px;\n text-align: center; }\n .placeholder._1 {\n background-color: #BCD4DE; }\n .placeholder._2 {\n background-color: #A5CCD1; }\n .placeholder._3 {\n background-color: #A0B9BF; }\n .placeholder._4 {\n background-color: #9DACB2; }\n"]} -------------------------------------------------------------------------------- /docs/static/js/1.6582865d.chunk.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(7)},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,i,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;uU.length&&U.push(e)}function F(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case u:case s:l=!0}}if(l)return n(r,e,""===t?"."+M(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var i=0;ithis.eventPool.length&&this.eventPool.push(e)}function Se(e){e.eventPool=[],e.getPooled=xe,e.release=Te}i(_e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t=Pe),Re=String.fromCharCode(32),Ie={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Fe=!1;function Me(e,t){switch(e){case"keyup":return-1!==Ne.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function De(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ze=!1;var Le={eventTypes:Ie,extractEvents:function(e,t,n,r){var o=void 0,l=void 0;if(ge)e:{switch(e){case"compositionstart":o=Ie.compositionStart;break e;case"compositionend":o=Ie.compositionEnd;break e;case"compositionupdate":o=Ie.compositionUpdate;break e}o=void 0}else ze?Me(e,n)&&(o=Ie.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Ie.compositionStart);return o?(Ue&&(ze||o!==Ie.compositionStart?o===Ie.compositionEnd&&ze&&(l=ye()):(ve._root=r,ve._startText=he(),ze=!0)),o=ke.getPooled(o,t,n,r),l?o.data=l:null!==(l=De(n))&&(o.data=l),ee(o),l=o):l=null,(e=Oe?function(e,t){switch(e){case"compositionend":return De(t);case"keypress":return 32!==t.which?null:(Fe=!0,Re);case"textInput":return(e=t.data)===Re&&Fe?null:e;default:return null}}(e,n):function(e,t){if(ze)return"compositionend"===e||!ge&&Me(e,t)?(e=ye(),ve._root=null,ve._startText=null,ve._fallbackText=null,ze=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1