{"_id":"@cognifit/cordova-plugin-datepicker","_rev":"5-6b83c74aa9e3b32059fc315a6128aa5c","name":"@cognifit/cordova-plugin-datepicker","dist-tags":{"latest":"0.9.2"},"versions":{"0.9.2":{"name":"@cognifit/cordova-plugin-datepicker","version":"0.9.2","description":"CogniFit's fork of cordova-plugin-datepicker\nCordova DatePicker Plugin","cordova":{"id":"cordova-plugin-datepicker","platforms":["ios","android","windows"]},"repository":{"type":"git","url":"git+https://github.com/cognifit/cordova-plugin-datepicker.git"},"keywords":["cordova","datepicker","ecosystem:cordova","cordova-ios","cordova-android","cordova-windows"],"author":{"name":"Vitalii Blagodir","email":"vitalii.blagodir@gmail.com"},"license":"Apache 2.0","gitHead":"c61392079844576e92d4f0195d46468547b8a616","bugs":{"url":"https://github.com/cognifit/cordova-plugin-datepicker/issues"},"homepage":"https://github.com/cognifit/cordova-plugin-datepicker#readme","_id":"@cognifit/cordova-plugin-datepicker@0.9.2","_nodeVersion":"15.4.0","_npmVersion":"7.2.0","dist":{"integrity":"sha512-6kH84ND7uXlLYia/lCIsNGshHIYWg9OB8Pqp9zX+3CFUuOWD5bEz3oXcN7NxSkRQ9ygsbqTg8l0uoTughkMNcA==","shasum":"10469118ff94b62462162756d9447ab11b27f8ec","tarball":"https://registry.npmjs.org/@cognifit/cordova-plugin-datepicker/-/cordova-plugin-datepicker-0.9.2.tgz","fileCount":12,"unpackedSize":61694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6eRRCRA9TVsSAnZWagAAZrkP/j4Oi+ON7dYXe5BEepyE\nYqlw4QnyWVfmPRPeWDa6y9a0nisv1f6Npc7J0JoHE8ATJyjDKor+1W57kVps\n8t7akooV9SxyzF014Mg66Ogx08jW3LW0zL5qfZ6SgUS0eAktZMKNeZFTu6Pv\nCH04HwzJWPLvJZ0L7hcjJ/2OIZZknaLNa/Ud4aI0VxOQXNCZuizCS3xtnDnn\n6R3sS28xtppra2d/aY0xtqHyoST0d9GjsU+FH0osdLHdEtoOHBnqP/Dnfm2n\n159azIDKbZgwX9sRlk+cUsVgGAzOoF3XBl4wuvs5pe8t5E/LTXeXoNzeMJBT\nqGxG1ztGFrohNSZUXYGqJ7+eNEAG7JIXDxc64bWMviIRAh6rhqKMF0syU007\nZMQBPI1WLRoltGUMteGMFL9n6JTTtr1OQrmw/+N2mcQEyaeW0xhaDbiIW9/8\n25kZpq/2goHGjc3QPZolzawmIx20v9vNozrx9cvBDHtg8BMM1GpigFB++uK4\nrGO9TwTfsG52P0ltB8CCxzXyqjzUZKDkFp/UvsnAxiNTtvdehjVo0EC4I4dR\np58+lj1C0B/Jq9DOTZ5jD+TSZ4IJYnswL90cGZOHv8Z3+vXaEOMh0rQhNpV8\nF014URw7SrjKbbZSAI59Du801JkZ6IjgElbDc65VQFImBTZevwNJFaNT2J5Z\nkBKN\r\n=xh5p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGAYi194hB2qkGv/0wU+VkgCJ/aqYdEVmnvGQ4LvTPgAiEAqILzmt+/HOVrmlhZPMQCDMWZMVFqJ8KfOCP6bdiPyFE="}]},"_npmUser":{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"},"directories":{},"maintainers":[{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-datepicker_0.9.2_1609163856697_0.16623992272497978"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-28T13:57:36.478Z","0.9.2":"2020-12-28T13:57:36.875Z","modified":"2022-04-05T00:11:24.208Z"},"maintainers":[{"email":"m.sanfabian@cognifit.com","name":"martincognifit"},{"email":"d.olivares@cognifit.com","name":"daniolivarescognifit"},{"email":"p.gutierrez@cognifit.com","name":"pgutierrez_cf"}],"description":"CogniFit's fork of cordova-plugin-datepicker\nCordova DatePicker Plugin","homepage":"https://github.com/cognifit/cordova-plugin-datepicker#readme","keywords":["cordova","datepicker","ecosystem:cordova","cordova-ios","cordova-android","cordova-windows"],"repository":{"type":"git","url":"git+https://github.com/cognifit/cordova-plugin-datepicker.git"},"author":{"name":"Vitalii Blagodir","email":"vitalii.blagodir@gmail.com"},"bugs":{"url":"https://github.com/cognifit/cordova-plugin-datepicker/issues"},"license":"Apache 2.0","readme":"# DatePicker Plugin for Cordova/PhoneGap 4.0 (iOS and Android and Windows)\n\nThis is a combined version of DatePicker iOS and Android and Windows plugin for Cordova/Phonegap 4.0.\n- Original iOS version: https://github.com/sectore/phonegap3-ios-datepicker-plugin\n\n- Original Android version: https://github.com/bikasv/cordova-android-plugins/tree/master/datepicker\n\nNew in 0.8.0 (Android Only):\n- Android code refactored\n\n- Option datetime added (default if mode is unknown), opening a new time dialog after setting the date\n\n- Options okText and cancelText to define the labels for POSITIVE and NEGATIVE buttons\n\n- Option todayText to set the label of a button that selects current date (date and datetime)\n\n- Option nowText to set the label of a button that selects current time (time and datetime)\n\n- Option is24Hour added\n\n\n## Installation\n\n- Local development workflow using [Cordova CLI](http://cordova.apache.org/docs/en/edge/)\n\n```bash\ncordova plugin add cordova-plugin-datepicker\n```\n\n- Local development workflow using [PhoneGap CLI](http://phonegap.com/install/)\n\n```bash\nphonegap local plugin add cordova-plugin-datepicker\n```\n\n- Cloud-based development workflow using [PhoneGap Build](http://build.phonegap.com)\n\n```bash\n<gap:plugin name=\"cordova-plugin-datepicker\" source=\"npm\" />\n```\n\n\n## Usage\n\n```js\nvar options = {\n    date: new Date(),\n    mode: 'date'\n};\n\nfunction onSuccess(date) {\n    alert('Selected date: ' + date);\n}\n\nfunction onError(error) { // Android only\n    alert('Error: ' + error);\n}\n\ndatePicker.show(options, onSuccess, onError);\n```\n\n## Options\n\n### mode - iOS, Android, Windows\nThe mode of the date picker.\n\nType: String\n\nValues: `date` | `time` | `datetime` (iOS, Windows only)\n\nDefault: `date`\n\n### date - iOS, Android, Windows\nSelected date.\n\nType: String\n\nDefault: `new Date()`\n\n### minDate - iOS, Android, Windows\nMinimum date.\n\nType: Date | empty String\n\nDefault: `(empty String)`\n\nminDate is a Date object for iOS and a millisecond precision unix timestamp for Android, so you need to account for that when using the plugin. Also, on Android, only the date is enforced (time is not).\n\n### maxDate - iOS, Android, Windows\nMaximum date.\n\nType: Date | empty String\n\nDefault: `(empty String)`\n\n### titleText - Android\nLabel for the dialog title. If empty, uses android default (Set date/Set time).\n\nType: String | empty String\n\nDefault: `(empty String)`\n\n### okText - Android\nLabel of BUTTON_POSITIVE (done button). If empty, uses android.R.string.ok.\n\nType: String | empty String\n\nDefault: `(empty String)`\n\n### cancelText - Android\nLabel of BUTTON_NEGATIVE (cancel button). If empty, uses android.R.string.cancel.\n\nType: String | empty String\n\nDefault: `(empty String)`\n\n### todayText - Android\nLabel of today button. If empty, doesn't show the option to select current date.\n\nType: String | empty String\n\nDefault: `(empty String)`\n\n### nowText - Android\nLabel of now button. If empty, doesn't show the option to select current time.\n\nType: String | empty String\n\nDefault: `(empty String)`\n\n### is24Hour - Android\nShows time dialog in 24 hours format.\n\nType: Boolean\n\nValues: `true` | `false`\n\nDefault: `false`\n\n### androidTheme - Android\nChoose the theme of the picker\n\nType: Int\n\nValues: `THEME_TRADITIONAL | THEME_HOLO_DARK | THEME_HOLO_LIGHT | THEME_DEVICE_DEFAULT_DARK | THEME_DEVICE_DEFAULT_LIGHT`\n\nDefault: `THEME_TRADITIONAL`\n\n### allowOldDates - iOS\nShows or hide dates earlier then selected date.\n\nType: Boolean\n\nValues: `true` | `false`\n\nDefault: `true`\n\n### allowFutureDates - iOS\nShows or hide dates after selected date.\n\nType: Boolean\n\nValues: `true` | `false`\n\nDefault: `true`\n\n### doneButtonLabel - iOS\nLabel of done button.\n\nTyp: String\n\nDefault: `Done`\n\n### doneButtonColor - iOS\nHex color of done button.\n\nTyp: String\n\nDefault: `#0000FF`\n\n### cancelButtonLabel - iOS\nLabel of cancel button.\n\nType: String\n\nDefault: `Cancel`\n\n### cancelButtonColor - iOS\nHex color of cancel button.\n\nType: String\n\nDefault: `#000000`\n\n### x - iOS (iPad only)\nX position of date picker. The position is absolute to the root view of the application.\n\nType: String\n\nDefault: `0`\n\n### y - iOS (iPad only)\nY position of date picker. The position is absolute to the root view of the application.\n\nType: String\n\nDefault: `0`\n\n### minuteInterval - iOS\nInterval between options in the minute section of the date picker.\n\nType: Integer\n\nDefault: `1`\n\n### popoverArrowDirection - iOS\nForce the UIPopoverArrowDirection enum.\nThe value `any` will revert to default `UIPopoverArrowDirectionAny` and let the app choose the proper direction itself.\n\nValues: `up` | `down` | `left` | `right` | `any`\n\nType: String\n\nDefault: `any`\n\n### locale - iOS\nForce locale for datePicker.\n\nType: String\n\nDefault: `en_us`\n\n## Requirements\n- Cordova 3.0+\n- iOS 6.0+\n- Android 2.3+\n","readmeFilename":"README.md"}