{"_id":"jquery-selectric","_rev":"7-43489b6a09c87accb41260fc5671ac3f","name":"jquery-selectric","description":"Repackage of selectric with no dependencices","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.1":{"name":"jquery-selectric","version":"0.1.1","description":"Repackage of selectric with no dependencices","main":"public/jquery.selectric.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git"},"keywords":["jquery","unslider","slider"],"author":{"name":"Josh Donnell"},"license":"MIT","_id":"jquery-selectric@0.1.1","_shasum":"10c8518c5c4fd2b069cf8a55f49680bf7e280bad","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"},"dist":{"shasum":"10c8518c5c4fd2b069cf8a55f49680bf7e280bad","tarball":"https://registry.npmjs.org/jquery-selectric/-/jquery-selectric-0.1.1.tgz","integrity":"sha512-pIbC9QqaFCLTJ+88w6tyMlimv752XHaEeRSrEJSx1R3SmWUvDRvxtG3jLAc/yJe0XeaHeq1GpYL3pB9qf/hfYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSIlLCXFPsablb7ne0q6aI90snbkGGEJZ4gbbLFVDGKAiEAwCS0Oy3QM4nNjiXLzJhGt5NIlFd+o6v07ho+0do/Bg0="}]},"maintainers":[{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jquery-selectric-0.1.1.tgz_1467833563608_0.11693286336958408"},"directories":{}},"0.1.2":{"name":"jquery-selectric","version":"0.1.2","description":"Repackage of selectric with no dependencices","main":"src/jquery.selectric.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git"},"keywords":["jquery","unslider","slider"],"author":{"name":"Josh Donnell"},"license":"MIT","_id":"jquery-selectric@0.1.2","_shasum":"c268185a8b19b481721e876589502fb83be8bd09","_from":".","_npmVersion":"3.3.8","_nodeVersion":"4.2.1","_npmUser":{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"},"dist":{"shasum":"c268185a8b19b481721e876589502fb83be8bd09","tarball":"https://registry.npmjs.org/jquery-selectric/-/jquery-selectric-0.1.2.tgz","integrity":"sha512-LGetxFho458iqGF4Hz/GhGEN47laJonN4tCUksMxxCAd1bJ6+Z039pyya7rZAEFoZNSVuDHuqYGiVn0lKjO5qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIlVNJbOpJM2YEDg2753+EKBhlqB1L6sxwRxeAtJ4d2AiEA39BCV8g0lCabXJX8tDzbTMBwWA4DuY7f/GxbGBBQzRY="}]},"maintainers":[{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jquery-selectric-0.1.2.tgz_1474464593052_0.6608288008719683"},"directories":{}},"0.1.3":{"_from":"jquery-selectric","_id":"jquery-selectric@0.1.3","_inBundle":false,"_integrity":"sha1-wmgYWosZtIFyHodliVAvuDvovQk=","_location":"/jquery-selectric","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"jquery-selectric","name":"jquery-selectric","escapedName":"jquery-selectric","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#DEV:/","#USER"],"_resolved":"https://registry.npmjs.org/jquery-selectric/-/jquery-selectric-0.1.2.tgz","_shasum":"c268185a8b19b481721e876589502fb83be8bd09","_spec":"jquery-selectric","_where":"/Users/joshdonnell/Sites/base-theme/wp-content/themes/pm-child","author":{"name":"Josh Donnell"},"bundleDependencies":false,"deprecated":false,"description":"Repackage of selectric with no dependencices","keywords":["jquery","unslider","slider"],"license":"MIT","main":"src/jquery.selectric.js","name":"jquery-selectric","repository":{"type":"git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"0.1.3","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"},"dist":{"integrity":"sha512-PYsCxFOC2pofim8bgD/1FsYnJd2d2S5aL9CnolVFD4FJPLOeEVB5lohKlcP6E/MV8TiALDEuZaE6pSZqjyusag==","shasum":"e877c04a59574efda15d77c48dafed7a4cac2966","tarball":"https://registry.npmjs.org/jquery-selectric/-/jquery-selectric-0.1.3.tgz","fileCount":9,"unpackedSize":46967,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpQm1CRA9TVsSAnZWagAAWNcP/0KpjMukYSFrpRmO9jyy\nnDtExyOce5WFzHmFxn8lZPjdFKgWvFYIvJOBJQZ2a587jTTBGmD/eP0hLvcl\nhS488kZLKy8ct1c0aI1b8SM03niFLWsNdiIBCiWXDVICwHBQkIplCuP2Lacm\nLo9c/4/h9H6de+M5FQo7nBDb66ZTn30fu9oohHirKEsHG+m4uX5m4Bjnw0E1\nvC1j1FKV5LOcXLnwrCH49xuVr4SsopQm9O3AGLAqFq1CPdskfyzpcf9yEg7B\nYBdojYuibF1BIuoZD/ZZhbfLZf3IFRSOQF8Rf9Jt2amX3QiaKtznY854lLzD\ncqNExQo7XhZ/jGK8BZ1asT+5qGpfHCl23qHJfC8WViEEbJiwazFWHfQIu1Xi\nCLvDdnjdgBJff3im5kRf0068Zd/3DzyycuKmXsxbFgtsbuqqLl2InNgeupaz\nkLZrgAGmh6iScrWQiVQNvWnb4mgC3ZpbAaS/0Mm+Hen2wZ3RLTTj71LQdQ6x\nGUNJ5/YkfsoHZFXvyMjp+t6YX94P3KQ7lOFhT2aZGapRRIGopLRejXScJLLa\nxf1+/faX9D+RL4HFg7TvcU+vPi619439DwPZmNF/YlTK/+/z28uAgbfN0iMo\ncbByRNa9LVQAx42PwE6r5KDDxqh6ZYumK7zd8sjqDFad0u2qjl3hZFyueXFB\njW7X\r\n=zSdd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdLXIwLMVER6mYBK2TgR9g1GGGtIJjM2rhW9ALyImpjAIhAIghlvVCCvf1QgaIIqxgyYtAaffum8LvDbUdTUHgsU5i"}]},"maintainers":[{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-selectric_0.1.3_1537542581058_0.1344011143911128"},"_hasShrinkwrap":false},"0.2.0":{"_from":"jquery-selectric","_id":"jquery-selectric@0.2.0","_inBundle":false,"_integrity":"sha1-wmgYWosZtIFyHodliVAvuDvovQk=","_location":"/jquery-selectric","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"jquery-selectric","name":"jquery-selectric","escapedName":"jquery-selectric","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#DEV:/","#USER"],"_resolved":"https://registry.npmjs.org/jquery-selectric/-/jquery-selectric-0.1.2.tgz","_shasum":"c268185a8b19b481721e876589502fb83be8bd09","_spec":"jquery-selectric","_where":"/Users/joshdonnell/Sites/base-theme/wp-content/themes/pm-child","author":{"name":"Josh Donnell"},"bundleDependencies":false,"deprecated":false,"description":"Repackage of selectric with no dependencices","keywords":["jquery","unslider","slider"],"license":"MIT","main":"src/jquery.selectric.js","name":"jquery-selectric","repository":{"type":"git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"0.2.0","_nodeVersion":"11.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-pPxBCDDfyUnaGVzP8Pc7ZN3pqgJlRuucMTen7+VwRYHvLg38xWbEZE5NjKnVYZDC4KPCyN21roIMSbpJlgtqVw==","shasum":"74caa3fc412c32abed2014211df18dd7a425fde1","tarball":"https://registry.npmjs.org/jquery-selectric/-/jquery-selectric-0.2.0.tgz","fileCount":11,"unpackedSize":59318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdb77UCRA9TVsSAnZWagAA7rEP/1s//wCGYMjQyC/2vgzD\nRsQA0SH7oUS3aB9PTsssZ/L5kAXM7FRi7txKf4QjDtoNNIRJiQnc+xwshcHm\niE8h4DlzAgQ/bPevIEG/zWNP1fu8UxwWdL7eHchYW8VhJnl3tMBrnh29MKuj\nf3mErqjmY/9+wXHKTpRNEF7F9AGF5xHESFf2Jqe2urZHbnW9kE2iXihyBOG/\nwqkx9pdW3ggy9vHiM9G+iWbbnUSoOn7R+QmjC94R8SOdIx0GFThOjL1sgkSD\no+5ynUEmhIS+4t9yKTCpW5SVodkAIgGuX9x0S+IONHx5eXW1XZG2nFSvTs2g\nQSL25GkvPeDK869w8Gta0E/WmpMRPawm1ZFQ5ANK+g0j3wsFUHQeJBk/uIHM\nGJiQbGBdx2MUHj7BuWgdOL7GMLi/6l+XJEQAXlVcIXq3opEz/TGg+fbO4LqH\nmmuR5ANYbX1Hbi79FIPhQ9WYSE71JTf8ssTydHscn3t7V+belxZdIEc7zjOa\nsNtWjYNc2AxZbqCXCiEEov5km9QEr41omBvpcAJmUyelbVwplkcCJsUbLa8h\nuTAN7uF2FEAXsMWFxzkoxsjICEBCY994C1FSlxGBy45T/lfV1mV61N97r93W\n1DDXsNksxwFkTD6ecL2kx62eKm2jMxkxvmc5vThDhoGkiSDXnw4Ba3fjPiRN\nDhT6\r\n=KniA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcnzC7N9WgX4M0rjkERYNzGCcJh2Zbpn4CWJGDRml+QAiEAoy3+qqCF4+o2dpnN0Y0nn9nd/e/Gh1nKX+pUL4cbZYg="}]},"maintainers":[{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"}],"_npmUser":{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery-selectric_0.2.0_1567604436247_0.19760245003933274"},"_hasShrinkwrap":false}},"readme":"[![JS.ORG](https://img.shields.io/badge/js.org-selectric-ffb400.svg)](http://js.org)\n[![Travis](https://img.shields.io/travis/lcdsantos/jQuery-Selectric.svg)](https://travis-ci.org/lcdsantos/jQuery-Selectric)\n[![codecov.io](https://codecov.io/github/lcdsantos/jQuery-Selectric/coverage.svg?branch=master)](https://codecov.io/github/lcdsantos/jQuery-Selectric?branch=master)\n[![npm](https://img.shields.io/npm/v/selectric.svg)](https://www.npmjs.com/package/selectric)\n\n#jQuery Selectric ![icon](http://i.imgur.com/D2hcnUN.png)\n\njQuery Selectric is a jQuery plugin designed to help at stylizing and manipulating HTML selects.\n\n* Keyboard navigation (Up/Down/Left/Right/Word search)\n* Easily customizable\n* Pretty lightweight\n* Options box always stay visible\n* Doesn't rely on external libraries (besides jQuery)\n* Word search works with western latin characters set (for example: á, ñ, ç...)\n\n###[Demo](http://lcdsantos.github.io/jQuery-Selectric/)\n\n##How to use:\n\nMake sure to include jQuery in your page:\n\n```html\n<script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js\"></script>\n```\n\nInclude **jQuery Selectric:**\n\n```html\n<script src=\"js/jquery.selectric.min.js\"></script>\n```\n\nInclude **jQuery Selectric** styles, and change it to your taste :D _(please refer to our [demo page](http://lcdsantos.github.io/jQuery-Selectric/demo.html) for more themes and other customizations)_\n\n```html\n<link rel=\"stylesheet\" href=\"selectric.css\">\n```\n\nInitialize **jQuery Selectric:**\n\n```html\n<script>\n$(function(){\n  $('select').selectric();\n});\n</script>\n```\n\n##Options:\n\nYou can pass an options object as the first parameter when you call the plugin. For example:\n```js\n$('select').selectric({\n  maxHeight: 200\n});\n```\n\n```js\n{\n  /*\n   * Type: Function\n   * Description: Function called before plugin initialize\n   */\n  onBeforeInit: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called plugin has been fully initialized\n   */\n  onInit: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called plugin has been fully initialized\n   */\n  onBeforeOpen: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called after select options opens\n   */\n  onOpen: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called before select options closes\n   */\n  onBeforeClose: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called after select options closes\n   */\n  onClose: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called before select options change\n   */\n  onBeforeChange: function() {},\n\n  /*\n   * Type: Function\n   * Description: Function called when select options change\n   */\n  onChange: function(element) {\n    $(element).change();\n  },\n\n  /*\n   * Type: Function\n   * Description: Function called when the Selectric is refreshed\n   */\n  onRefresh: function() {},\n\n  /*\n   * Type: Integer\n   * Description: Maximum height options box can be\n   */\n  maxHeight: 300,\n\n  /*\n   * Type: Integer\n   * Description: After this time without pressing\n   *              any key, the search string is reset\n   */\n  keySearchTimeout: 500,\n\n  /*\n   * Type: String [HTML]\n   * Description: Markup for open options button\n   */\n  arrowButtonMarkup: '&lt;b class=&quot;button&quot;&gt;&amp;#x25be;&lt;/b&gt;',\n\n  /*\n   * Type: Boolean\n   * Description: Initialize plugin on mobile browsers\n   */\n  disableOnMobile: true,\n\n  /*\n   * Type: Boolean\n   * Description: Open select box on hover, instead of click\n   */\n  openOnHover: false,\n\n  /*\n   * Type: Integer\n   * Description: Timeout to close options box after mouse leave plugin area\n   */\n  hoverIntentTimeout: 500,\n\n  /*\n   * Type: Boolean\n   * Description: Expand options box past wrapper\n   */\n  expandToItemText: false,\n\n  /*\n   * Type: Boolean\n   * Description: The select element become responsive\n   */\n  responsive: false,\n\n  /*\n   * Type: Object\n   * Description: Customize classes.\n   */\n  customClass: {\n    prefix: 'selectric',\n    camelCase: false\n  },\n\n  /*\n   * Type: String or Function\n   * Description: Define how each option should be rendered inside its <li> element.\n   *\n   *              If it's a string, all keys wrapped in brackets will be replaced by\n   *              the respective values in itemData. Available keys are:\n   *              'value', 'text', 'slug', 'disabled'.\n   *\n   *              If it's a function, it will be called with the following parameters:\n   *              (itemData, element, index). The function must return a string,\n   *              no keys will be replaced in this method.\n   */\n  optionsItemBuilder: '{text}',\n\n  /*\n   * Type: String or Function\n   * Description: Define how each select label should be rendered. Allows HTML.\n   *\n   *              If it's a string, all keys wrapped in brackets will be replaced by\n   *              the respective values in currItem. Available keys are:\n   *              'value', 'text', 'slug', 'disabled'.\n   *\n   *              If it's a function, it will be called with the following parameters:\n   *              (currItem). The function must return a string, no keys will be\n   *              replaced in this method.\n   */\n  labelBuilder: '{text}',\n\n  /*\n   * Type: Boolean\n   * Description: Prevent scroll on window when using mouse wheel inside options box\n   *              to match common browsers behavior.\n   */\n  preventWindowScroll: true,\n\n  /*\n   * Type: Boolean\n   * Description: Inherit width from original element\n   */\n  inheritOriginalWidth: false,\n\n  /*\n   * Type: Boolean\n   * Description: Determine if current selected option should jump to\n   *              first (or last) once reach the end (or start) item of list upon\n   *              keyboard arrow navigation.\n   */\n  allowWrap: true\n}\n```\n\n##Events:\n\nAll events are called on original element, first argument is the original element too. And can be bound like this:\n\n```js\n$('select').on('eventname', function(element){\n  // your code\n});\n```\n\n`eventname` can be one of the following:\n\n<table>\n  <tr>\n    <td><strong>Event name</strong></td>\n    <td><strong>Description</strong></td>\n  </tr>\n  <tr>\n    <td><code>selectric-before-init</code></td>\n    <td>Fired before plugin initialize</td>\n  </tr>\n  <tr>\n    <td><code>selectric-init</code></td>\n    <td>Fired plugin has been fully initialized</td>\n  </tr>\n  <tr>\n    <td><code>selectric-before-open</code></td>\n    <td>Fired before select options opens</td>\n  </tr>\n  <tr>\n    <td><code>selectric-open</code></td>\n    <td>Fired after select options opens</td>\n  </tr>\n  <tr>\n    <td><code>selectric-before-close</code></td>\n    <td>Fired before select options closes</td>\n  </tr>\n  <tr>\n    <td><code>selectric-close</code></td>\n    <td>Fired after select options closes</td>\n  </tr>\n  <tr>\n    <td><code>selectric-before-change</code></td>\n    <td>Fired before select options change</td>\n  </tr>\n  <tr>\n    <td><code>selectric-change</code></td>\n    <td>Fired when select options change</td>\n  </tr>\n  <tr>\n    <td><code>selectric-refresh</code></td>\n    <td>Fired when the Selectric is refreshed</td>\n  </tr>\n</table>\n\n##Hooks:\n\nCheck [jquery.selectric.placeholder.js](plugins/jquery.selectric.placeholder.js) source for a usage example\n\n```js\n// Add a callback everytime 'callbackName' is called\n$.fn.selectric.hooks.add('callbackName', 'hookName', function(element, data) {});\n\n// Remove a callback\n$.fn.selectric.hooks.remove('callbackName', 'hookName');\n```\n\n##Public methods:\n\n```js\nvar Selectric = $('select').data('selectric');\n\nSelectric.open();    // Open options\nSelectric.close();   // Close options\nSelectric.destroy(); // Destroy select and go back to normal\nSelectric.refresh(); // Reconstruct the plugin options box\nSelectric.init();    // Reinitialize the plugin\n\n// Or...\n$('select').selectric('open');    // Open options\n$('select').selectric('close');   // Close options\n$('select').selectric('destroy'); // Destroy select and go back to normal\n$('select').selectric('refresh'); // Reconstruct the plugin options box\n$('select').selectric('init');    // Reinitialize the plugin\n```\n\n##Browser support:\n\n* Firefox\n* Chrome\n* Safari\n* Internet Explorer 7+\n* Opera\n","maintainers":[{"name":"joshdonnell","email":"joshua.donnell1@gmail.com"}],"time":{"modified":"2022-06-19T05:11:30.709Z","created":"2016-07-06T19:32:44.759Z","0.1.1":"2016-07-06T19:32:44.759Z","0.1.2":"2016-09-21T13:29:55.115Z","0.1.3":"2018-09-21T15:09:41.239Z","0.2.0":"2019-09-04T13:40:36.362Z"},"keywords":["jquery","unslider","slider"],"repository":{"type":"git"},"author":{"name":"Josh Donnell"},"license":"MIT","readmeFilename":"README.md"}