vuetify-swatches 1.3.5 → 1.3.6
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/LICENSE +1 -1
- package/dist/Meta.d.ts +4 -0
- package/dist/Meta.d.ts.map +1 -0
- package/dist/Meta.js +6 -0
- package/dist/index.es.js +34 -4
- package/dist/index.iife.js +63 -29
- package/dist/index.js +9 -0
- package/dist/index.umd.js +63 -29
- package/dist/interfaces/MetaInterface.d.ts +8 -0
- package/dist/interfaces/MetaInterface.d.ts.map +1 -0
- package/dist/interfaces/MetaInterface.js +1 -0
- package/dist/style.css +3 -2
- package/package.json +33 -30
- package/src/components/VSwatches.vue +2 -2
package/LICENSE
CHANGED
package/dist/Meta.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../src/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAG5D,QAAA,MAAM,IAAI,EAAE,aAGX,CAAC;AACF,eAAe,IAAI,CAAC"}
|
package/dist/Meta.js
ADDED
package/dist/index.es.js
CHANGED
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
6
|
+
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.3.
|
|
8
|
+
* @version 1.3.6
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, normalizeClass, unref, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
13
13
|
import colors from 'vuetify/lib/util/colors.mjs';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
__name: "VSwatches",
|
|
17
17
|
props: {
|
|
18
|
+
/** Model value */
|
|
18
19
|
modelValue: { type: String, default: colors.shades.white },
|
|
20
|
+
/** Swatch colors */
|
|
19
21
|
swatches: {
|
|
20
22
|
type: Array,
|
|
21
23
|
default: () => [
|
|
@@ -43,16 +45,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
45
|
[colors.brown.base, colors.blueGrey.base, colors.grey.base]
|
|
44
46
|
]
|
|
45
47
|
},
|
|
48
|
+
/** Swatch size */
|
|
46
49
|
size: { type: String, default: "2rem" },
|
|
50
|
+
/** Selected icon */
|
|
47
51
|
icon: { type: String, default: "mdi-checkbox-marked-circle" },
|
|
52
|
+
/** selected icon size */
|
|
48
53
|
iconSize: { type: String, default: "1rem" },
|
|
54
|
+
/**
|
|
55
|
+
* The variant prop gives you easy access to several different button styles..
|
|
56
|
+
*
|
|
57
|
+
* @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
|
|
58
|
+
*/
|
|
49
59
|
variant: {
|
|
50
60
|
type: String,
|
|
51
61
|
default: void 0
|
|
52
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* Removes the ability to click or target the component.
|
|
65
|
+
*
|
|
66
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
|
|
67
|
+
*/
|
|
53
68
|
disabled: { type: Boolean, default: void 0 },
|
|
69
|
+
/**
|
|
70
|
+
* Applies a large border radius on the button.
|
|
71
|
+
*
|
|
72
|
+
* @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
|
|
73
|
+
*/
|
|
54
74
|
rounded: { type: [String, Number, Boolean], default: void 0 },
|
|
75
|
+
/**
|
|
76
|
+
* Applies border styles to component.
|
|
77
|
+
*
|
|
78
|
+
* @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
|
|
79
|
+
*/
|
|
55
80
|
border: { type: [String, Number, Boolean], default: false },
|
|
81
|
+
/**
|
|
82
|
+
* Designates an elevation applied to the component between 0 and 24.
|
|
83
|
+
*
|
|
84
|
+
* @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
85
|
+
*/
|
|
56
86
|
elevation: { type: [String, Number], default: void 0 }
|
|
57
87
|
},
|
|
58
88
|
emits: ["update:modelValue"],
|
|
@@ -111,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
141
|
}
|
|
112
142
|
});
|
|
113
143
|
|
|
114
|
-
|
|
144
|
+
var VSwatches_vue_vue_type_style_index_0_lang = '';
|
|
115
145
|
|
|
116
146
|
const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
|
|
117
147
|
if (typeof window !== "undefined" && window.Vue) {
|
package/dist/index.iife.js
CHANGED
|
@@ -3,63 +3,97 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
6
|
+
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.3.
|
|
8
|
+
* @version 1.3.6
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
var VSwatches = (function (exports, vue, colors) {
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
|
|
18
|
+
|
|
19
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
20
|
__name: "VSwatches",
|
|
17
21
|
props: {
|
|
18
|
-
|
|
22
|
+
/** Model value */
|
|
23
|
+
modelValue: { type: String, default: colors__default["default"].shades.white },
|
|
24
|
+
/** Swatch colors */
|
|
19
25
|
swatches: {
|
|
20
26
|
type: Array,
|
|
21
27
|
default: () => [
|
|
22
|
-
[
|
|
28
|
+
[colors__default["default"].shades.black, colors__default["default"].shades.white, colors__default["default"].shades.transparent],
|
|
23
29
|
[
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
colors__default["default"].red.base,
|
|
31
|
+
colors__default["default"].pink.base,
|
|
32
|
+
colors__default["default"].purple.base,
|
|
33
|
+
colors__default["default"].deepPurple.base,
|
|
34
|
+
colors__default["default"].indigo.base,
|
|
35
|
+
colors__default["default"].blue.base,
|
|
36
|
+
colors__default["default"].lightBlue.base,
|
|
37
|
+
colors__default["default"].cyan.base
|
|
32
38
|
],
|
|
33
39
|
[
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
colors__default["default"].teal.base,
|
|
41
|
+
colors__default["default"].green.base,
|
|
42
|
+
colors__default["default"].lightGreen.base,
|
|
43
|
+
colors__default["default"].lime.base,
|
|
44
|
+
colors__default["default"].yellow.base,
|
|
45
|
+
colors__default["default"].amber.base,
|
|
46
|
+
colors__default["default"].orange.base,
|
|
47
|
+
colors__default["default"].deepOrange.base
|
|
42
48
|
],
|
|
43
|
-
[
|
|
49
|
+
[colors__default["default"].brown.base, colors__default["default"].blueGrey.base, colors__default["default"].grey.base]
|
|
44
50
|
]
|
|
45
51
|
},
|
|
52
|
+
/** Swatch size */
|
|
46
53
|
size: { type: String, default: "2rem" },
|
|
54
|
+
/** Selected icon */
|
|
47
55
|
icon: { type: String, default: "mdi-checkbox-marked-circle" },
|
|
56
|
+
/** selected icon size */
|
|
48
57
|
iconSize: { type: String, default: "1rem" },
|
|
58
|
+
/**
|
|
59
|
+
* The variant prop gives you easy access to several different button styles..
|
|
60
|
+
*
|
|
61
|
+
* @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
|
|
62
|
+
*/
|
|
49
63
|
variant: {
|
|
50
64
|
type: String,
|
|
51
65
|
default: void 0
|
|
52
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* Removes the ability to click or target the component.
|
|
69
|
+
*
|
|
70
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
|
|
71
|
+
*/
|
|
53
72
|
disabled: { type: Boolean, default: void 0 },
|
|
73
|
+
/**
|
|
74
|
+
* Applies a large border radius on the button.
|
|
75
|
+
*
|
|
76
|
+
* @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
|
|
77
|
+
*/
|
|
54
78
|
rounded: { type: [String, Number, Boolean], default: void 0 },
|
|
79
|
+
/**
|
|
80
|
+
* Applies border styles to component.
|
|
81
|
+
*
|
|
82
|
+
* @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
|
|
83
|
+
*/
|
|
55
84
|
border: { type: [String, Number, Boolean], default: false },
|
|
85
|
+
/**
|
|
86
|
+
* Designates an elevation applied to the component between 0 and 24.
|
|
87
|
+
*
|
|
88
|
+
* @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
89
|
+
*/
|
|
56
90
|
elevation: { type: [String, Number], default: void 0 }
|
|
57
91
|
},
|
|
58
92
|
emits: ["update:modelValue"],
|
|
59
93
|
setup(__props, { emit: emits }) {
|
|
60
94
|
const props = __props;
|
|
61
|
-
const selected = vue.ref(props.modelValue ||
|
|
62
|
-
const onSwatchClick = (e) => selected.value = e.target.dataset.value ||
|
|
95
|
+
const selected = vue.ref(props.modelValue || colors__default["default"].shades.white);
|
|
96
|
+
const onSwatchClick = (e) => selected.value = e.target.dataset.value || colors__default["default"].shades.white;
|
|
63
97
|
vue.watch(
|
|
64
98
|
() => selected.value,
|
|
65
99
|
(s) => emits("update:modelValue", s)
|
|
@@ -76,7 +110,7 @@ var VSwatches = (function (exports, vue, colors) {
|
|
|
76
110
|
return vue.openBlock(), vue.createBlock(_component_v_btn, {
|
|
77
111
|
key: color,
|
|
78
112
|
border: props.border,
|
|
79
|
-
class: vue.normalizeClass(color === vue.unref(
|
|
113
|
+
class: vue.normalizeClass(color === vue.unref(colors__default["default"]).shades.transparent ? "bg-trasparent" : ""),
|
|
80
114
|
color,
|
|
81
115
|
disabled: props.disabled,
|
|
82
116
|
elevation: props.elevation,
|
|
@@ -91,7 +125,7 @@ var VSwatches = (function (exports, vue, colors) {
|
|
|
91
125
|
color === __props.modelValue ? (vue.openBlock(), vue.createBlock(_component_v_icon, {
|
|
92
126
|
key: 0,
|
|
93
127
|
size: __props.iconSize,
|
|
94
|
-
color: color !== vue.unref(
|
|
128
|
+
color: color !== vue.unref(colors__default["default"]).shades.transparent ? color : void 0
|
|
95
129
|
}, {
|
|
96
130
|
default: vue.withCtx(() => [
|
|
97
131
|
vue.createTextVNode(vue.toDisplayString(props.icon), 1)
|
|
@@ -111,17 +145,17 @@ var VSwatches = (function (exports, vue, colors) {
|
|
|
111
145
|
}
|
|
112
146
|
});
|
|
113
147
|
|
|
114
|
-
|
|
148
|
+
var VSwatches_vue_vue_type_style_index_0_lang = '';
|
|
115
149
|
|
|
116
150
|
const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
|
|
117
151
|
if (typeof window !== "undefined" && window.Vue) {
|
|
118
152
|
window.Vue.use(_sfc_main);
|
|
119
153
|
}
|
|
120
154
|
|
|
121
|
-
exports
|
|
155
|
+
exports["default"] = _sfc_main;
|
|
122
156
|
exports.install = installVSwatches;
|
|
123
157
|
|
|
124
|
-
Object.
|
|
158
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
125
159
|
|
|
126
160
|
return exports;
|
|
127
161
|
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import VSwatches from '@/components/VSwatches.vue';
|
|
2
|
+
const installVSwatches = (app) => app.component('VSwatches', VSwatches);
|
|
3
|
+
export { VSwatches as default, installVSwatches as install };
|
|
4
|
+
// For CDN.
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
window.Vue.use(VSwatches);
|
|
9
|
+
}
|
package/dist/index.umd.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
6
|
+
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.3.
|
|
8
|
+
* @version 1.3.6
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -15,54 +15,88 @@
|
|
|
15
15
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VSwatches = {}, global.Vue, global.colors));
|
|
16
16
|
})(this, (function (exports, vue, colors) { 'use strict';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
|
+
|
|
20
|
+
var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
|
|
21
|
+
|
|
22
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
23
|
__name: "VSwatches",
|
|
20
24
|
props: {
|
|
21
|
-
|
|
25
|
+
/** Model value */
|
|
26
|
+
modelValue: { type: String, default: colors__default["default"].shades.white },
|
|
27
|
+
/** Swatch colors */
|
|
22
28
|
swatches: {
|
|
23
29
|
type: Array,
|
|
24
30
|
default: () => [
|
|
25
|
-
[
|
|
31
|
+
[colors__default["default"].shades.black, colors__default["default"].shades.white, colors__default["default"].shades.transparent],
|
|
26
32
|
[
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
colors__default["default"].red.base,
|
|
34
|
+
colors__default["default"].pink.base,
|
|
35
|
+
colors__default["default"].purple.base,
|
|
36
|
+
colors__default["default"].deepPurple.base,
|
|
37
|
+
colors__default["default"].indigo.base,
|
|
38
|
+
colors__default["default"].blue.base,
|
|
39
|
+
colors__default["default"].lightBlue.base,
|
|
40
|
+
colors__default["default"].cyan.base
|
|
35
41
|
],
|
|
36
42
|
[
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
colors__default["default"].teal.base,
|
|
44
|
+
colors__default["default"].green.base,
|
|
45
|
+
colors__default["default"].lightGreen.base,
|
|
46
|
+
colors__default["default"].lime.base,
|
|
47
|
+
colors__default["default"].yellow.base,
|
|
48
|
+
colors__default["default"].amber.base,
|
|
49
|
+
colors__default["default"].orange.base,
|
|
50
|
+
colors__default["default"].deepOrange.base
|
|
45
51
|
],
|
|
46
|
-
[
|
|
52
|
+
[colors__default["default"].brown.base, colors__default["default"].blueGrey.base, colors__default["default"].grey.base]
|
|
47
53
|
]
|
|
48
54
|
},
|
|
55
|
+
/** Swatch size */
|
|
49
56
|
size: { type: String, default: "2rem" },
|
|
57
|
+
/** Selected icon */
|
|
50
58
|
icon: { type: String, default: "mdi-checkbox-marked-circle" },
|
|
59
|
+
/** selected icon size */
|
|
51
60
|
iconSize: { type: String, default: "1rem" },
|
|
61
|
+
/**
|
|
62
|
+
* The variant prop gives you easy access to several different button styles..
|
|
63
|
+
*
|
|
64
|
+
* @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
|
|
65
|
+
*/
|
|
52
66
|
variant: {
|
|
53
67
|
type: String,
|
|
54
68
|
default: void 0
|
|
55
69
|
},
|
|
70
|
+
/**
|
|
71
|
+
* Removes the ability to click or target the component.
|
|
72
|
+
*
|
|
73
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
|
|
74
|
+
*/
|
|
56
75
|
disabled: { type: Boolean, default: void 0 },
|
|
76
|
+
/**
|
|
77
|
+
* Applies a large border radius on the button.
|
|
78
|
+
*
|
|
79
|
+
* @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
|
|
80
|
+
*/
|
|
57
81
|
rounded: { type: [String, Number, Boolean], default: void 0 },
|
|
82
|
+
/**
|
|
83
|
+
* Applies border styles to component.
|
|
84
|
+
*
|
|
85
|
+
* @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
|
|
86
|
+
*/
|
|
58
87
|
border: { type: [String, Number, Boolean], default: false },
|
|
88
|
+
/**
|
|
89
|
+
* Designates an elevation applied to the component between 0 and 24.
|
|
90
|
+
*
|
|
91
|
+
* @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
92
|
+
*/
|
|
59
93
|
elevation: { type: [String, Number], default: void 0 }
|
|
60
94
|
},
|
|
61
95
|
emits: ["update:modelValue"],
|
|
62
96
|
setup(__props, { emit: emits }) {
|
|
63
97
|
const props = __props;
|
|
64
|
-
const selected = vue.ref(props.modelValue ||
|
|
65
|
-
const onSwatchClick = (e) => selected.value = e.target.dataset.value ||
|
|
98
|
+
const selected = vue.ref(props.modelValue || colors__default["default"].shades.white);
|
|
99
|
+
const onSwatchClick = (e) => selected.value = e.target.dataset.value || colors__default["default"].shades.white;
|
|
66
100
|
vue.watch(
|
|
67
101
|
() => selected.value,
|
|
68
102
|
(s) => emits("update:modelValue", s)
|
|
@@ -79,7 +113,7 @@
|
|
|
79
113
|
return vue.openBlock(), vue.createBlock(_component_v_btn, {
|
|
80
114
|
key: color,
|
|
81
115
|
border: props.border,
|
|
82
|
-
class: vue.normalizeClass(color === vue.unref(
|
|
116
|
+
class: vue.normalizeClass(color === vue.unref(colors__default["default"]).shades.transparent ? "bg-trasparent" : ""),
|
|
83
117
|
color,
|
|
84
118
|
disabled: props.disabled,
|
|
85
119
|
elevation: props.elevation,
|
|
@@ -94,7 +128,7 @@
|
|
|
94
128
|
color === __props.modelValue ? (vue.openBlock(), vue.createBlock(_component_v_icon, {
|
|
95
129
|
key: 0,
|
|
96
130
|
size: __props.iconSize,
|
|
97
|
-
color: color !== vue.unref(
|
|
131
|
+
color: color !== vue.unref(colors__default["default"]).shades.transparent ? color : void 0
|
|
98
132
|
}, {
|
|
99
133
|
default: vue.withCtx(() => [
|
|
100
134
|
vue.createTextVNode(vue.toDisplayString(props.icon), 1)
|
|
@@ -114,16 +148,16 @@
|
|
|
114
148
|
}
|
|
115
149
|
});
|
|
116
150
|
|
|
117
|
-
|
|
151
|
+
var VSwatches_vue_vue_type_style_index_0_lang = '';
|
|
118
152
|
|
|
119
153
|
const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
|
|
120
154
|
if (typeof window !== "undefined" && window.Vue) {
|
|
121
155
|
window.Vue.use(_sfc_main);
|
|
122
156
|
}
|
|
123
157
|
|
|
124
|
-
exports
|
|
158
|
+
exports["default"] = _sfc_main;
|
|
125
159
|
exports.install = installVSwatches;
|
|
126
160
|
|
|
127
|
-
Object.
|
|
161
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
128
162
|
|
|
129
163
|
}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaInterface.d.ts","sourceRoot":"","sources":["../../src/interfaces/MetaInterface.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,CAAC,OAAO,WAAW,aAAa;IACpC,cAAc;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/style.css
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022 By Masashi Yoshikawa All rights reserved.
|
|
6
|
+
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.3.
|
|
8
|
+
* @version 1.3.6
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
/** if false, disabled buttons will be greyed out */
|
|
12
13
|
.v-swatches div .v-btn {
|
|
13
14
|
padding: 0 !important;
|
|
14
15
|
margin: 0.1rem;
|
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.3.
|
|
4
|
+
"version": "1.3.6",
|
|
5
5
|
"description": "Color Swatch component for Vuetify3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
@@ -65,62 +65,65 @@
|
|
|
65
65
|
"clean": "rimraf node_modules/.vite",
|
|
66
66
|
"type-check": "tsc --noEmit --composite false",
|
|
67
67
|
"build": "run-p type-check build-only build-declaration",
|
|
68
|
-
"build:
|
|
69
|
-
"build:
|
|
68
|
+
"build:analyze": "vite build --mode=analyze",
|
|
69
|
+
"build:clean": "rimraf dist docs",
|
|
70
|
+
"build:docs": "vite build --mode=docs",
|
|
70
71
|
"build-only": "vite build",
|
|
71
|
-
"build-declaration": "tsc -p tsconfig.app.json --composite false --declaration --declarationMap
|
|
72
|
+
"build-declaration": "tsc -p tsconfig.app.json --composite false --declaration --declarationMap",
|
|
72
73
|
"lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
|
|
74
|
+
"preview": "vite preview --mode=docs",
|
|
73
75
|
"prepare": "husky install",
|
|
74
76
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
75
77
|
},
|
|
76
78
|
"peerDependencies": {
|
|
77
79
|
"vue": "^3.2.45",
|
|
78
|
-
"vuetify": "^3.
|
|
80
|
+
"vuetify": "^3.1.3"
|
|
79
81
|
},
|
|
80
82
|
"devDependencies": {
|
|
81
|
-
"@codemirror/lang-html": "
|
|
83
|
+
"@codemirror/lang-html": "6.1.0",
|
|
82
84
|
"@types/node": "^18.11.18",
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
84
|
-
"@typescript-eslint/parser": "^5.
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
|
86
|
+
"@typescript-eslint/parser": "^5.50.0",
|
|
85
87
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
86
88
|
"@vue/eslint-config-prettier": "^7.0.0",
|
|
87
89
|
"@vue/tsconfig": "^0.1.3",
|
|
88
|
-
"
|
|
89
|
-
"eslint": "^8.30.0",
|
|
90
|
+
"eslint": "^8.33.0",
|
|
90
91
|
"eslint-config-google": "^0.14.0",
|
|
91
|
-
"eslint-config-prettier": "^8.
|
|
92
|
+
"eslint-config-prettier": "^8.6.0",
|
|
92
93
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
93
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
94
|
-
"eslint-plugin-import": "^2.
|
|
95
|
-
"eslint-plugin-jsdoc": "^39.
|
|
94
|
+
"eslint-import-resolver-typescript": "^3.5.3",
|
|
95
|
+
"eslint-plugin-import": "^2.27.5",
|
|
96
|
+
"eslint-plugin-jsdoc": "^39.8.0",
|
|
97
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
96
98
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
97
|
-
"eslint-plugin-vue": "^9.
|
|
98
|
-
"eslint-plugin-vuejs-accessibility": "^2.
|
|
99
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
100
|
+
"eslint-plugin-vuejs-accessibility": "^2.1.0",
|
|
99
101
|
"eslint-plugin-vuetify": "^2.0.0-beta.2",
|
|
100
102
|
"eslint-plugin-yaml": "^0.5.0",
|
|
101
|
-
"husky": "^8.0.
|
|
103
|
+
"husky": "^8.0.3",
|
|
102
104
|
"lint-staged": "^13.1.0",
|
|
103
105
|
"npm-run-all": "^4.1.5",
|
|
104
106
|
"postcss-html": "^1.5.0",
|
|
105
|
-
"prettier": "^2.8.
|
|
106
|
-
"rimraf": "^
|
|
107
|
-
"rollup-plugin-visualizer": "^5.
|
|
108
|
-
"sass": "1.
|
|
107
|
+
"prettier": "^2.8.3",
|
|
108
|
+
"rimraf": "^4.1.2",
|
|
109
|
+
"rollup-plugin-visualizer": "^5.9.0",
|
|
110
|
+
"sass": "^1.58.0",
|
|
111
|
+
"sass-loader": "^13.2.0",
|
|
109
112
|
"stylelint": "^14.16.1",
|
|
110
113
|
"stylelint-config-prettier": "^9.0.4",
|
|
111
114
|
"stylelint-config-recommended-scss": "^8.0.0",
|
|
112
115
|
"stylelint-config-recommended-vue": "^1.4.0",
|
|
113
|
-
"stylelint-order": "^
|
|
116
|
+
"stylelint-order": "^6.0.1",
|
|
114
117
|
"stylelint-prettier": "^2.0.0",
|
|
115
|
-
"typescript": "^4.9.
|
|
116
|
-
"vite": "^4.
|
|
118
|
+
"typescript": "^4.9.5",
|
|
119
|
+
"vite": "^4.1.1",
|
|
117
120
|
"vite-plugin-banner": "^0.7.0",
|
|
118
|
-
"vite-plugin-checker": "^0.5.
|
|
119
|
-
"vite-plugin-vuetify": "^1.0.
|
|
120
|
-
"vue": "^3.2.
|
|
121
|
-
"vue-codemirror6": "1.1.
|
|
121
|
+
"vite-plugin-checker": "^0.5.5",
|
|
122
|
+
"vite-plugin-vuetify": "^1.0.2",
|
|
123
|
+
"vue": "^3.2.47",
|
|
124
|
+
"vue-codemirror6": "1.1.10",
|
|
122
125
|
"vue-eslint-parser": "^9.1.0",
|
|
123
|
-
"vue-tsc": "^1.0.
|
|
126
|
+
"vue-tsc": "^1.0.24",
|
|
124
127
|
"vuetify": "^3.0.4"
|
|
125
128
|
},
|
|
126
129
|
"husky": {
|
|
@@ -134,6 +137,6 @@
|
|
|
134
137
|
"*": "prettier -w -u"
|
|
135
138
|
},
|
|
136
139
|
"resolutions": {
|
|
137
|
-
"
|
|
140
|
+
"json5": "^2.2.3"
|
|
138
141
|
}
|
|
139
142
|
}
|
|
@@ -132,7 +132,7 @@ watch(
|
|
|
132
132
|
</template>
|
|
133
133
|
|
|
134
134
|
<style lang="scss">
|
|
135
|
-
@
|
|
135
|
+
@use 'vuetify/settings';
|
|
136
136
|
|
|
137
137
|
.v-swatches {
|
|
138
138
|
div {
|
|
@@ -149,7 +149,7 @@ watch(
|
|
|
149
149
|
to top left,
|
|
150
150
|
transparent 0,
|
|
151
151
|
transparent calc(50% - 0.1rem),
|
|
152
|
-
map-get(
|
|
152
|
+
map-get(settings.$red, 'base') 50%,
|
|
153
153
|
transparent calc(50% + 0.1rem),
|
|
154
154
|
transparent
|
|
155
155
|
);
|