vuetify-swatches 0.0.7 → 0.0.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/README.md +2 -2
- package/dist/components/VSwatches.vue.d.ts +36 -30
- package/dist/components/VSwatches.vue.d.ts.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/{v-swatches.es.js → index.es.js} +31 -58
- package/dist/index.umd.js +13 -0
- package/dist/style.css +11 -0
- package/package.json +39 -53
- package/src/components/VSwatches.vue +1 -1
- package/dist/v-swatches.umd.js +0 -8
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ export default Vue.extend({
|
|
|
38
38
|
</script>
|
|
39
39
|
|
|
40
40
|
<style>
|
|
41
|
-
@import 'vuetify-swatches/
|
|
41
|
+
@import 'vuetify-swatches/style.css';
|
|
42
42
|
</style>
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -117,7 +117,7 @@ export default Vue.extend({
|
|
|
117
117
|
</script>
|
|
118
118
|
|
|
119
119
|
<style>
|
|
120
|
-
@import 'vuetify-swatches/
|
|
120
|
+
@import 'vuetify-swatches/style.css';
|
|
121
121
|
</style>
|
|
122
122
|
```
|
|
123
123
|
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { type PropType, type Ref } from 'vue
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
selected: Ref<string>;
|
|
5
|
-
onSwatchClick: (e: Event) => void;
|
|
6
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
1
|
+
import { type PropType, type Ref } from 'vue';
|
|
2
|
+
/** Vuetify Swatches */
|
|
3
|
+
declare const _default: import("vue/types/v3-define-component").DefineComponent<{
|
|
7
4
|
/** Model value */
|
|
8
5
|
modelValue: {
|
|
9
6
|
type: StringConstructor;
|
|
@@ -35,37 +32,46 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
35
32
|
default: string;
|
|
36
33
|
};
|
|
37
34
|
}, {
|
|
38
|
-
modelValue: string;
|
|
39
|
-
swatches: string[] | string[][];
|
|
40
|
-
elevation: number;
|
|
41
|
-
size: string;
|
|
42
|
-
icon: string;
|
|
43
|
-
iconSize: string;
|
|
44
|
-
} & {}> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
45
|
-
modelValue: string;
|
|
46
|
-
swatches: string[] | string[][];
|
|
47
|
-
elevation: number;
|
|
48
|
-
size: string;
|
|
49
|
-
icon: string;
|
|
50
|
-
iconSize: string;
|
|
51
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
52
35
|
checkedVisibilty: Ref<boolean>;
|
|
53
36
|
selected: Ref<string>;
|
|
54
37
|
onSwatchClick: (e: Event) => void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
38
|
+
}, import("vue").Data, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
/** Model value */
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
/** Swatch colors */
|
|
45
|
+
swatches: {
|
|
46
|
+
type: PropType<string[] | string[][]>;
|
|
47
|
+
default: () => string[][];
|
|
48
|
+
};
|
|
49
|
+
/** The size of the shadow of the button */
|
|
50
|
+
elevation: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
/** Swatch sized */
|
|
55
|
+
size: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
/** selected icon */
|
|
60
|
+
icon: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
/** selected icon size */
|
|
65
|
+
iconSize: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
}>>, {
|
|
63
70
|
swatches: string[] | string[][];
|
|
64
71
|
elevation: number;
|
|
65
72
|
size: string;
|
|
66
73
|
icon: string;
|
|
67
74
|
iconSize: string;
|
|
68
|
-
}
|
|
69
|
-
/** Vuetify Swatches */
|
|
75
|
+
}>;
|
|
70
76
|
export default _default;
|
|
71
77
|
//# sourceMappingURL=VSwatches.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSwatches.vue.d.ts","sourceRoot":"","sources":["../../src/components/VSwatches.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,GAAG,EAET,MAAM,
|
|
1
|
+
{"version":3,"file":"VSwatches.vue.d.ts","sourceRoot":"","sources":["../../src/components/VSwatches.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,GAAG,EAET,MAAM,KAAK,CAAC;AAKb,uBAAuB;;IAgBnB,kBAAkB;;;;;IAElB,oBAAoB;;;;;IA4BpB,2CAA2C;;;;;IAE3C,mBAAmB;;;;;IAEnB,oBAAoB;;;;;IAEpB,yBAAyB;;;;;;;;uBAsBC,KAAK;;IA1D/B,kBAAkB;;;;;IAElB,oBAAoB;;;;;IA4BpB,2CAA2C;;;;;IAE3C,mBAAmB;;;;;IAEnB,oBAAoB;;;;;IAEpB,yBAAyB;;;;;;;;;;;;AAnD7B,wBAwFG"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vuetify Swatches Component
|
|
3
|
-
*
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @author Logue {@link logue@hotmail.co.jp}
|
|
6
|
-
* @copyright 2022 Masashi Yoshikawa {@link https://logue.dev/} All rights reserved.
|
|
7
|
-
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
8
|
-
*/
|
|
9
1
|
import VSwatches from './components/VSwatches.vue';
|
|
10
|
-
declare const installVSwatches:
|
|
2
|
+
declare const installVSwatches: (app: any) => any;
|
|
11
3
|
export { VSwatches as default, installVSwatches as install };
|
|
12
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAEnD,QAAA,MAAM,gBAAgB,mBAA+C,CAAC;AAEtE,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* vuetify-swatches
|
|
3
|
+
*
|
|
4
|
+
* @description Color Swatch component for Vuetify.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
7
|
+
* @license MIT
|
|
8
|
+
* @version 0.1.0
|
|
9
|
+
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
|
+
*/
|
|
11
|
+
|
|
2
12
|
import { VSheet, VBtn, VIcon } from "vuetify/lib";
|
|
13
|
+
import { defineComponent, ref } from "vue";
|
|
3
14
|
import colors from "vuetify/lib/util/colors";
|
|
4
|
-
var
|
|
15
|
+
var _sfc_main = defineComponent({
|
|
5
16
|
name: "VSwatches",
|
|
6
17
|
components: {
|
|
7
18
|
VSheet,
|
|
@@ -65,45 +76,12 @@ var __vue2_script = defineComponent({
|
|
|
65
76
|
};
|
|
66
77
|
}
|
|
67
78
|
});
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
var _h = _vm.$createElement;
|
|
71
|
-
var _c = _vm._self._c || _h;
|
|
72
|
-
return _c(VSheet, {
|
|
73
|
-
staticClass: "v-swatches"
|
|
74
|
-
}, _vm._l(_vm.swatches, function(colors2, rows) {
|
|
75
|
-
return _c("div", {
|
|
76
|
-
key: rows
|
|
77
|
-
}, _vm._l(colors2, function(color) {
|
|
78
|
-
return _c(VBtn, {
|
|
79
|
-
key: color,
|
|
80
|
-
attrs: {
|
|
81
|
-
"elevation": _vm.elevation,
|
|
82
|
-
"width": _vm.size,
|
|
83
|
-
"height": _vm.size,
|
|
84
|
-
"color": color,
|
|
85
|
-
"value": color,
|
|
86
|
-
"min-width": "auto"
|
|
87
|
-
},
|
|
88
|
-
on: {
|
|
89
|
-
"click": _vm.onSwatchClick
|
|
90
|
-
}
|
|
91
|
-
}, [color === _vm.selected ? _c(VIcon, {
|
|
92
|
-
attrs: {
|
|
93
|
-
"size": _vm.iconSize,
|
|
94
|
-
"color": color
|
|
95
|
-
}
|
|
96
|
-
}, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
|
|
97
|
-
}), 1);
|
|
98
|
-
}), 0);
|
|
99
|
-
};
|
|
100
|
-
var staticRenderFns = [];
|
|
101
|
-
var VSwatches_vue_vue_type_style_index_0_lang = "";
|
|
102
|
-
function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
79
|
+
var VSwatches_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".v-swatches .v-btn{padding:0!important;margin:.1rem}.v-swatches .v-btn .v-icon{filter:invert(100%)}\n")();
|
|
80
|
+
function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
103
81
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
104
82
|
if (render2) {
|
|
105
83
|
options.render = render2;
|
|
106
|
-
options.staticRenderFns =
|
|
84
|
+
options.staticRenderFns = staticRenderFns;
|
|
107
85
|
options._compiled = true;
|
|
108
86
|
}
|
|
109
87
|
if (functionalTemplate) {
|
|
@@ -150,25 +128,20 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
|
|
|
150
128
|
options
|
|
151
129
|
};
|
|
152
130
|
}
|
|
153
|
-
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
131
|
+
var _sfc_render = function render() {
|
|
132
|
+
var _vm = this, _c = _vm._self._c;
|
|
133
|
+
_vm._self._setupProxy;
|
|
134
|
+
return _c(VSheet, { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors2, rows) {
|
|
135
|
+
return _c("div", { key: rows }, _vm._l(colors2, function(color) {
|
|
136
|
+
return _c(VBtn, { key: color, attrs: { "elevation": _vm.elevation, "width": _vm.size, "height": _vm.size, "color": color, "value": color, "min-width": "auto" }, on: { "click": _vm.onSwatchClick } }, [color === _vm.selected ? _c(VIcon, { attrs: { "size": _vm.iconSize, "color": color } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
|
|
137
|
+
}), 1);
|
|
138
|
+
}), 0);
|
|
139
|
+
};
|
|
140
|
+
var _sfc_staticRenderFns = [];
|
|
141
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
142
|
+
var VSwatches = __component__.exports;
|
|
143
|
+
const installVSwatches = (app) => app.component("VSwatches", VSwatches);
|
|
144
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
145
|
+
window.Vue.use(VSwatches);
|
|
159
146
|
}
|
|
160
|
-
var VSwatches = /* @__PURE__ */ function() {
|
|
161
|
-
return __component__.exports;
|
|
162
|
-
}();
|
|
163
|
-
/**
|
|
164
|
-
* Vuetify Swatches Component
|
|
165
|
-
*
|
|
166
|
-
* @license MIT
|
|
167
|
-
* @author Logue {@link logue@hotmail.co.jp}
|
|
168
|
-
* @copyright 2022 Masashi Yoshikawa {@link https://logue.dev/} All rights reserved.
|
|
169
|
-
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
170
|
-
*/
|
|
171
|
-
const installVSwatches = isVue2 ? (app) => {
|
|
172
|
-
app.component("VSwatches", VSwatches);
|
|
173
|
-
} : install();
|
|
174
147
|
export { VSwatches as default, installVSwatches as install };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vuetify-swatches
|
|
3
|
+
*
|
|
4
|
+
* @description Color Swatch component for Vuetify.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
7
|
+
* @license MIT
|
|
8
|
+
* @version 0.1.0
|
|
9
|
+
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
(function(i,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vuetify/lib"),require("vue"),require("vuetify/lib/util/colors")):typeof define=="function"&&define.amd?define(["exports","vuetify/lib","vue","vuetify/lib/util/colors"],u):(i=typeof globalThis<"u"?globalThis:i||self,u(i.VSwatches={},i.Vuetify,i.Vue,i.colors))})(this,function(i,u,_,m){"use strict";function b(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var e=b(m),y=_.defineComponent({name:"VSwatches",components:{VSheet:u.VSheet,VBtn:u.VBtn,VIcon:u.VIcon},model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{type:String,required:!0},swatches:{type:Array,default:()=>[[e.default.shades.black,e.default.shades.white],[e.default.red.base,e.default.pink.base,e.default.purple.base,e.default.deepPurple.base,e.default.indigo.base,e.default.blue.base,e.default.lightBlue.base,e.default.cyan.base],[e.default.teal.base,e.default.green.base,e.default.lightGreen.base,e.default.lime.base,e.default.yellow.base,e.default.amber.base,e.default.orange.base,e.default.deepOrange.base],[e.default.brown.base,e.default.blueGrey.base,e.default.grey.base]]},elevation:{type:Number,default:1},size:{type:String,default:"2rem"},icon:{type:String,default:"mdi-checkbox-marked-circle"},iconSize:{type:String,default:"1rem"}},emits:["update:modelValue"],setup(a,t){const r=_.ref(!1),f=_.ref(a.modelValue);return{checkedVisibilty:r,selected:f,onSwatchClick:s=>{const c=s.target.value;!c||f.value===c||(f.value=c,t.emit("update:modelValue",c))}}}}),R=(()=>`.v-swatches .v-btn{padding:0!important;margin:.1rem}.v-swatches .v-btn .v-icon{filter:invert(100%)}
|
|
13
|
+
`)();function V(a,t,r,f,o,s,c,k){var n=typeof a=="function"?a.options:a;t&&(n.render=t,n.staticRenderFns=r,n._compiled=!0),f&&(n.functional=!0),s&&(n._scopeId="data-v-"+s);var d;if(c?(d=function(l){l=l||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!l&&typeof __VUE_SSR_CONTEXT__<"u"&&(l=__VUE_SSR_CONTEXT__),o&&o.call(this,l),l&&l._registeredComponents&&l._registeredComponents.add(c)},n._ssrRegister=d):o&&(d=k?function(){o.call(this,(n.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(n.functional){n._injectStyles=d;var z=n.render;n.render=function(T,v){return d.call(v),z(T,v)}}else{var h=n.beforeCreate;n.beforeCreate=h?[].concat(h,d):[d]}return{exports:a,options:n}}var w=function(){var t=this,r=t._self._c;return t._self._setupProxy,r(u.VSheet,{staticClass:"v-swatches"},t._l(t.swatches,function(f,o){return r("div",{key:o},t._l(f,function(s){return r(u.VBtn,{key:s,attrs:{elevation:t.elevation,width:t.size,height:t.size,color:s,value:s,"min-width":"auto"},on:{click:t.onSwatchClick}},[s===t.selected?r(u.VIcon,{attrs:{size:t.iconSize,color:s}},[t._v(" "+t._s(t.icon)+" ")]):t._e()],1)}),1)}),0)},S=[],g=V(y,w,S,!1,null,null,null,null),p=g.exports;const C=a=>a.component("VSwatches",p);typeof window<"u"&&window.Vue&&window.Vue.use(p),i.default=p,i.install=C,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vuetify-swatches
|
|
3
|
+
*
|
|
4
|
+
* @description Color Swatch component for Vuetify.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
7
|
+
* @license MIT
|
|
8
|
+
* @version 0.1.0
|
|
9
|
+
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
|
+
*/
|
|
11
|
+
|
|
1
12
|
.v-swatches .v-btn{padding:0!important;margin:.1rem}.v-swatches .v-btn .v-icon{filter:invert(100%)}
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vuetify-swatches",
|
|
4
|
-
"
|
|
5
|
-
"version": "0.0.7",
|
|
4
|
+
"version": "0.0.10",
|
|
6
5
|
"description": "Color Swatch component for Vuetify.",
|
|
7
6
|
"keywords": [
|
|
8
7
|
"vuejs",
|
|
@@ -34,16 +33,17 @@
|
|
|
34
33
|
"node": ">=16.15.0",
|
|
35
34
|
"yarn": ">=1.22.4"
|
|
36
35
|
},
|
|
36
|
+
"packageManager": "yarn@3.2.1",
|
|
37
37
|
"license": "MIT",
|
|
38
|
-
"main": "./dist/
|
|
39
|
-
"module": "./dist/
|
|
38
|
+
"main": "./dist/index.umd.js",
|
|
39
|
+
"module": "./dist/index.es.js",
|
|
40
40
|
"browser": {
|
|
41
41
|
"./sfc": "./src/components/VSwatches.vue"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
".": {
|
|
45
|
-
"import": "./dist/
|
|
46
|
-
"require": "./dist/
|
|
45
|
+
"import": "./dist/index.es.js",
|
|
46
|
+
"require": "./dist/index.umd.js"
|
|
47
47
|
},
|
|
48
48
|
"./dist/style.css": {
|
|
49
49
|
"import": "./dist/style.css",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"sideEffects": false,
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "vite",
|
|
61
|
-
"clean": "rimraf node_modules/.vite",
|
|
61
|
+
"clean": "rimraf node_modules/.vite ",
|
|
62
62
|
"build": "vite build & vue-tsc --declaration --emitDeclarationOnly",
|
|
63
63
|
"build:analyze": "vue-tsc --noEmit && vite build --mode analyze",
|
|
64
64
|
"build:docs": "vite build --config vite.config.docs.ts",
|
|
@@ -67,73 +67,56 @@
|
|
|
67
67
|
"lint:style": "stylelint . --cache --cache-location ./node_modules/.vite/vite-plugin-stylelint",
|
|
68
68
|
"lint:markup": "vue-tsc --noEmit",
|
|
69
69
|
"preview": "vite preview --config vite.config.docs.ts",
|
|
70
|
-
"prepare": "husky install"
|
|
71
|
-
"postinstall": "npx vue-demi-fix"
|
|
72
|
-
},
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"vue-demi": "latest"
|
|
70
|
+
"prepare": "husky install"
|
|
75
71
|
},
|
|
76
72
|
"peerDependencies": {
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"vuetify": "^2.6.6"
|
|
80
|
-
},
|
|
81
|
-
"peerDependenciesMeta": {
|
|
82
|
-
"@vue/composition-api": {
|
|
83
|
-
"optional": true
|
|
84
|
-
}
|
|
73
|
+
"vue": "^2.7.2",
|
|
74
|
+
"vuetify": "^2.6.7"
|
|
85
75
|
},
|
|
86
76
|
"devDependencies": {
|
|
87
|
-
"@codemirror/
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"
|
|
94
|
-
"@vue/eslint-config-typescript": "^10.0.0",
|
|
95
|
-
"eslint": "^8.16.0",
|
|
77
|
+
"@codemirror/lang-html": "^6.1.0",
|
|
78
|
+
"@types/node": "^18.0.2",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
80
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
81
|
+
"@vitejs/plugin-vue2": "^1.1.2",
|
|
82
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
83
|
+
"eslint": "^8.19.0",
|
|
96
84
|
"eslint-config-google": "^0.14.0",
|
|
97
85
|
"eslint-config-prettier": "^8.5.0",
|
|
98
|
-
"eslint-config-vuetify": "^0.6.1",
|
|
99
86
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
100
|
-
"eslint-import-resolver-typescript": "^2.
|
|
87
|
+
"eslint-import-resolver-typescript": "^3.2.2",
|
|
88
|
+
"eslint-plugin-html": "^6.2.0",
|
|
101
89
|
"eslint-plugin-import": "^2.26.0",
|
|
102
|
-
"eslint-plugin-
|
|
103
|
-
"eslint-plugin-prettier-vue": "^3.1.0",
|
|
90
|
+
"eslint-plugin-jsdoc": "^39.3.3",
|
|
104
91
|
"eslint-plugin-tsdoc": "^0.2.16",
|
|
105
|
-
"eslint-plugin-vue": "^9.
|
|
106
|
-
"eslint-plugin-vuejs-accessibility": "^1.
|
|
92
|
+
"eslint-plugin-vue": "^9.1.1",
|
|
93
|
+
"eslint-plugin-vuejs-accessibility": "^1.2.0",
|
|
107
94
|
"eslint-plugin-vuetify": "^1.1.0",
|
|
108
95
|
"eslint-plugin-yaml": "^0.5.0",
|
|
109
96
|
"husky": "^8.0.1",
|
|
110
|
-
"lint-staged": "^
|
|
97
|
+
"lint-staged": "^13.0.3",
|
|
111
98
|
"postcss-html": "^1.4.1",
|
|
112
|
-
"prettier": "^2.
|
|
113
|
-
"prettier-plugin-jsdoc": "^0.3.38",
|
|
114
|
-
"prettier-plugin-md-nocjsp": "^1.2.0",
|
|
115
|
-
"prettier-plugin-sort-imports": "^1.6.0",
|
|
99
|
+
"prettier": "^2.7.1",
|
|
116
100
|
"rimraf": "^3.0.2",
|
|
117
101
|
"rollup-plugin-visualizer": "^5.6.0",
|
|
118
102
|
"sass": "1.32.12",
|
|
119
|
-
"stylelint": "^14.
|
|
103
|
+
"stylelint": "^14.9.1",
|
|
120
104
|
"stylelint-config-prettier": "^9.0.3",
|
|
121
105
|
"stylelint-config-recommended-scss": "^6.0.0",
|
|
122
106
|
"stylelint-config-recommended-vue": "^1.4.0",
|
|
123
107
|
"stylelint-order": "^5.0.0",
|
|
124
108
|
"stylelint-prettier": "^2.0.0",
|
|
125
|
-
"typescript": "^4.
|
|
126
|
-
"unplugin-vue-components": "^0.
|
|
127
|
-
"vite": "^2.9.
|
|
128
|
-
"vite-plugin-
|
|
129
|
-
"vite-plugin-
|
|
130
|
-
"
|
|
131
|
-
"vue": "
|
|
132
|
-
"vue-
|
|
133
|
-
"vue-
|
|
134
|
-
"vue-
|
|
135
|
-
"
|
|
136
|
-
"vuetify": "^2.6.6"
|
|
109
|
+
"typescript": "^4.7.4",
|
|
110
|
+
"unplugin-vue-components": "^0.21.0",
|
|
111
|
+
"vite": "^2.9.13",
|
|
112
|
+
"vite-plugin-banner": "^0.3.0",
|
|
113
|
+
"vite-plugin-checker": "^0.4.8",
|
|
114
|
+
"vue": "^2.7.2",
|
|
115
|
+
"vue-codemirror6": "0.6.5",
|
|
116
|
+
"vue-eslint-parser": "^9.0.3",
|
|
117
|
+
"vue-template-compiler": "^2.7.2",
|
|
118
|
+
"vue-tsc": "^0.38.2",
|
|
119
|
+
"vuetify": "^2.6.7"
|
|
137
120
|
},
|
|
138
121
|
"husky": {
|
|
139
122
|
"hooks": {
|
|
@@ -145,5 +128,8 @@
|
|
|
145
128
|
"*.{js,ts,json,yml,yaml,vue,htm,html}": "eslint --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint",
|
|
146
129
|
"*.{css,sass,scss,vue,htm,html}": "stylelint --fix --cache --cache-location ./node_modules/.vite/vite-plugin-stylelint",
|
|
147
130
|
"*": "prettier -w -u"
|
|
131
|
+
},
|
|
132
|
+
"resolutions": {
|
|
133
|
+
"prettier": "^2.7.1"
|
|
148
134
|
}
|
|
149
135
|
}
|
package/dist/v-swatches.umd.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(function(n,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue-demi"),require("vuetify/lib"),require("vuetify/lib/util/colors")):typeof define=="function"&&define.amd?define(["exports","vue-demi","vuetify/lib","vuetify/lib/util/colors"],l):(n=typeof globalThis<"u"?globalThis:n||self,l(n.VSwatches={},n.VueDemi,n.Vuetify,n.colors))})(this,function(n,l,_,b){"use strict";function y(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=y(b),V=l.defineComponent({name:"VSwatches",components:{VSheet:_.VSheet,VBtn:_.VBtn,VIcon:_.VIcon},model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{type:String,required:!0},swatches:{type:Array,default:()=>[[t.default.shades.black,t.default.shades.white],[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]]},elevation:{type:Number,default:1},size:{type:String,default:"2rem"},icon:{type:String,default:"mdi-checkbox-marked-circle"},iconSize:{type:String,default:"1rem"}},emits:["update:modelValue"],setup(e,u){const r=l.ref(!1),f=l.ref(e.modelValue);return{checkedVisibilty:r,selected:f,onSwatchClick:i=>{const c=i.target.value;!c||f.value===c||(f.value=c,u.emit("update:modelValue",c))}}}}),S=function(){var e=this,u=e.$createElement,r=e._self._c||u;return r(_.VSheet,{staticClass:"v-swatches"},e._l(e.swatches,function(f,o){return r("div",{key:o},e._l(f,function(i){return r(_.VBtn,{key:i,attrs:{elevation:e.elevation,width:e.size,height:e.size,color:i,value:i,"min-width":"auto"},on:{click:e.onSwatchClick}},[i===e.selected?r(_.VIcon,{attrs:{size:e.iconSize,color:i}},[e._v(" "+e._s(e.icon)+" ")]):e._e()],1)}),1)}),0)},w=[],q="";function g(e,u,r,f,o,i,c,T){var a=typeof e=="function"?e.options:e;u&&(a.render=u,a.staticRenderFns=r,a._compiled=!0),f&&(a.functional=!0),i&&(a._scopeId="data-v-"+i);var d;if(c?(d=function(s){s=s||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!s&&typeof __VUE_SSR_CONTEXT__<"u"&&(s=__VUE_SSR_CONTEXT__),o&&o.call(this,s),s&&s._registeredComponents&&s._registeredComponents.add(c)},a._ssrRegister=d):o&&(d=T?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(a.functional){a._injectStyles=d;var $=a.render;a.render=function(R,m){return d.call(m),$(R,m)}}else{var v=a.beforeCreate;a.beforeCreate=v?[].concat(v,d):[d]}return{exports:e,options:a}}const h={};var C=g(V,S,w,!1,k,null,null,null);function k(e){for(let u in h)this[u]=h[u]}var p=function(){return C.exports}();/**
|
|
2
|
-
* Vuetify Swatches Component
|
|
3
|
-
*
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @author Logue {@link logue@hotmail.co.jp}
|
|
6
|
-
* @copyright 2022 Masashi Yoshikawa {@link https://logue.dev/} All rights reserved.
|
|
7
|
-
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
8
|
-
*/const z=l.isVue2?e=>{e.component("VSwatches",p)}:l.install();n.default=p,n.install=z,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|