{"_id":"v-address-fields","_rev":"1-857ed83a099c516eecb64c0e783f932d","name":"v-address-fields","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"v-address-fields","version":"1.0.0","description":"A Vue.js plugin providing components to collect address information extending the Vuetify UI library.","author":{"name":"Morgan Benton","email":"morgan.benton@gmail.com","url":"https://morphatic.com"},"license":"MIT","main":"dist/v-address-fields.js","module":"dist/v-address-fields.js","jsdelivr":"dist/v-address-fields.js","unpkg":"dist/v-address-fields.js","types":"types/index.d.ts","keywords":["stripe","elements","vuetify","vue"],"homepage":"https://github.com/morphatic/v-address-fields#readme","repository":{"type":"git","url":"git+https://github.com/morphatic/v-address-fields.git"},"bugs":{"url":"https://github.com/morphatic/v-address-fields/issues"},"scripts":{"build":"concurrently \"yarn build:dist --no-progress\" \"yarn build:lib\" -n \"dist,lib\" --kill-others-on-fail -r","build:dist":"rimraf dist && cross-env NODE_ENV=production webpack --config build/dist.js --progress","build:lib":"node build/lib.js","commit":"git-cz","coverage":"cat ./coverage/lcov.info | coveralls","dev":"cross-env NODE_ENV=development webpack-dev-server --config build/dev.js --hot","lint":"concurrently -n \"tsc,tslint,eslint\" --kill-others-on-fail \"tsc --noEmit --pretty\" \"tslint -p . src/**/*.ts -t verbose\" \"eslint --ext .js,.ts src\"","lint:fix":"concurrently -n \"tsc,tslint,eslint\" \"tsc --noEmit --pretty\" \"tslint --fix -p . src/**/*.ts -t verbose\" \"eslint --fix --ext .js,.ts src\"","release":"yarn run semantic-release","test":"node build/jest.js","test:coverage":"yarn test --coverage","test:unix":"cross-env NODE_ENV=test jest","test:watch":"yarn test --watch","test:win32":"cross-env NODE_ENV=test jest -i","tsc":"tsc","watch":"cross-env TARGET=development webpack --config build/dist.js --progress --hide-modules --watch","semantic-release":"semantic-release"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/plugin-proposal-object-rest-spread":"^7.5.5","@babel/preset-env":"^7.5.5","@mdi/js":"^4.0.96","@types/jest":"^24.0.17","@types/node":"^12.7.2","@types/stripe-v3":"^3.1.6","@types/tapable":"^1.0.4","@types/webpack":"^4.32.1","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","@vue/eslint-config-standard":"^4.0.0","@vue/test-utils":"^1.0.0-beta.29","autoprefixer":"^9.6.1","babel-loader":"^8.0.6","babel-plugin-detective":"^2.0.0","change-case":"^3.1.0","commitizen":"^4.0.3","concurrently":"^4.1.1","core-js":"^3.2.1","cross-env":"^5.2.0","css-loader":"^3.2.0","cssnano":"^4.1.10","cz-conventional-changelog":"3.0.2","dotenv":"^8.0.0","eslint":"^6.1.0","eslint-loader":"^2.2.1","eslint-plugin-jest":"^22.15.1","eslint-plugin-vue":"^5.2.3","eslint-plugin-vuetify":"^1.0.0-beta.3","fibers":"^4.0.1","fork-ts-checker-webpack-plugin":"^1.5.0","friendly-errors-webpack-plugin":"^1.7.0","happypack":"^5.0.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jest-css-modules":"^2.1.0","jest-environment-jsdom-fourteen":"^0.1.0","jest-serializer-html":"^7.0.0","mini-css-extract-plugin":"^0.8.0","optimize-css-assets-webpack-plugin":"^5.0.3","postcss-loader":"^3.0.0","rimraf":"^3.0.0","sass":"^1.22.10","sass-loader":"^7.2.0","semantic-release":"^15.13.24","shelljs":"^0.8.3","style-loader":"^1.0.0","terser-webpack-plugin":"^1.4.1","ts-jest":"^24.0.2","ts-loader":"^6.0.4","tslint":"^5.18.0","typescript":"^3.5.3","typestrict":"^1.0.2","url-loader":"^2.1.0","vue":"^2.6.10","vue-loader":"^15.7.1","vue-meta":"^2.2.1","vue-template-compiler":"^2.6.10","vuetify":"^2.0.15","vuetify-loader":"^1.3.0","webpack":"^4.39.2","webpack-cli":"^3.3.6","webpack-dev-server":"^3.8.0","webpack-merge":"^4.2.1"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"dependencies":{"usa-states":"^0.0.5"},"gitHead":"6180942562ffe714651e79f558345123ea02ffd8","_id":"v-address-fields@1.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ZxZnAfSYJyOphBiJJh4YTIdyvj344kJ1505iZ41HMBPYobw3PKArNUV1bi+wPCRp7faRz3kv1jvv7z9C+/WJ9Q==","shasum":"32647f3fa80f0b80732b57de340c2a371fe02e75","tarball":"https://registry.npmjs.org/v-address-fields/-/v-address-fields-1.0.0.tgz","fileCount":25,"unpackedSize":3183060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdds57CRA9TVsSAnZWagAAGxcP/04P1UhsoLRAqR7GXfzc\nlTqJACpxB5w6otCGLuPIfxxtqQlRKCsSdObKmIuN91N1AHFVawgUlrFQNpPo\nsZpHWK8dk+cqds/MS8d0kNm5YU0Bx+wfmeDf/Rxxf3284MLk3Nu96Q2P9+Y5\nD2jhk3KJMTDYLeKe+hvJtWxbTe3aq+X03i8Mdl4XHAXETMpyrld/1CAh2RrR\nfNxnrskngFmBtlnfZ7tDj/aRVF9qUsUO/L4IAKOlKQ76hLXAm7AVCysgGEF4\nd4hoeELro02qKHZP0tJN0Gh8oSjrCur+WInmgUVaisDyOAG7erWx6ftDo3Gy\n8i18IqnTp9vqa1EWf6E1KwsJIsU3rxkMiKkhF0W5Dvh23HP1+etWuESyCcOy\nS+jPfD3qJKXhAktVvTDSHPK30bz6fkKCZhVVX6NMABog7tPUi0Yk1ngmN2uw\nJlR2u6iEUZcBCkaEgfXbqeg5eHVl+N+kh1NlGFOaQ7GlM7+PgnjyQMrgIz8h\n06HdPWCOyKzHlX29xiMPHTYf6xnuTQ8HbAJR4u8aQn+EQi5OUBc0dTgwoNBS\nX1dtpYAh7EX78YG9PMOpOC4B6+JHI2gkp6Dy9xXQIkIWrtxh4sxxvZH94Kt5\nwbge96sjlJPLppjZaKBzghedIEb+JyAc2cOJ7OdO1qIOyOU9V+XHx2B80XUW\nRZBI\r\n=qoPj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFBIE4MU06e1klr7b//54x3xiGD0I/PDBvjocgOMBLzAiA8Iku/aM5EaOZHBZKN8g/S9+p5p9wWHg9Mf8PfCoP5EA=="}]},"maintainers":[{"name":"morphatic","email":"morgan.benton@gmail.com"}],"_npmUser":{"name":"morphatic","email":"morgan.benton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-address-fields_1.0.0_1568067194761_0.8609601518267171"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-09T22:13:14.760Z","1.0.0":"2019-09-09T22:13:14.924Z","modified":"2022-05-23T01:06:47.662Z"},"maintainers":[{"name":"morphatic","email":"morgan.benton@gmail.com"}],"description":"A Vue.js plugin providing components to collect address information extending the Vuetify UI library.","homepage":"https://github.com/morphatic/v-address-fields#readme","keywords":["stripe","elements","vuetify","vue"],"repository":{"type":"git","url":"git+https://github.com/morphatic/v-address-fields.git"},"author":{"name":"Morgan Benton","email":"morgan.benton@gmail.com","url":"https://morphatic.com"},"bugs":{"url":"https://github.com/morphatic/v-address-fields/issues"},"license":"MIT","readme":"# VAddressFields\n\n[![Build Status](https://travis-ci.org/morphatic/v-address-fields.svg?branch=master)](https://travis-ci.org/morphatic/v-address-fields)\n[![Coverage Status](https://coveralls.io/repos/github/morphatic/v-address-fields/badge.svg?branch=master)](https://coveralls.io/github/morphatic/v-address-fields?branch=master)\n[![NPM](https://img.shields.io/npm/v/v-address-fields)](https://www.npmjs.com/package/v-address-fields)\n[![Downloads at NPM](https://img.shields.io/npm/dw/v-address-fields)](https://www.npmjs.com/package/v-address-fields)\n[![GitHub](https://img.shields.io/github/license/morphatic/v-address-fields)](https://github.com/morphatic/v-address-fields/blob/master/LICENSE)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![We use Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n`VAddressFields` is a [Vue.js](https://vuejs.org) plugin that provides components for collecting postal address information. It extends [the Vuetify UI library](https://vuetifyjs.com) which implements the [Material design standard](https://material.io).\n\nCheck out a [working demo on CodePen](https://codepen.io/morphatic/pen/KKPozPP).\n\n> NOTE: This is a **_very_** simple component that was created primarily as part of [a short course on how to build packageable components to extend Vuetify with TypeScript](https://morphatic.com/2019/09/04/building-packageable-components-to-extend-vuetify-with-typescript-part-1/). While it should perform exactly as advertised, many developers may find it is just easier to provide [a list of US states](https://www.npmjs.com/package/usa-states) directly to a [Vuetify `VAutocomplete` component](https://vuetifyjs.com/en/components/autocompletes).\n\n## Installation\n\nFrom the root of a Vue project already using Vuetify:\n\n```sh\nnpm i -S v-address-fields\n```\n\nOr if using yarn\n\n```sh\nyarn add v-address-fields\n```\n\nIf you want the component to be registered and available globally, from your main Vue configuration file (frequently `src/main.js`), add the following **before** instantiating Vue for the first time:\n\n```js\nimport Vue from 'vue'\nimport VAddressFields from 'v-address-fields'\n\nVue.use(VAddressFields)\n```\n\nOr if you just want to use the `v-state-select` component within another component:\n\n```vue\n<script>\n  import { VStateSelect } from 'v-address-fields'\n  export default {\n    components: {\n      VStateSelect\n    },\n    /* ... the rest of your code ... */\n  }\n</script>\n```\n\n## Basic Usage\n\n```vue\n<template>\n  <v-state-select v-model=\"state\"></v-state-select>\n</template>\n\n<script>\n  // the import statement and components section is unnecessary\n  // if the component was registered globally (see above)\n  import { VStateSelect } from 'v-address-fields'\n  export default {\n    components: {\n      VStateSelect\n    },\n    data: () => ({\n      state: null\n    })\n    /* ... the rest of your code ... */\n  }\n</script>\n```\n\n## Description\n\n`VStateSelect` extends [Vuetify's `VAutocomplete` component](https://vuetifyjs.com/en/components/autocompletes). All of the properties available on `VAutocomplete` are also available on `VStateSelect` **_except_** `items`. The `items` property is overridden by the list of US states built into this component. There are five properties unique to `VStateSelect` that allow you to modify the list of states:\n\n|         Name         |    Type    | Default | Required? | Description                                                                                                                                                       |\n|:--------------------:|:----------:|:-------:|:---------:|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n|   `contiguousOnly`   |  `boolean` | `false` |     no    | Only include the \"lower 48\" contiguous US States                                                                                                                  |\n|       `exclude`      | `string[]` |   `[]`  |     no    | List of states or territories to exclude. Can be an array of state abbreviations, e.g. `['AK', 'HI']`, state names, e.g. `['Alaska', 'Hawaii']`, or a mix of both |\n| `includeTerritories` | `boolean`  | `false` |     no    | Include US protectorates and territories, e.g. Puerto Rico, Guam, etc.                                                                                            |\n|     `storedValue`    |  `string`  |  `abbr` |     no    | The value to be stored in the output variable for this input. Available options: abbr, name, capital                                                              |\n|        `text`        |  `string`  |  `name` |     no    | The text value that will be shown in the dropdown. Available values: abbr, name, capital                                                                          |\n\n## Questions, Comments, Bug Reports, etc.\n\nComments, questions, pull requests, and bug reports are very welcome. Please [submit an issue via the Issues tab](https://github.com/morphatic/v-address-fields/issues) above.\n\nHave fun!\n","readmeFilename":"README.md"}