diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts index eea7532..b86cd69 100644 --- a/dist/types/index.d.ts +++ b/dist/types/index.d.ts @@ -2,7 +2,6 @@ import type { CSSProperties, Ref } from 'vue'; import type { VBtn, VCheckbox, VSelect, VSwitch, VTextField, VTextarea } from 'vuetify/components'; import type { IconOptions } from 'vuetify'; import type { EventBusKey } from '@vueuse/core'; -import { AxiosError } from 'axios'; export type AlignItems = 'normal' | 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center' | 'inherit' | 'initial' | 'revert' | 'revert-layer' | 'unset'; export type FieldValue = string | boolean | number | object | [] | null | { [key: string]: string | unknown; @@ -171,22 +170,6 @@ export interface UseDisplayValueStyles { underlined: SharedProps['underlined']; }): CSSProperties; } -export interface UseSaveValue { - (options: { - settings: { - [key: string]: string | unknown; - }; - emit: { - (e: 'loading', response: boolean): void; - (e: 'error', error: AxiosError): AxiosError; - (e: 'update', response: unknown): void; - }; - name: SharedProps['name']; - value: FieldValue; - }): Promise<{ - [key: string]: string | unknown; - } | undefined>; -} export interface UseToggleField { (options: { attrs: object; diff --git a/package.json b/package.json index bedd0fb..71446d7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "dev": "vite", "watch": "pnpm dev", "play": "sh src/playground/configs/build.sh && NODE_ENV=playground vite", - "bundle": "rollup -c --bundleConfigAsCjs", "build": "vue-tsc && vite build --config vite.build.config.ts", "build:docs": "vite build", "predeploy": "npm run build", @@ -77,9 +76,7 @@ "@fortawesome/free-solid-svg-icons": "^6.4.0", "@fortawesome/vue-fontawesome": "^3.0.3", "@mdi/font": "^7.2.96", - "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-commonjs": "^25.0.2", - "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", "@rollup/plugin-terser": "^0.4.3", "@types/node": "^20.3.1", @@ -92,7 +89,6 @@ "@vue/compiler-sfc": "^3.3.4", "@vue/eslint-config-typescript": "^11.0.3", "autoprefixer": "^10.4.14", - "axios": "^1.4.0", "eslint": "^8.43.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.27.5", @@ -101,7 +97,6 @@ "gh-pages": "^5.0.0", "husky": "^8.0.3", "lint-staged": "^13.2.2", - "miragejs": "^0.1.47", "pinia": "^2.1.4", "postcss": "^8.4.24", "postcss-html": "^1.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d376342..e883b2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,9 +9,7 @@ specifiers: '@fortawesome/free-solid-svg-icons': ^6.4.0 '@fortawesome/vue-fontawesome': ^3.0.3 '@mdi/font': ^7.2.96 - '@rollup/plugin-alias': ^5.0.0 '@rollup/plugin-commonjs': ^25.0.2 - '@rollup/plugin-json': ^6.0.0 '@rollup/plugin-node-resolve': ^15.1.0 '@rollup/plugin-terser': ^0.4.3 '@types/node': ^20.3.1 @@ -25,7 +23,6 @@ specifiers: '@vue/eslint-config-typescript': ^11.0.3 '@vueuse/core': ^10.2.0 autoprefixer: ^10.4.14 - axios: ^1.4.0 eslint: ^8.43.0 eslint-config-prettier: ^8.8.0 eslint-plugin-import: ^2.27.5 @@ -82,9 +79,7 @@ devDependencies: '@fortawesome/free-solid-svg-icons': 6.4.0 '@fortawesome/vue-fontawesome': 3.0.3_4mhwavzfveoxqj3h5dtyilc35q '@mdi/font': 7.2.96 - '@rollup/plugin-alias': 5.0.0_rollup@3.25.2 '@rollup/plugin-commonjs': 25.0.2_rollup@3.25.2 - '@rollup/plugin-json': 6.0.0_rollup@3.25.2 '@rollup/plugin-node-resolve': 15.1.0_rollup@3.25.2 '@rollup/plugin-terser': 0.4.3_rollup@3.25.2 '@types/node': 20.3.1 @@ -97,7 +92,6 @@ devDependencies: '@vue/compiler-sfc': 3.3.4 '@vue/eslint-config-typescript': 11.0.3_7opor5gjkzvgymujzuao4oahrq autoprefixer: 10.4.14_postcss@8.4.24 - axios: 1.4.0 eslint: 8.43.0 eslint-config-prettier: 8.8.0_eslint@8.43.0 eslint-plugin-import: 2.27.5_xbmxagvnybo2jl7juxefj7cn2m @@ -1895,19 +1889,6 @@ packages: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} dev: true - /@rollup/plugin-alias/5.0.0_rollup@3.25.2: - resolution: {integrity: sha512-l9hY5chSCjuFRPsnRm16twWBiSApl2uYFLsepQYwtBuAxNMQ/1dJqADld40P0Jkqm65GRTLy/AC6hnpVebtLsA==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - rollup: 3.25.2 - slash: 4.0.0 - dev: true - /@rollup/plugin-commonjs/25.0.2_rollup@3.25.2: resolution: {integrity: sha512-NGTwaJxIO0klMs+WSFFtBP7b9TdTJ3K76HZkewT8/+yHzMiUGVQgaPtLQxNVYIgT5F7lxkEyVID+yS3K7bhCow==} engines: {node: '>=14.0.0'} @@ -1941,19 +1922,6 @@ packages: rollup: 3.25.2 dev: true - /@rollup/plugin-json/6.0.0_rollup@3.25.2: - resolution: {integrity: sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0 - peerDependenciesMeta: - rollup: - optional: true - dependencies: - '@rollup/pluginutils': 5.0.2_rollup@3.25.2 - rollup: 3.25.2 - dev: true - /@rollup/plugin-node-resolve/15.1.0_rollup@3.25.2: resolution: {integrity: sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA==} engines: {node: '>=14.0.0'} @@ -3412,10 +3380,6 @@ packages: resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} dev: true - /asynckit/0.4.0: - resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - dev: true - /at-least-node/1.0.0: resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} engines: {node: '>= 4.0.0'} @@ -3442,16 +3406,6 @@ packages: engines: {node: '>= 0.4'} dev: true - /axios/1.4.0: - resolution: {integrity: sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==} - dependencies: - follow-redirects: 1.15.2 - form-data: 4.0.0 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - dev: true - /babel-loader/8.3.0_jd2l7qxnmfb3cup5p66awjbbry: resolution: {integrity: sha512-H8SvsMF+m9t15HNLMipppzkC+Y2Yq+v3SonZyU70RBL/h1gxPkH08Ot8pEE9Z4Kd+czyWJClmFS8qzIP9OZ04Q==} engines: {node: '>= 8.9'} @@ -3891,13 +3845,6 @@ packages: engines: {node: '>=0.1.90'} dev: true - /combined-stream/1.0.8: - resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} - engines: {node: '>= 0.8'} - dependencies: - delayed-stream: 1.0.0 - dev: true - /commander/10.0.1: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} @@ -4491,11 +4438,6 @@ packages: object-keys: 1.1.1 dev: true - /delayed-stream/1.0.0: - resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} - engines: {node: '>=0.4.0'} - dev: true - /depd/1.1.2: resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} engines: {node: '>= 0.6'} @@ -5320,7 +5262,7 @@ packages: resolution: {integrity: sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==} dev: true - /follow-redirects/1.15.2: + /follow-redirects/1.15.2_debug@4.3.4: resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==} engines: {node: '>=4.0'} peerDependencies: @@ -5328,6 +5270,8 @@ packages: peerDependenciesMeta: debug: optional: true + dependencies: + debug: 4.3.4 dev: true /for-each/0.3.3: @@ -5336,15 +5280,6 @@ packages: is-callable: 1.2.7 dev: true - /form-data/4.0.0: - resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} - engines: {node: '>= 6'} - dependencies: - asynckit: 0.4.0 - combined-stream: 1.0.8 - mime-types: 2.1.35 - dev: true - /forwarded/0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} engines: {node: '>= 0.6'} @@ -5836,7 +5771,7 @@ packages: engines: {node: '>=8.0.0'} dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.15.2 + follow-redirects: 1.15.2_debug@4.3.4 requires-port: 1.0.0 transitivePeerDependencies: - debug @@ -7946,10 +7881,6 @@ packages: ipaddr.js: 1.9.1 dev: true - /proxy-from-env/1.1.0: - resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - dev: true - /pseudomap/1.0.2: resolution: {integrity: sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==} dev: true @@ -8530,11 +8461,6 @@ packages: engines: {node: '>=8'} dev: true - /slash/4.0.0: - resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==} - engines: {node: '>=12'} - dev: true - /slice-ansi/3.0.0: resolution: {integrity: sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==} engines: {node: '>=8'} diff --git a/src/documentation/sections/DependenciesSection.vue b/src/documentation/sections/DependenciesSection.vue index 939543c..893f348 100644 --- a/src/documentation/sections/DependenciesSection.vue +++ b/src/documentation/sections/DependenciesSection.vue @@ -11,31 +11,29 @@ ># Dependencies + - - - - Vuetify v3 - -
- - Vue 3 - -
- - VueUse - -
-
+ + + Vuetify v3 + +
+ + Vue 3 + +
+ + VueUse +
diff --git a/src/documentation/sections/LegalSection.vue b/src/documentation/sections/LegalSection.vue index 602f129..0a15141 100644 --- a/src/documentation/sections/LegalSection.vue +++ b/src/documentation/sections/LegalSection.vue @@ -11,15 +11,13 @@ ># Legal + - - -

- Vuetify and the Vuetify logo are trademarks of Vuetify LLC. This - component was not created or endorsed by Vuetify. -

-
-
+ +

+ Vuetify and the Vuetify logo are trademarks of Vuetify LLC. This + component was not created or endorsed by Vuetify. +

diff --git a/src/documentation/sections/LicenseSection.vue b/src/documentation/sections/LicenseSection.vue index 193115d..e5845e5 100644 --- a/src/documentation/sections/LicenseSection.vue +++ b/src/documentation/sections/LicenseSection.vue @@ -11,34 +11,29 @@ ># License + - - - Copyright © {{ new Date().getFullYear() }} - WebDevNerdStuff -
- Licensed under the - - MIT License - -
-
+ + Copyright © {{ new Date().getFullYear() }} + WebDevNerdStuff +
+ Licensed under the + + MIT License +
diff --git a/src/types/index.ts b/src/types/index.ts index 16934c4..99989be 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -13,9 +13,6 @@ import type { } from 'vuetify/components'; import type { IconOptions } from 'vuetify'; import type { EventBusKey } from '@vueuse/core'; -import { - AxiosError, -} from 'axios'; // -------------------------------------------------- Types // @@ -276,23 +273,6 @@ export interface UseDisplayValueStyles { ): CSSProperties; } -export interface UseSaveValue { - ( - options: { - settings: { - [key: string]: string | unknown; - }, - emit: { - (e: 'loading', response: boolean): void; - (e: 'error', error: AxiosError): AxiosError; - (e: 'update', response: unknown): void; - }, - name: SharedProps['name'], - value: FieldValue, - } - ): Promise<{ [key: string]: string | unknown; } | undefined>; -} - export interface UseToggleField { ( options: {