{"_id":"@dewib/parcel-stores-locator","_rev":"1-82f44b75592e27edc7fcc9ba127639f5","name":"@dewib/parcel-stores-locator","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@dewib/parcel-stores-locator","version":"1.1.0","description":"Expose and draw on the map the locations of parcel retrieval from most shippers such as UPS, DHL, La Poste ...","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/gaetansenn/parcel-stores-locator.git"},"keywords":["gmap","ups","access","point","parcels"],"author":{"name":"Gaetan SENN","url":"Dewib"},"license":"MIT","bugs":{"url":"https://github.com/gaetansenn/parcel-stores-locator/issues"},"homepage":"https://github.com/gaetansenn/parcel-stores-locator#readme","dependencies":{"consola":"^2.15.0","node-req":"^2.1.2","node-res":"^5.0.1","xml2js":"^0.4.23"},"devDependencies":{"@commitlint/cli":"^11.0.0","@commitlint/config-conventional":"^11.0.0","@nuxtjs/eslint-config":"^3.1.0","@nuxtjs/eslint-module":"^2.0.0","babel-eslint":"^10.1.0","eslint":"^7.10.0","eslint-plugin-nuxt":"^1.0.0"},"gitHead":"98490adc23a196b10df406a66730b412f0739825","_id":"@dewib/parcel-stores-locator@1.1.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-2tcR/IIaUkwhFiJ+R22PM8LJ6Z5FqgAcHb9o6zsxSwvVGzTtmD89Pcn//SmPCu5WawXASlyI9mvO74QcZw+HJA==","shasum":"c318af6bef0cb6f049fbb0d79e82a5b2936908f2","tarball":"https://registry.npmjs.org/@dewib/parcel-stores-locator/-/parcel-stores-locator-1.1.0.tgz","fileCount":11,"unpackedSize":29748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDNQmCRA9TVsSAnZWagAAm6oP/i+viY7I+6iFTunxrkZ+\nYAj+1Iv/HxkmingwrQimTwB8V5IqOm5XAKE/TIAplB0Tr4kidzGfC+uaRygV\nEfBUd3Dn+9MIj5IRdC+aFdbYqaJtPVDYFj+Dy/tO+6jEjcpsyBZ9qdsZZK7K\nYCEZasePcKeDgn6MiC4oL6i6FvIT4E9iY72Rl9/yGPSzdtXMSAylCLlgTSbC\n9t6Cz0jWiIsVYnaGjMpd5K7F1L5r3bpaS4nemaN2LeRndBkWAYpdBNI6MbPz\neZSEWztg3J2RS2/JV7oOnfL/2kLXZPWdcnSgeAuoaTUh4UhhdTzrkr/l9FAY\npdw/4LR7PaK8s0RQeQYFjVaHMRiFCJV34zpc9UGAyHUCxkr1KqAh0oKNph5w\nOFDtq/iscirlBCadfPb6Hpn2s/gWbDtGub+dg/Mk4apYEMuKVDjCXWnaESYE\nCEMHX51SbaqyE53BbImWyYJLVW28qm3qk7KB8A5XFldLx0aCLsME6NZcwYn1\noptFrOYjaE8J6+Xyj8LNs/X3qgqnrax99PPe7oa9F1YULDVl85Yr8JhxQPRY\nv/DKFYen+qgj9utwULXl4jS2EQK3c4POiWTRsOkWI1CE6PRQVXaxl8cxEAj0\nR7TtG/c+Vr3fGWq6msXcntrTHfdnafEZWAl39OIROPskkQOGbRt/07/fzNxM\nW1yB\r\n=qGof\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwrzAbHJ2GocmLWs7amx7wQM2wHATtf0+U1An1J6KLLQIhAPCuOK1oWjSItZHjemN93FqDqTfLsYYe+u1oXMrbtmer"}]},"_npmUser":{"name":"dewib","email":"contact@dewib.com"},"directories":{},"maintainers":[{"name":"dewib","email":"contact@dewib.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parcel-stores-locator_1.1.0_1645007910710_0.7149966586640857"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-16T10:38:30.657Z","1.1.0":"2022-02-16T10:38:30.844Z","modified":"2022-04-05T04:12:01.238Z"},"maintainers":[{"name":"dewib","email":"contact@dewib.com"}],"description":"Expose and draw on the map the locations of parcel retrieval from most shippers such as UPS, DHL, La Poste ...","homepage":"https://github.com/gaetansenn/parcel-stores-locator#readme","keywords":["gmap","ups","access","point","parcels"],"repository":{"type":"git","url":"git+https://github.com/gaetansenn/parcel-stores-locator.git"},"author":{"name":"Gaetan SENN","url":"Dewib"},"bugs":{"url":"https://github.com/gaetansenn/parcel-stores-locator/issues"},"license":"MIT","readme":"## Table of Contents\n\n- [Features](#features)\n- [Usage](#usage)\n\n> Module to Expose and draw on the map the locations of parcel retrieval from most shippers such as UPS, DHL, La Poste, Mondial Relay ...\n\n## Requirements\nPlease use the version of node 13 if you want to support native i18n or include intl during node compilation\n\n## Features\n\n- Api plugin (SSR, Client side) to return locations according to provider (Ups and more soon)\n- Maps components to display location (Gmap and more soon)\n- List component to display location\n\n## Usage\n\nSet the `parcelStoresLocator` option in `nuxt.config`:\n\n```js\nexport default {\n  parcelStoresLocator {\n    providers: {\n      ups: {\n        // Ups configuration\n      },\n      mondialrelay: {\n        // Mondial Relay configuration\n      }\n    }\n  }\n}\n```\n\n**Note:** If using nuxt `2.10...2.13`, you will have to import components manually otherwise install and add `@nuxt/components` to `buildModules` inside `nuxt.config`.\n\n`parcelStoresLocator` will automatically load provider according to configuration.\n\n### Components\n\nParcel Stores locator inject vue components with `components:dirs` nuxt hook to display the stores inside a map.\n\n#### Gmap\n\nPlease add `nuxt-gmaps` and set your configuration:\n\n```js\nexport default {\n  parcelStoresLocator {\n    gmap: {\n      location: {\n        icon: 'data:image/png;base64,...' // Change default gps location icon\n      },\n       compass: {\n        icon: 'data:image/png;base64,...' // Change default compass icon\n      },\n      pins: {\n        selected: {\n          icon: 'data:image/png;base64,...' // Please provide selected pin\n        },\n        unselected: {\n          icon: 'data:image/png;base64,...' // Please provide unselected pin\n        }\n      },\n      // TODO: Add more config\n    }\n  }\n}\n```\n\nThen inside your page\n```html\n<parcel-stores-locator-gmap\n  v-model=\"selected\" // selected store\n  :position=\"position\"  // position of user (ex: GPS position)\n  :locations=\"stores\" // All locations returned by $parcelStoresLocator.getGeolocation()\n  @select=\"select\" // Select event from map\n/>\n```\n\n##### Methods\nYou can access to component methods by using the ref argument.\nFor instance we would like to zoom map to locations after `display: none` removed\n\n\n```html\n<parcel-stores-locator-gmap\n  ref=\"map\"\n/>\n```\n\nThen in your component\n\n```js\nmethods: {\n  openMap () {\n    openMap () {\n      this.opened = true\n      this.$nextTick(this.$refs.map.zoomOnLocations)\n    }\n  }\n}\n```\n\n\n\n\n","readmeFilename":"README.md"}