{"_id":"@cartok/hierarchy-select","_rev":"6-bf3c7cdbd78acb597f3d1585e2603b9c","name":"@cartok/hierarchy-select","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","dist-tags":{"latest":"1.1.14"},"versions":{"0.0.1":{"name":"@cartok/hierarchy-select","version":"0.0.1","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/NeoFusion/hierarchy-select.git"},"homepage":"https://github.com/NeoFusion/hierarchy-select","bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"main":"dist/hierarchy-select.min.js","files":["dist"],"keywords":["bootstrap","form","jquery","jquery-plugin"],"scripts":{"server":"http-server ./docs","server-silent":"http-server ./docs -s -p8081","postinstall":"webdriver-manager update","start":"npm run server","test":"npm run e2e","pree2e":"webdriver-manager update --standalone false --gecko false","e2e":"concurrently --kill-others --success first \"npm run server-silent\" \"protractor\""},"peerDependencies":{"jquery":"1.9.1 - 3"},"devDependencies":{"concurrently":"^3.3.0","grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-sass":"^2.0.0","http-server":"^0.9.0","jasmine-core":"^2.5.2","jasmine-spec-reporter":"^3.2.0","protractor":"^5.1.1"},"gitHead":"b18f2b527eee4dfc79ae3ef52855a2b88609b16e","_id":"@cartok/hierarchy-select@0.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"},"dist":{"integrity":"sha512-cjR5WjoB6841Ua9tCf+VcKIhm8+vSSpg6lj0OV9sDJLRyRsuj+y4UQ58G3p5+ujday8jqi3ovqw51t7TzsskJw==","shasum":"907a961ac1bf6f3fc1f207394fe1cc5d51228fc5","tarball":"https://registry.npmjs.org/@cartok/hierarchy-select/-/hierarchy-select-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2w4gHZap3y9rN35z/og3YfOUeKbk40aAzHqfPANcnXAiEAvY326nKE+OsV44hbNqF3E4c/8ZKAdkzth/bTO7NMHJA="}]},"maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hierarchy-select-0.0.1.tgz_1504001409012_0.582208599196747"},"directories":{}},"0.0.4":{"name":"@cartok/hierarchy-select","version":"0.0.4","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/NeoFusion/hierarchy-select.git"},"homepage":"https://github.com/NeoFusion/hierarchy-select","bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"main":"dist/hierarchy-select.min.js","files":["dist"],"keywords":["bootstrap","form","jquery","jquery-plugin"],"scripts":{"server":"http-server ./docs","server-silent":"http-server ./docs -s -p8081","postinstall":"webdriver-manager update","start":"npm run server","test":"npm run e2e","pree2e":"webdriver-manager update --standalone false --gecko false","e2e":"concurrently --kill-others --success first \"npm run server-silent\" \"protractor\""},"peerDependencies":{"jquery":"1.9.1 - 3"},"devDependencies":{"concurrently":"^3.3.0","grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-sass":"^2.0.0","http-server":"^0.9.0","jasmine-core":"^2.5.2","jasmine-spec-reporter":"^3.2.0","protractor":"^5.1.1"},"gitHead":"ab40ee7997d56acde80a74210d0a8d2665068c22","_id":"@cartok/hierarchy-select@0.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"},"dist":{"integrity":"sha512-z/KrSiZ1EXxfHQ/OwTRi2YuuRM8EKrMwFxDshQ0ZPqrfh2uhQLCTsOUU1RhnGJnMMkYijRkxb+YwjDClgnT+pw==","shasum":"f588fef17099936c1611c87690e63f6d796495b8","tarball":"https://registry.npmjs.org/@cartok/hierarchy-select/-/hierarchy-select-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGLbr7mjv2f1r2mT1jPoJ1UxL1EiQb/VuxKm/c+Ihd5AiA2685b9hfBFDgvsL8BtIFQv7mpBE+2+tzXHh2iHry7aQ=="}]},"maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hierarchy-select-0.0.4.tgz_1504002289869_0.8158873543143272"},"directories":{}},"0.0.5":{"name":"@cartok/hierarchy-select","version":"0.0.5","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/NeoFusion/hierarchy-select.git"},"homepage":"https://github.com/NeoFusion/hierarchy-select","bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"main":"dist/hierarchy-select.min.js","files":["dist"],"keywords":["bootstrap","form","jquery","jquery-plugin"],"scripts":{"server":"http-server ./docs","server-silent":"http-server ./docs -s -p8081","postinstall":"webdriver-manager update","start":"npm run server","test":"npm run e2e","pree2e":"webdriver-manager update --standalone false --gecko false","e2e":"concurrently --kill-others --success first \"npm run server-silent\" \"protractor\""},"peerDependencies":{"jquery":"1.9.1 - 3"},"devDependencies":{"concurrently":"^3.3.0","grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-sass":"^2.0.0","http-server":"^0.9.0","jasmine-core":"^2.5.2","jasmine-spec-reporter":"^3.2.0","protractor":"^5.1.1"},"gitHead":"486af799cdcdef72fcbe1ec9d6aac191cf974a14","_id":"@cartok/hierarchy-select@0.0.5","_npmVersion":"5.4.0","_nodeVersion":"8.4.0","_npmUser":{"name":"cartok","email":"dennis.weiershaeuser@informatik.hs-fulda.de"},"dist":{"integrity":"sha512-3258kD+UdN4c9TNj4WKwAAyR1y0+kSyfF9GsERmQG4OEi+8e9VOLDWTq5Gl56jut7xBmJsJWjtbNs5sRKw2AEg==","shasum":"d672263a0862ff0ae4bab306cd40d94da89d38e1","tarball":"https://registry.npmjs.org/@cartok/hierarchy-select/-/hierarchy-select-0.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDijnvTg3MXysfPI+VG8hnvIEzbBAxmZNr9OLuPOa9HIQIhALk4bxfCiKSfT+7lGR7XlxUY/qrv3cfZfpBLTSUj7RQr"}]},"maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hierarchy-select-0.0.5.tgz_1506357308198_0.7361909144092351"},"directories":{}},"0.0.6":{"name":"@cartok/hierarchy-select","version":"0.0.6","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/NeoFusion/hierarchy-select.git"},"homepage":"https://github.com/NeoFusion/hierarchy-select","bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"main":"dist/hierarchy-select.min.js","files":["dist"],"keywords":["bootstrap","form","jquery","jquery-plugin"],"scripts":{"server":"http-server ./docs","server-silent":"http-server ./docs -s -p8081","start":"npm run server","test":"npm run e2e","pree2e":"webdriver-manager update --standalone false --gecko false","e2e":"concurrently --kill-others --success first \"npm run server-silent\" \"protractor\"","build":"grunt","prepublishOnly":"grunt; npm run --silent test"},"peerDependencies":{"jquery":"1.9.1 - 3"},"devDependencies":{"concurrently":"^3.3.0","grunt":"^1.0.1","grunt-contrib-clean":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^2.0.0","grunt-sass":"^2.0.0","http-server":"^0.9.0","jasmine-core":"^2.5.2","jasmine-spec-reporter":"^3.2.0","protractor":"^5.1.1"},"gitHead":"24b4dfacd961698215ff456e3b46f9b1616dd2f6","_id":"@cartok/hierarchy-select@0.0.6","_npmVersion":"5.4.2","_nodeVersion":"8.4.0","_npmUser":{"name":"cartok","email":"dennis.weiershaeuser@informatik.hs-fulda.de"},"dist":{"integrity":"sha512-FT3uMpF2RYDWz9SqZaWBggfdvxOUZHpKyKwxPyjIkZ2um6Ev5jlCi5x+1UzHYIJclBC0Jg9dSI1zUM+z5pdhAw==","shasum":"0f87dd43d9c0e1459f2b6d92a76c22afc4788c6e","tarball":"https://registry.npmjs.org/@cartok/hierarchy-select/-/hierarchy-select-0.0.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbbtmqOIHaz8KFgPgJglz3lSf9w6dnvdqenwmunVojdwIhAPTRPu1h7jVwcI63rT9DQ4zE3fLVqX3F9A5G/Wi/2N18"}]},"maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hierarchy-select-0.0.6.tgz_1506358185305_0.7420187266543508"},"directories":{}},"1.1.15":{"name":"@cartok/hierarchy-select","version":"1.1.15","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"contributers":[{"name":"Dennis Weiershäuser","email":"dennis.weiershaeuser@informatik.hs-fulda.de","url":"https://github.com/cartok?tab=repositories"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cartok/hierarchy-select.git"},"homepage":"https://github.com/cartok/hierarchy-select.git","bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"main":"build/hierarchy-select.js","files":["build"],"keywords":["bootstrap","bootstrap plugin","jquery","jquery plugin","plugin","autocomplete","hierarchy"],"scripts":{"clean":"rm -rf ./build && mkdir build","babelrc:es5":"cp ./.babelrc.es5 ./.babelrc","babelrc:es6":"cp ./.babelrc.es6 ./.babelrc","transpile":"npm install && npm run clean && babel --out-dir ./build ./src && npm run build:css","build:css":"./node_modules/node-sass/bin/node-sass --sourcemap=inline ./src/hierarchy-select.scss ./build/hierarchy-select.css","build:es5":"npm run babelrc:es5 && npm run transpile","build:es6":"npm run babelrc:es6 && npm run transpile","build:webpack":"echo 'es6 and es5 cdn versions inc.'","test":"npm run build:es5 && ./node_modules/.bin/mocha --require babel-core/register --require jsdom-global/register","test:monitor":"npm install && nodemon -x \"rm -rf ./build && cp -r ./src/* ./build/ && ./node_modules/.bin/mocha --require babel-core/register --require jsdom-global/register\"","dev:monitor":"npm install && nodemon -x \"npm run build:es6 && node ./node_modules/.bin/http-server\"","prepublishOnly":"npm run test"},"devDependencies":{"@types/chai":"^4.1.4","@types/jquery":"^3.3.6","@types/mocha":"^5.2.5","babel-cli":"^6.26.0","babel-eslint":"^8.2.3","babel-loader":"^7.1.4","babel-plugin-transform-es2015-destructuring":"^6.23.0","babel-plugin-transform-es2015-parameters":"^6.24.1","babel-plugin-transform-es2015-spread":"^6.22.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-preset-env":"^1.7.0","chai":"^4.1.2","dom-node-template":"^2.1.5","eslint":"^4.19.1","eslint-plugin-flowtype":"^2.46.3","eslint-plugin-import":"^2.11.0","flow-bin":"^0.78.0","http-server":"^0.10.0","jquery":"^3.3.1","jsdom":"^11.12.0","jsdom-global":"^3.0.2","mocha":"^5.2.0","node-sass":"^4.5.3","nodemon":"^1.17.3","tslint":"^5.11.0","tslint-eslint-rules":"^5.4.0","typescript":"3.0.1"},"dependencies":{},"nodemonConfig":{"ignore":["build","built","dist","bin","node_modules"]},"gitHead":"5c122a93cecf2f2444d965596b09dcacf3a4ed3f","_id":"@cartok/hierarchy-select@1.1.15","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"cartok","email":"dennis.weiershaeuser@informatik.hs-fulda.de"},"dist":{"integrity":"sha512-VJ5BY+blhoZ8FFt7NeKPa3r3sZmlOY4XKIleOuV1F6xmGbazC+7ssK3VF3NXRjbtTErxElinP20VbEzJlsozWA==","shasum":"c1de377f09d96566c9101c1a22fa638fd8e1adf4","tarball":"https://registry.npmjs.org/@cartok/hierarchy-select/-/hierarchy-select-1.1.15.tgz","fileCount":5,"unpackedSize":27073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdVnqCRA9TVsSAnZWagAACK8QAIRCw8CttwhzuMbjxf9M\nNgsDR13bJ2rbQVyDCCpflSLefHoLjzCW7jyxmPcj/qY7D8U64PmotE6vzMTW\nAU+maoT2zRqPzi/R+GVZ0dL12+xa51NAdNfL4WGVOqcZ2ggWQZystiwAICSZ\nkgBFHtETsxGr+tzh4sYHfKGVhRdkDmwaBMW34Tv0hy+cJHVIMAiX/OkfzytB\nR+mhcwGamOCLBrwtr81pj7Z6iLE5Vaye4/3+oF/B9KxQ9L3lX+SzxGu8O69I\n8x5JSnZfpxi5aQ4dV4kcl/QxKAhsZ4HV6+30GExcZDsy+ESQ+/hWHhKqEm+2\nME/5fCIg0OQ6ipkDzBmbdzaRSCRDzURalIUlG4q2QO9/WGJu7sstibruyERW\nZgakMUkq98li8vtVPCf7kCKFHnXdoea55kQENExhGwbdBVjaA98sMKbBBzor\nWF7pRpXIT0CdwCsbWDfBx7tG1ND3HwvZ22ct70UjfAd92DSN99vvl6ugQVZM\nPi9lk6QDLnJ6lNWZMLvzuAVQVvgmlGPCkHKE8jYmx3Ds6imEWBaifBD+gvYT\nDCfIx92vx1xdtP5i4zRRyeJH2KsXeQWxk5ZDlGTZhYOTxbZcNCBjncLLkjfh\nabOc7IeImSZ3Rou1jrmRFj+RQKKEzqXUK6WD7vrhZsP+UkW8FdzCGOJuYoSH\nZ80v\r\n=jcGH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCGC9gekEevIwdADTkTGrzzrqdric+9BAP4Am88j4W9AIhAPV1bbJ+TLnLEaLn6FZbuMUNfD0xRSoR/di466Tn2uYG"}]},"maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hierarchy-select_1.1.15_1534417385732_0.044343823892097456"},"_hasShrinkwrap":false},"1.1.14":{"name":"@cartok/hierarchy-select","version":"1.1.14","description":"Hierarchy Select jQuery Plugin for Twitter Bootstrap","author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"contributers":[{"name":"Dennis Weiershäuser","email":"dennis.weiershaeuser@informatik.hs-fulda.de","url":"https://github.com/cartok?tab=repositories"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cartok/hierarchy-select.git"},"homepage":"https://github.com/cartok/hierarchy-select.git","bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"main":"build/hierarchy-select.js","keywords":["bootstrap","bootstrap plugin","jquery","jquery plugin","plugin","autocomplete","hierarchy"],"scripts":{"clean":"rm -rf ./build && mkdir build","babelrc:es5":"cp ./.babelrc.es5 ./.babelrc","babelrc:es6":"cp ./.babelrc.es6 ./.babelrc","transpile":"npm install && npm run clean && babel --out-dir ./build ./src && npm run build:css","build:css":"./node_modules/node-sass/bin/node-sass --sourcemap=inline ./src/hierarchy-select.scss ./build/hierarchy-select.css","build:es5":"npm run babelrc:es5 && npm run transpile","build:es6":"npm run babelrc:es6 && npm run transpile","build:webpack":"echo 'es6 and es5 cdn versions inc.'","test":"npm run build:es5 && ./node_modules/.bin/mocha --require babel-core/register --require jsdom-global/register","test:monitor":"npm install && nodemon -x \"rm -rf ./build && cp -r ./src/* ./build/ && ./node_modules/.bin/mocha --require babel-core/register --require jsdom-global/register\"","dev:monitor":"npm install && nodemon -x \"npm run build:es6 && node ./node_modules/.bin/http-server\"","prepublishOnly":"npm run test"},"devDependencies":{"@types/chai":"^4.1.4","@types/jquery":"^3.3.6","@types/mocha":"^5.2.5","babel-cli":"^6.26.0","babel-eslint":"^8.2.3","babel-loader":"^7.1.4","babel-plugin-transform-es2015-destructuring":"^6.23.0","babel-plugin-transform-es2015-parameters":"^6.24.1","babel-plugin-transform-es2015-spread":"^6.22.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-preset-env":"^1.7.0","chai":"^4.1.2","dom-node-template":"^2.1.5","eslint":"^4.19.1","eslint-plugin-flowtype":"^2.46.3","eslint-plugin-import":"^2.11.0","flow-bin":"^0.78.0","http-server":"^0.10.0","jquery":"^3.3.1","jsdom":"^11.12.0","jsdom-global":"^3.0.2","mocha":"^5.2.0","node-sass":"^4.5.3","nodemon":"^1.17.3","tslint":"^5.11.0","tslint-eslint-rules":"^5.4.0","typescript":"3.0.1"},"dependencies":{},"nodemonConfig":{"ignore":["build","built","dist","bin","node_modules"]},"gitHead":"d6abdc43a25f034606022b3ecbbe910ad0817473","_id":"@cartok/hierarchy-select@1.1.14","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"cartok","email":"dennis.weiershaeuser@informatik.hs-fulda.de"},"dist":{"integrity":"sha512-Yyyl8PRwlv76l0A0uwWatoLrqTIz4k63JlpWkvEYeyQcYKaARHXGeM/0A3QS+zN4vlgw5ZD/urtPhomnoSHosQ==","shasum":"6f4579f8e30e17b239508061fe415640acf1081c","tarball":"https://registry.npmjs.org/@cartok/hierarchy-select/-/hierarchy-select-1.1.14.tgz","fileCount":5,"unpackedSize":27073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5VqGCRA9TVsSAnZWagAAqB0P/2uQfuPTTzBnb/AH8yiP\nGjbOEtnmwe3gmXeqBmZfI8G+u4kMaz+CsGihAvpuB58b4FR65DjA/xaRgZ9X\nL4pqXb1CL2GXATUS0lYn9gccRRk5OF5uom7jNneDAvSWrg2956BFbi2IrHsW\nlSVsHwdXK8G0vWQeoFM+9zAWc8L5zvAzIb+zdtvxiX2IKqEmR4252H73+onu\n1p/TzsAtlTSurLl3oJbpRQxee+PddphILaP+VAyfRXmspTfc500AgRGvmNJT\n+uUtwlo6ouW9MQC44QqAONRgn82l9+hDdgO3EozKWYtzlUX8+gNM6eC+H2cO\nfi/3tEFMStt3b5BfR7M8XzxORTFmx6XkmiARtK4i9V8iV01uLBPgHpvgm/z2\n0HYcadJCzYu2M95286sJsmS6nZedOPIBWVr13EA++xm1/FAyoxTu8yhFOihC\nU6eiveCRXnxuDEe0HXH0/GN5bJ/JclrwA+fMM1X1RX+/5gtOCYBlmdLb219h\n7zlG41fGUVHVnwPrJbd0z7Uqd6MF341J8eddgRMvEtQ7rmeHEvENe1BhT+Qq\nDtuD2krnARkrj/mq1tLV+/NH782x0a27wcrZbOp7O3k/eQykCng2FdG+ffye\nFBQGM3QWGtu4uS1kGXYwpTDzgVumz+epurniC4WHoSxKp2tbdbsVliILn5b8\nqvCT\r\n=z7gm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzOCopASvRtgfvVWFwG36DzboOmGoATw3Pol1ub00UAwIgQj+QwlL4oekJEJYUoi56w3kvHjmmElvj5+n1YLwSAb8="}]},"maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hierarchy-select_1.1.14_1541757573259_0.7726056638201528"},"_hasShrinkwrap":false}},"readme":"# Hierarchy Select jQuery Plugin for Twitter Bootstrap\n\n[a link to the original project for guidance](https://travis-ci.org/NeoFusion/hierarchy-select)\n\n## Requirements\n* **a bundeling system like webpack**\n* jQuery\n* bootstrap \n## Installation\n```java\nnpm install bootstrap@3 jquery@3 @cartok/hierarchy-select\n```\n\n## Usage\n### Restriction\nYou should only use this module inside of a build environment (ES6 module).\n\n### Import and apply the plugin to jQuery\n```javascript\nimport \"jquery\"\nimport \"bootstrap\"\nimport hierarchySelect from \"@cartok/hierarchy-select\"\nimport \"bootstrap/dist/css/bootstrap.css\"\nimport \"@cartok/hierarchy-select/build/hierarchy-select.css\"\nhierarchySelect($)\n```\n\n### Example usage\n```javascript\n/**\n * create the base html code and append it somewhere.\n * @unwritten-feature: the html could be provided later from inside the plugin\n */\nconst html = new NodeTemplate(`\n    <div class=\"btn-group hierarchy-select\" data-resize=\"auto\">\n        <button class=\"btn btn-default dropdown-toggle\" data-toggle=\"dropdown\" data-ref=\"button\">\n            <span class=\"selected-label pull-left\" data-ref=\"text\">&nbsp;</span>\n            <span class=\"caret\"></span>\n        </button>\n        <div class=\"dropdown-menu open\">\n            <div class=\"hs-searchbox\">\n                <input type=\"text\" class=\"form-control\" autocomplete=\"off\">\n            </div>\n            <ul data-ref=\"list\" class=\"dropdown-menu inner\" role=\"menu\"></ul>\n        </div>\n        <input class=\"hidden hidden-field\" readonly=\"readonly\" type=\"text\"/>\n    </div>\n`)\ndocument.body.appendChild(html.fragment)\n\n/**\n * Use HierarchySelect on the html and pass in options and a function\n * that creates the entries of the select view.\n * If you want the select to have a default selection on DOM-load you need\n * a function that creates entries with one of them having the 'data-default-selected' attribute.\n * But you can just take out the whole function code and execute it afterwards.\n */\n$(html.root).hierarchySelect({\n    hierarchy: false,\n    togglePosition: false,\n    keepFocused: false,\n}, () => {\n    // id attributes are optional and will be autofilled in the updateSelect() function.\n    const data = [{\n        id: 0,\n        text: \"Label A\"\n    },{\n        id: 1,\n        text: \"Label B\"\n    },{\n        id: 3,\n        text: \"Long John Silver!\"\n    },{\n        id: 4,\n        text: \"This is the longest label in the world!\"\n    },{\n        id: 5,\n        text: \"Another long sentence containing the word 'world'!\"\n    },]\n\n    ;(function updateSelect(entries){\n        // remove all entries from select.\n        html.refs.list.innerHTML = \"\"\n\n        // check if every entrie-object has an id, else create it.\n        entries = entries.every(l => l.id instanceof Number)\n        ? entries\n        : entries.map((l, idx) => Object.assign(l, { id: idx }))\n\n        // create html node from entries-array.\n        const entriesFragment = document.createDocumentFragment()\n        entries.forEach((e, idx) => {\n            let entry = undefined\n            if(idx === 0){\n                // the first node gets selected by the plugin via data attribute.\n                entry = new NodeTemplate(`\n                    <li data-value=\"${e.id}\" data-default-selected>\n                        <a href=\"#\">${e.text}</a>\n                    </li>\n                `)\n            } else {\n                entry = new NodeTemplate(`\n                    <li data-value=\"${e.id}\">\n                        <a href=\"#\">${e.text}</a>\n                    </li>\n                `)\n            }\n            entriesFragment.appendChild(entry.fragment)\n        })\n        html.refs.list.appendChild(entriesFragment)\n    })(data)\n})\n```\n### Usage additions\n#### How-to react on selection change?\n```javascript\n$(html.root).on(\"change\", (e, data) => {\n    // The change event is triggered manually by the plugin through jQuery.\n    // But it will also be triggered natively.\n    // Only if the event was triggered by the plugin, you will get the text of the selection.\n    if(data !== undefined){\n        console.log(\"You can use the selected dropdown text and id on selection like this.\")\n        console.log(data)\n    }\n})\n```\n\n#### How-to open the dropdown on shortcut?\n```javascript\n$(window).on(\"keydown\", (e) => {\n    if(event.getModifierState(\"Control\")){\n        event.preventDefault()\n        if(e.key.toLowerCase() === \"l\"){\n            e.preventDefault()\n            e.stopPropagation()\n            html.refs.button.click()\n        }\n    }\n})\n```\n\n## How to develop\nStart the http-server for testing the example page for [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). Navigate to the examples folder and open the html file.  \nUse a browser that supports async ES6 module loading via script tag.\n[*compability list*](https://caniuse.com/#feat=es6-module)  \n**Suggestion:** Use Chrome >= 62\n```\nnode node_modules/.bin/http-server\n```\n","maintainers":[{"name":"cartok","email":"dennis.weiershaeuser@l3p-cv.com"}],"time":{"modified":"2022-04-04T21:59:54.580Z","created":"2017-08-29T10:10:10.070Z","0.0.1":"2017-08-29T10:10:10.070Z","0.0.4":"2017-08-29T10:24:50.789Z","0.0.5":"2017-09-25T16:35:09.162Z","0.0.6":"2017-09-25T16:49:46.254Z","1.1.15":"2018-08-16T11:03:05.811Z","1.1.14":"2018-11-09T09:59:34.373Z"},"homepage":"https://github.com/cartok/hierarchy-select.git","keywords":["bootstrap","bootstrap plugin","jquery","jquery plugin","plugin","autocomplete","hierarchy"],"repository":{"type":"git","url":"git+https://github.com/cartok/hierarchy-select.git"},"author":{"name":"Evgeniy NeoFusion","email":"evgeniy@neofusion.ru"},"bugs":{"url":"https://github.com/NeoFusion/hierarchy-select/issues"},"license":"MIT","readmeFilename":"README.md"}