vuetify-swatches 1.7.8 → 1.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +12 -0
- package/dist/index.es.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/vuetify-swatches.css +1 -1
- package/package.json +33 -34
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vuetify-swatches
|
|
3
|
+
*
|
|
4
|
+
* @description Color Swatch component for Vuetify3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @copyright 2022-2025 By Masashi Yoshikawa All rights reserved.
|
|
7
|
+
* @license MIT
|
|
8
|
+
* @version 1.7.10
|
|
9
|
+
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),n=require("vuetify/components"),h=require("vuetify/util/colors");function p(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var t=p(h),s=e.defineComponent({__name:"VSwatches",props:{modelValue:{type:String,default:t.default.shades.white},swatches:{type:Array,default:()=>[[t.default.shades.black,t.default.shades.white,t.default.shades.transparent],[t.default.red.base,t.default.pink.base,t.default.purple.base,t.default.deepPurple.base,t.default.indigo.base,t.default.blue.base,t.default.lightBlue.base,t.default.cyan.base],[t.default.teal.base,t.default.green.base,t.default.lightGreen.base,t.default.lime.base,t.default.yellow.base,t.default.amber.base,t.default.orange.base,t.default.deepOrange.base],[t.default.brown.base,t.default.blueGrey.base,t.default.grey.base]]},size:{type:String,default:"2rem"},icon:{type:String,default:"mdi-checkbox-marked-circle"},iconSize:{type:String,default:"1rem"},variant:{type:String,default:void 0},disabled:{type:Boolean,default:!1},rounded:{type:[String,Number,Boolean],default:void 0},border:{type:[String,Number,Boolean],default:!1},elevation:{type:[String,Number],default:void 0}},emits:{"update:modelValue":a=>!0},setup(a,{emit:i}){const o=i,l=a,u=e.ref(t.default.shades.white),c=d=>u.value=d.target.value||t.default.shades.white;return e.watch(()=>u.value,d=>o("update:modelValue",d)),e.onMounted(()=>{l.modelValue&&(u.value=l.modelValue)}),(d,v)=>(e.openBlock(),e.createBlock(e.unref(n.VSheet),{class:"v-swatches"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.swatches,(f,b)=>(e.openBlock(),e.createElementBlock("div",{key:b},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,r=>(e.openBlock(),e.createBlock(e.unref(n.VBtn),{key:r,border:l.border,class:e.normalizeClass(r===e.unref(t.default).shades.transparent?"bg-trasparent":""),color:r,disabled:l.disabled,elevation:l.elevation,height:l.size,value:r,variant:l.variant,width:l.size,"min-width":"auto",onClick:c},{default:e.withCtx(()=>[r===a.modelValue?(e.openBlock(),e.createBlock(e.unref(n.VIcon),{key:0,size:a.iconSize,color:r!==e.unref(t.default).shades.transparent?r:void 0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1032,["size","color"])):e.createCommentVNode("",!0)]),_:2},1032,["border","class","color","disabled","elevation","height","value","variant","width"]))),128))]))),128))]),_:1}))}});const m=a=>a.component("VSwatches",s);exports.default=s;exports.install=m;
|
package/dist/index.es.js
CHANGED
package/dist/index.iife.js
CHANGED
package/dist/index.umd.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vuetify-swatches",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.10",
|
|
5
5
|
"description": "Color Swatch component for Vuetify3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
@@ -44,20 +44,30 @@
|
|
|
44
44
|
"exports": {
|
|
45
45
|
".": {
|
|
46
46
|
"import": "./dist/index.es.js",
|
|
47
|
-
"types": "./dist/index.d.ts"
|
|
47
|
+
"types": "./dist/index.d.ts",
|
|
48
|
+
"require": "./dist/index.cjs.js",
|
|
49
|
+
"default": "./dist/index.es.js"
|
|
50
|
+
},
|
|
51
|
+
"./umd": {
|
|
52
|
+
"default": "./dist/index.umd.js"
|
|
53
|
+
},
|
|
54
|
+
"./iife": {
|
|
55
|
+
"default": "./dist/index.iife.js"
|
|
48
56
|
},
|
|
49
57
|
"./dist/style.css": {
|
|
50
58
|
"import": "./dist/vuetify-swatches.css"
|
|
51
|
-
}
|
|
59
|
+
},
|
|
60
|
+
"./package.json": "./package.json"
|
|
52
61
|
},
|
|
53
62
|
"files": [
|
|
54
63
|
"dist",
|
|
55
64
|
"src/components/VSwatches.vue"
|
|
56
65
|
],
|
|
57
66
|
"engines": {
|
|
67
|
+
"node": ">18",
|
|
58
68
|
"pnpm": ">=10.3.0"
|
|
59
69
|
},
|
|
60
|
-
"packageManager": "pnpm@10.
|
|
70
|
+
"packageManager": "pnpm@10.13.1",
|
|
61
71
|
"sideEffects": false,
|
|
62
72
|
"scripts": {
|
|
63
73
|
"dev": "vite",
|
|
@@ -78,37 +88,37 @@
|
|
|
78
88
|
},
|
|
79
89
|
"devDependencies": {
|
|
80
90
|
"@codemirror/lang-vue": "0.1.3",
|
|
81
|
-
"@tsconfig/node-lts": "^22.0.
|
|
82
|
-
"@types/node": "^
|
|
83
|
-
"@vitejs/plugin-vue": "^
|
|
91
|
+
"@tsconfig/node-lts": "^22.0.2",
|
|
92
|
+
"@types/node": "^24.0.13",
|
|
93
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
84
94
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
85
|
-
"@vue/eslint-config-typescript": "^14.
|
|
95
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
86
96
|
"@vue/tsconfig": "^0.7.0",
|
|
87
|
-
"eslint": "^9.
|
|
97
|
+
"eslint": "^9.31.0",
|
|
88
98
|
"eslint-import-resolver-custom-alias": "^1.3.2",
|
|
89
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
90
|
-
"eslint-plugin-import": "^2.
|
|
91
|
-
"eslint-plugin-vue": "^10.
|
|
99
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
100
|
+
"eslint-plugin-import": "^2.32.0",
|
|
101
|
+
"eslint-plugin-vue": "^10.3.0",
|
|
92
102
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
93
103
|
"eslint-plugin-vuetify": "^2.5.2",
|
|
94
104
|
"husky": "^9.1.7",
|
|
95
|
-
"lint-staged": "^16.1.
|
|
105
|
+
"lint-staged": "^16.1.2",
|
|
96
106
|
"npm-run-all2": "^8.0.4",
|
|
97
|
-
"prettier": "^3.
|
|
107
|
+
"prettier": "^3.6.2",
|
|
98
108
|
"rimraf": "^6.0.1",
|
|
99
|
-
"rollup-plugin-visualizer": "^6.0.
|
|
100
|
-
"sass": "^1.89.
|
|
109
|
+
"rollup-plugin-visualizer": "^6.0.3",
|
|
110
|
+
"sass-embedded": "^1.89.2",
|
|
101
111
|
"typescript": "^5.8.3",
|
|
102
|
-
"typescript-eslint": "^8.
|
|
103
|
-
"vite": "^
|
|
112
|
+
"typescript-eslint": "^8.36.0",
|
|
113
|
+
"vite": "^7.0.4",
|
|
104
114
|
"vite-plugin-banner": "^0.8.1",
|
|
105
|
-
"vite-plugin-checker": "^0.
|
|
115
|
+
"vite-plugin-checker": "^0.10.0",
|
|
106
116
|
"vite-plugin-dts": "^4.5.4",
|
|
107
117
|
"vite-plugin-vuetify": "^2.1.1",
|
|
108
|
-
"vue": "^3.5.
|
|
109
|
-
"vue-codemirror6": "^1.3.
|
|
110
|
-
"vue-eslint-parser": "^10.
|
|
111
|
-
"vue-tsc": "^
|
|
118
|
+
"vue": "^3.5.17",
|
|
119
|
+
"vue-codemirror6": "^1.3.22",
|
|
120
|
+
"vue-eslint-parser": "^10.2.0",
|
|
121
|
+
"vue-tsc": "^3.0.1"
|
|
112
122
|
},
|
|
113
123
|
"husky": {
|
|
114
124
|
"hooks": {
|
|
@@ -123,16 +133,5 @@
|
|
|
123
133
|
"resolutions": {
|
|
124
134
|
"json5": ">=2.2.3",
|
|
125
135
|
"yaml": ">=2.3.2"
|
|
126
|
-
},
|
|
127
|
-
"pnpm": {
|
|
128
|
-
"onlyBuiltDependencies": [
|
|
129
|
-
"@parcel/watcher",
|
|
130
|
-
"esbuild",
|
|
131
|
-
"unrs-resolver",
|
|
132
|
-
"vue-demi"
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
"dependencies": {
|
|
136
|
-
"vuetify-swatches": "file:"
|
|
137
136
|
}
|
|
138
137
|
}
|