vuetify-swatches 1.0.3 → 1.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Masashi Yoshikawa
3
+ Copyright (c) 2022-2023 Masashi Yoshikawa
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/Meta.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type MetaInterface from '@/interfaces/MetaInterface';
2
+ declare const meta: MetaInterface;
3
+ export default meta;
package/dist/Meta.js ADDED
@@ -0,0 +1,6 @@
1
+ // This file is auto-generated by the build system.
2
+ const meta = {
3
+ version: '1.0.4',
4
+ date: '2023-01-19T12:01:47.957Z',
5
+ };
6
+ export default meta;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import VSwatches from './components/VSwatches.vue';
2
- declare const installVSwatches: (app: any) => any;
3
- export { VSwatches as default, installVSwatches as install };
4
- //# sourceMappingURL=index.d.ts.map
1
+ import VSwatches from '@/components/VSwatches.vue';
2
+ import Meta from '@/Meta';
3
+ declare const installVSwatches: (app: any) => any;
4
+ export { VSwatches as default, installVSwatches as install, Meta };
package/dist/index.es.js CHANGED
@@ -3,23 +3,18 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify.
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.0.3
8
+ * @version 1.0.4
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
12
+ import { VSheet, VBtn, VIcon } from 'vuetify/lib';
12
13
  import { defineComponent, ref } from 'vue-demi';
13
- import { VSheet, VBtn, VIcon } from 'vuetify/lib/components';
14
14
  import colors from 'vuetify/lib/util/colors';
15
15
 
16
- const _sfc_main = defineComponent({
16
+ var _sfc_main = defineComponent({
17
17
  name: "VSwatches",
18
- components: {
19
- VSheet,
20
- VBtn,
21
- VIcon
22
- },
23
18
  model: {
24
19
  prop: "modelValue",
25
20
  event: "update:modelValue"
@@ -82,7 +77,7 @@ const _sfc_main = defineComponent({
82
77
  }
83
78
  });
84
79
 
85
- const VSwatches_vue_vue_type_style_index_0_lang = '';
80
+ /* unplugin-vue-components disabled */var VSwatches_vue_vue_type_style_index_0_lang = '';
86
81
 
87
82
  function normalizeComponent (
88
83
  scriptExports,
@@ -179,11 +174,11 @@ function normalizeComponent (
179
174
 
180
175
  var _sfc_render = function render() {
181
176
  var _vm = this, _c = _vm._self._c; _vm._self._setupProxy;
182
- return _c("v-sheet", { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors, rows) {
177
+ return _c(VSheet, { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors, rows) {
183
178
  return _c("div", { key: rows }, _vm._l(colors, function(color) {
184
- return _c("v-btn", { key: color, attrs: { "color": color, "depressed": _vm.depressed, "disabled": _vm.disabled, "elevation": _vm.elevation, "height": _vm.size, "outlined": _vm.outlined, "plain": _vm.plain, "raised": _vm.raised, "tile": _vm.tile, "value": color, "width": _vm.size, "min-width": "auto" }, on: { "click": function($event) {
179
+ return _c(VBtn, { key: color, attrs: { "color": color, "depressed": _vm.depressed, "disabled": _vm.disabled, "elevation": _vm.elevation, "height": _vm.size, "outlined": _vm.outlined, "plain": _vm.plain, "raised": _vm.raised, "tile": _vm.tile, "value": color, "width": _vm.size, "min-width": "auto" }, on: { "click": function($event) {
185
180
  return _vm.onSwatchClick($event);
186
- } } }, [color === _vm.modelValue ? _c("v-icon", { attrs: { "size": _vm.iconSize, "color": color !== "transparent" ? color : void 0 } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
181
+ } } }, [color === _vm.modelValue ? _c(VIcon, { attrs: { "size": _vm.iconSize, "color": color !== "transparent" ? color : void 0 } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
187
182
  }), 1);
188
183
  }), 0);
189
184
  };
@@ -198,11 +193,16 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
198
193
  null,
199
194
  null
200
195
  );
201
- const VSwatches = __component__.exports;
196
+ var VSwatches = __component__.exports;
197
+
198
+ const meta = {
199
+ version: "1.0.4",
200
+ date: "2023-01-19T12:01:47.957Z"
201
+ };
202
202
 
203
203
  const installVSwatches = (app) => app.component("VSwatches", VSwatches);
204
204
  if (typeof window !== "undefined" && window.Vue) {
205
205
  window.Vue.use(VSwatches);
206
206
  }
207
207
 
208
- export { VSwatches as default, installVSwatches as install };
208
+ export { meta as Meta, VSwatches as default, installVSwatches as install };
@@ -3,26 +3,21 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify.
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.0.3
8
+ * @version 1.0.4
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
12
- var VSwatches = (function (exports, vueDemi, components, colors) {
12
+ var VSwatches = (function (exports, lib, vueDemi, colors) {
13
13
  'use strict';
14
14
 
15
- const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
15
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
16
 
17
- const colors__default = /*#__PURE__*/_interopDefaultLegacy(colors);
17
+ var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
18
18
 
19
- const _sfc_main = vueDemi.defineComponent({
19
+ var _sfc_main = vueDemi.defineComponent({
20
20
  name: "VSwatches",
21
- components: {
22
- VSheet: components.VSheet,
23
- VBtn: components.VBtn,
24
- VIcon: components.VIcon
25
- },
26
21
  model: {
27
22
  prop: "modelValue",
28
23
  event: "update:modelValue"
@@ -32,28 +27,28 @@ var VSwatches = (function (exports, vueDemi, components, colors) {
32
27
  swatches: {
33
28
  type: Array,
34
29
  default: () => [
35
- [colors__default.default.shades.black, colors__default.default.shades.white, colors__default.default.shades.transparent],
30
+ [colors__default["default"].shades.black, colors__default["default"].shades.white, colors__default["default"].shades.transparent],
36
31
  [
37
- colors__default.default.red.base,
38
- colors__default.default.pink.base,
39
- colors__default.default.purple.base,
40
- colors__default.default.deepPurple.base,
41
- colors__default.default.indigo.base,
42
- colors__default.default.blue.base,
43
- colors__default.default.lightBlue.base,
44
- colors__default.default.cyan.base
32
+ colors__default["default"].red.base,
33
+ colors__default["default"].pink.base,
34
+ colors__default["default"].purple.base,
35
+ colors__default["default"].deepPurple.base,
36
+ colors__default["default"].indigo.base,
37
+ colors__default["default"].blue.base,
38
+ colors__default["default"].lightBlue.base,
39
+ colors__default["default"].cyan.base
45
40
  ],
46
41
  [
47
- colors__default.default.teal.base,
48
- colors__default.default.green.base,
49
- colors__default.default.lightGreen.base,
50
- colors__default.default.lime.base,
51
- colors__default.default.yellow.base,
52
- colors__default.default.amber.base,
53
- colors__default.default.orange.base,
54
- colors__default.default.deepOrange.base
42
+ colors__default["default"].teal.base,
43
+ colors__default["default"].green.base,
44
+ colors__default["default"].lightGreen.base,
45
+ colors__default["default"].lime.base,
46
+ colors__default["default"].yellow.base,
47
+ colors__default["default"].amber.base,
48
+ colors__default["default"].orange.base,
49
+ colors__default["default"].deepOrange.base
55
50
  ],
56
- [colors__default.default.brown.base, colors__default.default.blueGrey.base, colors__default.default.grey.base]
51
+ [colors__default["default"].brown.base, colors__default["default"].blueGrey.base, colors__default["default"].grey.base]
57
52
  ]
58
53
  },
59
54
  size: { type: String, default: "2rem" },
@@ -85,7 +80,7 @@ var VSwatches = (function (exports, vueDemi, components, colors) {
85
80
  }
86
81
  });
87
82
 
88
- const VSwatches_vue_vue_type_style_index_0_lang = '';
83
+ /* unplugin-vue-components disabled */var VSwatches_vue_vue_type_style_index_0_lang = '';
89
84
 
90
85
  function normalizeComponent (
91
86
  scriptExports,
@@ -182,11 +177,11 @@ var VSwatches = (function (exports, vueDemi, components, colors) {
182
177
 
183
178
  var _sfc_render = function render() {
184
179
  var _vm = this, _c = _vm._self._c; _vm._self._setupProxy;
185
- return _c("v-sheet", { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors, rows) {
180
+ return _c(lib.VSheet, { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors, rows) {
186
181
  return _c("div", { key: rows }, _vm._l(colors, function(color) {
187
- return _c("v-btn", { key: color, attrs: { "color": color, "depressed": _vm.depressed, "disabled": _vm.disabled, "elevation": _vm.elevation, "height": _vm.size, "outlined": _vm.outlined, "plain": _vm.plain, "raised": _vm.raised, "tile": _vm.tile, "value": color, "width": _vm.size, "min-width": "auto" }, on: { "click": function($event) {
182
+ return _c(lib.VBtn, { key: color, attrs: { "color": color, "depressed": _vm.depressed, "disabled": _vm.disabled, "elevation": _vm.elevation, "height": _vm.size, "outlined": _vm.outlined, "plain": _vm.plain, "raised": _vm.raised, "tile": _vm.tile, "value": color, "width": _vm.size, "min-width": "auto" }, on: { "click": function($event) {
188
183
  return _vm.onSwatchClick($event);
189
- } } }, [color === _vm.modelValue ? _c("v-icon", { attrs: { "size": _vm.iconSize, "color": color !== "transparent" ? color : void 0 } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
184
+ } } }, [color === _vm.modelValue ? _c(lib.VIcon, { attrs: { "size": _vm.iconSize, "color": color !== "transparent" ? color : void 0 } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
190
185
  }), 1);
191
186
  }), 0);
192
187
  };
@@ -201,18 +196,24 @@ var VSwatches = (function (exports, vueDemi, components, colors) {
201
196
  null,
202
197
  null
203
198
  );
204
- const VSwatches = __component__.exports;
199
+ var VSwatches = __component__.exports;
200
+
201
+ const meta = {
202
+ version: "1.0.4",
203
+ date: "2023-01-19T12:01:47.957Z"
204
+ };
205
205
 
206
206
  const installVSwatches = (app) => app.component("VSwatches", VSwatches);
207
207
  if (typeof window !== "undefined" && window.Vue) {
208
208
  window.Vue.use(VSwatches);
209
209
  }
210
210
 
211
- exports.default = VSwatches;
211
+ exports.Meta = meta;
212
+ exports["default"] = VSwatches;
212
213
  exports.install = installVSwatches;
213
214
 
214
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
215
+ Object.defineProperty(exports, '__esModule', { value: true });
215
216
 
216
217
  return exports;
217
218
 
218
- })({}, VueDemi, Vuetify, colors);
219
+ })({}, Vuetify, VueDemi, colors);
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import VSwatches from '@/components/VSwatches.vue';
2
+ import Meta from '@/Meta';
3
+ const installVSwatches = (app) => app.component('VSwatches', VSwatches);
4
+ export { VSwatches as default, installVSwatches as install, Meta };
5
+ // For CDN.
6
+ // @ts-ignore
7
+ if (typeof window !== 'undefined' && window.Vue) {
8
+ // @ts-ignore
9
+ window.Vue.use(VSwatches);
10
+ }
package/dist/index.umd.js CHANGED
@@ -3,29 +3,24 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify.
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.0.3
8
+ * @version 1.0.4
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
12
12
  (function (global, factory) {
13
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue-demi'), require('vuetify/lib/components'), require('vuetify/lib/util/colors')) :
14
- typeof define === 'function' && define.amd ? define(['exports', 'vue-demi', 'vuetify/lib/components', 'vuetify/lib/util/colors'], factory) :
15
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VSwatches = {}, global.VueDemi, global.Vuetify, global.colors));
16
- })(this, (function (exports, vueDemi, components, colors) { 'use strict';
13
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vuetify/lib'), require('vue-demi'), require('vuetify/lib/util/colors')) :
14
+ typeof define === 'function' && define.amd ? define(['exports', 'vuetify/lib', 'vue-demi', 'vuetify/lib/util/colors'], factory) :
15
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VSwatches = {}, global.Vuetify, global.VueDemi, global.colors));
16
+ })(this, (function (exports, lib, vueDemi, colors) { 'use strict';
17
17
 
18
- const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
18
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
19
19
 
20
- const colors__default = /*#__PURE__*/_interopDefaultLegacy(colors);
20
+ var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
21
21
 
22
- const _sfc_main = vueDemi.defineComponent({
22
+ var _sfc_main = vueDemi.defineComponent({
23
23
  name: "VSwatches",
24
- components: {
25
- VSheet: components.VSheet,
26
- VBtn: components.VBtn,
27
- VIcon: components.VIcon
28
- },
29
24
  model: {
30
25
  prop: "modelValue",
31
26
  event: "update:modelValue"
@@ -35,28 +30,28 @@
35
30
  swatches: {
36
31
  type: Array,
37
32
  default: () => [
38
- [colors__default.default.shades.black, colors__default.default.shades.white, colors__default.default.shades.transparent],
33
+ [colors__default["default"].shades.black, colors__default["default"].shades.white, colors__default["default"].shades.transparent],
39
34
  [
40
- colors__default.default.red.base,
41
- colors__default.default.pink.base,
42
- colors__default.default.purple.base,
43
- colors__default.default.deepPurple.base,
44
- colors__default.default.indigo.base,
45
- colors__default.default.blue.base,
46
- colors__default.default.lightBlue.base,
47
- colors__default.default.cyan.base
35
+ colors__default["default"].red.base,
36
+ colors__default["default"].pink.base,
37
+ colors__default["default"].purple.base,
38
+ colors__default["default"].deepPurple.base,
39
+ colors__default["default"].indigo.base,
40
+ colors__default["default"].blue.base,
41
+ colors__default["default"].lightBlue.base,
42
+ colors__default["default"].cyan.base
48
43
  ],
49
44
  [
50
- colors__default.default.teal.base,
51
- colors__default.default.green.base,
52
- colors__default.default.lightGreen.base,
53
- colors__default.default.lime.base,
54
- colors__default.default.yellow.base,
55
- colors__default.default.amber.base,
56
- colors__default.default.orange.base,
57
- colors__default.default.deepOrange.base
45
+ colors__default["default"].teal.base,
46
+ colors__default["default"].green.base,
47
+ colors__default["default"].lightGreen.base,
48
+ colors__default["default"].lime.base,
49
+ colors__default["default"].yellow.base,
50
+ colors__default["default"].amber.base,
51
+ colors__default["default"].orange.base,
52
+ colors__default["default"].deepOrange.base
58
53
  ],
59
- [colors__default.default.brown.base, colors__default.default.blueGrey.base, colors__default.default.grey.base]
54
+ [colors__default["default"].brown.base, colors__default["default"].blueGrey.base, colors__default["default"].grey.base]
60
55
  ]
61
56
  },
62
57
  size: { type: String, default: "2rem" },
@@ -88,7 +83,7 @@
88
83
  }
89
84
  });
90
85
 
91
- const VSwatches_vue_vue_type_style_index_0_lang = '';
86
+ /* unplugin-vue-components disabled */var VSwatches_vue_vue_type_style_index_0_lang = '';
92
87
 
93
88
  function normalizeComponent (
94
89
  scriptExports,
@@ -185,11 +180,11 @@
185
180
 
186
181
  var _sfc_render = function render() {
187
182
  var _vm = this, _c = _vm._self._c; _vm._self._setupProxy;
188
- return _c("v-sheet", { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors, rows) {
183
+ return _c(lib.VSheet, { staticClass: "v-swatches" }, _vm._l(_vm.swatches, function(colors, rows) {
189
184
  return _c("div", { key: rows }, _vm._l(colors, function(color) {
190
- return _c("v-btn", { key: color, attrs: { "color": color, "depressed": _vm.depressed, "disabled": _vm.disabled, "elevation": _vm.elevation, "height": _vm.size, "outlined": _vm.outlined, "plain": _vm.plain, "raised": _vm.raised, "tile": _vm.tile, "value": color, "width": _vm.size, "min-width": "auto" }, on: { "click": function($event) {
185
+ return _c(lib.VBtn, { key: color, attrs: { "color": color, "depressed": _vm.depressed, "disabled": _vm.disabled, "elevation": _vm.elevation, "height": _vm.size, "outlined": _vm.outlined, "plain": _vm.plain, "raised": _vm.raised, "tile": _vm.tile, "value": color, "width": _vm.size, "min-width": "auto" }, on: { "click": function($event) {
191
186
  return _vm.onSwatchClick($event);
192
- } } }, [color === _vm.modelValue ? _c("v-icon", { attrs: { "size": _vm.iconSize, "color": color !== "transparent" ? color : void 0 } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
187
+ } } }, [color === _vm.modelValue ? _c(lib.VIcon, { attrs: { "size": _vm.iconSize, "color": color !== "transparent" ? color : void 0 } }, [_vm._v(" " + _vm._s(_vm.icon) + " ")]) : _vm._e()], 1);
193
188
  }), 1);
194
189
  }), 0);
195
190
  };
@@ -204,16 +199,22 @@
204
199
  null,
205
200
  null
206
201
  );
207
- const VSwatches = __component__.exports;
202
+ var VSwatches = __component__.exports;
203
+
204
+ const meta = {
205
+ version: "1.0.4",
206
+ date: "2023-01-19T12:01:47.957Z"
207
+ };
208
208
 
209
209
  const installVSwatches = (app) => app.component("VSwatches", VSwatches);
210
210
  if (typeof window !== "undefined" && window.Vue) {
211
211
  window.Vue.use(VSwatches);
212
212
  }
213
213
 
214
- exports.default = VSwatches;
214
+ exports.Meta = meta;
215
+ exports["default"] = VSwatches;
215
216
  exports.install = installVSwatches;
216
217
 
217
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
218
+ Object.defineProperty(exports, '__esModule', { value: true });
218
219
 
219
220
  }));
@@ -0,0 +1,7 @@
1
+ /** Build information meta data */
2
+ export default interface MetaInterface {
3
+ /** Version */
4
+ version: string;
5
+ /** Build date */
6
+ date: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/style.css CHANGED
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify.
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.0.3
8
+ * @version 1.0.4
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
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.0.3",
4
+ "version": "1.0.5",
5
5
  "license": "MIT",
6
6
  "description": "Color Swatch component for Vuetify.",
7
7
  "keywords": [
@@ -55,29 +55,31 @@
55
55
  "sideEffects": false,
56
56
  "engines": {
57
57
  "node": ">=18.12.1",
58
- "yarn": ">=1.22.10"
58
+ "yarn": ">=1.22.19"
59
59
  },
60
- "packageManager": "yarn@3.2.4",
60
+ "packageManager": "yarn@3.3.1",
61
61
  "scripts": {
62
62
  "dev": "vite",
63
- "clean": "rimraf node_modules/.vite ",
64
- "build": "vite build & vue-tsc --declaration --emitDeclarationOnly",
65
- "build:analyze": "vue-tsc --noEmit && vite build --mode analyze",
66
- "build:docs": "vite build --config vite.config.docs.ts",
67
- "build:clean": "rimraf dist",
68
- "lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . -w -u",
69
- "lint:style": "stylelint . --cache --cache-location ./node_modules/.vite/vite-plugin-stylelint",
70
- "lint:markup": "vue-tsc --noEmit",
71
- "preview": "vite preview --config vite.config.docs.ts",
72
- "prepare": "husky install"
63
+ "clean": "rimraf node_modules/.vite",
64
+ "type-check": "tsc --noEmit --composite false",
65
+ "build": "run-p type-check build-only build-declaration",
66
+ "build:analyze": "vite build --mode=analyze",
67
+ "build:clean": "rimraf dist docs",
68
+ "build:docs": "vite build --mode=docs",
69
+ "build-only": "vite build",
70
+ "build-declaration": "tsc -p tsconfig.app.json --composite false",
71
+ "lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
72
+ "preview": "vite preview --mode=docs",
73
+ "prepare": "husky install",
74
+ "version": "auto-changelog -p && git add CHANGELOG.md"
73
75
  },
74
76
  "dependencies": {
75
77
  "vue-demi": "latest"
76
78
  },
77
79
  "peerDependencies": {
78
- "@vue/composition-api": "^1.7.0",
80
+ "@vue/composition-api": "^1.7.1",
79
81
  "vue": "^2.6.14 || <3",
80
- "vuetify": "^2.6.12"
82
+ "vuetify": "^2.6.14"
81
83
  },
82
84
  "peerDependenciesMeta": {
83
85
  "@vue/composition-api": {
@@ -85,47 +87,48 @@
85
87
  }
86
88
  },
87
89
  "devDependencies": {
88
- "@codemirror/lang-html": "^6.1.3",
89
- "@types/lodash": "^4.14.188",
90
- "@types/node": "^18.11.9",
91
- "@typescript-eslint/eslint-plugin": "^5.42.1",
92
- "@typescript-eslint/parser": "^5.42.1",
93
- "@vitejs/plugin-vue2": "^2.0.0",
90
+ "@codemirror/lang-html": "^6.4.1",
91
+ "@types/lodash": "^4.14.191",
92
+ "@types/node": "^18.11.18",
93
+ "@typescript-eslint/eslint-plugin": "^5.48.2",
94
+ "@typescript-eslint/parser": "^5.48.2",
95
+ "@vitejs/plugin-vue2": "^2.2.0",
94
96
  "@vue/eslint-config-prettier": "^7.0.0",
95
97
  "@vue/tsconfig": "^0.1.3",
96
- "codemirror": "^6.0.1",
97
- "eslint": "^8.27.0",
98
+ "eslint": "^8.32.0",
98
99
  "eslint-config-google": "^0.14.0",
99
- "eslint-config-prettier": "^8.5.0",
100
+ "eslint-config-prettier": "^8.6.0",
100
101
  "eslint-import-resolver-alias": "^1.1.2",
101
- "eslint-import-resolver-typescript": "^3.5.2",
102
- "eslint-plugin-import": "^2.26.0",
103
- "eslint-plugin-jsdoc": "^39.6.2",
102
+ "eslint-import-resolver-typescript": "^3.5.3",
103
+ "eslint-plugin-import": "^2.27.5",
104
+ "eslint-plugin-jsdoc": "^39.6.6",
105
+ "eslint-plugin-prettier": "^4.2.1",
104
106
  "eslint-plugin-tsdoc": "^0.2.17",
105
- "eslint-plugin-vue": "^9.7.0",
106
- "eslint-plugin-vuejs-accessibility": "^2.0.0",
107
+ "eslint-plugin-vue": "^9.9.0",
108
+ "eslint-plugin-vuejs-accessibility": "^2.1.0",
107
109
  "eslint-plugin-vuetify": "^1.1.0",
108
- "husky": "^8.0.1",
109
- "lint-staged": "^13.0.3",
110
+ "husky": "^8.0.3",
111
+ "lint-staged": "^13.1.0",
112
+ "npm-run-all": "^4.1.5",
110
113
  "postcss-html": "^1.5.0",
111
- "prettier": "^2.7.1",
112
- "rimraf": "^3.0.2",
113
- "rollup-plugin-visualizer": "^5.8.3",
114
+ "prettier": "^2.8.3",
115
+ "rimraf": "^4.1.1",
116
+ "rollup-plugin-visualizer": "^5.9.0",
114
117
  "sass": "1.32.12",
115
- "stylelint": "^14.14.1",
116
- "stylelint-config-prettier": "^9.0.3",
118
+ "stylelint": "^14.16.1",
119
+ "stylelint-config-prettier": "^9.0.4",
117
120
  "stylelint-config-recommended-scss": "^8.0.0",
118
121
  "stylelint-config-recommended-vue": "^1.4.0",
119
- "typescript": "^4.8.4",
120
- "unplugin-vue-components": "^0.22.9",
121
- "vite": "^3.2.3",
122
- "vite-plugin-banner": "^0.6.1",
123
- "vite-plugin-checker": "^0.5.1",
122
+ "typescript": "^4.9.4",
123
+ "unplugin-vue-components": "^0.22.12",
124
+ "vite": "^4.0.4",
125
+ "vite-plugin-banner": "^0.7.0",
126
+ "vite-plugin-checker": "^0.5.3",
124
127
  "vue": "^2.7.13",
125
- "vue-codemirror6": "^1.1.1",
128
+ "vue-codemirror6": "^1.1.6",
126
129
  "vue-eslint-parser": "^9.1.0",
127
- "vue-tsc": "^1.0.9",
128
- "vuetify": "^2.6.12"
130
+ "vue-tsc": "^1.0.24",
131
+ "vuetify": "^2.6.14"
129
132
  },
130
133
  "husky": {
131
134
  "hooks": {
@@ -139,6 +142,6 @@
139
142
  "*": "prettier -w -u"
140
143
  },
141
144
  "resolutions": {
142
- "prettier": "^2.7.1"
145
+ "json5": "^2.2.3"
143
146
  }
144
147
  }
@@ -39,19 +39,12 @@ import {
39
39
  type SetupContext,
40
40
  } from 'vue-demi';
41
41
 
42
- import { VSheet, VIcon, VBtn } from 'vuetify/lib/components';
43
42
  import colors from 'vuetify/lib/util/colors';
44
43
 
45
44
  /** Vuetify Swatches */
46
45
  export default defineComponent({
47
46
  /** Component name */
48
47
  name: 'VSwatches',
49
- /** Components */
50
- components: {
51
- VSheet,
52
- VBtn,
53
- VIcon,
54
- },
55
48
  /** Model Definition */
56
49
  model: {
57
50
  prop: 'modelValue',
@@ -1,218 +0,0 @@
1
- import { type PropType, type Ref } from 'vue-demi';
2
- /** Vuetify Swatches */
3
- declare const _default: import("vue-demi").DefineComponent<{
4
- /** Model value */
5
- modelValue: {
6
- type: StringConstructor;
7
- default: string;
8
- };
9
- /** Swatch colors */
10
- swatches: {
11
- type: PropType<string[] | string[][]>;
12
- default: () => string[][];
13
- };
14
- /** Swatch sized */
15
- size: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- /** Selected icon */
20
- icon: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- /** selected icon size */
25
- iconSize: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- /**
30
- * Removes the button box shadow.
31
- *
32
- * @see {@link https://vuetifyjs.com/en/components/buttons/#depressed}
33
- */
34
- depressed: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- /**
39
- * Removes the ability to click or target the component.
40
- *
41
- * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
42
- */
43
- disabled: {
44
- type: BooleanConstructor;
45
- default: boolean;
46
- };
47
- /**
48
- * Designates an elevation applied to the component between 0 and 24.
49
- *
50
- * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
51
- */
52
- elevation: {
53
- type: (StringConstructor | NumberConstructor)[];
54
- default: undefined;
55
- };
56
- /**
57
- * Makes the background transparent and applies a thin border.
58
- *
59
- * @see {@link https://vuetifyjs.com/en/components/buttons/#outlined}
60
- */
61
- outlined: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- };
65
- /**
66
- * Removes the default background change applied when hovering over the button.
67
- *
68
- * @see {@link https://vuetifyjs.com/en/components/buttons/#plain}
69
- */
70
- plain: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- /**
75
- * Raised buttons have a box shadow that increases when clicked. This is the default style.
76
- *
77
- * @see {@link https://vuetifyjs.com/en/components/buttons/#raised}
78
- */
79
- raised: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
- /**
84
- * Applies a large border radius on the button.
85
- *
86
- * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
87
- */
88
- rounded: {
89
- type: BooleanConstructor;
90
- default: boolean;
91
- };
92
- /**
93
- * Removes the component’s border-radius.
94
- *
95
- * @see {@link https://vuetifyjs.com/en/components/buttons/#tile}
96
- */
97
- tile: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- };
101
- }, {
102
- checkedVisibilty: Ref<boolean>;
103
- onSwatchClick: (e: Event) => void;
104
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
105
- /** Model value */
106
- modelValue: {
107
- type: StringConstructor;
108
- default: string;
109
- };
110
- /** Swatch colors */
111
- swatches: {
112
- type: PropType<string[] | string[][]>;
113
- default: () => string[][];
114
- };
115
- /** Swatch sized */
116
- size: {
117
- type: StringConstructor;
118
- default: string;
119
- };
120
- /** Selected icon */
121
- icon: {
122
- type: StringConstructor;
123
- default: string;
124
- };
125
- /** selected icon size */
126
- iconSize: {
127
- type: StringConstructor;
128
- default: string;
129
- };
130
- /**
131
- * Removes the button box shadow.
132
- *
133
- * @see {@link https://vuetifyjs.com/en/components/buttons/#depressed}
134
- */
135
- depressed: {
136
- type: BooleanConstructor;
137
- default: boolean;
138
- };
139
- /**
140
- * Removes the ability to click or target the component.
141
- *
142
- * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
143
- */
144
- disabled: {
145
- type: BooleanConstructor;
146
- default: boolean;
147
- };
148
- /**
149
- * Designates an elevation applied to the component between 0 and 24.
150
- *
151
- * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
152
- */
153
- elevation: {
154
- type: (StringConstructor | NumberConstructor)[];
155
- default: undefined;
156
- };
157
- /**
158
- * Makes the background transparent and applies a thin border.
159
- *
160
- * @see {@link https://vuetifyjs.com/en/components/buttons/#outlined}
161
- */
162
- outlined: {
163
- type: BooleanConstructor;
164
- default: boolean;
165
- };
166
- /**
167
- * Removes the default background change applied when hovering over the button.
168
- *
169
- * @see {@link https://vuetifyjs.com/en/components/buttons/#plain}
170
- */
171
- plain: {
172
- type: BooleanConstructor;
173
- default: boolean;
174
- };
175
- /**
176
- * Raised buttons have a box shadow that increases when clicked. This is the default style.
177
- *
178
- * @see {@link https://vuetifyjs.com/en/components/buttons/#raised}
179
- */
180
- raised: {
181
- type: BooleanConstructor;
182
- default: boolean;
183
- };
184
- /**
185
- * Applies a large border radius on the button.
186
- *
187
- * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
188
- */
189
- rounded: {
190
- type: BooleanConstructor;
191
- default: boolean;
192
- };
193
- /**
194
- * Removes the component’s border-radius.
195
- *
196
- * @see {@link https://vuetifyjs.com/en/components/buttons/#tile}
197
- */
198
- tile: {
199
- type: BooleanConstructor;
200
- default: boolean;
201
- };
202
- }>>, {
203
- modelValue: string;
204
- swatches: string[] | string[][];
205
- size: string;
206
- icon: string;
207
- iconSize: string;
208
- depressed: boolean;
209
- disabled: boolean;
210
- elevation: string | number;
211
- outlined: boolean;
212
- plain: boolean;
213
- raised: boolean;
214
- rounded: boolean;
215
- tile: boolean;
216
- }>;
217
- export default _default;
218
- //# sourceMappingURL=VSwatches.vue.d.ts.map
@@ -1 +0,0 @@
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,UAAU,CAAC;AAKlB,uBAAuB;;IAgBnB,kBAAkB;;;;;IAElB,oBAAoB;;;;;IA4BpB,mBAAmB;;;;;IAEnB,oBAAoB;;;;;IAEpB,yBAAyB;;;;;IAEzB;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;;;uBAoBuB,KAAK;;IAtG/B,kBAAkB;;;;;IAElB,oBAAoB;;;;;IA4BpB,mBAAmB;;;;;IAEnB,oBAAoB;;;;;IAEpB,yBAAyB;;;;;IAEzB;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;AAjGP,wBAkIG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAEnD,QAAA,MAAM,gBAAgB,QAAS,GAAG,QAA0C,CAAC;AAE7E,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}